/* ==========================================================================
   Laget (laget.js; Linus 2026-11-13, hans bild)

   Byggd exakt efter bilden, i fönstret 1481 × 831 i skala 1,35. Måtten är bildens, färgerna uppmätta i den. Sidan ritar
   sitt eget huvud: skalets huvud ("Alla projekt") döljs. En vit ram med listan (mörk) till vänster och den valda
   personen (ljus) till höger. Linjerna är egna ytor eller skuggor inåt, inte kanter: Safaris motor tappar en kant på
   1 punkt i skala 1,35. Aldrich står i vanlig vikt med ett tunt streck runt, som i bilden.
   ========================================================================== */
.vy-projekt .ps-huvud:has(~ .ps-innehall > .lg) { display: none; }
.vy-projekt:has(.ps-innehall > .lg) { padding-left: 0; }
.vy-projekt:has(.ps-innehall > .lg) .ps-yta { padding: 0; }
.vy-projekt .ps-innehall:has(> .lg) { margin: 0; padding: 0; overflow: hidden; }

.lg {
  --lg-yta: #161616;
  --lg-ram: var(--sk-ram, #fcfcfc);
  --lg-text: #f4f4f4;
  --lg-text-2: #9d9d9d;      /* flikarna som inte är valda, dagbokens text */
  --lg-text-3: #6f6f6f;      /* kolumnernas namn, rollen, raden under */
  --lg-linje: #232323;
  --lg-gul: #f5c800;
  --lg-gron: #1f9a70;
  --lg-p-text: #171717;      /* den ljusa panelen */
  --lg-p-text-2: #7b7c79;
  --lg-p-linje: #ececec;
  --lg-glid: cubic-bezier(0.3, 0.7, 0.2, 1);
  position: relative;
  box-sizing: border-box;
  display: flex; flex-direction: column;
  height: 100%; min-height: 0;
  padding: 0 19.9px 19.5px 20.7px;
  font-family: var(--font); color: var(--lg-text);
}
.lg p, .lg h1, .lg h2, .lg ul { margin: 0; }
.lg ul { padding: 0; list-style: none; }
.lg button, .lg a { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.lg button:focus-visible, .lg a:focus-visible, .lg-rad:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.45); outline-offset: 2px; }
.lg-panel button:focus-visible, .lg-panel a:focus-visible { outline-color: rgba(0, 0, 0, 0.45); }
.lg-prick { flex: none; display: block; width: 6.6px; height: 6.6px; border-radius: 50%; background: var(--lg-gul); }

