:root {
    --dark: #1B1B1B;
    --main: #2563eb;
    --main-soft: #f3f8ff;
    --text: #302F2B;
    --white: #fff;
    --gray: #6b7280;
    --gray-soft: #94a3b8;
  
    --bg: #f8fafc;
  
    --help: #7c3aed;
    --help-bg: #ede9fe;
  
    --high: #166534;
    --high-bg: #dcfce7;
  
    --medium: #92400e;
    --medium-bg: #fef3c7;
  
    --low: #af1e1e;
    --low-bg: #fedbdb;
  
    --risk: #af1e1e;
    --risk-bg: linear-gradient(135deg, rgba(249, 115, 22, .08) 0%, rgba(249, 115, 22, .02) 100%);
  
    --info: #1d4ed8;
    --info-bg: linear-gradient(135deg, rgba(37, 99, 235, .08) 0%, rgba(37, 99, 235, .02) 100%);
  
    --color-d: #d64545;
    --color-i: #f5a623;
    --color-s: #7ed321;
    --color-c: #4a90e2;
  
    --radius-o: 999px;
    --radius: 25px;
  
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.09);
  
    --border-gray: 1px solid #6b7280;
    --border-main: 1px solid #2563eb;
    --border-light: 1px solid #e9edf5;
  
    --gab20: 20px;
    --gab40: 40px;
}

html{
  scroll-behavior: smooth;
}

/* =========================
   TYPOGRAPHY
========================= */

h1 {
  color: var(--dark);
  font-size:42px;
  margin-bottom:10px;
}
h2 {
  color: var(--main);
  margin: 5px 0;
}
h3 {
  color:  var(--dark);
  margin: 20px 0 5px;
}
h3 span{
    font-size: 18px;
    display: block;
    color: var(--gray);
    font-weight: normal;
    line-height: 1.8;
}
h4 {
    color: var(--dark);
    margin: 30px 0 -10px;
    font-size: 40px;
}
p {
  color: var(--text);
  line-height:1.6;
  margin: 0;
}

/* =========================
   BASE
========================= */

body{
  margin:0;
  font-family:Arial;
    background:
    radial-gradient(circle at top left,
    rgba(74,144,226,0.15),
    transparent 30%),

    radial-gradient(circle at bottom right,
    rgba(74,144,226,0.15),
    transparent 30%),

    var(--bg);
}
.hidden{
  display: none !important;;
}
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

a:hover,
a:focus {
  color: var(--main);
  text-decoration: none;
}
button{
  background: var(--dark);
  color: var(--bg);
  border: var(--border-gray);
  padding: 25px 50px;
  font-size: 17px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 25px;
  box-shadow: var(--shadow);
  transition-duration: 0.3s; /* Smooth transition */
}
button:hover {
  background: var(--main);
  color: var(--white);
  border: var(--border-main);
}

/* Dashboardets egne knapper skal IKKE arve border fra den
   generiske button:hover ovenfor - den er lavet til de gamle
   sider (login/test/forside) og "lækker" ellers en mørk
   border ind i et splitsekund på hover her */

.nav-item:hover,
.mobile-nav-toggle:hover,
.expand-btn-app:hover,
.action-modal-close:hover,
.dev-range-btn:hover,
.coach-nav-btn:hover,
.compare-select-btn:hover,
.tooltip-btn:hover,
.member-chip:hover{
  border: var(--border-light);
}

.nav-item:hover{
  border: none;
}

.logout:hover {
  background: var(--color-d);
  border: 1px solid var(--color-d);
}

.smallBTN{
  background: var(--bg);
  color: var(--text);
  padding: 5px 20px;
  box-shadow: none;
  margin-top: 0;
}
.smallBTN:hover {
  background: var(--main);
  color: var(--white);
  border: var(--border-main);
  box-shadow: none;
}
.icon-btn{
  background: var(--bg);
  padding: 0;
  box-shadow: none;
  border: none;
  margin-top: 0;
  cursor:pointer;
  transition: all 0.3s ease;
}
.icon-btn:hover {
  background: var(--bg);
  padding: 0;
  box-shadow: none;
  border: none;
}

.login-bt{
  padding: 10px 20px;
  margin: 0;
  transition: all 0.3s ease;
}

/* =========================
   NAV
========================= */

nav{
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 30px;
  box-sizing: border-box; /* 🔥 FIX */
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: transparent;
  transition: all 0.3s ease;
}
/* venstre */
.nav-left{
  font-weight: 700;
  font-size: 18px;
}
/* højre */
.nav-right{
  display: flex;
  align-items: center;
  gap: var(--gab20);
}
.nav-right a {
  padding-top: 4px;
}

#role{
  padding: 10px 0;
}
.role{
  background: var(--bg);
  color: var(--main);
  position: relative;
  border-radius: var(--radius);
  padding: 10px 20px;
  margin-right: -15px;
}

/* badge */
.badge{
  display: inline-block;
  background: var(--main);
  color: var(--gray);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  margin: 0 10px 20px 0;
}

/* =========================
   LAYOUT
========================= */

.tabs{
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.tab{
  padding:  15px 20px;
  background: var(--white);
  border-radius: var(--radius-o);
  cursor: pointer;
  border: var(--border-gray);
  font-size: 17px;
  color: var(--text);
  text-transform: capitalize;
  transition: all 0.3s ease;
}
.tab:hover{
  border: var(--border-main);
  color: var(--main);
}

.tab.team {
  background: var(--gray);
  color: var(--white);
  border-radius: var(--radius-o);
  font-weight: 600;
  padding: 15px 41px;
}

.tab.active{
  background: var(--main);
  color: var(--white);
}

.grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gab20);
}

.grid .card{
  padding: 40px 0;
}

#questionText{
  font-size: 40px;
  line-height: 1.05;
  margin: 25px 0;
  color: var(--dark);
}
#questionText span{
  font-size: 20px;
  line-height: normal;
  display: block;
  color: var(--dark);
}

.answer-card{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gab20);
  padding: 5px 0;
}
.answer-header{
  display: contents;
  max-width: 750px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.8;
  color: var(--text);
}
.answer-letter{
  font-weight: 600;
}
.answer-actions{
  margin-left: auto;
}
.pick-btn{
  border: var(--border-gray);
  padding: 10px 25px;
  font-size: 17px;
  border-radius: var(--radius-o);
  cursor: pointer;
  margin-top: 0;
}
.pick-btn.most-btn.active{
  background: var(--main);
  color: var(--white);
}
#empName{
  text-align: center;
  width: 45%;
  margin: 20px 0 60px 0;
  border: var(--border-gray);
  font-size: 20px;
}
#questionTitle{
  margin: 10px 0 0 0;
}
#questionCategory{
  font-size: 15px;
  line-height: 0.8;
  color: var(--gray);
}

/* =========================
   CARDS / UI
========================= */

.card{
  background:var(--white);
  padding:40px;
  border-radius: var(--radius);
  margin-bottom:15px;
  box-shadow: var(--shadow);
}

.card ul {
    padding: 1px 20px;
}
.card ul li {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

/* =========================
   TEAM ANALYTICS
========================= */

.team-analytics{
  margin-top:20px;
}

.analytics-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap: var(--gab20);
  margin-top:20px;
}

.analytics-box{
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
}

.analytics-box h3{
  font-size: 30px;
  margin: 10px 0 0;
  text-align: center;
}

/* =========================
   BARS
========================= */

.bars{
  display: flex;
  flex-direction: column;
  gap: var(--gab20);
  margin-top: 20px;
}

/* 🔥 FIX: gør row til flex */
.bar-row,
.bipolar-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
}

/* label venstre */
.bar-label{
  font-size: 15px;
  padding: 0 0 3px 0;
  width: 120px; /* gør layout stabilt */
}

/* bar container */
.bar-track{
  flex: 1; /* 🔥 fylder resten af pladsen */
  height: 20px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* selve fill */
.bar-fill{
  height: 100%;
  width: 0%;
  border-radius: var(--radius);
  transition: width 0.8s ease;
}

/* value til højre */
.bar-value{
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  width: 50px; /* mere stabil end 6% */
  display: flex;
  justify-content: flex-end;
  align-items: center; /* 🔥 vertikal center fix */
  font-variant-numeric: tabular-nums; /* pro look */
}
.bar-value-in{
  font-size: 18px;
  font-weight: 300;
}

/* =========================
   BIPOLAR BAR (Teamenergi/Arbejdstempo)
========================= */

.bipolar-track{
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bipolar-end{
  font-size: 15px;
  white-space: nowrap;
  width: 75px;
  text-align: center;
}

.bipolar-bar{
  position: relative;
  flex: 1;
  height: 20px;
  border-radius: var(--radius-o);
  background: linear-gradient(
    to right,
    var(--white),
    rgba(0, 0, 0, 0) 50%,
    var(--white)
  );
}

.bipolar-marker{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 25px;
  background: var(--main);
  border-radius: var(--radius-o);
  transform: translate(-50%, -50%);
  transition: left 0.8s ease;
}

.work-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.work-tag{
  background:#eef1f5;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  color:#1f2a38;
  border:var(--border-gray);
}

.team-impact{
  margin-top:14px;
  padding-top:10px;
  border-top:1px solid #eee;
}

.team-impact h4{
  margin:0 0 5px 0;
  font-size:13px;
  color:#1f2a38;
}

.team-impact p{
  margin:0;
  font-size:13px;
  color:#555;
  line-height:1.4;
}

/* =========================
   TEAM DNA
========================= */

.team-dna{
  margin-top: 30px;
}

.team-dna-header{
  margin: 70px 0 30px;
  text-align: center;
  font-size: 40px;
}

.team-dna-header p{
  line-height: 1.6;
  font-size: 20px;
}

.team-dna ul{
  padding: 0;
  margin: 0 0 15px 0;
}

.team-dna ul li{  
  background: var(--white);
  color: var(--text);
  border: var(--border-gray);
  padding: 13px 50px;
  font-size: 17px;
  border-radius: var(--radius-o);
  margin-top: 15px;
}

/* =========================
   ADVANCED INSIGHTS
========================= */

.advanced-insights{
  margin-top:30px;
}

.insight-grid{
  display: grid;
  grid-template-columns:repeat(3,1fr);
  gap: var(--gab20);
  margin-bottom: 25px;
}

.insight-card {
  background: var(--bg);
  padding: 22px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 86%;
}

.insight-card ul li {
  max-width: 750px;
  margin: 0 auto -10px;
  font-size: 20px;
  line-height: 1.8;
  color: var(--gray);
}

.insight-card ul li span{
    background: var(--white);
    color: var(--text);
    padding: 10px 34px;
    margin: 15px 0 0;
    display: inline-block;
    border-radius: var(--radius-o);
    border: var(--border-gray);
    width: 25px;
    text-align: center;
}

.insight-score{
  font-size: 100px;
  font-weight: 700;
  color: var(--main);
  margin: 30px 0 0 0;
}

.analysis-grid{
  display:grid;
  grid-template-columns:1fr;
  gap: var(--gab20);
  margin-bottom:25px;
}

.analysis-box{
  background: var(--bg);
  border: var(--border-light);
  padding: 20px;
  border-radius: var(--radius);
}

.analysis-box .bipolar-row{
  margin-top: 14px;
}

.analysis-box h4{
  margin-bottom: 10px;
}

.risk-box{
  background: #fff5f5;
  border: var(--border-light);
  padding: 25px;
  border-radius: var(--radius);
}
.risk-box h3{
  font-size: 25px;
}
.risk-box ul li {
  max-width: none;
  margin: 0;
  font-size: 20px;
  line-height: 1.8;
  color: var(--text);
}

.advanced-insights ul{
  padding-left: 0;
  margin: 0 0 15px 0;
}

/* =========================
   FORMS
========================= */

input{
  padding: 12px 16px;
  width: 90%;
  margin: 6px 0;
  border-radius: var(--radius);
  font-size: 16px;
  border: var(--border-gray);
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  box-shadow: var(--shadow);
}

/* question inputs */
#qBox{
  margin: 20px 0 0;
  border-top: 1px solid #efefef;
  padding: 25px 0 0;
}

#qBox h3 {
  padding-bottom: 10px;
  font-size: 30px;
}

