/* ============================================================
   U2B Status — dashboard UI (v3 redesign)
   ============================================================ */
:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel-2: #f4f6fc;
  --elevate: #ffffff;
  --text: #0f1729;
  --muted: #5d6b88;
  --line: #e6ecf6;
  --line-2: #eef2f9;
  --accent: #d9ff42;
  --accent-2: #c4ec2f;
  --on-accent: #1a1a1a;
  --accent-ink: #5f7a06;
  --green: #0f9d6b;
  --yellow: #b07a12;
  --red: #d83a45;
  --ring: rgba(150,190,40,.28);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 6px 16px rgba(16,24,40,.06);
  --shadow-md: 0 10px 34px rgba(16,24,40,.12);
  --radius: 18px;
  --radius-sm: 12px;
  --body-grad:
    radial-gradient(900px 500px at 100% -5%, rgba(217,255,66,.12), transparent 70%),
    var(--bg);
  --ghost-bg: #ffffff;
  --ghost-text: #344256;
  --input-bg: #ffffff;
  --code-bg: #14181f;
  --code-text: #e6edf6;
}
:root[data-theme="dark"] {
  --bg: #1a1a1a;
  --panel: #232323;
  --panel-2: #272727;
  --elevate: #2c2c2c;
  --text: #f1f1f1;
  --muted: #a2a2a2;
  --line: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.06);
  --accent: #d9ff42;
  --accent-2: #c4ec2f;
  --on-accent: #1a1a1a;
  --accent-ink: #d9ff42;
  --green: #35d6a0;
  --yellow: #ecbf52;
  --red: #ff6470;
  --ring: rgba(217,255,66,.30);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.45), 0 8px 22px rgba(0,0,0,.4);
  --shadow-md: 0 16px 48px rgba(0,0,0,.6);
  --radius: 18px;
  --radius-sm: 12px;
  --body-grad:
    radial-gradient(900px 520px at 100% -5%, rgba(217,255,66,.06), transparent 70%),
    var(--bg);
  --ghost-bg: #262626;
  --ghost-text: #e2e2e2;
  --input-bg: #2a2a2a;
  --code-bg: #121212;
  --code-text: #e2e2e2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--body-grad);
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
::selection { background: var(--ring); }

/* ---------- scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(120,135,160,.4) transparent; }
*::-webkit-scrollbar { height: 10px; width: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(120,135,160,.34); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(120,135,160,.55); background-clip: content-box; }

/* ============ BUTTONS ============ */
button, .download-link {
  border: 0; cursor: pointer; text-decoration: none;
  border-radius: var(--radius-sm); padding: .62rem 1.05rem;
  font-weight: 700; font-size: .92rem;
  background: var(--accent);
  color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  transition: transform .14s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
button:hover, .download-link:hover { transform: translateY(-1px); background: var(--accent-2); }
button:active, .download-link:active { transform: translateY(0); }
button.ghost, .ghost {
  background: var(--ghost-bg); color: var(--ghost-text);
  border: 1px solid var(--line); box-shadow: none;
}
button.ghost:hover, .ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); transform: translateY(-1px); }
button.danger, .danger, .danger-link {
}
.danger-link { background: var(--ghost-bg); color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 35%, transparent); box-shadow: none; }
.danger-link:hover { background: color-mix(in srgb, var(--red) 12%, transparent); }
button.small, .small { padding: .42rem .7rem; font-size: .8rem; border-radius: 9px; }
button.full, .full { width: 100%; }
.icon-btn { width: 42px; height: 42px; padding: 0; flex: 0 0 auto; }
.icon-btn.ghost svg, .icon-btn svg { width: 18px; height: 18px; }
.primary-soft { background: var(--ghost-bg); color: var(--accent-ink); border: 1px solid var(--line); box-shadow: none; }
.primary-soft:hover { border-color: var(--accent-ink); }
:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); border-radius: 10px; }

/* ============ INPUTS ============ */
input, select {
  min-height: 44px; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .6rem .85rem; background: var(--input-bg); color: var(--text);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:focus, select:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--ring); }
