/* Workforce Operations — app.css
   Professionelt SaaS-dashboard. Mobile-first. Vanilla CSS, ingen frameworks. */

:root {
  --wfo-bg: #f4f6fa;
  --wfo-surface: #ffffff;
  --wfo-surface-2: #f8fafc;
  --wfo-ink: #1f2733;
  --wfo-ink-soft: #5b6675;
  --wfo-line: #e3e8ef;
  --wfo-brand: #2f5fe0;
  --wfo-brand-ink: #1b3da3;
  --wfo-accent: #0fb39a;
  --wfo-warn: #e0a106;
  --wfo-danger: #d8492f;
  --wfo-ok: #1f9d57;
  --wfo-radius: 12px;
  --wfo-shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 6px 20px rgba(20, 30, 50, .06);
  --wfo-sidebar-w: 248px;
  --wfo-font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--wfo-font);
  color: var(--wfo-ink);
  background: var(--wfo-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wfo-brand); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 650; }

/* ---------- Shell ---------- */
.wfo-app { min-height: 100vh; }
.wfo-shell { display: flex; min-height: 100vh; }

.wfo-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ---------- Sidebar ---------- */
.wfo-sidebar {
  width: var(--wfo-sidebar-w);
  background: #101a2e;
  color: #c7d0de;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.wfo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.wfo-brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--wfo-brand);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: .5px;
}
.wfo-brand-text { font-size: 13px; line-height: 1.2; color: #e7ecf5; }
.wfo-brand-text b { font-size: 15px; }

.wfo-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.wfo-nav-group {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #6b7790;
  padding: 14px 10px 6px;
}
.wfo-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #c7d0de;
  font-size: 14px;
  margin-bottom: 2px;
}
.wfo-nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.wfo-nav-item--active { background: var(--wfo-brand); color: #fff; }
.wfo-nav-icon { width: 20px; text-align: center; }

.wfo-sidebar-foot { padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .07); }

/* ---------- Topbar ---------- */
.wfo-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: var(--wfo-surface);
  border-bottom: 1px solid var(--wfo-line);
  position: sticky; top: 0; z-index: 20;
}
.wfo-burger {
  display: none;
  font-size: 20px;
  background: none; border: none; cursor: pointer; color: var(--wfo-ink);
}
.wfo-topbar-title h1 { font-size: 19px; }
.wfo-topbar-title p { margin: 2px 0 0; font-size: 13px; color: var(--wfo-ink-soft); }
.wfo-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.wfo-company { text-align: right; line-height: 1.25; }
.wfo-company-name { display: block; font-weight: 600; font-size: 14px; }
.wfo-company-role { display: block; font-size: 12px; color: var(--wfo-ink-soft); }
.wfo-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--wfo-brand); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.wfo-logout {
  background: var(--wfo-surface-2);
  border: 1px solid var(--wfo-line);
  border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: 13px;
}
.wfo-logout:hover { background: #eef1f6; }

/* ---------- Content ---------- */
.wfo-content { padding: 24px; }
.wfo-page-intro { margin-bottom: 18px; color: var(--wfo-ink-soft); font-size: 14px; }

/* ---------- Cards & grid ---------- */
.wfo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.wfo-card {
  background: var(--wfo-surface);
  border: 1px solid var(--wfo-line);
  border-radius: var(--wfo-radius);
  box-shadow: var(--wfo-shadow);
  padding: 18px;
}
.wfo-card h3 { font-size: 14px; color: var(--wfo-ink-soft); font-weight: 600; }
.wfo-stat { font-size: 30px; font-weight: 750; margin-top: 6px; }
.wfo-stat-sub { font-size: 12px; color: var(--wfo-ink-soft); margin-top: 4px; }

.wfo-section { margin-top: 26px; }
.wfo-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.wfo-section-head h2 { font-size: 16px; }

/* ---------- Tables ---------- */
.wfo-table-wrap {
  background: var(--wfo-surface);
  border: 1px solid var(--wfo-line);
  border-radius: var(--wfo-radius);
  box-shadow: var(--wfo-shadow);
  overflow: auto;
}
table.wfo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wfo-table th, .wfo-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--wfo-line);
  white-space: nowrap;
}
.wfo-table th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--wfo-ink-soft); background: var(--wfo-surface-2);
}
.wfo-table tr:last-child td { border-bottom: none; }
.wfo-table tr:hover td { background: var(--wfo-surface-2); }

