/* Compact customer screens. Admin layout is unchanged. */
body.customer-view main{padding-bottom:100px!important}
body.customer-view .page-heading{margin-bottom:10px!important}
body.customer-view .page-heading h1{font-size:22px!important;line-height:1.2;margin:0 0 5px!important}
body.customer-view .page-heading .eyebrow{font-size:9px!important;margin:0 0 4px!important}
body.customer-view #pageDescription{font-size:11px!important;line-height:1.4!important;margin:0!important}
body.customer-view #filterForm{padding:10px 12px!important;gap:8px!important;align-items:end!important;flex-wrap:wrap!important;margin-bottom:12px!important}
body.customer-view #customerMeterLabel{flex:1 1 180px!important;min-width:0!important;max-width:340px!important;font-size:11px!important;gap:4px!important}
body.customer-view #filterForm select{height:34px!important;min-height:34px!important;padding:5px 9px!important;font-size:12px!important}
body.customer-view #filterForm button{flex:0 0 auto!important;min-height:34px!important;height:34px!important;padding:5px 12px!important;font-size:12px!important}
body.customer-view #readingsPanel>.pagination{display:none!important}
body.customer-view[data-collectra-view="readings"] #billingSummary{display:none!important}
body.customer-view[data-collectra-view="billing"] #readingsPanel,
body.customer-view[data-collectra-view="billing"] #portalSection>.page-heading{display:none!important}
body.customer-view[data-collectra-view="billing"] #billingSummary{margin-top:0!important}
body.customer-view #collectraAppNav:not([hidden]){position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;justify-content:center;gap:12px;padding:8px 5% calc(8px + env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid #d7e5e8;box-shadow:0 -4px 16px #173d4407}
#collectraAppNav button{display:flex;flex-direction:column;align-items:center;gap:3px;flex:1;max-width:220px;border:0;background:transparent;color:#6a858b;padding:6px;min-height:44px;font-size:11px}
#collectraAppNav button svg{width:20px;height:20px}
#collectraAppNav button.active{color:#007b83;background:#eaf5f5;border-radius:10px}

/* Customer readings spacing */
body.customer-view > header { height:auto; min-height:0; padding-block:4px; }
body.customer-view main { margin-top:8px; }
body.customer-view[data-collectra-view="readings"] #pageDescription,
body.customer-view #readingsPanel > .table-info { display:none !important; }
body.customer-view #filterForm {
 display:flex; align-items:center !important; flex-wrap:nowrap !important;
 gap:6px !important; padding:6px 8px !important; margin-bottom:7px !important;
}
body.customer-view #filterForm #customerMeterLabel:not([hidden]) {
 display:flex; flex-direction:row; align-items:center; white-space:nowrap;
 flex:1 1 0 !important; max-width:none !important; margin:0;
}
body.customer-view #customerMeterLabel select {
 flex:1 1 0; min-width:0; width:0; margin:0;
}
body.customer-view #filterForm button { margin:0; padding-inline:8px !important; }
/* Customer account in header */
body.customer-view > header { gap:clamp(6px,2vw,16px); }
body.customer-view > header .brand { flex:0 0 auto; }
body.customer-view > header .identity {
 flex:1 1 auto; min-width:0; max-width:none;
 flex-wrap:nowrap; align-items:center; gap:clamp(6px,2vw,16px);
}
body.customer-view > header #identity:not(:empty) {
 display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
 flex:1 1 auto; min-width:0; max-width:260px; margin-inline:auto;
 padding:4px 6px; border-radius:6px; background:#edf6f6;
 color:#083e49; font-size:clamp(10px,2.8vw,13px); line-height:1.3;
 white-space:normal; overflow-wrap:anywhere; text-align:center;
}
body.customer-view > header .identity button { flex:0 0 auto; white-space:nowrap; }
/* Customer visual refresh */
body.customer-view { background:#f1f6f7; color:#123743; }
body.customer-view > header { background:#fff; box-shadow:0 2px 10px #1237430a; }
body.customer-view > header #identity:not(:empty) {
 background:#e6f3f2; border:1px solid #d4e9e7; border-radius:999px;
 padding-inline:10px; color:#124951;
}
body.customer-view .page-heading .eyebrow { color:#007b83; letter-spacing:.13em; }
body.customer-view #readingsPanel #filterForm {
 background:#fff; border-color:#d6e5e8; border-radius:12px;
 box-shadow:0 2px 8px #12374308;
}
body.customer-view #readingsPanel .table-wrap:has(#readingsTable) {
 border-radius:12px !important; box-shadow:0 2px 8px #12374308;
}
body.customer-view #readingsTable.latest-meter-table th {
 background:#e8f2f3 !important; color:#325763;
}
body.customer-view #readingsTable .meter-usage-row > td { background:#fff; }
body.customer-view .meter-usage-tile {
 border:1px solid #d3e9e7; border-inline-start:3px solid #007b83;
 border-radius:9px; background:#ecf7f6; padding:7px 8px;
}
body.customer-view .meter-usage-tile + .meter-usage-tile {
 border-color:#f0dfbc; border-inline-start-color:#b97913; background:#fff6e6;
}
body.customer-view .meter-usage-tile strong { color:#123743; }
body.customer-view #billingSummary { background:#fff; border-radius:14px; }
body.customer-view #billingSummary .billing-period-controls { background:#f0f7f7; }
body.customer-view #billingSummary .billing-meter-card {
 border-radius:11px; box-shadow:0 2px 8px #12374308;
}
body.customer-view #billingSummary .billing-meter-header {
 background:#e8f4f3; border-inline-start:3px solid #007b83;
}
body.customer-view #billingSummary .billing-meter-customer { color:#345763; }
body.customer-view #billingSummary .billing-meter-amount {
 color:#124951; font-variant-numeric:tabular-nums;
}
body.customer-view #collectraAppNav:not([hidden]) { box-shadow:0 -3px 14px #1237430a; }
body.customer-view #collectraAppNav button.active {
 background:#e3f2f1; color:#006970; border-radius:11px;
}
body.customer-view #filterForm button[type="submit"] { display: none; }
.customer-refresh-icon { display: none; }
body.customer-view #refreshButton { width: 34px; display: inline-grid; place-items: center; padding: 0 !important; }
body.customer-view #refreshButton .refresh-text { display: none; }
body.customer-view #refreshButton .customer-refresh-icon { display: block; width: 16px; height: 16px; }

/* Compact customer readings heading */
body.customer-view[data-collectra-view="readings"] main {
    margin-top: 4px;
    padding-top: 0;
}
body.customer-view[data-collectra-view="readings"] #portalSection > .page-heading {
    margin-bottom: 4px !important;
}
body.customer-view[data-collectra-view="readings"] #roleLabel {
    margin-bottom: 0 !important;
}
body.customer-view[data-collectra-view="readings"] #pageTitle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