select { cursor: pointer; }

/* ============ LOGIN ============ */
.login-view { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; overflow: hidden; }
.login-aurora {
  position: absolute; inset: -20% -10% auto -10%; height: 70vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 30% 30%, rgba(79,110,247,.28), transparent 70%),
    radial-gradient(closest-side at 70% 50%, rgba(16,157,107,.22), transparent 70%);
  filter: blur(20px);
}
.login-card {
  position: relative; z-index: 1; width: min(440px, 100%);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 24px; padding: 2.2rem; box-shadow: var(--shadow-md);
}
.login-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.brand-logo { width: 3rem; height: 3rem; object-fit: cover; border-radius: 14px; background: #000; box-shadow: var(--shadow-sm); flex: 0 0 auto; }
.brand-logo.small { width: 2.4rem; height: 2.4rem; border-radius: 11px; }
.login-logo { width: 3.4rem; height: 3.4rem; }
.login-kicker { display: block; color: var(--accent-ink); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.login-card h1 { margin: .1rem 0 0; font-size: 1.9rem; letter-spacing: -.03em; }
.login-copy { color: var(--muted); margin: .35rem 0 1.5rem; line-height: 1.5; font-size: .95rem; }
.form-field { display: grid; gap: .4rem; margin-bottom: .9rem; }
.form-field label { color: var(--muted); font-size: .85rem; font-weight: 650; }
.login-error { margin-top: 1rem; border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); background: color-mix(in srgb, var(--red) 9%, transparent); color: var(--red); padding: .75rem; border-radius: var(--radius-sm); font-size: .9rem; }

/* ============ APP SHELL ============ */
.app { display: grid; grid-template-columns: 256px minmax(0,1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  border-right: 1px solid var(--line);
  padding: 1.1rem .9rem; display: flex; flex-direction: column; gap: .35rem;
  backdrop-filter: blur(16px);
}
.side-brand { display: flex; align-items: center; gap: .75rem; padding: .35rem .5rem 1.2rem; }
.side-brand strong { display: block; letter-spacing: -.02em; font-size: 1.02rem; }
.side-brand span { display: block; color: var(--muted); font-size: .78rem; margin-top: .12rem; }
nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .68rem .8rem; border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 600; font-size: .94rem;
  position: relative; transition: background-color .15s ease, color .15s ease;
}
nav a .nav-ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
nav a:hover { background: var(--panel-2); color: var(--text); }
nav a.active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); }
nav a.active::before { content: ""; position: absolute; left: -.9rem; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--accent); }
.side-foot { padding-top: .6rem; border-top: 1px solid var(--line); }

.content { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.6rem; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  backdrop-filter: blur(14px);
}
.topbar .eyebrow { color: var(--accent-ink); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; margin: 0 0 .15rem; }
.topbar h1 { margin: 0; font-size: 1.5rem; letter-spacing: -.03em; }
.top-actions { display: flex; align-items: center; gap: .6rem; }
.search { width: min(320px, 40vw); min-height: 42px; border-radius: 999px; }
main { padding: 1.6rem; display: flex; flex-direction: column; gap: 1.2rem; }