/* ---------- Huvudet: Laget, antalet, veckan, Lönefil och Godkänn vecka ---------- */
.lg-huvud { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; height: 71.4px; box-sizing: border-box; padding: 15.2px 0 0 0; }
.lg-huvud-v { min-width: 0; display: flex; align-items: center; height: 40.7px; }
.lg-titel { font-family: 'Aldrich', var(--font); font-size: 27.4px; line-height: 34px; font-weight: 400; letter-spacing: 0.3px; -webkit-text-stroke: 0.45px currentColor; color: var(--lg-text); white-space: nowrap; translate: 0 -0.1px; }
.lg-antal { margin-left: 13.3px; font-family: 'Aldrich', var(--font); font-size: 13.93px; line-height: 20px; font-weight: 400; -webkit-text-stroke: 0.3px currentColor; color: #7c7c7c; white-space: nowrap; translate: 0 2.6px; }
.lg-vecka { display: flex; align-items: center; margin-left: 25.1px; translate: 0 0.4px; }
.lg-vecka-pil {
  flex: none; display: grid; place-items: center; width: 29.6px; height: 29.6px; margin: 0; padding: 0; border: 0; border-radius: 8.5px;
  background: #1a1a1a; box-shadow: inset 0 0 0 1px #2b2b2b; color: #eaeaea; cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms var(--lg-glid), opacity 160ms ease;
}
.lg-vecka-pil:hover:not(:disabled) { background: #222222; box-shadow: inset 0 0 0 1px #3a3a3a; }
.lg-vecka-pil:active:not(:disabled) { transform: scale(0.92); }
.lg-vecka-pil:disabled { opacity: 0.35; cursor: default; }
/* Vinklarna är appens streckade vinkel (i-chev-down), vriden åt sidan. */
.lg .lg-vecka-pil svg.ikon { width: 15px; height: 15px; rotate: 90deg; stroke-width: 2.25; }
.lg .lg-vecka-pil.is-fram svg.ikon { rotate: -90deg; }
.lg-vecka-text { position: relative; display: block; margin: 0 8.1px 0 10.3px; white-space: nowrap; overflow: visible; }
.lg-vecka-sida { display: inline-flex; align-items: baseline; gap: 8.2px; }
.lg-vecka-sida.is-lamnar { position: absolute; left: 0; top: 0; pointer-events: none; }
.lg-vecka-namn { font-family: 'Aldrich', var(--font); font-size: 16.07px; line-height: 24px; font-weight: 400; -webkit-text-stroke: 0.4px currentColor; color: var(--lg-text); font-variant-numeric: tabular-nums; }
.lg-vecka-datum { font-size: 12.8px; line-height: 24px; color: #8c8c8c; font-variant-numeric: tabular-nums; }
.lg-huvud-h { flex: none; display: flex; align-items: center; gap: 8.4px; }
.lg-knapp {
  display: inline-flex; align-items: center; gap: 9.6px; height: 40.7px; box-sizing: border-box; margin: 0; padding: 0 17.3px 0 16.2px; border: 0; border-radius: 11px;
  background: #151515; box-shadow: inset 0 0 0 1px #2b2b2b; color: #ededed; font-size: 13.5px; line-height: 20px; white-space: nowrap; cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms var(--lg-glid);
}
.lg-knapp:hover { background: #1c1c1c; box-shadow: inset 0 0 0 1px #3a3a3a; }
.lg-knapp:active { transform: scale(0.97); }
.lg-knapp .ikon { flex: none; width: 13px; height: 13px; stroke: currentColor; stroke-width: 0.7; }
/* Den gula knappen med sin mörka platta (som appens andra gula knappar: Nytt anbud, Bjud in). */
.lg-gul {
  display: inline-flex; align-items: center; gap: 10.5px; height: 40.7px; box-sizing: border-box; margin: 0; padding: 0 15.1px 0 5.8px; border: 0; border-radius: 11px;
  background: linear-gradient(180deg, #fed936, #f6ca08); box-shadow: 0 8px 18px -4px rgba(246, 202, 8, 0.5);
  color: #161000; font-family: 'Aldrich', var(--font); font-size: 15px; line-height: 20px; font-weight: 400; -webkit-text-stroke: 0.45px currentColor; white-space: nowrap; cursor: pointer;
  transition: filter 160ms ease, transform 160ms var(--lg-glid), box-shadow 160ms ease, opacity 200ms ease;
}
.lg .lg-gul { font-family: 'Aldrich', var(--font); }
.lg-gul:hover:not(:disabled) { filter: brightness(1.05); }
.lg-gul:active:not(:disabled) { transform: scale(0.975); box-shadow: 0 5px 12px -4px rgba(246, 202, 8, 0.5); }
.lg-gul:disabled { opacity: 0.45; cursor: default; }
.lg-gul-platta { flex: none; display: grid; place-items: center; width: 28.2px; height: 28.2px; border-radius: 7.5px; background: #131313; }
.lg .lg-gul-platta svg.ikon { width: 17px; height: 17px; stroke-width: 2.2; color: #fed730; }
.lg-gul-text { translate: 0 0; }

/* ---------- Den vita ramen: listan (mörk) och personen (ljus) ---------- */
.lg-ram { flex: 1 1 0; min-height: 0; display: flex; box-sizing: border-box; padding: 3px 0 3px 3px; border-radius: 16px; background: var(--lg-ram); }
.lg-lista { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border-radius: 13px; background: var(--lg-yta); overflow: hidden; }
.lg-rull, .lg-panel-vy { transition: opacity 200ms ease; }
.lg-ram.is-laddar .lg-rull, .lg-ram.is-laddar .lg-panel-vy { opacity: 0.45; }

/* Flikarna, med antal, och strecket som glider till den valda. */
.lg-flikar { position: relative; flex: none; display: flex; align-items: flex-start; gap: 25.1px; height: 51.1px; box-sizing: border-box; padding: 19.3px 25.9px 0; white-space: nowrap; overflow: hidden; }
.lg-flikar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lg-linje); }
.lg-flik { display: inline-flex; align-items: baseline; gap: 7.1px; height: 31.8px; margin: 0; padding: 0; border: 0; background: none; color: var(--lg-text-2); font-size: 14.2px; line-height: 20px; cursor: pointer; transition: color 180ms ease; }
.lg-flik:hover { color: #cfcfcf; }
.lg-flik.is-vald { color: var(--lg-text); }
.lg-flik-antal { font-size: 12.2px; translate: 0 -1.2px; color: #6d6d6d; font-variant-numeric: tabular-nums; transition: color 180ms ease; }
.lg-flik.is-vald .lg-flik-antal { color: #9a9a9a; }
.lg-flikstreck { position: absolute; z-index: 1; left: 0; bottom: 0; width: 0; height: 2.2px; border-radius: 1px; background: #f2f2f2; transition: translate 300ms var(--lg-glid), width 300ms var(--lg-glid); }
.lg-flikstreck.is-direkt { transition: none; }

.lg-rull { flex: 1 1 0; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; padding: 0 26.7px 84px 25.9px; }

/* Den gula raden: KMA som saknas, med knappen Påminn. */
.lg-koll {
  margin-top: 16.7px; border-radius: 13px;
  background: radial-gradient(ellipse 330px 60px at 30px 45%, rgba(245, 200, 0, 0.125), rgba(245, 200, 0, 0.1) 38%, rgba(245, 200, 0, 0.045) 70%, rgba(245, 200, 0, 0)), #1b1b1b;
  box-shadow: inset 0 0 0 1px #585134;
}
.lg-koll[hidden] { display: none; }
.lg-koll-rad { position: relative; display: flex; align-items: center; height: 53px; padding: 0 8.9px 0 17.8px; }
.lg-koll-rad + .lg-koll-rad::before { content: ''; position: absolute; left: 17.8px; right: 17.8px; top: 0; height: 1px; background: rgba(255, 236, 150, 0.115); }
.lg-koll .lg-prick { width: 8.1px; height: 8.1px; box-shadow: 0 0 8px rgba(245, 200, 0, 0.55); }
.lg-koll-rubrik { flex: none; margin-left: 12.6px; font-family: 'Aldrich', var(--font); font-size: 15.87px; line-height: 20px; font-weight: 400; -webkit-text-stroke: 0.3px currentColor; color: var(--lg-text); white-space: nowrap; }
.lg-koll-text { flex: 1; min-width: 0; margin-left: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.44px; line-height: 20px; color: #dcdcdc; }
.lg-koll-knapp {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34.1px; box-sizing: border-box; margin: 0 0 0 16px; padding: 0 12.1px 0 14.1px; border: 0; border-radius: 9px;
  background: #fdfdfd; color: #171717; font-size: 13.36px; line-height: 20px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background 160ms ease, transform 160ms var(--lg-glid), opacity 160ms ease, color 160ms ease;
}
.lg-koll-knapp:hover:not(:disabled) { background: #ffffff; }
.lg-koll-knapp:hover:not(:disabled) .lg-koll-pil { translate: 2px 0; }
.lg-koll-knapp:active:not(:disabled) { transform: scale(0.97); }
.lg .lg-koll-knapp svg.lg-koll-pil { flex: none; width: 15px; height: 15px; stroke-width: 1.9; transition: translate 160ms ease; }
.lg-koll-knapp.is-vantar { opacity: 0.6; cursor: default; }
.lg-koll-knapp.is-byter > * { opacity: 0; }
.lg-koll-knapp > * { transition: opacity 150ms ease; }
.lg-koll-knapptext { translate: 0 -1.4px; }
.lg-koll-knapp.is-gjord { background: rgba(255, 255, 255, 0.07); color: #cfcfcf; cursor: default; }
.lg .lg-koll-knapp.is-gjord svg.lg-koll-pil { color: var(--lg-gul); stroke-width: 2.2; width: 13px; height: 13px; }

/* Tabellen: kolumnernas namn och en rad per person. Bredderna är bildens; dagboken och personen tar det som blir över. */
.lg-kolumner, .lg-rad { display: grid; grid-template-columns: minmax(150px, 262.2fr) 60px 98.5px minmax(110px, 257.1fr) 98.5px 82.2px 22.2px; align-items: center; }
.lg-kolumner { height: 20px; margin-top: 18.4px; font-size: 12.4px; line-height: 20px; color: var(--lg-text-3); white-space: nowrap; }
.lg-k-person { padding-left: 11.8px; }
.lg-k-tid { text-align: right; }
.lg-k-dagbok { padding-left: 15.6px; }
.lg-rader { position: relative; margin-top: 3.7px !important; }
.lg-rad { position: relative; z-index: 1; height: 70.7px; cursor: pointer; border-radius: 13px; outline-offset: -2px !important; }
/* Linjen över raden är en egen yta. Den tända raden, och raden under den, har ingen. */
.lg-rad::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--lg-linje); transition: opacity 200ms ease; }
.lg-markor + .lg-rad::before, .lg-rad.is-vald::before, .lg-rad.efter-vald::before { opacity: 0; }
/* Den tända raden: en egen yta som glider mellan raderna. */
.lg-markor { position: absolute; z-index: 0; left: 0; right: 0; top: -0.8px; height: 70.7px; pointer-events: none; opacity: 0; transition: transform 340ms var(--lg-glid), height 340ms var(--lg-glid), opacity 200ms ease; }
.lg-markor::before { content: ''; position: absolute; inset: 0.15px 0; border-radius: 13px; background: #202020; box-shadow: inset 0 0 0 1px #2a2a2a; }
.lg-markor.is-synlig { opacity: 1; }
.lg-markor.is-direkt { transition: none; }
.lg-c-person { display: flex; align-items: center; min-width: 0; padding: 0 12px 0 11.8px; }
.lg-avatar { flex: none; display: grid; place-items: center; width: 35.6px; height: 35.6px; border-radius: 50%; background: #262626; color: #dcdcdc; font-size: 11.4px; line-height: 1; box-sizing: border-box; padding-top: 1px; transition: background 200ms ease; }
.lg-rad.is-vald .lg-avatar { background: #2c2c2c; }
.lg-namn { min-width: 0; margin-left: 12.6px; }
.lg-namn-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.7px; line-height: 20px; color: var(--lg-text); }
.lg-roll { margin-top: 0.4px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.33px; line-height: 18px; color: var(--lg-text-3); }
.lg-staplar { display: flex; align-items: flex-end; gap: 5.2px; height: 27.4px; translate: 0 0.7px; }
.lg-stapel { width: 7.8px; height: 0; border-radius: 3px; background: #e9e9e7; }
.lg-stapel.is-saknas { height: 2.6px; border-radius: 1.3px; background: var(--lg-gul); }
.lg-c-tid { text-align: right; font-family: 'Aldrich', var(--font); font-size: 15px; line-height: 20px; font-weight: 400; letter-spacing: 0.25px; -webkit-text-stroke: 0.3px currentColor; color: var(--lg-text); white-space: nowrap; font-variant-numeric: tabular-nums; margin-right: -1.1px; }
.lg-c-dagbok { min-width: 0; padding: 0 12px 0 15.6px; }
.lg-dagbok-text { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 13.8px; line-height: 20px; color: #ededed; }
.lg-dagbok-text > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-dagbok-text .lg-prick { width: 5.9px; height: 5.9px; translate: 0 -1px; }
.lg-dagbok-under { margin-top: 0.4px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.52px; line-height: 18px; color: var(--lg-text-3); }
.lg-streck { color: #4a4a4a; font-size: 13px; }
.lg-c-kma { display: flex; align-items: center; gap: 6.6px; font-size: 13.3px; line-height: 20px; color: #bdbdbd; white-space: nowrap; }
.lg-c-kma .ikon { flex: none; width: 14.8px; height: 14.8px; color: var(--lg-gron); stroke: currentColor; stroke-width: 0.9; }
.lg-c-kma.is-saknas { color: var(--lg-gul); }
/* Den runda varningen (i-varning-gul) som en ring: samma ikon, ritad med streck i stället för fylld. */
.lg-c-kma.is-saknas .ikon { color: var(--lg-gul); fill: none; stroke: currentColor; stroke-width: 1.9; overflow: visible; --c-varning-tecken: currentColor; width: 13.6px; height: 13.6px; margin: 0 0.6px; }
.lg-c-ata { display: flex; align-items: center; gap: 8.1px; font-size: 14.2px; line-height: 20px; color: #ededed; white-space: nowrap; }
.lg .lg-rad svg.lg-radpil { justify-self: end; width: 15px; height: 15px; margin-right: 12.6px; rotate: -90deg; stroke-width: 2.1; color: #565656; transition: color 220ms ease, translate 220ms var(--lg-glid); }
.lg .lg-rad.is-vald svg.lg-radpil { color: #f0f0f0; }
.lg .lg-rad:hover:not(.is-vald) svg.lg-radpil { color: #8a8a8a; translate: 0 2px; }
.lg-rad:active:not(.is-vald) { opacity: 0.85; }
.lg-rad.is-lamnar { position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none; }
.lg-tomt { padding: 28px 12px; font-size: 14px; line-height: 20px; color: var(--lg-text-2); }
.lg-tomt[hidden] { display: none; }

/* Arnes rad längst ner i listan, till höger (som i bilden). */
.lg-arneplats { position: absolute; z-index: 6; right: 12.6px; bottom: 15.2px; height: 0; }
.lg-arneplats > .arnebar.lg-arne { position: absolute; left: auto; right: 0; bottom: 0; translate: none; }
/* Ett besked (ett fel, eller att något är gjort) står en stund nere till vänster. */
.lg-besked { position: absolute; z-index: 7; left: 25.9px; bottom: 22px; max-width: calc(100% - 52px); box-sizing: border-box; margin: 0; padding: 9px 14px; border-radius: 10px; background: #262626; box-shadow: inset 0 0 0 1px #343434, 0 10px 24px rgba(0, 0, 0, 0.4); color: #ededed; font-size: 13.4px; line-height: 18px; opacity: 0; translate: 0 6px; pointer-events: none; transition: opacity 200ms ease, translate 320ms var(--lg-glid); }
.lg-besked.is-synlig { opacity: 1; translate: 0 0; }

/* ---------- Panelen till höger: den valda personen ---------- */
.lg-panel { position: relative; flex: none; display: flex; flex-direction: column; width: 432.6px; box-sizing: border-box; padding: 0 25.9px 20.7px 26.3px; color: var(--lg-p-text); }
.lg-panel-vy { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; margin: 0 -10px; padding: 0 10px; }
.lg-person { padding-top: 21.1px; }
.lg-person.is-lamnar { position: absolute; left: 10px; right: 10px; top: 0; pointer-events: none; }
.lg-p-huvud { display: flex; align-items: flex-start; height: 48.1px; }
.lg-p-avatar { flex: none; display: grid; place-items: center; width: 48.1px; height: 48.1px; border-radius: 50%; background: #ececea; color: #171717; font-size: 13.1px; line-height: 1; font-weight: 500; }
.lg-p-namn { flex: 1; min-width: 0; margin-left: 12.6px; padding-top: 0.6px; }
.lg-p-namn-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Aldrich', var(--font); font-size: 18.7px; line-height: 26px; font-weight: 400; letter-spacing: 0.2px; -webkit-text-stroke: 0.4px currentColor; color: var(--lg-p-text); }
.lg-p-under { margin-top: 2.6px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.9px; line-height: 18px; color: var(--lg-p-text-2); }
.lg-p-knappar { flex: none; display: flex; gap: 8.6px; margin: 7.4px 0.4px 0 12px; }
.lg-rund { display: grid; place-items: center; width: 33.5px; height: 33.5px; border-radius: 50%; background: #f2f3f0; box-shadow: inset 0 0 0 1px #e4e4e1; color: #1b1b1b; cursor: pointer; text-decoration: none; transition: background 160ms ease, transform 180ms var(--lg-glid), box-shadow 160ms ease; }
.lg-rund:hover { background: #e9eae6; box-shadow: inset 0 0 0 1px #d6d6d2; }
.lg-rund:active { transform: scale(0.92); }
.lg-rund.is-av { opacity: 0.4; cursor: default; pointer-events: none; }
.lg-rund .ikon { width: 14.4px; height: 14.4px; stroke: currentColor; stroke-width: 0.9; }
/* Pratbubblan och bilden är bildens egna ur Lucide (i-lag-…, Linus 2026-11-13): streck utan fyllning. */
.lg .lg-meddela svg.ikon { width: 15.5px; height: 15.5px; stroke-width: 1.9; }

/* Delarna i panelen: en rubrik till vänster och ett tal eller datum till höger, med en linje över. */
.lg-del { position: relative; }
.lg-del-huvud { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.9px; line-height: 20px; color: var(--lg-p-text-2); white-space: nowrap; }
.lg-del-rubrik { color: #6a6a68; }
.lg-del-hoger { color: var(--lg-p-text-2); }
.lg-del + .lg-del::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--lg-p-linje); }
.lg-p-vecka { margin-top: 20px; }
.lg-p-timmar { font-family: 'Aldrich', var(--font); font-size: 15.6px; font-weight: 400; -webkit-text-stroke: 0.35px currentColor; color: var(--lg-p-text); font-variant-numeric: tabular-nums; }
.lg-p-diagram { display: flex; justify-content: space-between; height: 86px; margin-top: 9.4px; padding: 0 15px 0 15.2px; }
.lg-p-kol { position: relative; flex: none; width: 24.4px; height: 100%; }
.lg-p-stapel { position: absolute; left: 0; right: 0; bottom: 40.1px; height: 2.4px; border-radius: 1.2px; background: #dedede; }
.lg-p-kol:not(.is-tom) .lg-p-stapel { border-radius: 5.2px; background: #171717; }
.lg-p-stapel.is-saknas { background: var(--lg-gul); }
.lg-p-tal { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; font-family: 'Aldrich', var(--font); font-size: 13px; line-height: 16px; font-weight: 400; -webkit-text-stroke: 0.3px currentColor; color: var(--lg-p-text); }
.lg-p-kol.is-tom .lg-p-tal { color: #b9b9b9; }
.lg-p-dag { position: absolute; left: 50%; bottom: 0; translate: -50% 0; font-size: 12.6px; line-height: 16px; color: var(--lg-p-text-2); white-space: nowrap; }
.lg-p-kol.is-tom .lg-p-dag { color: #c0c0c0; }
.lg-p-dagbok { margin-top: 12px; padding-top: 16.2px; }
.lg-p-post { display: flex; align-items: center; gap: 8.2px; margin-top: 3.6px !important; font-size: 14.9px; line-height: 22px; color: var(--lg-p-text); }
.lg-p-post > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-p-post .lg-prick { width: 7px; height: 7px; }
.lg-p-bilder { display: flex; gap: 8.5px; margin-top: 8.2px; }
.lg-p-bild { flex: none; display: grid; place-items: center; width: 67.8px; height: 47.4px; border-radius: 8.5px; background: #e9e8e4; color: #8a8884; }
.lg-p-bild:nth-child(even) { background: #e4e6e7; }
.lg-p-bild .ikon { width: 15.1px; height: 15.1px; stroke-width: 1.9; }
.lg-p-kma { margin-top: 14px; padding-top: 15.4px; }
.lg-p-kma .lg-del-hoger { font-size: 12.35px; }
.lg-p-kontroller { display: flex; flex-wrap: wrap; gap: 6px 19px; margin-top: 7.6px !important; }
.lg-p-kontroll { display: inline-flex; align-items: center; gap: 7.3px; font-size: 13.95px; line-height: 20px; color: #383836; white-space: nowrap; }
.lg-p-kontroll .ikon { flex: none; width: 14.1px; height: 14.1px; color: var(--lg-gron); stroke: currentColor; stroke-width: 0.9; }
.lg-p-kontroll.is-saknas .ikon { color: #d9a700; fill: none; stroke: currentColor; stroke-width: 1.9; overflow: visible; --c-varning-tecken: currentColor; width: 14.2px; height: 14.2px; margin: 0 0.65px; }
.lg-p-ata { margin-top: 13px; padding-top: 12.3px; }
.lg-p-vantar { display: inline-flex; align-items: center; gap: 7.4px; font-size: 13.1px; color: #2a2a2a; }
.lg-p-atarad { display: flex; align-items: center; gap: 0; height: 34.1px; margin-top: 7.9px; overflow: hidden; transition: opacity 180ms ease; }
.lg-p-atarad.is-vantar { opacity: 0.5; pointer-events: none; }
.lg-p-atatext { flex: 1; min-width: 0; }
.lg-p-atatitel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.6px; line-height: 19px; color: var(--lg-p-text); }
.lg-p-ataunder { display: flex; align-items: center; gap: 6.5px; margin-top: 2.4px !important; font-size: 11.9px; line-height: 14px; color: var(--lg-p-text-2); white-space: nowrap; }
.lg-p-ataunder .ikon { width: 11.8px; height: 11.8px; margin-left: 1px; stroke-width: 2; }
.lg-p-punkt { color: #b5b5b5; }
.lg-p-avsla { flex: none; display: grid; place-items: center; width: 31.9px; height: 31.9px; margin: 0 11.9px 0 12px; padding: 0; border: 0; border-radius: 9px; background: #fdfdfd; box-shadow: inset 0 0 0 1px #dfdfdc; color: #2a2a2a; cursor: pointer; transition: background 160ms ease, transform 180ms var(--lg-glid), box-shadow 160ms ease; }
.lg-p-avsla:hover { background: #f1f1ee; box-shadow: inset 0 0 0 1px #cfcfcb; }
.lg-p-avsla:active { transform: scale(0.92); }
.lg .lg-p-avsla svg.ikon { width: 8.9px; height: 8.9px; stroke-width: 1.6; }
.lg-gul.lg-p-godkann { height: 31.9px; gap: 9px; padding: 0 11.1px 0 4.6px; border-radius: 9.5px; font-size: 13.65px; box-shadow: 0 5px 12px -4px rgba(246, 202, 8, 0.55); }
.lg-p-godkann .lg-gul-platta { width: 22.8px; height: 22.8px; border-radius: 6.5px; }
.lg .lg-p-godkann .lg-gul-platta svg.ikon { width: 14px; height: 14px; }

/* Knappen längst ner: godkänner personens vecka (eller öppnar den igen när den är godkänd). */
.lg-personknapp {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 8.7px; height: 44.5px; margin: 12px 0 0 -0.7px; padding: 0 16px; border: 0; border-radius: 12px;
  background: #171717; color: #f4f4f4; font-family: 'Aldrich', var(--font); font-size: 14.57px; line-height: 20px; font-weight: 400; -webkit-text-stroke: 0.4px currentColor; white-space: nowrap; cursor: pointer;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 180ms var(--lg-glid), opacity 200ms ease;
}
.lg .lg-personknapp { font-family: 'Aldrich', var(--font); }
.lg-personknapp[hidden] { display: none; }
.lg-personknapp:hover:not(:disabled) { background: #262626; }
.lg-personknapp:active:not(:disabled) { transform: scale(0.985); }
.lg-personknapp:disabled { opacity: 0.4; cursor: default; }
.lg-personknapp.is-vantar { opacity: 0.6; pointer-events: none; }
.lg .lg-personknapp svg.ikon { flex: none; width: 19.3px; height: 19.3px; stroke-width: 2; margin: 0 -1.2px; }
.lg-personknapp-tim { margin-left: 1.6px; font-family: var(--font); font-size: 13.3px; -webkit-text-stroke: 0; color: #a3a3a3; translate: 0 0.6px; }
.lg-personknapp.is-klar { background: transparent; box-shadow: inset 0 0 0 1px #d9d9d6; color: #2a2a2a; }
.lg-personknapp.is-klar:hover { background: #f1f1ee; }
.lg-personknapp.is-klar .lg-personknapp-tim { color: #8a8a88; }
.lg .lg-personknapp.is-klar svg.ikon { color: var(--lg-gron); }

/* Smalare fönster (en liggande iPad): panelen blir smalare, och raden under namnet i tabellen får plats. */
@media (max-width: 1240px) {
  .lg-panel { width: 372px; padding-left: 20px; padding-right: 20px; }
  .lg-p-diagram { padding: 0 6px; }
  .lg-kolumner, .lg-rad { grid-template-columns: minmax(140px, 1fr) 60px 70px minmax(100px, 1fr) 84px 64px 20px; }
  .lg-koll-text { display: none; }
  .lg-koll-rubrik { flex: 1; }
}
@media (max-width: 1080px) {
  .lg-huvud { padding-left: 0; }
  .lg-antal, .lg-vecka-datum { display: none; }
  .lg-panel { width: 330px; }
  .lg-k-kma, .lg-c-kma, .lg-k-veckan, .lg-staplar { display: none; }
  .lg-kolumner, .lg-rad { grid-template-columns: minmax(130px, 1fr) 62px minmax(90px, 1fr) 62px 20px; }
}
