*{box-sizing:border-box}body{margin:0;background:#f3f6fb;color:#1c2c40;font:15px/1.5 Inter,Segoe UI,Arial,sans-serif}.topbar{background:linear-gradient(115deg,#12355b,#176b87);color:#fff;padding:15px max(24px,calc((100% - 1440px)/2));display:flex;align-items:center;justify-content:space-between;gap:18px}.brand,.account{display:flex;align-items:center;gap:12px}.brandmark,.login-symbol{display:grid;place-items:center;background:#ffffff20;border:1px solid #ffffff50;border-radius:13px;width:48px;height:48px;font-weight:800;font-size:17px}.brand strong{display:block;font-size:19px;letter-spacing:.2px}.brand small{display:block;color:#d6e9f4;font-size:12px}.account{font-size:13px}.account small{color:#d8e8f2}.nav{background:#fff;padding:10px max(24px,calc((100% - 1440px)/2));display:flex;align-items:center;gap:10px;border-bottom:1px solid #dce5ef}.nav a{padding:8px 13px;border-radius:8px;color:#244b6b;text-decoration:none;font-weight:600}.nav a:hover{background:#eaf2fa}.navtag,.version{font-size:11px;letter-spacing:.6px;color:#58718a;background:#eaf0f6;padding:5px 9px;border-radius:20px}.container{max-width:1440px;margin:28px auto;padding:0 24px;min-height:65vh}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.page-heading h1{font-size:28px;margin:0}.eyebrow{font-size:11px;letter-spacing:1.2px;color:#237d98;font-weight:800;margin:0 0 4px}.muted{color:#6b7c90;margin:5px 0}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat{background:#fff;border:1px solid #e1e8f0;border-radius:15px;padding:19px;display:flex;align-items:center;gap:15px;box-shadow:0 5px 18px #1b38520a}.stat-icon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;font-size:25px;font-weight:800}.stat small{display:block;color:#6d7f91}.stat strong{font-size:27px;line-height:1.2}.blue .stat-icon{background:#e7f1ff;color:#2867b4}.green .stat-icon{background:#e6f6ed;color:#218653}.amber .stat-icon{background:#fff2dc;color:#a66b12}.purple .stat-icon{background:#f0eaff;color:#7651b7}.panel,.notice{background:#fff;border:1px solid #e0e8f0;border-radius:15px;padding:22px;margin:0 0 20px;box-shadow:0 5px 18px #1b385208}.panel h2{font-size:18px;margin:0 0 16px}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.module{border:1px solid #e2eaf2;border-radius:12px;padding:17px}.module b{font-size:15px}.module p{font-size:13px;color:#6b7c90;margin:6px 0 12px}.soon{font-size:11px;color:#55718a;background:#edf3f8;padding:4px 8px;border-radius:20px}.notice{border-left:4px solid #2582a1}.notice p{color:#64778b}.btn{border:0;border-radius:8px;padding:10px 14px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.btn-primary{background:#176b91;color:#fff}.btn-primary:hover{background:#125775}.btn-light{background:#ffffff20;border:1px solid #ffffff60;color:#fff}.btn-small{background:#edf2f7;color:#36536d;padding:6px 10px}.full{width:100%;margin-top:8px}.login-card{max-width:430px;margin:55px auto;background:#fff;border:1px solid #e1e8f0;border-radius:18px;padding:30px;box-shadow:0 15px 40px #153a5a14}.login-symbol{background:#e6f1f8;color:#176b91;border-color:#d6e6f1;margin:0 auto 15px}.login-card h1{text-align:center;margin:0}.login-card>.muted{text-align:center;margin-bottom:23px}.form,.user-form{display:grid;gap:14px}.form label,.user-form label{display:grid;gap:6px;font-size:13px;font-weight:700;color:#425970}.form input,.user-form input,.user-form select{width:100%;border:1px solid #ccd8e4;border-radius:8px;padding:11px 12px;font:inherit;background:#fff}.form input:focus,.user-form input:focus,.user-form select:focus{outline:3px solid #d7edf7;border-color:#3186a5}.alert{padding:11px 13px;background:#edf7fb;border:1px solid #cce7f1;border-radius:9px;margin:0 0 15px}.alert.error{background:#fff0ef;border-color:#f4cbc6;color:#9c342b}.user-form{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:11px 10px;border-bottom:1px solid #e7edf3;white-space:nowrap}th{color:#587087;background:#f7f9fc;font-size:11px;text-transform:uppercase;letter-spacing:.4px}.footer{text-align:center;color:#8190a0;font-size:12px;padding:20px}.footer{border-top:1px solid #e3eaf1}@media(max-width:900px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.user-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.topbar{padding:12px 15px;align-items:flex-start}.brandmark{width:40px;height:40px}.brand strong{font-size:16px}.brand small{font-size:10px}.account{gap:6px;flex-direction:column;align-items:flex-end;font-size:11px}.account .btn{padding:7px 9px;font-size:11px}.nav{padding:8px 12px}.container{padding:0 13px;margin:18px auto}.page-heading h1{font-size:23px}.stats{gap:9px}.stat{padding:13px;gap:9px}.stat-icon{width:38px;height:38px}.stat strong{font-size:22px}.module-grid,.user-form{grid-template-columns:1fr}.login-card{margin:30px 13px;padding:23px}.panel{padding:16px}}
.inline-form{display:flex;gap:8px;align-items:center;min-width:220px}.inline-form select{max-width:150px}.user-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.user-form label{flex:1;min-width:220px}

/* SiPENDUDUK 0.3.0 */
.resident-name{font-weight:500;text-transform:none}.phone-list{display:flex;flex-direction:column;gap:3px}.phone-list span{display:block}.resident-filter select{width:100%;border:1px solid #ccd8e4;border-radius:8px;padding:11px 12px;font:inherit;background:#fff}.resident-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.resident-filter label{flex:1;min-width:210px}

/* SiPENDUDUK 0.3.1 */
.account{align-items:center}.account-identity{display:flex;flex-direction:column;align-items:flex-end;line-height:1.35}.account-version{display:block!important;color:#d9edf6!important;font-size:11px!important;font-weight:700;letter-spacing:.35px}
.btn-reset,.btn-back{background:#edf2f7;color:#36536d;border:1px solid #dce5ed}.resident-table th{position:sticky;top:0}.resident-row{cursor:pointer;transition:background .12s ease}.resident-row:hover{background:#f1f7fb}.resident-row:focus{outline:2px solid #2784a5;outline-offset:-2px;background:#eef7fb}.resident-row-link{color:inherit;text-decoration:none;font-weight:600}.resident-row-link:hover{text-decoration:underline;color:#176b91}.resident-row .row-action{cursor:default}.detail-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.detail-heading h2{margin:0;font-size:21px}.status-pill,.count-pill{display:inline-flex;padding:5px 10px;border-radius:20px;background:#eaf2f7;color:#345a73;font-size:12px;font-weight:700}.detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}.detail-grid>div{padding:13px;border:1px solid #e3eaf1;border-radius:10px;background:#fbfcfe}.detail-grid small,.vehicle-title small{display:block;color:#6d8092;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.35px}.detail-grid strong{display:block;margin-top:4px;font-size:15px}.detail-section{border-top:1px solid #e7edf3;padding-top:16px;margin-top:16px}.detail-section h3,.rfid-block h4{margin:0 0 10px;font-size:15px}.detail-list{margin:0;padding-left:20px}.detail-list li{padding:3px 0}.vehicle-list{display:grid;gap:14px}.vehicle-card{border:1px solid #e1e9f0;border-radius:12px;padding:16px;background:#fcfdff}.vehicle-title{display:flex;align-items:center;gap:12px}.vehicle-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#eaf2fa;color:#176b91;font-size:21px}.vehicle-title h3{margin:2px 0 0;font-size:19px;letter-spacing:.4px}.rfid-block{margin-top:15px;padding-top:13px;border-top:1px solid #e6edf3}.detail-table{font-size:12px}.detail-table th,.detail-table td{white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.resident-table{min-width:850px}.account-identity{font-size:12px}}
@media(max-width:560px){.detail-heading{align-items:flex-start;flex-direction:column}.detail-grid{gap:8px}.detail-grid>div{padding:10px}.account{flex-direction:row;align-items:center}.account-identity{align-items:flex-end}}

/* SiPENDUDUK 0.3.3 - Resident search UX */
.resident-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.resident-filter label{display:grid;gap:5px;color:#425970;font-size:12px;font-weight:700}
.resident-search-field{flex:1 1 380px;min-width:240px}
.resident-lane-field{flex:0 1 230px;min-width:190px}
.resident-input-wrap{display:flex;align-items:center;gap:8px;min-height:38px;padding:0 10px;border:1px solid #ccd8e4;border-radius:8px;background:#fff}
.resident-input-wrap:focus-within{outline:3px solid #d7edf7;border-color:#3186a5}
.resident-input-wrap input{width:100%;min-width:0;border:0;outline:0!important;padding:8px 0;background:transparent;font:inherit;color:#1c2c40}
.resident-input-wrap input::-webkit-search-cancel-button{cursor:pointer}
.search-symbol{font-size:21px;line-height:1;color:#71869a}
.resident-lane-field select{width:100%;height:38px;padding:6px 10px;border:1px solid #ccd8e4;border-radius:8px;background:#fff;font:inherit;color:#1c2c40}
.btn.btn-small,.btn-reset{min-height:32px;padding:5px 11px;font-size:12px;line-height:1.2;border-radius:7px}
.btn-reset{background:#edf2f7;color:#36536d;border:1px solid #dce5ed}
.resident-result-meta{display:flex;justify-content:space-between;gap:10px;min-height:24px;margin:4px 0 8px;color:#6b7c90;font-size:12px}
.resident-placeholder td{padding:25px 12px;text-align:center;white-space:normal;color:#74869a;background:#fbfcfe}
.resident-table{min-width:900px}
.resident-row{cursor:pointer}
.resident-row .row-action{min-width:0;gap:6px}
.resident-row .row-action select{max-width:145px;min-width:125px;padding:5px 7px;border:1px solid #d3dde7;border-radius:6px;font:inherit;font-size:12px;background:#fff}
.resident-row .row-action .btn-small{min-height:29px}
@media(max-width:650px){.resident-filter{align-items:stretch}.resident-search-field,.resident-lane-field{flex:1 1 100%;min-width:0}.resident-filter .btn-reset{align-self:flex-start}.resident-result-meta{font-size:11px}}

/* SiPENDUDUK 0.3.4 - balanced resident controls and occupancy management */
.resident-filter{
 display:grid!important;
 grid-template-columns:minmax(320px,1.55fr) minmax(240px,1fr) auto!important;
 align-items:end!important;
 gap:14px!important;
 width:100%;
 margin:0 0 14px!important;
}
.resident-filter label{
 display:flex!important;
 flex-direction:column!important;
 align-items:stretch!important;
 justify-content:flex-end;
 gap:6px!important;
 min-width:0!important;
 width:100%;
 flex:none!important;
 color:#425970;
 font-size:13px!important;
 font-weight:700!important;
}
.resident-search-field,.resident-lane-field{min-width:0!important;width:100%}
.resident-input-wrap{
 display:flex!important;
 width:100%!important;
 min-width:0!important;
 height:40px!important;
 min-height:40px!important;
 align-items:center!important;
}
.resident-input-wrap input{
 display:block!important;
 flex:1 1 auto!important;
 width:100%!important;
 min-width:0!important;
 height:38px!important;
 font-size:14px!important;
}
.resident-lane-field select{
 display:block!important;
 width:100%!important;
 height:40px!important;
 min-height:40px!important;
}
.resident-filter .btn-reset{
 align-self:end!important;
 height:34px!important;
 min-height:34px!important;
 margin:0 0 3px!important;
 padding:5px 13px!important;
}
.resident-result-meta{margin:0 0 10px!important;min-height:20px}
.resident-row .row-action{display:inline-flex;align-items:center;flex-wrap:wrap;margin:2px 5px 2px 0}
.resident-row .move-out-form{display:inline-flex}
.btn-move-out{background:#fff4e8!important;color:#89521b!important;border:1px solid #f0d4b5!important}
.btn-move-out:hover{background:#ffe9d2!important}
@media(max-width:800px){
 .resident-filter{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important}
}
@media(max-width:620px){
 .resident-filter{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 .resident-filter .btn-reset{justify-self:start!important;margin:0!important}
 .resident-table{min-width:980px}
}

/* SiPENDUDUK 0.3.7 - Owner, vehicle and RFID lookup */
.owner-search-panel{padding:20px}
.owner-search-form{display:grid;grid-template-columns:minmax(300px,1.7fr) minmax(200px,.8fr) auto;gap:12px;align-items:end}
.owner-search-form label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;font-weight:700;color:#425970}
.owner-search-form input,.owner-search-form select{width:100%;height:40px;min-width:0;padding:8px 11px;border:1px solid #ccd8e4;border-radius:8px;background:#fff;color:#1c2c40;font:inherit;font-size:14px}
.owner-search-actions{display:flex;gap:7px;align-items:center}
.owner-search-actions .btn{height:34px;min-height:34px;padding:6px 13px;font-size:12px}
.owner-search-summary{margin:16px 0 10px;color:#657b91;font-size:13px}
.owner-search-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;margin-top:18px;padding:38px 18px;border:1px dashed #d6e0e9;border-radius:10px;background:#fbfcfe;text-align:center;color:#60758a}
.owner-search-empty strong{color:#28415b;font-size:15px}
.owner-search-empty span:last-child{max-width:600px;font-size:13px}
.owner-search-empty-icon{font-size:30px;color:#6e8da8}
.owner-search-results{display:grid;gap:14px;margin-top:12px}
.owner-result-card{border:1px solid #dce5ed;border-radius:11px;background:#fff;overflow:hidden}
.owner-result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;background:#f7f9fc;border-bottom:1px solid #e4ebf1}
.owner-result-heading .eyebrow{margin:0 0 3px}
.owner-result-heading h2{margin:0;color:#20364f;font-size:19px}
.owner-result-heading h2 span{font-size:15px;font-weight:500;color:#657b91}
.owner-result-section{padding:13px 17px;border-bottom:1px solid #edf1f5}
.owner-result-section:last-child{border-bottom:0}
.owner-result-section h3{margin:0 0 10px;color:#35536e;font-size:13px;text-transform:uppercase;letter-spacing:.03em}
.owner-person{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:6px 12px;padding:10px 0;border-top:1px solid #edf1f5}
.owner-person:first-of-type{border-top:0;padding-top:0}
.owner-person-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.owner-person-main strong{color:#20364f;font-size:14px}
.owner-person-main>span{color:#6b7f92;font-size:12px}
.relationship-tag{align-self:start;padding:4px 8px;border-radius:20px;background:#eaf2f8;color:#345a78;font-size:11px;font-weight:700}
.owner-vehicles{grid-column:1/-1;display:grid;gap:7px;margin-top:3px}
.owner-vehicle{padding:8px 10px;border-radius:8px;background:#f8fafc;color:#29445e;font-size:13px}
.owner-rfids{display:flex;flex-direction:column;gap:5px;margin-top:6px}
.owner-rfid-item{display:flex;flex-wrap:wrap;gap:4px 10px;color:#34536f;font-size:12px}
.owner-rfid-item small{color:#74879a}
@media(max-width:720px){.owner-search-form{grid-template-columns:1fr}.owner-search-actions{justify-content:flex-start}.owner-result-heading{align-items:flex-start}.owner-person{grid-template-columns:minmax(0,1fr) auto}}

/* SiPENDUDUK 0.4.0 - Smart Import review */
.smart-import-summary{margin:18px 0;padding:14px 16px;border:1px solid #dbe5ee;border-radius:10px;background:#f7fafd}
.smart-import-summary h3,.smart-review-block h3{margin:0 0 8px;color:#294761;font-size:15px}
.smart-import-counts{display:flex;flex-wrap:wrap;gap:10px 22px;color:#526b82;font-size:13px}
.smart-import-counts b{color:#183b59;font-size:17px}
.smart-import-form{display:grid;gap:16px}
.smart-review-block{padding:14px;border:1px solid #e0e8ef;border-radius:10px;background:#fff}
.smart-review-block>p{margin:0 0 10px;color:#687d90;font-size:13px}
.smart-review-choice{display:flex;align-items:flex-start;gap:10px;padding:10px 4px;border-top:1px solid #edf1f5;color:#29445e;font-size:13px;cursor:pointer}
.smart-review-choice input{margin-top:3px;flex:0 0 auto}
.smart-review-choice span{display:flex;flex-direction:column;gap:3px}
.smart-review-choice small{color:#74879a;font-size:12px}
@media(max-width:680px){.smart-import-counts{flex-direction:column;gap:5px}.smart-review-block{padding:11px}}

/* SiPENDUDUK 0.5.0 - RFID status synchronization */
.rfid-sync-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.rfid-sync-table{max-height:560px;overflow:auto}.rfid-sync-table table{min-width:760px}.rfid-sync-table th{position:sticky;top:0;z-index:1}.rfid-active{background:#e6f6ed;color:#187548}.rfid-inactive{background:#fdecec;color:#a52b2b}.rfid-change{color:#9a6411}.rfid-sync-details{margin:14px 0;padding:12px 14px;border:1px solid #e1e8f0;border-radius:9px;background:#fbfcfe}.rfid-sync-details summary{cursor:pointer;font-weight:700;color:#34536e}.rfid-sync-confirm{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}@media(max-width:700px){.rfid-sync-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* User management and module permission controls */
.user-form-extended{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}
.permission-editor{grid-column:1/-1;padding:14px;border:1px solid #dce6ef;border-radius:10px;background:#f8fafc}
.permission-editor[hidden]{display:none}
.permission-editor>strong{display:block}
.permission-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.permission-item{border:1px solid #e0e8f0;border-radius:8px;padding:10px;background:#fff;min-width:0}
.permission-item b{display:block;font-size:12px;margin-bottom:8px;white-space:normal}
.permission-item label{display:inline-flex!important;align-items:center;gap:5px;margin-right:9px;font-size:12px!important;min-width:0!important;flex:none!important}
.permission-item input{width:auto!important}
.user-edit{display:inline-block;vertical-align:middle}
.user-edit summary{list-style:none}
.user-edit summary::-webkit-details-marker{display:none}
.user-edit[open]{display:block;min-width:280px;max-width:520px;padding:10px;border:1px solid #dce6ef;border-radius:9px;background:#f8fafc}
.user-edit-form{display:grid;gap:9px;margin-top:10px;white-space:normal}
.user-edit-form>label{display:grid;gap:4px;font-size:12px;font-weight:700}
.user-edit-form input:not([type=checkbox]),.user-edit-form select{width:100%;padding:8px;border:1px solid #ccd8e4;border-radius:7px;font:inherit}
.user-edit-form .permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.inline-user-action{display:inline-block;margin-left:5px}
@media(max-width:900px){.user-form-extended{grid-template-columns:repeat(2,minmax(0,1fr))}.permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.user-form-extended{grid-template-columns:1fr}.permission-grid{grid-template-columns:1fr}.user-edit[open]{min-width:240px}}


/* SiPENDUDUK 0.5.4 - guarded operational data reset */
.btn-danger{background:#a83232;color:#fff;border:1px solid #922929}
.btn-danger:hover{background:#872626}
.reset-count-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.reset-count-grid>div{display:flex;flex-direction:column;gap:4px;padding:13px;border:1px solid #e1e8f0;border-radius:10px;background:#f8fafc}
.reset-count-grid small{color:#6b7c90;font-size:12px}
.reset-count-grid strong{font-size:22px;font-variant-numeric:tabular-nums}
.reset-warning{border-left:4px solid #c68a2c}
.reset-warning li{margin:6px 0}
.reset-warning p{color:#5e7185}
.reset-danger-text{padding:11px 13px;border-radius:8px;background:#fff0ef;color:#96352e!important;font-weight:700}
.reset-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}
.reset-form label{display:grid;gap:6px;font-size:13px;font-weight:700;color:#425970}
.reset-form input{width:100%;border:1px solid #ccd8e4;border-radius:8px;padding:11px 12px;font:inherit}
@media(max-width:760px){.reset-count-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reset-form{grid-template-columns:1fr}}

/* SiPENDUDUK 0.5.5 - full RFID workbook import */
.master-upload-form,.master-confirm-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.master-upload-form label,.master-confirm-form label{display:grid;gap:6px;min-width:260px;font-size:13px;font-weight:700;color:#425970;flex:1}
.master-upload-form input[type=file],.master-confirm-form input{width:100%;padding:10px;border:1px solid #ccd8e4;border-radius:8px;background:#fff;font:inherit}
.import-sheet-list,.import-result-counts{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}
.import-sheet-list span,.import-result-counts span{padding:7px 10px;border-radius:8px;background:#f1f6fa;color:#425970;font-size:12px}
.import-result-counts b{color:#183b59;font-size:15px}
@media(max-width:600px){.master-upload-form,.master-confirm-form{align-items:stretch;flex-direction:column}.master-upload-form label,.master-confirm-form label{min-width:0}}
