/* Unified filter layout: field name + control on one line. */
.filter-grid label,
.statistics-filters label,
.attendance-filter-fields > label,
.inventory-filter-grid label,
.inventory-date-filter label,
.fixed-assets-filter label,
.list-query-grid > label,
.catalog-bulk-filters > label,
.catalog-bulk-condition > label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
}
.filter-grid label > span:first-child,
.statistics-filters label > span:first-child,
.attendance-filter-fields > label > span:first-child,
.inventory-filter-grid label > span:first-child,
.inventory-date-filter label > span:first-child,
.fixed-assets-filter label > span:first-child,
.list-query-grid > label > span:first-child,
.catalog-bulk-filters > label > span:first-child,
.catalog-bulk-condition > label > span:first-child {
  flex: none !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}
.filter-grid label > input,
.filter-grid label > select,
.statistics-filters label > input,
.statistics-filters label > select,
.attendance-filter-fields > label > input,
.attendance-filter-fields > label > select,
.inventory-filter-grid label > input,
.inventory-filter-grid label > select,
.inventory-date-filter label > input,
.inventory-date-filter label > select,
.fixed-assets-filter label > input,
.fixed-assets-filter label > select,
.list-query-grid > label > input,
.list-query-grid > label > select,
.catalog-bulk-filters > label > input,
.catalog-bulk-filters > label > select,
.catalog-bulk-condition > label > input,
.catalog-bulk-condition > label > select {
  width: auto !important;
  flex: 1 1 90px !important;
  min-width: 0 !important;
}
.filter-grid label > .range,
.filter-grid label > .store-picker-row,
.filter-grid label > .store-picker-field,
.filter-grid label > .store-combobox,
.statistics-filters label > .store-picker-row,
.statistics-filters label > .store-picker-field,
.statistics-filters label > .store-combobox,
.attendance-filter-fields > label > .store-picker-row,
.attendance-filter-fields > label > .store-picker-field,
.attendance-filter-fields > label > .store-combobox,
.inventory-filter-grid label > .store-picker-row,
.inventory-filter-grid label > .store-picker-field,
.inventory-filter-grid label > .store-combobox,
.fixed-assets-filter label > .store-picker-row,
.fixed-assets-filter label > .store-picker-field,
.fixed-assets-filter label > .store-combobox,
.list-query-grid > label > .store-picker-row,
.list-query-grid > label > .store-picker-field,
.list-query-grid > label > .store-combobox {
  flex: 1 1 140px !important;
  min-width: 0 !important;
}
.filter-grid label > textarea,
.statistics-filters label > textarea,
.list-query-grid > label > textarea,
.catalog-bulk-filters > label > textarea {
  flex: 1 1 220px !important;
  min-width: 0 !important;
}
@media(max-width:640px) {
  .filter-grid label,
  .statistics-filters label,
  .attendance-filter-fields > label,
  .inventory-filter-grid label,
  .inventory-date-filter label,
  .fixed-assets-filter label,
  .list-query-grid > label,
  .catalog-bulk-filters > label,
  .catalog-bulk-condition > label {
    flex-wrap: wrap !important;
  }
  .filter-grid label > input,
  .filter-grid label > select,
  .statistics-filters label > input,
  .statistics-filters label > select,
  .attendance-filter-fields > label > input,
  .attendance-filter-fields > label > select,
  .inventory-filter-grid label > input,
  .inventory-filter-grid label > select,
  .inventory-date-filter label > input,
  .inventory-date-filter label > select,
  .fixed-assets-filter label > input,
  .fixed-assets-filter label > select,
  .list-query-grid > label > input,
  .list-query-grid > label > select,
  .catalog-bulk-filters > label > input,
  .catalog-bulk-filters > label > select {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}.unified-date-range{display:flex;align-items:center;gap:7px;flex:1 1 320px;min-width:0;grid-column:span 2;flex-wrap:nowrap}
.unified-date-range>span{flex:none;white-space:nowrap;color:#536780;font-size:12px}
.unified-date-range>em{flex:none;font-style:normal;color:#71829c}
.unified-date-range>input[type="date"]{flex:1 1 120px;width:auto!important;min-width:0}
.unified-date-range>select{flex:1 1 140px;width:auto!important;min-width:0}
@media(max-width:640px){.unified-date-range{grid-column:1/-1;flex-wrap:wrap}.unified-date-range>input[type="date"]{flex:1 1 120px}.unified-date-range>select{flex:1 1 100%}}

#attendance-filter .attendance-filter-fields > label{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;gap:8px!important;min-width:0!important}
#attendance-filter .attendance-filter-fields > label > span:first-child{flex:none!important;white-space:nowrap!important;min-width:0!important}
#attendance-filter .attendance-filter-fields > label > select,
#attendance-filter .attendance-filter-fields > label > input{width:auto!important;flex:1 1 110px!important;min-width:0!important}
@media(max-width:640px){#attendance-filter .attendance-filter-fields > label{flex-wrap:wrap!important}#attendance-filter .attendance-filter-fields > label > select,#attendance-filter .attendance-filter-fields > label > input{flex:1 1 100%!important;width:100%!important}}

/* Keep native date values and picker icons fully visible in every filter area. */
.filter-grid input[type="date"],
.statistics-filters input[type="date"],
.attendance-filter-fields input[type="date"],
.inventory-filter-grid input[type="date"],
.inventory-date-filter input[type="date"],
.fixed-assets-filter input[type="date"],
.list-query-grid input[type="date"],
.catalog-bulk-filters input[type="date"],
.catalog-bulk-condition input[type="date"],
.finance-filter input[type="date"]{
  min-width:150px!important;
  width:auto!important;
  font-variant-numeric:tabular-nums;
}
.unified-date-range{flex-wrap:wrap!important}
.unified-date-range>input[type="date"]{flex:0 1 150px!important;width:150px!important;min-width:150px!important}
.finance-date-inputs{flex-wrap:wrap!important}
.finance-date-inputs>input[type="date"]{flex:0 1 150px!important;width:150px!important;min-width:150px!important}
.filter-grid .date-range,.shipping-filter-module .date-range{flex-wrap:wrap!important}
.filter-grid .date-range input[type="date"],.shipping-filter-module .date-range input[type="date"]{min-width:150px!important;width:auto!important}
@media(max-width:480px){
 .filter-grid input[type="date"],.statistics-filters input[type="date"],.attendance-filter-fields input[type="date"],.inventory-filter-grid input[type="date"],.inventory-date-filter input[type="date"],.fixed-assets-filter input[type="date"],.list-query-grid input[type="date"],.catalog-bulk-filters input[type="date"],.finance-filter input[type="date"],.unified-date-range>input[type="date"],.finance-date-inputs>input[type="date"]{min-width:138px!important;width:138px!important}
}

/* Attendance: keep the whole date range on one line by shortening the store picker. */
#attendance-filter .attendance-filter-fields .store-picker-row{flex:1 1 260px!important;min-width:240px!important;max-width:320px!important}
#attendance-filter .unified-date-range{flex:1 1 540px!important;min-width:520px!important;flex-wrap:nowrap!important}
#attendance-filter .unified-date-range>select{flex:0 1 150px!important;width:150px!important;min-width:140px!important}
#attendance-filter .unified-date-range>input[type="date"]{flex:0 1 150px!important;width:150px!important;min-width:145px!important}
@media(max-width:900px){
 #attendance-filter .attendance-filter-fields .store-picker-row{flex:1 1 100%!important;min-width:0!important;max-width:none!important}
 #attendance-filter .unified-date-range{flex:1 1 100%!important;min-width:0!important;flex-wrap:wrap!important}
 #attendance-filter .unified-date-range>select{flex:1 1 100%!important;width:100%!important}
}
.filter-grid .date-range select{width:150px!important;flex:0 0 150px!important;min-width:0!important}
.profit-date-range select{width:150px!important;flex:0 0 150px!important;min-width:0!important}
.shipping-filter-module [data-shipping-query="dateMode"]{width:150px!important;flex:0 0 150px!important;min-width:0!important}
@media(max-width:640px){.filter-grid .date-range select,.profit-date-range select,.shipping-filter-module [data-shipping-query="dateMode"]{width:100%!important;flex:1 1 100%!important}}
/* 入库单等组合筛选：桌面一行紧凑排列，缩短下拉与输入框 */
.list-query-grid{display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;gap:8px 10px!important}
.list-query-grid>label{flex:0 1 auto!important;min-width:0!important}
.list-query-grid>label>select{width:150px!important;max-width:160px!important;flex:0 1 150px!important;min-width:0!important}
.list-query-grid>label>input{width:150px!important;max-width:180px!important;flex:0 1 160px!important;min-width:0!important}
.list-query-grid>.unified-date-range{flex:0 1 auto!important;grid-column:auto!important;width:auto!important}
.list-query-grid [data-query-picker]{width:160px;max-width:200px;min-width:0}
@media(max-width:760px){.list-query-grid>label{flex:1 1 100%!important}.list-query-grid>label>select,.list-query-grid>label>input{width:100%!important;max-width:none!important;flex:1 1 100%!important}.list-query-grid [data-query-picker]{width:100%;max-width:none}}
/* 组合查询下拉只显示名称，不显示编号/编码 */
.list-query-module .store-option small:empty{display:none!important}