.page { display: none; flex-direction: column; gap: 1.2rem; animation: fade .25s ease; }
.page.active-page { display: flex; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============ PANELS ============ */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm);
}
.compact-panel { padding: 1rem 1.3rem; box-shadow: none; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-header.tight { margin-bottom: .85rem; }
.panel h2 { font-size: 1.12rem; letter-spacing: -.02em; margin: 0; }
.muted { color: var(--muted); font-size: .9rem; margin: .25rem 0 0; }
.wide-text { max-width: 52ch; line-height: 1.55; }
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.settings-wide { grid-column: 1 / -1; }

/* ============ STATS ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.stat-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.stat-card strong { display: block; font-size: 2rem; letter-spacing: -.02em; line-height: 1.1; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.stat-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; }
.stat-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tone-accent { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); }
.tone-green { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.tone-yellow { background: color-mix(in srgb, var(--yellow) 18%, transparent); color: var(--yellow); }
.tone-red { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }

/* ============ WARNING / ALERTS ============ */
.warning {
  border: 1px solid color-mix(in srgb, var(--yellow) 35%, transparent);
  background: color-mix(in srgb, var(--yellow) 12%, var(--panel));
  color: var(--text); padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.alert-panel { border-radius: var(--radius); padding: 1.2rem 1.3rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.alert-panel.danger-alert { background: color-mix(in srgb, var(--red) 9%, var(--panel)); border-color: color-mix(in srgb, var(--red) 32%, transparent); }
.alert-panel.warn-alert { background: color-mix(in srgb, var(--yellow) 9%, var(--panel)); border-color: color-mix(in srgb, var(--yellow) 32%, transparent); }
.alert-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.alert-head h2 { margin: .1rem 0 0; font-size: 1.15rem; }
.alert-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--red); }
.warn-alert .alert-label { color: var(--yellow); }
.alert-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: .6rem; }
.alert-item { display: flex; align-items: center; gap: .55rem; padding: .6rem .7rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .9rem; }
.alert-item strong { font-size: .92rem; }
.alert-item span:last-child { color: var(--muted); font-size: .8rem; margin-left: auto; }

/* ============ EVENTS ============ */
.events { display: flex; flex-direction: column; gap: .6rem; }
.events.wide { gap: .55rem; }
.event {
  border: 1px solid var(--line); border-left: 3px solid var(--muted);
  background: var(--panel-2); border-radius: var(--radius-sm);
  padding: .75rem .9rem; transition: transform .14s ease, box-shadow .2s ease;
}
.event:hover { transform: translateX(2px); box-shadow: var(--shadow-sm); }
.event-title { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.event-title strong { font-size: .94rem; }
.event-badge { font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; padding: .15rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); }
.time { color: var(--muted); font-size: .8rem; margin-top: .35rem; }
.sub { color: var(--muted); font-size: .82rem; }
.event.online, .event.success { border-left-color: var(--green); }
.event.warning { border-left-color: var(--yellow); }
.event.offline, .event.critical { border-left-color: var(--red); }
.event.online .event-badge, .event.success .event-badge { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.event.warning .event-badge { background: color-mix(in srgb, var(--yellow) 18%, transparent); color: var(--yellow); }
.event.offline .event-badge, .event.critical .event-badge { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }

/* ============ PILLS / TAGS / BADGES ============ */
.pill { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; text-transform: capitalize; color: var(--muted); background: color-mix(in srgb, var(--muted) 14%, transparent); }
.pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.pill.online { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.pill.warning { color: var(--yellow); background: color-mix(in srgb, var(--yellow) 16%, transparent); }
.pill.offline { color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); }
.pill.online::before { animation: ping 2s ease-in-out infinite; }
@keyframes ping { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 45%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
.count-badge { font-size: .78rem; font-weight: 700; padding: .28rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.count-badge.good { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.count-badge.bad { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.prio { display: inline-block; font-size: .74rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--line); margin-bottom: .35rem; }
.prio.critical { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.prio.high { color: var(--yellow); background: color-mix(in srgb, var(--yellow) 14%, transparent); border-color: color-mix(in srgb, var(--yellow) 30%, transparent); }
.prio.normal { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 26%, transparent); }
.prio.low { color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent); }
.cat-tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--line); margin-bottom: .35rem; color: var(--muted); background: var(--panel-2); }
.status-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .4rem; background: var(--muted); vertical-align: middle; }
.status-dot.online { background: var(--green); }
.status-dot.warning { background: var(--yellow); }
.status-dot.offline { background: var(--red); }
.uninstall-badge { margin-top: .3rem; color: var(--yellow); font-weight: 600; }
.uninstall-badge.done { color: var(--green); }

/* ============ CHIPS ============ */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  padding: .42rem .85rem; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--accent-ink); color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent-ink); }
.chip.active .chip-count { opacity: .85; }
.chip-count { font-size: .72rem; opacity: .7; font-variant-numeric: tabular-nums; }

