html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f6f7f9;
  color: #20242a;
}

.vh-topbar {
  min-height: 54px;
}

.vh-main-menu {
  width: min(420px, 92vw);
}

.vh-menu-accordion .accordion-item {
  border-color: #d9dee7;
  border-radius: 8px;
  overflow: hidden;
}

.vh-menu-accordion .accordion-button {
  background: #f1f5fb;
  color: #1f2937;
  font-weight: 700;
}

.vh-menu-accordion .accordion-button:not(.collapsed) {
  background: #dbeafe;
  box-shadow: inset 4px 0 0 #0d6efd;
  color: #0b2f6b;
}

.vh-menu-accordion .accordion-body {
  background: #fbfcfe;
  padding: .75rem;
}

.vh-menu-section-title {
  background: #e7edf6;
  border-left: 4px solid #476681;
  border-radius: 6px;
  color: #223247;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: .45rem 0 .35rem;
  padding: .35rem .55rem;
  text-transform: uppercase;
}

.vh-menu-links {
  gap: .22rem;
}

.vh-menu-links .nav-link {
  background: #ffffff;
  border: 1px solid #d6deea;
  border-left: 4px solid #91a4bb;
  border-radius: 7px;
  color: #172033;
  font-weight: 600;
  padding: .52rem .65rem;
}

.vh-menu-links .nav-link:hover,
.vh-menu-links .nav-link:focus {
  background: #eaf2ff;
  border-color: #8db9ff;
  border-left-color: #0d6efd;
  color: #084298;
}

.vh-main-menu .navbar-nav {
  display: block;
}

.vh-main-menu .navbar-nav .nav-link,
.vh-main-menu .navbar-nav .btn.nav-link {
  border-radius: 6px;
  color: #172033 !important;
  font-weight: 600;
  padding: .48rem .6rem;
  text-align: left;
  width: 100%;
}

.vh-main-menu .navbar-nav .nav-link:hover,
.vh-main-menu .navbar-nav .btn.nav-link:hover {
  background: #eef4ff;
  color: #0d6efd !important;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.vh-dashboard {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.vh-dashboard h1 {
  font-size: 2rem;
  margin: 0;
}

.vh-dashboard p {
  color: #586173;
  margin: .35rem 0 0;
}

.vh-metric,
.vh-panel {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 1rem;
}

.vh-metric span {
  color: #586173;
  display: block;
  font-size: .9rem;
}

.vh-metric strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.2;
}

.vh-panel h2 {
  font-size: 1.15rem;
  margin-bottom: .9rem;
}

.vh-form {
  max-width: 420px;
}

.vh-form.vh-wide,
.vh-filter-bar {
  max-width: none;
}

.vh-filter-bar {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 1rem;
}

.vh-filter-bar .form-label,
.vh-form-section .form-label {
  color: #445064;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: .25rem;
  min-height: 1.8em;
}

.vh-form-section {
  margin-bottom: 1rem;
}

.vh-table-panel {
  padding: .75rem;
}

.vh-annual-table {
  min-width: 1880px;
}

.vh-cardnet-table {
  border: 2px solid #111827;
  min-width: 1280px;
}

.vh-cardnet-table th {
  background: #f7f7fb;
  border: 2px solid #111827;
  color: #000f75;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .95rem;
  font-style: italic;
  text-align: center;
}

.vh-cardnet-table td {
  border: 2px solid #111827;
}

.vh-subscriber-row td {
  background: #c9c4bd;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
  padding: .2rem .4rem;
}

.vh-subscriber-row span {
  color: #000f75;
  font-weight: 700;
  margin-left: .7rem;
}

.vh-subscriber-row span:first-child {
  margin-left: 0;
}

.vh-apartment-badge {
  background: #000f75;
  border-radius: 3px;
  color: #ffffff;
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-style: normal;
  margin-right: .8rem;
  min-width: 120px;
  padding: .18rem .45rem;
  text-align: center;
}

.vh-reading-row:nth-child(odd) td {
  background: #f1f1f1;
}

.vh-reading-row .form-control,
.vh-reading-row .form-select {
  border-color: #9aa5b5;
  border-radius: 3px;
}

