/* Saved-order controls only. Keep scanner, filter nodes and event handlers intact. */
html body #appShell #ipQueuePanel {
  display:grid!important;
  grid-template-columns:minmax(205px,.8fr) minmax(320px,1.2fr) minmax(240px,1fr);
  gap:3px 8px!important;
  align-items:center;
}
html body #appShell #ipQueuePanel>#ipContinuousControls {
  grid-column:1/-1;
}
html body #appShell #ipQueuePanel>.ip-queue-header {
  grid-column:1;
  grid-row:2;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  gap:5px!important;
  min-height:24px!important;
  margin:0!important;
}
html body #appShell #ipQueuePanel .ip-queue-title {
  font-size:13px!important;
  line-height:18px!important;
  white-space:nowrap;
}
html body #appShell #ipQueuePanel .ip-queue-meta-controls {
  flex-wrap:nowrap!important;
  white-space:nowrap;
  gap:4px!important;
}
html body #appShell #ipQueuePanel>#ipQueueBulkControls {
  grid-column:2;
  grid-row:2;
  flex-wrap:nowrap!important;
  margin:0!important;
  padding:0!important;
  min-height:24px!important;
  border:0!important;
  background:transparent!important;
  gap:5px!important;
}
html body #appShell #ipQueuePanel>#ipQueueBulkControls>div,
html body #appShell #ipQueuePanel>#ipQueueBulkControls>label {
  flex-wrap:nowrap!important;
  white-space:nowrap;
  gap:4px!important;
}
html body #appShell #ipQueuePanel>#ipQueueDisplayControls {
  grid-column:3;
  grid-row:2;
  flex-wrap:nowrap!important;
  white-space:nowrap;
  margin:0!important;
  padding:0!important;
  min-height:24px!important;
  border:0!important;
  background:transparent!important;
  gap:5px!important;
}
html body #appShell #ipQueuePanel>#ipQueueDisplayControls label {font-size:11px!important}
html body #appShell #ipQueuePanel>#ipQueueDisplayControls #ipQueueDisplayMeta {
  min-width:0;
  font-size:10px!important;
}
html body #appShell #ipQueuePanel :is(.ip-queue-header,#ipQueueBulkControls,#ipQueueDisplayControls) :is(button,select) {
  height:24px!important;
  min-height:24px!important;
  line-height:16px!important;
  font-size:11px!important;
  padding:2px 5px!important;
}
html body #appShell #ipQueuePanel>.ip-queue-filters {
  grid-column:1/-1;
  grid-row:3;
  grid-template-columns:.85fr .85fr 1fr 1fr 280px 1fr .85fr .9fr!important;
  align-items:start!important;
  gap:4px!important;
  margin:0!important;
  min-width:0;
  overflow-x:auto;
}
html body #appShell #ipQueuePanel .ip-queue-filter-field {
  display:grid!important;
  grid-template-rows:12px 26px;
  gap:2px!important;
  min-width:0;
  margin:0!important;
}
html body #appShell #ipQueuePanel .ip-queue-filter-field>span:first-child {
  font-size:10px!important;
  line-height:12px!important;
  white-space:nowrap!important;
}
html body #appShell #ipQueuePanel .ip-queue-filters :is(input,select) {
  height:26px!important;
  min-height:26px!important;
  font-size:11px!important;
  line-height:16px!important;
  padding:3px 4px!important;
  min-width:0!important;
  max-width:none!important;
  width:100%;
  box-sizing:border-box;
}
html body #appShell #ipQueuePanel .ip-queue-filter-field:has(#ipQueueImportDate) {
  grid-template-columns:124px minmax(0,1fr);
}
html body #appShell #ipQueuePanel .ip-queue-filter-field:has(#ipQueueImportDate)>span:first-child {
  grid-column:1/-1;
}
html body #appShell #ipQueuePanel #ipQueueImportDate {grid-column:1;grid-row:2}
html body #appShell #ipQueuePanel .ip-queue-date-choices {
  grid-column:2;
  grid-row:2;
  display:flex!important;
  align-items:center;
  flex-wrap:nowrap!important;
  gap:2px!important;
  margin:0!important;
}
html body #appShell #ipQueuePanel .ip-queue-date-choices button {
  height:26px!important;
  min-height:26px!important;
  font-size:10px!important;
  line-height:16px!important;
  padding:3px 4px!important;
  white-space:nowrap;
}
html body #appShell #ipQueuePanel :is(#ipQueueHint,#ipQueueList) {
  grid-column:1/-1;
}
html body #appShell #ipQueuePanel #ipQueueList {margin-top:1px!important}
/* Keep a single filter row on smaller screens; scroll its controls horizontally. */
@media(max-width:1100px) {
  html body #appShell #ipQueuePanel {grid-template-columns:minmax(205px,1fr) minmax(320px,1.5fr)}
  html body #appShell #ipQueuePanel>#ipQueueDisplayControls {grid-column:1/-1;grid-row:4;justify-content:flex-end!important}
  html body #appShell #ipQueuePanel>.ip-queue-filters {grid-template-columns:110px 110px 130px 130px 280px 130px 110px 115px!important;padding-bottom:2px!important}
}
@media(max-width:700px) {
  html body #appShell #ipQueuePanel {grid-template-columns:minmax(0,1fr)}
  html body #appShell #ipQueuePanel>.ip-queue-header {grid-column:1;grid-row:2}
  html body #appShell #ipQueuePanel>#ipQueueBulkControls {grid-column:1;grid-row:4;overflow-x:auto}
  html body #appShell #ipQueuePanel>#ipQueueDisplayControls {grid-column:1;grid-row:5}
}