/* ============ TABLE ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 1180px; background: var(--panel); }
thead th {
  position: sticky; top: 0; z-index: 1;
  text-align: left; padding: .8rem .85rem; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  background: var(--panel-2); border-bottom: 1px solid var(--line);
}
td { padding: .85rem; border-bottom: 1px solid var(--line-2); vertical-align: top; font-size: .9rem; }
tbody tr { transition: background-color .12s ease; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
.device-name { font-weight: 700; letter-spacing: -.01em; }
.metric { font-variant-numeric: tabular-nums; font-weight: 600; }
.priority-select, .category-select { min-height: 34px; padding: .25rem .5rem; font-size: .8rem; border-radius: 8px; margin-top: .15rem; }
.speed-cell { font-variant-numeric: tabular-nums; min-width: 150px; }
.speed-line { display: block; }
.speed-line .unit { color: var(--muted); font-size: .78rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: .35rem; }

/* Push task button + modal */
.task-btn {
  padding: .45rem .9rem; font-size: .82rem; font-weight: 700; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer;
  transition: transform .14s ease, background-color .2s ease;
}
.task-btn:hover { transform: translateY(-1px); background: var(--accent-2); }
.task-card { width: min(460px, 100%); }
.task-grid { display: grid; gap: .55rem; }
.task-action {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 👈 add this */
  gap: .9rem;
  width: 100%;
  text-align: left;
  padding: .8rem .9rem;
  border-radius: 14px;
  cursor: pointer;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
  transition: border-color .15s ease, transform .12s ease, background-color .15s ease;
}
.task-action:hover { transform: translateY(-1px); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel-2)); }
.task-action-ico { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.task-action-ico svg { width: 20px; height: 20px; }
.task-action-text { display: flex; flex-direction: column; gap: .1rem; }
.task-action-text strong { font-size: .95rem; }
.task-action-text span { color: var(--muted); font-size: .8rem; }
.task-action.danger .task-action-ico { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.task-action.danger:hover { border-color: var(--red); background: color-mix(in srgb, var(--red) 7%, var(--panel-2)); }

/* Permission segmented controls */
.user-perms {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
}

.perm-row {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.perm-name {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
}

.seg {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--panel-2);
    justify-self: start; /* Keeps all button groups aligned */
}

.seg-opt {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: .45rem 1rem;
    font-size: .8rem;
    font-weight: 650;
    cursor: pointer;
    box-shadow: none;
}

.seg-opt:hover {
    color: var(--text);
}

.seg-opt.active {
    background: var(--accent);
    color: var(--on-accent);
}

/* ============ INSTALLER ============ */
.hero-panel { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), var(--panel) 60%); }
.installer-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; align-items: start; }
.installer-hero h2 { font-size: 1.5rem; letter-spacing: -.03em; margin: .2rem 0 .4rem; }
.install-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }
.download-link { padding: .8rem 1.2rem; }
.mini-help { display: grid; gap: .55rem; align-content: start; }
.mini-help span { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: .88rem; }
.mini-help span::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; color: var(--muted); }
.steps strong { color: var(--text); }
.code-block { background: var(--code-bg); color: var(--code-text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; overflow-x: auto; font-size: .82rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* ============ FORMS / SETTINGS ============ */
.inline-form { display: flex; gap: .6rem; margin-bottom: 1rem; }
.inline-form input { flex: 1; }
.inline-form button { flex: 0 0 auto; }
.stack-form { display: grid; gap: .9rem; }
.form-grid { display: grid; gap: .8rem; }
.form-grid.two-cols { grid-template-columns: 1fr 1fr; }
.form-grid.three-cols { grid-template-columns: 1fr 1fr auto; align-items: end; }
.small-field label { font-size: .82rem; }
.toggle-row { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .9rem; }
.toggle-row input { width: auto; min-height: auto; }
.secure-toggle { min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 .85rem; background: var(--input-bg); }
.check-grid { display: grid; gap: .6rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.manager-list { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.1rem; }
.manager-item { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem .85rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.manager-item span { font-size: .82rem; color: var(--muted); }
.manager-item strong { font-size: .92rem; }

/* ============ LOGS / PAGER ============ */
.log-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;      /* Prevent wrapping */
}

.log-controls select,
.log-controls input,
.log-controls button {
    height: 40px;           /* Same height for all controls */
}

.log-controls select {
    min-width: 160px;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.25rem;
}

.pager-info {
    min-width: 90px;        /* Keeps text from shifting */
    text-align: center;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pager button {
    min-width: 100px;       /* Makes Prev/Next the same width */
}

.pager button[disabled] {
    opacity: .45;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* ============ MODALS ============ */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(8,12,20,.55); backdrop-filter: blur(4px); animation: fade .15s ease; }
.modal-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); width: min(640px, 100%); max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; animation: pop .18s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 1.1rem; }
.modal-body { padding: 1.3rem; overflow-y: auto; }

/* ============ SPEED TEST GAUGE ============ */
.speed-card { width: min(680px, 100%); }
.speed-phase { text-align: center; color: var(--muted); font-weight: 700; letter-spacing: .02em; margin-bottom: .35rem; min-height: 1.4rem; }
.gauge-wrap { display: flex; justify-content: center; }
.gauge { width: min(360px, 96%); height: auto; display: block; margin: 0 auto; }
.g-track2 { fill: none; stroke: var(--line); stroke-width: 14; stroke-linecap: round; }
.g-arc { fill: none; stroke-width: 14; stroke-linecap: round; }
.g-needle2 { stroke-width: 5; stroke-linecap: round; }
#gHub { stroke: var(--panel); stroke-width: 3; }
.g-num { text-anchor: middle; font-size: 46px; font-weight: 800; fill: var(--text); font-variant-numeric: tabular-nums; }
.g-unit2 { text-anchor: middle; font-size: 14px; fill: var(--muted); font-weight: 700; letter-spacing: .08em; }
.g-tickmark { stroke: var(--line); stroke-width: 2; }
.g-tick2 { text-anchor: middle; font-size: 10px; fill: var(--muted); dominant-baseline: middle; font-variant-numeric: tabular-nums; }
.speed-graph { margin: .4rem 0 1rem; }
.spark { width: 100%; height: 130px; display: block; }
.speed-results { text-align: center; }
.result-grid { display: flex; justify-content: center; gap: 2.2rem; margin: .25rem 0 .4rem; flex-wrap: wrap; }
.result-grid .r-num { display: block; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.speed-fail { color: var(--red); font-weight: 600; }

/* ============ HISTORY ============ */
.hist-summary { display: flex; gap: 2rem; margin-bottom: .8rem; }
.hist-num { display: block; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.hist-table { width: 100%; min-width: 0; border-collapse: collapse; margin: .5rem 0 1rem; }
.hist-table th, .hist-table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line-2); font-size: .85rem; }
.hist-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.hist-ongoing { color: var(--red); }
.modal-body h4 { margin: 1rem 0 .4rem; font-size: .95rem; }

/* ============ TOAST ============ */
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 2000; background: var(--text); color: var(--bg); padding: .8rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow-md); font-weight: 600; font-size: .9rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.two, .settings-grid { grid-template-columns: 1fr; }
  .installer-hero { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: .5rem; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: .7rem .9rem; }
  .side-brand { padding: 0 .6rem 0 .2rem; }
  .side-brand div { display: none; }
  nav { flex-direction: row; gap: .3rem; flex: 1; }
  nav a span { display: none; }
  nav a { padding: .6rem; }
  nav a.active::before { display: none; }
  .side-foot { border-top: 0; padding-top: 0; }
  .side-foot .full { width: auto; }
  .topbar { padding: 1rem; flex-wrap: wrap; }
  .search { width: 100%; order: 3; }
  main { padding: 1rem; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .form-grid.two-cols, .form-grid.three-cols { grid-template-columns: 1fr; }
}

/* Refresh / update countdown */
.refresh-count { color: var(--muted); font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* User row layout */
.user-item { flex-direction: column; align-items: stretch; gap: .85rem; }
.user-id-block { min-width: 9rem; }

/* ============================================================
   Tidsregistrering — additions (reuse existing tokens)
   ============================================================ */

/* Scope switch (Mig / Alle) — reuses .seg-opt styling */
.scope-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--panel-2); }