.vh-reading-row .vh-old-reading {
  background: #ffffff;
}

.vh-reading-row .vh-memory-reading {
  background: #fff8db;
}

.vh-reading-row .vh-new-reading {
  background: #e8f5ff;
  font-weight: 700;
}

.vh-difference {
  background: #e8f7e8;
  border: 1px solid #7bbb7b;
  border-radius: 3px;
  display: block;
  font-weight: 700;
  min-width: 78px;
  padding: .25rem .4rem;
  text-align: right;
}

.vh-save-state {
  display: inline-block;
  min-width: 70px;
  white-space: nowrap;
}

.vh-cardnet:not(.vh-show-details) .vh-extra-col {
  display: none;
}

.vh-annual-table th {
  color: #445064;
  font-size: .78rem;
  white-space: nowrap;
}

.vh-annual-table td {
  vertical-align: middle;
}

.vh-cell-subtitle {
  color: #586173;
  font-size: .82rem;
  max-width: 240px;
  overflow-wrap: anywhere;
}

.vh-code-input {
  min-width: 110px;
}

.vh-reading-input {
  min-width: 82px;
}

.vh-power-input {
  min-width: 70px;
  max-width: 90px;
}

.vh-date-input {
  min-width: 118px;
}

.vh-flag-select {
  min-width: 76px;
}

.vh-actions-cell {
  min-width: 230px;
  white-space: nowrap;
}

.vh-actions-cell .btn {
  margin-right: .2rem;
}

.vh-warning-row td {
  border-top: 0;
  padding-top: 0;
}

.vh-hash {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .75rem;
  word-break: break-all;
}

.vh-readings-table {
  min-width: 1050px;
}

.vh-reading-form {
  display: grid;
  gap: .4rem;
  grid-template-columns: minmax(90px, 1fr) minmax(90px, 1fr) minmax(90px, 1fr) minmax(130px, 1.2fr) auto;
}

.vh-charges-table {
  min-width: 1150px;
}

.vh-tree-list {
  display: grid;
  gap: .75rem;
}

.vh-tree-building,
.vh-tree-subscriber {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
}

.vh-tree-building > summary,
.vh-tree-subscriber > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  padding: .75rem 1rem;
}

.vh-tree-building > summary::-webkit-details-marker,
.vh-tree-subscriber > summary::-webkit-details-marker {
  display: none;
}

.vh-tree-building > summary::before,
.vh-tree-subscriber > summary::before {
  border-bottom: 2px solid #445064;
  border-right: 2px solid #445064;
  content: "";
  display: inline-block;
  height: .55rem;
  margin-right: .25rem;
  transform: rotate(-45deg);
  transition: transform .12s ease;
  width: .55rem;
}

.vh-tree-building[open] > summary::before,
.vh-tree-subscriber[open] > summary::before {
  transform: rotate(45deg);
}

.vh-tree-title,
.vh-tree-subscriber summary > span:first-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.vh-tree-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
}

.vh-building-summary-content {
  align-items: center;
  display: grid;
  flex: 1 1 auto;
  gap: .75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  text-align: left;
}

.vh-building-main {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .55rem;
  justify-content: flex-start;
  min-width: 0;
}

.vh-building-meta {
  color: #586173;
  font-size: .84rem;
}

.vh-building-address {
  color: #1f2937;
  overflow-wrap: anywhere;
}

.vh-building-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .35rem;
  justify-content: flex-end;
  text-align: right;
}

.vh-tree-panel {
  border-top: 1px solid #e5e9f0;
  padding: 1rem;
}

.vh-tree-subscriber {
  border-radius: 6px;
  margin-bottom: .5rem;
}

.vh-tree-subscriber > summary {
  background: #f8fafc;
  padding: .55rem .75rem;
}

.vh-subscriber-summary-content {
  align-items: center;
  display: grid;
  flex: 1 1 auto;
  gap: .65rem;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  text-align: left;
}

.vh-subscriber-main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .55rem;
  justify-content: flex-start;
  min-width: 0;
}

.vh-subscriber-apartment {
  color: #111827;
  min-width: 2.25rem;
}