#qBox input{
  width:auto;
  margin:6px 8px 0 0;
}

#qBox label{
  display:block;
}

#progressText{
  font-size: 15px;
  padding: 15px 0 0 0;
  font-weight: 600;
}

/* =========================
   PROGRESSBAR
========================= */

.progressBar{
  height: 15px;
  background: #efefef;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0 0;
  position: relative;
}

/* moving bar */
#progressBar{
  height: 100%;
  width: 0%;
  border-radius: var(--radius);
  transition: width 0.5s ease;
  background: var(--main);
  background-size: 200% 200%;
  animation: gradientMove 4s ease infinite;
}

/* =========================
   TABLE
========================= */

table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

td,th{
    padding: 10px 0 10px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 16px;
}

.sortable-th{
  cursor: pointer;
  user-select: none;
}

.sortable-th:hover{
  color: var(--main);
}

/* =========================
   TEAM SCORE (Team Sundhed)
========================= */

.team-score-card{
  margin-bottom: 20px;
}

.team-score-headline{
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.team-score-headline h3{
  white-space: nowrap;
  margin: 0;
}

.team-score-bar-track{
  flex: 1;
  height: 22px;
  background: var(--white);
  border-radius: var(--radius-o);
  overflow: hidden;
}

.team-score-bar-fill{
  height: 100%;
  width: 0%;
  background: var(--main);
  border-radius: var(--radius-o);
  transition: width 0.8s ease;
}

.team-score-headline-val{
  font-size: 20px;
  font-weight: 700;
  min-width: 55px;
  text-align: right;
}

.score-bar{
  background: var(--main);
  opacity: 0.85;
}

.employee-analytics{
  box-shadow: none;
  background: transparent;
  text-align: left;
  font-size: 45px;
}

/* =========================
   HERO MODERN
========================= */

.hero-modern{
  min-height: calc(100dvh - 0px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 8%;
}

.hero-content{
  max-width: 900px;
  text-align: center;
}

.hero-badge{
  display: inline-block;
  padding: 10px 18px;
  background: var(--white);
  border-radius: var(--radius-o);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 5px 30px 5px;
  box-shadow: var(--shadow);
}

.hero-modern h1{
  font-size: 72px;
  line-height: 1.05;
  margin-bottom: 25px;
  color: var(--dark);
}

#analyticsTitle {
    font-size: 72px;
    line-height: 1.05;
    margin: 90px 0 50px;
    color: var(--dark);
    text-align: center;
}
.analytics-badge {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-o);
  background: var(--dark);
  color: var(--white);
  font-size: 35px;
  margin: -15px 0 0 15px;
  position: absolute;
}

.hero-modern h1 span{
  display: block;
  color: var(--main);
}

.hero-modern p{
  max-width: 750px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.8;
  color: var(--gray);
}

/* FEATURES */

.hero-features{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gab20);
  margin: 45px auto 45px;
}

.feature-pill{
  background: var(--white);
  border: var(--border-gray);
  padding: 14px 18px;
  border-radius: var(--radius-o);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow);
}

/* ACTIONS */

.hero-actions{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gab20);
  margin-top: 30px;
}

.hero-link{
  color: #374151;
  font-weight: 600;
  text-decoration: none;
}

.hero-link:hover{
  color: var(--main);
}

.scroll-down {
    color: var(--text);
    background: var(--white);
    border: 1px solid transparent;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s ease;
}

.scroll-down:hover{
  transform: translateY(-5px);
}

/* =========================
   LANDING SECTIONS
========================= */

.landing-section{
  padding: 100px 8%;
}

.landing-section.light{
  background: var(--white);
}

.section-header{
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.section-header h2{
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--dark);
}

.section-header p{
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.5;
  color: var(--gray);
}

/* =========================
   DASHBOARD PREVIEW
========================= */

.dashboard-preview{
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-preview img{
  width: 100%;
  max-width: 1200px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: var(--border-gray);
}

/* =========================
   AUDIENCE GRID
========================= */

.audience-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: var(--gab20);
}

.audience-card{
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s ease;
  position: relative;
}

.audience-card:hover{
  transform: translateY(-6px);
}

.audience-card h3{
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--dark);
}
.audience-card svg {
    width: 250px;
    height: 250px;
    stroke: var(--main);
    stroke-width: 0.9;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
  transition: opacity 0.3s ease;
}
.audience-card:hover svg{
  opacity: 0.01;
}

.audience-card p{
  color: var(--text);
  line-height: 1.7;
}

.audience-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.audience-card li {
  margin: 8px 0;
}

/* =========================
   STATS
========================= */

.stats-grid{
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(240px,1fr));
  gap: var(--gab20);
  margin-top: 60px;
}

.stat-card{
  background: var(--white);
  color: var(--main);
  padding: 40px 20px;
  border-radius: var(--radius);
  border: var(--border-gray);
  text-align: center;
  transition: 0.3s ease;
}

.stat-card:hover{
  transform: translateY(-6px);
}

.stat-card svg{
  width: 60px;
  height: 60px;
  stroke: var(--text);
  stroke-width: 1.8;
  margin-bottom: 10px;
  transition: 0.3s ease;
}

.stat-card:hover svg{
  stroke: var(--main);
}


.stat-card h3{
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}

.stat-card p{
  opacity: 0.85;
  font-size: 16px;
  color: var(--text);
}

.stats-section{
  padding: 120px 8%;
}


/* =========================
   DISC SECTION
========================= */

.disc-layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gab20);
  align-items: center;
}

.disc-info-card{
  background: var(--white);
  padding: 70px 45px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.disc-info-card h3{
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text);
}

.disc-info-card p{
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 25px;
}

.disc-info-card ul{
  margin-bottom: 30px;
  padding: 0;
  list-style: none;
}

.disc-info-card li{
  margin-bottom: 14px;
  color: var(--text);
}

.disc-grid-f {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gab20);
    justify-items: anchor-center;
}

.disc-card{
  padding: 35px;
  border-radius: 50%;
  text-align: center;
  color: var(--white);
  height: 230px;
  width: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
  border: 5px solid transparent;
}

.disc-card h3{
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--white);
}

.disc-card p{
  opacity: 0.92;
  color: var(--white);
}

/* =========================
   SPLIT HERO
========================= */

.split-hero{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gab40);

  align-items: center;
}

/* LEFT */

.hero-left h1{
  font-size: 68px;
  line-height: 1.05;
  margin: 25px 0;
  color: #111827;
}

.hero-left h1 span{
  display: block;
  color: var(--main);
}

.hero-left p{
  font-size: 20px;
  line-height: 1.8;
  color: var(--gray);

  margin-bottom: 35px;
}

.hero-badges{
  display: flex;
  gap: var(--gab20);
  flex-wrap: wrap;

  margin-bottom: 20px;
}

/* RIGHT */

.hero-right{
  display: flex;
  justify-content: center;
}

.login-card{
  width: 100%;
  max-width: 460px;
  background: var(--white);
  padding: 45px;
  border-radius: var(--radius);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.08);
  border: var(--border-gray);
}

.login-top{
  margin-bottom: 30px;
}

.login-top h2{
  font-size: 34px;
  margin-bottom: 12px;
  color: #111827;
}

.login-top p{
  color: var(--gray);
  line-height: 1.7;
}

/* FORM */

.login-form{
  display: flex;
  flex-direction: column;
  gap: var(--gab20);
}

.login-form input{
  height: 58px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 0 18px;
  font-size: 16px;
  outline: none;
  transition: 0.3s ease;
}

.login-form input:focus{
  border-color: var(--main);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.login-form button{
  margin-top: 10px;
}


/* =========================
   FOOTER
========================= */

footer{
  text-align: center;
  padding: 20px;
  color: var(--text);
  font-size: 12px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

.site-footer {
  background: transparent;
  color: var(--text);
  padding: 60px 20px 20px;
  margin: 0 0 60px 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gab40);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--dark);
}

.footer-column p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--gray);
  text-decoration: none;
  transition: 0.3s;
}

.footer-column ul li a:hover {
  color: var(--main);
  padding-left: 5px;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  padding: 10px;
  border: none;
  border-radius: 4px;
}

.newsletter-form button {
  padding: 10px;
  border: none;
  background: #ff5a5f;
  color: var(--white);
  cursor: pointer;
  border-radius: 4px;
  transition: 0.3s;
}

.newsletter-form button:hover {
  background: #e0484d;
}


/* =========================
   DISC CIRCLE
========================= */

.disc-circle{
  position: relative;
  width: 550px;
  height: 550px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition:
    background 0.8s ease,
    transform 0.3s ease;
  background:conic-gradient(
    var(--color-i) 0deg 90deg,
    var(--color-s) 90deg 180deg,
    var(--color-c) 180deg 270deg,
    var(--color-d) 270deg 360deg
  );
}
.disc-circle.animate{
  animation: discPulse 0.6s ease;
}

@keyframes discPulse{

  0%{
    transform: scale(0.96);
    opacity: 0.9;
  }

  100%{
    transform: scale(1);
    opacity: 1;
  }

}
/* center circle */
.disc-center{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 20px;
  font-weight: normal;
  box-shadow: var(--shadow);
  z-index: 2;
}

/* inner ring shadow */
.disc-circle::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.2);
  pointer-events: none;
}

/* DISC LABELS (JS POSITIONED) */
.cell{
  position:absolute;
  transform: translate(-50%, -50%);
  transition: all 0.35s ease;
  text-align:center;
  z-index:3;
}

/* tooltip */
.disc-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(31, 42, 56, 0.95);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  transform: translate(-50%, -120%);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.disc-tooltip.show {
  opacity: 1;
  transform: translate(-50%, -130%);
}

/* lille pil */
.disc-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(31, 42, 56, 0.95) transparent transparent transparent;
}

/* =========================
   DISC GRID (RESULT)
========================= */

.disc-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 340px;
  height: 340px;
  margin: auto;
  gap: 12px;
}

.cell{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  color: var(--white);
  font-weight: bold;
  padding: 50px;
}

.cell .label{font-size:30px;}
.cell .value{font-size:17px;margin-top:5px;}

.card .cell{
  cursor: help;
}

/* =========================================
   RESULT PAGE 2.0
========================================= */

#result{
  width:100%;
  max-width:1400px;
  margin:8% auto 0;
}

/* =========================================
   TOP
========================================= */

.result-top{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gab20);
  margin-bottom: 120px;
  text-align: center;
}

.result-top h1{
  font-size: 40px;
  line-height: 1;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: normal;
}

.result-actions{
  display:flex;
  gap: var(--gab20);
  flex-wrap:wrap;
}

/* =========================================
   PROFILE HERO
========================================= */

.profile-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--gab40);
  margin-bottom:60px;
}

.profile-hero-left{
  flex:1;
}

.profile-type{
  border-radius: var(--radius-o);
  background: transparent;
  border: var(--border-gray);
  color: var(--text);
  align-items: center;
  font-size: 30px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 40px auto 20px;
  padding: 10px;
}

