/* HVP Suburb Profile
   Page-specific CSS extracted from the current working HTML.
   Shared HVP CSS remains in HVP-static.css and potential.css.
*/

.identity-three-id-row{
      display:flex;
      align-items:flex-end;
      justify-content:space-between;
      width:100%;
      gap:12px;
    }
    .identity-three-id-row .quick-entry-id-field{flex:0 0 auto;}
    .quick-entry-id-field label{font-size:.78em;line-height:1.05;display:flex;flex-direction:column;}
    .identity-right-group{margin-left:auto;display:flex;gap:12px;align-items:flex-end;}

    /* Project detail row: Project Address | Project Name | Report Date. */
    #suburb_profile_form .suburb-profile-location-grid {
      display:grid;
      grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(170px,.8fr);
      gap:8px;
      align-items:end;
      width:100%;
    }
    #suburb_profile_form .suburb-profile-location-grid > .field{min-width:0;width:100%;}
    #suburb_profile_form .suburb-profile-location-grid input{width:100%;max-width:100%;box-sizing:border-box;}
    #suburb_profile_form .suburb-profile-divider {display:block; background:#5CB8FF; border:0;}
    /* Missing upper divider: directly between identity IDs and address row. */
    #suburb_profile_form > .identity-three-id-row + .suburb-profile-divider{
      width:100%;height:2px;min-height:2px;margin:10px 0 14px;
    }
    /* Lower divider: between address row and population section. */
    #suburb_profile_form > .suburb-profile-location-grid + .suburb-profile-divider{
      width:75%;height:4px;min-height:4px;margin:16px auto 12px;
    }

    .profile-row{
      display:grid;
      gap:12px;
      width:100%;
      align-items:end;
      margin-top:12px;
    }
    .profile-row-five{grid-template-columns:repeat(5,minmax(0,1fr));}
    .profile-row-three{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1fr) minmax(0,1fr);}
    .profile-row .field{min-width:0;}
    .profile-row input{width:100%;max-width:100%;box-sizing:border-box;}

    /* Fix: position currency symbols relative to the input box, not the whole field. */
    .money-field .money-input-wrap{position:relative;display:block;width:100%;}
    .money-field .money-input-wrap .dollar{
      position:absolute;left:10px;top:50%;bottom:auto;
      transform:translateY(-50%);z-index:2;
      font-weight:600;line-height:1;pointer-events:none;
    }
    .money-field .money-input-wrap input{padding-left:28px!important;}


    .context-field input[readonly]{
      cursor:default;
    }

    .suburb-profile-actions{
      display:flex;
      justify-content:flex-end;
      align-items:center;
      margin-top:18px;
    }

    @media(max-width:900px){
      .profile-row-five,.profile-row-three{grid-template-columns:repeat(2,minmax(0,1fr));}
      .identity-three-id-row{flex-wrap:wrap;}
    }
    @media(max-width:620px){
      .identity-three-id-row,.identity-right-group{width:100%;min-width:0;}
      .identity-right-group{margin-left:0;display:grid;grid-template-columns:1fr;}
      .profile-row-five,.profile-row-three{grid-template-columns:1fr;}
      .suburb-profile-actions button{width:100%;}
    }


/* Preserve the divider before Notes. */
#suburb_profile_form > .suburb-profile-bottom-divider {
  display:block; width:100%; height:2px; background:#5CB8FF;
  margin:16px 0 12px; border:0;
}
/* The three identity boxes should be compact, never stretch. */
#suburb_profile_form .identity-three-id-row .quick-entry-id-field,
#suburb_profile_form .identity-right-group .identity-field {
  flex:0 0 120px; width:120px; min-width:0; max-width:120px;
}
#suburb_profile_form .identity-three-id-row .identity-field input {
  width:100%; min-width:0; max-width:100%; box-sizing:border-box;
}
#suburb_profile_form .identity-right-group { margin-left:auto; display:flex; gap:12px; }
/* Remove numeric spinner arrows without changing field types. */
#suburb_profile_form input[type="number"]::-webkit-inner-spin-button,
#suburb_profile_form input[type="number"]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
#suburb_profile_form input[type="number"] { -moz-appearance:textfield; appearance:textfield; }
@media(max-width:620px) {
  #suburb_profile_form .identity-three-id-row .quick-entry-id-field,
  #suburb_profile_form .identity-right-group .identity-field { flex:0 1 120px; }
  #suburb_profile_form .identity-right-group { width:auto; display:flex; }
}

/* Responsive only for this page's approved address row and compact IDs. */
@media(max-width:900px){
  #suburb_profile_form .suburb-profile-location-grid{
    grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(145px,.8fr);
  }
}
@media(max-width:620px){
  #suburb_profile_form .suburb-profile-location-grid{grid-template-columns:1fr;}
  #suburb_profile_form .identity-three-id-row .quick-entry-id-field,
  #suburb_profile_form .identity-right-group .identity-field {
    width:120px!important;min-width:0!important;max-width:120px!important;
  }
  #suburb_profile_form .identity-three-id-row .identity-field input {
    width:100%!important;min-width:0!important;max-width:120px!important;
  }
}

/* ID fields: labels above the inputs so all three 120px input boxes remain usable. */
#suburb_profile_form .identity-three-id-row .identity-field {
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:4px!important;
  justify-content:flex-end!important;
}
#suburb_profile_form .identity-three-id-row .identity-field label {
  width:100%;min-width:0;max-width:120px;
}
#suburb_profile_form .identity-three-id-row .identity-field input {
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:120px!important;
  box-sizing:border-box!important;
}

/* Suburb Profile IDs: restore labels beside their 120px boxes, not above. */
#suburb_profile_form .identity-three-id-row {
  display:flex!important; align-items:center!important;
  justify-content:space-between!important; flex-wrap:wrap!important;
  gap:10px 18px!important;
}
#suburb_profile_form .identity-right-group {
  display:flex!important; align-items:center!important;
  margin-left:auto!important; width:auto!important;
  flex-wrap:wrap!important; gap:10px 18px!important;
}
#suburb_profile_form .identity-three-id-row .quick-entry-id-field,
#suburb_profile_form .identity-right-group .identity-field {
  display:flex!important; flex-direction:row!important;
  align-items:center!important; justify-content:flex-start!important;
  width:auto!important; min-width:0!important; max-width:none!important;
  flex:0 0 auto!important; gap:7px!important;
}
#suburb_profile_form .identity-three-id-row .identity-field label {
  display:block!important; width:auto!important; max-width:none!important;
  white-space:nowrap!important; flex:0 0 auto!important;
}
#suburb_profile_form .identity-three-id-row .identity-field input {
  width:120px!important; min-width:0!important; max-width:120px!important;
  flex:0 0 120px!important;
}
@media (max-width:620px) {
  #suburb_profile_form .identity-three-id-row { align-items:stretch!important; }
  #suburb_profile_form .identity-right-group {
    margin-left:0!important; width:100%!important;
    justify-content:flex-start!important;
  }
}