.vh-subscriber-name {
  color: #1f2937;
  font-weight: 600;
}

.vh-subscriber-meta {
  color: #586173;
  white-space: nowrap;
}

.vh-volume-meta {
  background: #eef6ff;
  border: 1px solid #c7ddff;
  border-radius: 4px;
  color: #0b4aa2;
  font-weight: 700;
  padding: .08rem .35rem;
}

.vh-subscriber-deltas {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .45rem;
  justify-content: flex-end;
  max-width: 58rem;
  text-align: right;
}

.vh-delta-pill {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 4px;
  color: #344054;
  font-size: .78rem;
  line-height: 1.2;
  padding: .12rem .35rem;
  white-space: nowrap;
}

.vh-delta-amount {
  border-color: #b7c3d3;
  border-width: 2px;
  font-size: .82rem;
  order: 20;
  padding-left: .48rem;
  padding-right: .48rem;
}

.vh-delta-pill strong {
  color: #1f2937;
  font-weight: 700;
}

.vh-delta-pill.text-danger {
  color: #dc3545 !important;
}

.vh-delta-pill.text-success {
  color: #198754 !important;
}

.vh-delta-pill.text-muted {
  color: #586173 !important;
}

.vh-mini-metric {
  background: #f8fafc;
  border: 1px solid #e5e9f0;
  border-radius: 6px;
  height: 100%;
  padding: .6rem .7rem;
}

.vh-mini-metric span {
  color: #586173;
  display: block;
  font-size: .78rem;
}

