/* Oppgavekortet. Raden i lista får bare en trykkbar tekst og en liten binders når noe er lagt ved;
   alt annet bor i kortet. */
.ok-apne{display:inline;margin:0;padding:0;border:0;border-radius:4px;background:none;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.ok-apne:hover{text-decoration:underline;text-decoration-color:#a9b8ad;text-underline-offset:3px}
.ok-apne:active{transform:none}
.ok-apne:focus-visible{outline:3px solid #e9bf55;outline-offset:2px}
.task.done .ok-apne{text-decoration:line-through}
.ok-merke{display:inline-flex;align-items:center;gap:2px;white-space:nowrap}
.ok-merke svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ok-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.ok-dialog{box-sizing:border-box;width:min(480px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:0;border-radius:18px;background:#fffefa;color:#1e2b1a;box-shadow:0 18px 60px #172d3044;overflow:auto;font-family:Inter,sans-serif}
.ok-dialog::backdrop{background:#15251c77}
.ok-dialog [hidden]{display:none!important}
.ok-dialog :focus-visible{outline:3px solid #e9bf55;outline-offset:2px}
.ok-innhold{padding:20px 24px 22px}
.ok-hode{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ok-kontekst{margin:8px 0 0;font:600 12px/1.5 Inter,sans-serif;color:#335b56}
.ok-lukk{flex:none;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#f2f0e5;color:#526456;font:400 22px/1 Inter,sans-serif;cursor:pointer}
.ok-lukk:hover{background:#e9e6d8}
.ok-dialog h2{margin:6px 0 4px;font:800 22px/1.3 Nunito,sans-serif;letter-spacing:-.2px;overflow-wrap:anywhere}
.ok-plan{margin:0;font:400 12px/1.5 Inter,sans-serif;color:#65736b}
.ok-plan .viktig{color:#786026;font-weight:600}.ok-plan .haster,.ok-plan .forfalt{color:#a13122;font-weight:600}
.ok-del{margin-top:18px;padding-top:14px;border-top:1px solid #edede3}
.ok-del h3{margin:0 0 10px;font:800 12px/1.4 Nunito,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:#65736b}
.ok-liste{margin:0;padding:0;list-style:none}
.ok-rad{display:flex;align-items:center;gap:4px}
.ok-rad+.ok-rad{margin-top:6px}
.ok-lenke{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:12px;background:#f6f3ea;color:#1e2b1a;text-decoration:none;transition:background .15s}
.ok-lenke:hover{background:#efeadc}
.ok-lenke[aria-disabled=true]{opacity:.6;cursor:progress}
.ok-ikon{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:#fff;font-size:18px;line-height:1}
.ok-tekst{display:grid;min-width:0}
.ok-navn{font:600 14px/1.4 Inter,sans-serif;color:#155f55;overflow-wrap:anywhere}
.ok-under{font:400 12px/1.45 Inter,sans-serif;color:#65736b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ok-fjern{flex:none;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:none;color:#a39c90;font:400 20px/1 Inter,sans-serif;cursor:pointer}
.ok-fjern:hover{background:#f7e2e0;color:#8d2f28}
.ok-tom{margin:0;font-size:13px;line-height:1.5;color:#65736b}
.ok-folk-etikett{margin:0 0 6px;font:600 12px/1.5 Inter,sans-serif;color:#335b56}
.ok-folk-liste{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;padding:0;list-style:none}
.ok-folk-liste:last-child{margin-bottom:0}
.ok-folk-liste li{display:inline-flex;align-items:baseline;gap:6px;padding:5px 11px;border-radius:999px;background:#f2f0e5;font:600 13px/1.4 Inter,sans-serif;color:#3d4a40}
.ok-folk-liste .gjort{background:#e3efe0;color:#155f55}
.ok-folk-dato{font-weight:400;font-size:12px;color:#65736b}
.ok-legg{display:flex;gap:8px;margin-top:14px}
.ok-legg button{min-height:40px;padding:9px 14px;border:0;border-radius:10px;background:#eef3ec;color:#155f55;font:700 13px Inter,sans-serif;cursor:pointer}
.ok-legg button:hover{background:#e1ecdf}
.ok-skjema{display:grid;gap:10px;margin-top:14px;padding:12px;border-radius:12px;background:#f6f3ea}
.ok-skjema label{display:grid;gap:4px;font:700 12px/1.4 Inter,sans-serif;color:#335b56}
.ok-skjema .ok-valgfri{font-weight:400;color:#65736b}
.ok-skjema input,.ok-skjema select{box-sizing:border-box;width:100%;min-width:0;padding:9px 10px;border:1px solid #bbc9bf;border-radius:8px;background:#fff;color:#1e2b1a;font:400 15px Inter,sans-serif}
.ok-rediger{margin:8px 0 0;padding:4px 0;border:0;background:none;color:#155f55;font:700 13px Inter,sans-serif;cursor:pointer}
.ok-rediger:hover{text-decoration:underline}
.ok-endre{margin-top:10px}
.ok-knapper{display:flex;justify-content:flex-end;gap:8px}
.ok-knapper button{min-height:38px;padding:8px 14px;border:0;border-radius:9px;background:none;color:#526456;font:700 13px Inter,sans-serif;cursor:pointer}
.ok-knapper [type=submit]{background:#1a7a6e;color:#fff}
.ok-dialog button:disabled{opacity:.5;cursor:default}
.ok-status{margin:10px 0 0;font-size:12.5px;color:#335b56}
.ok-feil{margin:10px 0 0;padding:8px 10px;border-radius:9px;background:#f7e2e0;color:#8d2f28;font-size:12.5px;line-height:1.45}
.ok-merk{margin:12px 0 0;font-size:11.5px;line-height:1.5;color:#65736b}
@media(max-width:600px){
 .ok-dialog{width:100%;max-height:88dvh;margin:auto 0 0;border-radius:18px 18px 0 0}
 .ok-innhold{padding:18px 18px calc(18px + env(safe-area-inset-bottom))}
 .ok-dialog h2{font-size:20px}
}
@media(prefers-reduced-motion:reduce){.ok-lenke{transition:none}}

/* «Lenke / fil» i skjemaene der oppgaven lages: samme rader som kortet, bare tettere. */
.ok-utkast [hidden]{display:none!important}
.ok-utkast-boks{display:grid;gap:8px;margin:4px 0 6px}
.ok-utkast .ok-liste:empty{display:none}
.ok-utkast .ok-rad+.ok-rad{margin-top:0}
.ok-utkast .ok-liste{display:grid;gap:4px}
.ok-utkast .ok-lenke{gap:10px;padding:6px 8px;background:#f6f3ea}
.ok-utkast .ok-ikon{width:28px;height:28px;border-radius:7px;font-size:15px}
.ok-utkast .ok-navn{font-size:13px}
.ok-utkast .ok-fjern{width:32px;height:32px}
.ok-utkast .ok-legg{margin-top:0}
.ok-utkast .ok-legg button{min-height:34px;padding:6px 12px;font-size:12.5px}
.ok-utkast .ok-skjema,.ok-utkast .ok-merk,.ok-utkast .ok-feil{margin:0}
/* Gjørelista gir hver knapp i skjemaet sitt utseendet til den grønne pluss-knappen. Disse er ikke den. */
.gl-ny .ok-utkast button{flex:none;width:auto;font:700 12.5px/1.3 Inter,sans-serif;transform:none}
.gl-ny .ok-utkast .ok-legg button,.gl-ny .ok-utkast .ok-legg button:hover{background:#eef3ec;color:#155f55;border-radius:10px}
.gl-ny .ok-utkast .ok-fjern,.gl-ny .ok-utkast .ok-fjern:hover{width:32px;background:none;color:#a39c90;font:400 19px/1 Inter,sans-serif}
.gl-ny .ok-utkast .ok-knapper button,.gl-ny .ok-utkast .ok-knapper button:hover{background:none;color:#526456;border-radius:9px}
.gl-ny .ok-utkast .ok-knapper .ok-lagre,.gl-ny .ok-utkast .ok-knapper .ok-lagre:hover{background:#1a7a6e;color:#fff}
.gl-ny .ok-utkast input,.ao-ny .ok-utkast input{background:#fff;border:1px solid #bbc9bf;border-radius:8px;padding:8px 10px}
