@keyframes highlightRow {
  0% { background: #fff; box-shadow: none; }
  30% { background: #e3f2fd; box-shadow: 0 0 8px #90caf9; }
  100% { background: #fff; box-shadow: none; }
}

.row.animate-highlight {
  animation: highlightRow 0.8s ease;
}
html {
  scrollbar-width: none;
}

body {
  box-sizing: border-box;
  /* overflow: hidden; */
  -ms-overflow-style: none;
  min-height: 600px;
}

body::-webkit-scrollbar{
  display: none;
}

h2.denser {
    font-weight: 600;
    /* font-size: 1.5rem; */
    line-height: 2cap;
}

.panel {
    display: grid;
    gap: 12px;
    max-width: 900px;
}

p.ingress {
    font-size: 24px;
    line-height: 1.2;
}

fieldset {
    /* border: 1px solid #ddd;
    border-radius: 12px; */
    padding: 0px 0px;
    border: none;
}

legend {
    padding: 0 6px;
    font-weight: 600;
}

.checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 16px;
}

.row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
}

.kpi {
    font-size: 25px;
    line-height: 1.1;
    padding-top: 15px;
    padding-bottom: 15px;
}
.hidden {
    display: none;
}

#bottom-bar {
  width: 100%;
  height: 60px;
  position: absolute;
  bottom: 0;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-around;
  align-items:flex-end;
  background: #2E4874;
  background: linear-gradient(0deg, rgba(46, 72, 116, 1) 0%, rgba(250, 249, 247, 1) 84%);
} 

#bottom-bar img {
  height: 30px; /* skalas med höjden på baren */
  flex-shrink: 0;
}
.muted {
    color: #666;
}

.primary-content {
    position: relative;
    /* margin-bottom: 70px; */
}

.bar-wrap {
    /* position: relative; */
    max-width: 900px;
    /* margin-bottom: 40px; */
}

text.value {
  font-size: 1em;
}
.totalt-valda {
  font-size: 14px;
  /* margin-top: 8px;
  margin-bottom: 16px; */
}

.clear-row {
    /* background-color: green; */
  font-family: Founders Grotesk Text;
  /* src: url(../fonts/founders-grotesk-text/FoundersGroteskTextWeb-Semibold.woff2)
    format("woff2"); */
  font-weight: 600;
  display: block;
}


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

.note {
    font-size: 13px;
    color: #666;
}

#pie {
    display: none;
}

#showDrawerContainer {
  display: flex;
  justify-content: center;
}

  #showDrawer {
  width: 40%;
  margin: 0 auto;
  /* display: none; */
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 100;
}

/* Drawer */
.drawer {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: white;
  max-height: 60vh; /* viktig: tar aldrig mer än 60% av viewporten */
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
  overflow-y: auto;
  padding: 1rem;
  transition: bottom 0.3s ease;
  z-index: 101;
}

.drawer.open {
  bottom: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.drawer-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  background-image: url(../arbetet_assets/img/closex.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: fixed;
  right: 20px;
  margin-top: 20px;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

ul li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #eee;
}

li {
    display: block;
    width: 50%;
    float: left;
}

@media screen and (max-width: 400px) {
  text.value {
    font-size: medium;
  }
  .totalt-valda {
    font-size: 12px;
  }

  #showDrawer {
    width: 40%;
    margin: 0 auto;
    font-size: 14px;
    /* display: none; */
  }

  .kpi {
    font-size: 20px;
    line-height: 1.1;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  p.ingress {
    font-size: 20px;
    line-height: 1.2;
}

.row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
  }
}


/* Mellan-stora skärmar: visa 5 ikoner */
@media (min-width: 600px) {
  #bottom-bar img:nth-child(5) {
    display: block;
  }

  body {
    min-height: 600px;
  }
}

@media (max-width: 450px) {
  #bottom-bar img:nth-child(n+5) {
    display: none;
  }
}

/* Visa 4 ikoner på små skärmar */
@media (min-width: 450px) {
  #bottom-bar img:nth-child(5) {
    display: block;
  }
}


/* Större skärmar: visa 6 ikoner */
@media (min-width: 900px) {
  #bottom-bar img:nth-child(6) {
    display: block;
  }
}

/* Ännu större: visa alla */
@media (min-width: 1200px) {
  #bottom-bar img {
    display: block;
  }
}

/* Inställningar för body med max-width */
@media (max-width: 450px) {

  body {
    min-height: 800px;
  }
}

/* Inställningar för body med max-width */
@media (min-width: 200px) {

  body {
    min-height: 850px;
  }
}

/* Inställningar för body med min-width */

@media (min-width: 375px) {

  body {
    min-height: 800px;
  }
}

@media (min-width: 450px) {

  body {
    min-height: 700px;
  }
}

@media screen and (min-width: 600px) {
  body {
    min-height: 600px;
  }

}