/* Ramme: sidemeny, hovedområde, oversikt */
.app{display:flex;flex-wrap:wrap;min-height:100vh;align-items:stretch}
.nav{flex:1 1 220px;background:#1C2420;color:#E8EAE4;padding:20px 12px;display:flex;flex-direction:column;gap:2px}
.main{flex:999 1 560px;min-width:0;padding:26px 28px 72px;display:flex;flex-direction:column;gap:18px}
.brand{display:flex;align-items:center;gap:10px;padding:4px 10px 22px}
.brand-name{font-weight:700;font-size:16px;letter-spacing:-0.01em}
.brand-sub{font-size:12px;color:#9DA79F;margin-top:2px}
.navbtn{display:flex;align-items:center;gap:11px;width:100%;min-height:42px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#C6CDC5;font:inherit;font-size:14.5px;text-align:left;cursor:pointer}
.navbtn:hover{background:#29332E;color:#fff}
.navbtn.on{background:#E6EEE4;color:#16201B;font-weight:600}
.navbtn svg{flex:none}
.nbadge{margin-left:auto;background:#C8402A;color:#fff;border-radius:999px;font-size:11.5px;font-weight:700;min-width:22px;height:20px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
.firmlogo{margin:-8px 10px 18px;background:#fff;border-radius:10px;padding:10px 12px;display:flex;align-items:center;justify-content:center}
.firmlogo img{max-width:100%;max-height:56px;object-fit:contain;display:block}
.navfoot{margin-top:auto;padding:16px 12px 4px;font-size:12px;color:#9DA79F;line-height:1.5}
@media (max-width:760px){.nav{flex-direction:row;flex-wrap:wrap;padding:12px}.navbtn{width:auto}.brand{padding:4px 8px 8px;width:100%}.navfoot{display:none}.main{padding:16px}}
/* KPI + dashboard */
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.kpi{background:#fff;border:1px solid #E2E0D8;border-radius:12px;padding:16px 18px}
.kpi-l{font-size:13px;color:#5E625D;font-weight:500}
.kpi-v{font-size:34px;font-weight:650;letter-spacing:-0.02em;margin-top:4px;line-height:1.1}
.kpi-v.red{color:#B3341F}
.kpi-s{font-size:12.5px;color:#5E625D;margin-top:4px}
.dgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:14px;align-items:start}
.span2{grid-column:span 2}
@media (max-width:980px){.span2{grid-column:auto}}
.trow{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #EFEDE7}
.trow:first-child{border-top:0}
.avatar{width:32px;height:32px;border-radius:50%;background:#E6EEE4;color:#1D3A2C;display:inline-flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:700;flex:none}
.avatar.inn{background:#EFE7DA;color:#5A4320}
.tname{min-width:110px}
.tright{margin-left:auto;display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.tag{display:inline-flex;align-items:center;min-height:24px;padding:2px 9px;border-radius:6px;font-size:12.5px;font-weight:550;line-height:1.25}
.tag.ferie{background:repeating-linear-gradient(135deg,#ECEAE3 0 6px,#E1DED4 6px 12px)!important}
.tag.ledig{background:#F1F5EE;color:#2C5A3E;font-weight:500}
.tag.warn{box-shadow:inset 0 0 0 2px #C77700}
.alert{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid #EFEDE7}
.alert:first-child{border-top:0}
.atag{flex:none;font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:6px;white-space:nowrap;margin-top:1px}
.t-red{background:#FADDD7;color:#922A1A}
.t-orange{background:#FCE6C8;color:#7A3F00}
.t-blue{background:#E0E9F6;color:#22416A}
.atext{flex:1;min-width:0;line-height:1.35}
.empty{color:#5E625D;font-size:13px;padding:8px 0}
.mgrid{display:grid;grid-template-columns:130px repeat(5,minmax(96px,1fr));min-width:640px;border-top:1px solid #EFEDE7}
.mh{font-size:12px;font-weight:600;color:#5E625D;padding:8px 6px;border-bottom:1px solid #EFEDE7}
.mh.today{color:#24543F}
.mn{padding:6px 6px;font-weight:600;font-size:13px;border-bottom:1px solid #F2F0EA;display:flex;align-items:center}
.mc{padding:4px;border-bottom:1px solid #F2F0EA;border-left:1px solid #F2F0EA;display:flex;flex-direction:column;gap:3px;min-height:36px}
.mc.today{background:#F4F8F2}
.mchip{font-size:12px;border-radius:5px;padding:3px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:550}
.mchip.ferie{background:repeating-linear-gradient(135deg,#ECEAE3 0 6px,#E1DED4 6px 12px)!important}
.mchip.ledig{color:#3F7A55;font-weight:500;background:transparent;padding-left:2px}
.mchip.over{box-shadow:inset 0 0 0 2px #C8402A}
.capwrap{display:flex;gap:10px;align-items:flex-end;height:190px;padding-top:6px}
.capcol{flex:1;display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;height:100%}
.capbar{flex:1;background:#F1F5EE;border-radius:6px;display:flex;flex-direction:column-reverse;overflow:hidden;position:relative}
.capfill{background:#2F5E47}
.captent{background:repeating-linear-gradient(135deg,#C9A24A 0 5px,#E6CD8F 5px 10px)}
.capcol.full .capbar{box-shadow:inset 0 0 0 2px #C8402A}
.caplbl{font-size:12px;font-weight:600;text-align:center;white-space:nowrap}
.capfree{font-size:11.5px;color:#5E625D;text-align:center;white-space:nowrap}
.plist{display:flex;flex-direction:column}
.pli{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #EFEDE7;width:100%;background:transparent;border-left:0;border-right:0;border-bottom:0;font:inherit;text-align:left;cursor:pointer;color:inherit}
.pli:first-child{border-top:0}
.pli:hover .pnm{text-decoration:underline}
.dot{width:10px;height:10px;border-radius:3px;flex:none}
.pnm{font-weight:600}
.prog{width:90px;height:6px;border-radius:3px;background:#ECEAE3;overflow:hidden;flex:none}
.progf{height:100%;background:#2F5E47}

.brand-light{font-weight:500;color:#AEB8B0}
