/* ==========================================================
   DH Contractors — Address Autocomplete
   Load AFTER report.css
   ========================================================== */

.ac-wrap{
  position:relative;
  display:block;
}

/* Spinner while a lookup is running */
.ac-wrap.is-loading::after{
  content:'';
  position:absolute;
  right:14px;
  top:50%;
  width:15px;height:15px;
  margin-top:-7px;
  border:2px solid #cbd5e1;
  border-top-color:#1d4ed8;
  border-radius:50%;
  animation:ac-spin .6s linear infinite;
  pointer-events:none;
}
@keyframes ac-spin{to{transform:rotate(360deg)}}

/* Dropdown panel */
.ac-list{
  position:absolute;
  top:calc(100% + 4px);
  left:0;right:0;
  z-index:50;
  margin:0;padding:4px;
  list-style:none;
  background:#fff;
  border:1px solid #d7dee8;
  border-radius:10px;
  box-shadow:0 12px 28px rgba(15,23,42,.16);
  max-height:270px;
  overflow-y:auto;
}
.ac-list[hidden]{display:none}

.ac-item{
  padding:10px 12px;
  font-size:14.5px;
  line-height:1.45;
  color:#0f172a;
  border-radius:7px;
  cursor:pointer;
  transition:background .12s;
}
.ac-item:hover,
.ac-item.is-active{
  background:#eef2ff;
  color:#1e3a8a;
}

@media(prefers-reduced-motion:reduce){
  .ac-wrap.is-loading::after{animation-duration:1.6s}
  .ac-item{transition:none}
}