.profile-tags{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:35px;
  place-self: anchor-center;
}

.profile-tag{
  padding:12px 18px;
  border-radius: var(--radius-o);
  background: var(--gray);
  font-size:14px;
  font-weight:600;
}

/* =========================================
   RESULT GRID
========================================= */

.result-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap: var(--gab40);
  align-items:start;
  margin-bottom: 120px;
}

/* =========================================
   ANALYTICS
========================================= */

.result-right{
  display: flex;
  flex-direction: column;
  gap: var(--gab20);
  justify-content: center;
  position: relative;
  height: -webkit-fill-available;
}

/* =========================================
   WORK TAGS
========================================= */

.work-tags{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.work-tag{
  padding:12px 18px;
  border-radius:999px;
  background:var(--bg);
  border:1px solid #e2e8f0;
  font-size:14px;
  font-weight:600;
}

/* =========================================
   PROFILE CONTENT
========================================= */

.profile-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap: var(--gab20);
  margin-top:50px;
}

.profile-box-r{
  background: var(--bg);
  padding: 22px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 250px;
}

.profile-box-r h4{
  font-size:22px;
  margin-bottom:18px;
}

.profile-box-r ul{
  padding-left: 0;
    margin: 0;
}

.profile-box-r ul li{
  max-width: 750px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.8;
  color: var(--gray);
  list-style: none;
  padding: 0;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0 -15px;
  width: 40px;
  padding: 10px 25px;
  border-radius: 999px;
  background: var(--text);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  /*box-shadow: var(--shadow);*/
}

.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}
.modal{
    width:750px;
    max-width:95%;
    background: var(--white);
    border-radius: var(--radius);
    padding:30px;
    box-shadow: var(--shadow);
}
.modal h2{
  font-size: 50px;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.form-group{
  display:flex;
  flex-direction:column;
  margin: 5px 0 10px 0px;
}

.form-group label{
  margin-bottom:6px;
  font-weight:600;
  font-size: 20px;
}

.form-group select{
  border: var(--border-gray);
  padding: 10px;
  font-size: 15px;
}

select{
  border-radius: var(--radius);
  padding: 10px 5px !important;
}

.password-row{
    display:flex;
    gap:10px;
    align-items:center;
}

.password-row input{
    flex:1;
}

.modal-actions{
    margin-top:30px;
    text-align:right;
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:1200px){

  .result-grid{
    grid-template-columns:1fr;
  }

  .disc-card{
    display:flex;
    justify-content:center;
  }

}

@media(max-width:1000px){

  .profile-hero{
    flex-direction:column;
    align-items:flex-start;
  }

  .profile-grid{
    grid-template-columns:1fr;
  }

}

@media(max-width:768px){

  .result-top{
    flex-direction:column;
    align-items:flex-start;
  }

  .result-top h1{
    font-size:46px;
  }

  .profile-hero h1{
    font-size:42px;
  }

  .profile-hero p{
    font-size:16px;
  }

  .disc-circle{
    width:320px;
    height:320px;
  }

  .disc-center{
    width:120px;
    height:120px;
  }

  .disc-center div{
    font-size:32px;
  }

  .cell{
    width:80px;
  }

  .cell .label{
    font-size:16px;
  }

  .cell .value{
    font-size:14px;
  }

  .cell.d{
    top:30px;
    right:55px;
  }

  .cell.i{
    bottom:55px;
    right:20px;
  }

  .cell.s{
    bottom:55px;
    left:20px;
  }

  .cell.c{
    top:30px;
    left:55px;
  }

}

@media(max-width:480px){

  .disc-circle{
    width:260px;
    height:260px;
  }

  .disc-center{
    width:95px;
    height:95px;
  }

  .disc-center div{
    font-size:24px;
  }

  .profile-type{
    width:75px;
    height:75px;
    font-size:28px;
  }

  .profile-hero h1{
    font-size:34px;
  }

  .analytics-card,
  .profile-box,
  .disc-card{
    padding:25px;
  }

}

/* =========================
   PRICING
========================= */

.pricing{
  text-align:center;
  padding:60px 20px;
}

.pricing-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  max-width:1000px;
  margin:20px auto;
}

.pricing .card{
  text-align:center;
}

/* =========================
   profile-card
========================= */

.headline {
  font-size: 50px;
  line-height: 1.05;
  margin: 0 0 20px 0;
  color: var(--dark);
}
.headline span{
  font-size: 50px;
  margin: 0;
  background: var(--white);
  padding: 5px 30px;
  color: var(--text);
  border-radius: var(--radius-o);
  box-shadow: var(--shadow);
}

.profile-intro {
  margin: 10px auto 35px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--gray);
  max-width: 900px;
}

.profile-badge{
  display:inline-block;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--bg);
  font-weight: 600;
  margin-bottom: 15px;
}

.profile-desc{
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 25px;
}

.profile-box{
  background: var(--bg);
  padding: 20px 40px;
  border-radius: var(--radius);
}

.profile-box h4{
    margin: 30px 0 10px;
    font-size: 35px;
}

.profile-box p{
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
}

.employee-name {
    text-transform: capitalize;
    display: contents;
}

/* COLORS (optional backgrounds if du bruger dem andre steder) */
.db{background:var(--color-d);}
.ib{background:var(--color-i);}
.sb{background:var(--color-s);}
.cb{background:var(--color-c);}

.dt{color:var(--color-d);}
.it{color:var(--color-i);}
.st{color:var(--color-s);}
.ct{color:var(--color-c);}

.profile-d{background:var(--color-d);}
.profile-i{background:var(--color-i);}
.profile-s{background:var(--color-s);}
.profile-c{background:var(--color-c);}

/* =========================
   ANIMATION
========================= */

@keyframes fadeIn{
from{opacity:0;transform:translateY(20px);}
to{opacity:1;transform:translateY(0);}
}


/* =========================
   RESPONSIVE
========================= */

/* LARGE TABLETS */
@media(max-width: 1100px){

  .hero-dual,
  .hero-container,
  .split-hero,
  .disc-layout,
  .grid,
  .analytics-grid{
    grid-template-columns: 1fr !important;
    flex-direction: column;
  }

  .hero-dual{
    padding: 40px 30px 80px;
  }

  .hero-modern{
    padding: 120px 30px;
  }

  .disc-circle{
    width: 380px;
    height: 380px;
  }

  .cell .label{
    font-size: 24px;
  }

  .hero-modern h1,
  #analyticsTitle{
    font-size: 56px;
  }

}

/* TABLETS */
@media(max-width: 900px){

  nav{
    flex-direction: row;
    gap: 0;
    padding: 20px;
    width: calc(100% - 0px);
  }

  .nav-right{
    flex-wrap: wrap;
    justify-content: center;
  }

  .insight-grid,
  .analysis-grid,
  .profile-grid,
  .pricing-grid,
  .disc-grid,
  .disc-grid-f{
    grid-template-columns: 1fr;
  }

  .hero-left,
  .hero-content{
    text-align: center;
  }
  
  td, th{
    font-size: 15px;
  }
  
  .profile-pill{
    margin: 0 0 0 5px;
    padding: 10px;
  }
  
  .login-form input{
    height: 50px;
    width: calc(100% - 32px);
    padding: 0 15px;
    font-size: 15px;
  }

  .hero-actions,
  .hero-features,
  .hero-badges{
    justify-content: center;
  }

  .analytics-badge{
    position: relative;
    display: inline-block;
    margin: 15px 0 0;
    font-size: 20px;
  }

  .disc-circle{
    width: 320px;
    height: 320px;
  }

  .disc-center{
    width: 90px;
    height: 90px;
    font-size: 16px;
  }

  .cell .label{
    font-size: 20px;
  }

  .cell .value{
    font-size: 14px;
  }

  table{
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

}

/* MOBILE */
@media(max-width: 768px){

  body{
    overflow-x: hidden;
  }
  
  .hero-modern {
    padding: 110px 20px 30px;
    display: flow;
  }

  .landing-section,
  .stats-section{
    padding: 55px 20px;
  }
  
  .nav-right a{
    display: none;
  }

  .card,
  .disc-info-card,
  .analytics-box,
  .profile-box{
    padding: 25px;
    width: initial !important;
    margin: 0 -20px;
  }

  .hero-modern h1,
  .hero-left h1,
  #analyticsTitle{
    font-size: 42px;
    line-height: 1.1;
  }

  .headline,
  .headline span{
    font-size: 38px;
  }

  .employee-name{
    font-size: 42px;
  }

  .hero-modern p,
  .hero-left p,
  .section-header p,
  .audience-card p{
    font-size: 15px;
    line-height: 1.7;
  }
  
  .mobile{
    display:none;
  }

  .section-header h2,
  .disc-info-card h3,
  .analytics-box h3{
    font-size: 30px;
  }
  
  .audience-card li{
    font-size: 15px;
  }
  
  .section-header {
    margin: 0 auto;
}

  .hero-actions{
    flex-direction: row;
    gap: 10px;
  }
  
  .hero-actions button{
    margin-top: 10px;
    font-size: 17px;
    padding: 15px 20px;
  }
  
  .hero-actions button:last-of-type{
    display:none;
  }

  button{
    width: auto;
  }
  
  .login-card{
    text-align: center;
    padding: 25px;
  }
  .login-top {
    margin-bottom: 15px;
  }

  .disc-grid-f{
    display:none;
  }
  
  .answer-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 15px 0;
    border-bottom: var(--border-light);
  }

  .answer-actions{
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .pick-btn{
    flex: 1;
    font-size: 15px;
  }
  
  .answer-header {
    display: inline-flex;
    margin: 0;
    font-size: 17px;
  }
  .answer-letter {
    margin-right: 5px;
}

  #questionText{
    font-size: 30px;
  }

  #empName{
    width: calc(100% - 40px);
  }

  .disc-circle{
    width: 260px;
    height: 260px;
  }

  .disc-center{
    width: 75px;
    height: 75px;
    font-size: 14px;
  }

  .cell .label{
    font-size: 16px;
  }

  .cell .value{
    font-size: 12px;
  }

  .hero-container-explain{
    grid-template-columns: 1fr 1fr;
  }

  .hero-container-explain div{
    width: 120px;
    height: 120px;
  }

  .bar-row{
    flex-direction: column;
    align-items: flex-start;
  }

  .bar-track{
    width: 100%;
  }

  footer{
    position: relative;
    width: auto;
  }

}

/* SMALL MOBILE */
@media(max-width: 480px){

  .hero-modern h1,
  .hero-left h1,
  #analyticsTitle{
    font-size: 34px;
  }

  .hero-badge,
  .badge{
    font-size: 12px;
    padding: 8px 12px;
    margin-bottom: 10px;
  }

  .disc-circle{
    width: 220px;
    height: 220px;
  }

  .hero-container-explain{
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .tabs{
    flex-direction: column;
  }

  .tab{
    width: auto;
    text-align: center;
  }

}

/* =========================
   PRINT
========================= */

@media print{
nav,.hidden,button,input{display:none!important;}
body{background:white;}
.card{box-shadow:none;border:none;}
}

/* =========================
   BRUGER-OVERSIGT (dashboard)
========================= */

.stats-lists{
  display: flex;
  flex-wrap: wrap;
  gap: var(--gab20);
  margin-top: 20px;
}

.stats-list-group{
  min-width: 180px;
}

.stats-list-group h4{
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}

.stats-list-group ul{
  padding: 0;
  margin: 0;
}

