/* Fase 4D: consulta densa de posições; mantém filtros, tabela e paginação oficiais. */
@media screen{
  #app #content .stock-query-location{min-width:0;color:var(--wms-text)}
  #app #content .stock-query-location .stock-query-head{align-items:center;margin-bottom:12px}
  #app #content .stock-query-location .stock-query-head h2{margin:0;color:var(--wms-brand-dark)}
  #app #content .stock-query-location .stock-query-total{flex:0 0 auto;color:var(--wms-text-secondary);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
  #app #content .stock-query-location .stock-query-surface{min-width:0;padding:14px;border-color:var(--wms-border);border-radius:var(--wms-radius-lg);box-shadow:var(--wms-shadow-sm)}
  #app #content .stock-query-location .filters-panel{margin-bottom:11px;border-color:var(--wms-border);border-radius:var(--wms-radius)}
  #app #content .stock-query-location .filters-toggle{min-height:32px}
  #app #content .stock-query-location .stock-query-location-filters{display:grid;grid-template-columns:1fr;gap:9px;margin:0}
  #app #content .stock-query-location .stock-filter-group{min-width:0}
  #app #content .stock-query-location .stock-filter-group>span{display:block;margin:0 0 5px;color:var(--wms-text-secondary);font-size:10px;font-weight:800;letter-spacing:.06em}
  #app #content .stock-query-location .stock-filter-group>div{display:grid;gap:8px;min-width:0}
  #app #content .stock-query-location .stock-filter-quick>div{grid-template-columns:repeat(3,minmax(0,1fr))}
  #app #content .stock-query-location .stock-filter-location>div{grid-template-columns:repeat(4,minmax(0,1fr))}
  #app #content .stock-query-location .stock-filter-balance>div{grid-template-columns:repeat(5,minmax(0,1fr))}
  #app #content .stock-query-location .stock-filter-group .filter{min-width:0;margin:0;color:var(--wms-text-secondary);font-size:11px;font-weight:700}
  #app #content .stock-query-location .stock-filter-group input,#app #content .stock-query-location .stock-filter-group select{width:100%;min-width:0;min-height:34px;margin-top:3px;padding:6px 9px;border-color:var(--wms-border);border-radius:var(--wms-radius-sm);color:var(--wms-text);font-size:12px}
  #app #content .stock-query-location .stock-query-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;margin-top:2px}
  #app #content .stock-query-location .stock-query-actions .wms-button{min-height:34px;padding:7px 12px;font-size:11px}
  #app #content .stock-query-location .stock-query-actions .wms-button--ghost{background:transparent;color:var(--wms-brand)}
  #app #content .stock-query-location .stock-query-actions .wms-button--ghost:hover{background:var(--wms-brand-light)}
  #app #content .stock-query-location .stock-query-table-wrap{max-width:100%;min-width:0;overflow-x:auto;border:1px solid var(--wms-border);border-radius:var(--wms-radius)}
  #app #content .stock-query-location .stock-query-table{width:100%;min-width:1500px;margin:0;border-collapse:collapse;font-size:11px;font-variant-numeric:tabular-nums}
  #app #content .stock-query-location .stock-query-table thead th{padding:9px 10px;border-bottom:1px solid var(--wms-border-strong);background:var(--wms-surface-subtle);color:var(--wms-text-secondary);font-size:10px;font-weight:800;letter-spacing:.035em;white-space:nowrap}
  #app #content .stock-query-location .stock-query-table thead th:nth-child(n+8):nth-child(-n+11){text-align:right}
  #app #content .stock-query-location .stock-query-table tbody td{padding:9px 10px;border-bottom:1px solid var(--wms-border);vertical-align:middle;line-height:1.35}
  #app #content .stock-query-location .stock-query-table tbody tr:last-child td{border-bottom:0}
  #app #content .stock-query-location .stock-query-table tbody tr:hover{background:var(--wms-brand-light)}
  #app #content .stock-query-location .stock-query-table .stock-sort{color:inherit;font-size:inherit;font-weight:inherit;white-space:nowrap}
  #app #content .stock-query-location .stock-query-table .stock-sort:focus-visible{outline:2px solid var(--wms-brand);outline-offset:2px}
  #app #content .stock-query-location .stock-location-code strong{display:block;color:var(--wms-brand-dark);font-size:12px;font-weight:800;white-space:nowrap}
  #app #content .stock-query-location .stock-location-code .wms-badge{margin-top:3px;font-size:10px}
  #app #content .stock-query-location .stock-location-structure strong,#app #content .stock-query-location .stock-location-product strong{display:block;color:var(--wms-text);font-weight:750}
  #app #content .stock-query-location .stock-location-structure small,#app #content .stock-query-location .stock-location-product small{display:block;margin-top:2px;color:var(--wms-text-secondary);font-size:10px}
  #app #content .stock-query-location .stock-location-operation{font-weight:650}
  #app #content .stock-query-location .stock-location-ul{color:var(--wms-brand-dark);font-weight:700;white-space:nowrap}
  #app #content .stock-query-location .stock-number{text-align:right;white-space:nowrap}
  #app #content .stock-query-location .stock-qty{font-weight:750}
  #app #content .stock-query-location .stock-qty--physical{color:var(--wms-text)}
  #app #content .stock-query-location .stock-qty--reserved{color:var(--wms-info)}
  #app #content .stock-query-location .stock-qty--blocked{color:var(--wms-danger)}
  #app #content .stock-query-location .stock-qty--available{color:var(--wms-success)}
  #app #content .stock-query-location .stock-qty--zero{color:var(--wms-text-secondary);font-weight:500}
  #app #content .stock-query-location .stock-type.wms-badge{padding:4px 7px;font-size:10px;font-weight:750}
  #app #content .stock-query-location .stock-location-reference{min-width:110px;overflow-wrap:anywhere}
  #app #content .stock-query-location .stock-row-empty{background:var(--wms-surface-subtle)}
  #app #content .stock-query-location .stock-row-empty .stock-location-code strong{color:var(--wms-text)}
  #app #content .stock-query-location .stock-location-empty-note{color:var(--wms-text-secondary);font-size:11px}
  #app #content .stock-query-location .stock-query-no-results{padding:25px 12px;text-align:center}
  #app #content .stock-query-location .stock-query-no-results strong,#app #content .stock-query-location .stock-query-no-results span{display:block}
  #app #content .stock-query-location .stock-query-no-results strong{color:var(--wms-brand-dark);font-size:13px}
  #app #content .stock-query-location .stock-query-no-results span{margin-top:4px;color:var(--wms-text-secondary);font-size:11px}
  #app #content .stock-query-location .stock-empty-location{margin-bottom:10px;padding:12px;border:1px solid var(--wms-border);border-left:3px solid var(--wms-neutral);border-radius:var(--wms-radius);background:var(--wms-surface-subtle)}
  #app #content .stock-query-location .stock-query-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:10px;color:var(--wms-text-secondary);font-size:11px}
  #app #content .stock-query-location .stock-query-pager .stock-page-summary{margin-right:auto;font-weight:700;font-variant-numeric:tabular-nums}
  #app #content .stock-query-location .stock-query-pager .wms-button{min-height:31px;padding:6px 10px;font-size:11px}
  #app #content .stock-query-location .stock-query-pager .wms-button:disabled{opacity:.5}
}
@media screen and (max-width:900px){
  #app #content .stock-query-location .stock-filter-location>div,#app #content .stock-query-location .stock-filter-balance>div{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:700px){
  #app #content .stock-query-location .stock-query-head{align-items:flex-start}
  #app #content .stock-query-location .stock-query-surface{padding:9px}
  #app #content .stock-query-location .stock-filter-quick>div{grid-template-columns:1fr}
  #app #content .stock-query-location .stock-query-pager .stock-page-summary{width:100%}
}