/* Entry form (registration) */
.entry-form { display: grid; grid-template-columns: 150px 1.1fr 110px 110px 100px 2fr auto; gap: .7rem; align-items: end; }
.entry-form .form-field { margin-bottom: 0; }
.add-entry-btn { height: 44px; align-self: end; white-space: nowrap; }
.grow-field { min-width: 0; }
@media (max-width: 1080px) { .entry-form { grid-template-columns: 1fr 1fr; } .add-entry-btn { grid-column: 1 / -1; } }
@media (max-width: 520px) { .entry-form { grid-template-columns: 1fr; } }

/* Entries table */
.entries-table { min-width: 960px; }
.entries-table.hide-user .col-user, .entries-table.hide-user th:nth-child(2) { display: none; }
.entries-table.hide-km .col-km { display: none; }
.entry-row { cursor: pointer; }
.nowrap { white-space: nowrap; }
.entries-controls { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.entries-controls select { min-height: 40px; width: auto; min-width: 160px; }
.empty-state { padding: 2rem 1rem; text-align: center; color: var(--muted); }

/* Week bar chart */
.week-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; align-items: end; height: 200px; }
.wc-col { display: flex; flex-direction: column; align-items: center; gap: .4rem; height: 100%; }
.wc-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.wc-bar { width: 60%; max-width: 38px; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--accent) 55%, var(--panel-2)); transition: height .3s ease; min-height: 0; }
.wc-col.today .wc-bar { background: var(--accent); }
.wc-val { font-size: .74rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1rem; }
.wc-col.today .wc-val { color: var(--accent-ink); }
.wc-day { font-size: .76rem; font-weight: 600; color: var(--muted); }
.wc-col.today .wc-day { color: var(--text); }

