/*
 EL-Online Connect — UTKAST 2 / Modern
 A presentation-only redesign kept on its own GitHub branch.
 Existing layout, data, actions, APIs and mobile installation flow remain intact.
 Palette grounded in current EL-Online visual identity:
 brand green #88ab12, charcoal #162532, white #fff, soft background #f5f7f9.
*/
:root{
  --eoc-green:#88ab12;
  --eoc-green-strong:#72930b;
  --eoc-green-soft:#eef5da;
  --eoc-deep:#172734;
  --eoc-body:#17283a;
  --eoc-muted:#708197;
  --eoc-border:#e4e9ee;
  --eoc-page:#f5f7f9;
  color:var(--eoc-body);
  background:var(--eoc-page);
}
body{background:var(--eoc-page)}
body:not(.installer-mode) .sidebar{
  background:linear-gradient(160deg,#1c2e3b 0%,#12232f 80%,#111f29 100%);
  width:258px;flex-basis:258px;
  border-right:0;color:#f6faef;
  box-shadow:5px 0 32px #1830440a;
}
body:not(.installer-mode) .brand{
  align-items:flex-start;padding:0 25px;min-height:103px;height:103px;
  color:#fff;border-color:#ffffff15;
}
body:not(.installer-mode) .brand strong{
  font-size:27px;letter-spacing:-1.5px;line-height:1.1
}
body:not(.installer-mode) .brand small{
  margin-top:6px;color:#a7c75c;font-size:10px;letter-spacing:2px;font-weight:700
}
body:not(.installer-mode) .navtitle{
  margin:29px 26px 11px;color:#8296a5;letter-spacing:1.8px;font-size:10px
}
body:not(.installer-mode) .nav{
  border-radius:11px;margin:4px 13px;padding:15px 15px;
  font-size:14px;font-weight:650;color:#ccd6dd;
  transition:background .15s ease,color .15s ease,transform .15s ease;
}
body:not(.installer-mode) .nav:hover{
  background:#ffffff13;color:#fff
}
body:not(.installer-mode) .nav.active{
  color:#e7f9c4;background:#8cae2627;
  box-shadow:inset 3px 0 #a5d337
}
body:not(.installer-mode) .sidebottom{
  border-top:1px solid #ffffff15;padding:24px;color:#edf2f6
}
body:not(.installer-mode) .sidebottom span{color:#879daa}
body:not(.installer-mode) .topbar{
  height:76px;background:#fff;
  border-bottom:1px solid var(--eoc-border);
  padding:0 38px;box-shadow:0 1px 8px #162e4010
}
body:not(.installer-mode) .topbar b{font-size:16px;letter-spacing:-.25px}
body:not(.installer-mode) .topbar span{
  background:#edf5dd;color:#628315;padding:7px 11px;
  border-radius:30px;font-size:10px;letter-spacing:.7px
}
body:not(.installer-mode) .container{
  max-width:1560px;padding:34px 40px 88px
}
body:not(.installer-mode) .heading{margin:15px 0 24px}
body:not(.installer-mode) .heading h1{
  font-size:32px;letter-spacing:-1.15px;margin:6px 0 9px
}
body:not(.installer-mode) .heading p{font-size:14px}
body:not(.installer-mode) .eyebrow{
  color:var(--eoc-green-strong);letter-spacing:1.8px
}
body:not(.installer-mode) .row-actions{gap:9px}
body:not(.installer-mode) .admin-accordion{
  background:#fff;border:1px solid var(--eoc-border);
  border-radius:16px;overflow:hidden;margin-bottom:15px;
  box-shadow:0 5px 28px #1b30420b;
  transition:box-shadow .18s ease, border-color .18s ease
}
body:not(.installer-mode) .admin-accordion.is-open{
  box-shadow:0 10px 35px #1b304212;border-color:#dce6e4
}
body:not(.installer-mode) .admin-accordion-toggle{
  padding:22px 25px;min-height:74px;
  background:#fff;color:var(--eoc-body);gap:14px
}
body:not(.installer-mode) .admin-accordion-toggle:hover{background:#fafdF6}
body:not(.installer-mode) .admin-accordion-title{
  font-size:17px;font-weight:770;letter-spacing:-.35px
}
body:not(.installer-mode) .admin-accordion-meta{
  font-size:12px;color:#708196;font-weight:600
}
body:not(.installer-mode) .admin-accordion-chevron{
  color:#799e18;background:#f0f6e5;border-radius:10px;
  width:31px;height:31px;display:inline-flex;
  align-items:center;justify-content:center;font-size:21px
}
body:not(.installer-mode) .admin-accordion-content{padding:0}
body:not(.installer-mode) .admin-accordion-controls{gap:5px;margin-bottom:10px}
body:not(.installer-mode) .panel{
  border-radius:14px;border-color:var(--eoc-border);
  box-shadow:0 3px 18px #10283a08
}
body:not(.installer-mode) .panelheading{
  padding:19px 23px;border-color:#e9edf1
}
body:not(.installer-mode) .panelheading h2{
  font-size:17px;font-weight:750;letter-spacing:-.3px
}
body:not(.installer-mode) .panelbody{padding:22px 24px}
body:not(.installer-mode) .stats{
  margin:22px 22px 25px;gap:14px
}
body:not(.installer-mode) .stat{
  background:linear-gradient(155deg,#fff,#f9fcf6);
  border-color:#e5eacb;border-radius:13px;
  min-height:114px;padding:20px 22px;
}
body:not(.installer-mode) .stat span{
  color:#6f8090;font-size:12px;margin-bottom:12px
}
body:not(.installer-mode) .stat strong{
  font-size:33px;letter-spacing:-1px;color:#1a2c3a
}
body:not(.installer-mode) .mivo-dashboard{
  gap:12px;margin:14px 20px 22px
}
body:not(.installer-mode) .mivo-stat{
  border-radius:13px;border:1px solid #e6ebed;
  padding:19px 18px;box-shadow:none;min-height:104px
}
body:not(.installer-mode) .mivo-stat b{font-size:30px}
body:not(.installer-mode) .mivo-stat.fail{
  background:#fff1f0;border-color:#fae4e1
}
body:not(.installer-mode) .mivo-stat.pass{
  background:#eef8e4;border-color:#e0edce
}
body:not(.installer-mode) .mivo-stat.neutral{
  background:#f1f4f7;border-color:#e4eaf0
}
body:not(.installer-mode) .mivo-stat.neutral:nth-child(3){
  background:#fff9e9;border-color:#f2e9cc
}
body:not(.installer-mode) .mivo-stat.neutral:nth-child(3) b{
  color:#bf8e28
}
body:not(.installer-mode) .mivo-stat span{
  color:#54677a;font-size:12px;font-weight:620
}
body:not(.installer-mode) .btn{border-radius:10px;min-height:43px}
.primary,.installer-save{
  background:var(--eoc-green);color:#fff;box-shadow:none
}
.primary:hover,.installer-save:hover{background:var(--eoc-green-strong)}
body:not(.installer-mode) .outline{
  border-color:#dde5ec;color:#33465a;background:#fff
}
body:not(.installer-mode) .outline:hover{background:#f1f7e8;border-color:#d8e3c4}
body:not(.installer-mode) .table-scroll{
  border:1px solid #e5eaf0;border-radius:12px;
  margin:10px 18px 19px;overflow:auto
}
body:not(.installer-mode) table{
  background:#fff;font-variant-numeric:tabular-nums
}
body:not(.installer-mode) th{
  background:#f6f8fa;color:#627389;
  font-size:10px;letter-spacing:.7px
}
body:not(.installer-mode) th,body:not(.installer-mode) td{
  padding:14px 17px;border-bottom:1px solid #edf0f3
}
body:not(.installer-mode) tbody tr:hover{background:#f8faf5}
body:not(.installer-mode) .toolbar{
  margin:22px 20px 18px
}
body:not(.installer-mode) .field input,
body:not(.installer-mode) .field textarea,
body:not(.installer-mode) .field select{
  border-radius:10px;border-color:#dce5ea
}
body:not(.installer-mode) .field input:focus,
body:not(.installer-mode) .search:focus{
  border-color:#96b749;box-shadow:0 0 0 4px #8bac2020
}
body:not(.installer-mode) .mivo-status{font-size:11px;border-radius:8px}
body:not(.installer-mode) .hint{color:#7b8a9b}
body:not(.installer-mode) .admin-export-row{padding:0 20px}
body:not(.installer-mode) .alert{border-radius:11px}

/* Installer interface: same green/white identity, larger touch targets. */
body.installer-mode .topbar{
  background:#fff;box-shadow:0 2px 13px #162b3b0a;
  border-bottom:1px solid #e9eef0
}
body.installer-mode .container{
  padding-top:23px;max-width:680px
}
.installer-screen{max-width:550px}
.installer-heading h1{
  letter-spacing:-.9px;font-weight:800;color:#192b3b
}
.installer-heading{margin-bottom:28px}
.installer-health-summary{
  border-radius:16px;padding:16px;background:#fff;
  box-shadow:0 5px 26px #1328380b;border:1px solid #e7ecf0
}
.installer-health-chip{
  border-radius:12px;min-height:73px;
  transition:border-color .12s ease,box-shadow .12s ease
}
.installer-issue-tabs{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px
}
.installer-issue-tab{
  border-radius:12px;min-height:63px;
  padding:12px;display:flex;justify-content:space-between;
  align-items:center;font-size:12px;font-weight:700;
  background:#fff;box-shadow:0 2px 9px #12273a08
}
.installer-issue-tab b{font-size:18px;margin:0 0 0 6px}
.installer-issue-tab.selected{
  background:#f4f8e9;border-color:#92b537;
  box-shadow:inset 0 0 0 1px #92b537,0 3px 15px #2338110b
}
.installer-issue-tab.failed{
  background:#fff3f1;border-color:#fae4e3;color:#9a3c3c
}
.installer-issue-tab.unverified{
  background:#fff9ee;border-color:#f6ecd8;color:#94651d
}
.installer-issue-tab.unregistered{
  background:#f0f3f6;border-color:#e7ebf0;color:#566c7f
}
.installer-issue-tab.responds{
  background:#eff8e7;border-color:#deedce;color:#4e7a1b
}
.installer-issue-tab.selected.failed{border-color:#d98181}
.installer-issue-tab.selected.unverified{border-color:#d2a451}
.installer-issue-tab.selected.unregistered{border-color:#8ea0b3}
.installer-issue-tab.selected.responds{border-color:#89b34a}
.installer-issue-tab.all{grid-column:span 2}
.installer-issues-intro{
  border-radius:11px;padding:15px 17px;
  margin-bottom:18px;border-left-width:4px
}
.installer-issue-row{
  border-radius:13px;box-shadow:0 3px 17px #142c3a08;
  border-color:#e7ecf0;padding:17px 34px 17px 17px
}
.installer-issue-list{gap:11px}
.installer-issue-type{font-size:16px}
.installer-list{gap:9px}
.installer-list-row{
  background:#fff;border:1px solid #e6ebef;
  padding:14px;border-radius:13px;min-height:67px;
  box-shadow:0 3px 12px #10293b07
}
.installer-list-row:hover{border-color:#b7d290;background:#fafeF7}
.installer-section-title{letter-spacing:-.3px}
.installer-meter{
  border:1px solid #e6e9ec;border-radius:14px;
  background:#fff;margin-bottom:13px;
  padding:17px 18px 19px;
  box-shadow:0 2px 13px #182e3e07
}
.installer-meter:first-of-type{padding-top:17px}
.installer-meter:last-of-type{border-bottom:1px solid #e6e9ec}
.installer-savebar{background:linear-gradient(transparent 0%,#f5f7f9 22%)}
.installer-back{color:#83a91f}
.installer-operator-box{
  background:#f3f8e8;border:1px solid #d8e9b8;
  border-radius:13px
}
.installer-operator-box select{border-color:#a0be67}

@media(min-width:901px){
  body:not(.installer-mode) .main{min-width:0}
}
@media(max-width:900px){
  body:not(.installer-mode) .sidebar{width:208px;flex-basis:208px}
  body:not(.installer-mode) .container{padding:28px 24px 70px}
}
@media(max-width:650px){
  body:not(.installer-mode) .sidebar{
    width:auto;min-height:auto;display:flex;flex-direction:row;
    align-items:center;overflow-x:auto;background:#192b38
  }
  body:not(.installer-mode) .brand{min-width:130px;height:69px;min-height:69px;padding:0 16px}
  body:not(.installer-mode) .brand strong{font-size:18px}
  body:not(.installer-mode) .brand small{font-size:8px;letter-spacing:1px}
  body:not(.installer-mode) .navtitle,body:not(.installer-mode) .sidebottom{display:none}
  body:not(.installer-mode) .nav{white-space:nowrap;padding:11px 12px;margin:0 4px;min-height:43px}
  body:not(.installer-mode) .topbar{height:53px;padding:0 18px}
  body:not(.installer-mode) .topbar span{font-size:9px;padding:5px 7px}
  body:not(.installer-mode) .container{padding:20px 13px 64px}
  body:not(.installer-mode) .heading h1{font-size:26px}
  body:not(.installer-mode) .admin-accordion-toggle{padding:18px 15px;min-height:66px}
  body:not(.installer-mode) .admin-accordion-title{font-size:15px}
  body:not(.installer-mode) .admin-accordion-meta{font-size:11px}
  body:not(.installer-mode) .stats{gap:8px;margin:16px 12px}
  body:not(.installer-mode) .stat{min-height:96px;padding:13px 12px}
  body:not(.installer-mode) .stat strong{font-size:23px}
  body:not(.installer-mode) .mivo-dashboard{margin:15px 12px}
  body:not(.installer-mode) .mivo-stat{padding:13px}
  body:not(.installer-mode) .mivo-stat b{font-size:24px}
  body:not(.installer-mode) .toolbar{margin:16px 11px}
  body:not(.installer-mode) .table-scroll{margin:12px 10px}
  body.installer-mode .container{padding:16px 14px 80px}
  .installer-issue-tab{min-height:67px}
}
@media(prefers-reduced-motion:reduce){
  .admin-accordion,.installer-issue-tab,.nav{transition:none!important}
}


/* Utkast 2b — Neutral admin surface with lime-green EL-Online identity.
   This section intentionally overrides the previous dark-sidebar concept. */
:root{
  --eoc-green:#89ad16;
  --eoc-green-strong:#72970c;
  --eoc-green-soft:#eef6da;
  --eoc-deep:#252a23;
  --eoc-body:#252a24;
  --eoc-muted:#757c73;
  --eoc-border:#e6ebe0;
  --eoc-page:#f7f8f5;
  color:#252a24;
  background:#f7f8f5;
}
body{background:#f7f8f5}
body:not(.installer-mode) .sidebar{
  background:#fff!important;
  color:#283024!important;
  border-right:1px solid #e3e9dd;
  box-shadow:4px 0 22px #35432508;
}
body:not(.installer-mode) .brand{
  color:#263020!important;
  border-bottom:1px solid #edf0e9;
  padding:0 25px;
  align-items:flex-start;
  justify-content:center;
  gap:3px;
}
body:not(.installer-mode) .brand-logo{
  display:block;
  width:auto;
  height:auto;
  max-height:52px;
  max-width:177px;
  object-fit:contain;
  object-position:left center;
}
body:not(.installer-mode) .brand small{
  margin:0!important;
  color:#7eaa12!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:1.65px!important;
  line-height:1.2;
}
body:not(.installer-mode) .navtitle{color:#87917d}
body:not(.installer-mode) .nav{
  color:#596254!important;
  background:transparent;
}
body:not(.installer-mode) .nav:hover{
  color:#293426!important;
  background:#f1f7e5!important;
}
body:not(.installer-mode) .nav.active{
  color:#4a710e!important;
  background:#eaf4d4!important;
  box-shadow:inset 4px 0 #8cb91c;
}
body:not(.installer-mode) .sidebottom{
  color:#3d4638!important;
  border-top:1px solid #eef0e9;
}
body:not(.installer-mode) .sidebottom span{color:#858f7e}
body:not(.installer-mode) .topbar{
  background:#fff;
  border-bottom:1px solid #e5ecdc;
  box-shadow:0 1px 8px #34512808;
}
body:not(.installer-mode) .topbar b{color:#2a3029}
body:not(.installer-mode) .topbar span{
  background:#edf6da;color:#658c14
}
body:not(.installer-mode) .eyebrow{color:#7ca214}
body:not(.installer-mode) .heading h1,
body:not(.installer-mode) .panelheading h2,
body:not(.installer-mode) .admin-accordion-title{color:#232c22}
body:not(.installer-mode) .admin-accordion{
  border-color:#e4eadf;
  box-shadow:0 5px 24px #3455210a;
}
body:not(.installer-mode) .admin-accordion.is-open{
  border-color:#d7e3c7;
  box-shadow:0 10px 31px #3b54200e;
}
body:not(.installer-mode) .admin-accordion-toggle:hover{background:#f8fbf3}
body:not(.installer-mode) .admin-accordion-chevron{
  background:#ebf5d8;color:#729919
}
body:not(.installer-mode) .admin-accordion-meta{color:#707d6b}
body:not(.installer-mode) .panel{border-color:#e2e8db}
body:not(.installer-mode) .stats .stat{
  background:#fff;border-color:#e4e9df;
}
body:not(.installer-mode) .stat strong{color:#2b3326}
body:not(.installer-mode) .mivo-stat{border-color:#e8eae4}
body:not(.installer-mode) .mivo-stat.neutral{background:#f3f5f1}
body:not(.installer-mode) .mivo-stat.neutral:nth-child(3){
  background:#fffaed;
}
body:not(.installer-mode) th{
  background:#f7f9f4;color:#62705e;
}
body:not(.installer-mode) tbody tr:hover{background:#f8fbf3}
body:not(.installer-mode) .search,
body:not(.installer-mode) .mivo-filter-label select{border-color:#dfe7d9}
body:not(.installer-mode) .outline{
  color:#3a4535;border-color:#dce6d2
}
body:not(.installer-mode) .link{color:#5c8511}
body:not(.installer-mode) .btn.primary,
body:not(.installer-mode) .primary{
  background:#89ad16!important;color:#fff!important;
}
body:not(.installer-mode) .btn.primary:hover,
body:not(.installer-mode) .primary:hover{
  background:#709209!important
}
body:not(.installer-mode) .table-scroll{border-color:#e6ecdf}
body:not(.installer-mode) .mivo-reading-number{color:#293927}
body:not(.installer-mode) .mivo-dashboard{grid-template-columns:repeat(4,minmax(0,1fr))}
body:not(.installer-mode) .mivo-dashboard .mivo-stat b{font-size:28px}
@media(max-width:1000px){
 body:not(.installer-mode) .mivo-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 body:not(.installer-mode) .sidebar{
  background:#fff!important;border-bottom:1px solid #e6ecdF;
 }
 body:not(.installer-mode) .brand{
  padding:0 10px 0 13px;
  min-width:147px;
  min-height:66px;
  height:66px;
 }
 body:not(.installer-mode) .brand-logo{
  max-width:119px;
  max-height:38px;
 }
 body:not(.installer-mode) .brand small{font-size:9px!important}
 body:not(.installer-mode) .nav{color:#56614d!important}
 body:not(.installer-mode) .mivo-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Utkast 2.1 — actual dashboard layout, beyond a color-only skin */
[hidden]{display:none!important}
body:not(.installer-mode) .sidebar{
  position:sticky;top:0;height:100vh;overflow-y:auto;overflow-x:hidden;
  width:236px;flex-basis:236px;
  z-index:20;
}
body:not(.installer-mode) .brand{min-height:102px;height:102px;padding:12px 23px}
body:not(.installer-mode) .brand-logo{max-width:176px;max-height:57px}
body:not(.installer-mode) .navtitle{margin:24px 21px 10px}
body:not(.installer-mode) #nav-admin,
body:not(.installer-mode) #nav-installer{
  width:calc(100% - 22px);margin:2px 11px;line-height:1.2
}
body:not(.installer-mode) #nav-admin.active,
body:not(.installer-mode) #nav-installer.active{
  background:#eaf4d4;
  box-shadow:inset 4px 0 #8cb91c
}
body:not(.installer-mode) .project-nav{
  display:flex;flex-direction:column;gap:4px;
  padding:0 10px 14px
}
body:not(.installer-mode) .project-nav .nav{
  width:100%;margin:0;padding:12px 14px;
  display:flex;align-items:center;gap:13px;
  font-size:14px;border-radius:9px;min-height:46px;
  white-space:nowrap
}
body:not(.installer-mode) .project-nav-link .nav-icon{
  line-height:1;text-align:center
}
body:not(.installer-mode) .project-nav-link.selected{
  background:#e6f1ce;color:#596254!important;
  box-shadow:inset 4px 0 #90b729
}
body:not(.installer-mode) .sidebar-current-project{
  padding:6px 13px 15px;font-size:11px;font-weight:750;
  color:#9ba394;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap
}
body:not(.installer-mode) .topbar{
  height:68px;padding:0 36px
}
body:not(.installer-mode) .container{
  max-width:1530px;padding:29px 32px 80px
}
body:not(.installer-mode) .heading{margin-bottom:20px}
body:not(.installer-mode) .heading h1{
  font-size:25px;letter-spacing:-.65px;margin:5px 0
}
body:not(.installer-mode) .heading p{color:#7b8577}
body:not(.installer-mode) .dashboard-home{
  background:transparent;margin:12px 0 30px
}
body:not(.installer-mode) .dashboard-titlebar{
  display:flex;align-items:center;justify-content:space-between;
  gap:18px;margin-bottom:16px
}
body:not(.installer-mode) .dashboard-titlebar h2{
  font-size:30px;letter-spacing:-1.2px;
  color:#263121;margin:5px 0 0;font-weight:800
}
body:not(.installer-mode) .dashboard-progress{
  font-size:12px;font-weight:730;color:#67891b;
  background:#eff5e3;padding:9px 12px;border-radius:9px
}
body:not(.installer-mode) .dashboard-status-grid{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  gap:11px;margin-bottom:17px
}
body:not(.installer-mode) .dashboard-status-card{
  min-width:0;min-height:112px;border-radius:14px;
  border:1px solid #e6e8e0;padding:17px 12px;
  display:grid;grid-template-columns:28px minmax(0,1fr);
  grid-template-rows:25px 1fr;gap:6px 7px;
  text-align:left;align-items:center;
  box-shadow:0 4px 18px #2a3d1c08;
  transition:box-shadow .16s ease,border-color .16s ease,transform .16s ease
}
body:not(.installer-mode) .dashboard-status-card:hover{
  transform:translateY(-2px);box-shadow:0 8px 22px #314e1f14
}
body:not(.installer-mode) .dashboard-status-card:focus-visible{
  outline:3px solid #7fa517;outline-offset:2px
}
body:not(.installer-mode) .dashboard-status-card .status-tile-icon{
  font-size:26px;line-height:1;text-align:center;grid-row:1;
  font-weight:700
}
body:not(.installer-mode) .dashboard-status-card .status-tile-label{
  font-size:12px;font-weight:760;line-height:1.2
}
body:not(.installer-mode) .dashboard-status-card strong{
  grid-column:1 / -1;align-self:end;
  font-size:31px;line-height:1;font-weight:820;
  letter-spacing:-1.2px;color:#243022;
  text-align:center
}
body:not(.installer-mode) .dashboard-status-card.failed{background:#fff0ef;color:#d14242;border-color:#f6dfdd}
body:not(.installer-mode) .dashboard-status-card.unverified{background:#fff8e6;color:#c48a13;border-color:#f2e8cd}
body:not(.installer-mode) .dashboard-status-card.unregistered{background:#f0f3f4;color:#687682;border-color:#e7ebed}
body:not(.installer-mode) .dashboard-status-card.responds{background:#eaf9e7;color:#318342;border-color:#dcebd8}
body:not(.installer-mode) .dashboard-status-card.all{background:#fff;color:#7da51e;border-color:#e5eade}
body:not(.installer-mode) .dashboard-status-card.is-selected{
  outline:2px solid #83ac19;outline-offset:0;
  box-shadow:0 3px 14px #4d76151d
}
body:not(.installer-mode) .dashboard-status-card.failed.is-selected{outline-color:#d77575}
body:not(.installer-mode) .dashboard-status-card.unverified.is-selected{outline-color:#dcb15a}
body:not(.installer-mode) .dashboard-status-card.unregistered.is-selected{outline-color:#98a4ad}
body:not(.installer-mode) .dashboard-status-card.responds.is-selected{outline-color:#84b345}
body:not(.installer-mode) .dashboard-data-panel{
  background:#fff;border:1px solid #e4eae0;border-radius:16px;
  box-shadow:0 4px 22px #2845200a;
  overflow:hidden
}
body:not(.installer-mode) .dashboard-toolbar{
  display:flex;align-items:center;gap:16px;justify-content:space-between;
  padding:15px 18px 17px
}
body:not(.installer-mode) .dashboard-search-field{
  display:flex;align-items:center;gap:10px;
  border:1px solid #dde6d7;border-radius:10px;
  background:#fff;padding:0 14px;min-width:240px;
  flex:1;max-width:650px;height:46px
}
body:not(.installer-mode) .dashboard-search-field:focus-within{
  border-color:#8bad24;box-shadow:0 0 0 3px #91b82a21
}
body:not(.installer-mode) .dashboard-search-field span{
  font-size:24px;color:#849083
}
body:not(.installer-mode) .dashboard-search-field input{
  width:100%;border:0;background:transparent;outline:0;
  min-width:0;height:42px;font-size:13px;color:#243329
}
body:not(.installer-mode) .dashboard-search-field input::placeholder{color:#84908b}
body:not(.installer-mode) .dashboard-filter-summary{
  font-size:12px;font-weight:750;white-space:nowrap;color:#748074
}
body:not(.installer-mode) .dashboard-table-wrap{
  overflow:auto;max-height:650px;
  scrollbar-color:#ccdac3 #f8faf7
}
body:not(.installer-mode) .dashboard-table{
  min-width:830px;width:100%;border-collapse:collapse;
}
body:not(.installer-mode) .dashboard-table th{
  position:sticky;top:0;z-index:1;
  background:#f4f7f0!important;color:#64715f;
  font-size:11px;text-transform:none;letter-spacing:.15px;
  border:0!important;padding:14px 16px!important;white-space:nowrap
}
body:not(.installer-mode) .dashboard-table td{
  padding:14px 16px!important;
  border-top:1px solid #ecf0e8!important;
  border-bottom:0!important;
  color:#2c362b;font-size:12px;vertical-align:middle;
}
body:not(.installer-mode) .dashboard-table td:first-child{font-size:13px}
body:not(.installer-mode) .dashboard-table tr:hover td{background:#f9fbf7}
body:not(.installer-mode) .dashboard-table .mono{
  font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;
}
body:not(.installer-mode) .dashboard-table-address{color:#849084!important;font-size:11px!important}
body:not(.installer-mode) .dashboard-table .mivo-reading-number{
  font-size:12px
}
body:not(.installer-mode) .dashboard-table .mivo-reading small{font-size:10px}
body:not(.installer-mode) .dashboard-table .mivo-status{
  font-size:11px;white-space:nowrap;padding:6px 9px
}
body:not(.installer-mode) .dashboard-empty{
  padding:34px 22px!important;
  text-align:center;color:#7e887c!important
}
body:not(.installer-mode) .dashboard-table-footer{
  display:flex;align-items:center;justify-content:space-between;
  gap:15px;padding:13px 17px;background:#fff;
  border-top:1px solid #e9ede4;
  font-size:12px;color:#778276
}
body:not(.installer-mode) .dashboard-pagination{
  display:flex;align-items:center;gap:8px;
  font-variant-numeric:tabular-nums;color:#5e6b60
}
body:not(.installer-mode) .dashboard-pagination button{
  border:1px solid #e0e7d8;border-radius:8px;
  background:#fff;width:35px;height:35px;
  color:#60891b;font-size:19px
}
body:not(.installer-mode) .dashboard-pagination button:hover:not(:disabled){
  background:#eff6e0;border-color:#9fc14f
}
body:not(.installer-mode) .dashboard-quicklinks{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;margin-top:15px
}
body:not(.installer-mode) .dashboard-quicklinks button{
  position:relative;display:grid;grid-template-columns:42px 1fr 17px;
  grid-template-rows:23px auto;align-items:center;
  gap:1px 9px;text-align:left;
  background:#fff;border:1px solid #e3eae0;
  border-radius:13px;padding:15px 14px;min-height:82px;
  box-shadow:0 3px 16px #273c1908;
  color:#2b3528
}
body:not(.installer-mode) .dashboard-quicklinks button:hover{
  border-color:#a6c96b;background:#f9fcf5
}
body:not(.installer-mode) .dashboard-quicklinks .quick-icon{
  grid-row:1 / 3;display:grid;place-items:center;
  font-size:22px;color:#87aa20;background:#eff6e2;
  border-radius:10px;width:40px;height:42px
}
body:not(.installer-mode) .dashboard-quicklinks b{
  font-size:12px;line-height:1.25;white-space:normal
}
body:not(.installer-mode) .dashboard-quicklinks small{
  grid-column:2;font-size:11px;color:#7d897b
}
body:not(.installer-mode) .dashboard-quicklinks .quick-chevron{
  grid-column:3;grid-row:1 / 3;color:#8ab424;font-size:22px
}
body:not(.installer-mode) .dashboard-section-heading{
  display:flex;align-items:center;justify-content:space-between;
  margin:28px 0 12px;gap:18px
}
body:not(.installer-mode) .dashboard-section-heading h2{
  font-size:19px;color:#273424;letter-spacing:-.45px;margin:0
}
body:not(.installer-mode) .dashboard-section-heading .admin-accordion-controls{
  margin:0;
}
body:not(.installer-mode) .dashboard-home,
body:not(.installer-mode) .admin-accordion{scroll-margin-top:22px}
body:not(.installer-mode) .admin-accordion-content .mivo-dashboard{
  grid-template-columns:repeat(4,minmax(0,1fr))
}
@media(min-width:1400px){
 body:not(.installer-mode) .dashboard-status-card{min-height:122px;padding:17px 17px}
 body:not(.installer-mode) .dashboard-status-card strong{font-size:35px}
}
@media(max-width:1200px){
 body:not(.installer-mode) .sidebar{width:205px;flex-basis:205px}
 body:not(.installer-mode) .container{padding-left:22px;padding-right:22px}
 body:not(.installer-mode) .dashboard-status-grid{gap:7px}
 body:not(.installer-mode) .dashboard-status-card{padding:13px 8px;min-height:99px}
 body:not(.installer-mode) .dashboard-status-card .status-tile-icon{font-size:22px}
 body:not(.installer-mode) .dashboard-status-card .status-tile-label{font-size:11px}
 body:not(.installer-mode) .dashboard-quicklinks{gap:8px}
 body:not(.installer-mode) .dashboard-quicklinks button{padding:11px;grid-template-columns:33px 1fr 12px}
 body:not(.installer-mode) .dashboard-quicklinks .quick-icon{width:31px;height:35px}
}
@media(max-width:850px){
 body:not(.installer-mode) .sidebar{position:relative;height:auto;width:auto;flex-basis:auto;overflow:visible}
 body:not(.installer-mode) .dashboard-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body:not(.installer-mode) .dashboard-status-card{min-height:105px}
 body:not(.installer-mode) .dashboard-quicklinks{grid-template-columns:1fr}
 body:not(.installer-mode) .dashboard-quicklinks button{grid-template-columns:42px 1fr 16px}
}
@media(max-width:650px){
 body:not(.installer-mode) .container{padding:18px 12px 65px}
 body:not(.installer-mode) .sidebar{max-width:100vw;overflow-x:auto}
 body:not(.installer-mode) #project-nav-title{display:none!important}
 body:not(.installer-mode) .project-nav{
   flex-direction:row;padding:0 4px 0 0;gap:3px;
 }
 body:not(.installer-mode) .sidebar-current-project{display:none}
 body:not(.installer-mode) .project-nav-link{width:auto!important}
 body:not(.installer-mode) .project-nav .nav{padding:12px 10px;min-height:42px;font-size:14px}
 body:not(.installer-mode) .project-nav-link .nav-icon{width:auto}
 body:not(.installer-mode) .topbar{height:53px;padding:0 14px}
 body:not(.installer-mode) .heading{margin-bottom:12px}
 body:not(.installer-mode) .heading h1{font-size:21px}
 body:not(.installer-mode) .dashboard-titlebar h2{font-size:25px}
 body:not(.installer-mode) .dashboard-titlebar .dashboard-progress{font-size:10px}
 body:not(.installer-mode) .dashboard-status-grid{
   grid-template-columns:repeat(2,minmax(0,1fr));gap:8px
 }
 body:not(.installer-mode) .dashboard-status-card{min-height:86px;padding:11px;grid-template-columns:24px 1fr}
 body:not(.installer-mode) .dashboard-status-card strong{font-size:25px}
 body:not(.installer-mode) .dashboard-status-card.all{grid-column:span 2;min-height:75px}
 body:not(.installer-mode) .dashboard-toolbar{padding:12px;display:block}
 body:not(.installer-mode) .dashboard-search-field{max-width:none;min-width:0}
 body:not(.installer-mode) .dashboard-filter-summary{display:block;margin-top:8px}
 body:not(.installer-mode) .dashboard-table-footer{padding:12px}
 body:not(.installer-mode) .dashboard-quicklinks button{min-height:74px}
 body:not(.installer-mode) .dashboard-section-heading{align-items:flex-start;flex-direction:column}
 body:not(.installer-mode) .dashboard-section-heading h2{font-size:17px}
 body:not(.installer-mode) .dashboard-section-heading .admin-accordion-controls{width:100%;justify-content:flex-start}
}

/* Installer bottom navigation — only on compact screens, never covers the save form */
.installer-bottom-nav{display:none}
@media(max-width:650px){
 body.installer-mode .container{padding-bottom:110px}
 .installer-bottom-nav{
   display:flex;position:fixed;bottom:0;left:0;right:0;
   padding:9px max(8px,env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
   align-items:stretch;justify-content:space-evenly;gap:5px;
   z-index:70;background:#fff;border-top:1px solid #e3eadb;
   box-shadow:0 -5px 25px #263b2b15
 }
 .installer-bottom-nav button{
   min-width:0;flex:1;border:0;background:#fff;
   color:#788371;display:flex;align-items:center;
   justify-content:center;flex-direction:column;
   gap:4px;font-size:10px;font-weight:700;
   line-height:1.2;min-height:50px;padding:3px 4px;
   border-radius:9px
 }
 .installer-bottom-nav button span{font-size:22px;line-height:1;color:#8b9983}
 .installer-bottom-nav button.selected{
   color:#648f13;background:#eff6e5
 }
 .installer-bottom-nav button.selected span{color:#7aa518}
 .installer-bottom-nav button:focus-visible{outline:2px solid #8fae41;outline-offset:1px}
}

/* Utkast 2.2 — faithfully styled status dashboard and installer meter cards.
   All icons are inline stroke SVG; no icon font, external service or SVG scripting. */
:root{
  --meter-electric:#68ad13;
  --meter-cold:#178cff;
  --meter-hot:#f04437;
  --meter-temperature:#f5a009;
  --meter-heat:#e97b32;
}
.ui-icon{width:20px;height:20px;display:inline-block;flex:0 0 auto;vertical-align:middle}
.meter-visual{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:29px;height:34px;color:#798a75}
.meter-visual .ui-icon{width:25px;height:25px;stroke-width:1.9}
.meter-visual--electric{color:var(--meter-electric)}
.meter-visual--cold{color:var(--meter-cold)}
.meter-visual--hot{color:var(--meter-hot)}
.meter-visual--temperature{color:var(--meter-temperature)}
.meter-visual--heat{color:var(--meter-heat)}
.dashboard-meter-name{display:inline-flex;align-items:center;gap:8px;min-width:0}
.dashboard-meter-name .meter-visual{width:25px;height:30px}
.dashboard-meter-name .ui-icon{width:21px;height:21px}
.dashboard-meter-name span:last-child{min-width:0;overflow-wrap:anywhere}
.mivo-status{gap:6px}
.mivo-status .ui-icon{width:15px;height:15px;stroke-width:2.1}
body:not(.installer-mode) .dashboard-table .mivo-status{
 display:inline-flex;align-items:center;padding:7px 11px;font-weight:720
}
body:not(.installer-mode) .dashboard-status-card{
 grid-template-rows:auto auto auto;
 grid-template-columns:1fr 20px;
 min-height:120px;padding:17px 16px 15px;
 gap:6px 5px;border-radius:12px;
}
body:not(.installer-mode) .dashboard-status-card .status-tile-icon{
 grid-column:1 / -1;grid-row:1;
 display:flex;align-items:center;justify-content:flex-start;
 height:27px;width:auto;margin-bottom:2px
}
body:not(.installer-mode) .dashboard-status-card .status-tile-icon .ui-icon{
 width:24px;height:24px;stroke-width:2
}
body:not(.installer-mode) .dashboard-status-card .status-tile-label{
 grid-column:1 / -1;grid-row:2;font-size:13px;font-weight:700;
 color:#303a35;line-height:1.2
}
body:not(.installer-mode) .dashboard-status-card strong{
 grid-row:3;grid-column:1 / -1;
 margin-top:5px;text-align:left;font-size:35px;color:#263128
}
body:not(.installer-mode) .dashboard-status-card.failed .status-tile-icon{color:#fa332d}
body:not(.installer-mode) .dashboard-status-card.unverified .status-tile-icon{color:#eca108}
body:not(.installer-mode) .dashboard-status-card.unregistered .status-tile-icon{color:#738094}
body:not(.installer-mode) .dashboard-status-card.responds .status-tile-icon{color:#30ad4c}
body:not(.installer-mode) .dashboard-status-card.all .status-tile-icon{color:#48566c}
body:not(.installer-mode) .dashboard-status-card strong:after{
 content:" mätare";font-size:10px;font-weight:600;letter-spacing:0;
 display:inline-block;margin-left:6px;color:#86918b;vertical-align:baseline
}
body:not(.installer-mode) .dashboard-search-field .ui-icon{
 width:18px;height:18px;color:#81908b
}
body:not(.installer-mode) .dashboard-quicklinks .quick-icon .ui-icon{
 width:24px;height:24px
}
body:not(.installer-mode) .dashboard-quicklinks .quick-icon{
 background:#f2f8eb;color:#73aa17
}
body:not(.installer-mode) .dashboard-quicklinks b{font-size:13px}
body:not(.installer-mode) .dashboard-table th:nth-child(2){min-width:150px}
body:not(.installer-mode) .dashboard-table .mivo-reading-number{font-weight:700}
body:not(.installer-mode) .topbar{
 display:flex;gap:24px;justify-content:space-between;padding:0 28px
}
.topbar-brand-logo{display:none;width:auto;height:34px;max-width:150px;object-fit:contain}
.topbar-breadcrumb{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:#67736b;font-size:12px}
.topbar-breadcrumb button{
 background:none;border:0;color:#65746b;font-size:12px;padding:8px 2px;
 white-space:nowrap;cursor:pointer
}
.topbar-breadcrumb button:hover{color:#668f15}
.topbar-breadcrumb strong{color:#253328;font-size:12px;white-space:nowrap}
.topbar-breadcrumb .breadcrumb-project{
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px
}
.topbar-breadcrumb .breadcrumb-separator{display:flex;color:#a1aa9c}
.topbar-breadcrumb .breadcrumb-separator .ui-icon{width:13px;height:13px}
.topbar-actions{display:flex;align-items:center;gap:24px;margin-left:auto;flex:0 0 auto;min-width:0}
.topbar-project-field{position:relative}
.topbar-project-field select{
 border:1px solid #e4eadf;border-radius:9px;background:#fff;
 min-width:180px;max-width:280px;min-height:42px;
 padding:9px 13px;color:#26362a;font-size:12px;font-weight:720;
 box-shadow:0 3px 14px #233e1407;
}
body:not(.installer-mode) .brand{align-items:flex-start;gap:2px}
body:not(.installer-mode) .brand-logo{max-height:58px;max-width:181px}
body:not(.installer-mode) .brand small{font-size:8px!important;margin:0 0 0 3px!important;letter-spacing:2px!important}
body:not(.installer-mode) .topbar-project-field select:focus-visible{
 outline:2px solid #93b54c;outline-offset:2px
}
/* Installer: the first row of each card echoes the icon/status language of the mockup.
   Scanning, duplicate warnings, notes and historic values remain inside each card. */
body.installer-mode .topbar{
 display:flex;justify-content:space-between;gap:12px;height:64px;
 padding:0 18px;position:sticky;top:0;z-index:12
}
body.installer-mode .topbar-brand-logo{display:block}
body.installer-mode .topbar-breadcrumb{display:none}
body.installer-mode .topbar-actions{margin-left:auto}
body.installer-mode .topbar-project-field{display:none}
body.installer-mode .installer-screen{
 max-width:560px
}
body.installer-mode .installer-unit-screen .installer-heading{
 margin-bottom:17px;padding:7px 2px 9px
}
body.installer-mode .installer-unit-screen .installer-heading h1{
 font-size:29px;margin:6px 0 7px;letter-spacing:-.85px
}
body.installer-mode .installer-unit-screen .installer-heading .installer-count{
 margin:9px 0 0
}
body.installer-mode .installer-unit-screen .installer-heading .installer-subtitle{
 margin:0 0 7px
}
body.installer-mode .installer-section-title{color:#334131;font-size:15px;margin:19px 0 12px}
body.installer-mode .installer-meter{
 display:block;background:#fff;border:1px solid #e9eee8;
 border-radius:16px;box-shadow:0 5px 19px #2b492109;
 padding:17px 17px 19px;margin:0 0 12px;
}
body.installer-mode .installer-meter:first-of-type{padding:17px}
body.installer-mode .installer-meter:last-of-type{border:1px solid #e9eee8}
body.installer-mode .installer-meter-title{
 display:flex;align-items:center;justify-content:space-between;
 font-size:15px;font-weight:760;gap:9px;
 margin:0 0 8px;min-height:40px
}
body.installer-mode .installer-meter-identity{
 display:inline-flex;align-items:center;gap:10px;
 min-width:0;color:#1f2e26;font-size:16px;font-weight:770
}
body.installer-mode .installer-meter-title .meter-visual{width:30px;height:35px}
body.installer-mode .installer-meter-title .meter-visual .ui-icon{width:27px;height:27px}
body.installer-mode .installer-meter-title .mivo-status{
 border-radius:20px;padding:7px 9px;font-size:11px;flex-shrink:0
}
body.installer-mode .installer-meter-title .mivo-status .ui-icon{width:14px;height:14px}
body.installer-mode .installer-meter-mivo{margin:0 0 6px;padding-left:40px}
body.installer-mode .installer-meter-reading{
 margin:2px 0 13px;padding-left:40px
}
body.installer-mode .installer-meter-reading .mivo-reading{
 background:transparent;border:0;border-radius:0;display:flex;
 flex-direction:column;padding:0;gap:4px;min-width:0
}
body.installer-mode .installer-meter-reading .mivo-reading-number{
 font-size:19px;letter-spacing:-.4px;color:#26362b
}
body.installer-mode .installer-meter-reading .mivo-reading small{
 color:#818e85;font-size:11px
}
body.installer-mode .installer-meter-reading>.muted{
 font-size:11px;color:#8b9692
}
body.installer-mode .installer-scan-button{
 display:inline-flex;align-items:center;gap:7px;
 border:1px solid #dce7d0;color:#567e15;
 background:#f6faee;padding:10px 13px;
 min-height:41px;font-size:12px
}
body.installer-mode .installer-scan-button .ui-icon{
 width:17px;height:17px
}
body.installer-mode .installer-address-input{
 min-height:49px;margin-top:10px;
 font-size:17px;color:#24342b;border-color:#d8e5d4;
 letter-spacing:.45px;border-radius:10px;
}
body.installer-mode .installer-note-input{
 min-height:43px;border-radius:9px;border-color:#e3e9e1
}
body.installer-mode .installer-note-label{color:#738077;font-size:11px}
body.installer-mode .installer-health-chip{
 flex-wrap:wrap;gap:6px
}
body.installer-mode .installer-health-chip .health-chip-icon{
 display:inline-flex;align-items:center;justify-content:center;
 flex:0 0 auto;width:22px
}
body.installer-mode .installer-health-chip .health-chip-icon .ui-icon{
 width:19px;height:19px
}
body.installer-mode .installer-health-chip strong{
 font-size:21px
}
body.installer-mode .installer-health-chip>span:last-child{
 flex-basis:100%;font-size:11px
}
body.installer-mode .installer-unit-screen .installer-operator-box{
 margin-top:8px
}
@media(max-width:1200px){
 body:not(.installer-mode) .topbar-actions{gap:10px}
 body:not(.installer-mode) .topbar{padding:0 19px}
 body:not(.installer-mode) .topbar-project-field select{min-width:130px;max-width:185px}
 body:not(.installer-mode) .dashboard-status-card{padding:14px 11px}
 body:not(.installer-mode) .dashboard-status-card strong{font-size:29px}
}
@media(max-width:850px){
 body:not(.installer-mode) .topbar-breadcrumb{display:none}
 body:not(.installer-mode) .topbar-brand-logo{display:block;max-width:130px}
 body:not(.installer-mode) .topbar-actions{max-width:60%}
}
@media(max-width:650px){
 body:not(.installer-mode) .topbar{height:62px;gap:9px}
 body:not(.installer-mode) .topbar-brand-logo{height:28px;max-width:107px}
 body:not(.installer-mode) .topbar-project-field select{
  min-width:110px;max-width:155px;padding:7px 8px;font-size:11px
 }
 body:not(.installer-mode) .dashboard-status-card{
  min-height:95px;padding:12px 13px
 }
 body:not(.installer-mode) .dashboard-status-card strong{font-size:26px}
 body:not(.installer-mode) .dashboard-status-card .status-tile-label{font-size:11px}
 body:not(.installer-mode) .dashboard-status-card .status-tile-icon .ui-icon{
  width:19px;height:19px
 }
 body.installer-mode .topbar{height:62px;padding:0 14px}
 body.installer-mode .topbar-brand-logo{height:30px;max-width:130px}
 body.installer-mode .installer-meter{padding:15px;margin-bottom:10px}
 body.installer-mode .installer-meter:first-of-type{padding:15px}
 body.installer-mode .installer-meter-identity{font-size:15px}
 body.installer-mode .installer-meter-title .mivo-status{font-size:10px}
 body.installer-mode .installer-unit-screen .installer-heading h1{font-size:26px}
}

/* Compact status filter icons and functional apartment breadcrumbs */
body.installer-mode .installer-issue-tab{
 display:grid;grid-template-columns:21px 1fr auto;
 gap:7px;align-items:center;text-align:left;
}
body.installer-mode .installer-issue-tab .ui-icon{
 width:19px;height:19px;grid-column:1
}
body.installer-mode .installer-issue-tab>span{
 grid-column:2;min-width:0;line-height:1.2
}
body.installer-mode .installer-issue-tab>b{grid-column:3;text-align:right}
body.installer-mode .installer-issue-type{
 display:inline-flex;align-items:center;gap:9px
}
body.installer-mode .installer-issue-type .meter-visual{
 width:24px;height:27px
}
body.installer-mode .installer-issue-type .meter-visual .ui-icon{
 width:20px;height:20px
}
body.installer-mode .installer-page-breadcrumb{
 display:flex;align-items:center;gap:7px;
 color:#8b9790;font-size:11px;margin:5px 0 13px;
 white-space:nowrap;overflow:hidden
}
body.installer-mode .installer-page-breadcrumb button{
 border:0;background:none;color:#71806e;
 padding:4px 0;font-size:11px;white-space:nowrap
}
body.installer-mode .installer-page-breadcrumb button:hover{
 color:#689616;text-decoration:underline
}
body.installer-mode .installer-page-breadcrumb .ui-icon{
 width:12px;height:12px;color:#aab4a8
}
body.installer-mode .installer-page-breadcrumb strong{
 color:#323f33;min-width:0;
 overflow:hidden;text-overflow:ellipsis
}
body.installer-mode .installer-secondary-label{
 display:block;margin-top:8px;
 color:#7a887d;font-size:11px;font-weight:660
}

/* Harmonize the side navigation and bottom bar with stroke icons. */
body:not(.installer-mode) #nav-admin,
body:not(.installer-mode) #nav-installer{
 display:flex;align-items:center;gap:13px;text-align:left
}
body:not(.installer-mode) #nav-admin .nav-icon,
body:not(.installer-mode) #nav-installer .nav-icon{
 display:inline-flex;align-items:center;justify-content:center;
 width:20px;height:20px;color:#788579
}
body:not(.installer-mode) #nav-admin.active .nav-icon,
body:not(.installer-mode) #nav-installer.active .nav-icon{color:#75aa18}
body:not(.installer-mode) .project-nav .nav-icon{
 display:inline-flex;align-items:center;justify-content:center;
 width:21px;height:22px;flex:0 0 21px;color:#849488
}
body:not(.installer-mode) .project-nav-link.selected .nav-icon{color:#70a30f}
body:not(.installer-mode) .project-nav .nav-icon .ui-icon,
body:not(.installer-mode) #nav-admin .ui-icon,
body:not(.installer-mode) #nav-installer .ui-icon{
 width:19px;height:19px;stroke-width:1.85
}
body.installer-mode .installer-bottom-nav button .ui-icon{
 width:23px;height:23px;color:#849685
}
body.installer-mode .installer-bottom-nav button.selected .ui-icon{color:#75a90e}


/* Project-scoped meter management */
body:not(.installer-mode) .admin-meter-page .heading{align-items:flex-start;flex-wrap:wrap}
body:not(.installer-mode) .admin-meter-page .heading .actions{justify-content:flex-end}
body:not(.installer-mode) .admin-meter-page .stats{margin-top:18px}
body:not(.installer-mode) .admin-meter-table-head{display:flex;align-items:center;flex-wrap:wrap}
body:not(.installer-mode) .admin-meter-table-head .search{width:100%;max-width:360px}
body:not(.installer-mode) .admin-meter-table{min-width:1050px}
body:not(.installer-mode) .admin-meter-table th{white-space:nowrap}
body:not(.installer-mode) .admin-meter-table td{vertical-align:middle;white-space:normal}
body:not(.installer-mode) .admin-meter-table td:nth-child(3){min-width:175px}
body:not(.installer-mode) .admin-meter-table td:nth-child(4){min-width:135px}
body:not(.installer-mode) .admin-meter-type{display:inline-flex;align-items:center;gap:7px}
body:not(.installer-mode) .admin-meter-type .meter-visual{display:inline-flex;flex-shrink:0}
body:not(.installer-mode) .admin-meter-group{font-size:12px;font-weight:700;color:#425632;white-space:nowrap}
body:not(.installer-mode) .admin-meter-sub{display:block;margin-top:4px;font-size:11px;color:#899589}
body:not(.installer-mode) .admin-meter-row-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
body:not(.installer-mode) .admin-meter-row-actions .btn{font-size:11px;min-height:32px;padding:6px 9px;white-space:nowrap}
body:not(.installer-mode) .admin-meter-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;color:#677566;font-size:12px}
body:not(.installer-mode) .admin-meter-warning{padding:0 20px 17px;margin:0}
body:not(.installer-mode) .admin-meter-editor{border-color:#d8e6c8;scroll-margin-top:20px}
body:not(.installer-mode) .admin-meter-editor .panelheading{background:#f8fbf2}
body:not(.installer-mode) .admin-meter-editor .stack{gap:17px}
body:not(.installer-mode) .admin-meter-editor .field{min-width:0}
body:not(.installer-mode) .admin-meter-editor .field select{min-height:44px}
body:not(.installer-mode) .admin-meter-editor .field .hint{margin:0}
body:not(.installer-mode) .admin-meter-details{border-top:1px solid #e7ede0;padding-top:12px}
body:not(.installer-mode) .admin-meter-details summary{cursor:pointer;font-weight:700;color:#4c6142;margin-bottom:14px}
body:not(.installer-mode) .admin-meter-editor .row-actions{flex-wrap:wrap}
@media(max-width:850px){
  body:not(.installer-mode) .admin-meter-page .heading .actions{justify-content:flex-start}
  body:not(.installer-mode) .admin-meter-pagination{flex-wrap:wrap;padding:12px}
}

/* Separate type catalog from apartment and meter point management. */
body:not(.installer-mode) .admin-meter-types-page .admin-meter-types-table{min-width:760px}
body:not(.installer-mode) .admin-meter-types-page .admin-meter-types-table td{vertical-align:middle}
body:not(.installer-mode) .admin-meter-unit-panel{margin-bottom:20px}
body:not(.installer-mode) .admin-meter-unit-panel .admin-meter-unit-table-wrap{overflow-x:auto;overflow-y:visible}
body:not(.installer-mode) .admin-meter-unit-panel .admin-meter-table{min-width:700px}
body:not(.installer-mode) .admin-meter-unit-panel .admin-meter-table th{position:sticky;top:0;z-index:1}
body:not(.installer-mode) .admin-meter-unit-panel .admin-meter-warning{margin:0}
body:not(.installer-mode) #admin-type-editor,
body:not(.installer-mode) #admin-unit-editor{scroll-margin-top:20px}
@media(max-width:650px){
  body:not(.installer-mode) .admin-meter-types-page .admin-meter-types-table{min-width:650px}
  body:not(.installer-mode) .admin-meter-unit-panel .admin-meter-table{min-width:620px}
}

/* Expand individual apartments to reveal their meters inside one unified list. */
body:not(.installer-mode) .admin-meter-unit-panel .admin-meter-table-head{gap:16px;justify-content:space-between}
body:not(.installer-mode) .admin-meter-unit-panel .admin-meter-table-head h2{margin:0}
body:not(.installer-mode) .admin-meter-unit-panel .admin-meter-table-head .hint{margin:6px 0 0}
body:not(.installer-mode) .admin-meter-unit-panel .admin-grouped-meter-table{min-width:840px;border-collapse:collapse;width:100%}
body:not(.installer-mode) .admin-grouped-meter-table>tbody>.admin-unit-clickable{cursor:pointer;transition:background .12s ease}
body:not(.installer-mode) .admin-grouped-meter-table>tbody>.admin-unit-clickable:hover{background:#f5faec}
body:not(.installer-mode) .admin-grouped-meter-table>tbody>.admin-unit-clickable.is-open{background:#f1f7e5}
body:not(.installer-mode) .admin-unit-clickable .admin-unit-toggle{display:inline-flex;align-items:center;gap:10px;cursor:pointer;border:0;background:transparent;color:inherit;padding:8px 6px;min-height:40px;text-align:left}
body:not(.installer-mode) .admin-unit-clickable .admin-unit-toggle:focus-visible{outline:2px solid #83af2c;outline-offset:2px;border-radius:6px}
body:not(.installer-mode) .admin-unit-chevron{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border:1px solid #dbe8c8;border-radius:7px;color:#6d9c19;font-size:20px;font-weight:700}
body:not(.installer-mode) .admin-unit-meter-count{color:#586a51;font-weight:600;white-space:nowrap}
body:not(.installer-mode) .admin-grouped-meter-table>tbody>.admin-unit-expanded>td{padding:0;border-top:0;background:#f9fbf6}
body:not(.installer-mode) .admin-unit-expanded-inner{margin:0 18px 16px 35px;border:1px solid #dfe9d5;border-radius:10px;overflow:hidden;background:#fff}
body:not(.installer-mode) .admin-unit-expanded-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 17px;background:#f8faf5;color:#445643;font-size:13px}
body:not(.installer-mode) .admin-unit-expanded-heading span{font-size:12px;color:#7b8b79}
body:not(.installer-mode) .admin-unit-expanded-inner .table-scroll{overflow-x:auto}
body:not(.installer-mode) .admin-unit-expanded-inner .admin-unit-meter-table{width:100%;min-width:780px;border-collapse:collapse}
body:not(.installer-mode) .admin-unit-meter-table th{font-size:11px;white-space:nowrap;text-align:left;padding:12px 14px;background:#fbfcf9;color:#72806f}
body:not(.installer-mode) .admin-unit-meter-table td{padding:12px 14px;border-top:1px solid #edf1e8;vertical-align:middle}
body:not(.installer-mode) .admin-unit-meter-table .admin-meter-type{gap:9px;white-space:nowrap}
body:not(.installer-mode) .admin-meter-empty{padding:25px!important;text-align:center;color:#778577}
@media(max-width:850px){
 body:not(.installer-mode) .admin-unit-expanded-inner{margin:0 8px 12px}
 body:not(.installer-mode) .admin-meter-unit-panel .admin-meter-table-head .search{max-width:none}
}

/* Multiple MIVO gateways per project; these controls never appear in installer mode. */
body:not(.installer-mode) .admin-mivo-devices{display:flex;flex-direction:column;gap:10px;margin:12px 0 18px}
body:not(.installer-mode) .admin-mivo-device{background:#f9fcf5;border:1px solid #e1ead7;border-radius:12px;padding:14px 16px}
body:not(.installer-mode) .admin-mivo-device-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
body:not(.installer-mode) .admin-mivo-device-head b{color:#364a32;font-size:14px}
body:not(.installer-mode) .admin-mivo-device-head span{font-size:12px;color:#687b62}
body:not(.installer-mode) .admin-mivo-device-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:8px}
body:not(.installer-mode) .admin-mivo-device-form label{display:flex;flex-direction:column;gap:5px;min-width:150px;flex:1;color:#607358;font-size:12px;font-weight:650}
/* Match the communication dropdown to the other MIVO input fields. */
body:not(.installer-mode) .admin-mivo-device-form input,
body:not(.installer-mode) .admin-mivo-device-form select{
  box-sizing:border-box;width:100%;height:40px;min-height:40px;min-width:0;
  border-radius:8px;border:1px solid #d8e3ce;padding:8px 10px;
  color:#30442c;background:#fff;font-family:inherit;font-size:13px;font-weight:500;
}
body:not(.installer-mode) .admin-mivo-device-form select{cursor:pointer;padding-right:8px}
body:not(.installer-mode) .admin-mivo-device-form .btn{min-height:40px}
body:not(.installer-mode) .admin-mivo-add{padding:12px 0;margin-bottom:16px;border-bottom:1px solid #e6eddf}
body:not(.installer-mode) .admin-mivo-add>summary{cursor:pointer;font-weight:700;color:#55802c}
body:not(.installer-mode) .admin-mivo-add .stack{padding:12px 0}
body:not(.installer-mode) #crossref-file{max-width:100%}
body:not(.installer-mode) #admin-mivo-unit{min-height:44px}
@media(max-width:620px){
 body:not(.installer-mode) .admin-mivo-device-form label{flex-basis:100%}
 body:not(.installer-mode) .admin-mivo-device-head{flex-wrap:wrap}
}


/* Complete, self-hosted EL-Online logo; never crop or overlay its lettering. */
.brand .brand-home{
  display:flex;
  width:100%;
  min-width:0;
  height:100%;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  line-height:0;
}
.brand .brand-home:focus-visible,
.topbar-logo-home:focus-visible{
  outline:2px solid #89ad16;
  outline-offset:3px;
  border-radius:4px;
}
.brand .brand-home:hover,.topbar-logo-home:hover{opacity:.88}
body:not(.installer-mode) .brand{
  height:96px;
  min-height:96px;
  padding:0 17px;
  justify-content:center;
  align-items:center;
}
body:not(.installer-mode) .brand .brand-home .brand-logo{
  display:block;
  width:100%;
  height:auto;
  max-height:70px;
  max-width:none;
  object-fit:contain;
  object-position:center;
}
body.installer-mode .brand .brand-home .brand-logo{
  display:block;
  width:100%;
  height:auto;
  max-width:210px;
  object-fit:contain;
}
.topbar-logo-home{display:none;line-height:0;text-decoration:none}
body.installer-mode .topbar-logo-home{
  display:flex;
  align-items:center;
  width:min(155px,45vw);
  flex-shrink:0;
}
body.installer-mode .topbar-logo-home .topbar-brand-logo{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  max-height:37px;
  object-fit:contain;
}
@media(max-width:650px){
  body:not(.installer-mode) .brand{
    min-width:147px;
    width:147px;
    min-height:66px;
    height:66px;
    padding:0 10px;
  }
  body:not(.installer-mode) .brand .brand-home .brand-logo{
    max-height:40px;
  }
}

/* Meter status: show installer registration notes without squeezing meter IDs. */
body:not(.installer-mode) .dashboard-table{min-width:1100px}
body:not(.installer-mode) .dashboard-table .dashboard-table-note{
  min-width:165px;
  max-width:300px;
  white-space:pre-line;
  overflow-wrap:anywhere;
  color:#49564b;
}

/* Admin status actions and wired MIVO scan – use existing lime-green palette. */
body:not(.installer-mode) .dashboard-title-actions{
  display:flex;align-items:center;justify-content:flex-end;
  flex-wrap:wrap;gap:9px;
}
body:not(.installer-mode) .dashboard-title-actions .btn{
  min-height:38px;white-space:nowrap;
}
body:not(.installer-mode) .dashboard-scan-panel{
  border:1px solid #dfe8ce;background:#fff;border-radius:13px;
  padding:17px 20px;margin:0 0 16px;box-shadow:0 5px 18px #25351e0a;
}
body:not(.installer-mode) .dashboard-scan-panel h3{
  margin:0 0 5px;font-size:17px;color:#223322;
}
body:not(.installer-mode) .dashboard-scan-panel p{line-height:1.5}
body:not(.installer-mode) .dashboard-scan-form{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:15px 0;
}
body:not(.installer-mode) .dashboard-scan-form label{
  font-size:13px;font-weight:700;color:#38483b;
}
body:not(.installer-mode) .dashboard-scan-form select{
  min-width:180px;flex:1;max-width:340px;
}
@media(max-width:750px){
  body:not(.installer-mode) .dashboard-titlebar{align-items:flex-start;flex-wrap:wrap}
  body:not(.installer-mode) .dashboard-title-actions{
    width:100%;justify-content:flex-start;
  }
  body:not(.installer-mode) .dashboard-title-actions .dashboard-progress{
    margin-left:auto;
  }
  body:not(.installer-mode) .dashboard-scan-form{
    flex-direction:column;align-items:stretch;
  }
  body:not(.installer-mode) .dashboard-scan-form select{max-width:none;width:100%}
  body:not(.installer-mode) .dashboard-scan-panel{padding:14px}
}


/* One consistent, accessible EOC dialog for confirmations and input prompts. */
.eoc-modal{
  width:min(480px,calc(100vw - 32px));
  max-width:480px;
  max-height:calc(100dvh - 40px);
  padding:0;
  margin:auto;
  overflow:auto;
  border:1px solid #dde6d5;
  border-radius:16px;
  background:#fff;
  color:#26362a;
  box-shadow:0 26px 80px rgba(16,33,22,.25);
}
.eoc-modal::backdrop{background:rgba(14,28,20,.52);backdrop-filter:blur(3px)}
.eoc-modal-form{margin:0;display:block}
.eoc-modal-accent{height:5px;background:#8cab16}
.eoc-modal-danger .eoc-modal-accent{background:#c95145}
.eoc-modal-content{padding:24px 24px 10px}
.eoc-modal-content h2{font-size:20px;font-weight:750;line-height:1.25;letter-spacing:-.3px;margin:0 0 11px;color:#253625}
.eoc-modal-description{white-space:pre-line;overflow-wrap:anywhere;font-size:14px;line-height:1.6;color:#536356;margin:0 0 14px}
.eoc-modal-note{font-size:12px;line-height:1.6;margin:0 0 12px;color:#657466}
.eoc-modal-input-label{display:block;margin:16px 0 10px;font-size:13px;font-weight:700;color:#3d503e}
.eoc-modal-input{display:block;box-sizing:border-box;width:100%;margin-top:7px;min-height:44px;padding:10px 12px;border:1px solid #cfdcca;border-radius:9px;background:#fff;color:#223327;font:inherit;font-weight:500}
.eoc-modal-input:focus-visible{outline:2px solid #8cab16;outline-offset:2px}
.eoc-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 24px 24px}
.eoc-modal-actions .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;white-space:normal;text-align:center}
.eoc-modal-danger-button{background:#bd493e;color:#fff;border:1px solid #bd493e}
.eoc-modal-danger-button:hover{background:#a9372e;border-color:#a9372e}
.eoc-modal-cancel{background:#fff}
@media(max-width:440px){
  .eoc-modal-content{padding:20px 18px 8px}
  .eoc-modal-actions{padding:12px 18px 20px}
  .eoc-modal-content h2{font-size:19px}
}


/* Project navigation: the long import title wraps neatly without clipping.
   At small screens the sidebar becomes a horizontally scrolling tab strip. */
@media(min-width:651px){
  body:not(.installer-mode) .project-nav .nav{
    white-space:normal;
    align-items:center;
    height:auto;
    min-height:46px;
    text-align:left;
  }
  body:not(.installer-mode) .project-nav .nav > span:last-child{
    flex:1 1 auto;
    min-width:0;
    overflow-wrap:break-word;
    line-height:1.3;
  }
}
@media(max-width:650px){
  body:not(.installer-mode) .project-nav .nav{
    width:max-content;
    min-width:max-content;
    white-space:nowrap;
  }
  body:not(.installer-mode) .project-nav .nav > span:last-child{
    white-space:nowrap;
  }
}

/* Successful saves and refreshes must not scroll users to the top of a
   working project. Display their feedback near the viewport instead. */
body.admin-project-view #flash:not(:empty){
  position:fixed;
  top:82px;
  right:22px;
  width:min(440px,calc(100vw - 28px));
  z-index:90;
  pointer-events:none;
}
body.admin-project-view #flash .alert{
  padding:13px 16px;
  margin:0;
  box-shadow:0 9px 32px rgba(22,40,22,.16);
  font-weight:600;
  line-height:1.45;
}
@media(max-width:650px){
  body.admin-project-view #flash:not(:empty){
    top:62px;
    right:12px;
  }
}


/* 0.16.24 — six Mätarstatus tiles, including per-reading zero-approval summary. */
body:not(.installer-mode) .dashboard-status-card.zero{
  background:#fff6e8;color:#a16a1c;border-color:#f1dcaf;grid-template-rows:25px 1fr auto;
}
body:not(.installer-mode) .dashboard-status-card.zero.is-selected{outline-color:#d79c2c}
body:not(.installer-mode) .dashboard-status-card.zero .dashboard-zero-breakdown{
  grid-column:1/-1;grid-row:3;display:block;margin:3px 0 0;padding-top:4px;
  font-size:11px;line-height:1.35;color:#8d611e;text-align:center;
}
@media(min-width:1320px){
 body:not(.installer-mode) .dashboard-status-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(min-width:851px) and (max-width:1319px){
 body:not(.installer-mode) .dashboard-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
 body:not(.installer-mode) .dashboard-status-card.all{grid-column:auto;min-height:86px}
 body:not(.installer-mode) .dashboard-status-card.zero{min-height:100px}
 body:not(.installer-mode) .dashboard-status-card.zero .dashboard-zero-breakdown{font-size:10px}
}

/* Admin: fit the combined zero / negative consumption title and details. */
body:not(.installer-mode) .dashboard-status-card.zero .status-tile-label{
  overflow-wrap:anywhere;hyphens:auto;font-size:12px;line-height:1.22;
}
body:not(.installer-mode) .dashboard-status-card.zero .dashboard-zero-breakdown{
  grid-column:1 / -1;line-height:1.35;overflow-wrap:anywhere;
}