.vh-mini-metric strong {
  display: block;
  font-size: .95rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.vh-tree-device-table {
  font-size: .86rem;
  min-width: 1480px;
}

.vh-tree-device-table th {
  color: #445064;
  font-size: .75rem;
  white-space: nowrap;
}

.vh-tree-device-table td {
  vertical-align: middle;
}

.vh-tree-device-table tr.vh-device-water:not(.table-danger):not(.table-warning) td {
  background: #f4fbff;
}

.vh-tree-device-table tr.vh-device-unmetered:not(.table-danger):not(.table-warning) td {
  background: #fff8eb;
}

.vh-tree-device-table tr.vh-device-heat-meter:not(.table-danger):not(.table-warning) td {
  background: #f3f8f1;
}

.vh-tree-device-table tr.vh-device-distributor:not(.table-danger):not(.table-warning) td {
  background: #fbfcfe;
}

.vh-tree-device-table tr.vh-device-water td:first-child {
  border-left: 4px solid #0d6efd;
}

.vh-tree-device-table tr.vh-device-unmetered td:first-child {
  border-left: 4px solid #d18800;
}

.vh-tree-device-table tr.vh-device-heat-meter td:first-child {
  border-left: 4px solid #198754;
}

.vh-tree-device-table tr.vh-device-distributor td:first-child {
  border-left: 4px solid #6f7e93;
}

.vh-device-cell {
  min-width: 9rem;
}

.vh-device-number {
  color: #111827;
  display: inline-block;
  font-size: .95rem;
  font-weight: 800;
  margin-right: .25rem;
}

.vh-device-kind-badge {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.2;
  padding: .13rem .35rem;
  white-space: nowrap;
}

.vh-device-kind-badge.vh-device-water {
  background: #e7f2ff;
  border-color: #9dc6ff;
  color: #0b4aa2;
}

.vh-device-kind-badge.vh-device-unmetered {
  background: #fff1d6;
  border-color: #e4b455;
  color: #7a4a00;
}

.vh-device-kind-badge.vh-device-heat-meter {
  background: #e8f5ee;
  border-color: #9ccfb5;
  color: #125f37;
}

.vh-device-kind-badge.vh-device-distributor {
  background: #f1f4f8;
  border-color: #c4ccd8;
  color: #26364c;
}

.vh-tree-device-table .vh-inline-number {
  font-size: .78rem;
  min-width: 5.8rem;
  padding-left: .25rem;
  padding-right: .25rem;
}

@media (max-width: 1100px) {
  .vh-building-summary-content {
    grid-template-columns: 1fr;
  }

  .vh-building-badges {
    justify-content: flex-start;
    text-align: left;
  }

  .vh-subscriber-summary-content {
    grid-template-columns: 1fr;
  }

  .vh-subscriber-deltas {
    justify-content: flex-start;
    text-align: left;
  }
}

.vh-report {
  background: #ffffff;
  color: #1f2937;
}

.vh-toolbar-modern {
  background: #ffffff;
  border: 1px solid #d8e0eb;
  border-left: 5px solid #0d6efd;
  border-radius: 8px;
  padding: .85rem 1rem;
}

.vh-action-bar {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vh-context-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.vh-context-chip {
  background: #ffffff;
  border: 1px solid #d8e0eb;
  border-left: 4px solid #6b7f95;
  border-radius: 6px;
  color: #1f2937;
  font-size: .82rem;
  line-height: 1.25;
  padding: .38rem .55rem;
}

.vh-context-chip strong {
  color: #111827;
  margin-right: .25rem;
}

.vh-pill-annual {
  background: #eef6ff;
  border-left-color: #0d6efd;
}

.vh-pill-snapshot {
  background: #f0fbf5;
  border-left-color: #198754;
}

.vh-pill-monthly {
  background: #fff7e8;
  border-left-color: #d18800;
}

.vh-pill-warning {
  background: #fff0f1;
  border-left-color: #dc3545;
}

.vh-report-header {
  align-items: flex-start;
  border: 2px solid #1f2937;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: .8rem 1rem;
}

.vh-report-header-modern {
  background: #fbfcfe;
  border: 1px solid #cad4e2;
  border-left: 5px solid #476681;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(31, 41, 55, .04);
}

.vh-report-header h2 {
  font-size: 1.35rem;
  margin: 0 0 .25rem;
}

.vh-report-name {
  font-size: 1rem;
  font-weight: 700;
}

.vh-inline-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  margin-top: .35rem;
}

.vh-inline-facts span {
  background: #ffffff;
  border: 1px solid #d8e0eb;
  border-radius: 5px;
  padding: .18rem .4rem;
}

.vh-report-grid {
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.vh-report-card {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  padding: .9rem;
}

.vh-report-card h3 {
  font-size: 1rem;
  margin: 0 0 .75rem;
}

.vh-report-subtitle {
  border-bottom: 1px solid #d9dee7;
  font-size: .95rem;
  margin: .8rem 0 .4rem;
  padding-bottom: .25rem;
}

.vh-report-card th {
  color: #445064;
  font-weight: 600;
  white-space: nowrap;
}

.vh-report-table {
  font-size: .82rem;
  min-width: 1100px;
}

.vh-report-table th {
  font-size: .72rem;
}

.vh-audit-toolbar {
  break-inside: avoid;
}

.vh-audit-section {
  scroll-margin-top: 1rem;
}

.vh-audit-table {
  font-size: .82rem;
  min-width: 1360px;
}

.vh-audit-table th {
  background: #f8fafc;
  color: #26364c;
  font-size: .74rem;
  white-space: nowrap;
}

.vh-audit-table td {
  vertical-align: middle;
}

.vh-reference-section {
  scroll-margin-top: 1rem;
}

.vh-reference-table {
  font-size: .82rem;
  min-width: 1320px;
}

.vh-reference-table th {
  background: #f8fafc;
  color: #26364c;
  font-size: .74rem;
  white-space: nowrap;
}

.vh-reference-table td {
  vertical-align: middle;
}

.vh-all-devices-table {
  min-width: 2050px;
  font-size: .78rem;
}

.vh-all-devices-table .badge {
  white-space: normal;
  text-align: left;
}

.vh-sort-link {
  color: inherit;
  display: inline-block;
  text-decoration: none;
  width: 100%;
}

.vh-sort-link:hover,
.vh-sort-link:focus {
  color: #0d6efd;
  text-decoration: underline;
}

.vh-report-trace {
  background: #f8fafc;
  border: 1px solid #e5e9f0;
  border-radius: 4px;
  font-size: .82rem;
  margin: 0;
  max-height: 320px;
  overflow: auto;
  padding: .65rem;
  white-space: pre-wrap;
}

.vh-edit-toolbar {
  background: #ffffff;
  border: 1px solid #d8e0eb;
  border-left: 5px solid #198754;
  border-radius: 8px;
  padding: .85rem 1rem;
}

.vh-edit-form {
  background: #ffffff;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(31, 41, 55, .04);
  overflow: hidden;
}

.vh-edit-body {
  padding: 1rem;
}

.vh-edit-footer {
  background: #f8fafc;
  border-top: 1px solid #d8e0eb;
  padding: .75rem 1rem;
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.vh-edit-section-title {
  align-items: center;
  background: #eef4fb;
  border-left: 4px solid #476681;
  border-radius: 6px;
  color: #1d2a3a;
  display: flex;
  font-size: .98rem;
  font-weight: 700;
  gap: .5rem;
  margin: 0 0 .75rem;
  padding: .45rem .6rem;
}

.vh-edit-section-title span {
  background: #ffffff;
  border: 1px solid #bfd0e3;
  border-radius: 4px;
  color: #0b4aa2;
  font-size: .75rem;
  min-width: 1.55rem;
  padding: .08rem .25rem;
  text-align: center;
}

.vh-edit-form .form-label {
  color: #445064;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: .2rem;
}

.vh-edit-form .form-control,
.vh-edit-form .form-select {
  border-color: #cfd8e6;
  font-size: .86rem;
  min-height: 2rem;
  padding: .25rem .45rem;
}

.vh-edit-form textarea.form-control {
  min-height: 4.5rem;
}

.vh-edit-form .form-check {
  background: #f8fafc;
  border: 1px solid #d8e0eb;
  border-radius: 6px;
  margin-top: 1.25rem !important;
  padding: .45rem .6rem .45rem 2rem;
}

.vh-edit-form .form-check-label {
  font-size: .86rem;
  font-weight: 600;
}

.vh-edit-form .row {
  --bs-gutter-x: .75rem;
  --bs-gutter-y: .65rem;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 6mm;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 10pt;
  }

  header,
  footer,
  .vh-report-toolbar,
  .vh-audit-toolbar,
  .vh-audit-filters,
  .vh-audit-summary,
  .vh-reference-toolbar,
  .vh-reference-filters,
  .vh-reference-summary,
  .vh-report-actions,
  .btn {
    display: none !important;
  }

  body.vh-audit-print-mode:not(.vh-audit-print-all) .vh-audit-section:not(.vh-print-target) {
    display: none !important;
  }

  body.vh-audit-print-mode .vh-print-target,
  body.vh-audit-print-mode.vh-audit-print-all .vh-audit-section {
    border-color: #000000 !important;
    display: block !important;
    margin: 0 0 4mm !important;
    padding: 2mm !important;
  }

  .container-fluid {
    padding: 0 !important;
    width: 100% !important;
  }

  main {
    padding: 0 !important;
  }

  .vh-report-header,
  .vh-report-card,
  .vh-mini-metric {
    break-inside: avoid;
    border-color: #000000;
    box-shadow: none;
  }

  .vh-report-card {
    margin-top: .5rem !important;
    padding: .5rem;
  }

  .vh-report-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .vh-report-table {
    font-size: 7.5pt;
    min-width: 0;
  }

  .vh-report-table th,
  .vh-report-table td {
    padding: .15rem .2rem;
  }

  .vh-print-hide {
    display: none !important;
  }

  .vh-audit-table {
    font-size: 5.8pt;
    min-width: 0 !important;
    table-layout: auto;
    width: 100% !important;
  }

  .vh-audit-table th,
  .vh-audit-table td {
    padding: .1rem .12rem;
  }

  .vh-audit-table .text-muted {
    color: #000000 !important;
  }

  .vh-reference-table {
    font-size: 5.8pt;
    min-width: 0 !important;
    table-layout: auto;
    width: 100% !important;
  }

  .vh-reference-table th,
  .vh-reference-table td {
    padding: .1rem .12rem;
  }

  .table-responsive {
    overflow: visible !important;
  }

  a {
    color: #000000;
    text-decoration: none;
  }
}