/* Project breakdown bars */
.bars { display: flex; flex-direction: column; gap: .7rem; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 130px) 1fr auto; gap: .8rem; align-items: center; }
.bar-label { font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s ease; }
.bar-num { font-size: .82rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============================================================
   Tidsregistrering v2 — måned, km-fradrag, kategorier, modal
   ============================================================ */

/* ---- Month panel (Registrering) ---- */
.month-panel { display: flex; flex-direction: column; gap: 1.1rem; }
.month-nav { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.month-current { display: flex; flex-direction: column; min-width: 9rem; }
.month-current .eyebrow { color: var(--accent-ink); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .66rem; margin: 0 0 .1rem; }
.month-current h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.02em; }
.month-spacer { flex: 1; }
.month-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; }
.mt-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; }
.mt-card span { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; }
.mt-card strong { display: block; font-size: 1.6rem; letter-spacing: -.02em; margin-top: .15rem; font-variant-numeric: tabular-nums; }

/* ---- Entry modal (opret + rediger) ---- */
.entry-modal-card { width: min(560px, 100%); }
.modal-head-titles { display: flex; flex-direction: column; gap: .15rem; }
.modal-kicker { color: var(--accent-ink); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .64rem; }
.entry-modal-form { display: grid; gap: 1rem; }
.entry-modal-form .form-field { margin-bottom: 0; }
.time-row { display: grid; grid-template-columns: 1fr auto 1fr 1fr; gap: .7rem; align-items: end; }
.time-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); padding-bottom: .7rem; }
.entry-modal-actions { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; }
.entry-modal-actions .spacer { flex: 1; }
.muted-inline { color: var(--muted); font-weight: 500; font-size: .8rem; }
@media (max-width: 520px) {
  .time-row { grid-template-columns: 1fr 1fr; }
  .time-arrow { display: none; }
}

