:root {
  --hx-filter-gap: 12px;
}

.hx-filter-fit-row {
  justify-content: flex-start !important;
  justify-items: start !important;
  column-gap: var(--hx-filter-gap) !important;
  row-gap: 10px !important;
}

.hx-admin-v2 .hx-project-filter-bar,
.hx-admin-v2 .log-filter-bar,
.hx-project-selector-controls,
.hx-filter-workflow-grid,
.hx-replacement-filters,
.pa-filters {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 10px 12px !important;
}

.hx-admin-v2 .hx-project-filter-bar,
.hx-admin-v2 .log-filter-bar {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  padding-bottom: 5px;
}

.hx-project-filter-field,
.hx-log-filter-field,
.hx-project-selector-controls > *,
.hx-filter-workflow-grid > *,
.hx-replacement-filters > *,
.pa-filters > * {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
}

.hx-project-filter-field .hx-search-combobox,
.hx-log-filter-field .hx-search-combobox {
  width: auto !important;
  min-width: 0 !important;
}

.hx-filter-fit-row [data-hx-fitted="true"] {
  box-sizing: border-box;
  flex: 0 0 var(--hx-control-fit-width) !important;
  width: var(--hx-control-fit-width) !important;
  min-width: var(--hx-control-fit-width) !important;
  max-width: var(--hx-control-fit-width) !important;
}

.hx-filter-fit-row select,
.hx-filter-fit-row input {
  text-overflow: ellipsis;
}

.hx-provider-account .hx-account-owner-column {
  display: none !important;
}

.hx-provider-account #accountCompanyTypeFilter,
.hx-provider-account #accountCompanyFilter {
  display: none !important;
}

.hx-workbench-company {
  max-width: 360px;
  padding: 8px 13px;
  border: 1px solid rgba(0, 119, 200, .17);
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  color: #174260;
  font-size: 14px;
  font-weight: 650;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hx-workbench-hero-actions {
  align-items: center;
  flex-wrap: wrap;
}

.hx-phone-readonly,
#myAccountMobile[readonly] {
  color: #53657a !important;
  background: #f6f8fb !important;
  cursor: not-allowed;
}

.coordinate-helper-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 16px;
  padding: 11px 12px;
  border: 1px solid #dce9f3;
  border-radius: 10px;
  background: #f7fbfe;
}

.coordinate-helper-row .form-help {
  flex: 1 1 320px;
  margin: 0;
}

.hx-city-scope-input:not([data-city-readonly="true"]) {
  padding-right: 34px !important;
  background-color: #fff !important;
  background-image: linear-gradient(45deg, transparent 50%, #6d8297 50%), linear-gradient(135deg, #6d8297 50%, transparent 50%) !important;
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50% !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  cursor: pointer;
}

.hx-city-picker-popover {
  position: fixed;
  z-index: 310000;
  overflow: hidden;
  border: 1px solid #cfdfeb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 46, 73, .18);
  color: #19364e;
}

.hx-city-picker-head,
.hx-city-picker-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
}

.hx-city-picker-head {
  justify-content: space-between;
  border-bottom: 1px solid #e6eef4;
}

.hx-city-picker-actions {
  justify-content: flex-end;
  border-top: 1px solid #e6eef4;
  background: #f9fbfd;
}

.hx-city-picker-count {
  margin-right: auto;
  color: #698096;
  font-size: 13px;
}

.hx-city-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: 245px;
  overflow-y: auto;
  padding: 8px 12px 13px;
}

.hx-city-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}

.hx-city-option:hover {
  border-color: #c8e5f8;
  background: #f2f9fe;
  color: #0067aa;
}

.hx-city-option input,
.hx-check-row input {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  accent-color: #0077c8;
}

.hx-city-option-all {
  margin: 10px 12px 0;
  border-color: #d9e8f2;
  background: #f7fbfe;
  font-weight: 650;
}

.hx-icon-close {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #526a80;
  font-size: 22px;
  cursor: pointer;
}

.hx-icon-close:hover {
  background: #edf5fa;
  color: #0067aa;
}

.hx-provider-settings-form {
  padding: 18px 20px 0;
}

.hx-provider-settings-form .hx-form-section {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #dce8f1;
  border-radius: 12px;
  background: #fbfdff;
}

.hx-provider-settings-form .hx-form-section h3 {
  margin: 0 0 14px;
  color: #173a54;
  font-size: 15px;
}

.hx-check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  color: #294960;
  cursor: pointer;
}

.hx-muted {
  color: #7a8c9e;
  font-size: 12px;
}

.hx-danger-link {
  border-color: #f1caca !important;
  color: #b42318 !important;
  background: #fff !important;
}

.hx-danger-link:hover {
  border-color: #d92d20 !important;
  color: #fff !important;
  background: #d92d20 !important;
}

#auditTable {
  min-width: 1320px;
}

#auditTable td,
#auditTable th {
  vertical-align: middle;
}

#auditTable .account-inline-input,
#auditTable select {
  min-width: 118px;
}

#auditTable td:nth-last-child(1) {
  min-width: 310px;
}

#accountLimitNote {
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .hx-city-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
