/* Visninger: ressursplan, prosjekter, fremdrift, fremover, kommende, ukeplan, innstillinger */
/* Ressursplan */
.rgrid{display:grid}
.rh{background:#FBFAF7;border-bottom:1px solid #E2E0D8;padding:8px 8px;font-size:12px;border-left:1px solid #EFEDE7}
.rh.wk{border-left:2px solid #CFCCC2}
.rh.today{background:#E6F0E3}
.rh-w{font-size:11px;font-weight:700;color:#5E625D;text-transform:uppercase;letter-spacing:.05em;min-height:14px}
.rh-d{font-weight:600;font-size:13px}
.corner{display:flex;align-items:flex-end;font-weight:600;color:#5E625D;border-left:0;padding-left:14px}
.ghead{grid-column:1 / -1;background:#F4F3EE;padding:7px 14px;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#4A4E49;border-bottom:1px solid #E2E0D8}
.ghead .muted{text-transform:none;letter-spacing:0;font-weight:500;margin-left:6px}
.rname{padding:8px 14px;border-bottom:1px solid #ECEAE3;background:#FDFCFA;display:flex;flex-direction:column;justify-content:center}
.rn{font-weight:650;font-size:14px}
.rr{font-size:12px;color:#5E625D}
.cell{min-height:60px;padding:4px;border-bottom:1px solid #ECEAE3;border-left:1px solid #F0EEE8;display:flex;flex-direction:column;gap:3px;transition:background .1s}
.cell.wk{border-left:2px solid #CFCCC2}
.cell.today{background:#F4F8F2}
.cell.over{background:#FCECE9;box-shadow:inset 0 0 0 2px #C8402A}
.cell.absc{box-shadow:inset 0 0 0 2px #C77700}
.cell.drop-hi{background:#E2ECF8;outline:2px dashed #3A6EA5;outline-offset:-4px}
.chip{display:block;width:100%;text-align:left;border:0;border-radius:6px;padding:4px 7px;font:inherit;font-size:12px;line-height:1.25;cursor:grab;overflow:hidden;color:inherit}
.chip:active{cursor:grabbing}
.chip:hover{filter:brightness(.96)}
.chip .l1{display:block;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chip .l2{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.9}
.chip.half{border-right:3px dotted rgba(0,0,0,.28)}
.chip.ferie{background:repeating-linear-gradient(135deg,#ECEAE3 0 6px,#E1DED4 6px 12px)!important}
.chip.book{box-shadow:inset 0 0 0 1px #B9B6AB}
.chip.unass{box-shadow:inset 0 0 0 2px #3A6EA5}
.free{font-size:11.5px;color:#3F7A55;padding:2px 3px}
.capname{background:#F4F3EE}
.capc{border-left:1px solid #E6E4DC;background:#F4F3EE;display:flex;align-items:center;justify-content:center;padding:8px 4px;font-size:12.5px;font-weight:600}
.capc.wk{border-left:2px solid #CFCCC2}
.capc.zero{color:#922A1A}
.capc.some{color:#1D5534}
/* Prosjekter */
.ptable{min-width:1120px}
.prow{display:grid;grid-template-columns:minmax(220px,1.6fr) 120px 96px 92px 92px 132px 92px minmax(200px,1.5fr) minmax(150px,1fr);gap:10px;align-items:center;padding:10px 16px;border-top:1px solid #EFEDE7}
.prow.head{border-top:0;background:#FBFAF7;font-size:12px;font-weight:650;color:#5E625D;text-transform:uppercase;letter-spacing:.04em;padding-top:10px;padding-bottom:10px}
.plink{display:flex;gap:10px;align-items:flex-start;background:transparent;border:0;padding:4px 0;font:inherit;text-align:left;cursor:pointer;color:inherit}
.plink:hover b{text-decoration:underline}
.plink .dot{margin-top:5px}
.late{color:#B3341F;font-weight:600}
/* Fremdrift */
.pinfo{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.fld{background:#fff;border:1px solid #E2E0D8;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:5px;min-width:0}
.fld label,.fld .fl{font-size:12px;color:#5E625D;font-weight:600}
.fv{font-weight:600;font-size:14.5px}
.fv.late{color:#B3341F}
.ptb{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px 16px;border-bottom:1px solid #EFEDE7}
.atable{min-width:1150px}
.arow{display:grid;grid-template-columns:28px minmax(130px,1.1fr) 176px 138px 150px 118px minmax(110px,.9fr) minmax(220px,1.8fr) 30px;gap:6px;align-items:center;padding:6px 12px;border-top:1px solid #F0EEE8}
.arow.head{border-top:0;background:#FBFAF7;font-size:11.5px;font-weight:650;color:#5E625D;text-transform:uppercase;letter-spacing:.04em;padding-top:8px;padding-bottom:8px}
.arow.past{background:#FBFAF8}
.arow.past .inp{color:#6B6F6A}
.arow.bad{background:#FFF6F3}
.anum{font-size:12px;color:#5E625D;text-align:right;padding-right:4px}
.dcell{display:flex;align-items:center;gap:3px;white-space:nowrap}
.dcell .mono{flex:1;text-align:center}
.ib{width:28px;height:28px;border:1px solid #DDDAD0;background:#fff;border-radius:6px;font:inherit;font-size:15px;line-height:1;cursor:pointer;color:#2B2F2B;display:inline-flex;align-items:center;justify-content:center;flex:none;padding:0}
.ib:hover{background:#EEF3EC;border-color:#B9C7B6}
.ib.on{background:#24543F;border-color:#24543F;color:#fff}
.ib.del{border-color:transparent;color:#8A8E89}
.ib.del:hover{background:#FADDD7;color:#922A1A}
.gtrack{position:relative;height:26px;background:#FAF9F6;border-radius:5px}
.gtick{position:absolute;top:0;bottom:0;border-left:1px dashed #DAD7CD}
.gticklbl{position:absolute;top:0;font-size:11px;font-weight:600;color:#5E625D;padding-left:4px;white-space:nowrap}
.gtoday{position:absolute;top:-6px;bottom:-6px;border-left:2px solid #C8402A;z-index:2}
.gbar{position:absolute;top:4px;bottom:4px;border-radius:5px;min-width:6px}
.gbar.wait{background:repeating-linear-gradient(135deg,#E3E0D6 0 5px,#D2CEC2 5px 10px)!important}
.gbar.unass{box-shadow:inset 0 0 0 2px #3A6EA5}
.gbar.late{box-shadow:inset 0 0 0 2px #C8402A}
.back{background:transparent;border:0;padding:0 0 6px;font:inherit;font-size:13px;color:#24543F;cursor:pointer;font-weight:600}
.back:hover{text-decoration:underline}
/* Fremover */
.fgrid{display:grid}
.fc{border-left:1px solid #EFEDE7;border-bottom:1px solid #EFEDE7;padding:6px 6px;min-height:46px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;font-size:12.5px;line-height:1.25}
.fc .fs{font-size:11px;opacity:.85}
.lv0{background:#E3F1E3;color:#1D5534;font-weight:600}
.lv1{background:#EEF4E6;color:#2C4A1E}
.lv2{background:#F4EBCB;color:#5F4500}
.lv3{background:#33443B;color:#fff}
.lv4{background:#C8402A;color:#fff;font-weight:600}
.lvab{background:repeating-linear-gradient(135deg,#ECEAE3 0 6px,#E1DED4 6px 12px);color:#3F423E}
.bars{display:flex;gap:8px;align-items:flex-end;height:210px}
.fsum{display:flex;flex-wrap:wrap;gap:26px;margin-bottom:16px}
.fsum .big{font-size:26px;font-weight:650;letter-spacing:-0.02em}
/* Kommende */
.kanban{display:flex;gap:12px;overflow-x:auto;padding-bottom:6px;align-items:flex-start}
.kcol{flex:1 0 230px;background:#ECEBE5;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:8px;min-width:230px}
.khead{display:flex;justify-content:space-between;align-items:center;padding:2px 4px 4px;font-weight:650;font-size:13.5px}
.kcount{background:#fff;border-radius:999px;font-size:12px;padding:1px 8px;color:#5E625D}
.kcard{background:#fff;border:1px solid #E2E0D8;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:7px}
.kname{font-weight:650;font-size:14.5px}
.kmeta{display:flex;flex-wrap:wrap;gap:6px}
.kmeta .tag{background:#F2F1EC;color:#333733}
.kact{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:2px}
.kwk{display:inline-flex;align-items:center;gap:4px}
.arrow{color:#5E625D;align-self:center;font-size:16px}
/* Ukeplan */
.wplan{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.wday{padding:0;overflow:hidden}
.wday h3{margin:0;padding:12px 16px;font-size:15px;font-weight:700;display:flex;justify-content:space-between;align-items:center;background:#1C2420;color:#fff}
.wday.today h3{background:#24543F}
.wdate{font-size:12.5px;font-weight:600;background:rgba(255,255,255,.14);border-radius:999px;padding:2px 9px}
.wday .wline{margin:0 16px}
.wday .wline:last-child{margin-bottom:10px}
.wline{display:flex;gap:10px;align-items:center;padding:7px 0;border-top:1px solid #F0EEE8;font-size:13.5px;line-height:1.3}
.wday h3 + .wline{border-top:0;margin-top:6px}
.wn{font-weight:650;min-width:70px;flex:none}
.wchip{border-radius:6px;padding:3px 8px;font-size:12.5px;font-weight:600;line-height:1.3}
.wline.ue .wn{color:#5E625D;font-weight:500}
.wline.ledig .wwhat{color:#3F7A55}
.wline.ledig .wn{color:#3F7A55}
.toast{position:fixed;right:22px;bottom:22px;max-width:440px;background:#1C2420;color:#fff;border-radius:10px;padding:12px 16px;font-size:13.5px;line-height:1.4;box-shadow:0 10px 30px rgba(0,0,0,.18);z-index:50}
/* Utskrift av ukeplan – ett liggende A4-ark */
.printsheet{display:none}
@page{size:A4 landscape;margin:8mm}
@media print{
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body{background:#fff}
  .nav,.toast,dialog{display:none!important}
  .app{display:block;min-height:0}
  .main{padding:0;display:block}
  .main>*{display:none!important}
  .main>.printsheet{display:block!important}
}
.ps-head{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:2.5px solid #1C2420;padding-bottom:6px;margin-bottom:8px}
.ps-brand{display:flex;align-items:center;gap:12px}
.ps-brand img{max-height:58px;max-width:220px;object-fit:contain}
.ps-firm{font-size:9pt;color:#5E625D;font-weight:600}
.ps-title{font-size:18pt;font-weight:700;line-height:1.1;color:#1C2420}
.ps-sub{font-size:10pt;color:#3B3F3B}
.ps-meta{font-size:8pt;color:#5E625D;text-align:right}
.ps-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:8.5pt}
.ps-table th,.ps-table td{border:1px solid #D6D3CA;padding:3px 4px;vertical-align:top}
.ps-table thead th{background:#1C2420;color:#fff;font-size:9.5pt;text-align:left;padding:5px 6px}
.ps-table thead th span{font-weight:400;opacity:.8;margin-left:5px}
.ps-table thead th.ps-corner{width:118px;background:#24543F}
.ps-table tbody th{text-align:left;font-weight:400;background:#F6F5F1;width:118px}
.ps-table tbody th b{display:block;font-size:9pt}
.ps-table tbody th span{font-size:7.5pt;color:#5E625D}
.ps-group td{background:#E9E7E0;font-weight:700;font-size:7.5pt;letter-spacing:.06em;text-transform:uppercase;color:#3F433F;padding:2px 6px}
.ps-table tr{break-inside:avoid}
.ps-chip{border-radius:4px;padding:2px 5px;margin:1px 0;line-height:1.2}
.ps-chip b{display:block;font-size:8.5pt}
.ps-chip span{font-size:7.5pt;opacity:.9}
.ps-chip.abs{background-image:repeating-linear-gradient(135deg,rgba(0,0,0,.05) 0 4px,transparent 4px 8px)}
.ps-free{color:#3F7A55;font-size:8pt;padding:2px 2px}
.ps-over{box-shadow:inset 0 0 0 2px #C8402A}
.ps-legend{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px;font-size:7.5pt;color:#3B3F3B}
.ps-legend span{display:inline-flex;align-items:center;gap:5px}
.ps-legend i{width:9px;height:9px;border-radius:2px;display:inline-block}
.fld.wide{grid-column:span 2}
@media (max-width:600px){.fld.wide{grid-column:auto}}
.fld.plain{border:0;padding:0;margin-top:14px}
.gaxis{background:transparent!important;height:18px}
.people{display:flex;flex-direction:column;gap:6px}
.prs{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.3fr) 30px;gap:6px;align-items:center}
.kname{font-weight:650;font-size:14.5px;border-color:transparent;padding-left:4px}
.kcard .inp.sm{border-color:transparent;padding-left:4px;color:#5E625D}
.kcard .inp:hover,.kcard .inp:focus{border-color:#E2E0D8}
.kneed{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.kneed .inp.num{width:58px}
.kact .ib.del{margin-left:auto}
.absform{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.absform label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;color:#5E625D}
.lvname{font-weight:700;font-size:20px;color:#1C2420}
.lvname span{font-weight:500;color:#5E625D}
.lvname.light{color:#fff}
.lvname.light span{color:#AEB8B0}
/* Innlogging */
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px;background:#F4F3EE}
.logincard{background:#fff;border:1px solid #E2E0D8;border-radius:16px;padding:32px;width:100%;max-width:420px;display:flex;flex-direction:column;gap:10px}
.logincard .h1{margin-top:14px}
.logincard p{margin:0 0 6px;line-height:1.5}
.loginbrand{display:flex;align-items:center;gap:12px}
.brand-name.dark{color:#1C2420;font-size:18px}
.brand-name.dark span{font-weight:500;color:#5E625D}
.loginform{display:flex;flex-direction:column;gap:10px}
.loginform label{font-size:13px;font-weight:600;color:#3F433F}
.inp.lg{min-height:44px;font-size:15px}
.btn.lg{min-height:44px;justify-content:center;font-size:15px}
.btn:disabled{opacity:.6;cursor:default}
.loginmsg{font-size:13px;color:#5E625D;min-height:18px}
.loginmsg.err{color:#922A1A}
.loginsent h2{font-size:18px;margin:4px 0 6px}
.linkbtn{background:transparent;border:0;padding:0;font:inherit;font-size:13px;color:#24543F;cursor:pointer;text-decoration:underline;text-align:left}
.nav .linkbtn{color:#C6CDC5;margin-top:4px}
.savestate{margin-top:10px;font-size:12px}
.savestate.saving{color:#E6CD8F}
.savestate.offline{color:#F2A08E}
.who{margin-top:6px;font-size:12px;word-break:break-all}
.orgname{margin:-10px 12px 14px;font-size:13px;font-weight:600;color:#E6EEE4}
.orgpick{display:flex;flex-direction:column;gap:4px;margin:-8px 10px 14px;font-size:11.5px;color:#9DA79F;text-transform:uppercase;letter-spacing:.05em;font-weight:600}
.orgpick .sel{background-color:#29332E;color:#fff;border-color:#3A4640;text-transform:none;letter-spacing:0;font-size:13.5px}
.hint.readonly{background:#FAEBC8;color:#6E4A00}
/* Brukere */
.mem{display:flex;gap:8px;align-items:center;padding:6px 0;border-top:1px solid #F0EEE8}
.mem:first-child{border-top:0}
.mem .sel{width:130px}
.invite{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid #EFEDE7}
.invite .fl{grid-column:1/-1;font-size:12px;font-weight:600;color:#5E625D}
.invite .btn{justify-content:center}
@media (max-width:520px){.invite{grid-template-columns:1fr}}
.check{flex-direction:row!important;align-items:center;gap:8px!important;min-height:36px}
/* Superadmin */
.otable{min-width:960px}
.orow{display:grid;grid-template-columns:minmax(200px,2fr) 140px 110px 140px 70px 120px 200px;gap:10px;align-items:center;padding:10px 16px;border-top:1px solid #EFEDE7}
.orow.head{border-top:0;background:#FBFAF7;font-size:12px;font-weight:650;color:#5E625D;text-transform:uppercase;letter-spacing:.04em}
/* Velkommen */
.welcome{display:flex;flex-direction:column;gap:4px;max-width:720px}
.wstep{display:flex;gap:14px;align-items:center;padding:12px 0;border-top:1px solid #EFEDE7}
.wstep:first-child{border-top:0}
.wnum{width:30px;height:30px;border-radius:50%;background:#E6EEE4;color:#1D3A2C;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex:none}

/* Superadmin – egen lyseblå farge */
.supersec{margin-top:14px;padding:10px 6px 8px;border-radius:10px;background:rgba(122,170,232,.12);border:1px solid rgba(122,170,232,.28)}
.superlbl{display:flex;align-items:center;gap:6px;padding:0 8px 6px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#A8CBF7}
.navbtn.super{color:#CFE2FB}
.navbtn.super:hover{background:rgba(122,170,232,.2);color:#fff}
.navbtn.super.on{background:#DCEBFC;color:#123B6B}
.superhead{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;background:#EAF3FD;border:1px solid #C6DCF6;border-radius:14px;padding:22px 24px}
.superhead .h1{color:#123B6B;margin-top:8px}
.superhead p{margin:6px 0 0;color:#2F527D;font-size:14px}
.superpill{display:inline-flex;align-items:center;gap:6px;background:#CFE2FB;color:#123B6B;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.superstats{display:flex;gap:12px;flex-wrap:wrap}
.superstats div{background:#fff;border:1px solid #C6DCF6;border-radius:10px;padding:10px 16px;display:flex;flex-direction:column;align-items:center;min-width:90px}
.superstats b{font-size:24px;color:#123B6B;line-height:1.1}
.superstats span{font-size:12px;color:#2F527D}
.supercard{border-color:#C6DCF6}
.supercard .orow.head{background:#F3F8FE;color:#2F527D}
.btn.superbtn{background:#1F5FA8;border-color:#1F5FA8;color:#fff}
.btn.superbtn:hover{background:#174C88;color:#fff}

/* Passord */
.loginalt{margin-top:6px;font-size:13px;display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.footlinks{display:flex;gap:14px;margin-top:4px}
.hint.pwhint{background:#E2ECF8;color:#173E66;flex-wrap:wrap}
.sel.need{border-color:#3A6EA5;box-shadow:inset 0 0 0 1px #3A6EA5;background-color:#EEF4FC;color:#173E66;font-weight:600}
/* Klikkbare ruter i Fremover */
button.fc{font:inherit;border-top:0;border-right:0;cursor:pointer;width:100%}
button.fc:hover{filter:brightness(.95);box-shadow:inset 0 0 0 2px rgba(28,36,32,.25)}
button.fc:focus-visible{outline:2px solid #3A6EA5;outline-offset:-2px}
/* Dialog */
dialog.modal{border:0;border-radius:16px;padding:0;width:min(640px,calc(100% - 24px));max-height:calc(100vh - 48px);box-shadow:0 24px 60px rgba(0,0,0,.25);color:#1A1D1B;display:flex;flex-direction:column}
dialog.modal:not([open]){display:none}
dialog.modal::backdrop{background:rgba(20,26,23,.45)}
.modal-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 20px 12px;border-bottom:1px solid #EFEDE7}
.modal-head h2{margin:0;font-size:18px}
.modal-body{padding:14px 20px;overflow:auto}
.modal-foot{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px 20px 18px;border-top:1px solid #EFEDE7}
.pd{display:flex;flex-direction:column;gap:8px}
.pd-day{display:grid;grid-template-columns:96px 1fr;gap:10px;padding:10px;border-radius:10px;background:#FAF9F6;border:1px solid #EFEDE7}
.pd-day.over{background:#FCECE9;border-color:#E9B1A5}
.pd-day.clash{background:#FDF1E1;border-color:#EBC99A}
.pd-date{display:flex;flex-direction:column;font-size:13px}
.pd-date span{color:#5E625D}
.pd-items{display:flex;flex-direction:column;gap:6px;min-width:0}
.pd-item{display:flex;align-items:center;gap:8px;font-size:13.5px;flex-wrap:wrap}
.pd-item.free{color:#3F7A55}
.pd-dot{width:10px;height:10px;border-radius:3px;flex:none}
.pd-warn{font-size:12.5px;font-weight:700;color:#922A1A}
.pd-warn.orange{color:#7A3F00}
/* Brukerveiledning */
.guide{display:grid;grid-template-columns:240px minmax(0,1fr);gap:14px;align-items:start}
@media (max-width:900px){.guide{grid-template-columns:1fr}}
.guide-toc{position:sticky;top:16px;display:flex;flex-direction:column;gap:2px;padding:14px}
.guide-toc .fl{font-size:12px;font-weight:700;color:#5E625D;text-transform:uppercase;letter-spacing:.05em;margin:0 8px 6px}
.guide-link{display:flex;align-items:center;gap:8px;background:transparent;border:0;border-radius:8px;padding:8px;font:inherit;font-size:14px;text-align:left;cursor:pointer;color:#1A1D1B}
.guide-link:hover{background:#F1F0EA}
.guide-body{display:flex;flex-direction:column;gap:14px}
.guide-sec{scroll-margin-top:16px;line-height:1.55;font-size:14.5px}
.guide-sec p{margin:0 0 10px}
.guide-sec h3{font-size:14.5px;margin:14px 0 6px}
.guide-sec ul,.guide-sec ol{margin:0 0 10px;padding-left:22px}
.guide-sec li{margin:4px 0}
.guide-h{display:inline-flex;align-items:center;gap:8px;font-size:17px}
.guide-tip{background:#E9F0E7;color:#2C4A35;border-radius:8px;padding:10px 12px;font-size:13.5px;margin-top:6px}
.prs{padding-bottom:8px;border-bottom:1px solid #F0EEE8}
.prs:last-child{border-bottom:0}
.prs-email{grid-column:1/-2;font-size:12.5px;min-height:28px;color:#3B3F3B}
/* Send ukeplan */
.snd{display:flex;flex-direction:column;gap:12px}
.snd-mode{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media (max-width:520px){.snd-mode{grid-template-columns:1fr}}
.snd-mode label{display:flex;gap:10px;align-items:flex-start;border:1px solid #E2E0D8;border-radius:10px;padding:10px 12px;cursor:pointer}
.snd-mode label:has(input:checked){border-color:#24543F;background:#EEF5EF}
.snd-head{display:flex;justify-content:space-between;align-items:center;font-size:13.5px}
.snd-list{display:flex;flex-direction:column;border:1px solid #EFEDE7;border-radius:10px;max-height:320px;overflow:auto}
.snd-row{display:flex;gap:10px;align-items:center;padding:9px 12px;border-top:1px solid #F0EEE8;cursor:pointer}
.snd-row:first-child{border-top:0}
.snd-row.off{opacity:.6;cursor:default}
.snd-row input{width:18px;height:18px;flex:none}

/* Superadmin-kort i Innstillinger (samme lyseblå som superadmin-seksjonen) */
.card.supercard{background:#EEF4FC;border-color:#B9D2F0}
.supertag{display:inline-block;margin-bottom:8px;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#2F5F99;background:#DCE8F8}

/* Utsendingslogg på ukeplanen */
.sendlog{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13.5px;border-radius:10px;padding:10px 14px;margin:0 0 14px}
.sendlog.ok{background:#E9F0E7;color:#2C4A37;border:1px solid #CFE0CC}
.sendlog.none{background:#F6F1E4;color:#6A4E14;border:1px solid #EADDB8}
.sendlog .sendwarn{color:#9A5B00;font-weight:600}
.sendhist{display:flex;flex-direction:column;gap:10px}
.sendhist-row{border:1px solid #E8E6DF;border-radius:10px;padding:10px 12px;font-size:13.5px}
.sendhist-names{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tag.failtag{background:#FBE4E1;color:#9B2C22}

/* Abonnementsvarsler */
.hint.subhint{flex-wrap:wrap;line-height:1.45}
.hint.subhint a{color:inherit;font-weight:600}
.hint.subhint.trial{background:#EEF1EC;color:#3F4A44}
.hint.subhint.soon{background:#FAEBC8;color:#6E4A00}
.hint.subhint.locked{background:#FBE4E1;color:#8A2A20}
.subsuper{font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;background:#DCE8F8;color:#2F5F99}

/* Abonnement i superadmin */
.obtns{display:flex;gap:6px;justify-content:flex-end}
.subpill{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:600;white-space:nowrap}
.sp-active{background:#E3F0E3;color:#25613A}
.sp-trial{background:#E2ECF8;color:#25507F}
.sp-overdue{background:#FAEBC8;color:#7A5200}
.sp-trial_expired,.sp-closed,.sp-locked{background:#FBE4E1;color:#9B2C22}
.orow .red{color:#B3261E;font-weight:600}
.subform{display:flex;flex-direction:column;gap:12px}
.subform label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;color:#3F4A44}
.subgrid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:10px}
@media (max-width:560px){.subgrid{grid-template-columns:1fr}}

/* Kommende jobber: kolonnen «Planlagt oppstart» viser prosjekter som ikke har startet */
.khint{font-size:12px;color:#5E625D;padding:0 4px 2px;margin-top:-4px}
.kproj-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.kempty{font-size:12.5px;color:#5E625D;padding:10px 6px;line-height:1.45}
.hint.frompipe{flex-wrap:wrap;background:#E3F0E3;color:#25472F;line-height:1.5;margin-bottom:14px}

/* Farger per steg i Kommende jobber: blå → lilla → gull → oransje → grønn */
.kcol{--kc:#5E625D;--kbg:#ECEBE5;--kfg:#333733;background:var(--kbg);border-top:4px solid var(--kc)}
.kc-0{--kc:#4A78B0;--kbg:#E6EEF8;--kfg:#1F4570}
.kc-1{--kc:#7A5AA6;--kbg:#EEE8F6;--kfg:#4A2F72}
.kc-2{--kc:#B98A1E;--kbg:#F8F0DA;--kfg:#6A4E0C}
.kc-3{--kc:#C8642E;--kbg:#FBE9DE;--kfg:#7A3410}
.kc-4{--kc:#2F7A4A;--kbg:#E3F0E3;--kfg:#1E4F30}
.kcol .khead{color:var(--kfg)}
.kname-h{display:inline-flex;align-items:center;gap:7px}
.kdot{width:9px;height:9px;border-radius:50%;background:var(--kc)}
.kcol .kcount{background:var(--kc);color:#fff;min-width:22px;text-align:center}
.kcol .khint{color:var(--kfg);opacity:.8}
.kcol .kcard:not(.kproj){border-left:4px solid var(--kc)}
.kcol .kcard .kwk{background:var(--kbg);color:var(--kfg)}

/* ---- Innstillinger: nytt oppsett ---- */
.settop{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:14px;align-items:start;margin-bottom:14px}
.settop.single{grid-template-columns:minmax(0,520px)}
@media (max-width:980px){.settop{grid-template-columns:minmax(0,1fr)}}
.pcard-wrap{margin-bottom:14px}
.phead2{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.pcounts{display:flex;gap:6px;flex-wrap:wrap}
.pcount{display:inline-flex;align-items:center;gap:5px;padding:5px 11px;border-radius:999px;font-size:12.5px;background:var(--kbg);color:var(--kfg)}
.k-int{--kc:#2F7A4A;--kbg:#E3F0E3;--kfg:#1E4F30}
.k-inn{--kc:#4A78B0;--kbg:#E6EEF8;--kfg:#1F4570}
.k-ue{--kc:#B98A1E;--kbg:#F8F0DA;--kfg:#6A4E0C}
.k-mail{--kbg:#F2F1EC;--kfg:#333733}
.pgroup{border-top:1px solid #EFEDE7;padding:16px 0 4px}
.pgroup-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.pgroup-head h3{display:flex;align-items:center;gap:8px;margin:0 0 2px;font-size:15px;color:var(--kfg)}
.pgroup-head h3::before{content:'';width:10px;height:10px;border-radius:3px;background:var(--kc)}
.pgc{font-size:12px;font-weight:600;background:var(--kbg);color:var(--kfg);border-radius:999px;padding:1px 8px}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px}
.pempty{font-size:13px;color:#5E625D;background:#FBFAF7;border:1px dashed #E2E0D8;border-radius:10px;padding:12px 14px}
.pcard{border:1px solid #E5E3DC;border-left:4px solid var(--kc);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px;background:#fff;transition:box-shadow .15s}
.pcard:hover{box-shadow:0 2px 10px rgba(28,36,32,.07)}
.pc-top{display:flex;align-items:flex-start;gap:10px}
.pc-av{flex:0 0 40px;height:40px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:14px;background:var(--kbg);color:var(--kfg)}
.pc-id{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.pcard .inp{border-color:transparent;background:transparent}
.pcard .inp:hover:not(:disabled),.pcard .inp:focus{border-color:#E2E0D8;background:#fff}
.pc-name{font-weight:650;font-size:15px;padding:3px 6px;min-height:30px}
.pc-role{font-size:13px;color:#5E625D;padding:2px 6px;min-height:26px}
.pc-fields{display:flex;flex-direction:column;gap:4px;background:#FBFAF7;border-radius:8px;padding:4px 6px}
.pc-f{display:flex;align-items:center;gap:6px;color:#8A8E89}
.pc-f .inp{flex:1;min-width:0;font-size:13px;min-height:30px;padding:4px 6px;color:#2A2E2A}
.pc-foot{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pc-foot .sel{font-size:12.5px;min-height:28px;padding:2px 26px 2px 8px;width:auto;max-width:150px}
.pc-badge{display:inline-flex;align-items:center;gap:4px;font-size:12px;padding:3px 8px;border-radius:999px;background:#F2F1EC;color:#5E625D;text-decoration:none}
.pc-badge.ok{background:#E3F0E3;color:#25613A}
.pc-badge.call{background:#E6EEF8;color:#1F4570;margin-left:auto}
.pcard .ib.del{margin-left:auto;opacity:.5}
.pcard:hover .ib.del{opacity:1}

.datacard{display:grid;grid-template-columns:auto 1fr;gap:6px 24px;align-items:center}
.datacard>.supertag,.datacard>.ctitle{grid-column:1/-1;margin-bottom:0}
.datacard .lvrow{grid-row:span 2}
.datacard .lvbox{padding:10px 14px}
.datacard p{margin:0!important}
@media (max-width:760px){.datacard{grid-template-columns:1fr}.datacard .lvrow{grid-row:auto}}

/* Abonnement (admin) i Innstillinger */
.setcol{display:flex;flex-direction:column;gap:14px;min-width:0}
.subcard .ctitle{display:flex;justify-content:space-between;align-items:center}
.subrows{display:flex;flex-direction:column;border-top:1px solid #EFEDE7;margin-bottom:12px}
.subrow{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #EFEDE7;font-size:13.5px}
.subrow b{text-align:right}
.subrow b.red{color:#B3261E}
.subuse{background:#FBFAF7;border-radius:10px;padding:10px 12px;margin-bottom:12px;font-size:13.5px}
.subuse-top{display:flex;justify-content:space-between}
.subbar{height:8px;border-radius:99px;background:#ECEBE5;margin-top:8px;overflow:hidden}
.subbar span{display:block;height:100%;background:#2F7A4A;border-radius:99px}
.subbar span.near{background:#C79A2A}
.subbar span.full{background:#C8642E}

.subform label.subshow{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400;background:#F3F8FE;border:1px solid #C6DCF6;border-radius:10px;padding:10px 12px}
.subform label.subshow input{margin-top:3px}
.hint.subhidden{background:#EEF4FC;color:#2F527D;font-size:12.5px;margin-bottom:10px;flex-wrap:wrap}

/* Fargevelger på prosjektet */
.swatches{display:flex;flex-wrap:wrap;gap:5px;padding:2px 0}
.swatch{width:26px;height:26px;border-radius:8px;border:2px solid transparent;display:grid;place-items:center;font-weight:700;font-size:14px;cursor:pointer;padding:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.swatch:hover{transform:translateY(-1px);box-shadow:0 2px 6px rgba(0,0,0,.12)}
.swatch.on{box-shadow:0 0 0 2px #fff,0 0 0 4px currentColor}
.swdot{width:7px;height:7px;border-radius:50%;opacity:.55}

/* ---- Mobil ---- */
.seg{max-width:100%;overflow-x:auto;scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
.seg button{white-space:nowrap;flex:none}
@media (max-width:760px){
  /* Rutenett: smal navnekolonne som blir stående når man blar sidelengs */
  .rgrid,.fgrid{--namew:108px}
  .rname,.rgrid .corner,.fgrid .corner{position:sticky;left:0;z-index:3}
  .rgrid .corner,.fgrid .corner{background:#FBFAF7;padding-left:10px}
  .rname{padding:8px 10px;box-shadow:2px 0 4px rgba(0,0,0,.04)}
  .rn{font-size:13px}.rr{font-size:11px}
  .phead{gap:10px}
  .h1{font-size:24px}
  .kanban{scroll-snap-type:x mandatory}
  .kcol{scroll-snap-align:start;flex-basis:82vw;min-width:82vw}
  dialog.modal{width:calc(100% - 16px);max-height:calc(100vh - 24px);border-radius:14px}
  .legend{gap:6px 12px}
}
/* Ressursplan – dagvisning på mobil */
.daytabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.daytab{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;padding:8px 2px;border:1px solid #DDDBD2;border-radius:10px;background:#fff;font:inherit;cursor:pointer;color:#333733}
.daytab .dt-d{font-size:12px;text-transform:capitalize}
.daytab .dt-n{font-weight:700;font-size:15px}
.daytab.today{border-color:#9CC39E}
.daytab.on{background:#1C2420;border-color:#1C2420;color:#fff}
.dt-warn{position:absolute;top:5px;right:6px;width:8px;height:8px;border-radius:50%;background:#C8402A}
.daycap{font-size:13px;font-weight:600;border-radius:10px;padding:9px 12px}
.daycap.some{background:#E3F0E3;color:#25613A}
.daycap.zero{background:#FBE9DE;color:#7A3410}
.mgroup{display:flex;flex-direction:column;gap:8px}
.mgroup-h{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#5E625D;margin-top:4px}
.mrow{background:#fff;border:1px solid #E5E3DC;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.mrow.over{border-color:#C8402A;box-shadow:inset 3px 0 0 #C8402A}
.mrow.clash{border-color:#C77700;box-shadow:inset 3px 0 0 #C77700}
.mwho{display:flex;align-items:baseline;gap:8px;border:0;background:none;padding:0;font:inherit;text-align:left;cursor:pointer;color:inherit}
.mname{font-weight:700;font-size:15px}
.mrole{font-size:12.5px;color:#5E625D}
.mweek{margin-left:auto;font-size:12.5px;color:#2F5E47;font-weight:600}
.mchips{display:flex;flex-direction:column;gap:6px}
.mchips .chip{width:100%;min-height:40px;text-align:left}
.mwarn{font-size:12.5px;font-weight:700;color:#B3261E}
.mwarn.orange{color:#9A5B00}
.mday{display:flex;flex-direction:column;gap:8px}
.mday-h{font-weight:700}
.mchips .chip{font-size:13.5px;padding:7px 10px;border-radius:8px}

/* Prosjekter som kort på mobil */
.pcards{display:flex;flex-direction:column;gap:10px}
.mproj{background:#fff;border:1px solid #E5E3DC;border-left:5px solid #999;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.mproj-top{display:flex;align-items:center;gap:10px;border:0;background:none;padding:0;font:inherit;text-align:left;color:inherit;cursor:pointer}
.mproj-top b{font-size:15.5px}
.mproj-go{font-size:22px;color:#8A8E89}
.mproj-dates{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px}
.mproj-dates .late{color:#B3261E;font-weight:600}
.mproj-st .sel{width:auto;min-width:150px}
@media (max-width:760px){
  .navtoggle{max-width:58vw}
  .nt-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .brand-name{font-size:15px}
}
@media (max-width:380px){.brand-name{display:none}}
/* Verktøylinjer skal aldri gjøre siden bredere enn skjermen */
.phead>*{min-width:0}
.toolbar{min-width:0;max-width:100%}
@media (max-width:760px){
  .phead{flex-direction:column;align-items:stretch}
  .navtoggle{min-width:0;flex-shrink:1}
  .navtop{min-width:0}
  .nt-label{min-width:0}
}
@media (max-width:760px){
  .pd-day{grid-template-columns:1fr;gap:6px}
  .pd-date{flex-direction:row;gap:8px;align-items:baseline}
  .pd-item{flex-wrap:wrap}
  .pd-item .btn{margin-left:auto}
  .modal-foot{flex-wrap:wrap}
  .modal-foot .grow{flex-basis:100%}
}
.k-adm{--kc:#7A5AA6;--kbg:#EEE8F6;--kfg:#4A2F72}

/* Helligdager og fridager */
.rh.hol{background:repeating-linear-gradient(135deg,#EEF0F2 0 6px,#E5E8EB 6px 12px)}
.rh-hol{font-size:10.5px;font-weight:700;color:#4A5560;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.capc.hol{color:#4A5560;background:#EEF0F2}
.chip.hol{cursor:default;background:repeating-linear-gradient(135deg,#EEF0F2 0 6px,#E5E8EB 6px 12px)!important;color:#4A5560!important}
.daytab .dt-hol{font-size:10px;font-weight:700;opacity:.75}
.daycap.hol{background:#EEF0F2;color:#4A5560}
.wline.hol .wwhat{color:#4A5560;font-weight:600}

.offpub{display:flex;flex-wrap:wrap;gap:6px}
.offchip{font-size:12.5px;background:#EEF0F2;color:#3A444D;border-radius:999px;padding:4px 10px}
.offlist{display:flex;flex-direction:column}
.offrow{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #EFEDE7;font-size:13.5px}
.offform{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;gap:6px;margin-top:10px}
@media (max-width:560px){.offform{grid-template-columns:1fr 1fr}.offform .inp:first-child{grid-column:1/-1}}
.wline.hol .wn{display:none}

.toastbtn{margin-left:12px;border:1px solid rgba(255,255,255,.45);background:transparent;color:#fff;border-radius:7px;padding:4px 11px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.toastbtn:hover{background:rgba(255,255,255,.12)}
.undolink{margin-left:8px;color:#C9D6CC!important}

/* Endringslogg */
.histcard{margin-bottom:14px}
.histcard .ctitle{display:flex;justify-content:space-between;align-items:baseline}
.histlist{display:flex;flex-direction:column}
.histrow{display:grid;grid-template-columns:170px 1fr auto;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #EFEDE7;font-size:13.5px}
.histrow.restore{background:#EEF4FC;padding-left:8px;border-radius:8px}
.histwhen{display:flex;flex-direction:column}
.histwhen span{font-size:12px;color:#5E625D}
.histwhat{line-height:1.45;color:#2A2E2A}
@media (max-width:760px){.histrow{grid-template-columns:1fr}.histrow .btn{justify-self:start}}
.superside{display:flex;align-items:center}
