﻿:root{--nav:#142f45;--blue:#067ce4;--orange:#ff8200;--line:#e1e9f0;--muted:#64788c;--text:#16334d;--bg:#f1f6fa}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.55 'Segoe UI',Arial,sans-serif}a{color:#087bd9;text-decoration:none}a:hover{text-decoration:underline}aside{position:fixed;inset:0 auto 0 0;width:235px;background:linear-gradient(165deg,#15364f,#102638);color:#fff;z-index:10;display:flex;flex-direction:column}.brand{font-size:32px;font-weight:750;color:#fff;letter-spacing:-1.3px;padding:22px 20px 8px;line-height:1.1}.brand:hover{text-decoration:none}.brand span,.login-mark span,.report-brand span,.label-brand span{color:var(--orange)}.brand small{display:block;letter-spacing:0;font-size:11px;font-weight:400;margin-top:6px}.env{font-size:10px;letter-spacing:.6px;padding:10px 20px 20px;color:#a8c4d8;text-transform:uppercase}nav{padding:0 10px;overflow-y:auto}nav a{display:flex;align-items:center;gap:12px;color:#dce8f1;padding:10px 12px;border-radius:6px;margin:2px 0;font-size:13px}nav a span{font-size:20px;width:22px;color:#dce8f1}nav a.active{background:linear-gradient(90deg,#008be9,#0878cb);color:#fff;box-shadow:0 4px 12px #002b5044}nav a:hover{background:#ffffff16;text-decoration:none}.sidebar-bottom{margin-top:auto;padding:24px 20px;color:#7397af;font-size:10px}.workspace{margin-left:235px}header{height:76px;display:flex;justify-content:space-between;align-items:center;padding:14px 30px;background:#fff;border-bottom:1px solid var(--line);gap:20px}header form{width:60%;max-width:760px}header input{background:#f4f7fa;border:1px solid #dce6ee;padding:11px 15px;width:100%;border-radius:7px}.account{display:flex;align-items:center;gap:12px;font-size:12px}main{padding:28px 30px;max-width:1900px;margin:auto}h1{font-size:27px;letter-spacing:-.6px;margin:3px 0 22px;line-height:1.25}h2{font-size:16px;margin:0 0 18px}h3{font-size:14px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#7d90a0;font-weight:600}.panel,.kpi{background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 3px 10px #244b7010}.panel{padding:22px;margin-bottom:22px;min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-heading span{color:var(--muted);font-size:12px}.kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.kpi{padding:19px 21px;border-top:3px solid var(--blue);min-height:124px}.kpi>div{font-size:12px;font-weight:600}.kpi strong{display:block;font-size:26px;letter-spacing:-.5px;margin:7px 0 3px;overflow-wrap:anywhere}.kpi small{display:block;font-size:11px;color:var(--muted)}.kpi.green{border-top-color:#00a675}.kpi.orange{border-top-color:#ff8c13}.kpi.red{border-top-color:#f54a57}.chart-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.two-col{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px}.bar-row{display:grid;grid-template-columns:115px 1fr 65px;gap:10px;align-items:center;font-size:11px;margin:16px 0}.bar-row>b{text-align:right}.bar-track{height:10px;background:#f0f5fa;border-radius:4px;overflow:hidden}.bar{display:block;height:100%;background:#1689ed;border-radius:4px}.bar.c1{background:#00b782}.bar.c2{background:#ff931a}.bar.c3{background:#8293a6}.bar.c4{background:#e95e69}table{border-collapse:collapse;width:100%;font-size:12px}th{background:#f3f7fb;color:#49667f;font-weight:650;white-space:nowrap;text-align:left;border-bottom:1px solid var(--line);padding:12px 10px}td{padding:12px 10px;border-bottom:1px solid #edf2f6;vertical-align:top}tr:last-child td{border-bottom:0}tbody tr:hover{background:#f9fcff}.sortable th{cursor:pointer}.table-scroll{overflow-x:auto}.badge{display:inline-block;background:#e6f2ff;color:#126bb1;padding:3px 8px;border-radius:4px;font-size:11px;white-space:nowrap}.s-Ferdig,.s-Godkjent,.s-KlarForRetur,.s-Utlevert,.s-Avsluttet,.s-Betalt{background:#def8eb;color:#087b4e}.s-Kondemnert,.s-Forfalt{background:#ffebeb;color:#cc3e46}.s-VenterPaaDeler,.s-KlarForFakturering{background:#fff2d8;color:#ab6d00}.s-Sendt{background:#eceafa;color:#6951a5}.toolbar,.actions,.filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.toolbar{margin-bottom:20px}.toolbar>form{display:flex;gap:8px;flex:1}.filters{align-items:end}.filters label{min-width:150px;flex:1}.filters button{margin-bottom:0}.actions{margin-top:20px}button,.button{display:inline-block;border:1px solid transparent;background:var(--blue);color:#fff;padding:10px 16px;border-radius:6px;cursor:pointer;font:600 12px 'Segoe UI',sans-serif;line-height:1.4;text-align:center}button:hover,.button:hover{background:#0768bd;text-decoration:none}.secondary{color:#1679c7;background:#edf6ff;border-color:#cfe4f7}.danger{background:#d64c54}.danger-link{color:#bd4752}.link{padding:0;background:none;border:0;color:#087bd9;font-weight:400}.link:hover{background:none;text-decoration:underline}.inline{display:inline-block}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 25px}.form-grid .wide{grid-column:1/-1}label{display:block;font-size:12px;font-weight:600;margin-bottom:12px}input,select,textarea{display:block;width:100%;font:14px 'Segoe UI',sans-serif;color:var(--text);background:#fff;border:1px solid #cfdde8;border-radius:5px;padding:10px 11px;margin-top:6px;max-width:100%}textarea{resize:vertical;white-space:pre-wrap}input:focus,select:focus,textarea:focus{outline:2px solid #82bcf3;outline-offset:1px}input[type=checkbox]{width:17px;height:17px;display:inline-block}td input[type=number]{min-width:85px}input:disabled,select:disabled{background:#f4f7fa;color:#52697d}.editor{max-width:1100px}.project-banner{display:flex;align-items:center;justify-content:space-between;background:#fff;padding:20px 24px;border:1px solid var(--line);border-radius:8px;margin-bottom:18px}.project-banner strong{font-size:19px}.project-banner p{font-size:12px;margin-bottom:0}.tabs{display:flex;border-bottom:1px solid #d8e4ed;margin-bottom:24px;overflow-x:auto;gap:8px}.tabs a{padding:12px 17px;white-space:nowrap;color:#58748a}.tabs a.selected{border-bottom:3px solid var(--blue);color:var(--blue);font-weight:650}dl{display:grid;grid-template-columns:170px 1fr;gap:10px 15px;margin:0;font-size:12px}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.followups,.activity{list-style:none;margin:0;padding:0}.followups li,.activity li{padding:12px 0;border-bottom:1px solid #edf1f5}.followups li span,.activity small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.activity strong{font-size:12px}.alert{background:#fff0ed;border:1px solid #ffd4cd;color:#974438;padding:18px;border-radius:8px;margin-bottom:20px}.alert.info{background:#eaf5ff;color:#315b7f;border-color:#cfe5fb}.empty{padding:30px 10px;text-align:center;color:var(--muted)}.gallery{display:flex;gap:12px;flex-wrap:wrap}.gallery figure{width:160px;margin:0 0 15px}.gallery img{width:160px;height:120px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}figcaption{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.upload{background:#f7fafc;border:1px dashed #bfd2e2;padding:14px;border-radius:6px;margin-top:15px}.login{max-width:440px;margin:36px auto;padding:32px}.login form label{margin:20px 0}.login button{width:100%;padding:13px}.login-mark,.report-brand{font-size:31px;font-weight:750}.login p,.muted{color:var(--muted);font-size:12px}.report-preview{max-width:1000px;margin:auto;padding:40px}.report-preview p{white-space:pre-wrap}.assessment{border-top:1px solid var(--line);padding:15px 0}.assessment p{white-space:pre-wrap}.totals{text-align:right;font-size:16px;font-weight:650;padding:22px 0}.labels{display:flex;flex-wrap:wrap;gap:18px}.label{width:100mm;min-height:70mm;background:#fff;border:1px solid #184160;border-radius:8px;padding:4mm;break-inside:avoid}.label-brand{font-size:25px;font-weight:750;line-height:1.1}.label-brand small{display:block;font-size:9px;font-weight:400;color:#456}.label-data{display:grid;grid-template-columns:1fr 28mm;gap:4mm;margin-top:4mm;font-size:8px;line-height:1.75;overflow-wrap:anywhere}.label-data b{font-weight:700}.qr svg{width:28mm;height:28mm}.qr small{font-size:8px;display:block;text-align:center}.module-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.module-cards a{color:var(--text)}details{border-bottom:1px solid var(--line);padding:12px 0}summary{cursor:pointer}pre{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f9fc;padding:12px}.pagination{padding:16px 0}.pagination a{padding:5px 10px;border:1px solid var(--line);border-radius:4px}.row-actions{white-space:nowrap}.summary{color:#58748a}footer{padding:10px 30px 24px;font-size:10px;color:#8498a8}@media(min-width:1550px){.kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:1100px){aside{width:200px}.workspace{margin-left:200px}main{padding:22px 18px}.chart-grid{grid-template-columns:1fr 1fr}.two-col{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){aside{position:static;width:auto}.brand{padding:12px 18px}.env,.sidebar-bottom{display:none}nav{display:flex;overflow-x:auto;padding:8px}nav a{white-space:nowrap;padding:6px 10px}nav a span{display:none}.workspace{margin:0}header{height:auto;padding:12px;gap:10px;flex-wrap:wrap}header form{width:100%;max-width:none}.chart-grid,.module-cards{grid-template-columns:1fr}.kpi-grid{grid-template-columns:1fr 1fr;gap:10px}.kpi{padding:14px}.kpi strong{font-size:21px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.panel{padding:16px}.project-banner{display:block}dl{grid-template-columns:120px 1fr}}@media print{@page{margin:5mm}aside,header,footer,.page-heading,.no-print{display:none!important}.workspace{margin:0}body{background:#fff}main{padding:0}.labels{display:block}.label{margin:0;page-break-after:always;border:0}.label:last-child{page-break-after:auto}.report-preview{border:0;box-shadow:none;padding:0}}

.chart-grid{align-items:start}.chart-grid>.panel{min-height:230px}.activity li{padding:8px 0}.donut-layout{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.donut{width:135px;height:135px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.donut>div{width:95px;height:95px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column}.donut strong{font-size:25px}.donut small{font-size:10px;color:#64788c}.legend{flex:1;min-width:100px}.legend p{display:flex;align-items:center;gap:6px;font-size:10px;margin:10px 0}.legend i{width:8px;height:8px;border-radius:50%;flex-shrink:0}.legend b{margin-left:auto}progress{width:60px;height:7px;accent-color:#00b782}td{min-width:55px}.label-data{font-size:9px}@media(min-width:1300px){.kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.kpi{padding:16px}.kpi strong{font-size:23px}}

@media print{@page labels{size:100mm 70mm;margin:0}.labels{margin:0;padding:0}.label{page:labels;width:100mm;height:70mm;min-height:0;margin:0;break-after:page;break-inside:avoid}.label:last-child{break-after:auto}}

.device-status-summary{display:flex;flex-direction:column;gap:4px;padding:8px 14px;border:1px solid var(--line);border-radius:6px;background:#fff}.device-status-summary>span:first-child{font-size:12px;color:var(--muted)}.device-status-summary strong{font-size:16px;color:var(--text)}
.label-status{display:flex;flex-wrap:wrap;gap:1mm;font-size:11px;line-height:1.3;border:1px solid #142f45;padding:1mm 1.5mm;margin-top:2mm;color:#000;background:#fff;overflow-wrap:anywhere}.label-status strong{font-weight:800}.label-status+.label-data{margin-top:2mm}

.report-device-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:8px 0;break-inside:avoid}.report-device-row p{flex:1;min-width:0;overflow-wrap:anywhere}.report-device-qr{flex:0 0 64px;display:block}.report-device-qr svg{width:64px;height:64px;display:block}

.dashboard-status{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.dashboard-status>.panel{display:flex;flex-direction:column}.dashboard-status .donut-layout{flex:1}@media(max-width:760px){.dashboard-status{grid-template-columns:1fr}}

.project-table-scroll{max-height:52vh;overflow:auto;direction:rtl;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#8ba7be #edf3f8}
.project-table-scroll>table{direction:ltr}.project-table-scroll th{position:sticky;top:0;z-index:2;background:#f3f7fb;box-shadow:0 1px 0 var(--line)}
.project-table-scroll:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.dashboard-project-scroll{max-height:32vh;direction:ltr}
@media print{.project-table-scroll{max-height:none;overflow:visible;direction:ltr}.project-table-scroll th{position:static}}

@media screen and (min-width:761px){
 :is(.projects-list-page,.customers-list-page){height:100dvh;overflow:hidden}
 :is(.projects-list-page,.customers-list-page) .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}
 :is(.projects-list-page,.customers-list-page) header,:is(.projects-list-page,.customers-list-page) footer{flex-shrink:0}
 :is(.projects-list-page,.customers-list-page) main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column}
 :is(.projects-list-page,.customers-list-page) main>.page-heading,:is(.projects-list-page,.customers-list-page) main>.toolbar,:is(.projects-list-page,.customers-list-page) main>.filters,:is(.projects-list-page,.customers-list-page) main>.alert{flex-shrink:0}
 :is(.projects-list-page,.customers-list-page) main>section.panel{flex:1;min-height:0;margin-bottom:0;display:flex;flex-direction:column}
 :is(.projects-list-page,.customers-list-page) main>section.panel>.panel-heading,:is(.projects-list-page,.customers-list-page) main>section.panel>.pagination{flex-shrink:0}
 :is(.projects-list-page,.customers-list-page) .project-table-scroll{flex:1;min-height:0;max-height:none;direction:ltr}
 :is(.projects-list-page,.customers-list-page) .pagination{padding:10px 0 0}
 :is(.projects-list-page,.customers-list-page) footer{padding-top:8px;padding-bottom:12px}
}

:is(.projects-list-page,.customers-list-page) .project-table-scroll>table{table-layout:fixed;width:100%}:is(.projects-list-page,.customers-list-page) .project-table-scroll th{white-space:normal;overflow-wrap:anywhere}:is(.projects-list-page,.customers-list-page) .project-table-scroll td{min-width:0;overflow-wrap:anywhere}:is(.projects-list-page,.customers-list-page) .project-table-scroll .row-actions{white-space:normal}

@media screen and (min-width:761px){
 .project-overview-page{height:100dvh;overflow:hidden}
 .project-overview-page .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}
 .project-overview-page header,.project-overview-page footer{flex-shrink:0}
 .project-overview-page main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding:16px 24px}
 .project-overview-page main>:not(.two-col){flex-shrink:0}
 .project-overview-page h1{margin-bottom:12px}
 .project-overview-page .toolbar{margin-bottom:10px}
 .project-overview-page .project-banner{padding:12px 18px;margin-bottom:10px}
 .project-overview-page .project-banner .actions{margin-top:0}
 .project-overview-page .tabs{margin-bottom:12px}
 .project-overview-page .tabs a{padding:10px 14px}
 .project-overview-page main>.kpi-grid{margin-bottom:12px}
 .project-overview-page .kpi{min-height:88px;padding:10px 14px}
 .project-overview-page .kpi strong{font-size:22px;margin:3px 0}
 .project-overview-page main>.two-col{flex:1;min-height:0;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 .project-overview-page .two-col>.panel{min-height:0;margin-bottom:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;direction:ltr;scrollbar-color:#8ba7be #edf3f8}
 .project-overview-page .two-col>.panel>*{direction:ltr}
 .project-overview-page footer{padding-top:6px;padding-bottom:10px}
}

@media screen and (min-width:761px){
 .project-devices-page{height:100dvh;overflow:hidden}
 .project-devices-page .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}
 .project-devices-page header,.project-devices-page footer{flex-shrink:0}
 .project-devices-page main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding:16px 24px}
 .project-devices-page main>:not(.project-devices-content){flex-shrink:0}
 .project-devices-page h1{margin-bottom:12px}
 .project-devices-page .toolbar{margin-bottom:10px;flex-shrink:0}
 .project-devices-page .project-banner{padding:12px 18px;margin-bottom:10px}
 .project-devices-page .project-banner .actions{margin-top:0}
 .project-devices-page .tabs{margin-bottom:12px}
 .project-devices-page .tabs a{padding:10px 14px}
 .project-devices-page .project-devices-content{flex:1;min-height:0;display:flex;flex-direction:column;margin-bottom:0;padding:16px}
 .project-devices-content>form{flex:1;min-height:0;display:flex;flex-direction:column}
 .project-devices-content .device-table-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;direction:ltr;scrollbar-gutter:stable;scrollbar-color:#8ba7be #edf3f8}
 .project-devices-content .device-table-scroll>table{direction:ltr;width:100%;table-layout:fixed}
 .project-devices-content .device-table-scroll th{position:sticky;top:0;z-index:2;background:#f3f7fb;box-shadow:0 1px 0 var(--line);white-space:normal}
 .project-devices-content .device-table-scroll td{min-width:0;overflow-wrap:anywhere}
 .project-devices-content .device-table-scroll:has(input[name=DeviceIds]) th:first-child{width:44px}
 .project-devices-content .device-table-scroll .row-actions{white-space:normal}
 .project-devices-content .device-table-scroll:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
 .project-devices-page footer{padding-top:6px;padding-bottom:10px}
}

.device-status-editor select{font-size:11px;padding:7px 4px;margin:0 0 5px}.device-status-editor button{font-size:11px;padding:5px 10px}.device-status-editor small{display:block;color:#087b4e;white-space:normal;overflow-wrap:anywhere}.device-status-editor .status-error{color:#bd4752}.device-status-form{display:none!important}

.tabs{border-bottom:0;gap:8px;padding:2px 2px 5px}
.tabs a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:#edf6ff;border:1px solid #cfe4f7;border-radius:6px;color:#1679c7;font-size:12px;font-weight:600;line-height:1.4;padding:10px 14px;min-height:38px;text-decoration:none}
.tabs a:hover{background:#dceeff;border-color:#8fc3ef;text-decoration:none}
.tabs a.selected{background:var(--blue);border:1px solid var(--blue);color:#fff;font-weight:650}
.tabs a.selected:hover{background:#0768bd;border-color:#0768bd}
.tabs a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

@media screen and (min-width:761px){
 .project-editor-page{height:100dvh;overflow:hidden}
 .project-editor-page .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}
 .project-editor-page header,.project-editor-page footer,.project-editor-page .page-heading{flex-shrink:0}
 .project-editor-page main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding:16px 24px}
 .project-editor-page main>form.editor{flex:1;min-height:0;display:flex;flex-direction:column;margin-bottom:0;width:100%}
 .project-editor-page .project-form-scroll{flex:1;min-height:0;overflow:auto;direction:ltr;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-color:#8ba7be #edf3f8;padding-right:8px}
 .project-editor-page .project-form-scroll>.form-grid{direction:ltr}
 .project-editor-page .editor>.actions{flex-shrink:0;border-top:1px solid var(--line);padding-top:14px;margin-top:14px}
 .project-editor-page footer{padding-top:6px;padding-bottom:10px}
}

.work-delete{padding:5px 10px;font-size:11px;margin-left:5px}

@media screen and (min-width:761px){
 .device-card-page{height:100dvh;overflow:hidden}
 .device-card-page .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}
 .device-card-page header,.device-card-page footer,.device-card-page .page-heading,.device-card-page main>.toolbar,.device-card-page main>.alert{flex-shrink:0}
 .device-card-page main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding:16px 24px}
 .device-card-page h1{margin-bottom:14px}
 .device-card-page main>.toolbar{margin-bottom:14px}
 .device-card-page .device-card-scroll{flex:1;min-height:0;overflow:auto;direction:ltr;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-color:#8ba7be #edf3f8;padding-right:8px;scroll-padding-top:8px}
 .device-card-page .device-card-scroll>.panel:last-child{margin-bottom:0}
 .device-card-page .device-card-scroll:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
 .device-card-page footer{padding-top:6px;padding-bottom:10px}
}

/* Compact statistics layout; cards share rows and activity scrolls independently on the right. */
.statistics-view{display:grid;gap:16px}
.statistics-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.statistics-period{display:flex;align-items:end;gap:10px;margin:0}
.statistics-period label{margin:0;min-width:165px}.statistics-period input{margin-top:4px}.statistics-period button{min-height:40px}
.statistics-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.statistics-view .kpi{min-height:100px;padding:14px 16px}.statistics-view .kpi strong{font-size:22px;margin:5px 0;line-height:1.3}
.statistics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.statistics-grid>.panel{margin:0;padding:20px;min-height:0}.statistics-grid h2{margin:0 0 14px}
.statistics-view .bar-row{grid-template-columns:minmax(115px,145px) minmax(30px,1fr) 75px;margin:14px 0;gap:12px;font-size:12px}
.statistics-view .statistics-money-bars .bar-row{grid-template-columns:minmax(115px,145px) minmax(30px,1fr) 125px}
.statistics-view .bar-row>b{font-variant-numeric:tabular-nums;white-space:nowrap}.statistics-view .bar-row>span{overflow-wrap:anywhere}
.statistics-activity{display:flex;flex-direction:column}.statistics-activity-scroll{max-height:220px;overflow-y:auto;direction:ltr;scrollbar-gutter:stable;overscroll-behavior:contain;padding-right:8px;scrollbar-color:#8aa8bd #edf4f9;scrollbar-width:thin}
.statistics-activity-scroll:focus-visible{outline:2px solid #82bcf3;outline-offset:4px}.statistics-view .activity li{padding:10px 0}.statistics-view .activity li:first-child{padding-top:0}.statistics-view .activity li:last-child{border:0}
.statistics-followup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.statistics-followup-grid .kpi{min-height:86px;padding:12px 16px}
@media(max-width:1150px){.statistics-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.statistics-view .bar-row,.statistics-view .statistics-money-bars .bar-row{grid-template-columns:1fr auto;gap:6px 12px}.statistics-view .bar-row>.bar-track{grid-column:1/-1;grid-row:2}.statistics-view .bar-row>b{grid-column:2;grid-row:1}}
@media(max-width:760px){.statistics-toolbar{align-items:stretch}.statistics-period{flex:1;justify-content:flex-end}.statistics-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics-grid,.statistics-followup-grid{grid-template-columns:1fr}.statistics-grid>.panel{padding:16px}.statistics-view .kpi strong{font-size:21px}}
@media(max-width:400px){.statistics-period{justify-content:flex-start;flex-wrap:wrap}.statistics-view .kpi{padding:12px}.statistics-view .kpi strong{font-size:18px}}

.device-table-scroll .device-number-column,.device-table-scroll .device-select-column{width:44px;min-width:44px;text-align:center}.device-table-scroll td.device-number-column{font-variant-numeric:tabular-nums;color:#64788c}.sortable th[data-no-sort]{cursor:default}

/* Keep project ownership visible while working in every project tab. */
.project-banner-with-ownership{gap:18px;flex-wrap:wrap}
.project-banner-with-ownership .project-summary{flex:1 1 230px;min-width:0;overflow-wrap:anywhere}
.project-ownership{flex:2 1 420px;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.project-owner-card{background:#f5f9fd;border:1px solid #dce9f4;border-left:3px solid #1689ed;border-radius:7px;padding:9px 12px;min-width:0;overflow-wrap:anywhere}
.project-owner-label{display:block;color:#64788c;font-size:10px;font-weight:650;margin-bottom:2px}
.project-owner-card strong{display:block;font-size:13px;line-height:1.4}
.project-banner .project-owner-card p{font-size:11px;line-height:1.45;margin:3px 0 0}
.project-banner-with-ownership>.actions{flex:0 1 350px;justify-content:flex-end;margin-top:0;gap:8px}
@media(max-width:1200px) and (min-width:761px){.project-banner-with-ownership{gap:10px}.project-banner-with-ownership .project-summary{flex-basis:200px}.project-ownership{flex-basis:380px}.project-banner-with-ownership>.actions{flex:1 1 100%}}
@media(max-width:760px){.project-banner-with-ownership{display:flex;flex-direction:column;align-items:stretch}.project-banner-with-ownership .project-summary,.project-ownership,.project-banner-with-ownership>.actions{flex:none;width:100%}.project-banner-with-ownership>.actions{justify-content:flex-start}}
@media(max-width:480px){.project-ownership{grid-template-columns:1fr}}

@media screen and (min-width:761px){
 .project-banner-with-ownership{display:grid;grid-template-columns:minmax(170px,.9fr) minmax(0,1.8fr) minmax(160px,.9fr);gap:14px}
 .project-banner-with-ownership>.actions{flex-direction:column;align-items:stretch;justify-content:center}
 .project-banner-with-ownership>.actions form{width:100%}.project-banner-with-ownership>.actions button{width:100%}
 .project-owner-card{max-height:142px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#8aa8bd #edf4f9}
}
@media screen and (min-width:761px) and (max-height:800px){
 .project-devices-page header{height:64px;padding-top:8px;padding-bottom:8px}
 .project-devices-page footer{padding-top:6px;padding-bottom:10px}
 .project-devices-page .project-banner-with-ownership{padding:8px 12px;gap:10px}
 .project-devices-page .project-owner-card{padding:6px 8px;max-height:110px}
 .project-devices-page .project-banner-with-ownership .project-summary>strong{font-size:16px}
}

/* Settings navigation cards, grouped and interactive without layout jumps. */
.settings-hub{display:grid;gap:24px}
.settings-group>h2{font-size:12px;font-weight:650;letter-spacing:.4px;color:#64788c;margin:0 0 10px}
.settings-admin-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.settings-admin-grid>.settings-card{grid-column:span 2}.settings-admin-grid>.settings-card:nth-child(n+4){grid-column:span 3}
.settings-backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.settings-card.panel{display:flex;align-items:center;gap:16px;min-width:0;min-height:106px;margin:0;padding:20px;color:var(--text);border:1px solid #dce6ef;text-decoration:none;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.settings-card-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:11px;background:#eaf4fe;color:#117fd4;transition:background-color .18s ease,color .18s ease}
.settings-card-icon svg{display:block;width:25px;height:25px}
.settings-card-copy{min-width:0;flex:1}.settings-card-copy h3{font-size:15px;margin:0 0 5px;line-height:1.35}.settings-card-copy>span{display:block;font-size:12px;color:#64788c;line-height:1.5;overflow-wrap:anywhere}
.settings-card-arrow{flex-shrink:0;font-size:22px;color:#8ca6ba;transition:color .18s ease,transform .18s ease}
.settings-card:hover,.settings-card:focus-visible{background:#f3f9ff;border-color:#70b5ee;box-shadow:0 8px 20px #176ca71c;transform:translateY(-3px);text-decoration:none}
.settings-card:hover .settings-card-icon,.settings-card:focus-visible .settings-card-icon{background:#087de0;color:#fff}
.settings-card:hover .settings-card-arrow,.settings-card:focus-visible .settings-card-arrow{color:#087de0;transform:translateX(3px)}
.settings-card:focus-visible{outline:2px solid #1689ed;outline-offset:3px}.settings-card:active{transform:translateY(-1px)}
@media(max-width:1100px){.settings-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-admin-grid>.settings-card,.settings-admin-grid>.settings-card:nth-child(n+4){grid-column:auto}.settings-admin-grid>.settings-card:last-child{grid-column:1/-1}}
@media(max-width:600px){.settings-admin-grid,.settings-backup-grid{grid-template-columns:1fr}.settings-admin-grid>.settings-card:last-child{grid-column:auto}.settings-card.panel{min-height:96px;padding:16px;gap:12px}.settings-hub{gap:20px}}
@media(prefers-reduced-motion:reduce){.settings-card.panel,.settings-card-icon,.settings-card-arrow{transition:none}.settings-card:hover,.settings-card:focus-visible,.settings-card:active,.settings-card:hover .settings-card-arrow,.settings-card:focus-visible .settings-card-arrow{transform:none}}

/* Keep the selected device and both parties alongside new/edit work forms. */
.work-entry-layout{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(280px,1fr);gap:20px;align-items:start}
.work-entry-layout>form.editor{width:100%;max-width:none;min-width:0}
.work-entry-sidebar{position:sticky;top:20px;min-width:0;max-height:calc(100dvh - 40px);overflow-y:auto;direction:ltr;scrollbar-width:thin;scrollbar-color:#8aa8bd #edf4f9}
.work-entry-sidebar>h2{font-size:14px;margin:0 0 12px}
.work-party-device{display:grid;gap:4px;margin-bottom:16px;font-size:12px;color:#64788c;overflow-wrap:anywhere}
.work-party-device>strong{font-size:14px;color:#16334d}
.work-entry-sidebar .project-ownership{display:flex;flex-direction:column;gap:14px}
.work-entry-sidebar .project-owner-card{flex:none;max-height:none;overflow:visible;background:#fff;border-color:#dce6ef;border-left-color:#1689ed;padding:18px;box-shadow:0 3px 10px #244b7010;border-radius:9px}
.work-entry-sidebar [data-project-party=customer]{order:0}.work-entry-sidebar [data-project-party=end-customer]{order:1}
.work-entry-sidebar .project-owner-label{font-size:12px;margin-bottom:7px}
.work-entry-sidebar .project-owner-card strong{font-size:16px;line-height:1.45}
.work-entry-sidebar .project-owner-card p{font-size:12px;line-height:1.6;margin:7px 0 0;overflow-wrap:anywhere}
@media(max-width:1100px){.work-entry-layout{grid-template-columns:1fr}.work-entry-sidebar{order:-1;position:static;max-height:none;overflow:visible}.work-entry-sidebar .project-ownership{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.work-party-device{margin-bottom:12px}}
@media(max-width:600px){.work-entry-sidebar .project-ownership{grid-template-columns:1fr}.work-entry-sidebar .project-owner-card{padding:16px}.work-entry-layout{gap:16px}}

/* Work editor keeps its frame and actions still; only form content scrolls on the left. */
@media screen and (min-width:761px){
 .work-editor-page{height:100dvh;overflow:hidden}
 .work-editor-page .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}
 .work-editor-page header,.work-editor-page footer{flex-shrink:0}
 .work-editor-page main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding:16px 24px}
 .work-editor-page .page-heading{flex-shrink:0}.work-editor-page h1{margin-bottom:14px}
 .work-editor-page .work-entry-layout{flex:1;min-height:0;grid-template-columns:minmax(0,2.1fr) minmax(260px,1fr);grid-template-rows:minmax(0,1fr);gap:18px;align-items:stretch}
 .work-editor-page .work-entry-layout>form.editor{height:100%;min-height:0;display:flex;flex-direction:column;margin:0;padding:16px;overflow:hidden}
 .work-form-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;direction:rtl;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:#8aa8bd #edf4f9}
 .work-form-scroll>.form-grid{direction:ltr;padding-left:10px;gap:12px 18px}
 .work-form-scroll:focus-visible{outline:2px solid #82bcf3;outline-offset:2px}
 .work-form-scroll label{margin-bottom:0;font-size:12px}.work-form-scroll input,.work-form-scroll select,.work-form-scroll textarea{padding:8px 10px;font-size:13px;margin-top:4px}
 .work-form-scroll input[type=checkbox]{padding:0}.work-form-scroll textarea{min-height:80px;height:94px;max-height:240px}
 .work-form-scroll .alert{padding:12px 14px;margin:0}.work-form-scroll .form-grid>p{font-size:12px;margin:0;align-self:center}
 .work-editor-page .work-entry-layout>form>.actions{flex-shrink:0;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
 .work-editor-page .work-entry-sidebar{order:initial;position:static;min-height:0;max-height:100%;overflow-y:auto;padding-right:4px}
 .work-editor-page .work-entry-sidebar .project-ownership{display:flex;flex-direction:column}
}
@media screen and (min-width:761px) and (max-width:1100px){
 .work-editor-page .work-form-scroll>.form-grid{grid-template-columns:1fr}
 .work-editor-page .work-entry-sidebar .project-owner-card{padding:14px}
}
@media screen and (min-width:761px) and (max-height:800px){
 .work-editor-page header{height:64px;padding-top:8px;padding-bottom:8px}
 .work-editor-page footer{padding-top:6px;padding-bottom:10px}
 .work-editor-page main{padding-top:12px;padding-bottom:12px}
}

/* Device detail sections keep identity/actions visible and show one clear task at a time. */
.device-detail-toolbar{gap:10px}.device-primary-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-left:auto}
.device-detail-toolbar .device-status-summary{display:flex;align-items:center;gap:7px;padding:7px 10px;background:#fff;border:1px solid var(--line);border-radius:6px}
.device-detail-toolbar .device-status-summary>span{font-size:11px;color:#64788c}.device-detail-toolbar .device-status-summary strong{font-size:12px}
.device-project-context{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;margin:0 0 12px;color:#64788c}.device-project-context>span{font-size:11px}
.device-detail-nav{display:flex;gap:8px;flex-wrap:wrap;padding:0;margin:0 0 14px;overflow:visible}
.device-detail-nav a{display:inline-block;margin:0;font-size:12px;padding:9px 12px;white-space:nowrap}.device-detail-nav a:hover{background:#dceeff}.device-detail-nav a[aria-current=page]{background:#067ce4;color:#fff;border-color:#067ce4}
.device-tab-panel[hidden]{display:none!important}.device-tab-panel{min-width:0}.device-tab-panel.panel{margin-bottom:0}
.device-overview-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:18px;align-items:start}
.device-overview-grid>.panel{margin:0;padding:20px}.device-field-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.device-field-group h3{font-size:12px;color:#64788c;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.device-field-group dl{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(0,1.3fr);gap:10px 12px;font-size:12px}.device-field-group dt,.device-field-group dd{overflow-wrap:anywhere}
.device-detail-owner>h2{font-size:13px;margin:0 0 10px}.device-detail-owner .project-ownership{display:flex;flex-direction:column;gap:12px}
.device-detail-owner .project-owner-card{max-height:none;overflow:visible;padding:16px;background:#fff;box-shadow:0 3px 10px #244b7010}
.device-detail-owner .project-owner-card strong{font-size:15px}.device-detail-owner .project-owner-card p{font-size:12px;line-height:1.5;margin:6px 0 0}.device-detail-owner .project-owner-label{font-size:11px;margin-bottom:6px}
.device-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.device-history-grid p{padding:9px 0;margin:0;border-bottom:1px solid #edf2f6;font-size:12px}
.device-tab-panel td{overflow-wrap:anywhere}.device-tab-panel .table-scroll{max-width:100%;overflow:auto}.device-tab-panel .actions{margin:12px 0}.device-tab-panel .panel-heading{flex-wrap:wrap;margin-bottom:14px}.device-tab-panel .panel-heading h2{margin:0}
@media screen and (min-width:761px){.device-card-page .device-detail-nav,.device-card-page .device-project-context{flex-shrink:0}.device-card-page .device-detail-toolbar{margin-bottom:10px}.device-card-page h1{font-size:24px}.device-card-page .device-card-scroll{overflow-y:auto;overflow-x:hidden}.device-card-page .device-tab-panel>.device-overview-grid{padding-bottom:2px}}
@media(max-width:1450px){.device-field-columns{grid-template-columns:1fr}.device-overview-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}}
@media(max-width:1100px){.device-primary-actions{margin-left:0}.device-detail-nav{gap:6px}.device-detail-nav a{padding:8px 10px}.device-overview-grid{grid-template-columns:1fr}.device-detail-owner .project-ownership{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.device-field-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.device-detail-toolbar{align-items:flex-start}.device-primary-actions{width:100%}.device-detail-nav{margin-bottom:14px}.device-field-columns,.device-history-grid{grid-template-columns:1fr}.device-field-group dl{grid-template-columns:120px minmax(0,1fr)}.device-card-scroll{overflow:visible}.device-tab-panel .panel-heading{align-items:flex-start;gap:12px}}
@media(max-width:480px){.device-detail-owner .project-ownership{grid-template-columns:1fr}}
@media screen and (min-width:761px) and (max-height:800px){.device-card-page header{height:64px;padding-top:8px;padding-bottom:8px}.device-card-page main{padding-top:12px;padding-bottom:12px}.device-card-page h1{font-size:21px;margin-bottom:10px}.device-card-page .device-detail-toolbar .button,.device-card-page .device-detail-toolbar button{padding:8px 10px}.device-card-page .device-detail-nav{margin-bottom:10px}}

.device-card-page .page-heading h1{overflow-wrap:anywhere}.device-project-context a{min-width:0;overflow-wrap:anywhere}.device-detail-owner{min-width:0}

/* Party cards belong to the device frame, outside the switchable task sections. */
.device-detail-frame{display:grid;grid-template-columns:minmax(240px,310px) minmax(0,1fr);gap:18px;align-items:start;min-width:0}
.device-detail-frame .device-overview-grid{grid-template-columns:minmax(0,1fr)}
.device-persistent-owner .project-ownership{display:flex;flex-direction:column}
.device-persistent-owner [data-project-party=customer]{order:0}.device-persistent-owner [data-project-party=end-customer]{order:1}
@media screen and (min-width:761px){
 .device-card-page .device-detail-frame{flex:1;min-height:0;grid-template-rows:minmax(0,1fr);align-items:stretch}
 .device-card-page .device-persistent-owner{min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:4px;scrollbar-width:thin;scrollbar-color:#8aa8bd #edf4f9}
 .device-card-page .device-detail-frame>.device-card-scroll{height:100%;min-height:0}
}
@media screen and (min-width:761px) and (max-width:1100px){.device-detail-frame{grid-template-columns:minmax(220px,250px) minmax(0,1fr);gap:12px}.device-detail-frame .device-field-columns{grid-template-columns:1fr}.device-persistent-owner .project-owner-card{padding:14px}}
@media(max-width:760px){.device-detail-frame{grid-template-columns:minmax(0,1fr);gap:16px}.device-persistent-owner .project-ownership{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.device-persistent-owner .project-ownership{grid-template-columns:1fr}}

.device-detail-nav .device-primary-actions{margin-left:0;gap:8px}
.device-detail-nav .device-primary-actions:empty{display:none}
.device-detail-nav .device-primary-actions a,.device-detail-nav .device-primary-actions button{padding:9px 12px;font-size:12px;line-height:1.4;min-height:37px}
@media(max-width:1100px){.device-detail-nav .device-primary-actions{margin-left:0;flex-wrap:wrap;width:auto}.device-detail-nav .device-primary-actions a,.device-detail-nav .device-primary-actions button{padding:8px 10px;min-height:35px}}

.device-card-scroll #overview:not([hidden])+#work:not([hidden]){margin-top:16px}

.billing-device-summary .billing-manufacturer{display:block;font-size:11px;color:#64788c;line-height:1.5;margin-top:3px}.billing-device-summary td{overflow-wrap:anywhere}

.report-preview:has(.report-device-table){max-width:1250px}
.report-device-table{min-width:760px;table-layout:fixed;font-size:12px}.report-device-table-detailed{min-width:1020px}
.report-device-table th{white-space:normal;padding:12px 10px}.report-device-table td{vertical-align:middle;overflow-wrap:anywhere;white-space:normal;padding:12px 10px}
.report-device-table th:first-child{width:46px}.report-device-table th:last-child{width:84px}.report-device-table .report-device-qr{width:64px;margin:auto}
.report-device-entry{border-top:1px solid #dce6ef}.report-device-entry:nth-of-type(even){background:#f8fbfe}
.report-device-detail td{background:#f7fafc;font-size:11px;line-height:1.6;white-space:pre-wrap;padding-top:8px;padding-bottom:8px}
.report-device-table-wrap{max-width:100%;margin:12px 0 24px;overscroll-behavior:contain}
@media(max-width:760px){.report-preview:has(.report-device-table){padding:18px}.report-device-table{font-size:11px}}

/* Optional device estimates and saved project valuation reports. */
.estimate-heading h2{margin-bottom:6px}.estimate-heading p{margin:0;color:#587086;font-size:13px}
.form-grid .estimate-field{padding:16px;border:1px solid #cce2f6;border-radius:10px;background:#f5faff;min-width:0}.estimate-field small{font-weight:400;color:#587086}
.valuation-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.valuation-summary p{margin:0;padding:14px;border:1px solid #dbe7f1;border-radius:8px;background:#f5f9fd;font-weight:600}.valuation-table{min-width:1000px}.valuation-table td{vertical-align:top}.valuation-negative td{background:#fff1f1}.valuation-missing td{background:#fff9e9}.report-preview:has(.valuation-report){max-width:1400px}.valuation-report{min-width:0}
@media(max-width:650px){.valuation-summary{grid-template-columns:1fr}}

.valuation-conclusion{margin-top:28px;padding-top:18px;border-top:2px solid #dce8f2}.valuation-conclusion>h3{font-size:20px;color:#17384f}.valuation-conclusion h4{margin:22px 0 12px}.valuation-chart-wrap{overflow-x:auto}.valuation-chart{display:block;width:100%;min-width:680px;height:auto;font-family:Arial,sans-serif}.valuation-conclusion-text{padding:16px 18px;border-left:4px solid #1986e8;border-radius:6px;background:#edf6ff;font-weight:600;color:#17384f}

.report-preview:has(.final-project-report){max-width:1400px}.final-project-report{min-width:0}.final-project-report table{min-width:950px}.final-project-report h3{margin-top:24px}.final-comparison-bar{display:grid;grid-template-columns:230px minmax(80px,1fr) 160px;gap:16px;align-items:center;margin:14px 0}.final-comparison-bar>div{height:28px;background:#e7eff6;border-radius:5px;overflow:hidden}.final-comparison-bar i{height:100%;display:block}.final-comparison-bar b{text-align:right}.final-project-report [data-final-demo]{font-weight:600;background:#fff4df;color:#744508;border:1px solid #edd29c}
@media(max-width:650px){.final-comparison-bar{grid-template-columns:1fr 120px;gap:8px}.final-comparison-bar>span{grid-column:1/-1}}

[data-project-report-archive] .filters{min-width:0}[data-project-report-archive] .filters>label{min-width:0;max-width:100%}[data-project-report-archive] .filters select{min-width:0;width:100%;max-width:100%}

@media(max-width:650px){[data-project-report-archive] .filters>label{flex-basis:100%}}

.device-hours-cell{min-width:145px;vertical-align:middle}.device-hours-link{display:block;padding:7px 10px;border-radius:7px;background:#edf6ff;color:#14659c}.device-hours-link strong{display:block;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13px}.device-hours-link small{display:block;font-size:11px;white-space:normal;overflow-wrap:anywhere}.device-hours-link:hover,.device-hours-link:focus-visible{background:#dceeff;outline:2px solid #1986e8;outline-offset:2px;text-decoration:none}.device-hours-missing{background:#fff3f3}.device-hours-missing .device-hours-link{background:#ffe5e8;color:#af263b;border-left:3px solid #d84c58}.device-hours-missing .device-hours-link:hover,.device-hours-missing .device-hours-link:focus-visible{background:#ffd6dc;outline-color:#d84c58}.device-hours-summary{font-size:12px;color:#587086;margin:12px 0}.device-hours-summary b{color:#17384f}

.badge.s-RensTestOk{background:#def8eb;color:#087b4e}

.share-preview-form{display:grid;gap:14px;max-width:900px;margin:20px 0}.share-preview-form select{max-width:100%;min-width:0}.share-management{margin-top:20px}.public-share-qr svg{width:230px;height:230px;max-width:100%}.public-share-link{width:100%;font-size:12px}.shared-report{overflow-wrap:anywhere}.shared-table{overflow-x:auto}

/* Separate recipient report creation. */
.recipient-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0 28px}.recipient-report-card{min-width:0;border:1px solid #dce6ee;border-top:3px solid #0784e8;border-radius:10px;padding:20px;background:#f8fbfe}.recipient-report-card h3{margin-top:0}.recipient-report-card .share-preview-form{display:flex;flex-direction:column;align-items:stretch;gap:14px}.recipient-report-card .share-preview-form select{width:100%;min-width:0;max-width:100%}.recipient-report-card button{align-self:flex-start}.recipient-report-card p{min-height:5em}@media(max-width:1100px){.recipient-report-grid{grid-template-columns:1fr}.recipient-report-card p{min-height:0}}

.recipient-report-card{display:flex;flex-direction:column}.recipient-report-card .share-preview-form{margin-top:auto;margin-bottom:0}.recipient-report-card>p{margin-bottom:22px}

.report-recipient-navigation{margin:20px 0}.report-recipient-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}.report-recipient-card{display:flex;flex-direction:column;gap:10px;padding:18px;border:1px solid #cfe1ef;border-radius:9px;background:#f7fbff;color:#17384f;transition:background .15s,border-color .15s,box-shadow .15s;min-width:0}.report-recipient-card strong{font-size:15px}.report-recipient-card span{font-size:12px}.report-recipient-card small{color:#1676bc;margin-top:auto}.report-recipient-card:hover,.report-recipient-card:focus-visible{background:#eaf5ff;border-color:#1687e5;box-shadow:0 3px 10px #1c72af20;text-decoration:none;outline:2px solid #1687e5;outline-offset:2px}.report-recipient-card.selected{background:#e7f3ff;border:2px solid #0784e8;padding:17px}.report-recipient-card.selected strong{color:#0873bc}@media(max-width:760px){.report-recipient-cards{grid-template-columns:1fr}}

.device-status-editor label{font-size:10px;color:#587086;margin:3px 0 0}.device-status-editor select{margin-top:3px}.device-status-editor select+label{margin-top:9px}.device-status-editor button{margin-top:8px}.device-dual-status{display:flex;align-items:flex-start;flex-direction:column;gap:4px}.device-dual-status small{color:#64788c;font-size:10px}.badge.s-KlarForRetur{background:#def8eb;color:#087b4e}

/* Keep both status controls and their save action on one compact row. */
.device-status-editor{display:grid;grid-template-columns:145px 145px auto;grid-template-rows:auto auto auto;gap:3px 8px;align-items:center;width:max-content;max-width:none}
.device-status-editor label:nth-of-type(1){grid-column:1;grid-row:1}.device-status-editor label:nth-of-type(2){grid-column:2;grid-row:1}
.device-status-editor select:nth-of-type(1){grid-column:1;grid-row:2}.device-status-editor select:nth-of-type(2){grid-column:2;grid-row:2}
.device-status-editor label,.device-status-editor select+label{margin:0}.device-status-editor select{width:145px;margin:0;height:34px}.device-status-editor button{grid-column:3;grid-row:2;margin:0;height:34px}.device-status-editor small{grid-column:1/-1;grid-row:3;line-height:1.2}.device-status-editor small:empty{display:none}

.device-table-scroll>table:has(.device-status-editor){min-width:1450px}.device-table-scroll>table:has(.device-status-editor) th.device-status-column{width:380px}

.badge.s-AnbefaltUtAvDrift{background:#ffebeb;color:#af263b}

@media screen and (min-width:761px){
 .device-editor-page{height:100dvh;overflow:hidden}
 .device-editor-page .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}
 .device-editor-page header,.device-editor-page footer,.device-editor-page .page-heading{flex-shrink:0}
 .device-editor-page main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding:16px 24px}
 .device-editor-page main>form.editor{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;margin-bottom:0}
 .device-editor-page .device-form-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;direction:ltr;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-color:#8ba7be #edf3f8;padding-right:12px}
 .device-editor-page .editor>.actions{flex-shrink:0;border-top:1px solid var(--line);padding-top:12px;margin-top:12px;background:#fff}
 .device-editor-page footer{padding-top:6px;padding-bottom:10px}
 .device-form-scroll:focus-visible{outline:2px solid #1687e5;outline-offset:3px;border-radius:4px}
}
@media screen and (max-width:760px){.device-editor-page .editor>.actions{position:sticky;bottom:0;background:white;padding:12px 0;z-index:2;border-top:1px solid var(--line)}}

.company-brand,.report-brand,.shared-brand,.label-brand{display:flex;align-items:center;gap:14px;min-width:0}.company-brand-copy{min-width:0;overflow-wrap:anywhere}.company-brand-copy strong{font-weight:750;line-height:1.15}.company-brand-copy small{display:block;font-size:11px;font-weight:400;letter-spacing:0}.company-brand-copy span{color:var(--orange,#ff8200)}.company-logo{max-width:150px;max-height:64px;object-fit:contain}.brand .company-brand{display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-size:27px;letter-spacing:-.7px}.brand .company-logo{max-width:180px;max-height:64px}.brand .company-brand small{font-size:10px;line-height:1.4}.report-brand{margin-bottom:16px}.label-brand .company-logo{max-width:65px;max-height:34px}.label-brand .company-brand-copy strong{font-size:20px}.label-brand .company-brand-copy small{font-size:8px}.company-profile-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.company-profile-layout>.panel{min-width:0}.company-profile-preview [data-company-preview]{padding:24px;border:1px solid var(--line);background:#f7fbff;border-radius:8px}.company-profile-preview .company-brand{font-size:25px;flex-wrap:wrap}.settings-admin-grid>.settings-card:last-child{grid-column:span 2}@media(max-width:1100px){.settings-admin-grid>.settings-card:last-child{grid-column:auto}}@media(max-width:760px){.company-profile-layout{grid-template-columns:1fr}.company-profile-preview [data-company-preview]{padding:16px}}

.settings-admin-grid>.settings-card:nth-child(n){grid-column:span 2}.login-mark{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.login-mark .company-logo{max-width:150px;max-height:60px}.login-mark small{display:block;font-size:11px;font-weight:400}.login-mark strong{overflow-wrap:anywhere}.company-brand-copy small{white-space:normal;overflow-wrap:anywhere}@media(max-width:1100px){.settings-admin-grid>.settings-card:nth-child(n){grid-column:auto}}

.license-banner{padding:12px 16px;border:1px solid #efcf83;background:#fff6df;color:#765109;border-radius:7px;margin-bottom:16px;flex-shrink:0;font-size:12px}.license-invalid{background:#ffebeb;border-color:#eeb9bf;color:#a5283b}

/* Keep follow-up navigation and heading stationary while the list scrolls. */
.followups-panel .followups{overflow-wrap:anywhere}
.followups-panel .followups:focus-visible{outline:2px solid #1687e5;outline-offset:3px;border-radius:4px}
@media screen and (min-width:761px){
 .followups-page{height:100dvh;overflow:hidden}
 .followups-page .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}
 .followups-page header,.followups-page footer,.followups-page .page-heading{flex-shrink:0}
 .followups-page main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding:16px 24px}
 .followups-page .followups-panel{flex:1;min-height:0;display:flex;flex-direction:column;margin-bottom:0}
 .followups-page .followups-panel>h2{flex-shrink:0}
 .followups-page .followups{flex:1;min-height:0;overflow-y:scroll;overflow-x:hidden;direction:ltr;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-color:#8ba7be #edf3f8;padding-right:12px;margin-bottom:0}
 .followups-page footer{padding-top:6px;padding-bottom:10px}
}

/* Intake rows scroll independently; project context and actions stay visible. */
.intake-table-scroll{overflow:auto;direction:ltr;scrollbar-gutter:stable;scrollbar-color:#8ba7be #edf3f8;overscroll-behavior:contain}
.intake-table-scroll table{min-width:1050px}
.intake-table-scroll th{position:sticky;top:0;z-index:1;background:#f3f7fb}
.intake-table-scroll:focus-visible{outline:2px solid #1687e5;outline-offset:2px;border-radius:4px}
@media screen and (min-width:761px){
 .intake-page{height:100dvh;overflow:hidden}
 .intake-page .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}
 .intake-page header,.intake-page footer,.intake-page .page-heading,.intake-page main>.toolbar{flex-shrink:0}
 .intake-page main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding:16px 24px}
 .intake-page .intake-panel{flex:1;min-height:0;display:flex;flex-direction:column;margin-bottom:0}
 .intake-panel>h2,.intake-panel>p,.intake-form>label{flex-shrink:0}
 .intake-panel>h2{margin-bottom:6px}.intake-panel>p{margin:0 0 12px}
 .intake-form{flex:1;min-height:0;display:flex;flex-direction:column}
 .intake-form>label{margin-bottom:12px}
 .intake-form .intake-table-scroll{flex:1;min-height:0;overflow-y:scroll}
 .intake-form>.actions{flex-shrink:0;margin-top:12px;padding-top:12px;border-top:1px solid var(--line);background:#fff}
 .intake-page footer{padding-top:6px;padding-bottom:10px}
}
@media screen and (max-width:760px){.intake-form>.actions{position:sticky;bottom:0;background:white;padding:12px 0;z-index:2;border-top:1px solid var(--line)}}

/* Scroll the billing project picker without moving the application frame. */
.billing-project-scroll{overflow-wrap:anywhere}
.billing-project-scroll:focus-visible{outline:2px solid #1687e5;outline-offset:3px;border-radius:4px}
@media screen and (min-width:761px){
 .billing-list-page{height:100dvh;overflow:hidden}
 .billing-list-page .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}
 .billing-list-page header,.billing-list-page footer,.billing-list-page .page-heading{flex-shrink:0}
 .billing-list-page main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding:16px 24px}
 .billing-list-page .billing-list-panel{flex:1;min-height:0;display:flex;flex-direction:column;margin-bottom:0}
 .billing-list-panel>h2{flex-shrink:0}
 .billing-project-scroll{flex:1;min-height:0;overflow-y:scroll;overflow-x:hidden;direction:ltr;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-color:#8ba7be #edf3f8;padding-right:12px}
 .billing-project-scroll>p:first-child{margin-top:0}
 .billing-list-page footer{padding-top:6px;padding-bottom:10px}
}

/* Invoice rows scroll inside a stable application frame. */
.invoice-table-scroll{overflow:auto;direction:ltr;scrollbar-gutter:stable;scrollbar-color:#8ba7be #edf3f8;overscroll-behavior:contain}
.invoice-table-scroll table{min-width:1100px}
.invoice-table-scroll th{position:sticky;top:0;z-index:1;background:#f3f7fb}
.invoice-table-scroll:focus-visible{outline:2px solid #1687e5;outline-offset:3px;border-radius:4px}
@media screen and (min-width:761px){
 .invoices-list-page{height:100dvh;overflow:hidden}
 .invoices-list-page .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}
 .invoices-list-page header,.invoices-list-page footer,.invoices-list-page .page-heading,.invoices-list-page .invoice-navigation{flex-shrink:0}
 .invoices-list-page main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding:16px 24px}
 .invoices-list-page .invoices-list-panel{flex:1;min-height:0;display:flex;flex-direction:column;margin-bottom:0}
 .invoices-list-page .invoice-table-scroll{flex:1;min-height:0;overflow-y:scroll}
 .invoices-list-page footer{padding-top:6px;padding-bottom:10px}
}

/* Payment filters and pagination remain visible while table rows scroll. */
.payments-table-scroll{overflow:auto;direction:ltr;scrollbar-gutter:stable;scrollbar-color:#8ba7be #edf3f8;overscroll-behavior:contain}
.payments-table-scroll table{min-width:850px}
.payments-table-scroll th{position:sticky;top:0;z-index:1;background:#f3f7fb}
.payments-table-scroll:focus-visible{outline:2px solid #1687e5;outline-offset:3px;border-radius:4px}
@media screen and (min-width:761px){
 .payments-list-page{height:100dvh;overflow:hidden}
 .payments-list-page .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}
 .payments-list-page header,.payments-list-page footer,.payments-list-page .page-heading,.payments-list-page main>.toolbar,.payments-list-page main>.filters{flex-shrink:0}
 .payments-list-page main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding:16px 24px}
 .payments-list-page main>section:has(.payments-table-scroll){flex:1;min-height:0;display:flex;flex-direction:column;margin-bottom:0}
 .payments-list-page .panel-heading,.payments-list-page .pagination{flex-shrink:0}
 .payments-list-page .payments-table-scroll{flex:1;min-height:0;overflow-y:scroll}
 .payments-list-page footer{padding-top:6px;padding-bottom:10px}
}

/* Both analysis sections share one right-hand content scrollbar. */
.analysis-content-scroll{min-width:0;overflow-wrap:anywhere}
.analysis-content-scroll>.panel:last-child{margin-bottom:0}
.analysis-content-scroll table{min-width:1100px}
.analysis-content-scroll:focus-visible{outline:2px solid #1687e5;outline-offset:3px;border-radius:4px}
@media screen and (min-width:761px){
 .analysis-page{height:100dvh;overflow:hidden}
 .analysis-page .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}
 .analysis-page header,.analysis-page footer,.analysis-page .page-heading{flex-shrink:0}
 .analysis-page main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding:16px 24px}
 .analysis-page .analysis-content-scroll{flex:1;min-height:0;overflow-y:scroll;overflow-x:hidden;direction:ltr;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-color:#8ba7be #edf3f8;padding-right:12px}
 .analysis-page footer{padding-top:6px;padding-bottom:10px}
}

.analysis-economy-scroll{direction:ltr;scrollbar-gutter:stable;scrollbar-color:#8ba7be #edf3f8;overscroll-behavior:contain}
.analysis-economy-scroll th{position:sticky;top:0;z-index:1;background:#f3f7fb}
.analysis-economy-scroll:focus-visible{outline:2px solid #1687e5;outline-offset:2px;border-radius:4px}
@media screen and (min-width:761px){
 .analysis-page .analysis-content-scroll{display:flex;flex-direction:column;gap:16px;overflow:hidden;padding-right:0}
 .analysis-content-scroll>.panel:first-child{flex:1;min-height:0;display:flex;flex-direction:column;margin-bottom:0}
 .analysis-content-scroll>.panel:first-child>h2{flex-shrink:0}
 .analysis-page .analysis-economy-scroll{flex:1;min-height:0;overflow-y:scroll;overflow-x:auto}
 .analysis-content-scroll>.panel:last-child{flex-shrink:0;max-height:170px;overflow-y:auto;scrollbar-gutter:stable;scrollbar-color:#8ba7be #edf3f8}
}

.statistics-content-scroll{display:grid;gap:16px;min-width:0;align-content:start}
.statistics-content-scroll:focus-visible{outline:2px solid #1687e5;outline-offset:3px;border-radius:4px}
@media screen and (min-width:761px){
 .statistics-page{height:100dvh;overflow:hidden}
 .statistics-page .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}
 .statistics-page header,.statistics-page footer,.statistics-page .page-heading{flex-shrink:0}
 .statistics-page main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;padding:16px 24px}
 .statistics-page .statistics-view{flex:1;min-height:0;display:flex;flex-direction:column}
 .statistics-page .statistics-toolbar{flex-shrink:0}
 .statistics-page .statistics-content-scroll{flex:1;min-height:0;overflow-y:scroll;overflow-x:hidden;direction:ltr;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-color:#8ba7be #edf3f8;padding-right:12px}
 .statistics-page footer{padding-top:6px;padding-bottom:10px}
}


/* Report controls stay outside the independently scrolling version table. */
.report-archive-table{height:clamp(220px,45dvh,540px);overflow-y:scroll;overflow-x:auto;direction:ltr;scrollbar-gutter:stable;scrollbar-color:#8ba7be #edf3f8;overscroll-behavior:contain}
.report-archive-table th{position:sticky;top:0;z-index:1;background:#f3f7fb}
.report-archive-table:focus-visible{outline:2px solid #1687e5;outline-offset:2px;border-radius:4px}

.final-report-selection{display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:0 0 8px;overflow:visible}
.final-report-selection a{margin:0;min-width:0;white-space:normal}
.final-report-selection-note{font-size:12px;margin:0 0 16px}
@media(max-width:760px){.final-report-selection{flex-direction:column}.final-report-selection a{justify-content:center}}

.damage-type-control{display:flex;align-items:stretch;gap:0;margin-top:6px;min-width:0}
.damage-type-control input{margin:0;border-radius:5px 0 0 5px;min-width:0}
.damage-type-toggle{flex:0 0 42px;border-radius:0 5px 5px 0;font-size:18px;padding:4px 10px}
.damage-type-popup{position:fixed;inset:auto;margin:0;padding:16px;border:1px solid #b9cfdf;border-radius:10px;background:#fff;color:#16334d;box-shadow:0 12px 36px #14364f30;overflow-y:auto;box-sizing:border-box}
.damage-type-popup::backdrop{background:transparent}
.damage-type-popup>strong{font-size:15px}.damage-type-popup>p{font-size:12px;color:#587086;margin:6px 0 12px}
.damage-type-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.damage-type-choices button{font-size:12px;white-space:normal;padding:9px 8px}
.damage-type-choices button[aria-pressed=true]{background:#087bd9;color:white}
.damage-type-choices button:focus-visible,.damage-type-toggle:focus-visible{outline:2px solid #1687e5;outline-offset:2px}
@media(max-width:480px){.damage-type-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}

.damage-type-popup .damage-type-choices{grid-template-columns:minmax(0,1fr)}
.damage-type-choices button{text-align:left;padding:9px 12px}

.damage-type-popup{padding:12px;border-radius:8px}
.damage-type-popup .damage-type-choices{gap:4px}
.damage-type-popup .damage-type-choices button{padding:7px 10px;min-height:32px}
.damage-type-popup .damage-type-choices button:hover,.damage-type-popup .damage-type-choices button:focus-visible{color:#fff}