.stats-list-group li,
.tree-section li,
.tree-manager li{
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-list-group li{
  padding: 6px 12px;
  margin-bottom: 6px;
  background: var(--white);
  border: var(--border-gray);
  border-radius: var(--radius-o);
  font-size: 14px;
  gap: 8px;
}

.key-btn,
.delete-btn{
  color: var(--white);
  background: var(--bg);
}
.key-btn svg,
.delete-btn svg{
  transition: all 0.3s ease;
  stroke-width: 1px;
}

.key-btn:hover{
  background: var(--main-soft) !important;
  color: var(--main) !important;
}
.key-btn:hover svg{
  color: var(--main) !important;
}
.delete-btn:hover{
  background: #fff5f58c !important;
  color: var(--color-d) !important;
}
.delete-btn:hover svg{
  color: var(--color-d) !important;
}

.key-btn i,
.delete-btn i,
.expand-btn i{
  width: 14px;
  height: 14px;
}

.li-actions{
  display: flex;
  gap: 4px;
}

.stats-empty{
  font-size: 13px;
  opacity: 0.6;
}

.field-hint{
  display: block;
  font-size: 12px;
  opacity: 0.65;
  margin-top: 4px;
}

.expand-btn{
  color: var(--gray);
}
.expand-btn:hover{
  color: var(--gray);
}

.expand-btn svg{
  transition: transform 0.15s ease;
}

.expand-btn.expanded svg{
  transform: rotate(90deg);
  stroke-width: 1px;
}

.history-row{
  color: rgba(0, 0, 0, 0.3);
  font-style: italic;
  font-size: 13px;
}
.history-row .profile-pill,
.history-row .icon-btn{
  opacity: 0.3;
}

.history-indent{
  line-height: 1.5;
}

.delta-cell{
  font-size: 12px;
  white-space: nowrap;
}

.delta-up{
  color: var(--high);
  font-size: 12px;
  opacity: 1;
}

.delta-down{
  color: var(--low);
  font-size: 12px;
  opacity: 1;
}

.delta-neutral{
  color: var(--gray);
}

/* =========================
   RISIKO-TOOLTIP (Mulige Risici)
========================= */

.risk-tooltip-list li{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.info-icon{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: help;
}

.info-icon i{
  width: 11px;
  height: 11px;
}

.info-icon .tooltip-box{
    display: none;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-10%);
    width: 370px;
    background: var(--white);
    color: var(--text);
    border: var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 15px;
    font-size: 15px;
    font-weight: 400;
    text-align: left;
    z-index: 9999;
}

.info-icon:hover .tooltip-box,
.info-icon:focus .tooltip-box{
  display: block;
}

/* =========================
   FOLDBARE RISIKOPUNKTER (Risikovurdering)
========================= */

.risk-item{
  cursor: help;
}

.risk-item summary{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.risk-item summary::-webkit-details-marker{
  display: none;
}

.risk-chevron{
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.risk-item[open] .risk-chevron{
  transform: rotate(90deg);
}

.risk-advice{
  margin: 0 0 15px 20px !important;
  max-width: 850px !important;
  opacity: 1 !important;
  font-size: 18px !important;
  color: var(--gray);
  cursor: auto !important;
}

/* =========================
   TEAM NARRATIVE
========================= */

.team-narrative{
  background: var(--white);
  padding: 25px 30px;
  margin: 20px 0;
}

.team-narrative h4{
  margin: 30px 0 0 0;
}

.team-narrative p{
  margin-bottom: 10px !important;
  line-height: 1.6;
}

#teamNarrative p{
  margin: 0;
  max-width: initial;
  text-align: left;
}

.invite-credentials{
  background: var(--white);
  border: var(--border-gray);
  border-radius: var(--radius-o);
  padding: 16px 20px;
  margin: 15px 0;
  font-size: 15px;
}

.invite-credentials p{
  margin: 6px 0;
}

.pending-tab{
  opacity: 0.7;
  cursor: default;
}
.pending-tab:hover{
  border: var(--border-gray);
  color: var(--dark);
}

#pendingEmployees{
  margin-top: 15px;
}

.employee-history{
  margin-top: 10px;
}

.history-list{
  padding: 0;
  margin: 10px 0 0;
}

.history-list li{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--white);
  border: var(--border-gray);
  border-radius: var(--radius-o);
  font-size: 14px;
}

.history-date{
  font-weight: 600;
  min-width: 90px;
}

.history-scores{
  opacity: 0.75;
  font-size: 13px;
}

/* =========================
   LOGGET IND SOM
========================= */

.current-user{
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.85;
  padding-top: 4px;
}

.test-user-greeting{
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 10px 0 20px;
}

/* =========================
   ADMIN SIDEPANEL
========================= */

.hamburger-btn{
  margin: 0 0 0 -10px;
  padding: 7px 15px;
  background: var(--dark);
  color: var(--bg);
  border: var(--border-gray);
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.hamburger-btn i{
  width: 18px;
  height: 18px;
}

.admin-panel-backdrop{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 998;
}

.admin-panel-backdrop.open{
  display: block;
}

.admin-side-panel{
  position: fixed;
  top: 0;
  right: -430px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 999;
  padding: 30px 25px;
  overflow-y: auto;
  transition: right 0.25s ease;
}

.admin-side-panel.open{
  right: 0;
}

.admin-side-panel-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

#adminPanelClose{
  color: var(--bg);
  background: var(--dark);
  padding: 4px 4px 0px 4px;
  margin: 0;
}

.admin-side-panel-section{
  margin-bottom: 30px;
}

.admin-side-panel-section h4{
  margin-bottom: 10px;
}

/* =========================
   STRUKTUR-TRÆ (admin)
========================= */

.member-company-heading{
  margin: 20px 0 10px;
  font-size: 17px;
}

.member-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.member-card{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 14px;
  background: var(--bg);
  width: 100%;
}

.member-card .avatar{
  width: 30px;
  height: 30px;
  font-size: 12px;
  flex-shrink: 0;
}

.member-card-info{
  flex: 1;
  min-width: 0;
}

