:root {
  --red: #e4002b;
  --gold: #E4A11B;
  --green: #1a1a1a;
  --green-d: #000000;
  --water: #1E88E5;
  --water-d: #1565C0;
  --ink: #243240;
  --mut: #7c8a99;
  --line: #e4e8ee;
  --bg: #ffffff;
  --card: #fff;
  --panel: #f5f8f5;
  --warn: #e8a33d;
  --bad: #d8413a;
  --ok: #3fae6a;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%
}

body {
  font: 14px/1.45 "Segoe UI", system-ui, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink)
}

.hidden {
  display: none !important
}

button {
  font: inherit;
  cursor: pointer
}

#login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #0d0d0d
}

#login .box {
  background: #1c1c1c;
  color: #dfe6ee;
  padding: 28px 30px;
  border-radius: 10px;
  width: 360px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4)
}

#login h2 {
  margin: 0 0 4px;
  color: #fff;
  font-weight: 600;
  text-align: center
}

#login .logo {
  text-align: center;
  margin-bottom: 14px
}

#login .logo img {
  width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
  border-radius: 10px;
  padding: 22px 26px;
  box-sizing: border-box
}

#login label {
  display: block;
  font-size: 13px;
  color: #9fb0bf;
  margin: 12px 0 4px
}

#login input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 6px;
  border: 1px solid #3a444d;
  background: #1a2127;
  color: #fff
}

#login button {
  width: 100%;
  margin-top: 18px;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  color: #1a1a1a;
  font-weight: 700
}

#login .err {
  color: #ff8a8a;
  font-size: 12px;
  margin-top: 10px;
  min-height: 16px
}

#login .hint {
  font-size: 11px;
  color: #7c8a99;
  margin-top: 6px
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh
}

.ds-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 76px;
  min-height: 0;
  padding: 0 50px;
  box-sizing: border-box;
  background: #fff;
  gap: 16px;
  position: relative;
  border-bottom: 1px solid #ececef;
  flex-shrink: 0
}

.ds-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 1 auto;
  order: 0;
  min-height: 58px
}

.ds-logo {
  height: 72px;
  width: auto;
  align-self: center;
  object-fit: contain;
  margin: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0 8px;
  box-sizing: border-box
}

.ds-col {
  display: flex;
  flex-direction: column
}

.ds-col-store {
  justify-content: center
}

.ds-lbl {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #A1A1AA;
  text-align: center;
  margin: 0 0 6px 0;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box
}

.ds-store,
.ds-sel {
  font-weight: 600;
  font-size: 15px;
  padding: 6px 24px 6px 10px;
  color: #18181B;
  background-color: #FAFAFA;
  border: 1px solid #E4E4E7;
  border-radius: 6px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2371717A' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center
}

.ds-store {
  width: 200px
}

.ds-sel {
  font-weight: 500;
  color: #52525B;
  background-color: #fff
}

.ds-store:hover,
.ds-sel:hover {
  border-color: #D4D4D8;
  background-color: #F4F4F5
}

.ds-store:focus,
.ds-sel:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(200, 16, 46, .12);
  border-color: var(--green-d)
}

.dashboard-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
  flex: 1 1 auto;
  min-width: 0
}

.ds-tray {
  display: flex;
  align-items: center;
  background: #F4F4F5;
  border-radius: 10px;
  padding: 4px;
  gap: 2px
}

.dashboard-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  font-size: 18px;
  font-weight: 500;
  color: #71717A;
  cursor: pointer;
  position: relative;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -.01em;
  border-radius: 8px;
  transition: all 150ms ease
}

.dashboard-pills:hover {
  color: #3F3F46;
  background-color: rgba(0, 0, 0, .05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .10)
}

.dashboard-pills.active {
  color: #18181B;
  font-weight: 600;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .14), 0 4px 10px rgba(0, 0, 0, .10)
}

.tws-inline {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  gap: 10px;
  min-height: 58px
}

.ds-lh-tray {
  display: inline-flex;
  align-items: stretch;
  background: #F4F4F5;
  border-radius: 7px;
  padding: 2px;
  margin-bottom: 6px;
  align-self: center;
  height: 24px;
  box-sizing: border-box
}

.ds-lh {
  font-size: 13px;
  font-weight: 600;
  color: #71717A;
  padding: 0 11px;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: all 120ms ease;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.ds-lh.active {
  background: #fff;
  color: #18181B;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06)
}

.ds-lh:not(.active):hover {
  color: #3F3F46
}

.ds-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C4C7C9;
  margin-right: 6px;
  vertical-align: -1px;
  transition: background 150ms ease
}

#segLive.active .ds-live-dot {
  background: #D32F2F;
  animation: tws-live-pulse 1.5s ease-in-out infinite
}

@keyframes tws-live-pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(211, 47, 47, .5)
  }

  50% {
    opacity: .55;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0)
  }
}

#tws-nav-group {
  display: flex;
  align-items: center;
  gap: 0
}

.ds-arrow {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #71717A;
  user-select: none;
  border: 1px solid #E4E4E7;
  background: #fff;
  font-size: 12px;
  transition: all 120ms ease
}

#mPrev {
  border-radius: 6px 0 0 6px
}

#mNext {
  border-radius: 0 6px 6px 0
}

.ds-arrow:hover {
  background-color: #FAFAFA;
  border-color: #D4D4D8;
  color: #18181B
}

.ds-arrow.ds-arrow-disabled {
  opacity: .3;
  pointer-events: none;
  cursor: default
}

.tws-clickable { cursor: pointer }
.tws-clickable:hover { text-decoration: underline }

.fr-quicklink { cursor: pointer; border-radius: 6px; padding: 2px 6px; margin: 0 -6px; transition: background 120ms ease }
.fr-quicklink:hover { background: #f1f5f3 }
.gen-quicklink { cursor: pointer; border-radius: 6px; padding: 2px 6px; margin: 0 -6px; transition: background 120ms ease }
.gen-quicklink:hover { background: #f1f5f3 }
.row-flash { animation: rowFlash 1.6s ease-out }
@keyframes rowFlash { 0% { background: #fff7d6 } 100% { background: transparent } }

.cat-pie .seg { cursor: pointer; transform-box: view-box; transform-origin: 150px 118px; transition: transform .25s cubic-bezier(.34,1.56,.64,1) }
.cat-pie .seg:hover { transform: scale(1.06); animation: catPulse 1.8s ease-in-out .25s infinite }
@keyframes catPulse { 0%, 100% { transform: scale(1.055) } 50% { transform: scale(1.09) } }

#dpChart { position: relative }

#dpChart:has(.bms-spin), #kpChart:has(.bms-spin), .dpop .fcc-chart:has(.bms-spin) {
  display: flex; align-items: center; justify-content: center; min-height: 230px
}

.tws-dp { position: fixed; z-index: 1200; background: #fff; border: 1px solid #E4E4E7; border-radius: 10px; box-shadow: 0 10px 30px rgba(16,24,40,.18); padding: 10px; width: 280px; font-family: 'Segoe UI',Roboto,system-ui,sans-serif; user-select: none }
.tws-dp-hd { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 8px }
.tws-dp-title { font-weight: 700; font-size: 14px; color: #18181B }
.tws-dp-nav { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; color: #52525B; font-size: 16px }
.tws-dp-nav:hover { background: #F4F4F5 }
.tws-dp-dow { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 4px }
.tws-dp-dow span { text-align: center; font-size: 11px; font-weight: 700; color: #A1A1AA; padding: 2px 0 }
.tws-dp-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px }
.tws-dp-empty { height: 32px }
.tws-dp-day { height: 32px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #3F3F46; cursor: pointer; border-radius: 6px }
.tws-dp-day:hover { background: #FDECEE }
.tws-dp-day.in { background: #E6F4EA; border-radius: 0 }
.tws-dp-day.sel { background: #1F8B4D; color: #fff; border-radius: 6px; font-weight: 700 }
.tws-dp-day.fut { color: #D4D4D8 }
.tws-dp-times { display: flex; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #EFEFF1 }
.tws-dp-tl { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 700; color: #A1A1AA; text-transform: uppercase; letter-spacing: .03em }
.tws-dp-time { border: 1px solid #E4E4E7; border-radius: 6px; padding: 5px 7px; font-size: 13px; color: #18181B; font-family: inherit; background: #fff }
.tws-dp-time:focus { outline: none; border-color: #1F8B4D }
.tws-dp-agg { margin-top: 10px; padding-top: 10px; border-top: 1px solid #EFEFF1 }
.tws-dp-int { margin-top: 10px; padding-top: 10px; border-top: 1px solid #EFEFF1 }
.tws-dp-intsel { width: 100%; box-sizing: border-box; border: 1px solid #E4E4E7; border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px; color: #18181B; background: #fff; cursor: pointer }
.tws-dp-intsel:focus { outline: none; border-color: #1F8B4D }
.tws-dp-cmp { margin-top: 10px; padding-top: 10px; border-top: 1px solid #EFEFF1; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #18181B; user-select: none }
.tws-dp-cmp input { width: 15px; height: 15px; accent-color: #1F8B4D; cursor: pointer; margin: 0 }
.tws-dp-agl { display: block; font-size: 11px; font-weight: 700; color: #A1A1AA; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 5px }
.tws-dp-aggseg { display: flex; gap: 2px; background: #F4F4F5; border-radius: 6px; padding: 2px }
.tws-dp-aggbtn { flex: 1; border: 0; background: transparent; color: #52525B; border-radius: 4px; padding: 5px 4px; font-weight: 600; cursor: pointer; font-size: 12px; font-family: inherit }
.tws-dp-aggbtn.active { background: #1F8B4D; color: #fff }
.tws-dp-aggbtn:hover:not(.active) { color: #18181B }
.tws-dp-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px }
.tws-dp-btn { border: 0; background: #F4F4F5; color: #3F3F46; border-radius: 6px; padding: 6px 14px; font-weight: 600; cursor: pointer; font-size: 13px }
.tws-dp-btn.primary { background: #1F8B4D; color: #fff }
.tws-dp-btn:hover { filter: brightness(.97) }

.tws-range-label {
  font-size: 13px;
  font-weight: 600;
  color: #18181B;
  width: 160px;
  flex: 0 0 160px;
  text-align: center;
  cursor: pointer;
  letter-spacing: -.01em;
  padding: 0 4px;
  white-space: nowrap;
  position: relative;
  border-top: 1px solid #E4E4E7;
  border-bottom: 1px solid #E4E4E7;
  height: 29px;
  line-height: 29px;
  background: #fff
}

.ovbtn {
  border: 1px solid var(--line);
  background: #fff;
  color: #69788a;
  border-radius: 14px;
  padding: 3px 11px;
  font-size: 11px;
  margin-left: 5px;
  text-transform: none;
  letter-spacing: 0
}

.ovbtn.on {
  background: var(--green);
  color: #fff;
  border-color: var(--green)
}

.ovbtn {
  border: 1px solid var(--line);
  background: #fff;
  color: #69788a;
  border-radius: 14px;
  padding: 3px 11px;
  font-size: 11px;
  margin-left: 5px;
  text-transform: none;
  letter-spacing: 0
}

.ovbtn.on {
  background: var(--green);
  color: #fff;
  border-color: var(--green)
}

.exp-dd {
  position: relative;
  display: inline-block
}

.exp-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .14);
  z-index: 5000;
  min-width: 170px;
  overflow: hidden
}

.exp-dd:has(> .exp-menu:not(.hidden)) {
  z-index: 5000
}

.exp-menu.hidden {
  display: none
}

.exp-menu>div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink)
}

.exp-menu>div:hover {
  background: #f4f6f8
}

.exp-menu .material-icons {
  font-size: 18px;
  color: #69788a
}

.pb-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px
}

.pb-rtitle {
  font-size: 16px;
  font-weight: 700;
  margin-right: 6px
}

.pb-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: #fff;
  color: #3f4b59;
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer
}

.pb-btn:hover {
  background: #f4f6f8;
  border-color: #cfd6df
}

.pb-btn .material-icons {
  font-size: 16px
}

.pb-add {
  color: var(--green-d)
}

.pb-add:hover {
  background: #eef6f0
}

.pb-saved {
  max-width: 170px
}

.pb-pages-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #eef1f5;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #5b6a7b;
  margin-bottom: 14px
}

.pb-pages-bar .pb-count {
  margin-left: auto;
  color: #8b96a3;
  font-weight: 600
}

.pb-stage {
  display: flex;
  justify-content: center;
  background: #e9edf1;
  border-radius: 10px;
  padding: 24px;
  max-height: calc(100vh - 280px);
  overflow: auto
}

#pb-pages-host {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%
}

.pb-page {
  background: #fff;
  width: 820px;
  flex: 0 0 auto;
  min-height: 1040px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .13);
  border-radius: 3px;
  padding: 46px 54px;
  box-sizing: border-box
}

.cr-edit {
  background: #f8fafc;
  border: 1px solid #e6ebf1;
  border-radius: 8px;
  padding: 12px 14px
}

.pb-rpt-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #ececef;
  padding-bottom: 14px;
  margin-bottom: 18px
}

.pb-doc-title {
  font-size: 24px;
  font-weight: 700;
  color: #243240;
  outline: none
}

.pb-doc-sub {
  font-size: 12px;
  color: #8b96a3;
  margin-top: 3px
}

.pb-doc-logo img {
  height: 30px;
  width: auto;
  display: block
}

.pb-empty {
  text-align: center;
  color: #aab4c0;
  font-size: 14px;
  padding: 80px 20px;
  line-height: 1.7
}

.pb-item {
  border: 1px solid transparent;
  border-radius: 8px;
  margin: 16px 0;
  transition: border-color .15s;
  resize: both;
  overflow: hidden;
  min-width: 300px;
  min-height: 120px;
  max-width: 100%
}

.pb-item:hover {
  border-color: #e4e8ee
}

.pb-item::-webkit-resizer {
  background: transparent
}

.pb-item-t[contenteditable] {
  outline: none;
  cursor: text;
  border-radius: 3px;
  padding: 0 4px;
  margin: 0 -4px;
  transition: background .12s
}

.pb-item-t[contenteditable]:hover {
  background: rgba(200, 16, 46, .07)
}

.pb-item-t[contenteditable]:focus {
  background: rgba(200, 16, 46, .1)
}

.pb-item-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px
}

.pb-item-t {
  font-size: 13px;
  font-weight: 700;
  color: #5b6a7b
}

.pb-item-acts {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .15s
}

.pb-item:hover .pb-item-acts {
  opacity: 1
}

.pb-mini {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: #69788a;
  font-size: 12px
}

.pb-mini:hover {
  border-color: var(--green);
  color: var(--green-d)
}

.pb-ph {
  border: 1.5px dashed #cfd6df;
  border-radius: 8px;
  padding: 34px;
  text-align: center;
  color: #9aa7b4;
  font-size: 13px;
  cursor: pointer
}

.pb-plot {
  min-height: 190px
}

.pb-cap {
  font-size: 13px;
  font-weight: 600;
  color: #243240;
  margin-bottom: 6px
}

.pb-text {
  outline: none;
  border: 1px dashed transparent;
  border-radius: 6px;
  padding: 6px;
  font-size: 13px;
  color: #3f4b59;
  min-height: 24px
}

.pb-text:hover,
.pb-text:focus {
  border-color: #e4e8ee
}

.pb-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px
}

.pb-tbl th {
  text-transform: none;
  font-size: 12px
}

@media print {

  .ds-wrap,
  .subtabs,
  .pb-toolbar,
  .pb-pages-bar,
  nav,
  header {
    display: none !important
  }

  .pb-stage {
    background: #fff;
    padding: 0;
    max-height: none;
    overflow: visible
  }

  .pb-page {
    box-shadow: none
  }
}

.genctl {
  border: 0;
  border-radius: 8px;
  padding: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 15px
}

.gen-switch {
  display: inline-flex;
  gap: 4px;
  background: #EEF1F4;
  border-radius: 9px;
  padding: 3px
}

.gen-switch-btn {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 14px;
  color: #5b6b7c;
  cursor: pointer
}

.gen-switch-btn.active {
  background: #fff;
  color: var(--green-d);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .12)
}

.ksv-pk-sel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 10px
}

.ksv-pk-sel-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-d);
  text-transform: uppercase;
  letter-spacing: .3px
}

.ksv-pk-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap
}

#touMeterTabs {
  flex: 1 1 auto;
  width: 100%
}

#touMeterTabs .ksv-pk-tab {
  flex: 1 1 0;
  text-align: center
}

.ksv-pk-tab {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 16px;
  cursor: pointer;
  color: #666;
  background: #f0f0f0;
  border: 1px solid #ddd;
  transition: all .2s;
  user-select: none
}

.ksv-pk-tab:hover {
  background: #e3e6e9;
  color: #333
}

.ksv-pk-tab-active,
.ksv-pk-tab-active:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green)
}

.tdc-tbl {
  width: 100%;
  border-collapse: collapse
}

.tdc-tbl th,
.tdc-tbl td {
  padding: 6px 8px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0
}

.tdc-tbl th {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .3px
}

.tdc-tbl th:first-child,
.tdc-tbl td:first-child {
  text-align: left
}

.tdc-leg {
  cursor: pointer
}

.tdc-leg:hover {
  background: #fafafa
}

.genctl.start {
  background: var(--ok)
}

.genctl.stop {
  background: var(--bad)
}

.genctl.auto {
  background: #3d7fd6
}

.genctl.man {
  background: var(--warn)
}

main {
  flex: 1;
  overflow: auto;
  padding: 18px 22px
}

.subtabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px
}

.subtabs a {
  border: 0;
  background: transparent;
  padding: 10px 2px;
  color: #69788a;
  font-weight: 600;
  border-bottom: 2px solid transparent
}

.subtabs a.active {
  color: var(--green-d);
  border-bottom-color: var(--green)
}

.util-tabrow { display: flex; align-items: flex-end; gap: 12px }
.util-tabrow .subtabs { flex: 1 }
.util-edit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; box-sizing: border-box; border-radius: 50%;
  border: none; background: var(--card, #fff); color: var(--green, var(--green));
  cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); margin-bottom: 8px; flex: 0 0 auto;
  transition: background .15s, color .15s
}
.util-edit-btn:hover { background: var(--green, var(--green)); color: #fff }

.ue-modal { max-width: 560px }
.ue-modal h2 { margin: 0 0 2px }
.ue-modal .ue-sub { color: var(--mut); font-size: 13px; margin-bottom: 6px }
.ue-sec { font-weight: 700; margin: 16px 0 9px; font-size: 14px; color: var(--ink) }
.ue-sec .ue-hint { font-weight: 400 }
.ue-hint { color: var(--mut); font-size: 12px; margin-left: 6px }
.ue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px }
.ue-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px }
.ue-row > span { color: var(--mut) }
.ue-row input { width: 108px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel, #fff); color: var(--ink); text-align: right; font-size: 13px }
.ue-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px }

.grid {
  display: grid;
  gap: 16px
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px
}
.card:has(table) {
  background: var(--card)
}

.card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: .3px;
  color: var(--green-d);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.ov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
  padding: 0;
  height: calc(100vh - 112px)
}

.ov-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 13px 15px;
  border-color: #E5E7EB;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04)
}

.ov-card h3 {
  margin: 0 0 9px;
  color: #374151;
  letter-spacing: .03em;
  font-size: 14px
}

.ov-fill {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.ov-foot {
  font-size: 12px;
  margin-top: 8px
}

.ov-sl {
  font-size: 11px;
  letter-spacing: .4px;
  color: var(--mut);
  text-transform: uppercase
}

.ov-bv {
  font-size: 24px;
  font-weight: 700;
  color: var(--green-d);
  line-height: 1.15
}

.ov-subcard {
  background: #F9FAFB;
  border: 1px solid #EEF0F2;
  border-radius: 9px;
  padding: 8px 11px;
  box-sizing: border-box
}

.ov-bv.sm {
  font-size: 19px
}

.ov-plot-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .4px;
  color: var(--mut);
  text-transform: uppercase
}

.live-badge {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px
}

.live-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
  animation: tws-live-pulse 1.5s ease-in-out infinite
}

.gen-alarm { position: relative; display: inline-block; margin-top: 4px; text-align: center }
.gen-alarm-lbl { font-size: 12.5px; font-weight: 600; color: var(--mut) }
.gen-alarm.has .gen-alarm-lbl { color: var(--red); animation: gen-alarm-pulse 1.6s ease-in-out infinite }
.gen-alarm.has .gen-alarm-lbl::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 6px;
  vertical-align: -1px;
  box-shadow: 0 0 6px var(--red)
}
.gen-alarm.has { cursor: pointer }
@keyframes gen-alarm-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .55 } }
.gen-alarm-pop {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .18);
  padding: 8px 10px;
  min-width: 220px;
  max-width: 360px;
  z-index: 50;
  text-align: left
}
.gen-alarm:hover .gen-alarm-pop,
.gen-alarm:focus-within .gen-alarm-pop { display: block }
.gen-al-row { white-space: nowrap; font-size: 12px; padding: 3px 2px; display: flex; align-items: center; color: var(--ink) }
.gen-al-dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; flex: 0 0 auto }
body.dark .gen-alarm-pop { background: #1e2732; border-color: #35485c; color: #dce4ee }
body.dark .gen-al-row { color: #dce4ee }

.gen-htitle { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap }
.gen-htitle-txt { font-size: 18px; font-weight: 700; white-space: nowrap }
.gen-hsw { display: inline-flex; gap: 4px; background: #eef1f4; border: 1px solid var(--line); border-radius: 9px; padding: 3px; max-width: 100%; flex-wrap: wrap; justify-content: center }
.gen-hsw-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--mut); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 7px; cursor: pointer; white-space: nowrap }
.gen-hsw-btn:hover { color: var(--ink) }
.gen-hsw-btn.active { background: var(--card); color: var(--green-d); box-shadow: 0 1px 3px rgba(16, 24, 40, .12) }
.gen-hsw-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto }
.gen-hsw-dot.on { background: #1F8B4D }
.gen-hsw-dot.off { background: #E64A19 }
.gen-stale { display: flex; align-items: center; gap: 9px; background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; border-radius: 9px; padding: 9px 14px; margin: -4px 0 16px; font-weight: 600; font-size: 13.5px }
body.dark .gen-hsw { background: #1b2530; border-color: #2b3846 }
body.dark .gen-hsw-btn { color: #93a1b0 }
body.dark .gen-hsw-btn:hover { color: #e6edf3 }
body.dark .gen-hsw-btn.active { background: #0f172a; color: #4cd08a }
body.dark .gen-stale { background: #3a2f12; color: #f5d98a; border-color: #5a4a1e }

.big {
  font-size: 34px;
  font-weight: 700;
  color: var(--green-d);
  text-align: center;
  margin: 6px 0
}

.big.na {
  color: var(--mut);
  font-style: italic;
  font-weight: 400
}

.sub {
  text-align: center;
  color: var(--mut);
  font-size: 12px
}

.kv {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed #eef1f4;
  font-variant-numeric: tabular-nums
}

.kv:last-child {
  border-bottom: 0
}

.kv-link {
  cursor: pointer;
  margin: 0 -8px;
  padding: 5px 8px;
  border-radius: 7px;
  transition: background 120ms ease
}

.kv-link:hover {
  background: #f1f5fa
}

.kv-link:hover .k {
  color: var(--ink)
}

.kv-link .k::after {
  content: '\203A';
  margin-left: 6px;
  color: var(--mut);
  opacity: 0;
  transition: opacity 120ms ease
}

.kv-link:hover .k::after {
  opacity: .9
}

body.dark .kv-link:hover {
  background: #212a33
}

.kv .k {
  color: var(--mut)
}

.kv .v {
  font-weight: 700
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
  font-size: 13px
}

.bar-track {
  display: block;
  height: 9px;
  background: #eef1f4;
  border-radius: 5px;
  overflow: hidden
}

.bar-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  background: var(--gold);
  border-radius: 5px
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px
}

th {
  text-align: left;
  color: var(--mut);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  white-space: nowrap
}

th.th-sort {
  cursor: pointer;
  user-select: none
}

th.th-sort:hover {
  color: var(--green-d)
}

.th-lw { white-space: nowrap }
th.th-sort .th-lw::after {
  content: "\25BE";
  display: inline-block;
  margin-left: 6px;
  font-size: 16px;
  line-height: 0;
  vertical-align: -2px;
  color: transparent
}

th.th-sort:hover .th-lw::after {
  color: #b9c2cc
}

th.sorted-asc .th-lw::after {
  content: "\25B4";
  color: var(--green-d)
}

th.sorted-desc .th-lw::after {
  content: "\25BE";
  color: var(--green-d)
}

td {
  padding: 11px 12px;
  border-bottom: 1px solid #f0f2f5;
  white-space: nowrap
}

tr:hover td {
  background: #fafbfc
}

.acc-parent td {
  cursor: pointer
}

.acc-parent .chev {
  color: var(--green);
  font-size: 11px;
  display: inline-block;
  width: 14px;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1)
}

.acc-parent.open .chev {
  transform: rotate(90deg)
}

tr.child td {
  background: #fbfcfd;
  color: #56657a;
  font-size: 12px;
  padding: 0 !important;
  border-bottom: 0
}

.racc-hd {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.racc-exp .exp-tg {
  padding: 3px 9px;
  font-size: 12px
}

.racc-det {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4, 0, .2, 1), padding .5s cubic-bezier(.4, 0, .2, 1);
  padding: 0 16px;
  background: #f8faf9
}

.racc-det.open {
  max-height: 1000px;
  padding: 16px;
  border-bottom: 1px solid #f0f2f5
}

.racc-di {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 6px
}

.racc-ks {
  flex: 1;
  min-width: 160px
}

.racc-kt {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-d);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .3px
}

.racc-dg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px
}

.racc-dl {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 4px
}

.racc-dv {
  font-size: 14px;
  font-weight: 500;
  color: #1B2A4A
}

.racc-dv.temp-ok {
  color: #1F8B4D
}

.racc-dv.temp-warn {
  color: #F5A623
}

.racc-dv.temp-alarm {
  color: #D32F2F
}

.racc-temp-bar {
  display: flex;
  align-items: center;
  gap: 6px
}

.racc-temp-track {
  flex: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  position: relative
}

.racc-temp-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .3s
}

.racc-temp-sp {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 12px;
  background: #333;
  border-radius: 1px
}

.fcc-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 4px 0 2px;
  margin-bottom: 2px
}

.fcc-lbl {
  grid-column: 2;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #333
}

.fcc-pills {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 4px
}

.fcc-pill {
  border: 1px solid #ccc;
  background: #fff;
  color: #666;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all .15s
}

.fcc-pill:hover {
  border-color: #1F8B4D;
  color: #1F8B4D
}

.fcc-pill.active {
  background: #1F8B4D;
  color: #fff;
  border-color: #1F8B4D
}

.fcc-chart,
.fbc-chart {
  width: 100%;
  position: relative
}

.fr-tip {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, 0);
  background: rgba(30, 30, 30, .9);
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  display: none;
  z-index: 6
}