/* ---- Km-fradrag settings ---- */
.mileage-settings { display: flex; flex-direction: column; gap: 1.1rem; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; }
.switch-text { display: flex; flex-direction: column; gap: .15rem; }
.switch-text .muted { margin: 0; }
.rate-row { display: flex; align-items: flex-end; gap: .7rem; }
.rate-row .form-field { margin-bottom: 0; max-width: 220px; }
.rate-row button { height: 44px; flex: 0 0 auto; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; min-width: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); transition: background .15s ease, border-color .15s ease; }
.switch-track::after { content: ""; position: absolute; top: 50%; left: 3px; transform: translateY(-50%); width: 19px; height: 19px; border-radius: 50%; background: var(--muted); transition: transform .16s ease, background .16s ease; }
.switch input:checked + .switch-track { background: color-mix(in srgb, var(--accent) 38%, var(--panel-2)); border-color: var(--accent-ink); }
.switch input:checked + .switch-track::after { transform: translateY(-50%) translateX(19px); background: var(--accent-ink); }

/* ---- Category picker (opret bruger) ---- */
.category-picker { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-check { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--text); user-select: none; }
.cat-check:hover { border-color: var(--accent-ink); }
.cat-check input { width: auto; min-width: 0; min-height: 0; height: auto; margin: 0; accent-color: var(--accent-ink); cursor: pointer; }

/* ---- Per-user category toggles (brugerliste) ---- */
.user-cats { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.user-cats-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-right: .2rem; }
.cat-toggle { padding: .3rem .65rem; font-size: .78rem; font-weight: 650; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); }
.cat-toggle:hover { border-color: var(--accent-ink); color: var(--accent-ink); transform: none; }
.cat-toggle.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent-ink); }
.cat-toggle.active:hover { background: var(--accent-2); color: var(--on-accent); }