.member-card-info strong{
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.member-card-role{
  font-size: 11px;
  color: var(--gray-soft);
}

.tree-company{
  border: var(--border-gray);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 12px;
  background: var(--white);
}

.tree-company > summary{
  cursor: pointer;
  font-weight: 700;
  padding: 4px 0;
}

.tree-section{
  margin: 10px 0 10px 10px;
  border-radius: var(--radius);
}

.tree-section h5{
  font-size: 13px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 6px;
}

.tree-section ul{
  padding: 0;
  margin: 0;
}

.tree-section li{
  padding: 5px 10px;
  margin-bottom: 4px;
  background: var(--white);
  border: var(--border-gray);
  border-radius: var(--radius-o);
  font-size: 13px;
}

.tree-manager{
  margin: 6px 0 6px 10px;
  border: var(--border-gray);
  border-radius: var(--radius);
  padding: 6px 10px;
  background: var(--white);
}

.tree-manager > summary{
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tree-manager ul{
  margin: 8px 0 4px 10px;
  padding: 0;
}

.tree-manager li{
  padding: 4px 10px;
  margin-bottom: 4px;
  background: var(--white);
  border-radius: var(--radius);
  font-size: 13px;
}
/* =========================================
   ANALYSEPORTAL (dashboard.html sidebar-design)
   Scoped under for ikke at kollidere med
   klassenavne brugt på andre sider (fx .card, .icon-btn)
========================================= */

.sidebar{
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: #ffffff47;
  border-right: var(--border-light);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1000;
}

.mobile-nav-toggle{
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: var(--border-light);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
}

.mobile-nav-toggle svg{
  width: 20px;
  height: 20px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:600;
  font-size:22px;
  margin-bottom:75px;
}

.logo-icon{
  width:36px;
  height:36px;
  border-radius:12px;
  background:var(--main);
  color:var(--white);
  display:grid;
  place-items:center;
  font-weight:600;
}

.nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.nav-title{
  font-size:11px;
  font-weight:700;
  color:var(--gray-soft);
  margin:20px 12px 10px;
  text-transform:uppercase;
}

.nav-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  text-decoration:none;
  color:#334155;
  font-weight:500;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 15px;
  width: 100%;
  text-align: left;
}

.nav-item svg{
  width: 18px;
  height: 18px;
}

.nav-item.active{
  background:var(--main-soft);
  color:var(--main);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.feature-pill {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: var(--border-light);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.sidebar-user{
  margin-top:auto;
  padding-top:20px;
  border-top:var(--border-light);
  display:flex;
  align-items:center;
  gap:12px;
}

.avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--high-bg);
  color:var(--high);
  display:grid;
  place-items:center;
  font-weight:700;
}

.avatar svg{
  width:20px;
  height:20px;
}

.user-info{
  display:flex;
  flex-direction:column;
}

.user-info span{
  font-size:13px;
  color:var(--gray-soft);
}

/* MAIN */

.main{
  margin-left: 260px;
  padding: 28px;
  min-height: 100vh;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:28px;
  gap: 20px;
}

.topbar h1{
  margin:0 0 6px;
  font-size:40px;
  font-weight:600;
}

.topbar p{
  margin:0;
  color:var(--gray-soft);
}

.topbar-actions{
  display:flex;
  gap:10px;
  flex-shrink: 0;
}

.icon-btn{
  width:40px;
  height:40px;
  border-radius:14px;
  border:var(--border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg{
  width: 15px;
  height: 15px;
  color: var(--text)
}

/* GRID */

.dashboard-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:24px;
}

/* CARD */

.card{
  background:var(--white);
  border:var(--border-light);
  border-radius:var(--radius);
  padding: 40px;
}

.card-large{
  min-height:420px;
}

.card-wide,
.card-full{
  grid-column:1 / span 2;
}

.card-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
  gap: 15px;
  flex-wrap: wrap;
}

.card-header h2{
  margin:0;
  font-size:26px;
}

.status-badge{
  background: var(--main);
  color: var(--white);
  padding:6px 12px;
  border-radius: var(--radius);
  font-size:18px;
  font-weight:700;
}

/* HEALTH */

.health-score{
  margin-bottom:28px;
}

.score-number{
  font-size:56px;
  line-height:1;
  font-weight:600;
  color:var(--main);
}

.score-label{
  margin-top:8px;
  color:var(--gray-soft);
  font-weight:600;
}

.health-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.health-row{
  display:flex;
  flex-direction: column;
  padding-bottom:16px;
  border-bottom:var(--border-light);
  gap: 8px;
}

.health-row-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.health-help{
  margin: 0;
  font-size: 13px;
  color: var(--gray-soft);
  line-height: 1.5;
}

.health-name{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.health-name svg{
  width: 18px;
  height: 18px;
}

.health-right{
  display:flex;
  align-items:center;
  gap:16px;
}

.green-icon{
  font-weight: 700;
}

.yellow{
  background:var(--medium-bg) !important;
}
.green{
  background: var(--high-bg) !important;
}
.red{
  background: var(--low-bg) !important;
}

.steps{
  display:flex;
  gap:8px;
}

.step{
  width:14px;
  height:14px;
  border-radius:4px;
  background:#e5e7eb;
}

.level{
  min-width:72px;
  text-align:center;
  padding:6px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
}

.level.high{
  background:var(--high-bg);
  color:var(--high);
}

.level.medium{
  background:var(--medium-bg);
  color:var(--medium);
}

.level.low{
  background:var(--low-bg);
  color:var(--low);
}

/* TEAM BOX */

.team-box{
  display:flex;
  align-items:center;
  gap:16px;
  padding:20px;
  border-radius:20px;
  border: var(--border-light);
}

.team-icon{
  width:56px;
  height:56px;
  border-radius:16px;
  background:var(--white);
  display:grid;
  place-items:center;
  font-size:24px;
}

.team-icon svg{
  width: 26px;
  height: 26px;
  color: var(--main);
}

/* DISC OVERVIEW */

.disc-overview{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
}

.radar-placeholder{
  text-align:center;
}

.radar-placeholder h3{
  margin-bottom: 10px;
}

.distribution{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.dist-row{
  display:grid;
  grid-template-columns:120px 1fr 48px;
  align-items:center;
  gap:16px;
}

.dist-bar{
  height:18px;
  border-radius:999px;
  background:#f1f5f9;
  overflow:hidden;
}

.fill{
  height:100%;
  border-radius:999px;
  transition: width 0.8s ease;
}

.fill.d{ background:var(--color-d); }
.fill.i{ background:var(--color-i); }
.fill.s{ background:var(--color-s); }
.fill.c{ background:var(--color-c); }

.bipolar{
  margin-top:12px;
}

.bipolar h3{
  margin:0 0 4px;
}

.bipolar-value{
  color:var(--gray-soft);
  margin-bottom:12px;
}

.bipolar-bar{
  position:relative;
  height:12px;
  border-radius:999px;
  background:#f1f5f9;
}

.bipolar-marker{
  position:absolute;
  top:50%;
  transform:translate(-50%,-50%);
  width:4px;
  height:28px;
  border-radius:999px;
  background:var(--main);
  transition: left 0.8s ease;
}

/* PILLS */

.pill-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.pill{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding:14px 18px;
  border-radius:999px;
  border:var(--border-light);
  background:#fafafa;
  font-weight:500;
  text-align: center;
}

.pill.risk{
  justify-content:space-between;
}

.pill svg{
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: help;
}

/* ABOUT */

.about-text{
  color:var(--gray);
  line-height:1.8;
  font-size:18px;
}

.recommendation{
  margin-top:20px;
  padding:18px;
  border-radius:18px;
  background:var(--bg);
  border:var(--border-light);
}

.recommendation svg{
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}

/* EMPLOYEES */

.table-actions{
  display:flex;
  gap:10px;
}

.table-actions input{
  padding:10px 14px;
  border-radius:12px;
  border:var(--border-light);
  min-width:240px;
}

.table-actions button{
  padding:10px 16px;
  border-radius:12px;
  border:var(--border-light);
  background:var(--white);
  cursor: pointer;
}

.employee-layout{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:24px;
}

.employee-table-wrapper{
  overflow-x: auto;
}

.employee-table{
  width:100%;
  border-collapse:collapse;
}

.employee-table th,
.employee-table td{
  padding:18px 12px;
  border-bottom:var(--border-light);
  text-align:left;
}

.employee-table th.sortable-th{
  cursor: pointer;
  user-select: none;
}

.employee-table th.sortable-th:hover{
  color: var(--main);
}

.emp-name{
  display:flex;
  align-items:center;
  gap:12px;
}

.emp-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  background:var(--main-soft);
  color:var(--info);
  display:grid;
  place-items:center;
  font-weight:700;
  flex-shrink: 0;
}

.emp-avatar.red{
  background:var(--low-bg);
  color:var(--low);
}

.emp-delta{
  font-size:12px;
  color:var(--gray-soft);
  margin-top:2px;
}

.profile-tag{
  padding:8px 16px;
  border-radius:999px;
  font-weight:700;
  color:var(--white);
  display: inline-block;
  white-space: nowrap;
}

.profile-tag.d{ background:var(--color-d); }
.profile-tag.i{ background:var(--color-i); }
.profile-tag.s{ background:var(--color-s); }
.profile-tag.c{ background:var(--color-c); }

.actions{
  white-space:nowrap;
  display: flex;
  gap: 12px;
}

.actions svg{
  width: 18px;
  height: 18px;
  cursor: pointer;
  color: var(--gray-soft);
}

.actions svg:hover{
  color: var(--main);
}

.expand-btn-spacer{
  width: 16px;
  display: inline-block;
  flex-shrink: 0;
}

.expand-btn-app{
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-soft);
  padding: 0;
}

.expand-btn-app svg{
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.expand-btn-app.expanded svg{
  transform: rotate(90deg);
}

.history-row-app{
  opacity: 0.55;
  font-style: italic;
  font-size: 13px;
}

.history-row-app td{
  padding-top: 8px;
  padding-bottom: 8px;
}

.pending-test{
  margin-top:28px;
}

.pending-test ul{
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.pending-test li{
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 8px;
  font-size: 14px;
}

.pending-row{
  display:flex;
  gap:10px;
  margin:15px 0;
}

.pending-row input{
  flex:1;
  padding:12px 14px;
  border-radius:14px;
  border:var(--border-light);
}

.pending-row button{
  padding:12px 18px;
  border-radius:14px;
  border:none;
  background:var(--main);
  color:var(--white);
  font-weight:600;
  cursor: pointer;
}

/* DONUT */

.donut-card{
  position:sticky;
  top:24px;
  height:fit-content;
}

.donut{
  width:280px;
  height:280px;
  margin:12px auto 20px;
  border-radius:50%;
  position:relative;
  transition: background 0.5s ease;
}

.donut::after{
  content:'';
  position:absolute;
  inset:72px;
  border-radius:50%;
  background:var(--white);
}

.donut-center{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-size:28px;
  font-weight:600;
  z-index:1;
}

.legend{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:20px;
  text-align: center;
}

.dot{
  width:12px;
  height:12px;
  border-radius:50%;
  display:inline-block;
  margin-right:8px;
}

.dot.d{ background:var(--color-d); }
.dot.i{ background:var(--color-i); }
.dot.s{ background:var(--color-s); }
.dot.c{ background:var(--color-c); }

.balance-note{
  padding:16px;
  border-radius:16px;
  background:var(--bg);
  border:var(--border-light);
  margin-top: 20px;
}

.balance-note p{
  margin:8px 0 0;
  color:var(--gray-soft);
  line-height:1.6;
}

/* Responsivt fallback - sidebaren er ikke designet til mobil i det
   oprindelige design, så vi lader den klappe sammen på smalle skærme */

/* =========================================
   OVERLAY (tidligere overlay.css - nu smeltet sammen)
========================================= */
* {
  box-sizing: border-box;
  margin: 0;
}
body {
  background: radial-gradient(circle at top left, rgba(74, 144, 226, 0.25), transparent 30%), radial-gradient(circle at bottom right, rgba(74, 144, 226, 0.25), transparent 30%), var(--bg);
}
button{
  margin-top: 0;
  box-shadow: none;
}
.card-header h2 {
  margin: 0;
  font-size: 30px;
  color: var(--dark);
}
.nav-item:hover ,.icon-btn:hover{
  background: var(--main-soft);
  color: var(--main);
  border: none;
}

.icon-btn:hover{
  border: var(--border-light);
}

.pill svg {
  vertical-align: -2px;
}
.about-text {
  color: var(--text);
}
.recommendation svg {
  vertical-align: 0px;
}
.actions .lucide-trash-2:hover{
  color: var(--color-d)
}
.expand-btn-app{
  padding: 0;
  background: none;
  color: var(--gray-soft);
  border: none;
  opacity: 0.3;
}
.expand-btn-app:hover {
  background: none;
  color: var(--gray-soft);
  border: none;
}
.score-label {
  margin-top: 10px;
  color: var(--text);
  font-weight: 600;
  background: var(--main-soft);
  padding: 10px;
  border-radius: 15px;
  font-size: 20px;
}

#teamStructure{
  margin-top: 0px !important;
}
.tree-company > summary {
  cursor: pointer;
  font-weight: normal;
  padding: 4px 0;
  color: var(--text);
  line-height: 1.6;
}
.tree-company {
  padding: 10px 20px;
  border-radius: 0;
  border: none;
  margin-bottom: 0;
  background: var(--main-soft);
}
.tree-company:last-of-type {
  border-radius: 0 0 20px 20px;
}
.logout:hover{
  background: #fff5f58c;
  color: var(--color-d);
}
.logout:hover svg{
  color: var(--color-d);
}
.tree-section li, .tree-manager {
  padding: 0px 7px !important;
  border-radius: 12px;
  border: none;
  background: transparent;
  margin: 0 !important;
}
.pill {
  border-radius: 12px;
  background: var(--bg);
}
.pill.risk {
  background: #fff5f58c;
}
.risk-box {
  background: #fff5f58c;
}
.insight-card{
  border: var(--border-light);
}
.actions svg{
  margin-right: 3px;    
  width: 20px;
  height: 20px;
  color: var(--text);
  opacity: 0.7;
}
.card {
  box-shadow: none !important;
  margin-bottom: 0;
  background: #ffffff82;
}
.actions {
  white-space: normal;
  display: revert;
  gap: 12px;
}
.pending-test li {
  padding: 14px;
  font-size: 15px;
}
.health-row:last-of-type {
  border-bottom: none;
}
.history-row-app td:first-of-type{
  padding-left: 90px;
}

/* =========================================
   REMOTE / STRIPE HIGHLIGHTS
========================================= */

.highlight-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}

.highlight-card{
  position:relative;
  overflow:hidden;
  border-radius:24px;
  padding:28px;
  border:var(--border-light);
  transition:all .25s ease;
}

.highlight-card:hover{
  transform:translateY(-3px);
}

.help{
  background: linear-gradient(135deg, rgb(141 37 235 / 8%) 0%, rgb(110 37 235 / 2%) 100%) !important;
  border-color: #e1c7ff !important;
}

/* TEAM CARD */

.team{
  background:linear-gradient(135deg, rgba(37,99,235,.08) 0%, rgba(37,99,235,.02) 100%) !important;
  border-color:var(--main-soft) !important;
}

.team-overview-card{
  display:flex;
  flex-direction:column;
  height: 1205px;
  overflow-y: scroll;
}

.team-overview-card #teamStructure{
  flex:1;
}

.team-overview-card .employee-card{
  margin-top:auto;
}

/* RISK CARD */

.risk{
  background:linear-gradient(135deg, rgba(249,115,22,.08) 0%, rgba(249,115,22,.02) 100%) !important;
  border-color:var(--medium-bg) !important;
}

.highlight-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
}

.highlight-head i{
  width:22px;
  height:22px;
  color:var(--gray-soft);
}

.highlight-tag{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  background: var(--high-bg);
  color: var(--gray-soft);
}

.team .highlight-tag{
  background:var(--main-soft);
  color:var(--info);
}

.risk .highlight-tag{
  background:var(--medium-bg);
  color:var(--medium);
}

.highlight-card h3{
  margin:0 0 10px;
  font-size:28px;
  line-height:1.1;
  color:var(--text);
}

.highlight-card p{
  margin:0;
  color:var(--gray-soft);
  line-height:1.7;
  font-size:15px;
}


/* =========================================
   4-ZONE DASHBOARD
========================================= */

.zone-card{
  display:flex;
  align-items:flex-start;
  gap:18px;
  background:var(--bg);
  border: var(--border-light);
  border-radius:24px;
  padding:25px;
  margin-bottom: 25px;
}

.zone-card:last-of-type{
  margin-bottom: 0;
}

/* ICONS */

.zone-icon{
  width:56px;
  height:56px;
  border-radius:18px;
  display:grid;
  place-items:center;
  flex-shrink:0;
}

.zone-icon i{
  width:26px;
  height:26px;
}

.zone-icon.green{
  background:var(--high-bg);
  color:var(--high);
}

.zone-icon.blue{
  background:var(--main-soft);
  color:var(--info);
}

.zone-icon.purple{
  background:var(--help-bg);
  color:#6d28d9;
}

