/* Public water meter V2 presentation, copied from the approved electric R6 geometry.
 * Activated by JS only for the desktop public-area water-meter tab.
 * Keeps the existing six house tabs and the room/mobile/photo styles untouched.
 */
@media (min-width: 769px) {
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page {
    --pmwv2-blue: #006cfd;
    --pmwv2-blue-hover: #1d4ed8;
    --pmwv2-blue-text: #006cfd;
    --pmwv2-blue-soft: #eff6ff;
    --pmwv2-bg: #f3f8fe;
    --pmwv2-card: #fff;
    --pmwv2-border: #dbe8f7;
    --pmwv2-text: #10154f;
    --pmwv2-muted: #6b7f9d;
    --pmwv2-green: #16a34a;
    --pmwv2-red: #dc2626;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page #dt-device.pmwv2-device.active {
    grid-column: 1 / -1 !important;
    min-width: 0;
    width: 100% !important;
    padding: 0 !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page #dt-device-content.pmwv2-root {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 310px) !important;
    gap: 12px !important;
    min-width: 0;
    width: 100% !important;
    align-items: start;
    color: var(--pmwv2-text);
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-main,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-side {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-side {
    gap: 12px !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-card,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-main > .hmc-card,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-side > .hmc-card,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-main > .gq-meter-history,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-main > .gq-meter-records {
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid var(--pmwv2-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 1px 4px #29466a08 !important;
    box-sizing: border-box;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-card-head,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hd {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 24px;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: var(--pmwv2-text) !important;
    font-size: 13px !important;
    line-height: 1.4;
    font-weight: 700 !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: 32px;
    margin: 0 !important;
    padding: 0 2px !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-hdr .nm {
    font-size: 16px !important;
    line-height: 1.4;
    font-weight: 700 !important;
    color: var(--pmwv2-text);
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-hdr .sub {
    color: var(--pmwv2-muted);
    font-size: 12px !important;
    font-weight: 400;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-toolbar,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-toolbar {
    justify-content: flex-end;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-sync-entry {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-btn,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-qk,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-save-btn,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-sync-entry .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    border: 1px solid #cfe0f5 !important;
    border-radius: 5px !important;
    background: #eef5ff !important;
    color: #006cfd !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 12px !important;
    line-height: 1.4;
    font-weight: 600 !important;
    white-space: nowrap;
    cursor: pointer;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-btn.primary,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-btn--primary {
    color: #fff !important;
    background: #006cfd !important;
    border-color: #006cfd !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-btn.danger,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-btn--danger,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-qk[onclick*="unbind"] {
    color: #dc2626 !important;
    background: #fff5f5 !important;
    border-color: #fecaca !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-btn:disabled,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root button:disabled {
    color: #9aa7ba !important;
    background: #f5f7fb !important;
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-summary,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .gq-meter-overview {
    display: grid !important;
    grid-template-columns: minmax(150px, 1fr) minmax(0, 1.65fr);
    gap: 8px 16px;
    align-items: center;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .gq-meter-overview > .hd {
    grid-column: 1 / -1;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .gq-meter-total {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1.25;
    color: var(--pmwv2-text);
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-metrics,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .gq-meter-metrics {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 0 !important;
    min-width: 0;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-metrics > *,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .gq-meter-metrics > div {
    min-width: 0;
    min-height: 56px;
    padding: 9px 7px !important;
    border: 1px solid #e1ecf9 !important;
    border-radius: 6px !important;
    background: #f4f9ff !important;
    color: #6b7f9d;
    text-align: left;
    font-size: 11px;
    line-height: 1.45;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-metrics strong {
    display: block;
    color: #10154f;
    font-size: 19px;
    line-height: 1.35;
    margin-top: 4px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-usage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(190px, 1fr);
    gap: 12px;
    min-width: 0;
    align-items: start;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-usage-grid > * {
    min-width: 0;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-stat-list {
    border: 1px solid #e6eff9;
    border-radius: 6px;
    background: #f5faff;
    padding: 5px 10px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-stat-list > * {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #e6edf7;
    color: #6b7f9d;
    font-size: 12px;
    line-height: 1.4;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-stat-list > :last-child {
    border-bottom: 0;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-stat-list strong {
    color: #10154f;
    font-size: 16px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-tabs,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .gq-device-record-tabs {
    display: flex;
    gap: 18px;
    min-width: 0;
    margin: 0 !important;
    border-bottom: 1px solid #dce8f7;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-tabs > button,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .gq-device-record-tabs > button {
    padding: 8px 3px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #6b7f9d;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    cursor: pointer;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-tabs > button[aria-selected="true"],
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-tabs > button.active,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .gq-device-record-tabs > button[aria-selected="true"] {
    color: #006cfd;
    border-bottom-color: #006cfd;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-mode-tabs,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-seg {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-mode-tabs > *,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-seg-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 48px;
    padding: 6px 10px !important;
    border: 1px solid #e0eaf7 !important;
    border-radius: 6px !important;
    background: #f4f8fd !important;
    color: #5b7293 !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-mode-tabs .active,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-mode-tabs [aria-selected="true"],
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-seg-btn.on {
    background: #eff6ff !important;
    color: #006cfd !important;
    border-color: #9cc0fb !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-mode-tabs small,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-seg-btn small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 400;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-share-controls,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-share-sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px !important;
    color: #647b9b;
    font-size: 12px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-chip {
    padding: 5px 8px;
    border: 1px solid #dbe8f7;
    border-radius: 5px;
    color: #6b7f9d;
    background: #fff;
    font-size: 12px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-chip.on {
    border-color: #bfd7ff;
    color: #006cfd;
    background: #eff6ff;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-table-scroll {
    overflow-x: auto;
    min-width: 0;
    max-width: 100%;
    border: 1px solid #e3ecf8;
    border-radius: 6px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-table {
    width: 100%;
    border-collapse: collapse;
    color: #4f6688;
    font-size: 12px;
    line-height: 1.45;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-table th {
    padding: 8px 7px;
    border-bottom: 1px solid #e0eafa;
    background: #eff6ff;
    color: #667f9f;
    font-size: 11px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-table td {
    padding: 7px;
    border-bottom: 1px solid #edf2f9;
    vertical-align: middle;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-table tr:last-child td {
    border-bottom: 0;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-table input[type="number"],
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmw-ratio {
    width: 66px !important;
    min-height: 29px;
    padding: 4px 5px !important;
    border: 1px solid #cfe0f5 !important;
    border-radius: 5px;
    background: #fff;
    color: #243d65;
    font-size: 12px !important;
    line-height: 1.4;
    text-align: right;
    box-sizing: border-box;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-table input:focus,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmw-ratio:focus {
    outline: 2px solid #dbeafe;
    outline-offset: 1px;
    border-color: #7aaafa !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmw-ratio:disabled {
    color: #9aa7ba;
    background: #f8fafc;
    border-color: #e2e8f0 !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-footer,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-share-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #edf2f9;
    font-size: 12px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-kv,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-side .hmc-kv {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 7px;
    min-height: 30px;
    padding: 6px 0;
    border-bottom: 1px solid #edf2f9;
    align-items: start;
    color: #6b7f9d;
    font-size: 12px !important;
    line-height: 1.5;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-kv > :last-child,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-side .hmc-kv .v {
    min-width: 0;
    color: #243d65;
    text-align: left;
    overflow-wrap: anywhere;
    font-weight: 500;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-kv .note {
    display: block;
    margin-top: 1px;
    font-size: 10px;
    color: #8a9bb3;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-note,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-share-note,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-hint-line {
    color: #7489a7;
    font-size: 11px !important;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-empty {
    padding: 20px 12px;
    color: #8a9bb3;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root [hidden] {
    display: none !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-table-scroll {
    scrollbar-width: thin;
    scrollbar-color: #bfd0e8 transparent;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root ::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root ::-webkit-scrollbar-thumb {
    background: #bfd0e8;
    border-radius: 8px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root ::-webkit-scrollbar-track {
    background: transparent;
  }
}
@media (min-width: 769px) and (max-width: 1100px) {
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page #dt-device-content.pmwv2-root {
    grid-template-columns: minmax(0, 1fr) 260px !important;
    gap: 10px !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-usage-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .gq-meter-overview {
    column-gap: 10px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .gq-meter-total {
    font-size: 24px !important;
  }
}

/* Confirmation is shared by both clients and scoped to this new dialog only. */
.pmwv2-risk{font:13px/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#40598b}.pmwv2-risk dl{display:grid;grid-template-columns:75px minmax(0,1fr);gap:6px 12px;background:#f3f8ff;padding:12px;border-radius:8px;margin:12px 0}.pmwv2-risk dt{color:#7589b6}.pmwv2-risk dd{margin:0;color:#10154f;overflow-wrap:anywhere}.pmwv2-risk label{display:flex;flex-direction:column;gap:6px}.pmwv2-risk input{width:100%;box-sizing:border-box;border:1px solid #d9e7fb;border-radius:6px;padding:9px 10px;font:inherit}.pmwv2-risk button{border:1px solid #d9e7fb;border-radius:6px;background:white;padding:9px 15px;color:#40598b;font:inherit;cursor:pointer}.pmwv2-risk .pmwv2-primary{background:#006cfd;border-color:#006cfd;color:white}.pmwv2-risk-buttons{display:flex;gap:10px;margin-top:12px}.pmwv2-risk-buttons button{flex:1}.pmwv2-risk-warning{padding:10px;background:#fff8eb;border-radius:6px;color:#a16814}.pmwv2-risk-error{color:#dc2626;min-height:20px}.pmwv2-risk-success{color:#009c63}.pmwv2-risk button:disabled{background:#edf2f8;color:#91a0b6;cursor:not-allowed}
@media(min-width:769px){.pmwv2-summary>.pmwv2-actions{grid-column:1/-1!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}.pmwv2-summary>.pmwv2-actions>div{display:flex!important;flex-wrap:wrap;gap:6px!important}.pmwv2-summary>.pmwv2-actions .hmc-qk{width:auto!important}.pmwv2-summary>.pmwv2-actions .hmc-hint-line{width:100%;margin:0}.pmwv2-root .pmwv2-table-scroll{overflow:auto}.pmwv2-root .hmc-share-foot{flex-wrap:wrap}.pmwv2-share-status{font-size:11px;color:#7589b6;flex:1 1 100%}.pmwv2-root .hmw-ratio{width:62px}.pmwv2-room-state{display:block;color:#7589b6;font-size:10px}.pmwv2-switch{width:28px;height:16px;border:0;border-radius:10px;position:relative;background:#c5cfdf;cursor:pointer;padding:0}.pmwv2-switch:before{content:'';position:absolute;top:2px;left:2px;width:12px;height:12px;background:white;border-radius:50%}.pmwv2-switch[data-on="1"]{background:#00b86b}.pmwv2-switch[data-on="1"]:before{left:14px}.pmwv2-switch:disabled{opacity:.5}.pmwv2-link{border:0;background:none;color:#006cfd;cursor:pointer}.pmwv2-root .hmc-share-foot .hmc-save-btn{background:#006cfd!important;color:white!important}.pmwv2-root [hidden]{display:none!important}}

@media(min-width:769px){.pmwv2-root .gq-meter-records{display:block!important}.pmwv2-chart{display:block;width:100%;height:135px}.pmwv2-chart text{font-size:9px;fill:#6b7f9d}.pmwv2-period{display:flex;flex-wrap:wrap;gap:6px;margin:3px 0 8px}.pmwv2-period button{font:inherit;font-size:11px;border:1px solid #d9e7fb;background:white;color:#536b9c;border-radius:5px;padding:4px 10px;cursor:pointer}.pmwv2-period .active{border-color:#006cfd;color:#006cfd;background:#eef7ff}.pmwv2-period button:disabled{opacity:.45}.pmwv2-card-head small{color:#7589b6;font-size:11px;font-weight:400}.pmwv2-stat-list small{font-size:10px;color:#7589b6}.pmwv2-main>.pmwv2-tabs{margin-top:0!important}.pmwv2-main>.gq-meter-history[hidden]{display:none!important}}

@media(min-width:769px){body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-summary>.pmwv2-actions{grid-column:1/-1!important;grid-row:auto!important;border:0!important;padding:0!important;background:none!important;box-shadow:none!important;width:100%!important}body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-summary>.pmwv2-actions>div{display:flex!important;flex-wrap:wrap;gap:6px!important}body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-sync-entry .btn{width:auto!important}.pmwv2-price-choice{flex-direction:row!important;align-items:center;border-bottom:1px solid #e5edf8;padding:8px}.pmwv2-price-choice input{width:auto!important}}

@media(min-width:769px){body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page #dt-device-content.pmwv2-root [hidden]{display:none!important}}

/* Reference alignment; only the public water-meter desktop content. */
@media (min-width:769px) {
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-hdr {
    flex-wrap:nowrap; gap:8px; min-height:32px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-hdr > .nm { flex:1; min-width:0; font-size:16px!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-header-right { display:flex; flex:0 0 auto; align-items:center; gap:8px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-header-right .hmc-sync-entry { flex-wrap:nowrap; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-header-right .hmc-upd { font-size:10px; line-height:1.25; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-header-right .hmc-st { white-space:nowrap; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-summary {
    grid-template-columns:minmax(220px,1.1fr) minmax(140px,.72fr) minmax(320px,1.65fr)!important;
    gap:8px 14px!important; padding:10px 12px!important; align-items:center!important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-meter-identity {
    display:flex; align-items:center; gap:10px; min-width:0; align-self:stretch; border-right:1px solid #e5edf8; padding-right:12px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-device-symbol {
    display:flex; align-items:center; justify-content:center; width:62px; height:76px; flex:0 0 62px;
    border:1px solid #e1ecf9; border-radius:7px; background:#eff6ff; color:#006cfd; font-size:30px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-identity-fields { flex:1; min-width:0; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-identity-fields > div { display:flex; align-items:baseline; gap:6px; padding:2px 0; font-size:11px; line-height:1.5; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-identity-fields span { flex:0 0 49px; color:#6b7f9d; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-identity-fields b { min-width:0; overflow-wrap:anywhere; font-weight:500; color:#243d65; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-reading,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-readings { min-width:0; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-reading > .hd { display:block!important; margin-bottom:3px!important; font-size:12px!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-reading > .hd > .hmc-st-badge { display:none!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-reading > .gq-meter-total { margin:2px 0!important; font-size:25px!important; white-space:nowrap; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-reading #hmw-read-note { font-size:9px!important; line-height:1.4; color:#8a9bb3; margin:2px 0 0!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-readings { display:flex; flex-direction:column; gap:6px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-readings .gq-meter-metrics { gap:6px!important; grid-column:auto!important; grid-row:auto!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-readings .gq-meter-metrics > div { min-height:52px!important; padding:6px 8px!important; text-align:left!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-readings > .pmwv2-actions { width:100%!important; border:0!important; box-shadow:none!important; background:transparent!important; padding:0!important; margin:0!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-readings > .pmwv2-actions > div { display:flex!important; align-items:center; justify-content:flex-end; gap:5px!important; flex-wrap:wrap; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-readings .hmc-qk { width:auto!important; min-height:29px!important; padding:4px 7px!important; font-size:11px!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-summary > .pmwv2-summary-notes { grid-column:1/-1!important; display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 12px; padding-top:5px; border-top:1px solid #edf2f9; color:#8a9bb3; font-size:10px!important; line-height:1.4; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-summary-notes > div { display:flex!important; flex-wrap:wrap; align-items:baseline; gap:4px; background:none!important; border:0!important; margin:0!important; padding:0!important; font-size:10px!important; line-height:1.4!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-summary-notes #hmw-bal { font-size:10px!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-usage-grid { grid-template-columns:minmax(0,1.9fr) minmax(205px,1fr); gap:12px; align-items:stretch; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-usage-main { min-width:0; padding-right:12px; border-right:1px solid #e8eff9; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-usage-main .pmwv2-card-head,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-usage-statistics .pmwv2-card-head { margin-bottom:5px!important; min-height:21px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-usage-statistics { min-width:0; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-coverage { color:#7489a7; font-size:10px; line-height:1.45; margin-top:5px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-field-group { border-top:1px solid #edf2f9; padding-top:7px; margin-top:7px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-field-group-label { color:#6b7f9d; font-size:10px; font-weight:600; line-height:1.4; margin-bottom:3px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-field-group .hmc-kv { min-height:27px; padding:4px 0; border:0; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-other-info .pmwv2-kv { min-height:27px; padding:4px 0; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-share-control-row { display:flex; gap:6px; align-items:center; margin-bottom:5px!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-share-control-row .hmc-share-total { margin-left:auto; display:flex; align-items:baseline; gap:6px; flex:0 0 auto; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-share-control-row .hmc-share-total .lbl { font-size:10px; color:#7489a7; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-share-control-row .hmc-share-total .val { font-size:14px; font-weight:700; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-duplicate-title { display:none!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root #hmw-share-note,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root #hmw-vac-fold { font-size:10px!important; line-height:1.4; margin:3px 0!important; padding:0!important; color:#7489a7; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-share-foot { justify-content:flex-end; margin-top:6px!important; padding-top:6px!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-share-foot .pmwv2-share-status { flex:1 1 auto; }
}
@media (min-width:769px) and (max-width:1200px) {
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-summary { grid-template-columns:minmax(190px,1.1fr) minmax(0,1fr)!important; gap:8px 12px!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-readings { grid-column:1/-1; flex-direction:row; align-items:center; gap:12px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-readings .gq-meter-metrics { flex:1; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-readings > .pmwv2-actions { width:auto!important; flex:0 1 auto; max-width:45%; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-reading > .gq-meter-total { font-size:24px!important; }
}
@media (min-width:769px) and (max-width:1000px) {
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-hdr { flex-wrap:wrap; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-header-right { margin-left:auto; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-readings { flex-direction:column; align-items:stretch; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-readings > .pmwv2-actions { width:100%!important; max-width:none; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-usage-grid { grid-template-columns:minmax(0,1fr); gap:8px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-usage-main { border:0; padding:0; }
}

@media(min-width:769px){body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page #dt-device.pmwv2-device.active{padding-top:var(--pmwv2-upper-clearance,0px)!important}}
.pmwv2-ops-table { display:none; }
@media(min-width:769px) {
  #dt-device-content.pmwv2-root #hmw-records.pmwv2-records-table > .pmwv2-native-record { display:none!important; }
  #dt-device-content.pmwv2-root #hmw-records > .pmwv2-ops-table { display:table; width:100%; border-collapse:collapse; font-size:11px; line-height:1.4; color:#40598b; }
  #dt-device-content.pmwv2-root .pmwv2-ops-table th { padding:6px 7px; text-align:left; font-weight:500; background:#f1f7fd; color:#7589b6; border-bottom:1px solid #dfebfa; white-space:nowrap; }
  #dt-device-content.pmwv2-root .pmwv2-ops-table td { padding:6px 7px; border-bottom:1px solid #edf2f9; vertical-align:top; overflow-wrap:anywhere; }
  #dt-device-content.pmwv2-root .pmwv2-ops-table td:first-child { width:96px; white-space:nowrap; }
  #dt-device-content.pmwv2-root .pmwv2-ops-table .pmwv2-record-result { color:#00a867; }
  #dt-device-content.pmwv2-root .pmwv2-ops-table .pmwv2-record-failed { color:#f04453; }
}

@media(max-width:768px){.pmwv2-meter-identity,.pmwv2-other-info{display:none!important}}
@media(min-width:769px){.pmwv2-readings .hmc-qk[onclick*="_hmwRefreshRead"]{order:-1}}


/* The native unsupported recharge stays disabled, outside the five-action row. */
@media(min-width:769px){
 body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-unavailable-action{border-top:1px solid #edf2f9;margin-top:8px;padding-top:8px}
 body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-unavailable-action .hmc-qk{width:100%;min-height:29px!important;font-size:11px!important;padding:5px 8px!important}
}

/* Preserve the existing r7 public-device navigation width/clearance; water only. */
@media(min-width:769px){
 body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page #dt-device.pmwv2-device.active{padding-top:var(--public-device-clearance,0px)!important}
 body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page #dt-device-content.pmwv2-root > [hidden]{display:none!important}
 body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-summary .gq-meter-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-tabs{justify-content:flex-start}
 body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-seg{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important}
 body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmc-seg-btn{min-width:0!important;white-space:normal}
 body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmw-meter-no{min-width:70px!important}
 body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .hmw-ratio{width:62px!important;flex:0 0 62px}
 body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-local-price-note,
 body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-history-note{font-size:10px;line-height:1.5;overflow-wrap:anywhere;color:#7589b6}
 body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-water-page .pmwv2-root .pmwv2-history-note{margin:0 0 6px}
}

/* Native water allocation/operation rows use the same compact table colours. */
@media(min-width:769px){
 body #desktop-house-detail-modal .pm-v2-water-page .pmwv2-root .hmc-card:has(.hmw-ratio) > div[style*="font-size:10px"]:has(> span:nth-child(4)) {background:#f1f7fd!important;border:1px solid #dfebfa;border-radius:4px;color:#7589b6!important;padding:6px 7px;min-height:30px;box-sizing:border-box}
 body #desktop-house-detail-modal .pm-v2-water-page .pmwv2-root .hmc-card > div:has(> .hmw-ratio) {padding:6px 7px!important;border-bottom-color:#edf2f9!important;font-size:11px;min-height:34px;box-sizing:border-box}
 body #desktop-house-detail-modal .pm-v2-water-page .pmwv2-root #hmw-records > div:has(> span:nth-child(3)) {display:grid!important;grid-template-columns:minmax(100px,1fr) minmax(40px,.5fr) minmax(180px,1.2fr);gap:8px;padding:6px 7px!important;border-bottom-color:#edf2f9!important;font-size:11px!important;line-height:1.4}
 body #desktop-house-detail-modal .pm-v2-water-page .pmwv2-root #hmw-records > div > span {min-width:0;overflow-wrap:anywhere;text-align:left}
}