.fr-tip b {
  color: #fff;
  font-weight: 600
}

.fcc-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 0 44px;
  font-size: 10px;
  color: #666
}

.fcc-stat-col {
  display: flex;
  align-items: center;
  gap: 4px
}

.fcc-stat-swatch {
  width: 10px;
  height: 3px;
  border-radius: 1px;
  flex-shrink: 0
}

.fcc-stat-vals {
  margin-left: auto;
  display: flex;
  gap: 12px;
  padding-right: 16px
}

.fcc-stat-vals span {
  color: #888
}

.util-meter-row {
  cursor: pointer
}

.util-meter-row:hover {
  background: #eef3f8 !important
}

.util-meter-row.meter-off {
  opacity: .4
}

.util-meter-row.meter-off .meter-sw {
  outline: 1px solid #b0b0b0;
  outline-offset: 1px
}

.tbl-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 16px 0 8px
}

.tbl-head .panel-title {
  grid-column: 2;
  font-size: 22px
}

.tbl-head .tbl-tools {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px
}

.tbl-search {
  padding: 5px 10px;
  border: 1px solid #d7dde3;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  min-width: 150px
}

.tbl-search:focus {
  border-color: var(--green)
}

.fcc-stat-vals b {
  color: #333;
  font-weight: 600
}

.bms-cir-list {
  display: flex;
  flex-direction: column
}

.bms-cir-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px
}
.bms-cir {
  border-top: 1px solid #f2f2f2
}

.bms-cir-grid > .bms-cir:nth-child(1),
.bms-cir-grid > .bms-cir:nth-child(2) {
  border-top: 0
}

.bms-cir-ed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0 12px 22px;
  font-size: 12px;
  color: var(--mut)
}

.bms-cir-ed input[type=time] {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--card);
  color: var(--ink)
}

.bms-cir-ed-btns {
  margin-left: auto;
  display: flex;
  gap: 8px
}

.bms-cir-ed .btn {
  padding: 4px 12px;
  font-size: 12px
}

.th-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--bg)
}
.th-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px
}
.th-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink)
}
.th-save {
  padding: 5px 16px;
  font-size: 15px
}
.th-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0
}
.th-row + .th-row {
  border-top: 1px solid #f2f2f2
}
body.dark .th-row + .th-row {
  border-top-color: #223
}
.th-day {
  flex: 0 0 88px;
  font-size: 15.5px;
  color: var(--ink)
}
.th-row input[type=time] {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 15px;
  background: var(--card);
  color: var(--ink)
}
.th-row input[type=time]:disabled {
  opacity: .4
}
.th-dash {
  color: var(--mut)
}
.th-24 {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  color: var(--mut);
  cursor: pointer
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(10px);
  background: #222a31;
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 4000
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

.rpt-stale { display: flex; align-items: center; gap: 9px; background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; border-radius: 9px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; font-size: 13.5px }
.al-break { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap }
.al-stat { flex: 1 1 150px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; text-align: center }
.al-stat-n { font-size: 27px; font-weight: 800; color: var(--ink); line-height: 1 }
.al-stat-l { margin-top: 5px; font-size: 11.5px; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: .03em }
.alf-row th { background: #f6f8fa; padding: 6px 8px !important; cursor: default; border-bottom: 1px solid var(--line) }
.alf-sel { width: 100%; box-sizing: border-box; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); font-size: 12px; font-weight: 400; text-transform: none }
.alf-dd { position: relative }
.alf-dd summary { list-style: none; cursor: pointer; padding: 5px 10px 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); font-size: 12px; font-weight: 400; text-transform: none; white-space: nowrap }
.alf-dd summary::-webkit-details-marker { display: none }
.alf-dd summary::after { content: "\25BE"; margin-left: 6px; font-size: 9px; color: var(--mut) }
.alf-dd[open] summary { border-color: var(--green) }
.alf-panel { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 240px; max-height: 300px; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(16, 24, 40, .18); padding: 8px }
.alf-search { width: 100%; box-sizing: border-box; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 6px; background: var(--card); color: var(--ink); font-size: 12px }
.alf-row2 { display: flex; align-items: center; gap: 7px; padding: 4px 5px; font-size: 12.5px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); cursor: pointer; white-space: nowrap; border-radius: 5px }
.alf-row2:hover { background: var(--bg) }
body.dark .rpt-stale { background: #3a2f12; color: #f5d98a; border-color: #5a4a1e }
body.dark .alf-row th { background: #1b2530 }

.alf-h { display: inline-flex; align-items: center; gap: 5px }
.bms-filter-pop .fp-search { display: block; width: calc(100% - 20px); box-sizing: border-box; margin: 2px 10px 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; background: var(--card); color: var(--ink) }

.mini-spin { display: inline-block; width: 18px; height: 18px; border: 2.5px solid #eef1f4; border-top-color: var(--green-d); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px }
body.dark .mini-spin { border-color: #2b333d; border-top-color: #4cd08a }
.card > .big:has(.bms-spin), .card > .big:has(.mini-spin) { display: flex; align-items: center; justify-content: center; min-height: 56px }
.card > .center-msg:has(.bms-spin) { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; padding: 12px }

.rpt-embed { width: 100% }

.rpt-embed .rpt-cat-tabs { display: none !important }

.rpt-embed .pb-wrap { display: block; height: auto !important; min-height: 0 !important; max-height: none !important }
.rpt-embed .pb-stage { display: block !important; flex: none !important; min-height: 0 !important; height: auto !important; max-height: none !important; overflow: visible !important }

.rpt-embed .pb-pages { overflow: visible !important; position: relative; background: transparent !important; background-image: none !important }

.rpt-embed .pb-pages-bar { display: none !important }

body.dark .rpt-embed .pb-wrap { background: transparent; color: #dce4ee }
body.dark .rpt-embed .rpt-hdr { background: #1b2530; border-bottom-color: #2b3846 }
body.dark .rpt-embed .rpt-hdr-title,
body.dark .rpt-embed .rpt-hdr-icon { color: #eef3f8 }
body.dark .rpt-embed .pb-pages-bar { background: transparent; color: #9fb0c2 }
body.dark .rpt-embed .pb-btn,
body.dark .rpt-embed .pb-rpt-btn,
body.dark .rpt-embed .pb-rpt-newbtn,
body.dark .rpt-embed .pb-rpt-selwrap,
body.dark .rpt-embed .pb-rpt-sel,
body.dark .rpt-embed .pb-cdd-btn,
body.dark .rpt-embed .pb-type { background: #253140; color: #dce4ee; border-color: #35485c }
body.dark .rpt-embed .pb-pop,
body.dark .rpt-embed .pb-cdd,
body.dark .rpt-embed .pb-settings { background: #1e2732; color: #dce4ee; border-color: #35485c; box-shadow: 0 10px 30px rgba(0, 0, 0, .5) }
body.dark .rpt-embed .pb-cdd-row,
body.dark .rpt-embed .pb-pop-row,
body.dark .rpt-embed .pb-set-row,
body.dark .rpt-embed .pb-set-lbl { color: #cdd8e4 }
body.dark .rpt-embed .pb-cdd-row:hover,
body.dark .rpt-embed .pb-pop-row:hover { background: #2a3a4c }
body.dark .rpt-embed .pb-cdd-srch,
body.dark .rpt-embed .pb-pop-srch,
body.dark .rpt-embed .pb-pop-in,
body.dark .rpt-embed .pb-set-in,
body.dark .rpt-embed .pb-name-input,
body.dark .rpt-embed .pb-svg-edit { background: #141b23; color: #eef3f8; border-color: #35485c }
.cr2-row.sel { background: #FDECEE; color: var(--green-d); font-weight: 600 }
.cr2-row small { color: var(--mut); font-size: 11px; margin-left: 4px }
body.dark .cr2-row:hover { background: #1f2730 }
body.dark .cr2-row.sel { background: #15301f; color: #4cd08a }

.bms-cir:first-child {
  border-top: 0
}

.bms-cir-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0
}

.bms-cir-stat {
  flex: 0 0 auto;
  min-width: 34px;
  text-align: center;
  padding: 2px 8px;
  border-radius: 999px;
  font: 700 11px 'Segoe UI', Roboto, system-ui, sans-serif;
  letter-spacing: .02em;
  background: #E4E4E7;
  color: #6B7280
}

.bms-cir-stat.on {
  background: #E6F4EA;
  color: #1F8B4D
}

body.dark .bms-cir-stat {
  background: #2a2f37;
  color: #9aa7b4
}

body.dark .bms-cir-stat.on {
  background: #123a24;
  color: #4ade80
}

.bms-cir-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500
}

.bms-cir-sched {
  font-size: 12px;
  color: #777
}

.bms-cir-sp {
  font-size: 11px;
  color: var(--green-d);
  background: #eef5f0;
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 8px;
  white-space: nowrap;
  letter-spacing: .2px
}

.bms-cir-edit {
  cursor: pointer;
  color: #bbb;
  padding: 2px 6px
}

.bms-cir-edit:hover {
  color: var(--green-d)
}

.bms-loading {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center
}

.svc-hd { position: relative; margin-bottom: 13px }
.svc-hd h3 { margin: 0 }
.svc-log-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--green-d); font-weight: 600; font-size: 13px; cursor: pointer }
.svc-log-btn:hover { border-color: var(--green-d); background: color-mix(in srgb, var(--green-d) 8%, transparent) }
.svc-log-btn svg { display: block }
.mlog-tbl { width: 100%; border-collapse: collapse; font-size: 14px }
.mlog-tbl th { text-align: left; font-weight: 700; color: var(--mut); border-bottom: 1px solid var(--line); padding: 7px 10px }
.mlog-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line) }
.mlog-tbl .mlog-cap { color: var(--mut) }
.mlog-addwrap { display: flex; justify-content: center; margin: 12px 0 2px }
.mlog-add { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--green-d); background: var(--card); color: var(--green-d); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 }
.mlog-add svg { display: block }
.mlog-add:hover { background: var(--green-d); color: #fff }
.mlog-form { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: center; background: color-mix(in srgb, var(--green-d) 6%, transparent); border: 1px solid var(--line); border-radius: 10px; padding: 12px }
.mlog-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--mut) }
.mlog-form input { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--ink); font-size: 14px }
.mlog-form-btns { display: flex; gap: 8px }

.bms-spin {
  width: 26px;
  height: 26px;
  margin: 4px auto;
  border: 3px solid #eef1f4;
  border-top-color: var(--green-d);
  border-radius: 50%;
  animation: spin .8s linear infinite
}

.cl-tip.leaflet-tooltip {
  background: #fff;
  border: 1px solid #E4E4E7;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .18);
  padding: 7px 10px;
  font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
  color: #1F2937;
  max-width: 320px
}

.cl-tip.leaflet-tooltip::before {
  display: none
}

.cl-tip .cl-tip-hd {
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 4px;
  color: var(--green-d)
}

.cl-tip .cl-tip-list {
  column-gap: 16px;
  font-size: 14px;
  line-height: 1.5
}

.cl-tip .cl-tip-r {
  white-space: nowrap;
  display: flex;
  align-items: center
}

.cl-tip .cl-tip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  flex: 0 0 auto
}

body.dark .cl-tip.leaflet-tooltip {
  background: #1e2732;
  border-color: #35485c;
  color: #dce4ee;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5)
}

body.dark .cl-tip .cl-tip-hd {
  color: #4cd08a
}

.bms-filter-btn {
  flex: 0 0 auto;
  cursor: pointer;
  color: #9aa7b4;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 4px
}

.bms-filter-btn:hover {
  color: #5b6b7c
}

.bms-filter-btn.on,
.bms-filter-btn.open {
  color: var(--green)
}

.bms-filter-pop {
  position: fixed;
  z-index: 1400;
  min-width: 160px;
  background: #fff;
  border: 1px solid #E4E4E7;
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(16, 24, 40, .18);
  padding: 7px 0
}

.bms-filter-pop .fp-hd {
  font-size: 13px;
  font-weight: 700;
  color: #9AA3AE;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px 6px
}

.bms-filter-pop .fp-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 15px;
  color: #374151
}

.bms-filter-pop .fp-opt:hover {
  background: #f3f6f4
}

.bms-filter-pop .fp-ck {
  width: 15px;
  height: 15px;
  border: 1.5px solid #c4ccd4;
  border-radius: 3px;
  flex: 0 0 auto;
  position: relative
}

.bms-filter-pop .fp-opt.on .fp-ck {
  background: var(--green);
  border-color: var(--green)
}

.bms-filter-pop .fp-opt.on .fp-ck::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg)
}

.bms-filter-pop .fp-d {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto
}

.bms-filter-pop .fp-l {
  flex: 1;
  white-space: nowrap
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600
}

.chip.ok {
  background: #e3f5ea;
  color: #1f7a44
}

.chip.warn {
  background: #fdf2dd;
  color: #a9741a
}

.chip.bad {
  background: #fbe5e4;
  color: #bb2a23
}

.chip.idle {
  background: #eef1f4;
  color: #5b6a7b
}

.na {
  color: var(--mut);
  font-style: italic
}

.panel-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 18px 0 6px
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 6px 0 12px
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 8px
}

.toolbar input {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px
}

.btn {
  padding: 7px 13px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  font-weight: 600
}

.btn.ghost {
  background: #fff;
  color: var(--green-d);
  border-color: var(--line)
}

.muted {
  color: var(--mut)
}

.center-msg {
  text-align: center;
  color: var(--mut);
  padding: 30px
}

.view-empty {

  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--mut);
  padding: 20px;
  pointer-events: none;
  z-index: 1
}
.view-empty .ve-ic { font-size: 44px; line-height: 1; opacity: .28; margin-bottom: 14px }
#u-content .ov-line { min-height: 34px }
#u-content #ovPowerLine text { font-size: 10px }
.view-empty .ve-t { font-size: 16px; font-weight: 600; color: var(--ink) }
.view-empty .ve-s { margin-top: 6px; max-width: 480px }

.shield {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  display: block
}

.bms-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  height: calc(100vh - 116px)
}

