/* Dashboard V2 operational controls: queues, sorting, presets and quick actions. */
.v2-refresh-age{max-width:150px;color:var(--muted);font-size:11px;font-weight:700;white-space:nowrap}
.v2-queue-controls{grid-template-columns:repeat(9,minmax(116px,1fr));overflow-x:auto;scrollbar-width:thin}
.v2-queue-button.attention{color:#f0a53f}
.v2-queue-button.arrived{color:#f0c441}
.v2-queue-utility{display:flex;align-items:center;gap:8px;min-height:42px;padding:6px 10px;border-bottom:1px solid rgba(104,161,212,.18);color:var(--muted);font-size:10px;font-weight:700}
.v2-queue-utility:before{content:"";margin-right:auto}
.v2-queue-utility>span{padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:color-mix(in srgb,var(--surface) 78%,transparent);white-space:nowrap}
.v2-queue-utility b{color:var(--text)}
.v2-queue-presets{margin-top:12px;padding-top:11px;border-top:1px solid rgba(104,161,212,.18)}
.v2-queue-presets>div{display:flex;flex-wrap:wrap;gap:6px}
.v2-queue-presets button{min-height:30px;padding:0 9px;border:1px solid #0f4d86;border-radius:8px;background:rgba(11,35,62,.68);color:#dce9fa;font-size:10px;font-weight:750}
.v2-queue-presets button:hover{border-color:#31b5ff;color:#fff}
.v2-queue-presets .v2-save-preset{margin-top:8px;border-style:dashed;color:#8fcaff}
.v2-order-row{position:relative}
.v2-order-crm-id{display:inline-flex;align-items:center;justify-content:center;min-width:0;height:34px;padding:0 8px;border:1px solid color-mix(in srgb,var(--blue2) 38%,var(--line));border-radius:9px;background:color-mix(in srgb,var(--blue) 7%,transparent);color:#9dccf7;font-size:12px;font-weight:850;font-variant-numeric:tabular-nums;text-align:center;text-decoration:none;white-space:nowrap}.v2-order-crm-id:hover,.v2-order-crm-id:focus-visible{border-color:var(--blue2);background:color-mix(in srgb,var(--blue) 15%,transparent);color:#fff;box-shadow:0 0 12px color-mix(in srgb,var(--blue2) 22%,transparent)}.v2-order-crm-id.is-disabled{border-color:var(--line);color:var(--muted);opacity:.6}.v2-order-list-legend span:nth-child(10){text-align:center}
@media (min-width:1181px){
  .v2-toolbar{position:sticky;top:84px;z-index:9;background:color-mix(in srgb,var(--surface) 95%,transparent);backdrop-filter:blur(16px)}
  .v2-queue-panel{position:sticky;top:162px;z-index:8;background:color-mix(in srgb,var(--surface) 96%,transparent);backdrop-filter:blur(16px)}
  .v2-order-list-legend{position:sticky;top:288px;z-index:7;background:color-mix(in srgb,var(--surface) 97%,transparent);backdrop-filter:blur(16px)}
}
@media (max-width:1180px){
  .v2-queue-controls{grid-template-columns:repeat(4,minmax(132px,1fr))}
  .v2-refresh-age{display:none}
}
@media (max-width:760px){
  .v2-queue-controls{grid-template-columns:repeat(2,minmax(132px,1fr))}
  .v2-queue-utility{align-items:stretch;flex-direction:column}
  .v2-queue-utility>span{display:none}
}

/* Prominent queue filters: one label, one large icon, one count. Details remain in tooltips. */
.v2-queue-controls{gap:6px;padding:8px 10px}
.v2-queue-button,.v2-queue-custom-button{min-height:52px;height:52px;padding:0 12px;border-color:color-mix(in srgb,var(--line) 78%,transparent);border-radius:11px;background:transparent;box-shadow:none;transform:none}
.v2-queue-button{position:relative;grid-template-columns:23px minmax(0,1fr);gap:9px}
.v2-queue-button svg,.v2-queue-custom-button svg{width:23px;height:23px;filter:none;stroke-width:2}
.v2-queue-button>span{display:block;min-width:0;padding-right:18px}
.v2-queue-button small{display:none}
.v2-queue-button b{color:var(--text);font-size:13px;font-weight:780;letter-spacing:0}
.v2-queue-button.attention b{overflow:visible;font-size:10.5px;line-height:1.05;letter-spacing:-.015em;text-overflow:clip;white-space:normal}
.v2-queue-button.shipped b{font-size:11px;letter-spacing:-.01em}
.v2-queue-button i{position:absolute;top:6px;right:7px;min-width:0;height:auto;padding:0;background:transparent;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}
.v2-queue-button:hover,.v2-queue-custom-button:hover{border-color:color-mix(in srgb,currentColor 48%,var(--line));background:color-mix(in srgb,currentColor 4%,transparent);box-shadow:none;transform:none}
.v2-queue-button.active{border-color:color-mix(in srgb,currentColor 65%,var(--line));background:color-mix(in srgb,currentColor 7%,transparent);box-shadow:inset 0 -2px currentColor}
.v2-queue-button.all.active{color:var(--blue2)}
.v2-queue-button.active b{color:var(--text)}
.v2-queue-button.active i{background:transparent;color:currentColor}
.v2-queue-custom-button{gap:9px;color:var(--muted);font-size:13px;font-weight:780}
.v2-queue-custom-button:hover,.v2-queue-custom-button.active{border-color:color-mix(in srgb,var(--blue2) 58%,var(--line));background:color-mix(in srgb,var(--blue) 6%,transparent);box-shadow:inset 0 -2px color-mix(in srgb,var(--blue) 76%,transparent);color:var(--text);transform:none}
.v2-sort-button{position:relative;color:color-mix(in srgb,var(--blue2) 70%,var(--muted))}
.v2-sort-button i{margin-left:auto;color:var(--muted);font:800 14px/1 Inter,"Segoe UI",system-ui,sans-serif;font-style:normal;transition:transform .16s ease}
.v2-sort-button.active i{transform:rotate(180deg)}
.v2-sort-menu{position:absolute;top:calc(100% - 2px);right:10px;z-index:9;display:grid;width:min(300px,calc(100% - 20px));gap:5px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface2);box-shadow:0 16px 38px rgba(0,0,0,.34),0 0 18px color-mix(in srgb,var(--blue) 10%,transparent)}
.v2-sort-menu p{margin:2px 4px 6px;color:var(--text);font-size:12px;font-weight:800}
.v2-sort-menu button{display:flex;align-items:center;justify-content:space-between;min-height:38px;padding:0 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font-size:11px;font-weight:750;text-align:left}
.v2-sort-menu button:hover{border-color:color-mix(in srgb,var(--blue2) 38%,var(--line));background:color-mix(in srgb,var(--blue) 6%,transparent);color:var(--text)}
.v2-sort-menu button.active{border-color:color-mix(in srgb,var(--blue2) 54%,var(--line));background:color-mix(in srgb,var(--blue) 10%,transparent);color:var(--text)}
.v2-sort-menu button svg{width:17px;height:17px;color:var(--blue2);stroke-width:2.2}
.v2-longest-idle-option{display:grid;grid-template-columns:18px minmax(0,1fr);gap:9px;align-items:center;min-height:54px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--blue2) 42%,var(--line));border-radius:9px;background:color-mix(in srgb,var(--blue) 7%,transparent);color:var(--text);cursor:pointer}.v2-longest-idle-option input{width:17px;height:17px;margin:0;accent-color:var(--blue2)}.v2-longest-idle-option>span{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;column-gap:7px}.v2-longest-idle-option svg{grid-row:1/3;width:19px;height:19px;color:var(--blue2)}.v2-longest-idle-option b{font-size:11.5px}.v2-longest-idle-option small{color:var(--muted);font-size:9px;line-height:1.25}.v2-longest-idle-option:has(input:checked){border-color:var(--blue2);background:color-mix(in srgb,var(--blue) 13%,transparent);box-shadow:inset 0 -2px color-mix(in srgb,var(--blue2) 78%,transparent)}
.v2-queue-utility{min-height:36px;padding:4px 10px;background:transparent}
.v2-queue-utility>span{padding:0;border:0;border-radius:0;background:transparent;color:var(--muted)}
.v2-queue-utility>span:first-of-type{display:none}
.v2-queue-utility>span+span:before{margin-right:8px;color:color-mix(in srgb,var(--muted) 42%,transparent);content:"·"}
.v2-queue-utility b{color:var(--text);font-variant-numeric:tabular-nums}
@media (max-width:760px){
  .v2-queue-controls{gap:5px;padding:7px 8px}
  .v2-queue-button,.v2-queue-custom-button{min-height:48px;height:48px;padding:0 10px}
  .v2-queue-button{grid-template-columns:21px minmax(0,1fr);gap:8px}
  .v2-queue-button svg,.v2-queue-custom-button svg{width:21px;height:21px}
  .v2-queue-button b,.v2-queue-custom-button{font-size:11.5px}
  .v2-queue-button.attention b{font-size:0}
  .v2-queue-button.attention b:after{font-size:11.5px;content:"Увага"}
  .v2-sort-menu{position:static;width:auto;margin:0 8px 8px}
}

/* Queue bar — matched to the approved StorePulse reference. */
.v2-queue-controls{
  grid-template-columns:minmax(0,1.08fr) minmax(0,1.18fr) minmax(0,.95fr) minmax(0,1.05fr) minmax(0,.95fr) minmax(0,1fr) minmax(0,1.05fr) minmax(0,.9fr) minmax(0,1.05fr);
  gap:8px;
  padding:10px 12px;
  border-bottom-color:rgba(57,130,193,.24);
  overflow-x:hidden;
}
.v2-queue-button,
.v2-queue-custom-button{
  min-height:64px;
  height:64px;
  padding:0 13px;
  border:1px solid rgba(40,103,158,.36);
  border-radius:12px;
  background:linear-gradient(180deg,rgba(9,35,61,.96),rgba(7,27,48,.98));
  box-shadow:inset 0 1px rgba(200,230,255,.035),0 5px 14px rgba(0,9,21,.13);
  transform:none;
}
.v2-queue-button{
  --queue-color:#75a6d4;
  --queue-rgb:117,166,212;
  position:relative;
  grid-template-columns:29px minmax(0,1fr) 38px;
  gap:10px;
  color:var(--queue-color);
}
.v2-queue-button.all{--queue-color:#24b5ff;--queue-rgb:36,181,255}
.v2-queue-button.attention{--queue-color:#f4b52c;--queue-rgb:244,181,44}
.v2-queue-button.work{--queue-color:#9bbbd9;--queue-rgb:155,187,217}
.v2-queue-button.shipped{--queue-color:#128bff;--queue-rgb:18,139,255}
.v2-queue-button.arrived{--queue-color:#f0b82c;--queue-rgb:240,184,44}
.v2-queue-button.sale{--queue-color:#1cda89;--queue-rgb:28,218,137}
.v2-queue-button.problem{--queue-color:#ff4f68;--queue-rgb:255,79,104}
.v2-queue-button svg,
.v2-queue-custom-button svg{
  width:28px;
  height:28px;
  color:var(--queue-color,currentColor);
  filter:drop-shadow(0 0 5px rgba(var(--queue-rgb,80,167,228),.42));
  stroke-width:2.1;
}
.v2-queue-button>span{
  display:block;
  min-width:0;
  padding:0;
}
.v2-queue-button b{
  display:block;
  overflow:hidden;
  color:#eaf3ff;
  font-size:13px;
  font-weight:800;
  letter-spacing:-.01em;
  line-height:1.1;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.v2-queue-button.attention b,
.v2-queue-button.shipped b{
  overflow:hidden;
  font-size:12px;
  line-height:1.1;
  letter-spacing:-.015em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.v2-queue-button small{display:none}
.v2-queue-button i{
  position:static;
  display:grid;
  place-items:center;
  width:38px;
  min-width:38px;
  height:38px;
  padding:0;
  border:1px solid rgba(var(--queue-rgb),.66);
  border-radius:9px;
  background:linear-gradient(180deg,rgba(var(--queue-rgb),.34),rgba(var(--queue-rgb),.18));
  box-shadow:inset 0 1px rgba(255,255,255,.1),0 0 12px rgba(var(--queue-rgb),.28);
  color:#f6fbff;
  font-size:12px;
  font-style:normal;
  font-weight:850;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.v2-queue-button.problem{
  border-color:rgba(255,79,104,.32);
  background:linear-gradient(180deg,rgba(50,26,48,.82),rgba(28,24,43,.94));
}
.v2-queue-button:hover{
  border-color:rgba(var(--queue-rgb),.62);
  background:linear-gradient(180deg,rgba(var(--queue-rgb),.09),rgba(7,27,48,.98));
  box-shadow:inset 0 1px rgba(220,240,255,.07),0 0 14px rgba(var(--queue-rgb),.15);
  transform:none;
}
.v2-queue-button.active,
.v2-queue-button.all.active{
  border-color:var(--queue-color);
  background:linear-gradient(180deg,rgba(var(--queue-rgb),.13),rgba(8,35,60,.98));
  box-shadow:inset 0 0 18px rgba(var(--queue-rgb),.08),0 0 0 1px rgba(var(--queue-rgb),.2),0 0 18px rgba(var(--queue-rgb),.34);
  color:var(--queue-color);
}
.v2-queue-button.active b{color:#f4f9ff}
.v2-queue-button.active i{
  background:linear-gradient(180deg,rgba(var(--queue-rgb),.5),rgba(var(--queue-rgb),.24));
  color:#fff;
}
.v2-queue-custom-button{
  display:grid;
  grid-template-columns:29px minmax(0,1fr);
  justify-content:stretch;
  gap:11px;
  color:#9cb9d6;
  font-size:13px;
  font-weight:800;
  text-align:left;
}
.v2-queue-custom-button svg{
  color:#8fb4d5;
  filter:none;
}
.v2-queue-custom-button:hover,
.v2-queue-custom-button.active{
  border-color:rgba(49,181,255,.55);
  background:linear-gradient(180deg,rgba(19,61,96,.72),rgba(8,32,55,.98));
  box-shadow:0 0 14px rgba(49,181,255,.16);
  color:#e9f4ff;
  transform:none;
}
.v2-sort-button{
  grid-template-columns:29px minmax(0,1fr) 16px;
  border-color:rgba(31,124,190,.55);
  color:#b7d4ef;
}
.v2-sort-button i{
  margin:0;
  color:#68bfff;
  font-size:15px;
  text-align:right;
}
@media (max-width:1180px){
  .v2-queue-controls{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:760px){
  .v2-queue-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px}
  .v2-queue-button,.v2-queue-custom-button{min-height:54px;height:54px;padding:0 10px}
  .v2-queue-button{grid-template-columns:24px minmax(0,1fr) 31px;gap:8px}
  .v2-queue-button svg,.v2-queue-custom-button svg{width:23px;height:23px}
  .v2-queue-button b,.v2-queue-button.attention b,.v2-queue-button.shipped b,.v2-queue-custom-button{font-size:11.5px}
  .v2-queue-button.attention b{font-size:0}
  .v2-queue-button.attention b:after{font-size:11.5px;content:"Увага"}
  .v2-queue-button i{width:31px;min-width:31px;height:31px;border-radius:8px;font-size:10px}
  .v2-queue-custom-button{grid-template-columns:24px minmax(0,1fr)}
  .v2-sort-button{grid-template-columns:24px minmax(0,1fr) 14px}
}
