/* Timer og løn. The slip lies across the whole frame: the lines on the left, the sum, and on the right where the chosen line comes from */
.hvis{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.kun-tryk{display:none}
@media (hover:none){.kun-mus{display:none}.kun-tryk{display:inline}}
/* The slip is lifted into the dark top as one wide card: the lines on the left, where the chosen line comes from on the right */
.ls{color:var(--nat);padding-bottom:clamp(48px,5vw,80px)}
.ls-gruppe{display:flex;flex-direction:column}
.ls-sum{order:-1;border-bottom:2px solid var(--nat);padding-bottom:clamp(8px,1vw,14px)}
.ls-papir :focus-visible{outline-color:var(--kobolt-dyb)}
.ls-papir{display:grid;grid-template-columns:minmax(0,1fr);background:#fff;color:var(--nat);border-radius:var(--nf-r);overflow:hidden;box-shadow:0 0 0 1px rgba(13,23,54,.06),0 30px 80px -30px rgba(8,16,44,.45),0 12px 30px -18px rgba(8,16,44,.25)}
.ls-seddel{padding:clamp(18px,2vw,30px) clamp(18px,2.2vw,34px) clamp(14px,1.4vw,20px);min-width:0}
.ls-titel{display:flex;justify-content:space-between;align-items:baseline;gap:6px 16px;flex-wrap:wrap}
.ls-titel b{font-size:clamp(26px,2.4vw,34px);line-height:1;letter-spacing:-.03em;font-weight:600}
.ls-titel span{font-size:15px;color:var(--daempet)}
.ls-vagt{margin-top:8px;font-size:15px;line-height:1.4;color:var(--daempet);text-wrap:pretty}
.ls-faner{display:inline-flex;gap:3px;margin-top:clamp(10px,1.1vw,16px);padding:3px;border-radius:10px;background:var(--is)}
.ls-faner[hidden]{display:none}
.ls-faner button{appearance:none;border:0;background:none;font:inherit;color:var(--daempet);cursor:pointer;min-height:38px;padding:0 13px;border-radius:8px;font-size:14.5px;font-weight:600}
.ls-faner button[aria-pressed=true]{background:#fff;color:var(--nat);box-shadow:0 1px 3px rgba(13,23,54,.14)}
.ls-grupper{display:grid;margin-top:6px}
.js .ls-gruppe{grid-area:1/1;visibility:hidden}
.js .ls-gruppe.paa{visibility:visible}
html:not(.js) .ls-gruppe+.ls-gruppe{margin-top:24px}
.ls-liste{list-style:none}
.ls-l{border-bottom:1px solid var(--linje)}
.ls-k{appearance:none;background:none;border:0;font:inherit;color:inherit;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;width:calc(100% + 20px);min-height:clamp(44px,5.6vh,52px);margin-inline:-10px;padding:6px 10px;border-radius:8px;text-align:left;font-size:clamp(16.5px,1.3vw,18.5px);letter-spacing:-.016em;font-weight:500;transition:background-color .15s,color .15s}
.ls-k b{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.ls-k:hover{background:var(--is)}
.ls-l.paa .ls-k{background:var(--dis);color:var(--kobolt-dyb)}
.ls-k:focus-visible{outline-offset:-2px}
.ls-sum{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:0 16px;padding-top:clamp(8px,1vw,14px);font-size:clamp(16.5px,1.3vw,18.5px);letter-spacing:-.016em;font-weight:600}
.ls-sum b{font-size:clamp(36px,3.4vw,50px)!important;line-height:1;letter-spacing:-.045em;font-weight:600;font-variant-numeric:tabular-nums;margin-left:auto;white-space:nowrap}
.ls-sum small{font-size:max(14px,.36em);letter-spacing:-.01em;margin-left:.3em;font-weight:500}

/* The explanation of one line at a time. Without the script they all stand */
.ls-forklaring{display:grid;align-content:start;background:var(--is);padding:clamp(18px,2.2vw,34px);min-width:0}
.js .ls-d{grid-area:1/1;visibility:hidden}
.js .ls-d.paa{visibility:visible}
html:not(.js) .ls-d+.ls-d{margin-top:24px}
.ls-hvad{font-size:15px;font-weight:600;color:var(--kobolt-dyb)}
.ls-regn{margin-top:4px;font-size:clamp(22px,2.2vw,32px);line-height:1.14;letter-spacing:-.028em;font-weight:600;font-variant-numeric:tabular-nums;text-wrap:balance}
.ls-regn i{font-style:normal;white-space:nowrap}
.ls-hv{margin-top:8px;font-size:16px;line-height:1.42;color:var(--daempet);max-width:34em;text-wrap:pretty}
.ls-kilde{margin-top:clamp(12px,1.3vw,18px);padding:clamp(12px,1.2vw,18px);background:#fff;border-radius:8px}
.ls-kilde cite{display:block;font-style:normal;font-size:14px;font-weight:600;color:var(--daempet)}
.ls-kilde p{margin-top:4px;font-size:16px;line-height:1.4;text-wrap:pretty}
.ls-kilde mark{color:var(--kobolt-dyb);background:var(--dis);padding:.02em .16em;margin-inline:-.04em;border-radius:3px;font-weight:600;font-variant-numeric:tabular-nums}
.ls-til{display:inline-flex;align-items:center;min-height:44px;margin-bottom:-10px;font-size:15px;font-weight:600;color:var(--kobolt-dyb);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em}
.ls-til:hover{text-decoration-thickness:2px}
.ls-fil{margin-top:clamp(14px,1.4vw,20px);font-size:14.5px;line-height:1.45;color:var(--daempet);max-width:72ch;text-wrap:pretty}

/* What to look at before approving: one strip, split by how many of each */
/* The steps, the checks, the correction and what pay is made of run as one white stretch, so each section starts where the last one ended */
.afv{background:#fff;color:var(--nat);padding:0}
.afv .u-hd{margin-bottom:0}
.afv__bar{display:flex;gap:4px;height:clamp(22px,2.2vw,32px);margin-top:clamp(22px,2.4vw,34px);margin-bottom:clamp(46px,4.2vw,60px)}
.afv__bar i{position:relative;display:block;min-width:14px;border-radius:6px}
/* Each number stands under its own piece of the bar */
.afv__bar i::after{content:attr(data-n);position:absolute;left:0;top:calc(100% + 8px);color:var(--nat);font-style:normal;font-size:clamp(26px,2.4vw,34px);line-height:1;letter-spacing:-.036em;font-weight:600;font-variant-numeric:tabular-nums}
.afv__bar i:nth-child(1){background:var(--nat)}
.afv__bar i:nth-child(2){background:var(--daempet-nat)}
.afv__bar i:nth-child(3){background:var(--lys-nat)}
.afv__l{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--sp);margin-top:clamp(14px,1.4vw,20px)}
.afv__l li{position:relative;padding-left:22px}
.afv__l li::before{content:"";position:absolute;left:0;top:.22em;width:12px;height:12px;border-radius:3px;background:var(--nat)}
.afv__l li:nth-child(2)::before{background:var(--daempet-nat)}
.afv__l li:nth-child(3)::before{background:var(--lys-nat)}
.afv__l span{font-size:15.5px;line-height:1.4;color:var(--daempet);text-wrap:pretty}
.afv__l strong{display:block;font-size:17px;line-height:1.25;letter-spacing:-.014em;font-weight:600;color:var(--nat)}

/* A correction: the paid slip on one side, the next on the other, and the hours between them */
.ret{background:#fff;padding-block:var(--luft)}
.ret .u-hd{margin-bottom:clamp(22px,2.4vw,34px)}
main>.lo-regner{padding-top:0}
.ret__b{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:clamp(10px,1.2vw,18px);align-items:center}
.ret__p{background:var(--is);padding:clamp(16px,1.8vw,26px);border-radius:var(--r-kort);min-height:clamp(150px,12vw,176px);display:flex;flex-direction:column;transition:box-shadow .2s}
.ret__m{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:26px;font-size:15px;font-weight:600}
.ret__st{padding:2px 8px;border-radius:6px;background:#fff;color:var(--daempet);font-size:14px;font-weight:600}
.ret__r{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 16px;margin-top:auto;padding-top:12px;font-size:16px}
.ret__r b{margin-left:auto;font-size:clamp(28px,2.7vw,38px);line-height:1;letter-spacing:-.036em;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.ret__n,.ret__regn{margin-top:6px;min-height:1.4em;font-size:14.5px;line-height:1.4;color:var(--daempet)}
.ret__p--naeste b{color:var(--daempet);transition:color .2s}
.rettet .ret__p--naeste{box-shadow:inset 0 0 0 1.5px var(--nat)}
.rettet .ret__p--naeste b{color:var(--nat)}
.ret__v{display:flex;flex-direction:column;align-items:center;gap:6px}
.ret__v[hidden]{display:none}
.ret__v button{appearance:none;border:0;background:var(--nat);color:#fff;font:inherit;font-size:24px;line-height:1;font-weight:500;width:48px;height:48px;border-radius:10px;cursor:pointer;transition:background-color .15s}
.ret__v button:hover:not(:disabled){background:var(--kobolt-dyb)}
.ret__v button:disabled{opacity:.3;cursor:default}
.ret__v output{min-width:3.2em;text-align:center;font-size:22px;letter-spacing:-.024em;font-weight:600;font-variant-numeric:tabular-nums}


/* On a wide screen the slip and its explanation stand side by side, so the whole sheet is on one screen */
@media (min-width:1000px){
  .ls-papir{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)}
  .ls-seddel{padding:clamp(24px,2.4vw,36px) clamp(24px,2.6vw,40px)}
  .ls-forklaring{padding:clamp(24px,2.4vw,36px) clamp(24px,2.6vw,40px)}
}
@media (max-width:760px){
  .ls-faner button{min-height:44px}
  .afv__l{grid-template-columns:minmax(0,1fr);row-gap:12px}
  .ret__b{grid-template-columns:minmax(0,1fr)}
  .ret__v{flex-direction:row;justify-content:center}
  .ret__p{min-height:0}
  .ret__r{flex-direction:column;align-items:stretch}
  .ret__r span{min-height:1.3em}
  .ret__regn,.ret__n{min-height:2.8em}
}
@media (prefers-reduced-motion:reduce){.ls-k,.ret__v button,.ret__p,.ret__p--naeste b{transition:none!important}}
