@charset "utf-8";
.hidden { display: none !important; }

.ast-plain-container, .ast-page-builder-template {
    background-color: #FDE7DA;
}
.entry-content .wp-audio-shortcode, .entry-content .wp-embedded-audio, .entry-content .wp-embedded-video, .entry-content .wp-video, .entry-content p {
    margin-bottom: 1em;
}
article.pom-course-single {
    border-radius: 20px;
}
.button{
	  --brand: #03A688; 
	  --btn-bg-hover: #68CAB8;
}
.pom-badge-maincategory{
	--maincat-badge-bg:#FDE7DA;
}
.pom-badge-subcategory{
		--subcat-badge-bg:#FDE7DA;	
}
a.pom-btn{
  --brand-contrast: #ffffff;
}
.pom-btn {
  --btn-bg: #ffffff;
  --btn-bd: #e5e7eb;
  --btn-fg: #111827;
  --btn-bg-hover: #03A688;
  --btn-bd-hover: #d1d5db;
  --btn-shadow: 0 1px 2px rgba(0,0,0,.06);
  --btn-shadow-hover: 0 2px 8px rgba(0,0,0,.10);
  --brand: #03A688; /* din teal */
  --brand-contrast: #ffffff;

  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 9999px; /* pill */
  text-decoration: none;
  box-shadow: var(--btn-shadow);
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  position: relative;
  will-change: transform;
}

/* Enskild rad */
.pom-up-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
a.pom-up-item {
  text-decoration: none !important;
  color: inherit;
}/* Hover-effekt – tydligare */
.pom-up-item:hover {
  background-color: #f1f5f9; /* lite mörkare grå än innan */
  transform: translateX(2px);
}

/* Kalender-badge */
.pom-cal {
  background: #e2e8f0; /* tydligare neutral */
  border-radius: 6px;
  text-align: center;
  padding: 4px 6px;
  min-width: 46px;
  transition: background-color 0.15s ease;
}
.pom-up-item:hover .pom-cal {
  background: #cbd5e1;
}

/* Datum-typografi */
.pom-cal__mon {
  font-size: 11px;
  text-transform: uppercase;
  color: #475569;
  font-weight: 500;
}
.pom-cal__day {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

/* Kommande bokningar – kompakt, utan borders */
.pom-upcoming-v2{
  list-style:none; padding:0; margin:0;
  display:flex; flex-direction:column; gap:12px;
}
.pom-up-item{
  display:grid;
  grid-template-columns: 52px 1fr;
  gap:12px;
  align-items:start;
}
.pom-up-when { margin-top: 6px; }
.pom-when-row {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
  margin: 2px 0;
  color: #475569; /* M3-ish slate */
  font-size: 13px;
}
.pom-when-ico {
  font-size: 18px;
  line-height: 1;
  vertical-align: -2px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
}
/* Kalender-badge i Material 3-anda */
.pom-cal{
  width:52px; height:52px; border-radius:12px;
  background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.04);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  border:1px solid #eef2f7;
}
.pom-cal__mon{
  font-size:10px; letter-spacing:.4px;
  text-transform:uppercase; color:#6b7280; line-height:1;
}
.pom-cal__day{
  font-weight:700; font-size:22px; line-height:1.1; color:#111827;
}

/* Högerkolumn */
.pom-up-right{ display:flex; flex-direction:column; gap:6px; }
.pom-up-top{ display:flex; align-items:center; gap:8px; }
.pom-up-title{
  font-weight:600; color:#111827; text-decoration:none;
}
.pom-up-title:hover{ text-decoration:underline; }

.pom-up-time{
  display:flex; align-items:center; gap:6px;
  font-size:14px; color:#4b5563;
}
.pom-up-time .material-symbols-outlined{
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
  font-size:18px; line-height:1; vertical-align:-2px;
}

/* Ny-badge – samma stil som du använder i övriga listan */
.pom-new-badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:2px 8px; border-radius:999px; font-size:12px; line-height:1.6;
  background:#fff3d4; color:#7a4b00; border:1px solid #ffe2a6;
}
.pom-new-badge .material-symbols-outlined{
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 20;
  font-size:16px; vertical-align:-2px;
}

.pom-badge {
  display:inline-block;
  padding:2px 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1.6;
  border:1px solid transparent;
  background:#f3f4f6;
  color:#111827;
}
.pom-badge-format {
  background:#eef2ff;        
  color:#3730a3;
  border-color:#dbeafe;
}
.pom-format-badges .material-symbols-outlined{
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.pom-badge-maincourse{
  background:#eef6ff; border-color:#cfe4ff; color:#0b5cab; font-weight:600;
}


/* Liten luft mellan kluster: lägg marginal via en "gap"-rad i thead/tbody? 
   Enkelt trick: ge tabellen separat border-collapse och row-gap som visuellt mellanrum */
.pom-card {
  border-collapse: separate;
  border-spacing: 0 8px; /* horisontell = 0, vertikal = 8px “gap” mellan tbody-kluster */
}




.pl-ec-card__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 2.5rem; /* ger utrymme åt hörnbadge */
}

.pl-ec-card__head .pl-ec-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #eef3ff;
  border: 1px solid #dbe5ff;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.pl-ec-card__head .pl-ec-chip .material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
  font-size: 18px;
  line-height: 1;
}


/* Ny-inbjudan badge */
.pom-new-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  line-height:1.6;
  background:#fff3d4;
  color:#7a4b00;
  border:1px solid #ffe2a6;
  margin-right:8px;
}
.pom-new-badge .material-symbols-outlined{
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 20;
  font-size:16px; 
  vertical-align:-2px;
}

