/* FrameIt Grafit / Koxit portal: shared fonts, colors and component proportions. */
@font-face{font-family:'Schibsted Grotesk';src:url('/assets/fonts/schibsted-grotesk.woff2') format('woff2');font-weight:400 800;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('/assets/fonts/jetbrains-mono.woff2') format('woff2');font-weight:400 700;font-display:swap}
@media screen{
html:has(.shell),html:has(.login){background:#0d0e10}html:has([data-workspace-theme=stille] .shell){background:#f6f6f4}

body[data-workspace-theme]:has(.shell),body:has(.login){--bg:#0d0e10;--side:#111214;--paper:#16181b;--surface:#1c1f23;--hover:#22262b;--line:#24272c;--line-2:#30343a;--ink:#ecedee;--muted:#a0a5ac;--accent:#3aa4ea;--border:var(--line);--sans:'Schibsted Grotesk','Segoe UI',sans-serif;--mono:'JetBrains Mono',monospace;background:var(--bg);color:var(--ink);font:14.5px/1.5 var(--sans);color-scheme:dark;-webkit-font-smoothing:antialiased}
body[data-workspace-theme=relief]:has(.shell){--bg:#2c2d31;--side:#34363b;--paper:#222326;--surface:#3b3d43;--hover:#42454c;--line:#565961;--line-2:#686c75;--ink:#f2f2f4;--muted:#bcbfc6;--accent:#67bdf5}
body[data-workspace-theme=stille]:has(.shell){--bg:#f6f6f4;--side:#eeeeeb;--paper:#fff;--surface:#f0f0ed;--hover:#e5e5e0;--line:#d4d7d1;--line-2:#bcc1b8;--ink:#252824;--muted:#60665e;--accent:#176ca7;color-scheme:light}
.shell{grid-template-columns:290px minmax(0,1fr)}
.shell .sidebar{padding:23px 14px 16px;overflow-y:auto;height:100dvh;gap:0}
.shell .brand,.login .brand{display:flex;align-items:center;gap:10px;font-size:18px;letter-spacing:-.04em;color:var(--ink);padding:0 9px}
.shell .brand-mark,.login .brand-mark{width:28px;height:28px;margin:0;border:1px solid var(--line-2);border-radius:8px;background:var(--surface);color:var(--accent);font-size:16px}
.shell .brand-sub{font:10px var(--mono);letter-spacing:.08em;margin:10px 9px 32px}
.shell .nav-label{font:10.5px var(--mono);letter-spacing:.12em;margin:0 11px 10px}
.shell .sidebar nav{display:flex;flex-direction:column;gap:4px}
.shell .sidebar nav button{display:flex;align-items:center;gap:11px;min-height:36px;padding:7px 11px;border:1px solid transparent;font-size:13.5px;font-weight:500;border-radius:9px;box-shadow:none}
.shell .sidebar nav button.active{border:1px solid var(--line);padding:7px 11px;background:var(--surface);box-shadow:none;color:var(--ink)}
.nav-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.sidebar nav button.active .nav-icon{color:var(--accent)}
.shell .sidebar footer{border-top:1px solid var(--line);padding:18px 9px 0;font-size:12px}.shell .sidebar footer button{margin-top:8px;margin-right:8px}
.workspace-theme{margin:24px 9px;font-size:11px}.workspace-theme select{font-size:12px;min-height:34px;padding:6px 10px}
.shell .main{max-width:1368px;margin:0 auto;padding:0 clamp(16px,3.5vw,44px) 40px}
.shell .topline{height:66px;margin-bottom:28px;font:12px var(--sans);gap:12px}.shell .test-label{font:10px var(--mono);letter-spacing:0;border-radius:5px;padding:4px 8px;flex-shrink:0}
.shell h1{font-size:30px;font-weight:700;line-height:1.1;letter-spacing:-.03em}.shell h2{font-size:17px;letter-spacing:-.025em}.shell h3{font-size:14.5px;font-weight:600}.shell .eyebrow{font:500 10.5px var(--mono);letter-spacing:.12em}.shell .heading{margin-bottom:25px}
.shell button{min-height:32px;padding:6px 12px;font-size:13px;font-weight:600;border-color:var(--line-2);transition:background .15s,border-color .15s}
.shell .primary,.shell [data-production-form] .primary:hover,.login .primary{background:var(--ink);color:var(--bg);border-color:var(--ink)}
body[data-workspace-theme=stille] .shell .primary{color:var(--bg)}
.shell .primary:hover,.login .primary:hover{background:var(--ink);filter:brightness(1.08)}
.shell :is(input,select,textarea){font-family:var(--sans);border-color:var(--line-2);background:var(--bg);padding:9px 11px;border-radius:8px}
.shell input[type=checkbox]{accent-color:var(--accent);padding:0}.shell label{font-size:12px}.shell :is(button,a,input,select,textarea,summary):focus-visible,.login :is(button,input):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.shell .stats{gap:12px;margin-bottom:26px}.shell .stat{padding:18px;border-top:1px solid var(--line);border-radius:14px}.shell .stat:nth-child(2),.shell .stat:nth-child(3){border-top-color:var(--line)}.shell .stat strong{font-size:38px;font-weight:750;letter-spacing:-.05em;line-height:1.1}.shell .stat span{font-size:12px}.shell .stat .dot{background:var(--accent);border-radius:2px}.shell .stat:nth-child(2) .dot{background:#8b7cf6}.shell .stat:nth-child(3) .dot{background:#f5b544}
.shell .panel{border-radius:14px}.shell .panel-pad{padding:22px}.shell .toolbar{padding:16px 20px;gap:10px}.shell th{font:10.5px var(--mono);letter-spacing:.04em;background:var(--paper);padding:12px 20px}.shell td{padding:17px 20px}.shell .rowlink{padding:0;min-height:32px}.shell .rowlink strong{font-size:13px;font-weight:600}.shell .rowlink span{font-size:12px}
.shell .badge{font:11px var(--sans);padding:4px 8px;border-radius:5px}.shell .badge.good{background:#3ecf8e0c;color:#3ecf8e;border-color:#3ecf8e35}.shell .badge.warn{background:#f5b5440c;color:#f5b544;border-color:#f5b54435}
.shell .offer-sections a{font-size:12px;padding:6px 12px;border-radius:99px}.shell .section-note{font-size:11px}.shell .sync-alert{border-width:1px;border-color:#f5b54466}.shell .progress{height:3px}
.shell .detail-grid{align-items:start}.shell .detail-grid>aside{height:auto;align-self:start}.shell .production-line,.shell .production-product{border-color:var(--line)}
.login{max-width:460px;margin:clamp(30px,10vh,100px) auto;padding:30px;border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink)}.login .brand{padding:0;margin-bottom:28px}.login h1{font-size:28px;letter-spacing:-.03em}.login input{background:var(--bg);color:var(--ink);border:1px solid var(--line-2);border-radius:8px;min-height:44px}.login button{min-height:44px}.login .subtle{color:var(--muted)}
@media(max-width:1000px) and (min-width:701px){.shell{grid-template-columns:230px minmax(0,1fr)}.shell .stats{grid-template-columns:1fr}.shell .stat{display:flex}.shell .stat strong{font-size:30px}.shell .detail-grid>aside{grid-template-columns:1fr}}
@media(max-width:700px){.shell{display:block}.shell .sidebar{height:auto;overflow:visible;padding:16px;border-bottom:1px solid var(--line);border-right:0}.shell .brand-sub,.shell .nav-label{display:none}.shell .sidebar nav{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;margin-top:16px;gap:4px}.shell .sidebar nav button,.shell .sidebar nav button.active{flex:0 0 auto;min-height:44px;padding:9px 11px;gap:7px;font-size:12px}.shell .nav-icon{width:16px;height:16px}.workspace-theme{display:flex;align-items:center;gap:10px;max-width:none;margin:12px 0 0}.workspace-theme select{width:auto;margin:0;min-height:44px}.shell .sidebar footer{display:flex;flex-wrap:wrap;gap:12px;border:0;padding:0;margin-top:8px}.shell .sidebar footer>div{display:none}.shell .sidebar footer button{margin:0;min-height:44px;font-size:12px}.shell .main{padding:0 16px 30px}.shell .topline{height:auto;min-height:50px;margin-bottom:20px;flex-wrap:wrap;padding:10px 0}.shell .topline>span:first-child{display:none}.shell h1{font-size:26px}.shell .stats{grid-template-columns:1fr;gap:8px}.shell .stat{display:flex;padding:14px 16px}.shell .stat strong{font-size:30px}.shell .panel-pad{padding:16px}.shell .toolbar{padding:14px}.shell button{min-height:44px}.shell :is(input,select,textarea){font-size:16px}.shell .detail-grid>aside{display:block}.shell .detail-grid>aside .panel{margin-bottom:16px}.shell th,.shell td{padding:12px 14px}.login{margin:28px 16px;padding:24px;max-width:none}.login input{font-size:16px}}
@media(prefers-reduced-motion:reduce){.shell *{transition:none!important;scroll-behavior:auto!important}}
}

/* Second pass: compact workspace, customer-first cases and mobile navigation. */
@media screen {
.shell .sidebar{padding-top:28px;background:var(--side)}
.shell .brand-mark{background:var(--ink);color:var(--bg);border:0;font-weight:750;box-shadow:0 2px 8px #0002}
.shell .brand-sub{margin-bottom:38px;color:var(--muted)}
.shell .sidebar nav button{min-height:40px;color:var(--muted)}
.shell .sidebar nav button:hover{background:var(--surface);color:var(--ink)}
.shell .sidebar nav button:nth-child(4){margin-top:24px;position:relative}
.shell .sidebar nav button:nth-child(4):before{content:"";position:absolute;top:-14px;left:10px;right:10px;border-top:1px solid var(--line)}
.shell .sidebar nav button.active{background:var(--surface);border-color:var(--line-2)}
.shell .workspace-theme{margin-top:auto;padding-top:32px}
.shell .sidebar footer{margin-top:0;padding-top:20px}
.workspace-identity{display:flex;gap:10px;align-items:center;font-weight:600;margin-bottom:12px}
.workspace-avatar{width:34px;height:34px;border-radius:10px;border:1px solid var(--line-2);display:grid;place-items:center;background:var(--surface);font-size:14px}
.workspace-identity small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:2px}
.shell .topline{border-bottom:1px solid var(--line);margin-bottom:38px;color:var(--muted)}
.shell .heading{align-items:center;margin-bottom:30px}.shell .heading h1{margin:8px 0 10px;font-size:32px}.shell .heading p{font-size:13px;margin:0}
.shell .heading .primary{border-radius:9px;min-height:38px;padding:8px 16px}
.shell .stats{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px}
.shell .stat.stat-filter{display:inline-flex;align-items:center;justify-content:flex-start;gap:9px;min-height:32px;padding:5px 12px;border:1px solid var(--line-2);border-radius:99px;background:transparent;box-shadow:none;color:var(--muted);width:auto}
.shell .stat.stat-filter>span{font-size:11.5px;display:flex;align-items:center;gap:6px}
.shell .stat.stat-filter strong{font:10px var(--mono);letter-spacing:0;border-radius:4px;padding:1px 5px;background:var(--surface);color:var(--muted)}
.shell .stat.stat-filter .dot{display:none}
.shell .stat.stat-filter[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.shell .stat.stat-filter[aria-pressed=true] strong{background:var(--bg);color:var(--ink)}
.shell .case-list{background:transparent;border:0;border-radius:0;overflow:visible}
.shell .case-list .toolbar{padding:0 0 16px;background:transparent;border:0;gap:8px}
.shell .case-list .toolbar input{max-width:440px;margin-right:auto;background:var(--paper);min-height:38px;font-size:12px}
.shell .case-list .toolbar select{font-size:11px;min-height:34px;background:transparent;padding:6px 10px;max-width:210px}
.shell .case-list .table-wrap{border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.shell .case-list table{min-width:740px}.shell .case-list th{background:var(--bg);padding:12px 18px;font-size:9px;color:var(--muted);letter-spacing:.08em}
.shell .case-list td{padding:18px;font-size:12px;border-color:var(--line)}
.shell .case-row:hover{background:var(--surface)}
.shell .case-row .rowlink{display:flex;align-items:center;text-align:left;gap:12px;width:100%;padding:0;color:var(--ink)}
.shell .case-icon{display:grid;place-items:center;width:42px;height:46px;border:1px solid var(--line-2);border-radius:9px;background:var(--bg);color:var(--muted);flex-shrink:0}
.shell .case-icon svg{width:22px;height:22px;stroke-width:1.3}
.shell .case-copy{display:flex;flex-direction:column;gap:5px}.shell .case-copy strong{font-size:13px;font-weight:600;letter-spacing:-.01em}
.shell .case-copy .case-meta{font:9px var(--mono);color:var(--muted);display:flex;gap:7px;align-items:center}.case-meta i{font-style:normal;opacity:.5}
.shell .case-arrow{margin-left:auto;color:var(--muted);font-size:14px;opacity:0}.shell .rowlink:hover .case-arrow,.shell .rowlink:focus-visible .case-arrow{opacity:1}
.shell .case-list .progress{margin-top:8px;background:var(--line);max-width:140px}.shell .case-list .progress i{background:var(--accent)}
.shell .case-list .badge{font-size:10px;font-weight:500;padding:5px 8px;border-radius:6px}
.shell .overview-filter-summary{border:0;background:transparent;padding:12px 0;color:var(--muted);font:10px var(--mono)}
.shell .section-note{opacity:.8;font-size:10px;line-height:1.7}
.shell .shop-import{display:grid;grid-template-columns:1fr auto;gap:4px 24px;padding:16px 18px;margin-bottom:24px;background:transparent;border:1px solid var(--line);border-radius:10px}
.shell .shop-import h2{font-size:12px;margin:0}.shell .shop-import p{font-size:11px;margin:0;grid-column:1}.shell .shop-import button{grid-column:2;grid-row:1/4;align-self:center;font-size:11px}
@media(max-width:1000px) and (min-width:701px){.shell .case-list .toolbar{flex-wrap:wrap}.shell .case-list .toolbar input{max-width:none;width:100%;flex-basis:100%}}
@media(max-width:700px){
.shell .sidebar{padding:14px 18px;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;position:static}
.shell .brand{font-size:16px;padding:0}.shell .brand-mark{width:26px;height:26px}
.shell .workspace-theme{margin:0;padding:0;font-size:0;gap:0}.shell .workspace-theme select{min-height:32px;font-size:11px;max-width:112px;padding:5px 8px}
.shell .sidebar footer{grid-column:1/-1;justify-content:flex-end;padding:0;margin:0;gap:14px}.shell .sidebar footer button{min-height:28px;font-size:10px;padding:2px 0}.shell .sidebar footer .workspace-identity{display:none}
.shell .sidebar nav{position:fixed;bottom:0;left:0;right:0;z-index:80;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:var(--side);border-top:1px solid var(--line-2);overflow:visible;box-shadow:0 -8px 24px #0002}
.shell .sidebar nav button,.shell .sidebar nav button.active{flex-direction:column;justify-content:center;gap:4px;min-height:48px;padding:5px 2px;font-size:10px;border-radius:8px;margin:0}.shell .sidebar nav button:nth-child(4):before{display:none}.shell .sidebar nav .nav-icon{width:19px;height:19px}
.shell .main{padding:0 18px calc(100px + env(safe-area-inset-bottom))}.shell .topline{min-height:44px;margin-bottom:24px;padding:8px 0}.shell .test-label{font-size:8px}
.shell .heading{gap:14px;margin-bottom:24px}.shell .heading h1{font-size:28px}.shell .heading p{font-size:12px}.shell .heading .primary{min-height:40px;font-size:12px;padding:8px 12px}
.shell .stats{gap:6px;margin-bottom:18px}.shell .stat.stat-filter{min-height:36px;padding:6px 10px}.shell .stat.stat-filter>span{font-size:10px}
.shell .case-list .toolbar{display:grid;grid-template-columns:1fr 1fr;gap:8px}.shell .case-list .toolbar input{grid-column:1/-1;max-width:none;width:100%;font-size:16px;min-height:44px}.shell .case-list .toolbar select{max-width:none;width:100%;min-height:40px;font-size:12px}
.shell .case-list .table-wrap{overflow:visible;border:0;background:transparent}.shell .case-list table,.shell .case-list tbody{display:block;min-width:0;width:100%}.shell .case-list thead{display:none}
.shell .case-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px solid var(--line);border-radius:12px;background:var(--paper);margin-bottom:10px;padding:16px}
.shell .case-list .case-row td{display:block;padding:0;border:0;min-width:0}.shell .case-row td:first-child{grid-column:1/-1;padding-bottom:12px;border-bottom:1px solid var(--line)}
.shell .case-row td:nth-child(2):before{content:"INTERN DATO";display:block;font:8px var(--mono);letter-spacing:.08em;color:var(--muted);margin-bottom:5px}
.shell .case-row td:nth-child(3):before{content:"FREMDRIFT";display:block;font:8px var(--mono);letter-spacing:.08em;color:var(--muted);margin-bottom:5px}
.shell .case-row td:last-child{grid-column:1/-1}.shell .case-row .case-arrow{opacity:1}.shell .case-copy strong{font-size:14px}.shell .case-list .empty{display:block;padding:24px 16px}
.shell .shop-import{grid-template-columns:1fr;gap:6px;padding:14px}.shell .shop-import button{grid-column:1;grid-row:auto;justify-self:start;margin-top:6px;min-height:36px}
}
}

@media screen{.shell .stat.stat-filter>span{color:inherit}.shell .case-copy strong{color:var(--ink)}}

@media screen and (max-width:700px){.shell .sidebar nav button:nth-child(4){margin-top:0}}

/* Production documents and shared print state beside the order-line status. */
.owner-production-status{display:flex;flex-direction:column;align-items:flex-start;gap:6px;flex-shrink:0}.owner-production-status>.actions{gap:8px}.owner-production-status [data-owner-print]{display:block}.owner-production-status .badge{margin:0}
@media(max-width:700px){.shell .line>summary:has(.owner-production-status){display:grid;grid-template-columns:60px 18px minmax(0,1fr) 12px;align-items:start}.shell .line>summary:has(.owner-production-status)>.product-picture{grid-column:1;grid-row:1 / 3;max-width:60px}.shell .line>summary:has(.owner-production-status)>.line-check{grid-column:2;grid-row:1}.shell .line>summary:has(.owner-production-status)>.line-title{grid-column:3;grid-row:1}.shell .line>summary:has(.owner-production-status):after{grid-column:4;grid-row:1;margin:0}.owner-production-status{grid-column:3 / 5;grid-row:2;min-width:0;flex-shrink:1}.shell .owner-production-status>.actions{display:flex;flex-wrap:wrap;gap:6px}.shell .line summary .owner-production-status .badge{max-width:none}}

/* Missing production documents need attention in the order overview. */
.shell .case-list .badge.danger{background:#f8717114;color:#f87171;border-color:#f8717140}
body[data-workspace-theme=stille] .shell .case-list .badge.danger{color:#b42318;background:#fef3f2;border-color:#fecdca}

.sidebar footer>a.quiet{display:block;margin:8px 0;padding:7px 0;text-decoration:none;color:#3aa4ea}.sync-alert[data-test-notice=true]{border-color:#285675;background:#111c24}