/* ---------- Badges / status ---------- */
.wfo-badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  background: #eef1f6; color: var(--wfo-ink-soft);
}
.wfo-badge--demo { background: #fff3d6; color: #8a6400; }
.wfo-badge--live { background: #d9f5e6; color: #0c7a40; }
.wfo-badge--ok { background: #d9f5e6; color: #0c7a40; }
.wfo-badge--warn { background: #fdeccd; color: #8a5a00; }
.wfo-badge--danger { background: #fbe0da; color: #97291a; }
.wfo-badge--info { background: #e0e9ff; color: #1b3da3; }

/* ---------- Buttons ---------- */
.wfo-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--wfo-brand); color: #fff; border: none;
  border-radius: 9px; padding: 9px 15px; font-size: 14px; cursor: pointer;
  font-family: inherit;
}
.wfo-btn:hover { background: var(--wfo-brand-ink); }
.wfo-btn--ghost { background: var(--wfo-surface); color: var(--wfo-ink); border: 1px solid var(--wfo-line); }
.wfo-btn--ghost:hover { background: var(--wfo-surface-2); }

/* ---------- Forms ---------- */
.wfo-form { display: grid; gap: 14px; max-width: 460px; }
.wfo-field { display: grid; gap: 5px; }
.wfo-field label { font-size: 13px; font-weight: 600; }
.wfo-field input, .wfo-field select, .wfo-field textarea {
  padding: 10px 12px; border: 1px solid var(--wfo-line);
  border-radius: 9px; font-size: 14px; font-family: inherit; background: #fff;
}
.wfo-field input:focus, .wfo-field select:focus, .wfo-field textarea:focus {
  outline: none; border-color: var(--wfo-brand);
  box-shadow: 0 0 0 3px rgba(47, 95, 224, .15);
}

/* ---------- Privacy note ---------- */
.wfo-privacy {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff8e6; border: 1px solid #f1dca0;
  border-radius: var(--wfo-radius); padding: 14px 16px;
  font-size: 13px; color: #6b5410; margin-bottom: 16px;
}
.wfo-privacy strong { color: #5a4400; }

/* ---------- Map ---------- */
#wfo-map { height: 460px; border-radius: var(--wfo-radius); border: 1px solid var(--wfo-line); }

/* ---------- Login ---------- */
.wfo-auth {
  min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(1200px 600px at 70% -10%, #2f5fe0 0%, #101a2e 55%);
  padding: 24px;
}
.wfo-auth-card {
  width: 100%; max-width: 400px; background: #fff;
  border-radius: 16px; box-shadow: 0 20px 60px rgba(10, 20, 40, .35);
  padding: 30px;
}
.wfo-auth-card .wfo-brand { border: none; padding: 0 0 18px; }
.wfo-auth-hint { font-size: 12px; color: var(--wfo-ink-soft); margin-top: 14px; text-align: center; }

/* ---------- Utility ---------- */
.wfo-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wfo-spacer { flex: 1; }
.wfo-muted { color: var(--wfo-ink-soft); }
.wfo-list-reset { list-style: none; margin: 0; padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wfo-burger { display: inline-block; }
  .wfo-sidebar {
    position: fixed; left: 0; top: 0; z-index: 40;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, .4);
  }
  .wfo-sidebar--open { transform: translateX(0); }
  .wfo-company { display: none; }
  .wfo-content { padding: 16px; }
}

/* =========================================================================
   LANDING / FORSIDE (index.html) + ROLE SHOWCASE
   Ren HTML/CSS/JS — ingen backend. EWCP navy/blå.
   ========================================================================= */
.ewcp-landing { background: #f4f6fa; color: #16203a; overflow-x: hidden; }

/* ---- Nav ---- */
.ewcp-nav { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 20px; }
.ewcp-nav-logo { text-decoration: none; }
.ewcp-nav-logo .mark { font-size: 26px; font-weight: 800; letter-spacing: -1px; color: #16203a; position: relative; display: inline-block; }
.ewcp-nav-logo .mark::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -5px; height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, #16c0e8 0 38%, #2f5fe0 38% 82%, #e0349a 82% 100%); }
.ewcp-nav-links { display: flex; align-items: center; gap: 16px; }
.ewcp-nav-link { color: #16203a; font-weight: 600; text-decoration: none; }
.ewcp-nav-link:hover { color: #2f5fe0; }

/* ---- Buttons (landing) ---- */
.ewcp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; border: 1px solid #e6e9f0; background: #fff; color: #16203a; text-decoration: none; }
.ewcp-btn--primary { background: #2f5fe0; color: #fff; border-color: #2f5fe0; }
.ewcp-btn--primary:hover { background: #1b3da3; }
.ewcp-btn--ghost { background: #fff; color: #16203a; }
.ewcp-btn--ghost:hover { background: #eef1f6; }
.ewcp-btn--lg { padding: 13px 22px; font-size: 15px; }

/* ---- Hero ---- */
.ewcp-hero { max-width: 880px; margin: 0 auto; text-align: center; padding: 48px 20px 28px; }
.ewcp-eyebrow { color: #2f5fe0; font-weight: 700; font-size: 13px; letter-spacing: .4px; margin: 0; }
.ewcp-hero h1 { font-size: 48px; color: #16203a; font-weight: 800; line-height: 1.05; margin: 14px 0; }
.ewcp-hero-sub { font-size: 18px; color: #2a3550; margin: 0; }
.ewcp-hero-sub-da { font-style: italic; color: #8a94a6; margin: 6px 0 0; }
.ewcp-hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---- CTA + footer ---- */
.ewcp-cta { padding: 56px 20px; }
.ewcp-cta-card { max-width: 780px; margin: 0 auto; background: linear-gradient(120deg, #2f5fe0, #16203a); color: #fff;
  border-radius: 22px; padding: 44px; text-align: center; }
.ewcp-cta-card h2 { font-size: 28px; }
.ewcp-cta-card p { opacity: .9; margin-top: 8px; }
.ewcp-cta-card .ewcp-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.ewcp-cta-card .ewcp-btn--ghost:hover { background: rgba(255,255,255,.12); }
.ewcp-footer { text-align: center; padding: 28px; color: #8a94a6; font-size: 13px; }

/* ---- Role showcase ---- */
.rs-section { background: #eef1f6; padding: 64px 20px; overflow-x: hidden; }
.rs-wrap { max-width: 1180px; margin: 0 auto; }
.rs-head { text-align: center; margin-bottom: 28px; }
.rs-head h2 { font-size: 34px; color: #16203a; font-weight: 800; }
.rs-sub { max-width: 760px; margin: 12px auto 0; color: #4a5365; font-size: 16px; }
.rs-sub-da { max-width: 760px; margin: 6px auto 0; color: #8a94a6; font-style: italic; font-size: 15px; }
.rs-card { background: #fff; border-radius: 22px; box-shadow: 0 10px 40px rgba(20,30,50,.08); padding: 18px;
  width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }

/* Tabs: ALLE knapper på én linje, centreret, ingen slider. Mindre + krymper. */
.rs-tabs { display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px; width: 100%; max-width: 100%;
  box-sizing: border-box; padding: 8px 4px 16px; }
.rs-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #e6e9f0; background: #fff;
  border-radius: 999px; font-size: 13px; font-weight: 600; color: #16203a; cursor: pointer; font-family: inherit;
  flex: 0 1 auto; min-width: 0; overflow: hidden; }
.rs-tab:hover { background: #f5f7fb; }
.rs-tab--active { background: #eaf0ff; color: #2f5fe0; border-color: #c5d4f5; }
.rs-tab-ic { font-size: 15px; flex: 0 0 auto; }
.rs-tab-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rs-panel { padding: 14px 18px 24px; }
.rs-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.rs-body > * { min-width: 0; } /* grid-children må krympe — undgå overflow */

/* illustration / orbit */
.rs-illustration { position: relative; display: flex; align-items: center; justify-content: center; min-height: 480px; min-width: 0; }
.rs-orbit { position: absolute; border: 1.5px dashed #d4dcec; border-radius: 50%; width: 300px; height: 300px; }
.rs-orbit-2 { width: 430px; height: 430px; }
.rs-avatar { width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #eaf0ff, #cdd9f7);
  display: grid; place-items: center; font-size: 92px; box-shadow: 0 12px 34px rgba(20,30,50,.14); position: relative; z-index: 1; overflow: hidden; }
.rs-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
/* Modul-illustrationer vises HELT (ingen beskæring) i det eksisterende billedfelt. */
#modules .rs-avatar-img { object-fit: contain; padding: 10px; }
.rs-avatar-fallback { display: none; }
/* Neutral EWCP-placeholder (ingen ugodkendt menneske-avatar). */
.rs-avatar--noimg .rs-avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 32%, #eaf0ff, #d4def5); }
.rs-ph { font-weight: 800; letter-spacing: 2px; font-size: 26px; color: #2f5fe0; }
.rs-mini { position: absolute; z-index: 2; display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid #eceff5;
  border-radius: 14px; box-shadow: 0 8px 24px rgba(20,30,50,.1); padding: 11px 13px; width: 205px; }
.rs-mini-body { min-width: 0; }
/* Kort i hjørnerne — holder midten (avatarens ansigt) fri og bliver inden for boksen. */
.rs-slot-1 { top: 2%; left: 0; }
.rs-slot-2 { top: 7%; right: 0; }
.rs-slot-3 { top: 45%; left: 0; }
.rs-slot-4 { bottom: 15%; right: 0; }
.rs-slot-5 { bottom: 0; left: 50%; transform: translateX(-50%); }
.rs-mini-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; flex: 0 0 34px; }
.rs-acc-green { background: #e3f5ea; color: #1f9d57; }
.rs-acc-blue { background: #e6edff; color: #2f5fe0; }
.rs-acc-purple { background: #efe9fb; color: #6b46c1; }
.rs-acc-amber { background: #fdf0d6; color: #a9750a; }
.rs-mini-title { font-size: 11px; font-weight: 600; color: #5b6675; line-height: 1.25; }
.rs-mini-value { font-size: 15px; font-weight: 700; color: #16203a; line-height: 1.2; margin-top: 3px; overflow-wrap: anywhere; }
.rs-mini-sub { font-size: 11px; color: #8a94a6; line-height: 1.3; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* right content */
.rs-content { padding: 8px 6px; min-width: 0; }
.rs-eyebrow { display: flex; align-items: center; gap: 7px; color: #2f5fe0; font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.rs-title { font-size: 40px; color: #16203a; font-weight: 800; line-height: 1.05; margin: 0 0 16px; }
.rs-desc { font-size: 17px; color: #2a3550; margin: 0 0 6px; }
.rs-desc-da { font-size: 15px; color: #7b8499; font-style: italic; margin: 0 0 22px; }
.rs-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rs-bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.rs-check { width: 22px; height: 22px; border-radius: 50%; background: #2f5fe0; color: #fff; display: grid; place-items: center;
  font-size: 12px; flex: 0 0 22px; margin-top: 1px; }
.rs-bullet-txt { line-height: 1.4; }
.rs-bullets b { color: #16203a; font-weight: 700; }
.rs-bullets i { color: #7b8499; font-style: italic; }

@media (max-width: 900px) {
  .ewcp-hero h1 { font-size: 34px; }
  .ewcp-nav-link { display: none; }
  .rs-head h2 { font-size: 26px; }
  .rs-title { font-size: 28px; }
  .rs-body { grid-template-columns: 1fr; gap: 18px; }
  .rs-illustration { flex-direction: column; min-height: auto; gap: 12px; }
  .rs-orbit { display: none; }
  .rs-avatar { width: 130px; height: 130px; font-size: 62px; }
  .rs-mini { position: static !important; width: 100%; transform: none !important; }
}

/* Mobil: tabs wrapper til flere linjer (INGEN slider/scroll). */
@media (max-width: 760px) {
  .rs-tabs { flex-wrap: wrap; justify-content: center; }
  .rs-tab { flex: 0 0 auto; }
}

/* "Læs mere" i showcase-panelet (kun moduler). */
.rs-readmore { margin-top: 18px; display: inline-flex; }

/* Genbrugt link-stil. */
.ewcp-link { color: #2f5fe0; cursor: pointer; text-decoration: none; font-weight: 600; }
.ewcp-link:hover { text-decoration: underline; }

/* =========================================================================
   MODUL-DETALJESIDE (module-detail.html) — samme visuelle stil som kortene
   ========================================================================= */
.md-wrap { max-width: 1080px; margin: 0 auto; padding: 24px 20px 56px; }
.md-muted { color: #8a94a6; }
.md-hero { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 30px; align-items: center;
  background: #fff; border-radius: 22px; box-shadow: 0 10px 40px rgba(20,30,50,.08); padding: 26px; margin-bottom: 22px; }
.md-hero-img-wrap { width: 100%; height: 300px; display: flex; align-items: center; justify-content: center;
  background: #f4f6fa; border-radius: 18px; overflow: hidden; }
.md-hero-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.md-eyebrow { color: #2f5fe0; font-weight: 700; font-size: 13px; margin: 0 0 8px; }
.md-hero-text h1 { font-size: 38px; color: #16203a; font-weight: 800; line-height: 1.05; margin: 0 0 12px; }
.md-intro { font-size: 17px; color: #2a3550; margin: 0; }
.md-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.md-section { background: #fff; border-radius: 18px; box-shadow: 0 10px 40px rgba(20,30,50,.06);
  padding: 22px 24px; margin-bottom: 16px; }
.md-section h2 { font-size: 20px; color: #16203a; margin-bottom: 14px; }
.md-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.md-bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #2a3550; }
.md-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.md-feature { background: #f7f9fc; border: 1px solid #e6e9f0; border-radius: 12px; padding: 12px 14px; font-weight: 600; color: #16203a; }
.md-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.md-tag { background: #eaf0ff; color: #2f5fe0; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.md-integrations { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.md-int-link { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e6e9f0;
  border-radius: 12px; padding: 10px 14px; text-decoration: none; color: #16203a; font-weight: 600; }
.md-int-link:hover { background: #f5f7fb; }

@media (max-width: 760px) {
  .md-hero { grid-template-columns: 1fr; }
  .md-hero-img-wrap { height: 220px; }
  .md-hero-text h1 { font-size: 30px; }
}
