@media screen {
  body .erp-table-search-status {
    margin: 6px 0;
    color: #24536c;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  body .erp-table-search-status[hidden] { display: none !important; }
  /* The clear action always owns its space, including an empty query. */
  body .wood-processing-search-clear[hidden],
  body .user-material-search-clear[hidden] {
    display: inline-grid !important;
    visibility: hidden;
    pointer-events: none;
  }
  body :is(.wood-processing-search, .user-material-search) input[type="search"] {
    min-width: 0;
  }
  body .wood-processing-row-count {
    box-sizing: border-box;
    width: 16ch;
    min-width: 16ch;
    flex: 0 0 16ch;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  body .erp-table-search-clear[hidden] {
    display: inline-grid !important;
    visibility: hidden;
    pointer-events: none;
  }
  body .erp-table-search-submit,
  body .erp-table-search-clear {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 4px 9px;
    border: 1px solid #91a7b8;
    border-radius: 5px;
    background: #edf5fa;
    color: #173b52;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
  }
  body .erp-table-search-clear { width: 28px; min-width: 28px; padding: 0; }
  body .erp-table-search-submit:hover,
  body .erp-table-search-submit:focus-visible { background: #173b52; color: #fff; }
  body [data-erp-table-search] { min-width: 0; }
  body .iron-color-standard-controls .iron-color-standard-search:has([data-erp-table-search]) {
    grid-template-columns: minmax(0, 1fr) 28px auto;
    align-items: center;
    gap: 5px;
  }
  body .iron-color-standard-search:has([data-erp-table-search]) > span { grid-column: 1 / -1; }
  body .management-search-controls { display: flex; align-items: center; gap: 5px; }
  body .management-filters .management-search-controls input { width: clamp(165px, 19vw, 300px); flex: 1 1 auto; }
  body .erp-search-highlight {
    background-color: #fff0a6 !important;
    color: #634700 !important;
    box-shadow: inset 0 0 0 1px #e0bd50 !important;
  }
  [data-erp-search-stable] { overscroll-behavior: contain; }
}
