/* DHC_V113_PROPERTY_CHECK */
:root{--navy:#0b2742;--gold:#b28a3e;--bg:#f3f6f7;--line:#dfe6ea;--muted:#6f808c;--ok:#26734d;--danger:#a93c36}
*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:var(--bg);color:#173247}.topbar{position:sticky;top:0;z-index:20;background:#081f34;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:12px 18px;box-shadow:0 4px 18px #0002}.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}.brand>span{display:grid}.brand strong{font-family:Georgia,serif}.brand small{font-size:10px;color:#d7bd82;letter-spacing:.1em}.top-actions{display:flex;gap:12px;align-items:center;font-size:12px}.top-actions a,.top-actions button{color:#fff;background:transparent;border:0;text-decoration:none;cursor:pointer}.shell{width:min(1100px,calc(100% - 24px));margin:20px auto 60px}.hero,.workspace-head{display:flex;gap:18px;align-items:center;justify-content:space-between;margin:18px 0}.hero small,.panel-head small,.dialog-head small,.workspace-head small{color:var(--gold);font-size:10px;letter-spacing:.12em;font-weight:bold}.hero h1,.panel h2,.workspace-head h2,.dialog-head h2{font-family:Georgia,serif;color:var(--navy);margin:4px 0}.hero p,.workspace-head p{color:var(--muted);margin:5px 0}.panel,.progress-card,.login-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;margin:14px 0}.panel-head{display:flex;justify-content:space-between;align-items:center}.toolbar{display:flex;gap:8px;margin:12px 0}.toolbar input{flex:1}.primary,.panel button,.toolbar button,.dialog-card button{border:0;border-radius:9px;padding:11px 14px;font-weight:bold;cursor:pointer}.primary{background:var(--navy);color:#fff}.ghost{background:#eef3f5;color:var(--navy)}.review{background:#d7e8f2;color:#174b67}.publish{background:#e8dcbf;color:#5f481b}.status-pill{border-radius:99px;padding:7px 10px;background:#e9eef1;font-size:11px;font-weight:bold}.status-pill.IN_PROGRESS{background:#fff1d7;color:#805813}.status-pill.COMPLETED{background:#e1f0e8;color:#246344}.status-pill.REVIEW{background:#dfeaf5;color:#265678}.status-pill.PUBLISHED{background:#eee4ca;color:#6e5421}.check-list{display:grid;gap:9px}.check-row{display:grid;grid-template-columns:1.2fr 1fr .8fr .8fr auto;gap:10px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:11px;background:#fff;cursor:pointer}.check-row:hover{border-color:#b7c7d1}.check-row small{color:var(--muted)}.progress-card{display:grid;gap:10px}.progress-card>div:first-child{display:flex;justify-content:space-between}.progress{height:9px;background:#e8edf0;border-radius:99px;overflow:hidden}.progress i{display:block;height:100%;width:0;background:var(--navy);transition:width .2s}.section-card{background:#fff;border:1px solid var(--line);border-radius:15px;margin:12px 0;overflow:hidden}.section-card>summary{cursor:pointer;padding:15px 18px;font-family:Georgia,serif;font-weight:bold;color:var(--navy);background:#fbfcfc}.section-body{padding:4px 14px 14px}.item-card{border-top:1px solid #edf1f3;padding:15px 4px}.item-title{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.item-title strong{font-size:14px}.state-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:11px 0}.state-buttons button{padding:10px 6px;border:1px solid var(--line);border-radius:9px;background:#f6f8f9;font-size:11px;font-weight:bold}.state-buttons button.active[data-state="OK"]{background:#dff1e7;border-color:#9dceb3;color:#1f6945}.state-buttons button.active[data-state="ISSUE"]{background:#fae4df;border-color:#e5aaa0;color:#96362f}.state-buttons button.active[data-state="NOT_CHECKED"],.state-buttons button.active[data-state="NA"]{background:#e9eef1;border-color:#c9d3d9}.issue-fields{display:grid;grid-template-columns:180px 1fr;gap:8px;margin:8px 0}.item-card select,.item-card textarea,.summary-label textarea,.dialog-card input,.toolbar input,.login-card input{width:100%;border:1px solid #cbd5da;border-radius:9px;padding:10px;font:inherit}.media-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}.media-label{display:inline-flex;align-items:center;gap:6px;padding:9px 11px;border-radius:9px;background:#edf2f4;font-size:12px;font-weight:bold;cursor:pointer}.media-label input{display:none}.media-grid{display:flex;gap:8px;overflow:auto;margin-top:10px;padding-bottom:4px}.media-card{position:relative;flex:0 0 130px;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#eef2f4}.media-card img,.media-card video{display:block;width:130px;height:100px;object-fit:cover}.media-card button{position:absolute;right:4px;top:4px;border:0;border-radius:50%;width:27px;height:27px;background:#000a;color:#fff;cursor:pointer}.summary-label{display:grid;gap:7px;font-weight:bold}.workflow-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.hint{font-size:12px;color:var(--muted);line-height:1.45}.message-box{margin-top:12px;padding:11px;border-radius:9px;background:#fff3dd;color:#775218}.message-box.ok{background:#e5f3eb;color:#226342}.error{color:#a43e38;font-size:12px;min-height:18px;margin-top:8px}dialog{width:min(760px,calc(100% - 20px));border:0;border-radius:16px;padding:0;box-shadow:0 30px 100px #0005}dialog::backdrop{background:#071b2f99}.dialog-card{padding:20px}.dialog-head{display:flex;justify-content:space-between}.dialog-head .x{font-size:26px;background:transparent}.dialog-card label{display:grid;gap:6px;margin:12px 0;font-size:12px;font-weight:bold}.property-results{display:grid;gap:7px;max-height:260px;overflow:auto;margin:10px 0}.property-option{border:1px solid var(--line);background:#fff;text-align:left;padding:10px;border-radius:9px;cursor:pointer}.property-option.selected{border-color:var(--gold);background:#fbf7ed}.selected-property{padding:10px;border-radius:9px;background:#eef3f5;font-size:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.login-card{width:min(430px,100%);margin:60px auto}.login-card label{display:grid;gap:6px;margin:12px 0;font-size:12px;font-weight:bold}
@media(max-width:720px){.shell{width:min(100% - 16px,1100px);margin-top:10px}.topbar{padding:10px 12px}.top-actions #who{display:none}.hero{align-items:flex-start;flex-direction:column}.hero .primary{width:100%}.check-row{grid-template-columns:1fr auto}.check-row>div:nth-child(2),.check-row>div:nth-child(3){display:none}.workspace-head{align-items:flex-start;display:grid;grid-template-columns:auto 1fr}.workspace-head .status-pill{grid-column:2}.issue-fields{grid-template-columns:1fr}.state-buttons{grid-template-columns:1fr 1fr}.panel{padding:14px}.section-body{padding:2px 10px 12px}.item-card{padding:13px 2px}.media-card,.media-card img,.media-card video{width:112px}.media-card{flex-basis:112px}.media-card img,.media-card video{height:90px}}

/* DHC_V1141_OBJECT_IDENTITY_GALLERY */
.property-option{display:grid;grid-template-columns:72px 1fr;gap:10px;align-items:center}.property-option .property-thumb{width:72px;height:54px;border-radius:8px;background:#e9eef1;overflow:hidden;display:grid;place-items:center;color:#8a9aa4}.property-option .property-thumb img{width:100%;height:100%;object-fit:cover;display:block}.property-option .property-copy{text-align:left}
.selected-property.with-photo{display:grid;grid-template-columns:86px 1fr;gap:10px;align-items:center}.selected-property img{width:86px;height:64px;object-fit:cover;border-radius:8px}
.staff-identity{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr);gap:16px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:15px;margin:12px 0}.staff-identity-main{min-height:210px;border-radius:12px;overflow:hidden;background:#e9eef1;display:grid;place-items:center}.staff-identity-main img{width:100%;height:100%;min-height:210px;max-height:320px;object-fit:cover;display:block}.identity-placeholder{font-size:52px;color:#9aa9b2}.staff-identity-copy small{color:var(--gold);font-size:10px;letter-spacing:.12em;font-weight:bold}.staff-identity-copy h3{font-family:Georgia,serif;color:var(--navy);margin:5px 0}.staff-identity-copy p{color:var(--muted);font-size:12px;line-height:1.45}.staff-identity-thumbs{display:flex;gap:7px;overflow:auto;padding-top:5px}.staff-identity-thumb{flex:0 0 104px;height:78px;border:2px solid transparent;border-radius:8px;overflow:hidden;padding:0;background:#edf2f4;cursor:pointer;position:relative}.staff-identity-thumb.active{border-color:var(--gold)}.staff-identity-thumb img{width:100%;height:100%;object-fit:cover;display:block}.staff-identity-thumb span{position:absolute;left:4px;bottom:4px;background:#071c2fbb;color:#fff;font-size:8px;padding:3px 4px;border-radius:4px}
@media(max-width:720px){.property-option{grid-template-columns:64px 1fr}.property-option .property-thumb{width:64px;height:50px}.staff-identity{grid-template-columns:1fr;padding:11px}.staff-identity-main,.staff-identity-main img{min-height:180px}.staff-identity-thumb{flex-basis:92px;height:70px}}

/* DHC_V1142_IDENTITY_UPLOAD */
[hidden]{display:none!important}
.admin-identity-upload{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(170px,1fr) auto;gap:8px;align-items:center;margin:12px 0}
.admin-identity-upload select{border:1px solid #cbd5da;border-radius:9px;padding:10px;background:#fff;font:inherit}
.admin-identity-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px;max-height:430px;overflow:auto}
.admin-identity-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.admin-identity-card img{display:block;width:100%;height:130px;object-fit:cover;background:#edf2f4}
.admin-identity-card-body{padding:8px;display:grid;gap:7px}
.admin-identity-card-body select{width:100%;border:1px solid #cbd5da;border-radius:8px;padding:8px;background:#fff}
.admin-identity-actions{display:flex;gap:6px;flex-wrap:wrap}.admin-identity-actions button{border:0;border-radius:7px;padding:7px 8px;font-size:10px;font-weight:bold;cursor:pointer}.admin-main-btn{background:#e9ddbd;color:#5e4617}.admin-delete-btn{background:#fae7e3;color:#963c35}
@media(max-width:720px){.admin-identity-upload{grid-template-columns:1fr}.admin-identity-list{grid-template-columns:1fr 1fr}.admin-identity-card img{height:105px}}
/* DHC_V11421_MOBILE_GALLERY_FIX
   Keep staff reference galleries and manager cards inside narrow phone viewports. */
.property-option,
.property-copy,
.selected-property,
.staff-identity,
.staff-identity-main,
.staff-identity-copy,
.staff-identity-thumbs,
.admin-identity-upload,
.admin-identity-list,
.admin-identity-card,
.admin-identity-card-body{
  min-width:0;
  max-width:100%;
}
.property-copy{overflow-wrap:anywhere}
.selected-property{overflow:hidden}
.staff-identity{overflow:hidden}
.staff-identity-main{width:100%;max-width:100%}
.staff-identity-main img{display:block;width:100%;max-width:100%;height:auto}
.staff-identity-copy{overflow:hidden}
.staff-identity-thumbs{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
.admin-identity-upload>*,
.admin-identity-card-body>*{min-width:0;max-width:100%}
.admin-identity-card img{max-width:100%}

@media(max-width:720px){
  .shell{max-width:100%;overflow-x:hidden}
  .staff-identity{
    width:100%;
    max-width:100%;
    grid-template-columns:minmax(0,1fr);
  }
  .staff-identity-main{
    width:100%;
    max-width:100%;
    min-height:0;
    aspect-ratio:4/3;
  }
  .staff-identity-main img{
    width:100%;
    max-width:100%;
    height:100%;
    min-height:0;
    max-height:none;
    object-fit:cover;
  }
  .staff-identity-thumbs{padding-bottom:4px}
  .staff-identity-thumb{
    flex:0 0 88px;
    width:88px;
    min-width:88px;
    max-width:88px;
    height:66px;
  }
  .admin-identity-upload{
    width:100%;
    max-width:100%;
    grid-template-columns:minmax(0,1fr);
  }
  .admin-identity-upload select,
  .admin-identity-upload .media-label,
  .admin-identity-upload button{width:100%;max-width:100%}
  .admin-identity-list{
    width:100%;
    max-width:100%;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  .admin-identity-card{width:100%;max-width:100%}
  .admin-identity-card img{width:100%;max-width:100%;height:105px}
  .admin-identity-card-body select{width:100%;max-width:100%;min-width:0}
}
@media(max-width:430px){
  .admin-identity-list{grid-template-columns:1fr}
  .admin-identity-card img{height:145px}
}

/* DHC_V115_CHECK_ADMIN_MANAGEMENT */
.panel-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.archive-upload-btn,.backup-btn,.danger-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;padding:10px 12px;font-weight:bold;cursor:pointer}
.archive-upload-btn{background:#edf2f4;color:var(--navy)}.archive-upload-btn input{display:none}
.backup-btn{background:#e8dcbf;color:#5f481b}.danger-btn{background:#fae4df;color:#96362f}
.check-admin-tools{border-left:4px solid #d8bd7f}.check-admin-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.audit-actor{font-size:10px;background:#eef3f5;color:#60717d;border-radius:99px;padding:6px 9px}
#historyMsg{margin:10px 0}.upload-progress{display:block;height:7px;background:#dfe7eb;border-radius:99px;overflow:hidden;margin-top:8px}.upload-progress i{display:block;height:100%;background:var(--navy);width:0}
@media(max-width:720px){.panel-actions{width:100%;justify-content:stretch}.panel-actions>*{flex:1}.check-admin-actions{display:grid;grid-template-columns:1fr}.check-admin-actions button{width:100%}}

/* DHC_V1151_CHECK_EDIT */
.edit-check-btn,.save-correction-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;padding:10px 12px;font-weight:bold;cursor:pointer}
.edit-check-btn{background:#dbe8ee;color:#173f52}.save-correction-btn{background:#dcecdf;color:#27603a}
.correction-notice{margin-top:12px;padding:11px 12px;border-radius:9px;border:1px solid #d7c27f;background:#fff8df;color:#5c4c1f;font-size:12px}
.check-admin-tools.correction-active{box-shadow:0 0 0 2px rgba(216,189,127,.32);background:#fffdf6}
.item-card.correction-editing{outline:1px dashed #d1b66f;outline-offset:2px}
@media(max-width:720px){.edit-check-btn,.save-correction-btn{width:100%}}

/* DHC_V116_DAMAGE_CASES */
.damage-case-action{margin-top:8px;display:flex;justify-content:flex-end}.damage-case-btn{border:0;border-radius:8px;padding:8px 10px;background:#f3e5bd;color:#684d12;font-size:10px;font-weight:bold;cursor:pointer}
@media(max-width:720px){.damage-case-action{justify-content:stretch}.damage-case-btn{width:100%}}

/* DHC_V117_CONTRACT_BILLING */
.check-billing-card{border-left:4px solid #87a9b8}.check-billing-body{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.check-billing-meta{display:grid;gap:3px}.check-billing-meta strong{font-size:14px}.invoice-download-btn{border:0;border-radius:8px;padding:9px 11px;background:#dfecef;color:#173f52;font-weight:bold;cursor:pointer}@media(max-width:720px){.check-billing-body{align-items:stretch;flex-direction:column}.invoice-download-btn{width:100%}}