.bms-side {
  overflow: auto;
  display: flex;
  flex-direction: column;
  position: relative
}

.bms-side-hd {
  font-size: 19px;
  font-weight: 600;
  padding: 2px 0 8px;
  position: relative;
  text-align: center
}

.bms-back {
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--green-d);
  position: absolute;
  left: 0;
  top: 2px
}

.bms-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px
}

.bms-tab {
  flex: 1;
  padding: 9px 4px;
  font-weight: 600;
  color: #69788a;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer
}

.bms-tab.active {
  color: var(--green-d);
  border-bottom-color: var(--green)
}

.bms-tab .tl {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.bms-tabs .cnt {
  background: #eef1f5;
  border-radius: 9px;
  padding: 0 7px;
  font-size: 13px;
  color: #56657a
}

.bms-tabs .cnt.crit {
  background: #fbe5e4;
  color: #bb2a23
}

.bms-side-body {
  overflow: auto;
  flex: 1
}

.fp-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center
}

.bms-side-loading {
  color: var(--mut);
  text-align: center;
  padding: 28px 24px;
  font-size: 15px}

.bms-loadbar {
  position: relative;
  height: 4px;
  width: 70%;
  max-width: 200px;
  margin: 0 auto 10px;
  background: #e6ebf0;
  border-radius: 3px;
  overflow: hidden
}

.bms-loadbar>span {
  position: absolute;
  top: 0;
  height: 100%;
  width: 35%;
  border-radius: 3px;
  background: var(--green);
  animation: bmsLoad 1.1s ease-in-out infinite
}

@keyframes bmsLoad {
  0% { left: -35% }
  100% { left: 100% }
}

body.dark .bms-loadbar {
  background: #2b333d
}

.bms-side-empty {
  color: var(--mut);
  text-align: center;
  padding: 24px;
  font-size: 15px}

.bms-right {
  min-width: 0;
  position: relative
}

.bms-map,
.bms-fp {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line)
}

.bms-fp {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 0
}

.bms-fp.hidden,
.bms-map.hidden {
  display: none
}

.tws-live-disabled {
  color: #b6bfc9 !important;
  cursor: default
}

.store-pin {
  background: transparent;
  border: 0;
  overflow: visible;
  position: absolute
}

.store-pin svg,
.store-pin img.wpf-pin-img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4))
}

.store-pin img.wpf-pin-img {
  display: block
}

.store-pin-label {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  background: rgba(255, 255, 255, .88);
  padding: 1px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  pointer-events: none
}

.dl-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 4px;
  border-bottom: 1px solid #f0f2f5;
  cursor: pointer
}

.dl-item:hover {
  background: #fafbfc
}

.dl-item.dim {
  opacity: .45
}

.dl-ic {
  flex-shrink: 0;
  line-height: 0
}

.dl-ic svg {
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .3))
}

.dl-tx {
  min-width: 0
}

.dl-nm {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.dl-ty {
  font-size: 13px;
  color: var(--mut)
}

.bms-al-li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 4px;
  border-bottom: 1px solid #f0f2f5;
  cursor: pointer
}

.bms-al-li:hover {
  background: #fafbfc
}

.bms-al-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0
}

.bms-al-t {
  font-size: 14.5px;
  font-weight: 600
}

.bms-al-m {
  font-size: 13px;
  color: var(--mut)
}

.fp-leaflet {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 1
}

.bms-dicon {
  background: none !important;
  border: none !important;
  cursor: pointer
}

.bms-dicon svg {
  display: block;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35))
}

.bms-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 15;
  pointer-events: none
}

.bms-overlay>* {
  pointer-events: auto
}

.bms-seg {
  display: inline-flex;
  align-items: center;
  height: 44px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, .95);
  border-radius: 22px;
  padding: 3px;
  gap: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12)
}

.bms-seg button {
  border: none;
  background: transparent;
  color: #555;
  font: 600 12px Roboto, system-ui;
  padding: 7px 15px;
  border-radius: 18px;
  cursor: pointer
}

.bms-seg button.active {
  background: var(--green-d);
  color: #fff
}

.bms-ov-pill {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 44px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, .95);
  border-radius: 14px;
  padding: 4px 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12)
}

.bms-ov-pill .lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #9aa0a8;
  font-weight: 600
}

.bms-ov-pill .v {
  font-size: 20px;
  font-weight: 600
}

.bms-ov-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: 22px;
  border: none;
  background: rgba(255, 255, 255, .95);
  color: var(--green-d);
  font: 600 12px Roboto, system-ui;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12)
}

.bms-ov-btn:hover {
  background: var(--green-d);
  color: #fff
}

.bms-ov-btn.ac {
  color: #0277BD
}

.bms-ov-btn.ac:hover {
  background: #0277BD;
  color: #fff
}

.bms-lpop .leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .2);
  padding: 3px 4px
}

.bms-lpop .leaflet-popup-content {
  margin: 8px 11px;
  line-height: 1.45
}

.bms-pop {
  min-width: 150px;
  max-width: 240px
}

.bms-pop .pn {
  font-size: 15px;
  font-weight: 600;
  color: #1B2A4A;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  margin-bottom: 4px
}

.bms-pop .pm {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #9aa0a8;
  margin-bottom: 3px
}

.bms-pop .pr .tr {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 1.5px 0;
  font-size: 14px}

.bms-pop .pr .k {
  color: #888
}

.bms-pop .pr .v {
  font-weight: 600;
  color: #1B2A4A
}

.fp-tip {
  position: fixed;
  transform: translate(-50%, -100%);
  background: #222a31;
  color: #fff;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 2000;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3)
}

#chart-tip {
  position: fixed;
  display: none;
  background: #222a31;
  color: #fff;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 7px;
  pointer-events: none;
  z-index: 2000;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .35);
  white-space: nowrap
}

#chart-tip .ct-h {
  font-weight: 700;
  margin-bottom: 4px;
  color: #cdd5e1
}

#chart-tip .ct-r {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 1px 0
}

#chart-tip .ct-d {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block
}

.site-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 120ms ease
}

.site-item:hover {
  background: #f4f7f9
}

.site-item-main {
  flex: 1;
  min-width: 0
}

.site-item .nm {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  color: #18181b;
  display: flex;
  align-items: center;
  gap: 7px
}

.site-item .st {
  font-size: 13px;
  color: var(--mut)
}

.site-alarm {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 4px;
  border-radius: 6px
}

.site-alarm:hover {
  background: #f1f5f3
}

.site-alarm-n {
  font-size: 13px;
  font-weight: 700;
  color: #6B7280;
  line-height: 1
}

.store-alarm-pop {
  position: fixed;
  display: none;
  z-index: 1500;
  width: 260px;
  overflow: visible;
  background: #fff;
  border: 1px solid #E4E4E7;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .18);
  padding: 8px 10px;
  font-family: 'Segoe UI', Roboto, system-ui, sans-serif
}

.store-alarm-pop .sap-hd {
  font-weight: 700;
  font-size: 14.5px;
  color: #18181B;
  padding: 2px 2px 7px;
  border-bottom: 1px solid #eef0f2;
  margin-bottom: 5px
}

.store-alarm-pop .sap-addr {
  font-weight: 400;
  font-size: 12px;
  color: #8a929c;
  margin-top: 2px
}

.store-alarm-pop .sap-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 2px
}

.store-alarm-pop .sap-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  margin-top: 3px
}

.store-alarm-pop .sap-tx {
  min-width: 0
}

.store-alarm-pop .sap-t {
  font-weight: 700;
  font-size: 14.5px;
  color: #1F2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.store-alarm-pop .sap-m {
  font-size: 13px;
  color: #9CA3AF
}

.store-alarm-pop .sap-none {
  color: #6B7280;
  padding: 6px 2px;
  font-size: 14px}

.store-alarm-pop .sap-more {
  color: #16A34A;
  font-weight: 600;
  font-size: 13px;
  padding: 4px 2px 2px
}

.spark {
  width: 100%;
  height: 70px
}

.gauge-wrap {
  position: relative;
  text-align: center
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 36, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000
}

.modal {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  width: min(680px, 92vw);
  max-height: 88vh;
  overflow: auto
}

.modal h2 {
  margin: 0 0 4px
}

.modal .x {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 5;
  border: 0;
  background: #eef1f4;
  color: #5b6b7b;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center
}

.modal .x:hover {
  background: #e2e7ec;
  color: #1f2937
}

.statgrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px
}

.statgrid>div {
  padding: 14px;
  border-right: 1px solid var(--line)
}

.statgrid>div:last-child {
  border-right: 0
}

.statgrid .n {
  font-size: 24px;
  font-weight: 700
}

.modal:has(.dpop) {
  width: fit-content;
  max-width: 92vw;
  padding: 16px 18px
}

.dpop {
  width: 640px;
  max-width: 92vw;
  min-width: 0
}

.dpop-info {
  display: flex;
  gap: 10px;
  margin: 4px 0 2px
}

.dpi-card {
  flex: 1;
  min-width: 0;
  background: #F9FAFB;
  border: 1px solid #EEF0F2;
  border-radius: 9px;
  padding: 8px 11px
}

.dpi-t {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-d);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 5px
}

.dpi-r {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14.5px;
  padding: 2px 0;
  color: #6B7280
}

.dpi-r b {
  color: #111827;
  font-variant-numeric: tabular-nums
}

.dpop-hd {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 8px;
  padding-right: 30px
}

.dpop-ic {
  flex: 0 0 auto
}

.dpop-tt {
  flex: 1;
  min-width: 0
}

.dpop-name {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2
}

.dpop-type {
  font-size: 14px;
  color: var(--mut);
  margin-top: 2px
}

.dpop-st {
  font-size: 14px;
  font-weight: 600;
  margin-top: 3px
}

.dpop-tabs {
  display: flex;
  gap: 4px;
  flex: 0 0 auto
}

.dpop-tabs .ovbtn {
  padding: 2px 8px;
  font-size: 13px}

.dpop-ct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 4px
}

.dpop-ct {
  font-size: 20px;
  font-weight: 600;
  color: #374151;
  text-align: left;
  margin: 0
}

.ovl-tip {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  background: #fff;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, .14);
  padding: 6px 9px;
  font-size: 12px;
  white-space: nowrap
}

.ovl-tip-t {
  font-weight: 700;
  color: #18181B;
  margin-bottom: 3px
}

.ovl-tip-r {
  color: #4B5563;
  line-height: 1.55
}

.ovl-tip-d {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: -1px
}

.plot-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #374151;
  letter-spacing: .02em;
  margin: 2px 0 8px
}

.cr-keypick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 10px;
  max-height: 200px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  margin: 6px 0 12px
}

.cr-keyopt {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  font-size: 13px;
  border-radius: 5px;
  cursor: pointer
}

.cr-keyopt:hover {
  background: #f3f6f9
}

.cr-keyopt input {
  accent-color: var(--green)
}

.gov-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 14px;
  justify-content: center
}

.gov-group {
  position: relative
}

.gov-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid #d7dee5;
  background: #fff;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #455a64;
  cursor: pointer
}

.gov-btn:hover {
  border-color: #b8c4cf
}

.gov-btn.has-sel {
  border-color: var(--green);
  color: var(--green-d);
  background: #f1f8f3
}

.gov-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid #e2e8ee;
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .14);
  padding: 6px;
  max-height: 280px;
  overflow: auto
}

.gov-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: #37474f;
  border-radius: 5px;
  cursor: pointer
}

.gov-opt:hover {
  background: #f3f6f9
}

.gov-opt input {
  accent-color: var(--green);
  width: 15px;
  height: 15px
}

.ovk-dot {
  margin-left: auto;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .18)
}

.ovk-cpop {
  position: fixed;
  z-index: 100000;
  background: #fff;
  border: 1px solid var(--line, #e2e8ef);
  border-radius: 9px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px
}

body.dark .ovk-cpop {
  background: #1b222c;
  border-color: #2b3846
}

.ovk-cswatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 90ms ease
}

.ovk-cswatch:hover {
  transform: scale(1.15)
}

.ovk-cswatch.sel {
  border-color: #1b2a4a;
  box-shadow: 0 0 0 1px #fff inset
}

body.dark .ovk-cswatch.sel {
  border-color: #e6edf3;
  box-shadow: 0 0 0 1px #1b222c inset
}

.statgrid .l {
  font-size: 11px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: .4px
}

.ds-controls { position:relative; display:flex; align-items:center; gap:14px; order:3; flex:0 1 auto; min-width:0; }

