/* Shared column sorting and filtering for read-only HMS data tables. */
.hms-table-tools thead th{
  vertical-align:bottom;
}
.hms-table-tools .hms-table-sort-button{
  appearance:none;
  width:100%;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:inherit;
  line-height:1.2;
  text-align:inherit;
  cursor:pointer;
}
.hms-table-tools .hms-table-sort-button:hover,
.hms-table-tools .hms-table-sort-button:focus-visible{
  color:#8a551b;
}
.hms-table-tools .hms-table-sort-indicator{
  flex:0 0 auto;
  opacity:.55;
  font-size:10px;
  line-height:1;
}
.hms-table-tools th[aria-sort="ascending"] .hms-table-sort-indicator,
.hms-table-tools th[aria-sort="descending"] .hms-table-sort-indicator{
  opacity:1;
  color:#8a551b;
}
.hms-table-tools .hms-table-filter-wrap{
  display:block;
  width:100%;
  min-width:0;
  margin-top:4px;
}
.hms-table-tools .hms-table-column-filter{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  height:24px;
  margin:0;
  padding:2px 6px;
  border:1px solid rgba(163,124,69,.34);
  border-radius:7px;
  background:rgba(255,255,255,.92);
  color:#243047;
  font:inherit;
  font-size:10.5px;
  font-weight:600;
  line-height:1;
  box-shadow:none;
}
.hms-table-tools .hms-table-column-filter::placeholder{
  color:#8a8f98;
  opacity:1;
}
.hms-table-tools .hms-table-column-filter:focus{
  outline:2px solid rgba(190,126,27,.2);
  border-color:#bd7e1b;
}
.hms-table-tools .hms-table-column-filter::-webkit-search-cancel-button{
  cursor:pointer;
}
.hms-table-filter-hidden{
  display:none !important;
}
.hms-table-tools .hms-table-no-results > td,
.hms-table-tools .hms-table-no-results > th{
  padding:10px 12px !important;
  text-align:center !important;
  color:#6b7280 !important;
  font-weight:700 !important;
  background:#fffdf8 !important;
}
.hms-table-tools.hms-table-tools-protected .hms-table-filter-wrap,
.hms-table-tools.hms-table-tools-protected .hms-table-sort-indicator{
  display:none;
}
@media (max-width:900px){
  .hms-table-tools .hms-table-column-filter{
    height:23px;
    padding-left:5px;
    padding-right:5px;
    font-size:10px;
  }
}
@media print{
  .hms-table-tools .hms-table-filter-wrap,
  .hms-table-tools .hms-table-sort-indicator{
    display:none !important;
  }
  .hms-table-tools .hms-table-sort-button{
    display:block;
    cursor:default;
  }
}

/* Keep column filters compact even under the global form-control theme. */
body.hms-executive-ui .shell table.hms-table-tools .hms-table-filter-wrap input.hms-table-column-filter.hms-table-column-filter[type="search"]:not([data-hms-static]){
  height:24px !important;
  min-height:24px !important;
  padding:2px 6px !important;
  border-radius:7px !important;
  font-size:10.5px !important;
  line-height:1 !important;
}
