body{background:#f4f6fa}.mobile{max-width:620px;margin:auto;background:#fff;min-height:100vh;padding-bottom:92px}.mobile-header{padding:18px 20px;border-bottom:1px solid #edf0f5;background:#fff;position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between}.mobile-header h1{font-size:18px;margin:0}.mobile-header span{font-size:11px;color:#8a98aa}.tip{margin:0;padding:14px 20px;background:#f6f8fb;color:#71859e;font-size:12px;line-height:1.8}.mobile form{padding:24px 20px}.mobile .fields{grid-template-columns:1fr;gap:22px}.mobile-footer{position:fixed;bottom:0;left:0;right:0;max-width:620px;margin:auto;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#ffffffed;border-top:1px solid #e9edf3;z-index:10}.mobile-footer button{width:100%;height:44px}.signature-box b{font-family:KaiTi,serif;font-size:26px;color:#26384e}#identity-status{font-size:11px;line-height:1.7;color:#8a98aa}#identity-status[data-state="matched"]{color:#168469}#identity-status[data-state="new"]{color:#3978c6}#identity-status[data-state="error"]{color:#b64a40}.invalid-field{border-color:#da6a65!important}.submitted{text-align:center;padding:100px 20px}.submitted>div{margin:auto auto 24px;background:#e9f8f0;color:#1da674;border-radius:100%;width:70px;height:70px;font-size:45px}.submitted h1{font-size:22px}.submitted p{color:#8090a4}.button-link{display:inline-block;border:1px solid #dce4ef;padding:10px 45px;border-radius:6px;margin-top:20px;background:white}.ledger{padding:22px;max-width:1800px;margin:auto}.ledger-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.ledger-head h1{font-size:21px;margin:0}.ledger-head p{margin:6px 0 0;color:#8a98aa;font-size:12px}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.actions input{width:245px}.table-wrap{overflow:auto;background:white;border:1px solid #e2e8f0;border-radius:8px}.ledger-table{border-collapse:collapse;width:100%;min-width:1500px}.ledger-table th{background:#f7f9fc;font-weight:500;color:#526780;font-size:12px}.ledger-table td,.ledger-table th{padding:14px 12px;border:1px solid #e9edf3;white-space:normal;text-align:left;line-height:1.8}.ledger-table td{font-size:12px;max-width:230px;overflow-wrap:anywhere}.ledger-table td:nth-child(3){min-width:165px}.ledger-table td:nth-child(4){min-width:160px}.ledger-table th:last-child,.ledger-table td:last-child{position:sticky;right:0;background:white;min-width:90px}.ledger-table img{max-width:100px;max-height:45px}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:16px;color:#8493a7;font-size:12px}.pc-form{max-width:950px;margin:24px auto;background:white;border:1px solid #e4eaf2;border-radius:8px;padding:28px}.pc-form .form-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.pc-form h1{font-size:20px;margin:0}.pc-form footer{display:flex;justify-content:flex-end;margin-top:28px}.load-error{padding:25px;color:#b64a40;line-height:1.8;background:white;border-radius:8px}.import-preview{max-height:260px;overflow:auto;margin-top:16px}.import-preview table{width:100%;border-collapse:collapse;font-size:12px}.import-preview td,.import-preview th{border:1px solid #e1e7f0;padding:9px;white-space:nowrap}.mapping-note{font-size:12px;color:#70849d;line-height:1.8}.access-url{width:100%;padding:12px;border:1px solid #cddcf0;background:#f5f9ff;word-break:break-all}.access-list{font-size:12px;margin-top:20px}.access-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e8edf3;padding:12px 0;gap:12px}@media(max-width:700px){.ledger{padding:12px}.ledger-head{align-items:flex-start;flex-direction:column}.pc-form{margin:12px;padding:20px}.pc-form .fields{grid-template-columns:1fr}.pc-form h1{font-size:17px}.dialog-head,.dialog-body,.dialog-foot{padding:18px}.mobile-header span{max-width:40%;text-align:right}}

.search-home{padding:clamp(90px,22vh,190px) 28px 40px;text-align:center}.search-home h1{color:#506bff;font-size:22px;line-height:1.6;margin:0 0 32px;font-weight:600}.query-input{display:block;width:100%;padding:15px 18px;border:2px solid #6379ff;border-radius:20px;text-align:center;min-height:52px}.query-input::placeholder{color:#a1a8b7}.query-button{margin-top:32px;border-color:#7f90ff;color:#506bff;font-size:17px;padding:10px 28px}.access-note{color:#8a98aa;line-height:1.8;font-size:12px;margin-top:22px}.result-header{position:sticky;top:0;background:white;z-index:5;display:flex;align-items:center;gap:14px;border-bottom:1px solid #edf0f4;padding:13px 18px}.result-header h1{font-size:17px;margin:0}.back{border:0;font-size:29px;padding:0 8px;line-height:1;color:#46566c;background:none}.results{padding:20px 18px}.result-card{border:1px solid #dfe5f0;padding:20px 18px;border-radius:8px;margin-bottom:14px}.result-person{display:flex;justify-content:space-between;align-items:center;gap:10px}.result-person strong{font-size:15px}.result-person span{font-size:12px;overflow-wrap:anywhere}.result-card p{margin:24px 0 18px;line-height:1.9;color:#5d718a;font-size:13px}.result-card footer{text-align:right}.result-card button{color:#506bff;border-color:#9aa8ff;min-width:110px}.no-result{text-align:center;padding:70px 10px}.no-result h2{font-size:18px}.no-result p{line-height:1.9;color:#8392a6;font-size:13px}.photos-section{margin-top:28px;border-top:1px solid #e9edf3;padding-top:22px}.photos-section h2{font-size:14px;font-weight:500;margin:0 0 15px}.photos-section small{color:#8b9cb1;font-size:11px;margin-left:10px}.photos-list{display:flex;flex-wrap:wrap;gap:12px}.photo-item{position:relative;width:100px;height:100px;margin-bottom:12px}.photo-item img{width:100%;height:100%;object-fit:cover;border:1px solid #dfe6f0;border-radius:6px}.photo-item button{position:absolute;right:-5px;top:-6px;width:24px;height:24px;padding:0;background:#345;color:white;border-radius:50%;border:0}.photo-add{display:inline-block;padding:17px 24px;border:1px dashed #b9c9dd;border-radius:6px;color:#6c819e;cursor:pointer;font-size:12px}.photo-add[hidden]{display:none}.photo-add input{display:none}.mobile input[readonly]{background:#f7f9fc;color:#7b8b9f}

.filter-bar{background:white;border:1px solid #e2e8f0;border-radius:8px;padding:18px;gap:18px}.filter-bar label{display:flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap}.filter-bar select{min-width:160px;max-width:220px;padding:10px;border:1px solid #dce4ef;border-radius:5px;background:white;color:#35485f}.record-count{padding:16px 2px;color:#5b6d84;font-size:14px}.record-count strong{color:#506bff;font-size:20px;margin:0 4px}.ledger-table{min-width:2300px}.ledger-table th,.ledger-table td{min-width:78px}.ledger-table [data-column="identity"]{min-width:165px;white-space:nowrap}.ledger-table [data-column="address"],.ledger-table [data-column="bank"],.ledger-table [data-column="facility"],.ledger-table [data-column="notes"]{min-width:180px;max-width:240px}.ledger-table [data-column="phone"],.ledger-table [data-column="date"]{min-width:115px;white-space:nowrap}.ledger-table [data-column="heating"]{min-width:130px}.ledger-table .village-group td{background:#eef3ff;color:#3b5c91;font-weight:500;position:static;padding:8px 12px}.pc-form input[readonly]{background:#f5f7fa;color:#7b8b9f}

.ledger-table [data-column="signature"],.ledger-table [data-column="staffSignature"]{min-width:120px}.ledger-table .ledger-signature{display:block;max-width:120px;max-height:60px;object-fit:contain;background:white}

.search-home h1 span{display:inline-block}.search-home .dynamic-update{color:#ff545a;font-size:20px}.result-hint{font-size:13px;color:#71859e;line-height:1.8;margin:0 0 18px}.result-card p{overflow-wrap:anywhere}
.field-hint{font-size:12px;color:#7b8b9f;line-height:1.7}.field select:disabled{background:#f7f9fc;color:#7b8b9f;opacity:1}.import-errors{max-height:220px;overflow:auto;font-size:12px;color:#986039}.ledger-table{min-width:3300px}.ledger-table [data-column="userCode"],.ledger-table [data-column="meterNo"]{min-width:150px;overflow-wrap:anywhere}.ledger-table [data-column="bankName"],.ledger-table [data-column="brandModel"]{min-width:180px}.ledger-table td:nth-child(3),.ledger-table td:nth-child(4){min-width:78px}
.notes-section{margin-top:24px}
.ledger-table [data-column="brand"],.ledger-table [data-column="model"]{min-width:160px}
.photo-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:660px}.photo-slot{min-width:0}.photo-slot h3{font-size:13px;font-weight:500;margin:0 0 6px}.photo-hint{font-size:12px;color:#71849b;margin:0 0 12px;line-height:1.6}.photo-slot .photo-add{display:flex;justify-content:center;align-items:center;width:100%;height:118px;padding:12px;background:#fafcff}.photo-slot .photo-replace{height:auto;margin-top:8px;padding:9px}.photo-preview{position:relative;height:118px}.photo-preview img{width:100%;height:100%;object-fit:contain;border:1px solid #dfe6f0;border-radius:6px;background:#fafcff}.photo-preview button{position:absolute;right:4px;top:4px;width:26px;height:26px;padding:0;background:#345;color:white;border-radius:50%;border:0}.photo-add:has(input:disabled){opacity:.5;cursor:not-allowed}.ledger-table [data-column="date"]{min-width:175px}

/* Staff account management and independent mobile sign-in. */
.staff-fields input,.staff-fields select,.staff-filters select,.staff-import input[type=password]{border:1px solid #dfe5ee;border-radius:6px;padding:10px 12px;background:#fff;color:#31445e}.staff-fields input:disabled,.staff-fields select:disabled{background:#f6f8fb;color:#8493a7}.staff-fields input:focus,.staff-fields select:focus{outline:2px solid #2563dc18;border-color:#80a7f0}.staff-import table{width:100%;border-collapse:collapse}.staff-import td,.staff-import th{padding:10px;text-align:left;border-bottom:1px solid #e8edf4}.staff-fields{scroll-padding:20px}.staff-editor .dialog-head,.staff-editor .dialog-foot{flex-shrink:0}
.staff-login.search-home{padding-top:18vh}.staff-login label{display:block;text-align:left;margin:20px auto;max-width:340px}.staff-login .query-input{display:block;width:100%;margin-top:8px}.staff-login #login-error,.staff-error{color:#b42318;overflow-wrap:anywhere;min-height:20px}.staff-current{margin-top:90px;color:#344054}.staff-current p{margin:8px 0}.staff-dialog{width:min(1280px,96vw);max-width:96vw}.staff-filters{margin-bottom:20px;flex-wrap:wrap}.staff-filters label{display:flex;gap:8px;align-items:center}.staff-filters select{min-width:140px}.staff-table{width:100%;border-collapse:collapse;min-width:1100px}.staff-table td,.staff-table th{padding:14px 10px;border-bottom:1px solid #e8edf4;text-align:left;white-space:nowrap}.staff-editor{width:min(520px,94vw)}.staff-fields{display:grid;gap:16px}.staff-fields label,.staff-import label{display:grid;gap:7px}.staff-fields small{font-size:12px;color:#667085}.staff-fields input,.staff-fields select,.staff-import input[type=password]{width:100%;min-height:42px}.staff-import{width:min(900px,94vw)}

.staff-ledger-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.staff-ledger-filters input{grid-column:1/-1}.staff-ledger-filters input,.staff-ledger-filters select{min-width:0;width:100%;padding:10px;border:1px solid #d7e1f0;border-radius:6px;background:#fff;color:#26384e}.mobile .result-card footer{display:flex;flex-wrap:wrap;gap:8px}.mobile #manage-form{padding-bottom:90px}