.ov-refresh { position:absolute; right:52px; top:50%; transform:translateY(-50%); display:flex; align-items:center; gap:9px; white-space:nowrap; pointer-events:none; }
.ov-refresh-ic { width:20px; height:20px; color:#16A34A; flex:0 0 auto; }
.ov-refresh-ic svg, .ov-refresh-ic { display:block; }
.ov-refreshing .ov-refresh-ic { animation:ov-spin 1s linear infinite; }
@keyframes ov-spin { to { transform:rotate(360deg); } }
.ov-refresh-txt { display:flex; flex-direction:column; line-height:1.15; }
.ov-refresh-next { font-weight:700; color:#374151; font-size:13px; }
.ov-refresh-ago { color:#9CA3AF; font-size:11px; }
body.dark .ov-refresh-next { color:#e5e7eb; }
body.dark .ov-refresh-ago { color:#9aa4b2; }
.ds-kebab-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 8px;
  flex: 0 0 auto;
  align-self: center
}

.ds-kebab {
  border: 1px solid #E4E4E7;
  background: #fff;
  color: #52525B;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 120ms ease
}

.ds-kebab:hover {
  background: #FAFAFA;
  border-color: #D4D4D8;
  color: #18181B
}

.ds-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .16);
  min-width: 180px;
  padding: 5px;
  z-index: 4000
}

.ds-menu.hidden {
  display: none
}

.ds-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: space-between;
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer
}

.ds-menu-item:hover {
  background: #f4f6f8
}

.ds-menu-logout {
  justify-content: flex-start;
  color: var(--bad)
}

.ds-menu-logout .material-icons {
  font-size: 18px
}

.ds-menu-sep {
  height: 1px;
  background: var(--line);
  margin: 4px 2px
}

.ds-switch { position:relative; width:46px; height:24px; border-radius:13px; background:#bcd6ea; cursor:pointer; flex:0 0 auto; transition:background .3s; }
.ds-switch::after { content:"\2600\FE0E"; position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.3); display:flex; align-items:center; justify-content:center; font-size:12px; color:#f59e0b; line-height:1; transition:left .3s, color .3s, background .3s; }
.ds-switch.on { background:#33415a; }
.ds-switch.on::after { left:24px; content:"\263D\FE0E"; color:#cbd5e1; background:#0f172a; }
.ds-switch:focus-visible { outline:2px solid var(--green); outline-offset:2px; }

body.dark {
  --ink: #e6edf3;
  --mut: #93a1b0;
  --line: #2b333d;
  --bg: #0f1318;
  --card: #161c24;

  --panel: #1b222c
}

body.dark .card h3 { color: #ff4d63 }

body.dark .ds-wrap {
  background: #161c24;
  border-bottom-color: #2b333d
}

body.dark .ds-store,
body.dark .ds-sel,
body.dark .ds-arrow,
body.dark .tws-range-label,
body.dark .ds-kebab {
  background: #1f2730;
  color: #e6edf3;
  border-color: #2b333d
}

body.dark .ds-sel,
body.dark .ds-store {
  background-color: #1f2730;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23a9b4c0' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center
}

body.dark .ds-store:hover,
body.dark .ds-sel:hover,
body.dark .ds-arrow:hover,
body.dark .ds-kebab:hover {
  background: #273039;
  color: #fff
}

body.dark .ds-lh-tray,
body.dark .ds-tray {
  background: #1f2730
}

body.dark .ds-lh.active,
body.dark .dashboard-pills.active {
  background: #2b333d;
  color: #fff
}

body.dark .dashboard-pills {
  color: #93a1b0
}

body.dark .dashboard-pills:hover {
  color: #e6edf3;
  background: rgba(255, 255, 255, .06)
}

body.dark .ds-menu {
  background: #1f2730
}

body.dark .ds-menu-item:hover {
  background: #273039
}

body.dark td {
  border-bottom-color: #232b34
}

body.dark tr:hover td {
  background: #1c232c
}

body.dark tr.child td,
body.dark .racc-det {
  background: #141a21
}

body.dark .modal,
body.dark .exp-menu,
body.dark .bms-fmenu,
body.dark .tws-dp {
  background: #1f2730;
  color: #e6edf3
}

body.dark .tws-dp-title {
  color: #e6edf3
}

body.dark .tws-dp-day {
  color: #cbd5e0
}

body.dark .tws-dp-day.in {
  background: #1f3a2a
}

body.dark .tws-dp-btn {
  background: #2b333d;
  color: #e6edf3
}

body.dark .tws-dp-btn.primary {
  background: var(--green);
  color: #fff
}

body.dark .tws-dp-times { border-top-color: #2b3846 }
body.dark .tws-dp-agg { border-top-color: #2b3846 }
body.dark .tws-dp-int { border-top-color: #2b3846 }
body.dark .tws-dp-intsel { background: #1e2a36; color: #e6edf3; border-color: #2b3846 }
body.dark .tws-dp-cmp { border-top-color: #2b3846; color: #e6edf3 }
body.dark .tws-dp-aggseg { background: #1e2a36 }
body.dark .tws-dp-aggbtn { color: #9fb0bd }
body.dark .tws-dp-aggbtn.active { background: var(--green); color: #fff }

body.dark .tws-dp-time {
  background: #0f172a;
  border-color: #35485c;
  color: #e6edf3
}

body.dark .modal .x {
  background: #2b333d;
  color: #e6edf3
}

body.dark .toolbar input,
body.dark .tbl-search,
body.dark .bms-ssearch {
  background: #161c24;
  color: #e6edf3;
  border-color: #2b333d
}

body.dark .btn.ghost {
  background: #1f2730;
  color: #e6edf3
}

body.dark .bms-seg,
body.dark .bms-ov-pill,
body.dark .bms-ov-btn {
  background: rgba(31, 39, 48, .96);
  color: #e6edf3
}

body.dark .bms-ov-pill .v {
  color: #e6edf3
}

body.dark .bms-pop,
body.dark .leaflet-popup-content-wrapper,
body.dark .leaflet-popup-tip {
  background: #1f2730;
  color: #e6edf3
}

body.dark .bms-pop .pn,
body.dark .bms-pop .pr .v {
  color: #e6edf3
}

body.dark #u-content .ov-card {
  background: #161c24;
  border-color: #2b333d
}

body.dark #u-content .ov-subcard,
body.dark #u-content .ov-wstat-c,
body.dark #u-content .ov-al-tile,
body.dark #u-content .ov-gen-cell,
body.dark #u-content .ov-temp-card {
  background: #1c232c;
  border-color: #2b333d
}

body.dark #u-content .ov-ch h3,
body.dark #u-content .ov-bv,
body.dark #u-content .ov-wstat-v,
body.dark #u-content .ov-gen-cv,
body.dark #u-content .ov-gen-stat-v,
body.dark #u-content .ov-kpi-val,
body.dark #u-content .ov-temp-val,
body.dark #u-content .ov-al-n,
body.dark #u-content .ov-kpi-ahb {
  color: #e6edf3 !important
}

body.dark #u-content .ov-go {
  background: #1f2730;
  border-color: #2b333d;
  color: #93a1b0
}

body.dark .plot-title,
body.dark .fcc-lbl,
body.dark .panel-title,
body.dark .section-title {
  color: #cbd5e0
}

body.dark .big {
  color: #4cd08a
}

body.dark .bar-track {
  background: #2b333d
}

body.dark line[stroke="#eef1f4"],
body.dark circle[stroke="#eef1f4"] {
  stroke: #2b333d
}

body.dark circle[fill="#eef1f4"] {
  fill: #232b34
}

body.dark path[fill="#E5E7EB"],
body.dark circle[fill="#E5E7EB"] {
  fill: #2b333d
}

body.dark text[fill="#7c8a99"],
body.dark text[fill="#7a828b"],
body.dark text[fill="#9aa7b4"],
body.dark text[fill="#888"],
body.dark text[fill="#444"] {
  fill: #93a1b0
}

body.dark .racc-dv {
  color: #e6edf3
}

body.dark .racc-kt {
  color: #4cd08a
}

body.dark .racc-dl,
body.dark .fcc-stats {
  color: #93a1b0
}

body.dark .racc-temp-track {
  background: #2b333d
}

body.dark .racc-temp-sp {
  background: #e6edf3
}

body.dark .fcc-pill {
  background: #1f2730;
  border-color: #2b333d;
  color: #cbd5e0
}

body.dark .fcc-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff
}

body.dark .statgrid,
body.dark .statgrid>div {
  border-color: #2b333d
}

body.dark .statgrid .n {
  color: #e6edf3
}

body.dark .kv {
  border-bottom-color: #232b34
}

body.dark .acc-parent.open,
body.dark tr.acc-parent.open td {
  background: #1c232c
}

body.dark .dpi-card {
  background: #1c232c;
  border-color: #2b333d
}

body.dark .dpi-t {
  color: #4cd08a
}

body.dark .dpi-r {
  color: #93a1b0
}

body.dark .dpi-r b,
body.dark .dpop-name {
  color: #e6edf3
}

body.dark .bms-fp,
body.dark .fp-leaflet {
  background: #161c24
}

body.dark .ovbtn {
  background: #1f2730;
  border-color: #2b333d;
  color: #cbd5e0
}

body.dark .ovbtn.on {
  background: var(--green);
  border-color: var(--green);
  color: #fff
}

body.dark .gov-btn,
body.dark .gov-menu {
  background: #1f2730;
  border-color: #2b333d;
  color: #cbd5e0
}

body.dark .kpi-meter-chip {
  background: #1f2730;
  border-color: #2b333d
}

body.dark .chip.idle,
body.dark .bms-tabs .cnt {
  background: #2b333d;
  color: #cbd5e0
}

body.dark .bms-cir-sp {
  background: #15301f;
  color: #7fdca8
}

body.dark .bms-fbtn:hover {
  background: #2b333d
}

body.dark .site-item:hover,
body.dark .dl-item:hover,
body.dark .bms-al-li:hover {
  background: #1c232c
}

body.dark .bms-side-empty,
body.dark .dl-ty,
body.dark .bms-al-m {
  color: #93a1b0
}

body.dark tr[style*="#f4f7fb"],
body.dark tr[style*="#fbfcfd"],
body.dark tr[style*="#fafbfc"] {
  background: #1c232c !important
}

body.dark .leaflet-bar a {
  background: #1f2730;
  color: #e6edf3;
  border-color: #2b333d
}

body.dark .leaflet-container {
  background: #0f1318
}

body.dark #map .leaflet-tile {
  filter: grayscale(1) brightness(.52) contrast(1.05)
}

body.dark #bms-leaflet .leaflet-image-layer,
body.dark .fp-leaflet .leaflet-image-layer {
  filter: invert(1) hue-rotate(180deg) brightness(1.08)
}

body.dark .tdc-tbl th { color:#93a1b0; }
body.dark .tdc-tbl th, body.dark .tdc-tbl td { border-bottom-color:#232b34; }
body.dark .ksv-pk-tab { background:#1f2730; border-color:#2b333d; color:#cbd5e0; }
body.dark .ksv-pk-tab:hover { background:#273039; color:#fff; }
body.dark .gen-switch { background:#1f2730; }
body.dark .gen-switch-btn { color:#93a1b0; }
body.dark .gen-switch-btn.active { background:#0f172a; color:#4cd08a; }
body.dark .bms-filter-pop, body.dark #store-alarm-pop, body.dark .ovl-tip { background:#1f2730; color:#e6edf3; border-color:#2b333d; }
body.dark .fp-hd { color:#93a1b0; }
body.dark .fp-opt:hover { background:#273039; }

body.dark .store-alarm-pop .sap-hd { color:#e6edf3; border-bottom-color:#2b333d; }
body.dark .store-alarm-pop .sap-t { color:#e6edf3; }
body.dark .store-alarm-pop .sap-m, body.dark .store-alarm-pop .sap-none { color:#93a1b0; }
body.dark .ovl-tip-t { color:#e6edf3; }
body.dark .ovl-tip-r { color:#b6c0cc; }
body.dark .bms-filter-pop .fp-opt { color:#e6edf3; }
body.dark .gov-opt { color:#dce3ea; }
body.dark .bms-pop .pm, body.dark .bms-pop .pr .k { color:#93a1b0; }
body.dark .leaflet-popup-content [style*="dashed #eee"] { border-bottom-color:#2b333d !important; }
body.dark th.th-sort:hover { color:#4cd08a; }
body.dark .ds-menu-item { color:#e6edf3; }

body.dark .fr-quicklink:hover, body.dark .gen-quicklink:hover { background:#273039; }
body.dark .bar-track { background:#232b34; }

@keyframes mkPulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,139,77,.55); }
  70%  { box-shadow: 0 0 0 18px rgba(31,139,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,139,77,0); }
}
.leaflet-marker-icon.mk-pulse { animation: mkPulse 1.25s ease-out 2; border-radius: 50%; z-index: 10000 !important; }
body.dark .leaflet-marker-icon.mk-pulse { animation-name: mkPulseDark; }
@keyframes mkPulseDark {
  0%   { box-shadow: 0 0 0 0 rgba(76,208,138,.6); }
  70%  { box-shadow: 0 0 0 18px rgba(76,208,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,208,138,0); }
}

.fr-hist-svg { background:#f8faf9; }
body.dark .fr-hist-svg { background:#161c24; }

#dpChart .fr-hist-svg { background:transparent; }
body.dark line[stroke="#e8e8e8"] { stroke:#2b333d; }
body.dark text[fill="#999"] { fill:#93a1b0; }

* { scrollbar-width: thin; scrollbar-color: #c2cbd4 transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c2cbd4; border-radius: 7px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #a7b2bd; background-clip: content-box; }
body.dark { scrollbar-color: #3a444f transparent; }
body.dark ::-webkit-scrollbar-thumb { background: #3a444f; background-clip: content-box; }
body.dark ::-webkit-scrollbar-thumb:hover { background: #4b5763; background-clip: content-box; }


@media (max-width:1439px){ .ds-wrap{ flex-wrap:wrap; height:auto; row-gap:8px } .ds-brand{ flex:0 1 auto } .dashboard-selector{ order:5; flex:1 1 100%; width:100% } .ds-controls{ margin-left:auto } }
@media (max-width:1279px){ .ds-wrap{ flex-wrap:wrap; height:auto; row-gap:8px } .ds-brand{ flex:0 1 auto } }
@media (max-width: 1399px) {
  .dashboard-selector {
    order: 5;
    flex: 1 1 100%;
    width: 100%
  }

  .ds-controls {
    margin-left: auto
  }

  .ov-grid {
    grid-template-columns: 1fr !important;
    height: auto !important;
    overflow: visible !important;
    grid-auto-rows: auto
  }

  .ov-col {
    display: contents
  }

  .ov-card,
  .ov-flex1 {
    min-height: 0 !important;
    flex: 0 0 auto !important
  }

  .ov-cbody {
    flex: 0 0 auto !important
  }

  .ov-hl-top,
  .ov-water-sub,
  .ov-gen-top,
  .ov-gen-grid,
  .ov-kpi-tou,
  .ov-kpi-ahrow {
    flex: 0 0 auto !important
  }

  .ov-line {
    height: 130px;
    min-height: 130px;
    flex: 0 0 auto !important
  }
}

@media (max-width: 1100px) {

  main .grid[style*="repeat(3"] {
    grid-template-columns: 1fr 1fr !important
  }
}

@media (max-width: 900px) {
  .ds-wrap {
    padding: 8px 16px
  }

  .ds-logo-wrap {
    flex: 1 1 100%;
    order: 0;
    justify-content: center
  }

  .ds-kebab-wrap {
    position: absolute;
    top: 8px;
    right: 14px;
    margin-left: 0
  }

  .ds-controls {
    gap: clamp(6px, 1.4vw, 14px)
  }

  .ds-store {
    width: clamp(84px, 20vw, 200px)
  }

  .ds-sel {
    padding: 6px clamp(17px, 4.5vw, 24px) 6px 7px;
    font-size: clamp(11px, 2.2vw, 13px)
  }

  .ds-lh {
    padding: 0 clamp(6px, 1.8vw, 11px);
    font-size: clamp(10px, 2vw, 11px)
  }

  .tws-range-label {
    min-width: clamp(58px, 13vw, 110px);
    font-size: clamp(13px, 2.4vw, 15px)}

  .ds-arrow {
    width: clamp(21px, 5vw, 29px)
  }

  .tws-inline {
    gap: clamp(4px, 1.2vw, 10px)
  }

  main {
    padding: 14px
  }

  main .grid,
  main .grid[style*="repeat(3"] {
    grid-template-columns: 1fr !important
  }

  .bms-shell {
    grid-template-columns: 1fr !important;
    height: auto !important
  }

  .bms-side {
    max-height: 340px
  }

  .bms-right {
    height: 60vh;
    min-height: 320px
  }
}

@media (max-width: 640px) {
  .ds-tray {
    flex-wrap: wrap;
    justify-content: center
  }

  .card:has(table) {
    overflow-x: auto
  }

  .pb-page {
    width: 100% !important;
    padding: 24px !important
  }

  .modal {
    width: 94vw
  }
}

@media (max-width: 520px) {

  .ov-hl-top { flex-direction: column !important; gap: 6px !important; margin-top: 24px !important; }
  .ov-hpie-svg { height: 118px !important; }
}

.bms-ov { overflow: auto; background: #F3F4F6 }
.bms-ov #u-content { min-height: 100% }
body.dark .bms-ov { background: #0f1720 }

.bms-shell.bms-ov-full { grid-template-columns: 1fr }
.bms-shell.bms-ov-full .bms-side { display: none }
.ov-bms-back:hover { color: var(--green) !important }
.al-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap }
.al-toggle { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 13.5px; cursor: pointer }
.al-toggle:hover { border-color: #1F8B4D }
.al-toggle .al-tog-sw { width: 34px; height: 18px; border-radius: 9px; background: #cfd6dd; position: relative; flex: 0 0 auto; transition: background .18s }
.al-toggle .al-tog-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: left .18s }
.al-toggle.on { border-color: #1F8B4D; color: var(--green-d) }
.al-toggle.on .al-tog-sw { background: #1F8B4D }
.al-toggle.on .al-tog-sw::after { left: 18px }
.al-tog-hint { font-size: 12.5px; color: var(--mut) }

.bms-al-bd { flex: 1; min-width: 0 }
.bms-al-store {
  font-size: 16px;
  font-weight: 600;
  color: #18181b
}
.bms-al-dev {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  color: #18181b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.bms-al-acts { flex: 0 0 auto; display: flex; gap: 6px; align-items: center }
.bms-al-ack, .bms-al-clr {
  width: 26px; height: 26px; border: 0; border-radius: 6px; cursor: pointer;
  font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0
}
.bms-al-ack { background: #e6f4ea; color: #1F8B4D }
.bms-al-clr { background: #fdecea; color: #E53935 }
.bms-al-ack:hover { background: #d3ebd9 }
.bms-al-clr:hover { background: #f9d7d3 }
.bms-store-pop .leaflet-popup-content-wrapper { border-radius: 10px; box-shadow: 0 8px 26px rgba(0, 0, 0, .2) }
.bms-store-pop .leaflet-popup-content { margin: 10px 13px; line-height: 1.4 }
.bms-spop { min-width: 185px; font-family: 'Segoe UI', Roboto, system-ui, sans-serif }
.bms-spop.drill { cursor: pointer }
.bms-spop .sn { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; color: #1B2A4A; margin-bottom: 6px }
.bms-spop .sc { font-size: 12px; color: #9AA0A8; font-weight: 400; white-space: nowrap }
.bms-spop .spr { display: flex; align-items: center; gap: 8px; margin: 0 0 5px }
.bms-spop .spr:last-child { margin-bottom: 0 }
.bms-spop .sd { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto }
.bms-spop .sl { color: #555; flex: 1 1 0; font-size: 14px}
.bms-spop .sv { font-weight: 600; font-size: 14px; white-space: nowrap }
.bms-spop-lg { width: 320px; font-family: 'Segoe UI', Roboto, system-ui, sans-serif }
.bms-spop-lg .ssl-hd { display: flex; align-items: baseline; gap: 7px; margin-bottom: 11px; padding-right: 16px }
.bms-spop-lg .ssl-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; align-self: center }
.bms-spop-lg .ssl-nm { font-size: 19px; font-weight: 700; color: #1B2A4A }
.bms-spop-lg .ssl-city { font-size: 14px; color: #9AA0A8; font-weight: 400 }
.bms-spop-lg .ssl-r { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 }
.bms-spop-lg .ssl-l { color: #6b7280; font-size: 15px}
.bms-spop-lg .ssl-v { font-size: 15px; font-weight: 700; white-space: nowrap }
.bms-spop-lg .ssl-da { display: flex; justify-content: space-between; align-items: baseline; margin: 13px 0 6px }
.bms-spop-lg .ssl-da b { font-size: 15px; color: #1B2A4A }
.bms-spop-lg .ssl-on { font-size: 14px; color: #6b7280 }
.bms-spop-lg .ssl-bar { display: flex; height: 8px; border-radius: 5px; background: #e6e9ec; overflow: hidden; margin-bottom: 8px }
.bms-spop-lg .ssl-bar span { height: 100% }
.bms-spop-lg .ssl-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: #6b7280; margin-bottom: 14px }
.bms-spop-lg .ssl-leg-i { display: inline-flex; align-items: center; gap: 5px }
.bms-spop-lg .ssl-d { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto }
.bms-spop-lg .ssl-vd { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; border: 0; border-radius: 8px; background: var(--green-d); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; font-family: inherit }
.bms-spop-lg .ssl-vd:hover { background: #6f0818 }
.modal:has(.store-modal) { width: auto; max-width: 92vw; padding: 20px }
.store-modal .bms-spop-lg .ssl-hd { padding-right: 22px }
.si-bolt {
  flex: 0 0 auto;
  vertical-align: middle
}

.ov-grid-3 .ov-card { min-height: 150px }
.ov-grid-3 .ov-cbody .kv { padding: 4px 0; border-bottom: 1px solid #F1F3F5; font-size: 20px }
.ov-grid-3 .ov-cbody .kv:last-child { border-bottom: 0 }
#u-content .ov-grid-3 .ov-cbody .kv .v { font-weight: 700; color: #111827 }

.ov-al-list { overflow-y: auto; flex: 1 1 0; min-height: 0; margin-top: 8px }
.ov-al-item { border-top: 1px solid #F1F3F5; padding: 6px 2px; flex: 0 0 auto; display: flex; align-items: center; gap: 8px }
.ov-al-item:first-child { border-top: 0 }
body.dark .ov-al-item { border-top-color: #223 }
.ov-al-rc { flex: 1 1 auto; min-width: 0 }

.ov-al-acts { flex: 0 0 auto; display: flex; gap: 6px; align-items: center }
.ov-al-ack, .ov-al-clr { width: 24px; height: 24px; border: 0; border-radius: 6px; cursor: pointer; font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0 }
.ov-al-ack { background: #e6f4ea; color: #1F8B4D }
.ov-al-clr { background: #fdecea; color: #E53935 }
.ov-al-ack:hover { background: #d3ebd9 }
.ov-al-clr:hover { background: #f9d7d3 }

.ov-sub-scroll { flex: 1 1 0; min-height: 0; display: flex; gap: 8px; align-items: center; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none }
.ov-sub-scroll > .ov-ucard { flex: 1 1 0; min-width: 96px; height: 67%; min-height: 0 }
.ov-sub-scroll::-webkit-scrollbar { width: 0; height: 0; display: none }
.ov-ucard { padding: 12px 10px; margin-bottom: 0; min-height: 74px; display: flex; flex-direction: column; justify-content: flex-start }
.ov-sub-scroll > .ov-ucard .ov-sl { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; font-size: 13px !important; min-height: 2.4em; max-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.ov-sub-scroll > .ov-ucard .ov-bv { min-height: 1.2em; line-height: 1.2 }
.ov-sub-scroll > .ov-ucard .ov-kpi-sub { min-height: 2.4em; line-height: 1.2 }
.ov-sub-scroll.ov-assets:has(> :first-child:nth-last-child(4)) { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; align-items: stretch; overflow: hidden }
.ov-sub-scroll.ov-assets:has(> :first-child:nth-last-child(4)) > .ov-ucard { flex: none; min-width: 0; height: auto; padding: 11px 13px }
.ov-ucard-click, .ov-clickable { cursor: pointer; transition: border-color 120ms ease, background 120ms ease }
.ov-ucard-click:hover, .ov-clickable:hover { border-color: var(--green); background: #fbfdff }
body.dark .ov-ucard-click:hover, body.dark .ov-clickable:hover { background: #182029 }
.dpop-exp { margin-left: auto; align-self: flex-start }

.ov-ucard:last-child { margin-bottom: 0 }
#u-content .ov-cbody > .ov-empty { margin: auto; font-size: 20px }

.ov-hv-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; flex: 1 1 0; min-height: 0 }
.ov-hv-block { display: flex; flex-direction: column; justify-content: flex-start; padding: 11px 13px }
.ov-hv-b-hd { display: flex; align-items: center; gap: 6px; margin-bottom: 1px; min-height: 1.2em }
.ov-hv-b-ic { font-size: 18px; line-height: 1 }
.ov-hv-b-v { margin: 1px 0 0 !important; font-size: 22px }
.ov-hv-b-sub { font-size: 12.5px; margin-top: 3px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; opacity: .9 }

.ov-lastmonth { font-size: 14.5px; color: #6B7280; font-weight: 600; margin-top: 3px }
body.dark .ov-lastmonth { color: #93a1b0 }

.ov-loading { flex: 1 1 auto; align-self: stretch; display: flex; align-items: center; justify-content: center; min-height: 120px }

.ov-wstat-3 { gap: 7px }
.ov-wstat-3 .ov-wstat-c { padding: 6px 8px }
.ov-wstat-3 .ov-wstat-c .ov-sl { line-height: 1.1 }
.ov-wstat-3 .ov-wstat-v { font-size: 24px }
.ov-wstat-3 .ov-wstat-v .ov-u { font-size: 15px }

.fr-sp-bar { display: flex; align-items: center; justify-content: space-between }
.fr-sp-ctl { display: flex; align-items: center; gap: 7px }
.fr-sp-input { width: 74px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; text-align: right }
.fr-sp-u { color: var(--mut); font-size: 15px }

.fr-sp-edit { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; margin-left: 5px; padding: 2px; border: 0; background: transparent; color: var(--mut); cursor: pointer; border-radius: 5px; line-height: 0 }
.fr-sp-edit:hover { color: var(--green); background: rgba(200, 16, 46, .1) }

.fr-sp-pop { padding-bottom: 10px }
.fr-sp-pop-body { padding: 4px 12px 2px }
.fr-sp-pop-name { font-size: 14px; color: var(--mut); margin-bottom: 8px }
.fr-sp-pop-row { display: flex; align-items: center; gap: 7px; margin-bottom: 12px }
.fr-sp-pop-acts { display: flex; justify-content: flex-end; gap: 8px }
.fr-sp-pop-acts .btn { padding: 6px 14px }

.ds-site-hidden { display: none !important }
.ds-sitepick { position: relative; display: inline-block }
.ds-site-btn {

  display: flex; align-items: center; text-align: left; cursor: pointer; font-family: inherit;
}
.ds-site-btn #siteBtnTxt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.ds-site-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 1300;
  width: 260px; background: var(--card, #fff); border: 1px solid var(--line, #E4E4E7);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(16, 24, 40, .14); overflow: hidden;
}
.ds-site-pop.hidden { display: none }
.ds-site-search {
  width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--line, #E4E4E7);
  padding: 10px 12px; font: inherit; font-size: 14px; outline: none; background: transparent; color: inherit;
}
.ds-site-list { max-height: 300px; overflow: auto; padding: 4px }
.ds-site-opt {
  padding: 8px 10px; border-radius: 7px; font-size: 15px; cursor: pointer; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.ds-site-opt:hover { background: #F4F4F5 }
.ds-site-opt.on { background: var(--green-d); color: #fff; font-weight: 600 }
.ds-site-none { padding: 14px 12px; font-size: 15px; color: #9AA7B4; text-align: center }
body.dark .ds-site-opt:hover { background: #2a2f37 }
body.dark .ds-site-search { border-bottom-color: #333a44 }
body.dark .ds-site-none { color: #7d8794 }

.ap-badge {
  position: fixed; right: 18px; bottom: 14px; z-index: 900;
  pointer-events: none; user-select: none;
  display: flex; align-items: center; justify-content: center;
  padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--card, #fff) 82%, transparent);
  border: 1px solid var(--line, #E4E4E7);
  box-shadow: 0 4px 14px rgba(16, 24, 40, .10);
  backdrop-filter: blur(6px);
}

.ap-badge-svg { height: 46px; width: auto; display: block; color: var(--muted, #71717A) }
.ap-badge-t1 { font: 700 10px 'Segoe UI', Roboto, system-ui, sans-serif; letter-spacing: 1.35px; fill: currentColor; opacity: .72 }
.ap-badge-t2 { font: 800 20px 'Segoe UI', Roboto, system-ui, sans-serif; letter-spacing: .2px; fill: currentColor }
.ap-badge-v { font: 600 9.5px 'Segoe UI', Roboto, system-ui, sans-serif; letter-spacing: .9px; fill: currentColor; opacity: .55 }

html.booting .ap-badge { display: none }
body.dark .ap-badge { box-shadow: 0 4px 16px rgba(0, 0, 0, .34) }
body.dark .ap-badge-svg { color: #C7CBD1 }
@media (max-width: 900px) { .ap-badge { display: none } }

.bms-cir-main { display: flex; align-items: center; gap: 8px }
.bms-mbtns { margin-left: auto; display: inline-flex; gap: 4px; flex: 0 0 auto }
.bms-mbtns button {
  font: 600 12px 'Segoe UI', Roboto, system-ui, sans-serif;
  padding: 3px 9px; border: 1px solid #D4D4D8; border-radius: 6px;
  background: #fff; color: #52525B; cursor: pointer; line-height: 1.1;
}
.bms-mbtns button:hover { border-color: #A1A1AA; background: #F4F4F5 }
.bms-mbtns button.active { border-color: transparent; background: #52525B; color: #fff }
.bms-mbtns button.active.on { background: #1F8B4D }
.bms-mbtns button.active.off { background: #DC2626 }
.bms-cir-ctrl .bms-cir-sp { margin-left: 8px }
.bms-cir-err { background: #fdecea; color: #b3261e; border: 1px solid #f4c7c3; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px }
body.dark .bms-mbtns button { background: #23272e; color: #c7cbd1; border-color: #3a4048 }
body.dark .bms-mbtns button:hover { background: #2a2f37 }

.dashboard-pills { text-decoration: none }

.subtabs a { text-decoration: none; cursor: pointer }
a.btn { text-decoration: none }

#login .pw-field { position: relative }
#login .pw-field input { padding-right: 44px }
#login .pw-toggle { position: absolute; top: 0; right: 0; height: 100%; width: 42px; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 0 8px 8px 0; color: #9fb0bf; cursor: pointer }
#login .pw-toggle:hover { color: #fff }
#login .pw-toggle svg { display: block }


th { position: relative }
.col-grip { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; user-select: none; z-index: 2 }
.col-grip::after { content: ''; position: absolute; top: 18%; right: 3px; width: 2px; height: 64%; border-radius: 1px; background: transparent }
.col-grip:hover::after { background: var(--green) }
body.col-resizing { cursor: col-resize; user-select: none }
body.col-resizing .col-grip::after { background: var(--green) }


.ds-tray { flex-wrap: wrap }
@media (max-width: 1100px) {
  .ds-tray { justify-content: center }
  th { white-space: normal }
  main table { table-layout: auto }
}

@media (max-width: 900px) {
  .ds-controls { padding-right: 48px }
}





html:not(.mi-ready) .material-icons {
  visibility: hidden;
  display: inline-block;
  width: 1em;
  overflow: hidden
}


.tws-range-label.has-times:hover::after {
  content: attr(data-times);
  white-space: pre;
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, .94);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: left;
  padding: 7px 12px;
  border-radius: 7px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .24);
  z-index: 70;
  pointer-events: none
}

.tws-range-label.has-times:hover::before {
  content: "";
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(17, 24, 39, .94);
  z-index: 70;
  pointer-events: none
}


@media (min-width: 1850px) {
  .ds-brand {
    flex: 1 1 0;
    min-width: 0
  }

  .dashboard-selector {
    flex: 0 0 auto
  }

  .ds-controls {
    flex: 1 1 0;
    min-width: 0;
    justify-content: flex-end
  }
}





body.dark .bms-spop .sn,
body.dark .bms-spop-lg .ssl-nm,
body.dark .bms-spop-lg .ssl-v,
body.dark .bms-spop-lg b,
body.dark .site-item .nm { color: #e6edf3 }
body.dark .bms-spop .sc,
body.dark .bms-spop-lg .ssl-l,
body.dark .bms-spop-lg .ssl-on,
body.dark .bms-spop-lg .ssl-leg,
body.dark .bms-spop-lg .ssl-leg-i { color: #9aa7b8 }
body.dark .store-pin-label { background: #1f2730; color: #e6edf3; border-color: #33404e }


body.dark .ds-lh,
body.dark .site-alarm-n,
body.dark .bms-tab .tl,
body.dark .ov-al-l,
body.dark .ov-al-rt,
body.dark .ov-al-none,
body.dark .ov-kpi-lbl,
body.dark .ov-sl,
body.dark .ov-verdict-sub,
body.dark .ov-lastmonth,
body.dark .ov-plot-hd>span:first-child,
body.dark .ov-foot-row span,
body.dark .ov-hl-tot span { color: #9aa7b8 }


body.dark { --green: #4a5058; --green-d: #dfe3e8; --water-d: #7fc0f0 }
body.dark .mlog-add:hover { background: var(--green-d); color: #fff }
body.dark .subtabs a.active,
body.dark .ksv-pk-sel-label,
body.dark .chev,
body.dark .bms-tab.active .tl { color: #df7486 }
body.dark .subtabs a { color: #9aa7b8 }


body.dark .ov-title { color: #df7486 }
body.dark .ov-title span { color: #9aa7b8 !important }


body.dark .live-badge,
body.dark .gen-alarm-lbl,
body.dark .ov-delta.bad,
body.dark .gen-alarm.has .gen-alarm-lbl { color: #ff8f9e }
body.dark .ssl-v.sv-mains,
body.dark .ov-delta.good { color: #57d98a }
body.dark .ssl-v.sv-gen { color: #a8bccb }


body.dark .ov-hv-b-ic,
body.dark .ov-hv-b-sub { color: #86b7f7 !important }


body.dark .ssl-v,
body.dark .ssl-v.sv-en { color: #e6edf3 !important }
body.dark .ssl-v.sv-mains { color: #57d98a !important }
body.dark .ssl-v.sv-gen { color: #a8bccb !important }


body.dark .chip { background: #232c37; color: #cfd8e3; border-color: #33404e }
body.dark .chip.ok { background: #17311f; color: #7fdca0 }
body.dark .chip.warn { background: #33280f; color: #f0c674 }
body.dark .chip.bad { background: #3a1d1d; color: #ff9d9d }

body.dark .chip[style*="#DBEAFE"] { background: #16243a !important; color: #9ec5f5 !important }
body.dark .ov-banner.ok { background: #16241b; color: #8fe0ac; border-color: #24422f }
body.dark .ov-banner.warn { background: #2c2411; color: #f0cf87; border-color: #4a3c18 }
body.dark .ov-al-ck { background: #17311f; color: #7fdca0 }
body.dark .ov-al-ack { background: #17311f; color: #7fdca0 }
body.dark .ov-al-clr { background: #3a1d1d; color: #ff9d9d }


body.dark .genctl.man { background: #8a5a12; color: #fff }
body.dark .genctl.start { background: #1f7a45 }
body.dark .genctl.auto { background: #1e4f8f }
body.dark .genctl.stop { background: #9b2c25 }
body.dark .ov-banner.ok .ov-bk-ic { background: #1f7a45 }
body.dark .ov-banner.warn .ov-bk-ic { background: #a35a04 }


.ov-al-cmt { position: relative; width: 24px; height: 24px; border: 0; border-radius: 6px; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; background: #eef2f7; color: #55627a }
.ov-al-cmt svg { width: 14px; height: 14px; display: block }
.ov-al-cmt:hover { background: #dfe6f0; color: #1f2937 }
.ov-al-cmt.has { background: #e7effb; color: #1d4ed8 }
.ov-al-cmt-n { position: absolute; top: -5px; right: -5px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 8px; background: #1d4ed8; color: #fff; font-size: 9.5px; font-weight: 700; line-height: 14px; text-align: center; box-sizing: border-box }
.ov-al-q { font-size: 11.5px; color: #6B7280; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px }

.almc-pop { width: 100%; box-sizing: border-box; padding-bottom: 10px }
.almc-list { max-height: 340px; overflow-y: auto; margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 8px }
.almc-row { padding: 9px 12px; border-bottom: 1px solid var(--line) }
.almc-row:last-child { border-bottom: 0 }
.almc-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 3px }
.almc-meta b { font-size: 13.5px }
.almc-meta span { font-size: 12px; color: var(--mut); white-space: nowrap }
.almc-txt { font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere }
.almc-empty { padding: 18px 12px; text-align: center; color: var(--mut) }
.almc-add textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; resize: vertical }
.almc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px }
.almc-hint { font-size: 12.5px; color: var(--mut) }

body.dark .ov-al-cmt { background: #232c37; color: #9aa7b8 }
body.dark .ov-al-cmt:hover { background: #2c3746; color: #e6edf3 }
body.dark .ov-al-cmt.has { background: #16243a; color: #86b7f7 }
body.dark .ov-al-cmt-n { background: #2f6fd0; color: #fff }
body.dark .ov-al-q { color: #9aa7b8 }
body.dark .almc-list, body.dark .almc-row { border-color: #33404e }
body.dark .almc-add textarea { background: #161c24; border-color: #33404e; color: #e6edf3 }


.ue-row-wide { grid-column: 1 / -1 }
.ue-row-wide select { flex: 1 1 auto; min-width: 0 }
.tf-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px }
.tf-btns { display: flex; gap: 8px; flex: 0 0 auto }

.tf-pop { min-width: 480px; max-width: 620px; padding-bottom: 10px }
.tf-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--mut); margin-bottom: 4px }
.tf-meta code { font-size: 12.5px }
.tf-ok { color: #16A34A; font-weight: 700 }
.tf-old { color: #D97706; font-weight: 700 }
.tf-sec { font-weight: 700; margin: 14px 0 6px }
.tf-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px }
.tf-r { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line) }
.tf-r span { color: var(--mut); font-size: 13.5px }
.tf-hist { max-height: 200px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px }
.tf-hr { display: flex; align-items: baseline; gap: 10px; padding: 7px 11px; border-bottom: 1px solid var(--line) }
.tf-hr:last-child { border-bottom: 0 }
.tf-ht { color: var(--mut); font-size: 12.5px; white-space: nowrap }
.tf-hr code { margin-left: auto; color: var(--mut); font-size: 12px }
.tf-empty { padding: 14px; text-align: center; color: var(--mut) }
.tf-out { margin-top: 10px }
.tf-warn { color: #B45309; font-size: 13.5px; line-height: 1.45; margin-bottom: 7px }
.tf-json { width: 100%; box-sizing: border-box; font-family: ui-monospace, Consolas, monospace; font-size: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 7px }

body.dark .tf-hist, body.dark .tf-hr, body.dark .tf-r, body.dark .tf-json { border-color: #33404e }
body.dark .tf-json { background: #161c24; color: #e6edf3 }
body.dark .tf-warn { color: #f0cf87 }


.tf-pop-wide { min-width: 640px; max-width: 780px }
.tf-plot { margin: 10px 0 4px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px }
.tf-tblwrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden }
.tf-tbl { width: 100%; border-collapse: collapse }
.tf-tbl th { text-align: left; font-size: 12px; color: var(--mut); font-weight: 600; padding: 7px 10px; border-bottom: 1px solid var(--line) }
.tf-tbl td { padding: 6px 10px; border-bottom: 1px solid var(--line) }
.tf-tbl tr:last-child td { border-bottom: 0 }
.tf-tbl input[type=date] { padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px }
.tf-sel { width: 100%; min-width: 190px }
.tf-del { border: 0; background: transparent; color: #DC2626; cursor: pointer; font-size: 14px; padding: 2px 6px; border-radius: 5px }
.tf-del:hover { background: #fdecea }
.tf-msg { font-size: 12.5px; color: #B45309 }
body.dark .tf-plot, body.dark .tf-tblwrap, body.dark .tf-tbl th, body.dark .tf-tbl td { border-color: #33404e }
body.dark .tf-tbl input[type=date] { background: #161c24; border-color: #33404e; color: #e6edf3 }
body.dark .tf-del:hover { background: #3a1d1d }
.tf-rates .tf-empty { grid-column: 1 / -1; text-align: left; padding: 10px 0 }

.tf-keys { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px }
.tf-key { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font: inherit; font-size: 12.5px; color: var(--mut); cursor: pointer }
.tf-key:hover { border-color: #b9c2cd; color: #111827 }
.tf-key.on { border-color: transparent; background: #eef2f7; color: #111827; font-weight: 700 }
.tf-key-sw { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto }
body.dark .tf-key { border-color: #33404e; color: #9aa7b8 }
body.dark .tf-key:hover { color: #e6edf3 }
body.dark .tf-key.on { background: #232c37; color: #e6edf3 }


.tf-dd { position: relative; min-width: 210px }
.tf-dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font: inherit; font-size: 13.5px; cursor: pointer; text-align: left }
.tf-dd-btn:hover { border-color: #b9c2cd }
.tf-dd-caret { color: var(--mut); flex: 0 0 auto }
.tf-dd-menu { position: absolute; z-index: 40; top: calc(100% + 3px); left: 0; min-width: 100%; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 22px rgba(16,24,40,.13); padding: 3px }
.tf-dd-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer }
.tf-dd-item:hover { background: #f2f5f9 }
.tf-dd-item.on { background: #eef2f7; font-weight: 700 }
.tf-dd-nm { flex: 1 1 auto; min-width: 0; font-size: 13.5px; display: flex; flex-direction: column; line-height: 1.25 }
.tf-dd-sub { font-size: 11.5px; color: var(--mut); font-weight: 400 }
.tf-dd-pen { flex: 0 0 auto; border: 0; background: transparent; color: var(--mut); cursor: pointer; padding: 3px; border-radius: 5px; line-height: 0 }
.tf-dd-pen:hover { color: var(--green); background: rgba(0,0,0,.06) }
.tf-dd-new { border-top: 1px solid var(--line); margin-top: 3px; color: var(--green); font-weight: 600 }
.tf-dd-empty { padding: 10px; color: var(--mut); font-size: 13px; text-align: center }
.tf-rev input[type=number] { width: 84px }
.tf-rev input[type=date] { width: 132px }
body.dark .tf-dd-btn, body.dark .tf-dd-menu { background: #161c24; border-color: #33404e; color: #e6edf3 }
body.dark .tf-dd-item:hover { background: #232c37 }
body.dark .tf-dd-item.on { background: #232c37 }
body.dark .tf-dd-new { border-top-color: #33404e }

.tf-pop-wide { max-width: 900px }
.tf-tblwrap { overflow-x: auto }
.tf-rev { min-width: 720px }

.modal:has(.tf-pop-wide) { width: auto; max-width: 94vw }


.tf-schedwrap { border: 1px solid var(--line); border-radius: 8px; overflow: visible }
.tf-schedwrap .tf-tbl tr:first-child td { border-top: 0 }
.tf-revwrap { border: 1px solid var(--line); border-radius: 8px; overflow-x: auto }
.tf-dd-menu.up { top: auto; bottom: calc(100% + 3px) }
body.dark .tf-schedwrap, body.dark .tf-revwrap { border-color: #33404e }

.ue-modal { max-width: none; width: 100% }
.modal:has(.ue-modal) { width: min(860px, 94vw) }

.tf-newmeta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 10px }
.tf-newmeta .ue-row { flex: 1 1 240px; gap: 10px }
.tf-newmeta input, .tf-newmeta select {
  flex: 1 1 auto; min-width: 0; padding: 7px 9px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--panel, #fff); color: var(--ink); font-size: 13px
}

.tf-pctpop {
  position: absolute; z-index: 30; margin-top: 6px; min-width: 250px;
  background: var(--panel, #fff); border: 1px solid var(--line); border-radius: 9px;
  box-shadow: 0 8px 26px rgba(16, 24, 40, .16); padding: 11px 12px
}
.tf-pcthd { font-weight: 700; margin-bottom: 7px }
.tf-pctrow { display: flex; align-items: center; gap: 8px; font-size: 13px }
.tf-pctrow input { width: 84px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel, #fff); color: var(--ink); text-align: right }
.tf-pctu { color: var(--mut) }
.tf-pctprev { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 4px; font-size: 12px; color: var(--mut); max-height: 132px; overflow-y: auto }
.tf-pctline b { color: var(--ink); font-weight: 600; text-transform: capitalize; margin-right: 4px }
.tf-pctfoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px }
.tf-bar { position: relative }
body.dark .tf-pctpop { background: #1b222b; border-color: #33404e }

.plot-month { color: var(--mut); font-weight: 600 }

.lc-leg { user-select: none; transition: opacity .12s }
.lc-leg:hover { opacity: .7 }
.lc-leg.lc-off { opacity: .38; text-decoration: line-through }


.tou-day { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; margin-bottom: 9px }
.tou-day-hd { display: flex; align-items: center; font-weight: 700; font-size: 13px; margin-bottom: 6px }
.tou-add { margin-left: auto; display: flex; gap: 6px }
.tou-add .btn { padding: 2px 9px; font-size: 11.5px }
.tou-tbl td { padding: 3px 6px 3px 0 }
.tou-tbl input[type=time] { width: 110px }
.tou-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: -1px }
.tou-dot.tou-peak { background: #DC2626 }
.tou-dot.tou-standard { background: #F5A623 }
.hol-grid { display: flex; flex-wrap: wrap; gap: 6px }
.hol-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(0, 0, 0, .05); border-radius: 6px; padding: 3px 5px 3px 9px; font-size: 12px; white-space: nowrap }
.hol-chip .tf-del { padding: 0 3px }
body.dark .hol-chip { background: rgba(255, 255, 255, .08) }
body.dark .tou-day { border-color: #2b3846 }



.bms-cir-grid { grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 12px; column-gap: 12px; margin-top: 4px }
.cir-card { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px 10px; background: var(--panel) }
.cir-hd { display: flex; align-items: center; gap: 8px }
.cir-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto }
.cir-dot.on { background: #16A34A; box-shadow: 0 0 0 3px rgba(22, 163, 74, .15) }
.cir-dot.off { background: #9AA0A8 }
.cir-nm { font-weight: 700; font-size: 13.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.cir-st { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; flex: 0 0 auto }
.cir-st.on { color: #16A34A }
.cir-st.off { color: #9AA0A8 }
.cir-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px }
.cir-chip { font-size: 11px; background: rgba(0, 0, 0, .05); border-radius: 5px; padding: 2px 7px; color: var(--txt); white-space: nowrap }
.cir-chip b { font-weight: 600; color: var(--mut); margin-right: 4px }
.cir-chip.muted { color: var(--mut) }
.cir-chip.live { background: rgba(31, 139, 77, .12) }
.cir-chip.live b { color: var(--green-d) }
body.dark .cir-card { background: #1b222b; border-color: #2b3846 }
body.dark .cir-chip { background: rgba(255, 255, 255, .07) }
body.dark .cir-chip.live { background: rgba(31, 139, 77, .22) }
.acs.ok .acs-v { color: #16A34A }
.acs.warn .acs-v { color: #F5A623 }
body.dark .acs { background: rgba(255, 255, 255, .06) }
.cir-schbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 10px 0 6px }
.cir-sch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--txt); user-select: none }
.cir-sch input { width: 15px; height: 15px; accent-color: var(--green); margin: 0 }
.cir-schbar-ro .cir-sch, .cir-schbar-ro .cir-sch input { cursor: default }


@media (max-width: 640px) {
  html, body { overflow-x: hidden }

  
  .ds-wrap { flex-wrap: wrap; gap: 8px; padding: 8px 10px }
  .ds-brand { flex: 1 1 100%; gap: 10px }
  .ds-logo { max-height: 34px; width: auto }
  .ds-col-store { flex: 1 1 auto; min-width: 0 }
  .ds-store, .ds-sel { max-width: 100%; font-size: 13px }
  .ds-kebab-wrap { position: absolute; top: 8px; right: 10px }

  
  .tws-inline { flex: 1 1 100%; flex-wrap: wrap; gap: 8px 12px; row-gap: 8px }
  .tws-inline .ds-col { flex: 1 1 auto; min-width: 0 }
  #tws-nav-group { flex: 1 1 100% }
  .tws-range-label { font-size: 13px }
  .ds-lbl { font-size: 10px }

  
  .dashboard-selector { width: 100% }
  .ds-tray, .nav-tray { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 4px }
  .ds-tray::-webkit-scrollbar, .nav-tray::-webkit-scrollbar { display: none }
  .ds-tray > *, .nav-tray > * { flex: 0 0 auto; white-space: nowrap; font-size: 14px; padding: 7px 13px }

  
  .grid, .grid2, .grid3, .bms-cir-grid, .ue-grid, .ov-grid, .ov-grid-3 { grid-template-columns: 1fr !important }
  .card, .panel { min-width: 0 }
  .subtabs { overflow-x: auto; white-space: nowrap; scrollbar-width: none }
  .subtabs::-webkit-scrollbar { display: none }

  
  .card table, .panel table, table.tf-tbl, table.rpt-tbl { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch }
  .card table thead, .panel table thead { white-space: nowrap }

  
  .modal-bg > div, .ue-modal, .dpop, .cirtmr-pop, .store-modal, .tf-pop {
    width: calc(100vw - 20px) !important; max-width: calc(100vw - 20px) !important;
    max-height: 88vh; overflow-y: auto; box-sizing: border-box
  }
  .ue-modal, .dpop { padding: 14px 13px }

  
  h2 { font-size: 19px }
  .panel-title, .plot-title { font-size: 14px }
  .ov-ch h3, #u-content .ov-ch h3 { font-size: 15px !important }
  .ov-u, #u-content .ov-u, .ov-bv, #u-content .ov-bv, .ov-wstat-v, #u-content .ov-wstat-v,
  .ov-gen-cv, #u-content .ov-gen-cv, .ov-kpi-val, #u-content .ov-kpi-val, .ov-temp-val, #u-content .ov-temp-val { font-size: 17px !important }
  .ov-verdict, #u-content .ov-verdict { font-size: 21px !important }
  .ov-sl, #u-content .ov-sl, .ov-kpi-lbl, #u-content .ov-kpi-lbl { font-size: 11px !important }
  .kpi-big, .util-big, .big-num { font-size: 26px }

  
  #map, .bms-map, .leaflet-container { min-height: 320px }
  .bms-shell { grid-template-columns: 1fr !important }
  .bms-side { max-height: 40vh; overflow-y: auto }
}


@media (max-width: 640px) {
  .card h3 { font-size: 14px; margin-bottom: 8px }
  .big { font-size: 24px; margin: 4px 0 }
  .card { padding: 12px }
  .subtabs a, .subtabs > * { font-size: 13px }
}


.ov-grid.ov-grid-3 { height: auto; grid-auto-rows: auto; min-height: max(calc(var(--ov-avail, 62vh) * 1.5 + 14px), 1082px); padding-bottom: 18px }

.ov-grid-3 .ov-col { min-height: max(calc(var(--ov-avail, 62vh) * 1.5), 1068px) }
#view:has(> #u-content > .ov-grid), .bms-ov { overflow-y: auto }
.ov-grid:not(.ov-grid-3) .ov-card { min-height: 340px }


.dpop svg text, .kpi-pop svg text, .cirtmr-pop svg text, .modal-bg svg text { font-size: 13px }
.dpop .plot-title, .kpi-pop .plot-title, .modal-bg .plot-title { font-size: 14px; font-weight: 700 }
.dpop .lc-leg, .kpi-pop .lc-leg, .modal-bg .lc-leg { font-size: 13px }
.modal-bg .tdc-tbl { font-size: 13px }

.ue-modal { font-size: 13px }
.ue-modal h2 { font-size: 20px }
.ue-sub { font-size: 14px }
.ue-modal .subtabs a { font-size: 14px }
.ue-hint { font-size: 13px }
.ue-row, .ue-row span, .ue-modal label { font-size: 13px }
.ue-modal input, .ue-modal select, .ue-modal button { font-size: 13px }
.ue-modal .tf-tbl th { font-size: 12px; letter-spacing: .03em }
.ue-modal .tf-tbl td, .ue-modal .tf-tbl input, .ue-modal .tf-tbl select { font-size: 13px }
.ue-modal .hol-chip { font-size: 12.5px }
.ue-modal .tou-day-hd { font-size: 14px }
.ue-modal .tf-msg { font-size: 12.5px }



@media (max-width: 1849px) { .dashboard-pills { padding: 9px 16px; font-size: 15px } }
@media (max-width: 1599px) { .dashboard-pills { padding: 8px 12px; font-size: 14px } }
@media (max-width: 1439px) { .dashboard-pills { padding: 7px 9px; font-size: 13px } }
@media (max-width: 1365px) { .dashboard-pills { padding: 6px 7px; font-size: 12.5px } }
@media (max-width: 1599px) { .ds-wrap { padding: 0 20px } }

table[data-resizable="1"] th, table[data-resizable="1"] td { overflow: hidden; text-overflow: ellipsis }

@media (max-width: 700px) {
  .tws-inline.tws-off,
  .tws-inline[style*="hidden"] { display: none }
  .dashboard-pills { min-height: 42px }
  .ds-sel,
  .ds-store,
  .ds-site-btn,
  .tbl-search { min-height: 40px }
  .ds-kebab { min-width: 40px; min-height: 40px }
  .btn,
  .ov-go { padding-top: 11px; padding-bottom: 11px }
  input:not([type=checkbox]):not([type=radio]),
  select,
  textarea,
  .ds-sel,
  .ds-store,
  .tbl-search,
  #login input { font-size: 16px }
}

#login .auth-sub { color: #9fb0bf; font-size: 13px; line-height: 1.55; margin: 4px 0 2px }
#login .pw-req { color: #8a99a8; font-size: 11.5px; line-height: 1.45; margin-top: 9px }
#login .auth-links { margin-top: 18px; text-align: center; font-size: 13px }
#login .auth-links a { color: #c8c8c8; text-decoration: none; cursor: pointer }
#login .auth-links a:hover { text-decoration: underline }
#login button:disabled { opacity: .6; cursor: default }

.ds-menu-item.ds-mi-l { justify-content: flex-start }
.ds-menu-item.ds-mi-l .material-icons { font-size: 18px; color: var(--mut) }

.modal:has(.pf), .modal:has(.set) { width: min(440px, 92vw) }
.pf h2, .set h2 { margin: 0 0 16px; font-size: 19px; color: var(--ink) }
.pf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px }
.pf-av { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex: 0 0 auto; letter-spacing: .5px }
.pf-name { font-weight: 700; font-size: 16px; color: var(--ink) }
.pf-email { color: var(--mut); font-size: 13px; word-break: break-all }
.pf-grid { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden }
.pf-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px }
.pf-row:last-child { border-bottom: 0 }
.pf-l { color: var(--mut); flex: 0 0 auto }
.pf-v { color: var(--ink); font-weight: 600; text-align: right; word-break: break-word }
.pf-actions { margin-top: 18px; display: flex; justify-content: flex-end }
.pf-loading { color: var(--mut); padding: 18px 2px }
.set-sec { font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--mut); font-weight: 700; margin: 16px 0 2px }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line) }
.set-txt { min-width: 0 }
.set-t { font-weight: 600; font-size: 14px; color: var(--ink) }
.set-d { color: var(--mut); font-size: 12.5px; margin-top: 2px; line-height: 1.4 }
.set .ds-sel { min-width: 150px; flex: 0 0 auto }

@media (min-width: 701px) and (max-width: 1400px) {
  body #u-content .ov-grid, body #u-content .ov-grid-3 { display: grid !important; grid-template-columns: 1fr 1fr !important; height: auto !important; min-height: 0 !important; overflow: visible !important; grid-auto-rows: 1fr !important; align-items: stretch !important; padding: 12px !important; gap: 12px !important }
  body #u-content .ov-col { display: contents !important }
  body #u-content .ov-card { min-height: 0 !important; height: auto !important; flex: 0 0 auto !important }
  body #u-content .ov-card:has(#ov-health) { order: 1 }
  body #u-content .ov-card:has(#ov-elec) { order: 2 }
  body #u-content .ov-card:has(#ov-water) { order: 3 }
  body #u-content .ov-card:has(#ov-alarms) { order: 4 }
  body #u-content .ov-card:has(#ov-gen) { order: 5 }
  body #u-content .ov-card:has(#ov-refrig) { order: 6 }
  body #u-content .ov-card:has(#ov-kpi) { order: 7 }
  body #u-content .ov-card:has(#ov-assets) { order: 8 }
  body #u-content .ov-card:has(#ov-hvac) { order: 9 }
  body #u-content .ov-cbody, body #u-content .ov-flex1 { flex: 0 0 auto !important; min-height: 0 !important }
  body #u-content .ov-line, body #u-content .ov-line-svg, body #u-content .ov-plot { min-height: 34px }
  body #u-content .ov-sub-scroll { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; grid-auto-rows: min-content !important; gap: 8px !important; flex: 0 0 auto !important; height: auto !important; max-height: 300px !important; min-height: 0 !important; overflow-y: auto !important; overflow-x: hidden !important; align-content: start !important }
  body #u-content .ov-sub-scroll > .ov-ucard { height: auto !important; min-width: 0 !important; flex: none !important; padding: 11px 13px }
  body #u-content #ov-health { flex: 1 1 auto !important }
  body #u-content .ov-hl-top { flex: 1 1 auto !important; margin-top: 12px !important; gap: 22px !important }
  body #u-content .ov-hl-top > div:first-child > svg { height: 118px !important }
  body #u-content .ov-hpie-svg { height: 124px !important }
  body #u-content #ov-hl-pie text { font-size: 17px !important }
}

@media (max-width: 1400px) {
  nav.dashboard-selector { position: static !important; left: auto !important; transform: none !important; order: 5; flex: 1 1 100%; width: 100%; margin: 0 }
  nav.dashboard-selector .ds-tray, #nav.ds-tray { display: flex !important; width: 100% !important; box-sizing: border-box; flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto !important; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 3px }
  nav.dashboard-selector .ds-tray::-webkit-scrollbar, #nav.ds-tray::-webkit-scrollbar { display: none }
  nav.dashboard-selector .dashboard-pills { flex: 1 0 auto !important; text-align: center; justify-content: center; white-space: nowrap }
}

@media (min-width: 701px) and (max-width: 1400px) {
  body #u-content .ov-grid, body #u-content .ov-grid-3 { display: grid !important; grid-template-columns: 1fr 1fr !important; height: auto !important; min-height: 0 !important; overflow: visible !important; grid-auto-rows: 1fr !important; align-items: stretch !important; padding: 12px !important; gap: 12px !important }
  body #u-content .ov-col { display: contents !important }
  body #u-content .ov-card { min-height: 0 !important; height: auto !important; flex: 0 0 auto !important }
  body #u-content .ov-card:has(#ov-health) { order: 1 }
  body #u-content .ov-card:has(#ov-elec) { order: 2 }
  body #u-content .ov-card:has(#ov-water) { order: 3 }
  body #u-content .ov-card:has(#ov-alarms) { order: 4 }
  body #u-content .ov-card:has(#ov-gen) { order: 5 }
  body #u-content .ov-card:has(#ov-refrig) { order: 6 }
  body #u-content .ov-card:has(#ov-kpi) { order: 7 }
  body #u-content .ov-card:has(#ov-assets) { order: 8 }
  body #u-content .ov-card:has(#ov-hvac) { order: 9 }
  body #u-content .ov-cbody, body #u-content .ov-flex1 { flex: 0 0 auto !important; min-height: 0 !important }
  body #u-content .ov-line, body #u-content .ov-line-svg, body #u-content .ov-plot { min-height: 34px }
  body #u-content .ov-sub-scroll { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; grid-auto-rows: min-content !important; gap: 8px !important; flex: 0 0 auto !important; height: auto !important; max-height: 300px !important; min-height: 0 !important; overflow-y: auto !important; overflow-x: hidden !important; align-content: start !important }
  body #u-content .ov-sub-scroll > .ov-ucard { height: auto !important; min-width: 0 !important; flex: none !important; padding: 11px 13px }
  body #u-content #ov-health { flex: 1 1 auto !important }
  body #u-content .ov-hl-top { flex: 1 1 auto !important; margin-top: 12px !important; gap: 22px !important }
  body #u-content .ov-hl-top > div:first-child > svg { height: 118px !important }
  body #u-content .ov-hpie-svg { height: 124px !important }
  body #u-content #ov-hl-pie text { font-size: 17px !important }
}

@media (max-width: 1400px) {
  nav.dashboard-selector { position: static !important; left: auto !important; transform: none !important; order: 5; flex: 1 1 100%; width: 100%; margin: 0 }
  nav.dashboard-selector .ds-tray, #nav.ds-tray { display: flex !important; width: 100% !important; box-sizing: border-box; flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto !important; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 3px }
  nav.dashboard-selector .ds-tray::-webkit-scrollbar, #nav.ds-tray::-webkit-scrollbar { display: none }
  nav.dashboard-selector .dashboard-pills { flex: 1 0 auto !important; text-align: center; justify-content: center; white-space: nowrap }
}

@media (min-width: 701px) and (max-width: 1400px) {
  body #u-content .ov-grid, body #u-content .ov-grid-3 { display: grid !important; grid-template-columns: 1fr 1fr !important; height: auto !important; min-height: 0 !important; overflow: visible !important; grid-auto-rows: 1fr !important; align-items: stretch !important; padding: 12px !important; gap: 12px !important }
  body #u-content .ov-col { display: contents !important }
  body #u-content .ov-card { min-height: 0 !important; height: auto !important; flex: 0 0 auto !important }
  body #u-content .ov-card:has(#ov-health) { order: 1 }
  body #u-content .ov-card:has(#ov-elec) { order: 2 }
  body #u-content .ov-card:has(#ov-water) { order: 3 }
  body #u-content .ov-card:has(#ov-alarms) { order: 4 }
  body #u-content .ov-card:has(#ov-gen) { order: 5 }
  body #u-content .ov-card:has(#ov-refrig) { order: 6 }
  body #u-content .ov-card:has(#ov-kpi) { order: 7 }
  body #u-content .ov-card:has(#ov-assets) { order: 8 }
  body #u-content .ov-card:has(#ov-hvac) { order: 9 }
  body #u-content .ov-cbody, body #u-content .ov-flex1 { flex: 0 0 auto !important; min-height: 0 !important }
  body #u-content .ov-line, body #u-content .ov-line-svg, body #u-content .ov-plot { min-height: 34px }
  body #u-content .ov-sub-scroll { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; grid-auto-rows: min-content !important; gap: 8px !important; flex: 0 0 auto !important; height: auto !important; max-height: 300px !important; min-height: 0 !important; overflow-y: auto !important; overflow-x: hidden !important; align-content: start !important }
  body #u-content .ov-sub-scroll > .ov-ucard { height: auto !important; min-width: 0 !important; flex: none !important; padding: 11px 13px }
  body #u-content #ov-health { flex: 1 1 auto !important }
  body #u-content .ov-hl-top { flex: 1 1 auto !important; margin-top: 12px !important; gap: 22px !important }
  body #u-content .ov-hl-top > div:first-child > svg { height: 118px !important }
  body #u-content .ov-hpie-svg { height: 124px !important }
  body #u-content #ov-hl-pie text { font-size: 17px !important }
}

@media (max-width: 1400px) {
  nav.dashboard-selector { position: static !important; left: auto !important; transform: none !important; order: 5; flex: 1 1 100%; width: 100%; margin: 0 }
  nav.dashboard-selector .ds-tray, #nav.ds-tray { display: flex !important; width: 100% !important; box-sizing: border-box; flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto !important; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 3px }
  nav.dashboard-selector .ds-tray::-webkit-scrollbar, #nav.ds-tray::-webkit-scrollbar { display: none }
  nav.dashboard-selector .dashboard-pills { flex: 1 0 auto !important; text-align: center; justify-content: center; white-space: nowrap }
}

@media (min-width: 701px) and (max-width: 1400px) {
  body #u-content .ov-grid, body #u-content .ov-grid-3 { display: grid !important; grid-template-columns: 1fr 1fr !important; height: auto !important; min-height: 0 !important; overflow: visible !important; grid-auto-rows: 1fr !important; align-items: stretch !important; padding: 12px !important; gap: 12px !important }
  body #u-content .ov-col { display: contents !important }
  body #u-content .ov-card { min-height: 0 !important; height: auto !important; flex: 0 0 auto !important }
  body #u-content .ov-card:has(#ov-health) { order: 1 }
  body #u-content .ov-card:has(#ov-elec) { order: 2 }
  body #u-content .ov-card:has(#ov-water) { order: 3 }
  body #u-content .ov-card:has(#ov-alarms) { order: 4 }
  body #u-content .ov-card:has(#ov-gen) { order: 5 }
  body #u-content .ov-card:has(#ov-refrig) { order: 6 }
  body #u-content .ov-card:has(#ov-kpi) { order: 7 }
  body #u-content .ov-card:has(#ov-assets) { order: 8 }
  body #u-content .ov-card:has(#ov-hvac) { order: 9 }
  body #u-content .ov-cbody, body #u-content .ov-flex1 { flex: 0 0 auto !important; min-height: 0 !important }
  body #u-content .ov-line, body #u-content .ov-line-svg, body #u-content .ov-plot { min-height: 34px }
  body #u-content .ov-sub-scroll { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; grid-auto-rows: min-content !important; gap: 8px !important; flex: 0 0 auto !important; height: auto !important; max-height: 300px !important; min-height: 0 !important; overflow-y: auto !important; overflow-x: hidden !important; align-content: start !important }
  body #u-content .ov-sub-scroll > .ov-ucard { height: auto !important; min-width: 0 !important; flex: none !important; padding: 11px 13px }
  body #u-content #ov-health { flex: 1 1 auto !important }
  body #u-content .ov-hl-top { flex: 1 1 auto !important; margin-top: 12px !important; gap: 22px !important }
  body #u-content .ov-hl-top > div:first-child > svg { height: 118px !important }
  body #u-content .ov-hpie-svg { height: 124px !important }
  body #u-content #ov-hl-pie text { font-size: 17px !important }
}

@media (max-width: 1400px) {
  nav.dashboard-selector { position: static !important; left: auto !important; transform: none !important; order: 5; flex: 1 1 100%; width: 100%; margin: 0 }
  nav.dashboard-selector .ds-tray, #nav.ds-tray { display: flex !important; width: 100% !important; box-sizing: border-box; flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto !important; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 3px }
  nav.dashboard-selector .ds-tray::-webkit-scrollbar, #nav.ds-tray::-webkit-scrollbar { display: none }
  nav.dashboard-selector .dashboard-pills { flex: 1 0 auto !important; text-align: center; justify-content: center; white-space: nowrap }
}

@media (min-width: 701px) and (max-width: 1400px) {
  body #u-content .ov-grid, body #u-content .ov-grid-3 { display: grid !important; grid-template-columns: 1fr 1fr !important; height: auto !important; min-height: 0 !important; overflow: visible !important; grid-auto-rows: 1fr !important; align-items: stretch !important; padding: 12px !important; gap: 12px !important }
  body #u-content .ov-col { display: contents !important }
  body #u-content .ov-card { min-height: 0 !important; height: auto !important; flex: 0 0 auto !important }
  body #u-content .ov-card:has(#ov-health) { order: 1 }
  body #u-content .ov-card:has(#ov-elec) { order: 2 }
  body #u-content .ov-card:has(#ov-water) { order: 3 }
  body #u-content .ov-card:has(#ov-alarms) { order: 4 }
  body #u-content .ov-card:has(#ov-gen) { order: 5 }
  body #u-content .ov-card:has(#ov-refrig) { order: 6 }
  body #u-content .ov-card:has(#ov-kpi) { order: 7 }
  body #u-content .ov-card:has(#ov-assets) { order: 8 }
  body #u-content .ov-card:has(#ov-hvac) { order: 9 }
  body #u-content .ov-cbody, body #u-content .ov-flex1 { flex: 1 1 auto !important; min-height: 0 !important; display: flex; flex-direction: column }
  body #u-content .ov-wstat, body #u-content .ov-al-recent, body #u-content .ov-gen-grid, body #u-content .ov-kpi-temps, body #u-content .ov-kpi-ahrow, body #u-content .ov-water-main, body #u-content .ov-gen-content { flex: 1 1 auto !important; min-height: 0 !important }
  body #u-content .ov-util-sub, body #u-content .ov-water-sub, body #u-content .ov-util-top, body #u-content .ov-water-top, body #u-content .ov-al-tiles, body #u-content .ov-gen-top, body #u-content .ov-kpi-tou { flex: 0 0 auto !important }
  body #u-content .ov-subcard, body #u-content .ov-ucard, body #u-content .ov-wstat-c, body #u-content .ov-gen-cell, body #u-content .ov-temp-card, body #u-content .ov-kpi-ahc { align-self: stretch !important }
  body #u-content .ov-line, body #u-content .ov-line-svg, body #u-content .ov-plot { min-height: 34px }
  body #u-content .ov-sub-scroll { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; grid-auto-rows: minmax(56px, 1fr) !important; gap: 8px !important; flex: 1 1 auto !important; height: auto !important; max-height: none !important; min-height: 0 !important; overflow-y: auto !important; overflow-x: hidden !important; align-content: stretch !important }
  body #u-content .ov-sub-scroll > .ov-ucard { height: auto !important; min-width: 0 !important; flex: none !important; padding: 11px 13px }
  body #u-content #ov-health { flex: 1 1 auto !important }
  body #u-content .ov-hl-top { flex: 1 1 auto !important; margin-top: 12px !important; gap: 22px !important }
  body #u-content .ov-hl-top > div:first-child > svg { height: 118px !important }
  body #u-content .ov-hpie-svg { height: 124px !important }
  body #u-content #ov-hl-pie text { font-size: 17px !important }
  main .grid, main .grid2, main .grid3, main .bms-cir-grid, main .ue-grid { grid-template-columns: 1fr 1fr !important }
}

@media (max-width: 1849px) {
  .ds-logo { max-height: clamp(48px, calc(4.4vw + 6px), 84px) !important; max-width: clamp(60px, calc(13vw - 6px), 230px) !important; width: auto; object-fit: contain }
  .ds-store, .ds-site-btn { max-width: none !important; font-size: clamp(7px, calc(0.55vw + 4.85px), 15px) !important }
  nav.dashboard-selector .dashboard-pills { font-size: clamp(9px, calc(1.1vw + 5.5px), 15px) !important; padding: clamp(5px, 0.6vw, 10px) clamp(4px, calc(1.1vw - 0.3px), 18px) !important }
}

@media (max-width: 1439px) {
  .ds-wrap { position: relative; flex-wrap: wrap; height: auto; min-height: 0; row-gap: 8px; column-gap: 6px; padding: 8px 48px 8px 10px; align-items: center }
  .ds-logo-wrap { flex: 0 1 auto !important; order: 1 !important; justify-content: flex-start !important }
  .ds-brand { order: 1; flex: 0 1 auto; min-width: 0; gap: 6px; min-height: 0 }
  .ds-col-store { flex: 0 1 auto; min-width: 0; align-items: center; gap: 0 !important }
  .ds-lbl { line-height: 1; margin: 0 !important; font-size: clamp(8px, calc(0.3vw + 6.8px), 11px) }
  .ds-store, .ds-site-btn { width: auto !important; max-width: none !important; overflow: visible !important; white-space: nowrap }
  .ds-store #siteBtnTxt, .ds-site-btn #siteBtnTxt, #siteBtnTxt { overflow: visible !important; text-overflow: clip !important; max-width: none !important }
  nav.dashboard-selector { order: 5 !important; position: static !important; left: auto !important; transform: none !important; flex: 1 1 100%; width: 100%; margin: 0 }
  nav.dashboard-selector .ds-tray, #nav.ds-tray { display: flex !important; width: 100% !important; box-sizing: border-box; flex-wrap: nowrap !important; justify-content: center !important; overflow: hidden !important; gap: 3px }
  nav.dashboard-selector .ds-tray::-webkit-scrollbar, #nav.ds-tray::-webkit-scrollbar { display: none }
  nav.dashboard-selector .dashboard-pills { flex: 1 1 auto !important; min-width: 0 !important; text-align: center; justify-content: center; white-space: nowrap; min-height: 34px !important }
  .ds-store, .ds-site-btn, .ds-sel, .ds-arrow, #tws-nav-group .tws-range-label { height: clamp(30px, calc(0.76vw + 27px), 38px) !important; min-height: 0 !important; box-sizing: border-box !important; align-self: center }
  .ds-kebab { min-width: 34px !important; min-height: 34px !important }
  .ds-controls { order: 2; position: static; flex: 0 1 auto; display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 6px; margin: 0 0 0 auto; padding: 0; min-width: 0 }
  .ds-controls-row { display: contents }
  .ds-kebab-wrap { position: absolute; top: 10px; right: 8px; z-index: 6; margin: 0 }
  .ov-refresh { position: static !important; transform: none !important; right: auto; top: auto; pointer-events: auto; flex: 0 0 auto; display: flex; align-items: center; gap: 5px }
  .ov-refresh-ic { width: clamp(14px, 1.2vw, 18px); height: clamp(14px, 1.2vw, 18px) }
  .ov-refresh-txt { line-height: 1.1 }
  .ov-refresh-next { font-size: clamp(10px, 0.8vw, 13px) }
  .ov-refresh-ago { font-size: clamp(8.5px, 0.7vw, 11px) }
  .tws-inline.tws-off, .tws-inline[style*="hidden"] { display: none !important }
  .tws-inline { order: 2; position: static; flex: 0 1 auto; min-height: 0; min-width: 0; margin-left: auto; display: flex !important; flex-wrap: nowrap !important; justify-content: flex-end; align-items: flex-end; gap: clamp(3px, 0.5vw, 10px) }
  .tws-inline .ds-col { display: flex !important; flex: 0 0 auto !important; flex-direction: column !important; align-items: center; gap: 0 !important; min-width: 0 }
  .tws-inline .ds-lbl { display: flex !important; align-items: center !important; justify-content: center !important; height: clamp(20px, calc(0.45vw + 17.5px), 24px) !important; line-height: 1 !important; margin: 0 !important; font-size: clamp(8px, calc(0.3vw + 6.8px), 11px) !important }
  .ds-lh-tray { margin: 0 !important; height: clamp(20px, calc(0.45vw + 17.5px), 24px) !important }
  .ds-lh { display: flex; align-items: center; font-size: clamp(6px, calc(0.67vw + 3.39px), 13px) !important; padding: 0 clamp(3px, 0.76vw, 11px) !important }
  #tws-nav-group { display: flex !important; flex: 0 0 auto !important; align-items: center; gap: 1px }
  #tws-nav-group .tws-range-label { width: clamp(78px, calc(15vw + 19px), 160px) !important; flex: 0 0 auto !important; min-width: 0 !important; text-align: center; overflow: hidden !important }
  .tws-range-label { min-width: 0; font-size: clamp(8px, calc(0.667vw + 5.4px), 15px) !important; padding: 0 2px !important }
  .ds-arrow { width: clamp(14px, calc(1.44vw + 8.4px), 29px) !important; display: flex; align-items: center; justify-content: center }
  .ds-sel { padding: 3px clamp(13px, 1.6vw, 24px) 3px 4px !important; font-size: clamp(7px, calc(0.65vw + 4.46px), 14px) !important; text-overflow: ellipsis; overflow: hidden; background-position: right 4px center !important; background-size: 9px auto !important }
}

@media (max-width: 1024px) {
  #app table, #app table.tf-tbl, #app table.rpt-tbl, #app table.pb-tbl, #app table.rpt-table, #app table.tdc-tbl, #app table.mlog-tbl { display: table !important; width: auto !important; min-width: 100% !important; max-width: none !important; table-layout: auto !important; overflow: visible !important; border-collapse: collapse }
  #app table td, #app table th { white-space: normal !important; word-break: break-word !important; overflow-wrap: anywhere !important; hyphens: auto; padding: 4px 4px !important; font-size: 10.5px !important; line-height: 1.25 !important; max-width: none !important; min-width: 0 !important; width: auto !important; text-align: left }
  #app table th { vertical-align: bottom; font-size: 10px !important }
  #app table td button, #app table th button, #app table td a.btn, #app table .export-btn, #app table [data-export] { font-size: 9px !important; padding: 3px 5px !important; min-width: 0 !important; width: auto !important; white-space: nowrap }
  #app table .chip { white-space: nowrap !important; font-size: 9px !important; padding: 3px 5px !important; line-height: 1.2 }
  #app .card:has(table), #app .panel:has(table), #app .tf-tblwrap, #app .tf-revwrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; max-width: 100% !important }
}

@media (max-width: 700px) {
  body #u-content .ov-grid, body #u-content .ov-grid-3, body #u-content .ov-grid.ov-grid-3 { display: grid !important; grid-template-columns: 1fr !important; grid-auto-rows: auto !important; align-items: start !important; height: auto !important; min-height: 0 !important; overflow: visible !important; padding: 10px !important; gap: 12px !important }
  body #u-content .ov-grid-3 .ov-col { min-height: 0 !important }
  body #u-content .ov-col { display: contents !important }
  body #u-content .ov-card { min-height: 0 !important; height: auto !important; flex: 0 0 auto !important; padding: 14px 15px }
  body #u-content .ov-card:has(#ov-health) { order: 1 }
  body #u-content .ov-card:has(#ov-elec) { order: 2 }
  body #u-content .ov-card:has(#ov-water) { order: 3 }
  body #u-content .ov-card:has(#ov-alarms) { order: 4 }
  body #u-content .ov-card:has(#ov-gen) { order: 5 }
  body #u-content .ov-card:has(#ov-refrig) { order: 6 }
  body #u-content .ov-card:has(#ov-kpi) { order: 7 }
  body #u-content .ov-card:has(#ov-assets) { order: 8 }
  body #u-content .ov-card:has(#ov-hvac) { order: 9 }
  body #u-content .ov-cbody, body #u-content .ov-flex1 { flex: 1 1 auto !important; min-height: 0 !important; display: flex; flex-direction: column }
  body #u-content .ov-wstat, body #u-content .ov-al-recent, body #u-content .ov-gen-grid, body #u-content .ov-kpi-temps, body #u-content .ov-kpi-ahrow, body #u-content .ov-water-main, body #u-content .ov-gen-content { flex: 1 1 auto !important; min-height: 0 !important }
  body #u-content .ov-util-sub, body #u-content .ov-water-sub, body #u-content .ov-util-top, body #u-content .ov-water-top, body #u-content .ov-al-tiles, body #u-content .ov-gen-top, body #u-content .ov-kpi-tou { flex: 0 0 auto !important }
  body #u-content .ov-subcard, body #u-content .ov-ucard, body #u-content .ov-wstat-c, body #u-content .ov-gen-cell, body #u-content .ov-temp-card, body #u-content .ov-kpi-ahc { align-self: stretch !important }
  body #u-content .ov-line, body #u-content .ov-line-svg, body #u-content .ov-plot { min-height: 96px; max-height: 130px !important }
  body #u-content .ov-sub-scroll { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; grid-auto-rows: minmax(56px, 1fr) !important; gap: 8px !important; flex: 1 1 auto !important; height: auto !important; max-height: 178px !important; min-height: 0 !important; overflow-y: auto !important; overflow-x: hidden !important; align-content: stretch !important }
  body #u-content .ov-sub-scroll > .ov-ucard { height: auto !important; min-width: 0 !important; flex: none !important; padding: 11px 13px }
  body #u-content .ov-ch { gap: 6px }
  body #u-content .ov-ch h3 { font-size: 15px !important }
  body #u-content .ov-go { font-size: 12px !important; padding: 5px 8px; gap: 2px }
  body #u-content .ov-golinks { gap: 4px }
  body #u-content .ov-verdict { font-size: 19px !important }
  body #u-content .ov-sl { font-size: 12px !important }
  body #u-content .ov-bv, body #u-content .ov-u, body #u-content .ov-wstat-v, body #u-content .ov-gen-stat-v, body #u-content .ov-gen-cv, body #u-content .ov-kpi-val, body #u-content .ov-kpi-ahb, body #u-content .ov-temp-val, body #u-content .ov-al-n { font-size: 17px !important }
  body #u-content .ov-kpi-lbl, body #u-content .ov-banner, body #u-content .ov-al-l, body #u-content .ov-al-foot-l { font-size: 12px !important }
  body #u-content #ov-health { flex: 1 1 auto !important }
  body #u-content .ov-hl-top { flex: 1 1 auto !important; flex-direction: row !important; gap: 16px !important; justify-content: center !important; align-items: center !important; margin-top: 10px !important }
  body #u-content .ov-hl-top > div:first-child { flex: 0 0 auto !important }
  body #u-content .ov-hl-top > div:first-child > svg { height: 96px !important }
  body #u-content .ov-hl-top div[style*="font-size:22px"] { font-size: 14px !important }
  body #u-content .ov-hpie { flex: 0 0 auto !important; min-width: 0 !important }
  body #u-content .ov-hpie-svg { height: 112px !important }
  body #u-content #ov-hl-pie text { font-size: 15px !important }
  main .grid, main .grid2, main .grid3, main .bms-cir-grid, main .ue-grid, main .grid[style*="repeat(3"], main .grid[style*="repeat(2"] { grid-template-columns: 1fr !important }
}

nav.dashboard-selector .ds-tray, #nav.ds-tray { flex-wrap: nowrap !important }

.bms-ov { background: var(--bg) !important }

body #u-content .ov-card, body .bms-ov .ov-card { background: var(--panel, var(--card)) !important }

body #u-content :is(.ov-subcard, .ov-al-tile, .ov-wstat-c, .ov-gen-cell, .ov-temp-card, .ov-kpi-card), body .bms-ov :is(.ov-subcard, .ov-al-tile, .ov-wstat-c, .ov-gen-cell, .ov-temp-card, .ov-kpi-card) { box-shadow: 0 1px 3px rgba(16, 24, 40, .09) !important }

html:has(.modal-bg), body:has(.modal-bg) { overflow: hidden !important }

@media (max-width: 700px) {
  .pb-wrap, .rpt-embed, .rpt-wrap { max-width: calc(100vw - 28px) !important; overflow-x: hidden !important }
  .pb-toolbar, .rpt-hdr { display: flex !important; width: 100% !important; max-width: 100% !important; flex-wrap: wrap !important; box-sizing: border-box !important; justify-content: flex-start !important; overflow: visible !important; gap: 8px !important }
  .pb-toolbar > span[style*="flex"], .rpt-hdr > span[style*="flex"] { display: none !important }
  .pb-toolbar .pb-btn, .pb-toolbar .pb-add, .rpt-hdr .pb-btn, .rpt-hdr .pb-add { flex: 0 0 auto !important }
  .pb-saved { max-width: 150px !important }
  .pb-stage { max-width: calc(100vw - 28px) !important; padding: 10px !important; justify-content: flex-start !important }
  #pb-pages-host { width: 100% !important; align-items: stretch !important }
  .pb-page { width: 100% !important; min-width: 0 !important; max-width: 100% !important; min-height: 60vh !important; padding: 18px 16px !important }

  main .subtabs { flex-wrap: wrap !important; overflow-x: visible !important; row-gap: 4px !important }
  main .subtabs > *, main .subtabs a { white-space: nowrap !important }
}

@media (max-width: 700px) {
  .ds-logo { max-width: 20vw !important; max-height: 72px !important; width: auto !important; height: auto !important; object-fit: contain }

  body main .plot-in, body main .pb-plot, body main .fcc-chart, body main .fbc-chart, body main .tf-plot,
  body main .card > [id$="Chart"], body main .card > [id$="Plot"], body main .card > [id$="Trend"],
  body main .usec-plot, body main .usec-plot .plot-in, body main .center-msg[id] { min-height: 150px !important; width: 100% !important }
  body main .center-msg[id] { padding: 4px 2px !important }
  body main .center-msg[id]:has(.bms-spin) { padding: 20px 2px !important }
  body main .card > svg, body main .plot-in > svg, body main .usec-plot svg, body main [id^="dev"] > svg, body main [id^="yoy"] > svg { width: 100% !important; height: auto !important; display: block }
  body main .usec-row { display: flex !important; flex-direction: column !important }
  body main .usec-bd { border-right: none !important; border-bottom: 1px solid var(--line) !important }
  body main .usec-cardhd { flex-wrap: wrap !important }
  body main .usec-cardhd h3 { font-size: 15px !important }

  .bms-right { height: auto !important; min-height: 0 !important }
  .bms-map:not(.hidden), .bms-fp:not(.hidden) { position: relative !important; inset: auto !important }
  .bms-map:not(.hidden) { min-height: 300px !important }
  .bms-fp:not(.hidden) { display: flex !important; flex-direction: column !important }
  .bms-overlay { position: static !important; inset: auto !important; order: -1 !important; margin: 0 !important; padding: 8px 8px 4px !important; gap: 8px !important; flex-wrap: wrap !important; background: transparent !important; pointer-events: auto !important }
  .fp-leaflet { position: relative !important; inset: auto !important; order: 0 !important; flex: 1 1 auto !important; min-height: 280px !important }
  .fp-leaflet:has(> .center-msg), .fp-leaflet:has(> .fp-loading) { min-height: 0 !important; flex: 0 0 auto !important; padding: 22px 0 !important }

  .modal, .modal:has(.dpop) { padding-left: 12px !important; padding-right: 12px !important }
  .modal > .dpop, .modal > .ue-modal, .modal > .store-modal, .modal > .tf-pop, .modal > .almc-pop, .modal .dpop { width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important }
  .dpop-tabs { flex-wrap: wrap !important }
  .modal .subtabs, .ue-modal .subtabs { display: flex !important; flex-wrap: wrap !important; overflow: visible !important; white-space: normal !important }
  .modal table.tf-tbl, .ue-modal table.tf-tbl, .modal table.rpt-tbl { display: table !important; table-layout: fixed !important; width: 100% !important; max-width: 100% !important; overflow: visible !important }
  .modal table.tf-tbl th, .modal table.tf-tbl td, .ue-modal table.tf-tbl th, .ue-modal table.tf-tbl td { white-space: normal !important; word-break: break-word !important; overflow-wrap: anywhere !important; min-width: 0 !important; padding: 6px 6px !important }
  .modal .tf-tbl select, .modal .tf-tbl input, .ue-modal .tf-tbl select, .ue-modal .tf-tbl input { width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important }
  .th-row { flex-wrap: wrap !important; gap: 6px !important }
  .th-day { flex: 1 0 100% !important }
  .th-row input[type=time] { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; box-sizing: border-box !important }
  .modal .tf-plot, .modal [id$="Chart"], .modal .fcc-chart, .modal .fbc-chart, .modal svg { max-width: 100% !important }
}

@media (max-width: 700px) {
  body #u-content .ov-hv-grid { flex: 0 0 auto !important; min-height: 0 !important }

  .ds-wrap { align-items: flex-end !important }
  .ds-brand { flex: 1 1 0 !important; flex-direction: column !important; align-items: stretch !important; gap: 3px !important; min-width: 0 !important }
  .ds-col-store .ds-lbl { display: none !important }
  .ds-col-store { flex: 0 0 auto !important; min-width: 0 !important; max-width: 100% !important; align-items: stretch !important; overflow: visible !important }
  .ds-sitepick { min-width: 0 !important; max-width: 100% !important; overflow: visible !important }
  .ds-store, .ds-site-btn { min-width: 0 !important; max-width: 100% !important; width: 100% !important; overflow: hidden !important; white-space: nowrap; box-sizing: border-box !important }
  .ds-store #siteBtnTxt, .ds-site-btn #siteBtnTxt, #siteBtnTxt { overflow: hidden !important; text-overflow: ellipsis !important; max-width: none !important }
  .ds-controls, .tws-inline { flex: 0 0 auto !important }
  .ds-wrap:has(.tws-inline:not([style*="hidden"])) .ds-brand { width: calc(100vw - 277px) !important; max-width: calc(100vw - 277px) !important }

  .tbl-head { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 8px !important; margin: 14px 0 8px !important }
  .tbl-head > span:empty { display: none !important }
  .tbl-head .panel-title { grid-column: auto !important; flex: 0 0 auto !important; justify-self: start !important; text-align: left !important; font-size: 17px !important }
  .tbl-head .tbl-tools { grid-column: auto !important; justify-self: stretch !important; width: 100% !important; display: flex !important; align-items: stretch !important; gap: 8px !important }
  .tbl-head .tbl-tools .tbl-search { flex: 2 1 0 !important; min-width: 0 !important; box-sizing: border-box !important }
  .tbl-head .tbl-tools .exp-dd { flex: 1 1 0 !important; min-width: 0 !important; display: flex !important }
  .tbl-head .tbl-tools .exp-dd > button, .tbl-head .tbl-tools .exp-dd > .exp-tg { width: 100% !important; height: 100% !important; box-sizing: border-box !important; justify-content: center !important; white-space: nowrap }
}

@media (max-width: 1024px) {
  #app table th, #app table.tf-tbl th, #app table.rpt-tbl th, #app table.tdc-tbl th { white-space: normal !important; word-break: normal !important; overflow-wrap: normal !important; hyphens: manual !important; vertical-align: bottom !important }
  #app table thead tr, #app table tr:first-child { vertical-align: bottom !important }
  #app table td, #app table.tf-tbl td, #app table.rpt-tbl td, #app table.tdc-tbl td { white-space: nowrap !important; word-break: normal !important; overflow-wrap: normal !important }
}

@media (max-width: 700px) {
  .ds-logo-wrap { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; order: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; justify-content: flex-start !important; align-self: flex-start !important; max-width: 100% !important }
  .ds-logo { position: static !important; inset: auto !important; transform: none !important; opacity: 1 !important; z-index: auto !important; pointer-events: auto !important; width: auto !important; height: auto !important; max-width: clamp(48px, calc(100vw - 281px), 120px) !important; max-height: 50px !important; object-fit: contain !important; object-position: left center !important; display: block !important }
  .ds-sitepick { max-width: 100% !important; width: 100% !important; min-width: 0 !important; overflow: visible !important }
  .ds-store, .ds-site-btn { max-width: 100% !important; width: 100% !important; min-width: 0 !important; overflow: hidden !important; box-sizing: border-box !important }

  nav.dashboard-selector { margin: 0 -38px 0 0 !important; width: calc(100% + 38px) !important; max-width: none !important }

  .ov-hpie-svg, .cat-pie, .pie-svg { overflow: hidden !important }

  .gauge-wrap svg { width: clamp(88px, 29vw, 116px) !important; height: auto !important; max-width: 100% !important }
  .ov-tankg { width: 98px !important; margin-left: auto !important; margin-right: auto !important }
  .ov-tankg svg, .ov-tankg > * { max-width: 100% !important; height: auto !important }
}

@media (max-width: 700px) {
  body #u-content .ov-plot-hd > span { font-size: 12px !important }
  body #u-content .ov-gen-top { min-height: 0 !important; flex: 0 0 auto !important; padding: 8px 11px !important }
  body #u-content .ov-gen-top .ov-tankg, body #u-content .ov-gen-fuel .ov-tankg { width: 80px !important; height: auto !important }
  body #u-content .ov-al-list { max-height: 46vh !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch !important }
}

@media (max-width: 700px) {
  .modal-bg .tf-revwrap { overflow: visible !important; border: 0 !important; border-radius: 0 !important }
  .modal-bg table.tf-rev, .modal-bg .tf-rev tbody { display: block !important; width: 100% !important; min-width: 0 !important }
  .modal-bg .tf-rev thead { display: none !important }
  .modal-bg .tf-rev tr[data-i] { display: block !important; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px; padding: 4px 4px; background: var(--panel, var(--card)) }
  .modal-bg .tf-rev tr[data-i] td { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; width: auto !important; min-width: 0 !important; border: 0 !important; padding: 8px 10px !important; text-align: left !important; white-space: normal !important; font-size: 13.5px !important }
  .modal-bg .tf-rev tr[data-i] td::before { content: attr(data-lbl); color: var(--mut); font-size: 12.5px !important; font-weight: 600; flex: 0 0 auto; letter-spacing: .02em }
  .modal-bg .tf-rev tr[data-i] td:last-child { justify-content: flex-end; padding-top: 2px !important }
  .modal-bg .tf-rev tr[data-i] td:last-child::before { display: none }
  .modal-bg .tf-rev tr[data-i] td > select, .modal-bg .tf-rev tr[data-i] td > input { flex: 1 1 auto; min-width: 0 !important; width: auto !important; max-width: 66% !important }
  .modal-bg .tf-rev tr[data-i] .tf-sel { min-width: 0 !important }
  .modal-bg .tf-rev tr[data-i] td > input[type=number], .modal-bg .tf-rev tr[data-i] td > input[type=time], .modal-bg .tf-rev tr[data-i] td > input[type=date] { text-align: right }
  .modal-bg .tf-rev tr[data-i] td > input[type=checkbox] { flex: 0 0 auto; width: 20px !important; height: 20px !important; max-width: none !important }
  .modal-bg .tf-rev tr[data-i] td[data-lbl="Recipients"] { flex-direction: column; align-items: stretch; gap: 4px }
  .modal-bg .tf-rev tr[data-i] td[data-lbl="Recipients"] > input { max-width: 100% !important; text-align: left }
  .modal-bg .tf-rev .tf-del { font-size: 15px !important; padding: 4px 12px !important }
}

.util-nodata { display: flex; align-items: center; justify-content: center; text-align: center; min-height: min(52vh, 440px); width: 100%; color: var(--mut); font-size: 17px; font-weight: 500; padding: 24px; box-sizing: border-box }

@media (min-width: 901px) { main.lg-clr { padding-bottom: 80px } }

@media (max-width: 700px) {
  body main #rptBody .usec-plot { flex: 0 0 auto !important; min-height: 0 !important; padding-bottom: 8px !important }
  body #rptBody .usec { margin-bottom: 22px }
}

@media (max-width: 700px) {
  .modal-bg .ue-modal .tou-tbl td { white-space: nowrap !important; padding: 5px 5px 5px 0 !important; vertical-align: middle; word-break: normal !important }
  .modal-bg .ue-modal .tou-tbl td:first-child { font-size: 13px !important }
  .modal-bg .ue-modal .tou-dot { vertical-align: middle }
  .modal-bg .ue-modal .tou-tbl input[type=time] { width: 118px !important; min-width: 118px !important; max-width: none !important; font-size: 16px !important; padding: 5px 6px !important; box-sizing: border-box !important }
}

@media (max-width: 700px) {
  #chart-tip { max-width: 84vw !important; box-sizing: border-box; font-size: 11px !important; line-height: 1.35 !important; padding: 7px 9px !important }
  #chart-tip b, #chart-tip strong { font-size: 11px !important }
  #frTable .fr-exp-cell, #frTable .fr-exp-th, #muxTable .fr-exp-cell, #muxTable .fr-exp-th { display: table-cell !important; position: sticky !important; right: 0 !important; background: var(--card, #fff) !important; z-index: 3; box-shadow: -8px 0 8px -6px rgba(0,0,0,.12); padding: 4px 6px !important }
}

@media (max-width: 700px) {
  .bms-fp:not(.hidden) .bms-overlay { align-items: center !important; padding: 10px 10px 6px !important; row-gap: 8px !important; column-gap: 8px !important }
  .bms-fp .bms-overlay .bms-seg { flex: 1 1 100% !important; display: flex !important; width: 100% !important }
  .bms-fp .bms-overlay .bms-seg button { flex: 1 1 0 !important; min-width: 0 !important; padding: 9px 6px !important; font-size: 14px !important }
  .bms-fp .bms-overlay > .bms-ov-pill { flex: 0 1 auto !important; margin: 0 !important; min-width: 0 }
  .bms-fp .bms-overlay > span[style*="margin-left"] { margin-left: auto !important; gap: 6px !important; flex: 0 0 auto !important }
  .bms-fp .bms-ov-btn { padding: 9px 13px !important; font-size: 14px !important }
  .bms-fp .bms-edit-btn { width: 40px !important; height: 40px !important; flex: 0 0 auto !important }
  .bms-fp .fp-leaflet { min-height: 60vh !important }
}

@media (min-width: 901px) { main:has(.bms-shell) { padding-bottom: 18px !important } }
#frTable td.fr-exp-cell, #muxTable td.fr-exp-cell { position: relative }
#frTable td.fr-exp-cell:has(.exp-menu:not(.hidden)), #muxTable td.fr-exp-cell:has(.exp-menu:not(.hidden)) { z-index: 130 }
#frTable .fr-rowexp .exp-menu, #muxTable .fr-rowexp .exp-menu { z-index: 9999 }