.zone-icon.orange{
  background:var(--medium-bg);
  color:var(--medium);
}

/* CONTENT */

.zone-content{
  flex:1;
}

.zone-label{
  display:block;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  color:var(--gray-soft);
  margin-bottom:8px;
}

.zone-content h3{
  margin:0 0 6px;
  font-size:24px;
  line-height:1.1;
  font-weight:700;
  color:var(--text);
}

.zone-content p{
  margin:0;
  line-height:1.6;
  font-size:15px;
}

/* =====================================================
   HERO REMOTE
===================================================== */

.hero-remote{
  background: #ffffff82;
  border-radius:32px;
  padding:40px;
  margin-bottom:24px;
  position:relative;
  overflow:hidden;
}

.hero-remote::before{
  content:'';
  position:absolute;
  top:-120px;
  right:-120px;
  width:320px;
  height:320px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(37,99,235,.12), transparent 70%);
}

.hero-grid{
  display:grid;
  grid-template-columns:1.4fr .8fr;
  gap:32px;
  position:relative;
  z-index:1;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  border-radius:999px;
  background:var(--main-soft);
  color:var(--info);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  margin-bottom:20px;
}

#topbarGreeting{
  text-transform: uppercase;
}

.pulse{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--info);
  animation:pulse 2s infinite;
}

@keyframes pulse{
  0%{transform:scale(1);opacity:1}
  70%{transform:scale(1.6);opacity:0}
  100%{transform:scale(1);opacity:0}
}

.hero-main h1{
  font-size:56px;
  line-height:1.05;
  margin:0 0 18px;
  max-width:720px;
}

.hero-lead{
  font-size:18px;
  line-height:1.8;
  color:var(--gray-soft);
  max-width:760px;
}

.hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:28px 0;
}

.hero-tag{
  padding:10px 16px;
  border-radius:24px;
  border: var(--border-light);
  font-size:12px;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hero-tag:hover{
  border-color: var(--main);
  color: var(--main);
  transform: translateY(-1px);
}

.hero-tag:hover svg{
  color: var(--main);
}

.hero-tag svg{
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text);
  vertical-align: -3px;
}

.hero-tag.success{
  background:var(--high-bg);
  color:var(--high);
}

.hero-tag.warning{
  background:var(--medium-bg);
  color:var(--medium);
}

.hero-tag.info{
  background:var(--main-soft);
  color:var(--info);
}

.hero-metrics{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.metric-card{
  position: relative;
  overflow: hidden;
  border: var(--border-light);
  border-radius:24px;
  padding:22px;
  min-width: 250px;
}

.metric-bg-icon{
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 70px;
  height: 70px;
  color: var(--main);
  opacity: 0.08;
  pointer-events: none;
}

.metric-card.risk .metric-bg-icon{
  color: var(--low);
}

.metric-card span{
  position: relative;
  z-index: 1;
  display:block;
  color:var(--gray-soft);
  font-size:13px;
  margin-bottom:8px;
}

.metric-card strong{
  display:block;
  font-size:30px;
  font-weight:800;
  margin-bottom:4px;
}

.metric-card small{
  color:var(--gray-soft);
}

/* =====================================================
   MEDARBEJDERKORT
===================================================== */

.employee-cards{
  margin-bottom:24px;
}

.section-actions input{
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--border-light);
  min-width:240px;
}

.employee-card{
  border-radius:24px;
  padding:24px;
  transition:all .25s ease;
  border: var(--border-light);
}

.employee-top{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:22px;
}

.employee-avatar{
  width:56px;
  height:56px;
  border-radius:50%;
  background:var(--main-soft);
  color:var(--info);
  display:grid;
  place-items:center;
  font-weight:800;
  font-size:18px;
}

.employee-info{
  flex:1;
}

.employee-info h3{
  margin:0 0 4px;
}

.employee-role{
  color:var(--gray-soft);
  font-size:14px;
}

.icon-action{
  width:40px;
  height:40px;
  border-radius:12px;
  background:var(--white);
}

.employee-stats{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:22px;
}

.employee-stat{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.employee-stat span{
  color:var(--gray-soft);
}

.employee-footer{
  display:flex;
  gap:10px;
}

.add-card{
  display:grid;
  place-items:center;
  min-height:320px;
  border-style:dashed;
}

.add-content{
  text-align:center;
  max-width:280px;
}

.add-icon{
  width:72px;
  height:72px;
  border-radius:20px;
  background:var(--bg);
  display:grid;
  place-items:center;
  margin:0 auto 18px;
}

.add-icon i{
  width:34px;
  height:34px;
  color:var(--main);
}


/* =====================================================
   COACH MODE
===================================================== */

.coach-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:28px;
}

.coach-title{
  display:flex;
  align-items:center;
  gap:16px;
}

.coach-icon{
  width:56px;
  height:56px;
  border-radius:18px;
  background: var(--help-bg);
  color: var(--help);
  display:grid;
  place-items:center;
}

.coach-icon i{
  width:28px;
  height:28px;
}

.coach-label{
  display:block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  color: var(--help);
  margin-bottom:4px;
}

.coach-title h2{
  margin:0;
  font-size:30px;
}

.coach-date{
  padding:8px 14px;
  border-radius:999px;
  background: var(--help-bg);
  color: var(--help);
  font-weight:700;
}

.coach-body h3{
  font-size:40px;
  line-height:1.2;
  margin:0 0 22px;
  max-width:760px;
}

.coach-reason{
  border: var(--border-light);
  border-radius:20px;
  padding:22px;
  margin-bottom:24px;
}

.reason-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.reason-head span:first-child{
  font-weight:700;
}

.impact-badge{
  padding:6px 12px;
  border-radius:999px;
  background:var(--high-bg);
  color:var(--high);
  font-size:12px;
  font-weight:600;
}

.coach-reason p{
  margin:0;
  color:var(--gray-soft);
  line-height:1.8;
}

.coach-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.coach-extra{
  margin-top: 24px;
  padding-top: 24px;
  border-top: var(--border-light);
}

.coach-extra h4{
  margin: 0 0 12px;
  font-size: 15px;
}

.coach-nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: var(--border-light);
  color: var(--gray-soft);
  font-size: 13px;
  font-weight: 600;
}

.coach-nav-btn{
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: var(--border-light);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.coach-nav-btn svg{
  width: 14px;
  height: 14px;
  color: var(--text);
}

.coach-nav-btn:disabled{
  opacity: 0.35;
  cursor: not-allowed;
}

.coach-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Coach Mode-modal: pending + historik */

.coach-mode-list{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.coach-mode-item{
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--bg);
  border: var(--border-light);
}

.coach-mode-item-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.coach-mode-item-top h4{
  margin: 0;
  font-size: 16px;
}

.coach-mode-meta{
  font-size: 13px;
  color: var(--gray-soft);
  margin-bottom: 10px;
}

.coach-status-badge{
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.coach-status-badge.pending{
  background: var(--medium-bg);
  color: var(--medium);
}

.coach-status-badge.done{
  background: var(--high-bg);
  color: var(--high);
}

.coach-status-badge.dismissed{
  background: var(--low-bg);
  color: var(--low);
}

.coach-mode-item-actions{
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.coach-mode-item-actions button{
  padding: 8px 14px;
  border-radius: 10px;
  border: var(--border-light);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}


/* =====================================================
   BUTTONS
===================================================== */

.btn-primary{
  padding:10px 15px;
  border-radius:14px;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
  transition:all .2s ease;
}

.btn-primary{
  background:var(--white);
  color:var(--text);
  border: var(--border-light);
}

.btn-primary svg{
  width:20px;
  height:20px;
  vertical-align:-5px;
}

.btn-primary:hover{
  background:var(--main);
  color:var(--white);
  border:1px solid var(--border-main);
}



/* =====================================================
   REMOTE ANALYSIS (Team Styrker + Mulige Risici + Om teamet)
===================================================== */

/* Top */

.ra-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:28px;
}

.risk-count{
  padding: 8px;
  border-radius: 24px;
  background: var(--low-bg);
  color: var(--low);
}

.ra-card-head{
   display:flex;
  justify-content:space-between;
  align-items:center;
}

.ra-card-title{
  display:flex;
  align-items:center;
  gap:12px;
}

.ra-label{
  display:inline-block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--gray);
  margin-bottom:10px;
}

.ra-top h2{
  margin:0 0 8px;
  font-size:36px;
  line-height:1.1;
  color:var(--dark);
}

.ra-top p{
  margin:0;
  color:var(--gray);
  font-size:16px;
}

.ra-live{
  padding:8px 14px;
  border-radius:999px;
  background:var(--high-bg);
  color:var(--high);
  font-size:13px;
  font-weight:700;
  flex-shrink:0;
}

/* Score */

.ra-score{
  display:flex;
  align-items:center;
  gap:24px;
  padding:24px;
  border-radius:24px;
  background:var(--bg);
  border:1px solid #e2e8f0;
  margin-bottom:28px;
}

.ra-score-number{
  width:92px;
  height:92px;
  border-radius:28px;
  background:var(--white);
  border:1px solid #e2e8f0;
  display:grid;
  place-items:center;
  font-size:34px;
  font-weight:800;
  color:var(--dark);
  box-shadow:0 4px 12px rgba(15,23,42,.04);
}

.ra-score-meta{
  flex:1;
}

.ra-score-meta span{
  display:block;
  font-size:14px;
  font-weight:600;
  color:var(--gray);
  margin-bottom:12px;
}

.ra-score-bar{
  height:12px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
}

.ra-score-fill{
  height:100%;
  width:82%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--main),var(--help));
}

/* Grid */

.ra-grid{
  margin-bottom:24px;
}

/* Cards */

.ra-card{
  background:var(--white);
  border: var(--border-light);
  border-radius:24px;
  padding:24px;
  margin-bottom:24px;
}

.ra-card-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:22px;
}

.ra-card-icon{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  flex-shrink:0;
}

.ra-card-icon.success{
  background:#ecfdf5;
  color:#047857;
}

.ra-card-icon.warning{
  background:var(--low-bg);
  color:var(--low);
}

.ra-card-icon.info{
  background:#eff6ff;
  color:var(--main);
}

.ra-card-head h3{
  margin:0;
  font-size:22px;
  color:var(--dark);
}

/* Styrker */

.ra-strengths{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.ra-strength-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 0 0 16px 0;
  margin-bottom:10px;
}

.ra-strength-top:last-of-type{
  margin-bottom:0;
}

.ra-strength-top span:first-child{
  font-weight:600;
  color:var(--dark);
}

.ra-strength{
  border-bottom: var(--border-light);
}
.ra-strength:last-of-type{
  border-bottom: none;
}

.ra-level{
  font-size:12px;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
}

.ra-level.high{
  background:var(--high-bg);
  color:var(--high);
}

.ra-track{
  height:10px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
}

.ra-fill{
  height:100%;
  border-radius:999px;
}

.high-fill{
  background:linear-gradient(90deg,var(--high),var(--high));
}

/* Risici */