/* ---- Medarbejder (admin) ---- */
.emp-layout { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 1.4rem; align-items: start; }
.emp-list-panel { position: sticky; top: 1.4rem; }
.emp-list { display: flex; flex-direction: column; gap: .5rem; }
.emp-card { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.emp-card:hover { border-color: var(--accent-ink); transform: none; }
.emp-card.active { border-color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, var(--panel-2)); }
.emp-card-main { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.emp-card-main strong { font-size: .95rem; letter-spacing: -.01em; }
.emp-sub { color: var(--muted); font-size: .78rem; }
.emp-cats { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .15rem; }
.emp-cat { font-size: .68rem; font-weight: 700; padding: .12rem .4rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.emp-chev { color: var(--muted); flex: 0 0 auto; }
.emp-card.active .emp-chev { color: var(--accent-ink); }
.emp-detail { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.emp-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; text-align: center; color: var(--muted); padding: 3rem 1.5rem; }
.emp-empty svg { color: var(--line); }
.emp-empty p { margin: 0; max-width: 22rem; }
@media (max-width: 860px) {
  .emp-layout { grid-template-columns: 1fr; }
  .emp-list-panel { position: static; }
}

/* ---- Vagt (stempling ind/ud) ---- */
.shift-panel { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.shift-panel.active { border-color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.shift-status { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.shift-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); flex: 0 0 auto; }
.shift-dot.live { background: #34d27b; animation: shiftPulse 1.7s infinite; }
@keyframes shiftPulse { 0% { box-shadow: 0 0 0 0 rgba(52,210,123,.55); } 70% { box-shadow: 0 0 0 11px rgba(52,210,123,0); } 100% { box-shadow: 0 0 0 0 rgba(52,210,123,0); } }
.shift-text { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.shift-kicker { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--accent-ink); }
.shift-timer { font-size: 1.75rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.shift-timer.idle { font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.shift-meta { font-size: .82rem; }
.shift-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.shift-project { min-width: 150px; width: auto; }
.danger-btn { background: var(--red); color: #fff; border-color: transparent; }
.danger-btn:hover { filter: brightness(1.06); }
@media (max-width: 560px) {
  .shift-panel { flex-direction: column; align-items: stretch; }
  .shift-actions { justify-content: stretch; }
  .shift-actions .add-entry-btn { flex: 1; justify-content: center; }
}

/* ---- Tillæg & satser (admin settings) ---- */
.rate-settings { display: flex; flex-direction: column; gap: 1.1rem; }
.rate-block { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; background: var(--panel-2); }
.rate-block-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rate-block-title { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.rate-block-title strong { font-size: 1rem; letter-spacing: -.01em; }
.rate-block-title .muted { font-size: .82rem; }
.rate-fields { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .95rem; }
.rate-fields .form-field { margin-bottom: 0; min-width: 110px; }
.rate-fields .form-field input, .rate-fields .form-field select { width: 100%; }
.rate-save { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; flex-wrap: wrap; }
.rate-hint { font-size: .8rem; }
.rate-save button { height: 44px; min-width: 120px; }
@media (max-width: 560px) {
  .rate-block-head { align-items: flex-start; }
  .rate-save { justify-content: stretch; }
  .rate-save button { flex: 1; }
}

/* ============================================================
   Tidsregistrering v3 — alert-boks, eksport, medarbejderkort
   ============================================================ */

/* ---- Alert box ---- */
.alert-modal-card { width: min(440px, 100%); }
.alert-modal-body { display: flex; gap: 1rem; padding: 1.4rem 1.4rem .4rem; }
.alert-modal-icon { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--yellow) 18%, transparent); color: var(--yellow); }
.alert-modal-icon.tone-danger { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.alert-modal-icon.tone-info { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.alert-modal-text h3 { margin: .15rem 0 .35rem; font-size: 1.1rem; }
.alert-modal-text p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .92rem; }
.alert-modal-actions { display: flex; justify-content: flex-end; padding: 1rem 1.4rem 1.4rem; }
.alert-modal-actions button { min-width: 96px; }

/* ---- Eksport-menu ---- */
.export-menu { position: relative; display: inline-block; }
.export-toggle { white-space: nowrap; }
.export-pop {
  position: absolute; right: 0; top: calc(100% + .4rem); z-index: 60;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: .35rem; min-width: 150px;
  display: flex; flex-direction: column; gap: .15rem; animation: pop .14s ease;
}
.export-pop button {
  width: 100%; justify-content: flex-start; background: transparent; color: var(--text);
  border: 0; box-shadow: none; padding: .55rem .7rem; font-size: .86rem; font-weight: 600; border-radius: 9px;
}
.export-pop button:hover { background: var(--panel-2); color: var(--accent-ink); transform: none; }

/* ---- Medarbejdersøgning ---- */
.emp-search { position: relative; margin-bottom: .9rem; }
.emp-search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.emp-search input { padding-left: 2.3rem; min-height: 42px; border-radius: 999px; }

/* ---- Forbedret medarbejderkort ---- */
.emp-card { align-items: center; gap: .75rem; padding: .75rem .85rem; }
.emp-avatar {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center;
  font-size: .9rem; font-weight: 800; letter-spacing: .02em;
  background: color-mix(in srgb, var(--accent) 20%, var(--panel)); color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent-ink) 30%, transparent);
}
.emp-avatar.is-admin { background: color-mix(in srgb, var(--green) 20%, var(--panel)); color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.emp-name-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.emp-name { font-size: .95rem; letter-spacing: -.01em; color: #f1f1f1; }
.emp-card.active .emp-name { color: #f1f1f1; }
.emp-flag { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); padding: .1rem .4rem; border-radius: 999px; }
.emp-card.is-inactive { opacity: .72; }

/* Medarbejdernavn i detaljevisningen — #f1f1f1 i stedet for accentfarven */
#empName { color: #f1f1f1; }

/* ---- Eksport: periodevælger (måned / år) ---- */
.export-pop { min-width: 190px; }
.export-period { display: flex; gap: .2rem; padding: .15rem; margin-bottom: .3rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; }
.export-per { flex: 1; background: transparent; color: var(--muted); border: 0; box-shadow: none; padding: .4rem .5rem; font-size: .78rem; font-weight: 700; border-radius: 7px; }
.export-per:hover { color: var(--text); transform: none; background: transparent; }
.export-per.active { background: var(--accent); color: var(--on-accent); }
.export-per.active:hover { background: var(--accent-2); }
.export-formats { display: flex; flex-direction: column; gap: .15rem; }
