:root { --text:#16181D; --tyst:#454B57; --grund:#F4F5F7; --kort:#fff; --kant:#E1E4EA; --kant2:#CDD2DB; --bla:#1D4ED8; --orange:#B45309; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--grund); }
.ram { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
header { background: var(--kort); border-bottom: 1px solid var(--kant); position: sticky; top: 0; z-index: 2; }
.huvud { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.logga { font-weight: 700; font-size: 18px; }
nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
nav a { padding: 12px 14px; border-radius: 8px; color: var(--tyst); font-weight: 500; text-decoration: none; }
nav a[aria-current] { background: #E8EEFC; color: #16389C; font-weight: 600; }
.verktyg { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#period { display: flex; border: 1px solid var(--kant2); border-radius: 8px; overflow: hidden; }
#period[hidden] { display: none; }
#period button { min-height: 44px; padding: 0 14px; border: 0; background: var(--kort); font: inherit; font-weight: 500; color: var(--tyst); cursor: pointer; }
#period button[aria-pressed=true] { background: var(--text); color: #fff; font-weight: 600; }
.knapp { min-height: 44px; padding: 0 16px; border: 1px solid var(--kant2); border-radius: 8px; background: var(--kort); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.knapp.fylld { background: var(--bla); border-color: var(--bla); color: #fff; }
.knapp:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #5B8DEF; outline-offset: 2px; }
#senast { margin-bottom: 12px; }
main { padding-top: 16px; padding-bottom: 48px; }
#innehall, .stapla { display: flex; flex-direction: column; gap: 16px; }
.rad { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: start; }
.kpirad { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.kort { background: var(--kort); border: 1px solid var(--kant); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kort h2 { margin: 0; font-size: 16px; font-weight: 600; }
.kpi { gap: 4px; } .kpi .etikett { font-size: 13px; color: var(--tyst); } .kpi .varde { font-size: 28px; font-weight: 700; }
.tyst { color: var(--tyst); font-size: 13px; margin: 0; }
#fel { background: #FDE8E4; color: #8A1C0D; font-weight: 600; padding: 10px 14px; border-radius: 8px; margin: 0 0 12px; }
#fel[hidden] { display: none; }
svg { width: 100%; height: auto; display: block; }
.rut { stroke: var(--kant); stroke-width: 1; } .axel { font-size: 12px; fill: var(--tyst); } .axel.fet { font-weight: 600; fill: var(--text); }
.linje { fill: none; stroke-width: 2.5; stroke-linejoin: round; } .linje.s0 { stroke: var(--bla); } .linje.s1 { stroke: var(--orange); stroke-dasharray: 6 5; }
.prick { fill: #fff; stroke-width: 2.5; } .prick.s0 { stroke: var(--bla); } .prick.s1 { stroke: var(--orange); }
.norm { stroke: var(--orange); stroke-width: 1.5; stroke-dasharray: 5 4; } .not { stroke: var(--tyst); stroke-width: 1; stroke-dasharray: 3 3; }
.forklaring { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--tyst); }
.streck { display: inline-block; width: 18px; margin-right: 6px; vertical-align: middle; border-top: 3px solid var(--bla); } .streck.s1 { border-top: 3px dashed var(--orange); }
.staplar { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.stapelrad { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; gap: 10px; align-items: center; }
.stapelrad .namn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stapel { height: 12px; border-radius: 4px; background: var(--bla); }
.trattrad { display: flex; flex-direction: column; gap: 4px; } .trattrubrik { display: flex; justify-content: space-between; gap: 8px; }
.varme { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 2px; align-items: center; font-size: 11px; }
.ruta { height: 20px; border-radius: 3px; } .n0 { background: #F1F3F6; } .n1 { background: #C9D9FA; } .n2 { background: #94B3F3; } .n3 { background: #5B8DEF; } .n4 { background: #1D4ED8; }
.rulla { overflow-x: auto; } table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; font-size: 13px; color: var(--tyst); } th, td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--kant); white-space: nowrap; } tr:last-child td { border-bottom: 0; } .h { text-align: right; }
.bricka { font-weight: 600; font-size: 13px; padding: 4px 8px; border-radius: 6px; white-space: normal; } .bricka.ok { background: #E3F3E8; color: #14532D; } .bricka.tyst, .bricka.aldrig { background: #FDE8E4; color: #8A1C0D; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--tyst); }
input[type=text], input[type=password], input[type=date], select { min-height: 44px; padding: 0 12px; border: 1px solid var(--kant2); border-radius: 8px; font: inherit; font-size: 16px; color: var(--text); background: #fff; width: 100%; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; } legend { font-size: 13px; color: var(--tyst); padding: 0; margin-bottom: 4px; }
.kryss { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--text); } .kryss input { width: 20px; height: 20px; }
.formrad { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; } .formrad label { flex: 1 1 140px; } .vaxer { flex: 3 1 200px !important; }
dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; } dt { color: var(--tyst); } dd { margin: 0; font-weight: 600; text-align: right; }
code { font-size: 13px; background: var(--grund); border: 1px solid var(--kant); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: nowrap; display: block; }
body.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; } body.login form { width: 100%; max-width: 380px; padding: 28px; gap: 16px; }