.ra-risks{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.ra-risk{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.ra-risk:last-of-type{
  border-bottom: none;
  padding: 16px 0 0 0;
}

.ra-risk-left svg{
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: help;
  vertical-align: -2px;
}

.ra-risk-left strong{
  margin-bottom:6px;
  color:var(--dark);
}

.ra-risk-left p{
  margin:0;
  color:var(--gray);
  font-size:14px;
  line-height:1.5;
}

.ra-risk-badge{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.ra-risk-badge.medium{
  background:var(--medium-bg);
  color:var(--medium);
}

.ra-risk-badge.high{
  background:var(--low-bg);
  color:var(--low);
}

/* Om teamet */

.ra-about{
  background:var(--white);
  border:1px solid #e2e8f0;
  border-radius:24px;
  padding:24px;
}

.ra-about-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:15px;
}

.ra-about-head h3{
  margin:0;
  font-size:22px;
  color:var(--dark);
}

.ra-about-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-bottom:24px;
}

.ra-about-item{
  padding:18px;
  border-radius:18px;
  background:var(--bg);
  border:1px solid #e2e8f0;
}

.ra-about-item span{
  display:block;
  font-size:13px;
  color:var(--gray);
  margin-bottom:8px;
}

.ra-about-item strong{
  font-size:16px;
  color:var(--dark);
}

.ra-about-summary{
  padding:20px 0;
  border-top:1px solid #e2e8f0;
}

.ra-about-summary p{
  margin:0;
  color:var(--gray);
  line-height:1.8;
  font-size:15px;
}

/* =====================================================
   TEAM ROLLER
===================================================== */

.roles-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap:24px;
  margin-top:24px;
}
.role-card{
  background:var(--white);
  border:1px solid var(--border-light);
  border-radius:24px;
  padding:24px;
  transition:all .25s ease;
  position:relative;
  overflow:hidden;
}
.role-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:4px;
  opacity:.9;
}
.role-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 32px rgba(15,23,42,.08);
}
/* Farver */
.role-card.leaders::before{
  background:linear-gradient(90deg,var(--low),var(--medium));
}
.role-card.bridge::before{
  background:linear-gradient(90deg,var(--high),var(--high));
}
.role-card.analysts::before{
  background:linear-gradient(90deg,var(--gray),#334155);
}
.role-card.creators::before{
  background:linear-gradient(90deg,var(--help),#ec4899);
}
.role-head{
  display:flex;
  align-items:flex-start;
  gap:16px;
  margin-bottom:20px;
}

.role-head div{
  text-align:left;
}

.role-icon{
  width:45px;
  height:45px;
  border-radius:18px;
  display:grid;
  place-items:center;
  font-size:28px;
  background:var(--bg);
  flex-shrink:0;
}
.role-label{
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--gray-soft);
  margin-bottom:4px;
}
.role-head h3{
  margin:0;
  font-size:20px;
  line-height:1.2;
  color:var(--text);
}
/* Medlemmer */
.role-members{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:20px;
}
.member-chip{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:var(--bg);
  border:1px solid var(--border-light);
  font-weight:600;
  font-size:11px;
  color:var(--text);
  transition:all .2s ease;
}
.member-chip:hover{
  background:var(--white);
  border-color:#cbd5e1;
  transform:translateY(-1px);
}
.member-avatar{
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:800;
  color:var(--white);
}
.leaders .member-avatar{
  background:var(--low);
}
.bridge .member-avatar{
  background:var(--high);
}
.analysts .member-avatar{
  background:#475569;
}
.creators .member-avatar{
  background:var(--help);
}
/* Footer */
.role-footer{
  padding-top:0;
  border-top:1px solid var(--border-light);
  color:var(--gray-soft);
  font-size:13px;
  line-height:1.6;
}
/* Team balance */
.roles-balance{
  margin-top:24px;
  background:var(--white);
  border:1px solid var(--border-light);
  border-radius:24px;
  padding:24px;
}
.balance-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}
.balance-head h3{
  margin:0;
  font-size:20px;
}
.balance-score{
  padding:8px 14px;
  border-radius:999px;
  background:var(--high-bg);
  color:var(--high);
  font-size:13px;
  font-weight:700;
}
.balance-bars{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.balance-row{
  display:grid;
  grid-template-columns:120px 1fr;
  align-items:center;
  gap:16px;
}
.balance-row span{
  font-size:14px;
  font-weight:600;
  color:var(--text);
}
.balance-track{
  height:10px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
}
.balance-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--main),var(--help));
}

/* =====================================================
   ACTION CENTER (Anbefalet Handlingsplan) - i modal
===================================================== */

.action-center{
  margin:0;
  padding:28px;
  border-radius:28px;
}

.action-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:28px;
}

.action-title{
  display:flex;
  align-items:center;
  gap:16px;
}

.action-icon{
  width:56px;
  height:56px;
  border-radius:18px;
  background:var(--help-bg);
  color:var(--help);
  display:grid;
  place-items:center;
}

.action-label{
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  color:var(--help);
  margin-bottom:4px;
}

.action-title h2{
  margin:0;
  font-size:32px;
}

.action-status{
  padding:8px 14px;
  border-radius:999px;
  background:var(--help-bg);
  color:var(--help);
  font-size:13px;
  font-weight:700;
  flex-shrink:0;
  white-space:nowrap;
}

.action-grid{
  display:grid;
  grid-template-columns:1.2fr .9fr;
  gap:28px;
}

/* Handlingsplan */

.action-plan{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.action-item{
  display:flex;
  gap:16px;
  padding:20px;
  border-radius:22px;
  border:var(--border-light);
  background:var(--bg);
}

.priority-high{
  border-left:4px solid var(--low);
}

.priority-medium{
  border-left:4px solid #f59e0b;
}

.priority-strategic{
  border-left:4px solid var(--main);
}

.priority-low{
  border-left:4px solid var(--gray-soft);
}

.priority-number{
  width:40px;
  height:40px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-weight:800;
  flex-shrink:0;
  background:var(--white);
  border:var(--border-light);
}

.action-content{
  flex:1;
  min-width: 0;
}

.action-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:10px;
}

.action-top h3{
  margin:0;
  font-size:20px;
}

.priority-badge{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.priority-badge.high{
  background:var(--low-bg);
  color:var(--low);
}

.priority-badge.medium{
  background:var(--medium-bg);
  color:var(--medium);
}

.priority-badge.strategic{
  background:var(--main-soft);
  color:var(--info);
}

.priority-badge.low{
  background:#e2e8f0;
  color:#475569;
}

.action-content p{
  margin:0 0 14px;
  color:var(--gray-soft);
  line-height:1.7;
}

.action-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding-top:12px;
  border-top:var(--border-light);
}

.action-meta span{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--gray-soft);
  font-size:14px;
}

.action-meta i{
  width:16px;
  height:16px;
}

.link-btn{
  background:none;
  border:none;
  color:var(--main);
  font-weight:700;
  cursor:pointer;
}

/* Mødeguide */

.meeting-guide{
  background:var(--white);
  border:var(--border-light);
  border-radius:24px;
  padding:24px;
}

.guide-header{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:24px;
}

.guide-icon{
  width:48px;
  height:48px;
  border-radius:14px;
  background:var(--help-bg);
  color:var(--help);
  display:grid;
  place-items:center;
  flex-shrink:0;
}

.guide-header h3{
  margin:0 0 4px;
  font-size:22px;
}

.guide-header p{
  margin:0;
  color:var(--gray-soft);
}

.guide-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.guide-item{
  display:grid;
  grid-template-columns:32px 1fr auto;
  align-items:start;
  gap:14px;
  padding:14px;
  border-radius:16px;
  background:var(--white);
  border:var(--border-light);
}

.guide-check{
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--help-bg);
  color:var(--help);
  display:grid;
  place-items:center;
}

.guide-check i{
  width:16px;
  height:16px;
}

.guide-text strong{
  display:block;
  margin-bottom:2px;
}

/* Mødeformat */

.guide-format{
  margin-top:24px;
  padding:20px;
  border-radius:18px;
  background:var(--bg);
}

.format-head{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  margin-bottom:16px;
}

.format-head i{
  width:18px;
  height:18px;
}

.format-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.format-item{
  padding:14px;
  border-radius:14px;
  background:var(--white);
  border:var(--border-light);
}

.format-item span{
  display:block;
  color:var(--gray-soft);
  font-size:13px;
  margin-bottom:4px;
}

.format-item strong{
  font-size:16px;
}

/* Manglende profil */

.missing-profile{
  margin-top:28px;
  padding-top:28px;
  border-top:var(--border-light);
}

.missing-head{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:22px;
}

.missing-icon{
  width:56px;
  height:56px;
  border-radius:18px;
  background:var(--help-bg);
  color: var(--help);
  display:grid;
  place-items:center;
  flex-shrink: 0;
}

.missing-head h3{
  margin:0;
  font-size:28px;
}

.missing-body{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}

.insight-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:24px;
}

.missing-left h4{
  margin:0 0 10px;
  font-size:24px;
}

.missing-left p{
  color:var(--gray-soft);
  line-height:1.8;
}

.profile-tags{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.profile-tag{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  font-weight:700;
  border:1px solid transparent;
}

.profile-tag i{
  width:16px;
  height:16px;
}

.profile-tag.d{
  background:var(--low-bg);
  color:var(--low);
  border-color:var(--low-bg);
}

.profile-tag.i{
  background:var(--medium-bg);
  color:var(--medium);
  border-color:var(--medium-bg);
}

.profile-tag.s{
  background:var(--high-bg);
  color:var(--high);
  border-color:var(--high-bg);
}

.profile-tag.c{
  background:var(--main-soft);
  color:var(--info);
  border-color:#bfdbfe;
}

.missing-right{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.insight-box{
  padding:18px;
  border-radius:20px;
  border:var(--border-light);
}

.insight-box.success{
  background:#f0fdf4;
  border-color:var(--high-bg);
}

.insight-box.warning{
  background:var(--medium-bg);
  border-color:var(--medium-bg);
}

.insight-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}

.insight-head i{
  width:18px;
  height:18px;
}

.insight-box ul{
  margin:0;
  padding-left:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.missing-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-top:24px;
  padding-top:20px;
  border-top:var(--border-light);
}

.match-score{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
}

.match-score i{
  color:var(--help);
}

/* Modal-wrapper til Handlingsplan */

.action-modal-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.45);
  z-index:1200;
  align-items:flex-start;
  justify-content:center;
  overflow-y:auto;
  padding:40px 20px;
}

.action-modal-overlay.open{
  display:flex;
}

.action-modal-box{
  position:relative;
  width:100%;
  max-width:1100px;
  background:var(--white);
  border-radius:28px;
  margin-bottom:40px;
}

.action-modal-close{
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 15px 0px;
  justify-content: center;
  z-index: 5;
}

/* =====================================================
   ONBOARDING RAPPORT (modal)
===================================================== */

.onboard-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap:24px;
}

.onboard-quicknav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:24px;
  padding-bottom:20px;
  border-bottom:var(--border-light);
}

.onboard-chip{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 12px 6px 6px;
  border-radius:999px;
  background:var(--bg);
  border:var(--border-light);
  font-size:13px;
  font-weight:600;
  color:var(--text);
  cursor:pointer;
  transition: all 0.15s ease;
}

.onboard-chip:hover{
  background:var(--main-soft);
  border-color:#cbd5e1;
}

.onboard-chip .avatar{
  width:22px;
  height:22px;
  font-size:10px;
  flex-shrink:0;
}

.onboard-chip.hidden{
  display:none;
}

.onboard-card{
  background:var(--white);
  border:var(--border-light);
  border-radius:24px;
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:18px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.onboard-card.onboard-card-highlight{
  border-color: var(--main);
  box-shadow: 0 0 0 3px var(--main-soft);
}

.onboard-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.onboard-label{
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--gray-soft);
  margin-bottom:4px;
}

.onboard-head h3{
  margin:0;
  font-size:20px;
}

.onboard-compare{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:14px 16px;
  border-radius:16px;
  background:var(--main-soft);
  font-size:14px;
}

.onboard-compare span{
  color:var(--gray-soft);
  margin-right:6px;
}

