/* Collectra application shell. Loaded after existing portal styles. */
:root{--app-teal:#007b83;--app-ink:#153b42;--app-muted:#657c82;--app-border:#dfe9eb;--app-bg:#f1f6f7;--app-shadow:0 6px 24px #163c4408}
body{background:var(--app-bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--app-ink);-webkit-font-smoothing:antialiased}
header{height:80px;position:sticky;top:0;z-index:20;background:#ffffffed;backdrop-filter:blur(16px);padding:0 5%;border-bottom:1px solid var(--app-border)}
.brand{font-size:23px;letter-spacing:-.7px;gap:11px}.mark{width:42px;height:42px;border-radius:13px;background:linear-gradient(140deg,#008f94,#00666f);box-shadow:0 4px 12px #007b8326}
.brand small{font-size:10px;letter-spacing:1px}.identity{gap:9px}.identity>span{font-weight:650;font-size:12px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.customer-view main{width:90%;max-width:1080px;margin:36px auto 5vh;padding:0}
h1{font-size:30px;letter-spacing:-1px;line-height:1.2}h2{font-size:20px;letter-spacing:-.4px}.eyebrow{font-size:10px;letter-spacing:1.5px}.page-heading{margin-bottom:22px}.page-heading .muted{font-size:13px;line-height:1.7}
.card{border:1px solid var(--app-border);border-radius:18px;box-shadow:var(--app-shadow)}
button{border-radius:10px;min-height:42px;font-size:13px;padding:10px 16px;transition:background .15s,box-shadow .15s,transform .15s}button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible{outline:3px solid #70c5ca;outline-offset:3px}button:disabled{opacity:.4}.quiet{background:#fff;border-color:var(--app-border)}
input,select{height:46px;border-radius:10px;border-color:#cddde0;font-size:14px}label{color:var(--app-muted);font-size:11px;letter-spacing:.15px;gap:8px}input:focus,select:focus{outline:2px solid #7ac7cc;outline-offset:2px}
body.customer-view #filterForm{padding:20px 22px;gap:12px;align-items:end;margin-bottom:18px;background:white}body.customer-view #customerMeterLabel{flex:1;max-width:540px;min-width:180px}body.customer-view #filterForm button{height:46px}
body.customer-view .table-info{margin:0 4px 12px;font-size:11px;color:var(--app-muted)}body.customer-view #readingInfo{display:none}body.customer-view #readingsPanel{margin-bottom:30px}
body.customer-view .table-wrap{background:white;border-radius:16px;overflow:hidden;border:1px solid var(--app-border)}body.customer-view table{table-layout:fixed;width:100%;white-space:normal;border-collapse:collapse;font-size:13px}
body.customer-view th{font-size:10px;letter-spacing:.65px;padding:16px 20px;background:#f7fafb;color:#6b8287;font-weight:700;line-height:1.6}
body.customer-view td{padding:18px 20px;vertical-align:middle;border-color:#edf2f3;overflow-wrap:anywhere}body.customer-view #readingsTable th:nth-child(1){width:24%}body.customer-view #readingsTable th:nth-child(2){width:30%}body.customer-view #readingsTable th:nth-child(n+3){width:23%}
body.customer-view #readingsTable td:nth-child(n+3),body.customer-view #readingsTable th:nth-child(n+3),body.customer-view #billingSummary td:not(:first-child),body.customer-view #billingSummary th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
body.customer-view #readingsTable td:nth-child(n+3){font-size:18px;letter-spacing:-.5px;font-weight:650;color:#173d44}
body.customer-view #readingsTable .day-group td{background:#edf5f5;padding:13px 20px;font-size:12px;font-weight:750;color:#27565d;border-top:1px solid #dce8ea;text-align:left}
body.customer-view .day-summary button{min-height:36px;padding:7px 11px;background:#eaf7f7;border:0;color:#006b74;font-size:12px;font-weight:700}
body.customer-view .day-detail>td{padding:12px 16px!important;background:#f7fafb;text-align:left!important}body.customer-view .day-detail-content{padding:16px;border:1px solid var(--app-border);border-radius:12px;background:white}body.customer-view .day-detail-content p{font-size:12px;color:var(--app-muted);margin-bottom:12px}body.customer-view .day-detail-content th{width:33.333%!important}body.customer-view .day-detail-content td{font-size:13px!important;font-weight:500!important}body.customer-view .day-detail-content table{border:0}.day-detail-nav{display:flex;gap:10px;margin-top:14px}
body.customer-view .pagination{margin-top:16px;gap:10px;color:var(--app-muted);font-size:11px}body.customer-view .pagination button{min-height:36px;padding:7px 12px;font-size:11px}
body.customer-view #billingSummary{padding:24px;margin:30px 0 0;background:white}body.customer-view #billingSummary>label{max-width:100%;margin:18px 0}body.customer-view #billingSummary h2{margin-bottom:0}body.customer-view #billingSummary th{width:25%}body.customer-view #billingSummary td{font-size:15px}body.customer-view #billingSummary td:last-child{font-weight:750;color:#006e76;background:#f7fbfb}body.customer-view #billingDetail{font-size:12px;line-height:1.7;padding:12px 14px;background:#fff6e4;border-radius:10px;margin:0 0 18px;color:#8a641d}body.customer-view #billingDetail:empty{display:none}
body.customer-view .billing-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#collectraAppNav{display:none}footer{background:transparent;border:0;padding:20px 5%;font-size:11px;color:#82979c}.login{padding:32px;box-shadow:0 14px 50px #173d440b}.customer-grid>.card,.manage{padding:24px}nav .tab{border-radius:0}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:700px){
 header{height:70px;padding:0 5%;gap:10px;align-items:center}.brand{font-size:20px;gap:9px}.mark{width:36px;height:36px;font-size:25px}.brand small{font-size:8px}.identity{max-width:46%;gap:6px}.identity>span{display:none}.identity button{min-height:34px;padding:6px 9px;font-size:10px}
 body.customer-view main{width:90%;margin:25px auto 0;padding-bottom:110px}h1{font-size:26px}.page-heading{margin-bottom:20px}.page-heading .muted{font-size:12px}body.customer-view #filterForm{padding:16px;gap:10px}body.customer-view #customerMeterLabel{flex-basis:100%;max-width:100%;min-width:0}body.customer-view #filterForm button{flex:1;min-height:44px}
 body.customer-view #readingsPanel>.table-wrap{background:transparent;border:0;box-shadow:none;overflow:visible}body.customer-view #readingsTable{display:block}body.customer-view #readingsTable>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}body.customer-view #readingsTable>tbody{display:block}
 body.customer-view #readingsTable>tbody>.day-group{display:block;margin-top:18px}body.customer-view #readingsTable>tbody>.day-group>td{display:block;border:0;padding:0 2px 10px;background:transparent;font-size:12px;color:#55777e}
 body.customer-view #readingsTable>tbody>.day-summary{display:grid;grid-template-columns:1fr 1fr;background:white;border:1px solid var(--app-border);border-radius:16px;margin-bottom:10px;padding:16px;box-shadow:var(--app-shadow)}
 body.customer-view #readingsTable>tbody>.day-summary>td{border:0;padding:0;text-align:left;font-size:22px!important}body.customer-view #readingsTable>tbody>.day-summary>td::before{content:attr(data-app-label);display:block;font-size:9px;line-height:1.7;letter-spacing:.4px;color:#71898e;font-weight:650;margin-bottom:4px}
 body.customer-view #readingsTable>tbody>.day-summary>td:nth-child(1){grid-column:2;grid-row:1;text-align:right;align-self:center}body.customer-view #readingsTable>tbody>.day-summary>td:nth-child(1)::before{display:none}body.customer-view #readingsTable>tbody>.day-summary>td:nth-child(2){grid-column:1;grid-row:1;font-size:12px!important;font-weight:700;align-self:center;padding-right:6px}body.customer-view #readingsTable>tbody>.day-summary>td:nth-child(n+3){margin-top:20px}body.customer-view #readingsTable>tbody>.day-summary>td:nth-child(4){padding-left:14px;border-left:1px solid #e9f0f2}
 body.customer-view #readingsTable>tbody>.day-detail{display:block;margin:-3px 0 18px}body.customer-view #readingsTable>tbody>.day-detail>td{display:block;width:100%;padding:8px!important;border:0;border-radius:14px}body.customer-view .day-detail-content{padding:8px;overflow-x:auto}body.customer-view .day-detail-content th,body.customer-view .day-detail-content td{padding:10px 7px!important;font-size:10px!important}
 body.customer-view #billingSummary{padding:18px;margin-top:26px;border-radius:18px}body.customer-view #billingSummary h2{font-size:19px}body.customer-view #billingSummary>.table-wrap{border:0;overflow:visible;background:transparent}body.customer-view #billingSummary table,body.customer-view #billingSummary tbody{display:block}body.customer-view #billingSummary thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}body.customer-view #billingValues>tr{display:grid;grid-template-columns:1fr 1fr 1.15fr;border:1px solid var(--app-border);border-radius:12px;padding:14px;margin-top:12px;gap:12px 8px}body.customer-view #billingValues>tr>td{display:block;padding:0!important;border:0;text-align:left!important;font-size:14px;min-width:0}body.customer-view #billingValues>tr>td:first-child{grid-column:1/-1;font-weight:750;font-size:13px;color:#355d64}body.customer-view #billingValues>tr>td:not(:first-child)::before{content:attr(data-app-label);display:block;font-size:8px;letter-spacing:.15px;color:#73898e;font-weight:600;margin-bottom:6px;min-height:25px}body.customer-view #billingValues>tr>td:last-child{background:transparent;color:#006d76;font-size:17px}body.customer-view #billingSummary select{font-size:13px}
 #collectraAppNav:not([hidden]){position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;justify-content:center;gap:12px;padding:10px 5% calc(10px + env(safe-area-inset-bottom));background:#fffffff5;backdrop-filter:blur(16px);border-top:1px solid var(--app-border);box-shadow:0 -6px 20px #173d4407}#collectraAppNav button{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1;border:0;background:transparent;color:#6a858b;padding:7px;min-height:48px;font-size:10px}#collectraAppNav button svg{width:20px;height:20px}#collectraAppNav button.active{color:#007b83;background:#eaf5f5;border-radius:12px}body.customer-view footer{display:none}
}
