* {
  font-family: 'Noto Sans', sans-serif;
  font-size: 13px;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

/* ============================================================
   TIMEGLASS (loading spinner)
   ============================================================ */
.timeglass {
  position: absolute;
  width: 100px;
  height: 100px;
  left: calc(50% - 50px);
  top: calc(50% - 50px);
  border: 16px solid #f3f3f3;
  border-top: 16px solid #FF9900;    /* H9-oransje */
  border-bottom: 16px solid #4A85E9; /* H9-blå */
  border-radius: 50%;
  animation: spin 3s linear infinite;
  display: none;
  z-index: 9999;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 40px;
  background: url('https://lh3.googleusercontent.com/g-kWMwn7bn7z7QfwUcqL4otLdZdu9ceALKJ8ogt6o_yub5T4Ss0DLbY7jAk8Q7X64TmwfZxEoctU8RjiECLMp3qPTFun_8k3Nn7FPSzo0i80nZD0yMXGbBSK0EYo5t8ixEl0-0mQ');
  background-repeat: no-repeat;
  background-size: 100% 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 15px;
  z-index: 100;
}

#headerText {
  font-size: 28px;
  font-family: 'Indie Flower', cursive;
  text-shadow: 1px 0.2px 3px #4a85e9;
  color: #fff;
  transform: translateY(2px);
}
.header-hoyre {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.header-version {
  font-size: 11px;
  opacity: 0.7;
}

/* ============================================================
   LOGIN
   ============================================================ */
.loginPage {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.loginButton {
  padding: 15px 40px;
  font-size: 16px;
  background-color: #4A85E9;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Noto Sans', sans-serif;
}

.loginButton:hover {
  background-color: #3a6fd8;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   INNHOLD
   ============================================================ */
.innhold {
  position: relative;
  top: 40px;
  padding: 0 14px;
  box-sizing: border-box;
}

/* ============================================================
   ARKFANER (TABS)
   ============================================================ */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.tab {
  padding: 10px 24px;
  font-size: 14px;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #888;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -2px;
}

.tab:hover {
  color: #444;
}

.tab-active {
  color: #4A85E9;
  border-bottom-color: #4A85E9;
}

.tab-panel {
  padding-top: 10px;
}

/* ============================================================
   ROM-KNAPPER
   ============================================================ */
.knappAlle {
  border: 1px solid white;
  border-radius: 2em;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  font-family: 'Noto Sans', sans-serif;
}

.knapp1 { background-color: purple; }
.knapp2 { background-color: SlateBlue; }
.knapp3 { background-color: royalblue; }
.knapp4 { background-color: DarkCyan; }
.knapp5 { background-color: MediumSeaGreen; }
.knapp6 { background-color: orange; }
.knapp7 { background-color: tomato; }

.knappInaktiv { opacity: 0.3; }

.knappAktiv:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border: 1px solid black;
  cursor: pointer;
}

/* ============================================================
   INNSATSGRAF
   ============================================================ */
.studentProfilePage {
  position: relative;
  top: 0;
}

.studentProfileContainer {
  display: flex;
  flex-direction: column;
}

.studentProfileContent1 {
  position: relative;
  top: 40px;
  display: flex;
  justify-content: space-between;
}

.studentProfileContent2 {
  margin-top: 60px;
  display: flex;
}

.studentEffortGraph {
  position: relative;
  width: 700px;
  height: 300px;
}

.chartContainer {
  width: 100%;
  height: 100%;
}

.checkbox-container {
  position: absolute;
  bottom: 3px;
  right: 15px;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px;
  border-radius: 5px;
}

/* ============================================================
   INNSATSSIRKLER
   ============================================================ */
.circle {
  width: 46px;
  height: 46px;
  margin: 4px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
  word-wrap: break-word;
  color: #000;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.green  { background-color: #90ee90; } /* Grønn for "OPP" */
.orange { background-color: #ffd580; } /* Oransje for "NED" */
.red    { background-color: #f08080; } /* Rød for "BLANK" og "ILVRT" */

.studentEffortCircles {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  width: max-content;
}

/* ============================================================
   SHAKE-ANIMASJON
   ============================================================ */
@keyframes shake {
  0%   { transform: translate(1px, 1px) rotate(0deg); }
  10%  { transform: translate(-1px, -2px) rotate(-1deg); }
  20%  { transform: translate(-3px, 0px) rotate(1deg); }
  30%  { transform: translate(3px, 2px) rotate(0deg); }
  40%  { transform: translate(1px, -1px) rotate(1deg); }
  50%  { transform: translate(-1px, 2px) rotate(-1deg); }
  60%  { transform: translate(-3px, 1px) rotate(0deg); }
  70%  { transform: translate(3px, 1px) rotate(-1deg); }
  80%  { transform: translate(-1px, -1px) rotate(1deg); }
  90%  { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* ============================================================
   RESPONSIVT
   ============================================================ */
@media only screen and (max-width: 768px) {
  .studentEffortGraph {
    width: 100%;
    max-width: 700px;
  }
}

/* ============================================================
   TOAST-VARSLING
   ============================================================ */
.toast {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background-color: #2e7d32;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  text-align: center;
  max-width: 90%;
}

.toast.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.toast-error {
  background-color: #c62828;
}

/* ============================================================
   OPPDATERINGS-OVERLAY
   ============================================================ */
.update-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.update-overlay-box {
  background-color: #fff;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 360px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.update-overlay-title {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Noto Sans', sans-serif;
  margin-bottom: 12px;
  color: #222;
}

.update-overlay-text {
  font-size: 14px;
  font-family: 'Noto Sans', sans-serif;
  color: #555;
  margin-bottom: 24px;
}

.update-overlay-button {
  padding: 12px 32px;
  background-color: #4A85E9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.update-overlay-button:hover {
  background-color: #3a6fd8;
}

/* ============================================================
   GRUNNPAKKA
   ============================================================ */
.gp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  max-width: 630px;
  margin: 16px 0;
}

.gp-cell {
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 8px 4px 6px;
  text-align: center;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.gp-cell-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 4px;
}

.gp-nr {
  font-weight: 700;
  font-size: 13px;
  color: #222;
}

.gp-star {
  font-size: 10px;
  color: #cc0000;
  line-height: 1;
  margin-top: 1px;
}

.gp-status {
  font-size: 11px;
  color: #444;
  line-height: 1.3;
}

/* Popup */
.gp-popup {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 180px;
  max-width: 240px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  z-index: 500;
}

.gp-popup-tittel {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: #111;
}

.gp-popup-notat {
  font-size: 12px;
  font-style: italic;
  color: #555;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.gp-popup-datoer {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gp-popup-bestatt {
  font-size: 12px;
  color: #2e7d32;
  font-weight: 600;
}

.gp-popup-ikke-bestatt {
  font-size: 12px;
  color: #999;
}

.gp-wrapper {
  padding-left: 28px;
}

.gp-forklaring {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 8px;
  max-width: 630px;
  font-size: 12px;
  color: #444;
  flex-wrap: wrap;
  row-gap: 6px;
}

.gp-fk-boks {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}

.gp-fk-star {
  font-size: 12px;
  color: #cc0000;
  margin-left: 6px;
}

/* Mobilvisning: 4 per rad */
@media only screen and (max-width: 500px) {
  .gp-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* ============================================================
   HUMHOOT — elev-banner og spill-overlay
   ============================================================ */

.humhoot-banner {
  background: linear-gradient(135deg, #7c4dff 0%, #4a148c 100%);
  color: white;
  padding: 14px 18px;
  margin: 12px 16px 0;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(124, 77, 255, 0.4);
  animation: humhoot-banner-pulse 2s ease-in-out infinite;
  user-select: none;
  font-family: inherit;
}
@keyframes humhoot-banner-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(124, 77, 255, 0.4); }
  50%      { box-shadow: 0 6px 24px rgba(124, 77, 255, 0.7); }
}
.humhoot-banner-ikon {
  font-size: 28px;
}
.humhoot-banner-tekst {
  flex: 1;
  font-size: 15px;
}
.humhoot-banner-tekst strong { font-weight: 700; display: block; font-size: 17px; }

/* ============================================================
   Overlay (full-screen)
   ============================================================ */

.humhoot-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #4a148c 0%, #1a237e 100%);
  z-index: 10000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  font-family: inherit;
}

.hh-elev-side {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  position: relative;
  color: white;
  text-align: center;
  gap: 14px;
}

.hh-elev-venter {
  margin: auto;
  font-size: 22px;
  color: white;
  opacity: 0.85;
}

.hh-elev-privat {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hh-elev-privat:hover {
  background: rgba(255,255,255,0.35);
}
.hh-elev-privat-ikon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* Diagonal strek over øyet når personvern-modus er aktivt */
.hh-elev-privat-skjult .hh-elev-privat-ikon::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  top: 50%;
  height: 2.5px;
  background: white;
  transform: rotate(-30deg);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
  pointer-events: none;
}

/* Lobby */
.hh-elev-lobby .hh-elev-tittel {
  font-size: 32px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hh-elev-undertittel {
  font-size: 18px;
  opacity: 0.85;
}
.hh-elev-min-foto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 25%;
  border: 4px solid white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  margin-top: 14px;
}
.hh-elev-min-navn {
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}

/* Spille — knapper med tekst */
.hh-elev-spille {
  justify-content: stretch;
  padding: 16px;
  gap: 10px;
}
.hh-elev-sp-info {
  font-size: 16px;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 14px;
  align-self: center;
}
.hh-elev-knapper {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.hh-elev-svar-knapp {
  border: none;
  border-radius: 16px;
  padding: 24px 18px;
  font-size: 22px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  transition: transform 0.1s, box-shadow 0.1s;
  font-family: inherit;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hh-elev-svar-knapp:hover {
  transform: scale(1.03);
}
.hh-elev-svar-knapp:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.hh-elev-svar-tekst {
  word-break: break-word;
}
.hh-elev-spille-fot {
  font-size: 13px;
  opacity: 0.7;
  font-style: italic;
}

/* Etter svar — pulserende spørsmålstegn signaliserer venting */
.hh-elev-svart .hh-elev-svart-ikon {
  font-size: 90px;
  background: white;
  color: #7c4dff;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  animation: hh-elev-vent-pulse 1.4s ease-in-out infinite;
}
@keyframes hh-elev-pop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}
@keyframes hh-elev-vent-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  50%      { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(255,255,255,0); }
}
.hh-elev-svart-tekst {
  font-size: 24px;
  font-weight: 700;
}
.hh-elev-svart-undertekst {
  font-size: 16px;
  opacity: 0.8;
}

/* Fasit */
.hh-elev-fasit-riktig { background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%); }
.hh-elev-fasit-feil { background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%); }
.hh-elev-fasit-tom { background: linear-gradient(135deg, #6a1b9a 0%, #311b92 100%); }
.hh-elev-fasit-riktig,
.hh-elev-fasit-feil,
.hh-elev-fasit-tom {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.hh-elev-fasit-ikon {
  font-size: 100px;
  animation: hh-elev-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hh-elev-fasit-tekst {
  font-size: 36px;
  font-weight: 800;
}
.hh-elev-fasit-svar {
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  max-width: 90%;
}
.hh-elev-fasit-poeng-pluss {
  font-size: 36px;
  font-weight: 800;
  color: #ffeb3b;
}
.hh-elev-fasit-poeng {
  font-size: 18px;
  opacity: 0.9;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 14px;
}

/* Mellomstatus */
.hh-elev-mellom-tittel {
  font-size: 24px;
  font-weight: 700;
}
.hh-elev-min-plass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hh-elev-plass-tall {
  font-size: 80px;
  font-weight: 800;
  color: #ffeb3b;
  line-height: 1;
}
.hh-elev-plass-tekst {
  font-size: 16px;
  opacity: 0.9;
}
.hh-elev-min-score {
  font-size: 28px;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 8px 22px;
  border-radius: 14px;
}

/* Ferdig */
.hh-elev-ferdig-tittel {
  font-size: 32px;
  font-weight: 800;
}
.hh-elev-ferdig-medalje {
  font-size: 100px;
  animation: hh-elev-medalje 1.2s ease-in-out infinite;
}
@keyframes hh-elev-medalje {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-10px) rotate(5deg); }
}
.hh-elev-ferdig-plass {
  font-size: 22px;
  font-weight: 700;
}
.hh-elev-ferdig-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}
.hh-elev-stat {
  background: rgba(255,255,255,0.2);
  padding: 14px 22px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hh-elev-stat-tall {
  font-size: 32px;
  font-weight: 800;
  color: #ffeb3b;
}
.hh-elev-stat-tekst {
  font-size: 14px;
  opacity: 0.9;
}
.hh-elev-lukk-knapp {
  margin-top: 18px;
  background: white;
  color: #4a148c;
  border: none;
  border-radius: 28px;
  padding: 12px 32px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.hh-elev-lukk-knapp:hover {
  transform: scale(1.04);
}

.hh-elev-tid-ute {
  background: linear-gradient(135deg, #6a1b9a 0%, #311b92 100%);
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.hh-elev-tid-ute-ikon {
  font-size: 100px;
  animation: hh-elev-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   FLEKSITID-FANEN
   ============================================================ */
.fleks-toppbokser { display: flex; gap: 12px; margin: 8px 0 16px; }
.fleks-boks {
  flex: 1; border-radius: 16px; padding: 18px 16px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.fleks-boks-tid { background: #e8f5e9; }
.fleks-boks-fravaer { background: #ffebee; }
.fleks-boks-label { font-size: 13px; font-weight: 600; opacity: 0.8; }
.fleks-boks-tid .fleks-boks-label { color: #2e7d32; }
.fleks-boks-fravaer .fleks-boks-label { color: #c62828; }
.fleks-boks-tall { font-size: 34px; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.fleks-boks-tid .fleks-boks-tall { color: #2e7d32; }
.fleks-boks-tid .fleks-boks-tall.fleks-boks-tall-minus { color: #c62828; }
.fleks-boks-fravaer .fleks-boks-tall { color: #c62828; }
.fleks-humanna { font-size: 15px; font-weight: 600; color: #5e35b1; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.fleks-humanna-mynt { display: inline-flex; }
.fleks-humanna-mynt svg { width: 20px; height: 20px; display: block; }
.fleks-feil { font-size: 13px; color: #c62828; text-align: center; min-height: 0; }
.fleks-tom { color: #888; font-size: 14px; padding: 12px 0; text-align: center; }

/* Kort (tidsbot · tidslinje · godskrevet) */
.fleks-kort {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #e6e0f2; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 6px;
}
.fleks-kort-tidslinje, .fleks-kort-bot { cursor: pointer; }
.fleks-kort-tidslinje:hover, .fleks-kort-bot:hover { background: #faf8ff; }
.fleks-kort-bot { border-left: 4px solid #ef5350; }
.fleks-kort-gods { border-left: 4px solid #66bb6a; }
.fleks-kort-dato { font-size: 13px; font-weight: 600; color: #888; min-width: 42px; }
.fleks-kort-tittel { flex: 1; font-size: 14px; color: #444; }
.fleks-kort-netto { font-size: 22px; font-weight: 700; white-space: nowrap; }
.fleks-kort-netto.pluss { color: #2e7d32; }
.fleks-kort-netto.minus { color: #c62828; }
.fleks-kort-netto.noytral { color: #888; }

/* Øktene side om side med fast mellomrom */
.fleks-okter { flex: 1; display: flex; gap: 14px; min-width: 0; }
.fleks-okt { flex: 1; min-width: 0; }
.fleks-okt-bar { position: relative; height: 22px; }
.fleks-okt-segs {
  display: flex; height: 100%; border-radius: 5px; overflow: hidden;
  background: #eceff1; border: 1px solid #e0e0e0;
}
.fleks-okt-naa {
  position: absolute; top: -5px; bottom: -5px; width: 2px;
  background: #263238; transform: translateX(-1px); z-index: 1;
  border-radius: 2px;
  animation: fleks-naa-puls 2s ease-in-out infinite;
}
@keyframes fleks-naa-puls {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(38,50,56,0.35); }
  50% { opacity: 0.55; box-shadow: 0 0 4px 1px rgba(38,50,56,0.25); }
}
.fleks-seg { height: 100%; }
.fleks-seg-bla { background: #42a5f5; }
.fleks-seg-gronn { background: #66bb6a; }
.fleks-seg-rod { background: #ef5350; }
.fleks-seg-gra { background: #cfd8dc; }
.fleks-seg-lysrod { background: #ffcdd2; }   /* fremtidig: gjenstående obligatorisk */
.fleks-seg-lysgra { background: #f0f3f5; }   /* fremtidig: frivillig rest */
.fleks-okt-tid { display: flex; justify-content: space-between; font-size: 10px; color: #999; margin-top: 2px; }

/* Stemplingsknapper + status-linje */
.lv-knapper { margin-bottom: 6px; }
.lv-status { font-size: 14px; font-weight: 600; min-height: 18px; margin: 10px 2px 28px; }
.lv-status-inne { color: #2e7d32; }
.lv-status-pause { color: #777; }

/* Diskret «Vis mer …»-lenke */
.fleks-vis-mer {
  text-align: center; color: #5e35b1; font-size: 13px;
  cursor: pointer; padding: 8px; text-decoration: underline;
}
.fleks-vis-mer:hover { color: #7c4dff; }

/* Stemplingsdetaljer-modal */
.fleks-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 10004; padding: 20px;
}
.fleks-modal-boks {
  background: #fff; border-radius: 14px; padding: 20px; max-width: 360px; width: 100%;
  max-height: 80vh; overflow-y: auto;
}
.fleks-modal-tittel { font-size: 16px; font-weight: 700; margin-bottom: 12px; text-transform: capitalize; }
.fleks-modal-tabell { width: 100%; border-collapse: collapse; }
.fleks-modal-tabell th { text-align: left; font-size: 12px; color: #888; padding: 4px 8px; border-bottom: 1px solid #eee; }
.fleks-modal-tabell td { font-size: 14px; padding: 6px 8px; border-bottom: 1px solid #f3f3f3; }
.fleks-modal-lukk {
  margin-top: 14px; width: 100%; padding: 10px; border: none; border-radius: 8px;
  background: #7c4dff; color: #fff; font-size: 14px; cursor: pointer;
}