.onboard-section-title{
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--gray-soft);
  margin-bottom:10px;
}

.onboard-row{
  display:flex;
  justify-content:space-between;
  font-size:14px;
  padding:6px 0;
}

.onboard-row span{
  color:var(--gray-soft);
}

.onboard-list strong{
  display:block;
  margin-bottom:10px;
  font-size:15px;
}

.onboard-list ul{
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.onboard-list li{
  list-style:none;
  font-size:14px;
  line-height:1.5;
  color:var(--text);
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.onboard-list li svg{
  flex-shrink:0;
  margin-top:2px;
  width:15px;
  height:15px;
}

.onboard-list.success li svg{
  color:var(--high);
}

.onboard-list.warning li svg{
  color:var(--medium);
}

.onboard-list.recommend li svg{
  color:var(--main);
}

.onboard-needs{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:14px;
}

.onboard-needs span{
  color:var(--gray-soft);
  margin-right:6px;
}

.onboard-challenge{
  padding:14px 16px;
  border-radius:16px;
  background:var(--medium-bg);
  border:1px solid var(--medium-bg);
}

.onboard-challenge strong{
  display:block;
  margin-bottom:8px;
  font-size:14px;
}

.onboard-challenge p{
  margin:4px 0;
  font-size:14px;
  color:var(--text);
}

/* =====================================================
   TEAMETS UDVIKLING (modal)
===================================================== */

.dev-range-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:24px;
}

.dev-range-btn{
  padding:10px 16px;
  border-radius:999px;
  border:var(--border-light);
  background:var(--white);
  font-size:13px;
  font-weight:600;
  color:var(--text);
  cursor:pointer;
  transition: all 0.15s ease;
}

.dev-range-btn:hover{
  background:var(--main-soft);
}

.dev-range-btn.active{
  background:var(--main);
  color:var(--white);
  border-color:var(--main);
}

.dev-summary{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap:16px;
  margin-bottom:24px;
}

.dev-stat{
  padding:18px;
  border-radius:18px;
  background:var(--bg);
  border:var(--border-light);
}

.dev-stat span{
  display:block;
  font-size:13px;
  color:var(--gray-soft);
  margin-bottom:6px;
}

.dev-stat strong{
  font-size:24px;
}

.dev-chart-box{
  position:relative;
  min-height:280px;
  margin-bottom:32px;
  padding:20px;
  border-radius:20px;
  background:var(--white);
  border:var(--border-light);
}

.dev-timeline-wrap{
  border-top:var(--border-light);
  padding-top:24px;
}

.dev-timeline{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:320px;
  overflow-y:auto;
}

.dev-timeline-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  border-radius:14px;
  background:var(--bg);
  border:var(--border-light);
  font-size:14px;
}

.dev-timeline-left{
  display:flex;
  align-items:center;
  gap:12px;
}

.dev-timeline-date{
  color:var(--gray-soft);
  font-size:13px;
  white-space:nowrap;
}

/* =====================================================
   TEAM SAMMENLIGNING (heatmap + samarbejdsanalyse)
===================================================== */

.heatmap-table{
  width:100%;
  border-collapse:collapse;
  margin-bottom:28px;
}

.heatmap-table th,
.heatmap-table td{
  padding:10px 12px;
  text-align:left;
  font-size:14px;
  border-bottom:var(--border-light);
}

.heatmap-table th{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--gray-soft);
  font-weight:700;
}

.heat-cell{
  text-align:center !important;
  font-weight:700;
  border-radius:10px;
  color:var(--dark);
}

.compare-select-btn{
    border: none;
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-soft);
    padding: 0;
}
.compare-select-btn:hover{
  border: var(--border-light);
  background: var(--white);
  color: var(--gray-soft);
}

.compare-select-btn svg{
  width:18px;
  height:18px;
}

.compare-select-btn.selected{
  background:var(--main);
  border-color:var(--main);
  color:var(--white);
}

/* Samarbejdsanalyse */

.collab-analysis{
  margin-top:20px;
  padding-top:28px;
  border-top:var(--border-light);
}

.collab-header{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:24px;
}

.collab-icon{
  width:56px;
  height:56px;
  border-radius:18px;
  background:var(--main-soft);
  color:var(--main);
  display:grid;
  place-items:center;
  flex-shrink:0;
}

.collab-header h3{
  margin:0;
  font-size:26px;
}

.collab-close{
  margin-left:auto;
  width:36px;
  height:36px;
  border-radius:12px;
  border:var(--border-light);
  background:var(--white);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--gray-soft);
}

.collab-score-row{
  display:flex;
  align-items:center;
  gap:20px;
  padding:20px;
  border-radius:20px;
  background:var(--bg);
  border:var(--border-light);
  margin-bottom:24px;
}

.collab-score-number{
  width:76px;
  height:76px;
  border-radius:22px;
  background:var(--white);
  border:var(--border-light);
  display:grid;
  place-items:center;
  font-size:26px;
  font-weight:800;
  flex-shrink:0;
}

.collab-score-meta{
  flex:1;
}

.collab-score-meta span{
  display:block;
  font-size:13px;
  color:var(--gray-soft);
  margin-bottom:8px;
}

.collab-score-track{
  height:10px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
}

.collab-score-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--main),var(--help));
  width:0%;
  transition: width 0.6s ease;
}

.collab-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.collab-box{
  background:var(--bg);
  border:var(--border-light);
  border-radius:18px;
  padding:20px;
}

.collab-box h4{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  font-size:15px;
}

.collab-box h4 svg{
  width:18px;
  height:18px;
  flex-shrink:0;
}

.collab-box p{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:var(--text);
}

.collab-box ul{
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.collab-box li{
  list-style:none;
  font-size:14px;
  line-height:1.5;
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.collab-box.success h4{ color:var(--high); }
.collab-box.warning h4{ color:var(--medium); }
.collab-box.recommend h4{ color:var(--main); }

.collab-box li svg{
  flex-shrink:0;
  margin-top:2px;
  width:15px;
  height:15px;
}

.collab-box.success li svg{ color:var(--high); }
.collab-box.warning li svg{ color:var(--medium); }
.collab-box.recommend li svg{ color:var(--main); }

/* =====================================================
   RESPONSIVT DESIGN - TABLET & MOBIL
   Samlet ét sted for hele dashboardet. Bruger !important
   kun hvor det er nødvendigt for at overtrumfe faste
   værdier defineret tidligere i filen (fx .card padding).
===================================================== */

/* ---------- TABLET (≤ 900px) ---------- */

@media (max-width: 900px){

  /* Sidebar bliver til en slide-ind menu med SOLID baggrund,
     så indhold bagved ikke skinner igennem */

  .sidebar{
    background: var(--white);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: none;
    width: 280px;
    max-width: 82vw;
  }

  .sidebar.mobile-open{
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(15,23,42,.25);
  }

  .sidebar-backdrop{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 999;
  }

  .sidebar-backdrop.open{
    display: block;
  }

  .mobile-nav-toggle{
    display: flex !important;
  }

  .main{
    margin-left: 0;
    padding: 24px;
  }

  /* Grid-layouts stakkes til én kolonne */

  .dashboard-grid,
  .disc-overview,
  .employee-layout,
  .highlight-grid,
  .hero-grid,
  .action-grid,
  .missing-body,
  .insight-row,
  .collab-grid,
  .ra-about-grid,
  .zone-grid{
    grid-template-columns: 1fr !important;
  }

  .card-wide,
  .card-full{
    grid-column: 1;
  }

  .hero-main h1{
    font-size: 38px;
  }

  .topbar h1{
    font-size: 30px;
  }

  .coach-body h3{
    font-size: 30px;
  }

  .ra-top h2{
    font-size: 28px;
  }

  .action-title h2{
    font-size: 26px;
  }

  .action-modal-box,
  .modal{
    max-width: 92vw;
  }

  /* Søgefelter i card-headers må gerne fylde det, de kan,
     men skal ikke tvinge headeren til at blive for bred */

  .table-actions,
  .section-actions{
    width: 100%;
  }

  .table-actions input,
  .section-actions input{
    min-width: 0;
    flex: 1;
  }

}

/* ---------- MOBIL (≤ 640px) ---------- */

@media (max-width: 640px){

  body{
    overflow-x: hidden;
  }

  .main{
    padding: 16px;
  }

  /* Alle kort får markant mindre luft, så indhold ikke
     presses ud over kanten på smalle skærme */

  .card{
    padding: 18px !important;
  }

  .card-header{
    margin-bottom: 16px;
  }

  .card-header h2{
    font-size: 20px;
  }

  .topbar{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .topbar h1{
    font-size: 26px;
  }

  .hero-remote{
    padding: 20px;
  }

  .hero-main h1{
    font-size: 26px;
    line-height: 1.15;
  }

  .hero-lead{
    font-size: 15px;
  }

  .hero-badge{
    font-size: 11px;
  }

  .hero-tags{
    gap: 8px;
  }

  .hero-tag{
    padding: 8px 12px;
    font-size: 11px;
  }

  .hero-metrics{
    grid-template-columns: 1fr !important;
  }

  .metric-card{
    min-width: 0;
    padding: 16px;
  }

  .metric-card strong{
    font-size: 24px;
  }

  .health-row-top{
    flex-wrap: wrap;
  }

  .health-name{
    font-size: 14px;
  }

  .dist-row{
    grid-template-columns: 80px 1fr 40px;
    gap: 8px;
  }

  .team-box,
  .employee-card,
  .analysis-box,
  .insight-card,
  .action-item,
  .onboard-card,
  .role-card,
  .zone-card,
  .coach-reason,
  .ra-card,
  .ra-about,
  .collab-box,
  .dev-stat,
  .risk-box,
  .member-card{
    padding: 16px !important;
  }

  .action-modal-box,
  .modal{
    max-width: 96vw;
    padding: 20px;
  }

  .modal h2{
    font-size: 26px;
  }

  .coach-header,
  .collab-header{
    flex-wrap: wrap;
  }

  .coach-body h3{
    font-size: 24px;
  }

  .ra-top h2{
    font-size: 24px;
  }

  .ra-score-number{
    width: 60px;
    height: 60px;
    font-size: 22px;
  }

  .action-title h2,
  .missing-head h3{
    font-size: 22px;
  }

  .format-grid,
  .ra-about-grid{
    grid-template-columns: 1fr !important;
  }

  .balance-row{
    grid-template-columns: 90px 1fr;
  }

  .zone-card{
    flex-direction: column;
  }

  .employee-table-wrapper,
  #comparisonHeatmap{
    overflow-x: auto;
  }

  .heatmap-table{
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .employee-table th,
  .employee-table td{
    font-size: 13px;
    padding: 8px 6px;
  }

  .employee-avatar,
  .avatar{
    width: 36px;
    height: 36px;
  }

  .onboard-quicknav{
    max-height: 120px;
    overflow-y: auto;
  }

  .roles-grid{
    grid-template-columns: 1fr !important;
  }

  .onboard-grid{
    grid-template-columns: 1fr !important;
  }

  .dev-summary{
    grid-template-columns: 1fr !important;
  }

  .dev-range-tabs{
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .dev-range-btn{
    flex-shrink: 0;
  }

  .table-actions,
  .section-actions{
    width: 100%;
  }

  .table-actions input,
  .section-actions input{
    min-width: 0;
    width: 100%;
  }

  .highlight-card,
  .zone-icon,
  .role-icon,
  .coach-icon,
  .collab-icon,
  .action-icon,
  .guide-icon,
  .missing-icon{
    flex-shrink: 0;
  }

  .form-grid{
    grid-template-columns: 1fr !important;
  }

}