.pom-badge-dot{
  position:absolute; top:-6px; right:-10px;
  width:10px; height:10px; border-radius:999px;
  background:#999;
}
.pom-badge-dot.danger{ background:#e11d48; }



/* Material 3-style buttons */
/* Bas */
.button {
  display:inline-flex; align-items:center; justify-content:center;
  font-size:.95rem; font-weight:500; line-height:1.2;
  padding:.6rem 1.2rem;
  border-radius:20px;
  text-decoration:none;
  transition:background-color .2s, box-shadow .2s, transform .1s, color .2s, border-color .2s;
  box-shadow:0 2px 4px rgba(0,0,0,.15);
  cursor:pointer;

  /* Filled (default) */
  background-color: var(--brand); color:#fff; border:0;
}
.button:hover, .button:focus { background-color: var(--btn-bg-hover); box-shadow:0 4px 8px rgba(0,0,0,.2); transform:translateY(-1px); }
.button:active { background-color:var(--btn-bg-hover); box-shadow:0 2px 4px rgba(0,0,0,.2); transform:translateY(0); }
.button[disabled] { background-color:#ccc; color:#666; box-shadow:none; cursor:not-allowed; }

/* Outlined modifier */
.button-outlined {
  background:transparent; color:#f48546;
  border:2px solid #f48546; box-shadow:none;
}
.button-outlined:hover { background:rgba(2,104,104,.08); color:#014f4f; border-color:#014f4f; }
.button-outlined:active { background:rgba(2,104,104,.15); }

/* säkerställ att länkar inte får underline */
a.button, a.button-outlined { text-decoration:none !important; }
.pom-learn-menu .pom-btn {
  text-decoration: none !important;
}
.pom-learn-menu .pom-btn-icon {
  text-decoration: none;
}


.pom-courses { display: grid; gap: 16px; }
.pom-course { border: 1px solid #eee; padding: 16px; border-radius: 12px; }
.pom-course-meta span, .pom-course-meta a { margin-right: 10px; display:inline-block; }
.pom-course-actions .button { margin-right: 8px; }
.pom-table { width:100%; border-collapse: collapse; }
.pom-table th, .pom-table td { border-bottom: 1px solid #eee; padding: 8px; text-align:left; }
.pom-warning { color: #406c5d; }
.pom-success { color: #047857; }

/* Topprad: titel vÃ¤nster, knappar hÃ¶ger */
.pom-course-headbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}

/* Knappraden */
.pom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-left: 1rem;
}

/* SÃ¤kerstÃ¤ll att knappar inte Ã¶verlappar text */
.pom-actions .button { white-space: nowrap; }
.pom-course-head .pom-meta { margin-top: .25rem; }

/* Mindre skÃ¤rmar: lÃ¤gg knapparna under titeln */
@media (max-width: 720px) {
  .pom-course-headbar { flex-direction: column; align-items: flex-start; }
  .pom-actions { margin-left: 0; }
}
.pom-notice {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.pom-notice.pom-success {
  background: #e6f9ec;
  border: 1px solid #4caf50;
  color: #256029;
}



.pom-course-picker { margin:12px 0 18px; }
#pom-picker-select { min-width:360px; }



.pom-my .pom-muted { opacity: .7; }


.pom-auth input[type="text"],
.pom-auth input[type="email"],
.pom-auth input[type="tel"],
.pom-auth input[type="password"] { width:100%; padding:8px; border:1px solid #ddd; border-radius:8px; }
.pom-auth label { display:block; margin-bottom:10px; }
.pom-auth .button { margin-top:8px; }

.pom-pass-wrap {
  position: relative;
  display: block;
}
.pom-pass-wrap input {
  width: 100%;
  padding-right: 40px; /* plats fÃ¶r ikonen */
}
.pom-toggle-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  color: #666;
}
.pom-toggle-eye:hover {
  color: #111;
}

/*DASHBOARD*/
.pom-dash-menu { display:flex; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.pom-dash-btn { padding:10px 14px; border:1px solid #e5e7eb; border-radius:10px; text-decoration:none; display:inline-block; }
.pom-dash-grid { display:grid; gap:16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pom-progress { background:#f3f4f6; height:10px; border-radius:9999px; overflow:hidden; margin:8px 0; }
.pom-progress-bar { height:10px; background:#f48546; }
.pom-progress-bar--complete { background: #03A688 !important; }

.pom-quick { margin:0; padding-left:18px; }
.pom-upcoming { list-style:none; margin:0; padding:0; }
.pom-upcoming li { padding:8px 0; border-bottom:1px solid #f0f0f0; }
.pom-up-title a { font-weight:600; text-decoration:none; }
.pom-up-time { font-size:0.9em; color:#555; }

.pom-card { border:1px solid #eee; border-radius:12px; padding:16px; background:#fff; }
.pom-card tr {
  transition: background-color 0.2s ease;
}

.pom-card tbody tr:hover {
  background-color: #f9fafb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.pom-card th {
  text-align: left;
  font-weight: 600;
  padding: 8px 12px;
}
.pom-card td {
  padding: 8px 12px;
}


/* Dashboard-notis för dokument att signera (klickbar, utan underline) */
a.pom-dash-docs-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #ff0000;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 6px;
  line-height: 1.4;
  text-decoration: none !important; 
  transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

a.pom-dash-docs-hint:hover,
a.pom-dash-docs-hint:focus {
  background: #fffbeb;
  transform: translateY(-1px);
  text-decoration: none !important;  /* säkerställer även vid keyboard-focus */
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

a.pom-dash-docs-hint .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
  color: #f59e0b;
}


/* ===== Badge för osignerade dokument ===== */
.pom-btn-docs {
  position: relative;
}

.pom-badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;   /* röd */
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  min-width: 18px;
  text-align: center;
}



/*dashmenu*/
/* ==== Dashmeny layout ==== */
.pom-learn-menu {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}


/* NAV MOBILE*/

@media (max-width: 900px) {
  .ast-container {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
    
  .pom-learn-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pom-learn-menu::-webkit-scrollbar { display: none; }

  .pom-learn-menu {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pom-learn-menu::-webkit-scrollbar { display: none; }

  /* Knapparna ska inte radbrytas och får inte krympa */
  .pom-learn-menu .pom-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  
/* HÖGER-FADE som sitter kvar i navet (ingen overlay) */
  .pom-learn-menu {
    -webkit-mask-image: linear-gradient(
      to right,
      #000 0,
      #000 calc(100% - 32px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      #000 0,
      #000 calc(100% - 32px),
      transparent 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
    
 
/* --- Nudge-animation (första laddning) --- */
  .pom-learn-menu {
    animation: pom-nudge-scroll 1.8s ease-in-out 0.8s 1;
  }

  @keyframes pom-nudge-scroll {
    0%   { transform: translateX(0); }
    10%  { transform: translateX(-12px); }
    25%  { transform: translateX(0); }
    40%  { transform: translateX(-6px); }
    60%  { transform: translateX(0); }
    100% { transform: translateX(0); }
  }
    
    
}

@media (max-width:640px){
/* === Fast chevron i högerkant, ovanpå fade === */
.pom-learn-menu {
  position: relative;
}

/* Behåll fade och scroll som tidigare */
.pom-learn-menu::-webkit-scrollbar { display: none; }

/* Chevronen ska ligga fast – inte i scrollflödet */
.pom-scroll-hint {
  position: fixed;                  /* ändrat från absolute → fixed */
  right: 12px;                      /* placerad i högerkanten på skärmen */
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: #026868;                   /* teal */
  opacity: 0.7;
  pointer-events: none;             /* klick går igenom */
  z-index: 50;                      /* över nav och fade */
  animation: hint-pulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.15));
}

/* Pulserande rörelse */
@keyframes hint-pulse {
  0%, 100% { opacity: 0.5; transform: translate(0, -50%); }
  50%      { opacity: 1; transform: translate(5px, -50%); }
}

/* Göm hint när man har skrollat (via JS-klassen) */
.pom-learn-menu.scrolled-left .pom-scroll-hint {
  display: none;
}

}


/* ==== Knapp-stil ==== */

.pom-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bd-hover);
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-1px);
	color:var(--brand-contrast)
}

.pom-btn:active {
  transform: translateY(0); 
  box-shadow: var(--btn-shadow);
}

/* Aktiv/nuvarande sida */
.pom-btn.is-active,
.pom-btn[aria-current="page"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-contrast);
  box-shadow: 0 2px 10px rgba(2,104,104,.25);
}

/* Ghost-variant (fÃ¶r Logga ut) */
.pom-btn-ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.pom-btn-ghost:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bd-hover);
  box-shadow: var(--btn-shadow);
}

/* Ikonens storlek/linjehÃ¶jd */
.pom-btn-icon {
  line-height: 1;
  font-size: 1.05em;
}

/* Tydlig focus-ring fÃ¶r tangentbord */
.pom-btn:focus-visible {
  outline: 3px solid rgba(2,104,104,.35);
  outline-offset: 2px;
  border-radius: 14px;
}


/* Mörkt läge */
@media (prefers-color-scheme: dark) {
  .pom-btn {
    --btn-bg: #0f172a;
    --btn-bd: #263043;
    --btn-fg: #e5e7eb;
    --btn-bg-hover: #111b2f;
    --btn-bd-hover: #32405c;
    --btn-shadow: 0 1px 2px rgba(0,0,0,.4);
    --btn-shadow-hover: 0 2px 8px rgba(0,0,0,.5);
  }
  .pom-btn.is-active,
  .pom-btn[aria-current="page"] {
    box-shadow: 0 2px 10px rgba(2,104,104,.45);
  }
}

/* Reducera animationer fÃ¶r dem som fÃ¶redrar det */
@media (prefers-reduced-motion: reduce) {
  .pom-btn { transition: none; }
}



/*Courses*/
/* Filterbar */
.pom-filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pom-filterbar input[type="search"],
.pom-filterbar select {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

/* Tomt-lÃ¤ge */
.pom-empty {
  text-align: center;
  border: 1px dashed #e5e7eb;
  padding: 28px;
  border-radius: 12px;
  background: #fcfdfd;
}
.pom-empty-illus {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
}
.pom-empty h3 { margin: 6px 0; }
.pom-empty-actions .button {
  margin-top: 10px;
}

/* Befintliga cards */
.pom-courses { display: grid; gap: 16px; }
.pom-course { border: 1px solid #eee; padding: 16px; border-radius: 12px; background:#fff; }
.pom-course-meta span, .pom-course-meta a { margin-right: 10px; display:inline-block; }
.pom-course-actions .button { margin-right: 8px; }



/*FRONT END*/
.pom-course-head .pom-meta span { margin-right:12px; display:inline-block; }
.pom-actions .button { margin-right:8px; }
.pom-section { margin: 24px 0; }
.pom-info-box { background:#fff7ed; border:1px solid #fed7aa; padding:12px; border-radius:8px; }
.pom-hint { color:#555; margin-top:8px; }


/* ==== Ã…RSKALENDER ==== */
.pom-cal-wrap { }
.pom-cal-toolbar {
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:14px;
}
.pom-cal-toolbar h2 { margin:0; }
.pom-cal-year {
  display:grid; gap:16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.pom-cal-month {
  border:1px solid #eee; border-radius:12px; background:#fff; padding:12px;
}
.pom-cal-monthname { margin:4px 4px 10px; font-size:1.05rem; }
.pom-cal-grid {
  display:grid; grid-template-columns: repeat(7, 1fr); gap:6px;
}
.pom-cal-head {
  font-weight:600; text-align:center; font-size:.9rem; color:#444;
}
.pom-cal-cell {
  border:1px solid #f0f0f0; border-radius:10px; min-height:80px; padding:6px;
  background:#fafafa;
}
.pom-cal-empty { background:transparent; border-color:transparent; }
.pom-cal-cell.has-events { background:#ffffff; }
.pom-cal-date { font-weight:600; font-size:.9rem; color:#111; margin-bottom:4px; }
.pom-cal-events { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:4px; }
.pom-cal-events li a { text-decoration:none; }
.pom-cal-badge {
  display:inline-block; font-size:.75rem; line-height:1;
  padding:2px 6px; border-radius:9999px; border:1px solid transparent; margin-right:6px;
}
.badge-digital  { background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; } /* blÃ¥ */
.badge-physical { background:#ecfdf5; color:#065f46; border-color:#a7f3d0; } /* grÃ¶n */
.badge-hybrid   { background:#fff7ed; color:#b45309; border-color:#fed7aa; } /* orange */

/*kategoi-badgar*/
.pom-badge-maincategory {
display: inline-block;
padding: 2px 8px;
border-radius: 9999px;
font-size: .8rem;
background: #f4854673;
color: #000000;
border: 1px solid #f48546;
}


.pom-badge-subcategory {
display: inline-block;
padding: 2px 8px;
border-radius: 9999px;
font-size: .8rem;
background: #cfb09e42;
color: #000000;
border: 0px solid #f48546;
}
/*kategoi-badgar SLUT*/

.pom-card-meta-content{font-size:14px;font-weight: 300;}


/* Re-use our nice buttons */
.pom-cal-toolbar .pom-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 12px; border:1px solid #e5e7eb; border-radius:9999px;
  background:#fff; text-decoration:none; box-shadow:0 1px 2px rgba(0,0,0,.06);
}
.pom-cal-toolbar .pom-btn:hover { background:#f8fafc; }


article.pom-course-single.post-45.pom_course.type-pom_course.status-publish.has-post-thumbnail.hentry.ast-article-single {
    border-radius: 20px;
}
article.pom-course-single.post-33.pom_course.type-pom_course.status-publish.has-post-thumbnail.hentry.pom_course_cat-ledarskap.ast-article-single
 {
    border-radius: 20px;
}
/*Pom single css*/
.pom-head-box {
    background: #fff;
    border: 1px solid #e7e3df;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

/*Pom single css slut*/


/* ===== Kurs-arkiv grid ===== */

.pom-badge-parentref {
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-top:6px;       /* ta bort om den ligger i <h3>-raden */
  margin-left:0;
  padding:2px 6px;
  font-size:11px;
  font-weight:600;
  border:1px solid #e5e7eb;
  border-radius:999px;
  text-decoration:none;
  line-height:1.2;
}
.pom-badge-parentref:hover {
  border-color:#cbd5e1;
}


.pom-courses-archive {
  --pom-cols: 3; /* fallback om inline stil saknas */
}

.pom-archive-head h1{font-size: 2rem;font-weight: 600;line-height: 1.2;}

.pom-courses-archive .pom-archive-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; margin: 10px 0 10px;
}
.pom-courses-archive .pom-archive-controls select{ min-width: 110px; }

.pom-courses-grid{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(var(--pom-cols, 3), minmax(0, 1fr));
}

/* Arkivet ska alltid ta full bredd */
.pom-courses-archive { width: 100%; }

/* Gridden ska inte shrink-to-fit */
.pom-courses-grid {
  display: grid;                    /* säkerställ block-grid, inte inline-grid */
  width: 100%;                      /* fyll raden */
  max-width: none !important;       /* slå ut ev. tidigare max-width-beräkningar */
  grid-template-columns: repeat(var(--pom-cols, 3), minmax(0, 1fr));
  gap: 20px;                        /* eller ert befintliga gap */
}

/* Barn får inte trycka ut gridden */
.pom-courses-grid > * { min-width: 0; }

/* (om ni råkat ha inline-grid någonstans) */
.pom-courses-grid.inline-grid { display: grid; }

/* (om gridden ligger i en flexförälder – förhindra shrink-to-content) */
.pom-courses-archive .pom-courses-grid { flex: 1 1 auto; }



/* Responsiv fallback */
@media (max-width: 1100px){
  .pom-courses-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px){
  .pom-courses-grid{ grid-template-columns: 1fr; }
}

/* Kort */
.pom-course-card{
  border:1px solid #e5e7eb; border-radius:20px; overflow:hidden; background:#fff;
  display:flex; flex-direction:column;
  transition: transform .12s ease, box-shadow .12s ease;
}
.pom-course-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.pom-card-cover{
  display:block; aspect-ratio: 16/9; background:#f3f4f6; overflow:hidden;border-radius: 20px;
}
.pom-card-cover img{ width:100%; height:100%; object-fit:cover; display:block; }
.pom-card-placeholder{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-size:48px; color:#9ca3af;
}

.pom-card-body{ padding:14px; display:flex; flex-direction:column; gap:10px; }
.pom-card-title{ margin:0; font-size:1.3rem; }
.pom-card-title a{ text-decoration:none; }

.pom-card-meta{ display:grid; gap:4px; font-size:.92rem; color:#374151; }
.pom-badges{ display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.pom-badge{
  display:inline-block; padding:2px 8px; border-radius:9999px; font-size:.8rem;
      background: #CDEDE7;
    color: #025c4c;
    border: 1px solid #03A688;
}

.pom-card-excerpt p{ margin:0; color:#4b5563; }

.pom-card-actions{
  display:flex; gap:8px; flex-wrap:wrap; margin-top:10px;
}
.pom-card-actions .button{ line-height:1.2; }
.pom-card-actions .button-secondary{
  background:#f3f4f6; border:1px solid #e5e7eb; color:#111827;
}

/* Pagination */
.pom-archive-pagination{ margin:18px 0; }


article.pom-course-card {
    padding: 1em !important;
}

.pom-badge-corner {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 2;
}

.button-ics {
  position: relative;
  padding: 0.5rem 0.8rem;
}
.button-ics .icon{
  margin-right:.0rem;
  display:inline-block;
  vertical-align:middle;
}


/* enkel bar, valfritt */
#pom-progress-msg::after{
  content:'';
  display:block; height:8px; margin-top:6px; border-radius:9999px;
  background: #e5e7eb;
  position:relative; overflow:hidden;
}
#pom-progress-msg[data-pct]::after{
  background: linear-gradient(90deg, #10b981 var(--pct,0%), #e5e7eb var(--pct,0%));
}

#pom-progress-msg { margin-top:8px; font-weight:600; }
#pom-progress-msg.ok   { color:#065f46; }   /* grÃ¶n */
#pom-progress-msg.warn { color:#b45309; }   /* orange */


/*FILETER TILL GRID*/

/* Filter box */
/* Filter box (collapsible) */
.pom-filter-box{
  background:#fff;
  border:1px solid #e7e3df;
  border-radius:16px;
  padding:8px 12px;
  margin-bottom:18px;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
}

/* Head: ikonknapp + titel + rensa */
.pom-filter-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.pom-filter-head-actions {
  display: flex;
  justify-content: space-between; /* rubrik vänster, knapp höger */
  align-items: center;
  width: 100%;                     /* tar hela radens bredd */
  margin-bottom: 12px;             /* lite luft neråt */
}

/* Toggle button (ikon + “Filter”) */
.pom-filter-toggle{
  display:inline-flex; align-items:center; gap:6px;
 border: 1px solid #03A688;
    border-radius: 9999px;
    padding: 6px 10px;
    background: #03A688;
    color: #ffffff;
    cursor: pointer;
  transition:transform .06s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease, border-color .12s ease;
}
.pom-filter-toggle:hover,
.pom-filter-toggle:focus{
  background:#03A688; color:#fff; box-shadow:0 4px 8px rgba(0,0,0,.2); transform:translateY(-1px);border-color:#03A688;}
.pom-filter-toggle:active{ transform:translateY(0); box-shadow:0 2px 4px rgba(0,0,0,.2);border-color:#03A688; }
.pom-filter-toggle .material-symbols-outlined{ font-size:20px; line-height:1; }

/* Kroppen som fälls ut/in */
.pom-filter-body{
  margin-top:10px;
  overflow:hidden;
  display:none;
}
.pom-filter-box.is-open .pom-filter-body{
  display:block;
}

/* Grupper & badges (från tidigare) */
.pom-filter-groups{ display:flex; flex-direction:column; gap:10px; }
.pom-filter-group{ display:flex; flex-wrap:wrap; gap:8px 12px; align-items:flex-start; }
.pom-filter-parent{ margin-right:6px; }
.pom-filter-children{ display:flex; flex-wrap:wrap; gap:8px; }
.pom-filter-item{ display:inline-block; }

/* Checkbox göms, label = badge */
.pom-filter-check{ position:absolute; left:-9999px; }
.pom-badge-select{
  display:inline-block; border-radius:20px; padding:4px 10px; font-size:.85rem;
  line-height:1.2; cursor:pointer; user-select:none;
  transition:transform .06s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease, border-color .12s ease;
}

/* DINA paletter */
.pom-badge-maincategory {
background: #fde7da;
    color: #000000;
    border: 1px solid #cdcdcd;
}

.pom-badge-subcategory{
background: #fde7da7d;
    color: #4c4c4c;
    border: 1px solid #d5d5d5;
}

.pom-badge-select:hover, .pom-badge-select:focus{
  box-shadow:0 4px 8px rgba(0,0,0,.2); transform:translateY(-1px);
}

/* Markerad */
.pom-filter-check:checked + .pom-badge-maincategory,
.pom-filter-check:checked + .pom-badge-subcategory{
  background:#f48546ad; border-color:#f48546; color:#fff;
  box-shadow:0 4px 8px rgba(0,0,0,.2);
}



/*FILTER TILL GRID SLUT*/

/* === Event Cards (Material 3-ish) === */
.pl-ec-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin: 16px 0 28px;
}
.pl-ec-card {
  grid-column: span 12;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(2,104,104,0.10);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 1px 3px rgba(0,0,0,0.04);
}
@media (min-width: 900px) {
  .pl-ec-card { grid-column: span 6; }
}

.pl-ec-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.pl-ec-card__head h2 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}
.pl-ec-card__head h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
    font-weight: 400;
}
.pl-ec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .75rem;
  line-height: 1.6;
  background: rgba(2,104,104,0.08);
  color: #f48546;
  border: 1px solid rgba(2,104,104,0.15);
}

.pl-ec-card__meta {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px 0;
  display: grid;
  gap: 8px;
}
.pl-ec-card__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2a2a2a;
}
.pl-ec-card__meta svg {
  flex: 0 0 auto;
  opacity: .8;
}

.pl-ec-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Buttons (harmoniserade med din Material-look) */
.pl-btn {
  --_bg: #f48546;
  --_fg: #fff;
  --_bd: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--_bd);
  background: var(--_bg);
  color: var(--_fg);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
}
.pl-btn:hover { transform: translateY(-1px); }
.pl-btn:active { transform: translateY(0); }
.pl-btn--filled {
  --_bg: #f48546;
  --_fg: #fff;
}
.pl-btn--tonal {
  --_bg: rgba(2,104,104,0.10);
  --_fg: #024d4d;
  --_bd: rgba(2,104,104,0.20);
}
.pl-btn--outline {
  --_bg: transparent;
  --_fg: #f48546;
  --_bd: rgba(2,104,104,0.40);
}


.pl-ec-card h2{
  margin-top: 0 !important;
  margin-bottom: calc(0.3em + 10px);
  line-height: 1.25;
}


/* Kortens media-wrapper, håller 16:9 */
.pl-ec-card .media-16x9 {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f3f4f6; /* placeholder */
  border-radius: 12px;
  overflow: hidden;
}

/* Själva videon/iframes fyller wrappen utan att förvrängas */
.pl-ec-card .media-16x9 iframe,
.pl-ec-card .media-16x9 video {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/*DRAWER*/


/*NOTIFICATIONS*/
/* Alert */
.pom-alert{
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; margin:0 0 12px; border-radius:12px;
  background:#e8f3ff; border:1px solid #8dbaf7;
}
.pom-alert-ico{ font-variation-settings:"FILL" 1,"wght" 400; }
.pom-alert-body{ line-height:1.3; }
.pom-alert-sub{ font-size:12px; color:#475569; }
.button-small{ padding:6px 10px; font-size:12px; }
.button-ghost{ background:#81678fb5; border:1px solid #cbd5e1; }

/* Notifieringsmini under snabbmenyn */
.pom-notifs{ margin-top:10px; padding-top:8px; border-top:1px dashed #e2e8f0; }
.pom-notifs-head{
  display:flex; align-items:center; gap:6px; font-weight:600; margin-bottom:6px;
}
.pom-notif-chip{
  margin-left:auto; background:#111827; color:#fff; border-radius:999px;
  font-size:11px; padding:2px 8px;
}
.pom-notifs-list{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.pom-notif-item{
  display:grid; grid-template-columns:1fr auto; gap:4px 10px; align-items:center;
  padding:8px; border-radius:10px; background:#f8fafc;
}
.pom-notif-title{ text-decoration:none; color:#0f172a; font-weight:600; }
.pom-notif-title:hover{ text-decoration:underline; }
.pom-notif-meta{
  grid-column:1/-1; display:flex; align-items:center; gap:6px;
  font-size:12px; color:#475569;
}
.button-tiny{ padding:4px 8px; font-size:11px; }


/*KLUSTER*/

.pom-cluster-steps { margin: 16px 0 20px; }
.pom-step-badges { display:flex; flex-wrap:wrap; gap:8px; }
.pom-parent-steps .pl-ec-card__head { margin-bottom: 2px; }
.pom-parent-steps .m0 { margin: 0; }
.pom-badge-step{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border:1px solid #ddd;border-radius:9999px;background:#f7f7f7;
}
.pom-badge-step .pom-step-num{font-weight:600;}
.pom-badge-step.is-done   { background:#CDEDE7; border-color:#e5e7eb; }
.pom-badge-step.is-open   { background:#f9fafb; border-color:#e5e7eb; }
.pom-badge-step.is-locked { background:#f1f1f1; border-color:#e5e7eb; }
.pom-badge-step.is-current{ background:#FDE7DA; border-color:#e5e7eb; outline:2px solid #f48546; outline-offset:2px; }

/*---------------------------------*/
/* Endast tabellen i "Mina kurser" */
/*---------------------------------*/
.pom-card-cluster-title{color: #5a5a5a;}
.pom-my table.pom-card {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: transparent;
  border: 0;
  padding: 0;
}

.pom-star {
  display:inline-block;
  margin-right:6px;
  font-size:1.1rem;
  line-height:1;
  vertical-align:text-top;
}
.pom-star-big {
  display:inline-block;
  margin-right:6px;
  font-size:2.7rem;
  line-height:1;
  vertical-align:text-top;
  color:#f5c542;
  text-shadow:0 0 4px rgba(0,0,0,.15);
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.pom-star-big:hover {
  transform: scale(1.1);
  text-shadow:0 0 8px rgba(0,0,0,.25);
}
.pom-star--gold {
  color:#f5c542; /* gul */
  text-shadow:0 0 2px rgba(0,0,0,.1);
}
.pom-card-cluster-title { font-weight:600; }


.pom-cluster-sep table, td, th {
     border: 0px; 
}


/* Ta bort hover-skugga på rader i tabellvarianten */
.pom-my table.pom-card tbody tr:hover {
  box-shadow: none !important;
  background-color: transparent; /* valfri hover-färg */
}

/* Klusterram – kant runt hela tbody-gruppen */
.pom-my table.pom-card tbody.pom-cluster tr td { background: #fcfcfd; }
.pom-my table.pom-card tbody.pom-cluster tr:first-child td { 
  box-shadow: inset 0 1px 0 #e5e7eb;        /* toppkant */
}
.pom-my table.pom-card tbody.pom-cluster tr:last-child td { 
  box-shadow: inset 0 -1px 0 #e5e7eb;       /* bottenkant */
}
.pom-my table.pom-card tbody.pom-cluster tr td:first-child { 
  box-shadow: inset 1px 0 0 #e5e7eb;        /* vänsterkant */
}
.pom-my table.pom-card tbody.pom-cluster tr td:last-child { 
  box-shadow: inset -1px 0 0 #e5e7eb;       /* högerkant */
}

/* Hörn – ge cellerna radius så skuggan rundas fint */
.pom-my table.pom-card tbody.pom-cluster tr:first-child td:first-child { border-top-left-radius: 20px; }
.pom-my table.pom-card tbody.pom-cluster tr:first-child td:last-child  { border-top-right-radius: 20px; }
.pom-my table.pom-card tbody.pom-cluster tr:last-child  td:first-child { border-bottom-left-radius: 20px; }
.pom-my table.pom-card tbody.pom-cluster tr:last-child  td:last-child  { border-bottom-right-radius: 20px; }

/* --- HÖRN: rita båda kanter samtidigt (måste ligga EFTER enkel-sidorna) --- */
.pom-my table.pom-card tbody.pom-cluster tr:first-child td:first-child {
  box-shadow: inset 0 1px 0 #e5e7eb, inset 1px 0 0 #e5e7eb;             /* top + left */
}
.pom-my table.pom-card tbody.pom-cluster tr:first-child td:last-child {
  box-shadow: inset 0 1px 0 #e5e7eb, inset -1px 0 0 #e5e7eb;            /* top + right */
}
.pom-my table.pom-card tbody.pom-cluster tr:last-child td:first-child {
  box-shadow: inset 0 -1px 0 #e5e7eb, inset 1px 0 0 #e5e7eb;            /* bottom + left */
}
.pom-my table.pom-card tbody.pom-cluster tr:last-child td:last-child {
  box-shadow: inset 0 -1px 0 #e5e7eb, inset -1px 0 0 #e5e7eb;           /* bottom + right */
}

/* --- HOVER på första kolumnen: behåll hörnens kanter + lägg highlight-linje --- */
.pom-my table.pom-card tbody.pom-cluster tr:hover td:first-child {
  /* vänster highlight + (ev. topp/botten om hörn, via mer specifika regler nedan) */
  box-shadow: inset 3px 0 0 #e5e7eb;
}

/* hörn + hover (kombinera highlight med klusterram) */
.pom-my table.pom-card tbody.pom-cluster tr:first-child:hover td:first-child {
  box-shadow: inset 3px 0 0 #e5e7eb, inset 0 1px 0 #e5e7eb, inset 1px 0 0 #e5e7eb;
}
.pom-my table.pom-card tbody.pom-cluster tr:last-child:hover td:first-child {
  box-shadow: inset 3px 0 0 #e5e7eb, inset 0 -1px 0 #e5e7eb, inset 1px 0 0 #e5e7eb;
}


/* Separator-tbody = bara luft mellan kluster */
.pom-my table.pom-card tbody.pom-cluster-sep td {
  height: 10px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
}
/* Rad-hover i klustrad tabell */
.pom-my table.pom-card td {
  transition: background-color .2s ease;
      padding-top: 14px;
  padding-bottom: 14px;
}

.pom-my table.pom-card tbody.pom-cluster tr:hover td {
  background: #f1f5f9; /* lite ljusare än #fcfcfd */
}

/* (valfritt) liten highlight-linje på vänster sida vid hover */
.pom-my table.pom-card tbody.pom-cluster tr:hover td:first-child {
  box-shadow: inset 3px 0 0 #e5e7eb;
}

/* Fortsätt blocka skugga på tr så ramen inte spricker */
.pom-my table.pom-card tbody tr:hover {
  box-shadow: none !important;
}
/* Make the spacer tbody completely passive */
.pom-my table.pom-card tbody.pom-cluster-sep {
  pointer-events: none;
}

/* No hover paint on the spacer row */
.pom-my table.pom-card tbody.pom-cluster-sep tr:hover td {
  background: transparent !important;
  box-shadow: none !important;
}


/* Endast listan inuti kortet scrollar */
.pom-upcoming-scroll {
  max-height: 60vh;   /* justera vid behov (t.ex. 62–70vh) */
  overflow: auto;
  padding-right: 4px; /* lite luft för scrollbar */
}

/* Fin scrollbar (WebKit) – valfritt */
.pom-upcoming-scroll::-webkit-scrollbar { width: 8px; }
.pom-upcoming-scroll::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 8px;
}
.pom-upcoming-scroll::-webkit-scrollbar-thumb:hover { background: #d1d5db; }

/* Behåll din card-layout */
.pom-card { overflow: hidden; } /* ser till att allt håller sig i cardets rundade hörn */


/* Kluster: huvudkurs + indenterade delmoment */
.pom-up-clusters { gap: 14px; }

.pom-up-item--parent {
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fff;
}

.pom-up-children {
  list-style: none;
  margin: 10px 0 0 16px;        /* indentering */
  padding: 0 0 0 12px;
  border-left: 3px solid #eef2f7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pom-up-item--child {
  border: 1px solid #eef2f7;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}

/* Mindre kalenderbadge för delmoment */
.pom-cal.pom-cal--sm { transform: scale(.88); transform-origin: left top; }

/* Hover-touche */
.pom-up-item--parent:hover { background: #f8fafc; }
.pom-up-item--child:hover  { background: #f9fafb; }

/* ==== Dashboard – Dina kurser med huvudkurs + delmoment ==== */

/* Grundlayouten */
.pom-up-clusters { gap: 12px; }

/* === HUVUDKURS === */
.pom-up-item--parent {
  border: 1px solid #d2f0ee;
  border-radius: 14px;
  background: #e9f9f7;         /* ljus teal-ton (harmoniserar med #03A688) */
  padding: 14px 16px;
  transition: background .2s ease, transform .15s ease;
}
.pom-up-item--parent:hover {
  background: #dff3f1;
  transform: translateY(-1px);
}

/* === DELMOMENT === */
.pom-up-children {
  list-style: none;
  margin: 8px 0 0 18px;
  padding: 0 0 0 12px;
  border-left: 3px solid #d2f0ee;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Mindre kort för barn */
.pom-up-item--child {
  border: 1px solid #eef2f7;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
  line-height: 1.3;
  transition: background .15s ease, transform .15s ease;
}
.pom-up-item--child:hover {
  background: #f8fafc;
  transform: translateX(2px);
}

/* Mindre kalenderbadge för barnkort */
.pom-cal.pom-cal--sm {
  transform: scale(.82);
  transform-origin: left top;
}

/* Typografi – gör delmoment lite mjukare */
.pom-up-item--child .pom-up-title {
  font-weight: 500;
  color: #374151;
  font-size: 0.95em;
}
.pom-up-item--child .pom-up-when {
  font-size: 0.8em;
  color: #6b7280;
}

/* Huvudkurs – starkare titel */
.pom-up-item--parent .pom-up-title {
  font-weight: 600;
  color: #0f172a;
  font-size: 1rem;
}

/* Badge-stil för tydligare separation */
.pom-up-item--parent .pom-badge-format {
  background: #03A688;
  color: #fff;
  border-color: transparent;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Extra luft under sista child-listan */
.pom-up-children:last-child { margin-bottom: 4px; }

/* === Tvinga badges till höger i "Dina kurser"-cards === */
.pom-up-top {
  display: flex;
  align-items: center;
  justify-content: space-between; /* titel vänster, badge höger */
  gap: 8px;
}

/* Om flera badges, håll ihop dem till höger */
.pom-up-top .pom-badge,
.pom-up-top .pom-badge-format,
.pom-up-top .pom-new-badge {
  margin-left: auto;
}

/* Lite spacing och minskad text för små badges */
.pom-up-top .pom-badge,
.pom-up-top .pom-badge-format {
  font-size: 0.75rem;
  padding: 2px 8px;
}
/* Nollställ standardpadding för kurslistan i dashboarden */
.entry-content ul.pom-upcoming-v2,
.entry-content ul.pom-up-clusters {
  padding-left: 0 !important;
  margin-left: 0;
}
/* Justera indentering på delmoment-listor så inget sticker ut */
.entry-content ul.pom-up-children {
  padding-left: 5px !important;
  margin-left: 5px;
}

.pom-up-children li {
  padding-left: 5px;
  margin-left: 5px;
}
.pom-dash-legend {
  font-size: 13px;
  color: #475569;
  margin: -4px 0 10px 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pom-dash-legend .pom-star {
  font-size: 1.1rem;
  color: #f5c542;
  text-shadow: 0 0 3px rgba(0,0,0,.1);
}
/* Legend till höger om rubriken i dashboard */
.pom-dash-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
  margin-left: auto; /* skjuter den till höger */
}

.pom-dash-legend .pom-star {
  font-size: 1.1rem;
  color: #f5c542;
  text-shadow: 0 0 3px rgba(0,0,0,.1);
}





/* ===  POM Learn Single === */

.pom-learn-single{ width:100%; }

.pom-two-col{
  display:grid;
  grid-template-columns:7fr 3fr;
  grid-template-areas:"desc meta";
  gap:24px;
  align-items:start;
}
.pom-course-desc{ grid-area:desc; }
.pom-meta-card{   grid-area:meta; }

@media (max-width:900px){
  .pom-two-col{
    grid-template-columns:1fr;
    grid-template-areas:
      "meta"
      "desc";
    gap:16px;
  }
}

/* Meta-kort  */
.pom-learn-single .pom-meta-card{
  --m3-surface:#fff;
  --m3-outline:#e6e6e6;
  --m3-radius:14px;
  --m3-pad:14px;
  --m3-gap:10px;

  background:var(--m3-surface);
  border:1px solid var(--m3-outline);
  border-radius:var(--m3-radius);
  padding:calc(var(--m3-pad)*1.15);
  box-shadow:0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
  margin:0; /* inget extra topp/botten här – styrs av layouten */
}

/* Mindre typ i kortet (≈ −2px) */
.pom-learn-single .pom-meta-card,
.pom-learn-single .pom-meta-card .pom-meta-item,
.pom-learn-single .pom-meta-card .pom-meta-label,
.pom-learn-single .pom-meta-card .pom-meta-value{
  font-size:clamp(13px, calc(1rem - 2px), 1rem);
  line-height:1.3;
}

/* Header + badges i högerkant */
.pom-learn-single .pom-meta-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:10px;
}
.pom-learn-single .pom-meta-title{
  font-size:clamp(14px, calc(1rem - 1px), 1rem);
  font-weight:600; margin:0; color:#1b1b1b;
}
.pom-learn-single .pom-meta-badges{
  display:flex; flex-wrap:wrap; gap:6px;
}
/* Fallback-badge (använd gärna dina egna) */
.pom-learn-single .pom-badge{
  display:inline-flex; align-items:center;
  padding:6px 10px; border-radius:999px;
  background:#e7f3f1; color:#026868;
  font-weight:600; font-size:12px; line-height:1;
  border:1px solid rgba(2,104,104,.18);
}
.pom-learn-single .pom-badge--main{
  background:#eef7ff; color:#245c90; border-color:rgba(36,92,144,.18);
}

/* ===== Kursinfo – “tabellcells-look” (Start/Slut/Varaktighet) ===== */
.pom-learn-single .pom-meta-row--time{
  display:block;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  margin-bottom:10px;
}


.pom-learn-single .pom-meta-row--time .pom-meta-item{
  display:grid;
  grid-template-columns:20px 90px 1fr; /* ikon | etikett | värde */
  gap:10px 12px;
  align-items:baseline;
  padding:10px 0px;
}


.pom-learn-single .pom-meta-row--time .pom-meta-item + .pom-meta-item{
  border-top:1px solid #E9ECEF;
}
.pom-learn-single .pom-meta-row--time .pom-meta-item:nth-child(odd){
  background:#FAFBFC;
}

/* Övriga rader (Kapacitet/Kategori …) – tight grid */
.pom-learn-single .pom-meta-row--other{
  display:grid;
  grid-template-columns:1fr;  /* en per rad – ren läsning */
  gap:8px;
}
.pom-learn-single .pom-meta-row--other .pom-meta-item{
  display:grid;
  grid-template-columns:auto 1fr; /* label | value */
  gap:8px; align-items:baseline;
}

/* Gemensamt för items/ikon/label/value */
.pom-learn-single .pom-meta-item{ min-height:24px; }
.pom-learn-single .pom-meta-icon{
  width:18px; height:18px; display:inline-flex; opacity:.9;
  transform:translateY(1px); /* optisk baseline */
}
.pom-learn-single .pom-meta-label{
  color:#2b2b2b; font-weight:600; white-space:nowrap;
}
.pom-learn-single .pom-meta-value{
  color:#111; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* Mobiljustering för långa värden i time-raden */
/* Mobiljustering för time-raden – stapla Start/Slut, men håll Varaktighet (1:a raden) på en rad */
@media (max-width:520px){

  /* Standard: stapla label/value under varandra för alla time-items */
  .pom-learn-single .pom-meta-row--time .pom-meta-item {
    grid-template-columns: 18px auto 1fr;
    grid-template-areas:
      "icon label"
      "icon value";
  }
  .pom-learn-single .pom-meta-row--time .pom-meta-icon  { grid-area: icon; }
  .pom-learn-single .pom-meta-row--time .pom-meta-label { grid-area: label; }
  .pom-learn-single .pom-meta-row--time .pom-meta-value {
    grid-area: value;
    white-space: normal; /* får brytas */
  }

  /* UNDANTAG: första raden = Varaktighet (håll ihop på en rad) */
  .pom-learn-single .pom-meta-row--time .pom-meta-item:first-child {
    grid-template-columns: 18px auto 1fr !important;
    grid-template-areas: "icon label value" !important;
  }
  .pom-learn-single .pom-meta-row--time .pom-meta-item:first-child .pom-meta-value,
  .pom-learn-single .pom-meta-row--time .pom-meta-item:first-child .pom-meta-label {
    white-space: nowrap !important;
  }
}

/*modal*/
#pom-ic-modal .pom-ic-dialog {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(1400px,95vw);
  height:min(95vh,960px);
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
/* === SLUT – POM Learn Single === */

