:root{--tblr-primary:#23664f;--tblr-primary-rgb:35,102,79;--tblr-body-bg:#f4f6f8;--tblr-font-sans-serif:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}body{font-size:1rem;color:#24352e}.navbar{min-height:82px;background:white;border-bottom:1px solid #e5e9e7}.navbar-brand{gap:12px;color:#1f4939}.brand-mark{width:38px;height:38px;background:#e4efe9;border-radius:12px;display:grid;place-items:center}.icon{width:22px;height:22px;flex-shrink:0}.icon-sm{width:17px;height:17px}.main-nav{gap:8px}.main-nav .nav-link{gap:8px;color:#617168;padding:12px 16px;border-radius:8px}.main-nav .active{background:#e8f1eb;color:#20533d;font-weight:600}.container-xl{max-width:1280px}.page-title,h1{font-size:2rem;letter-spacing:-.04em;font-weight:650}h2{letter-spacing:-.02em}.page-pretitle,.module-label{font-size:.75rem;letter-spacing:.12em;font-weight:700;color:#64776b}.module-label{display:flex;align-items:center;gap:10px}.metric{font-size:1.85rem;letter-spacing:-.04em;font-weight:650;line-height:1.7}.metric small{font-size:.85rem;font-weight:400;letter-spacing:0;color:#66776d}.metric-date{font-size:1.45rem;line-height:2.16}.card{border:1px solid #e1e8e3;border-radius:12px;box-shadow:0 2px 5px #223b2c04}.feature-card{background:linear-gradient(130deg,#fff 60%,#f0f6f2)}.water-card{background:#edf5f7;border-color:#dbe9ed}.btn{min-height:42px;border-radius:7px;font-weight:600}.btn-primary{background:#23664f;border-color:#23664f}.btn-primary:hover{background:#194d3b;border-color:#194d3b}.form-control,.form-select{min-height:46px;font-size:1rem}.form-card{max-width:820px}.form-label{font-weight:600}.table thead th{font-size:.75rem;color:#627267;letter-spacing:.04em}.table td{padding-top:17px;padding-bottom:17px;font-variant-numeric:tabular-nums}.record-note td{font-size:.8rem;background:#f8faf8;color:#796531;padding-top:7px;padding-bottom:7px}.notes-cell{min-width:200px;max-width:380px;white-space:normal}.usage-progress{appearance:none;width:100%;height:16px;border:0;border-radius:8px;overflow:hidden}.usage-progress::-webkit-progress-bar{background:#e7ede9}.usage-progress::-webkit-progress-value{background:#38765e;border-radius:8px}.usage-progress::-moz-progress-bar{background:#38765e}.footer-note{padding:25px 12px;color:#708078;font-size:.8rem;display:flex;justify-content:space-between}.login-wrap{max-width:420px;margin:8vh auto}.validation-summary-valid{display:none}a:focus-visible,button:focus-visible{outline:3px solid #408ba3;outline-offset:3px}@media(max-width:767px){.navbar>.container-xl{justify-content:space-between;gap:12px}.main-nav{order:3;width:100%;justify-content:space-between}.main-nav .nav-link{padding:10px;font-size:.9rem}.navbar-brand{font-size:1.1rem}.page-title,h1{font-size:1.7rem}.metric{font-size:1.5rem}.card-body{padding:18px}.metric-date{font-size:1.05rem;line-height:2.5}.page-wrapper>.container-xl{padding-left:16px;padding-right:16px}.btn-group .btn{font-size:.85rem}.table-responsive{border-radius:0 0 12px 12px}.footer-note{gap:10px;flex-wrap:wrap}}
.main-nav{flex-wrap:wrap} @media(max-width:767px){.main-nav .nav-link{flex:1 0 40%;justify-content:center}}

/* Keep column headings visible while long tables scroll on desktop and mobile. */
.table-responsive {
    max-height: 70vh;
    max-height: 70dvh;
    overflow: auto;
}
.table-responsive .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f4f6f8;
    box-shadow: inset 0 -1px 0 #dce3de;
}
.table-responsive:focus-visible {
    outline: 3px solid #408ba3;
    outline-offset: 2px;
}
@media print {
    .table-responsive { max-height: none; overflow: visible; }
    .table-responsive .table thead th { position: static; }
}

.back-to-top {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1000;
    min-height: 44px;
    box-shadow: 0 3px 12px #24352e30;
    gap: .5rem;
}
.back-to-top[hidden] { display: none !important; }
.footer-note { padding-bottom: 5rem; }
@media print { .back-to-top { display: none !important; } }
