.alms-public-reseller-market{margin:24px 0;padding:20px;border:1px solid #dfe5ef;border-radius:18px;background:#fff;box-shadow:0 12px 30px rgba(22,34,51,.08)}
.alms-public-reseller-market__head{display:grid;gap:4px;margin-bottom:14px}.alms-public-reseller-market__head span{font-size:11px;font-weight:800;letter-spacing:.12em;color:#651097}.alms-public-reseller-market__head strong{font-size:20px;line-height:1.15;color:#14213d}.alms-public-reseller-market__head small{color:#60708a;line-height:1.45}
.alms-public-reseller-market__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.alms-public-reseller-market__grid article{border:1px solid #e1e7f0;border-radius:14px;padding:14px;background:#f9fbfd}.alms-public-reseller-market__grid header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.alms-public-reseller-market__grid header div{display:grid;gap:2px}.alms-public-reseller-market__grid header b{font-size:15px;color:#17223b}.alms-public-reseller-market__grid header small{font-size:11px;color:#7b8799}.alms-public-reseller-market__grid header span{font-size:10px;font-weight:800;padding:5px 8px;border-radius:999px;background:#f4b400;color:#1f1e1e}.alms-public-reseller-market__grid p{margin:10px 0;color:#4e5c70;font-size:13px}.alms-public-reseller-market__grid dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.alms-public-reseller-market__grid dl div{padding:8px;border-radius:10px;background:#fff;border:1px solid #e8edf4}.alms-public-reseller-market__grid dt{font-size:10px;color:#7d8998}.alms-public-reseller-market__grid dd{margin:2px 0 0;font-weight:800;color:#17223b}.alms-public-reseller-market__grid button{width:100%;border:0;border-radius:10px;padding:10px 12px;background:#3d005d;color:#fff;font-weight:800;cursor:pointer}.alms-public-reseller-market__pool{display:block;margin-top:10px;color:#4e5c70}.alms-public-reseller-market__preorder{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;margin-top:10px}.alms-public-reseller-market__preorder label{display:grid;gap:4px;font-size:11px;color:#5c687a}.alms-public-reseller-market__preorder input{width:100%;min-height:40px;border:1px solid #d5dce7;border-radius:9px;padding:7px 9px}.alms-public-reseller-market__preorder button{width:auto;min-height:40px}
@media(max-width:640px){.alms-public-reseller-market{padding:14px;margin:18px 0}.alms-public-reseller-market__preorder{grid-template-columns:1fr}.alms-public-reseller-market__preorder button{width:100%}}
.alms-public-reseller-market__progress{display:grid;gap:5px;margin:9px 0;font-size:11px}.alms-public-reseller-market__progress>i{height:7px;border-radius:999px;background:#e5e7eb;overflow:hidden}.alms-public-reseller-market__progress>i>u{display:block;height:100%;background:linear-gradient(90deg,#651097,#f4b400);text-decoration:none}.alms-public-reseller-market article dl{grid-template-columns:repeat(2,minmax(0,1fr))}


/* v5.8.221 conditional rule engine + fast workspace */
.alms-inventory-rules-advanced{display:grid;gap:18px}.alms-rule-base-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:12px}.alms-rule-base-grid>label{display:flex;flex-direction:column;gap:7px;padding:12px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.025)}.alms-rule-base-grid>label:has(input[type=checkbox]){flex-direction:row;align-items:center}.alms-conditional-rules{border:1px solid rgba(244,180,0,.25);border-radius:16px;background:linear-gradient(180deg,rgba(244,180,0,.06),rgba(101,16,151,.04));padding:16px}.alms-conditional-rules>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.alms-conditional-rules>header div{display:grid;gap:3px}.alms-conditional-rules>header span,.alms-rule-preview>span{font-size:11px;letter-spacing:.11em;font-weight:800;color:#f4b400}.alms-conditional-rules>header strong{font-size:18px}.alms-ifelse-rule{display:grid;gap:12px;padding:14px;margin-top:12px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(15,13,18,.76)}.alms-ifelse-rule>header{display:grid;grid-template-columns:auto 1fr 90px;gap:10px;align-items:center}.alms-ifelse-rule>header label{display:flex;align-items:center;gap:6px}.alms-rule-if{display:grid;grid-template-columns:auto minmax(190px,260px) 1fr auto;gap:10px;align-items:start}.alms-rule-if>b{display:grid;place-items:center;min-height:38px;padding:0 10px;border-radius:9px;background:#3d005d;color:white}.alms-rule-condition{display:grid;grid-template-columns:minmax(140px,1fr) 90px minmax(120px,1fr);gap:8px;margin-bottom:8px}.alms-rule-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.alms-rule-actions label{display:grid;grid-template-columns:auto minmax(150px,.8fr) 1fr;gap:8px;align-items:center}.alms-ifelse-rule footer{display:grid;grid-template-columns:1fr auto;gap:10px}.alms-rule-preview{padding:14px;border:1px solid rgba(101,16,151,.25);border-radius:14px;background:rgba(101,16,151,.07);display:grid;gap:4px}.alms-rule-preview strong{font-size:17px}@media(max-width:1180px){.alms-rule-base-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}.alms-rule-if{grid-template-columns:auto 1fr}.alms-rule-if>[data-rule-conditions]{grid-column:1/-1}.alms-rule-actions{grid-template-columns:1fr}}@media(max-width:700px){.alms-rule-base-grid{grid-template-columns:1fr}.alms-conditional-rules>header{align-items:flex-start;flex-direction:column}.alms-ifelse-rule>header{grid-template-columns:1fr}.alms-rule-if{grid-template-columns:1fr}.alms-rule-condition{grid-template-columns:1fr}.alms-rule-actions label{grid-template-columns:1fr}.alms-ifelse-rule footer{grid-template-columns:1fr}}


/* v5.8.231: enterprise Inventory Exchange IF / ELSE rule builder. */
.alms-inventory-rules-advanced{display:block!important;min-width:0}.alms-rule-workspace{display:grid;grid-template-columns:minmax(520px,.88fr) minmax(680px,1.42fr);gap:18px;align-items:start;min-width:0}.alms-rule-base-panel,.alms-conditional-rules{min-width:0;border-radius:18px}.alms-rule-base-panel{padding:16px;border:1px solid rgba(148,163,184,.16);background:linear-gradient(180deg,rgba(15,23,42,.72),rgba(5,12,27,.72));box-shadow:0 14px 40px rgba(2,6,23,.18)}.alms-rule-base-panel>header{display:grid;gap:4px;margin-bottom:14px}.alms-rule-base-panel>header span,.alms-conditional-rules>header span,.alms-rule-preview>span{font-size:10px;font-weight:900;letter-spacing:.12em;color:#72e6ef}.alms-rule-base-panel>header strong,.alms-conditional-rules>header strong{font-size:20px;line-height:1.2;color:#fff}.alms-rule-base-panel>header small,.alms-conditional-rules>header small{font-size:11px;line-height:1.5;color:#94a3b8}.alms-rule-base-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}.alms-rule-base-grid>label{min-width:0!important;padding:12px!important;background:linear-gradient(180deg,rgba(15,23,42,.76),rgba(10,18,34,.86))!important;border-color:rgba(148,163,184,.16)!important;box-shadow:inset 0 1px rgba(255,255,255,.025)}.alms-rule-toggle-card{display:grid!important;grid-template-columns:auto 1fr!important;align-items:start!important;column-gap:9px!important;row-gap:3px!important;min-height:88px}.alms-rule-toggle-card input{margin:2px 0 0!important;grid-row:1/3}.alms-rule-toggle-card b{font-size:11px;color:#f8fafc;line-height:1.25}.alms-rule-toggle-card small{font-size:9px;line-height:1.35;color:#94a3b8}.alms-rule-number-card{position:relative;display:grid!important;grid-template-columns:1fr auto!important;gap:7px!important}.alms-rule-number-card>span{grid-column:1/-1;font-size:9px;color:#a8b4c7;line-height:1.3}.alms-rule-number-card input{grid-column:1/-1;width:100%;padding-right:50px!important}.alms-rule-number-card>small{position:absolute;right:21px;bottom:22px;font-size:9px;color:#94a3b8;pointer-events:none}.alms-rule-preview{margin-top:12px!important;padding:13px 14px!important;background:linear-gradient(135deg,rgba(76,29,149,.18),rgba(30,27,75,.34))!important;border-color:rgba(168,85,247,.28)!important}.alms-rule-save-button{width:100%;margin-top:10px!important;padding:11px 14px!important;border:1px solid rgba(216,180,254,.38)!important;border-radius:10px!important;background:linear-gradient(135deg,#7e22ce,#651097)!important;color:#fff!important;font-weight:850!important;cursor:pointer}.alms-conditional-rules{padding:16px!important;border:1px solid rgba(168,85,247,.55)!important;background:radial-gradient(circle at 85% 0,rgba(126,34,206,.18),transparent 38%),linear-gradient(180deg,rgba(20,24,50,.88),rgba(7,13,29,.92))!important;box-shadow:0 0 0 1px rgba(168,85,247,.08),0 18px 50px rgba(37,12,72,.22)}.alms-conditional-rules>header{align-items:flex-start!important;margin-bottom:12px!important}.alms-conditional-rules>header>div{max-width:760px}.alms-conditional-rules>header span{color:#d8b4fe!important}.alms-rule-add-button{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;padding:10px 13px!important;border:1px solid rgba(216,180,254,.32)!important;border-radius:10px!important;background:linear-gradient(135deg,#7e22ce,#651097)!important;color:#fff!important;font-weight:850!important;white-space:nowrap;cursor:pointer}.alms-rule-add-button b{display:grid;place-items:center;width:19px;height:19px;border-radius:6px;background:rgba(255,255,255,.15);font-size:16px}.alms-rule-builder-help{display:flex;gap:8px;align-items:center;margin:0 0 10px;padding:9px 11px;border:1px solid rgba(148,163,184,.12);border-radius:10px;background:rgba(15,23,42,.5);font-size:9px;color:#94a3b8}.alms-rule-builder-help b{color:#e9d5ff}.alms-ifelse-rule{gap:0!important;padding:0!important;overflow:hidden;border:1px solid rgba(168,85,247,.24)!important;border-radius:14px!important;background:linear-gradient(180deg,rgba(4,10,22,.9),rgba(9,14,29,.92))!important;box-shadow:0 10px 28px rgba(2,6,23,.22)}.alms-ifelse-rule+.alms-ifelse-rule{margin-top:12px!important}.alms-ifelse-rule-head{display:grid!important;grid-template-columns:34px minmax(180px,1fr) auto auto!important;gap:10px!important;align-items:center!important;padding:10px 11px!important;border-bottom:1px solid rgba(148,163,184,.11);background:rgba(15,23,42,.56)}.alms-rule-sequence{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:linear-gradient(135deg,#9333ea,#651097);color:#fff;font-weight:900;font-size:12px}.alms-rule-title-block{display:flex;gap:10px;align-items:center;min-width:0}.alms-rule-title-block>input{min-width:0;max-width:280px;font-weight:800!important}.alms-rule-title-block small{display:flex;align-items:center;gap:6px;color:#94a3b8;white-space:nowrap}.alms-rule-title-block small input{width:64px!important}.alms-rule-active{display:flex!important;align-items:center!important;gap:7px!important;color:#e2e8f0;font-size:9px}.alms-rule-active input{position:absolute;opacity:0;pointer-events:none}.alms-rule-active span{position:relative;width:32px;height:18px;border-radius:999px;background:#334155;box-shadow:inset 0 0 0 1px rgba(148,163,184,.2)}.alms-rule-active span:after{content:'';position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:#cbd5e1;transition:.18s}.alms-rule-active input:checked+span{background:#2563eb}.alms-rule-active input:checked+span:after{left:17px;background:#fff}.alms-rule-card-actions{display:flex;gap:5px}.alms-rule-card-actions button,.alms-rule-icon-button{display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px!important;border:1px solid rgba(148,163,184,.18)!important;border-radius:7px!important;background:rgba(15,23,42,.72)!important;color:#cbd5e1!important;cursor:pointer;font-weight:800}.alms-rule-card-actions button:hover,.alms-rule-icon-button:hover{border-color:rgba(168,85,247,.55)!important;color:#fff!important}.alms-rule-card-actions button.is-danger,.alms-rule-icon-button.is-danger{color:#fca5a5!important}.alms-ifelse-rule-body{display:grid;gap:9px;padding:10px}.alms-ifelse-rule.is-collapsed .alms-ifelse-rule-body{display:none}.alms-rule-if{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;gap:9px!important;padding:9px!important;border:1px solid rgba(148,163,184,.1);border-radius:11px;background:rgba(3,7,18,.35)}.alms-rule-step-label{display:grid;place-items:center;align-self:start;min-height:36px;padding:0 8px;border-radius:8px;font-size:10px;font-weight:900;letter-spacing:.06em;color:#fff}.alms-rule-step-label.is-if{background:linear-gradient(135deg,#7e22ce,#581c87)}.alms-rule-step-label.is-then{background:linear-gradient(135deg,#0891b2,#0f766e)}.alms-rule-step-label.is-else{background:linear-gradient(135deg,#64748b,#475569)}.alms-rule-if-content{min-width:0}.alms-rule-logic-row{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:7px}.alms-rule-logic-row label{display:flex;gap:7px;align-items:center;font-size:9px;color:#94a3b8}.alms-rule-logic-row select{min-width:220px}.alms-rule-logic-row small{font-size:9px;color:#64748b}.alms-rule-condition-list{display:grid;gap:6px}.alms-rule-condition{display:grid!important;grid-template-columns:minmax(150px,1.05fr) 92px minmax(130px,1.2fr) 30px!important;gap:7px!important;margin:0!important;align-items:center}.alms-rule-condition select,.alms-rule-condition input,.alms-rule-actions select,.alms-rule-actions input,.alms-ifelse-rule-head input,.alms-rule-message textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid rgba(96,165,250,.26)!important;border-radius:8px!important;background:#071426!important;color:#f8fafc!important;min-height:36px;padding:7px 9px!important;box-shadow:none!important}.alms-rule-add-condition{margin-top:7px!important;padding:7px 10px!important;border:1px solid rgba(168,85,247,.45)!important;border-radius:8px!important;background:rgba(126,34,206,.18)!important;color:#e9d5ff!important;font-weight:800!important;cursor:pointer}.alms-rule-actions{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}.alms-rule-action-row{display:grid;grid-template-columns:55px minmax(170px,.8fr) minmax(200px,1fr);gap:8px;align-items:end;padding:8px;border:1px solid rgba(148,163,184,.1);border-radius:11px;background:rgba(3,7,18,.28)}.alms-rule-action-row label{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;font-size:8px;color:#94a3b8}.alms-rule-footer{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(185px,240px)!important;gap:10px!important;align-items:end}.alms-rule-message{display:grid;gap:5px;font-size:8px;color:#94a3b8}.alms-rule-message textarea{resize:vertical;min-height:52px!important}.alms-rule-stop{display:flex!important;gap:8px!important;align-items:flex-start!important;padding:9px!important;border:1px solid rgba(148,163,184,.1);border-radius:9px;background:rgba(15,23,42,.42)}.alms-rule-stop>span{display:grid;gap:2px}.alms-rule-stop b{font-size:9px;color:#f8fafc}.alms-rule-stop small{font-size:8px;line-height:1.3;color:#64748b}.alms-rules-engine-intro{margin-bottom:12px!important}
@media(max-width:1420px){.alms-rule-workspace{grid-template-columns:minmax(430px,.85fr) minmax(560px,1.15fr)}.alms-rule-base-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.alms-rule-title-block>input{max-width:210px}}
@media(max-width:1120px){.alms-rule-workspace{grid-template-columns:1fr}.alms-rule-base-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.alms-rule-title-block>input{max-width:320px}.alms-conditional-rules{min-height:0}}
@media(max-width:820px){.alms-rule-base-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.alms-ifelse-rule-head{grid-template-columns:32px 1fr!important}.alms-rule-active,.alms-rule-card-actions{grid-column:2}.alms-rule-title-block{align-items:flex-start;flex-direction:column}.alms-rule-title-block>input{max-width:none}.alms-rule-logic-row{align-items:flex-start;flex-direction:column}.alms-rule-logic-row select{min-width:0;width:100%}.alms-rule-condition{grid-template-columns:1fr 82px!important}.alms-rule-condition input{grid-column:1/2}.alms-rule-condition .alms-rule-icon-button{grid-column:2;grid-row:2}.alms-rule-action-row{grid-template-columns:48px 1fr}.alms-rule-action-row label:last-child{grid-column:2}.alms-rule-footer{grid-template-columns:1fr!important}}
@media(max-width:560px){.alms-rule-base-grid{grid-template-columns:1fr!important}.alms-conditional-rules>header{flex-direction:column!important}.alms-rule-add-button{width:100%;justify-content:center}.alms-rule-builder-help{align-items:flex-start;flex-direction:column}.alms-rule-condition{grid-template-columns:1fr!important}.alms-rule-condition input,.alms-rule-condition .alms-rule-icon-button{grid-column:auto;grid-row:auto}.alms-rule-if{grid-template-columns:1fr!important}.alms-rule-step-label{min-height:30px}.alms-rule-action-row{grid-template-columns:1fr}.alms-rule-action-row label:last-child{grid-column:auto}.alms-ifelse-rule-head{grid-template-columns:28px 1fr!important}.alms-rule-card-actions{grid-column:1/-1;justify-content:flex-end}.alms-rule-active{grid-column:1/-1;justify-content:flex-start}}

/* v5.8.232: Rules workspace sizing + unified enterprise field controls. */
.alms-inventory-exchange-drawer .alms-inventory-rules-advanced{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  overflow:visible!important;
}
.alms-inventory-exchange-drawer .alms-rule-workspace{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  grid-template-columns:minmax(0,42fr) minmax(0,58fr)!important;
  gap:16px!important;
  align-items:start!important;
}
.alms-inventory-exchange-drawer .alms-rule-workspace>*{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
/* Reset the drawer's generic header rules inside the rule builder. */
.alms-inventory-exchange-drawer .alms-rule-base-panel>header,
.alms-inventory-exchange-drawer .alms-conditional-rules>header,
.alms-inventory-exchange-drawer .alms-ifelse-rule-head{
  border-bottom:0!important;
  padding-bottom:0!important;
}
.alms-inventory-exchange-drawer .alms-rule-base-panel>header{
  display:grid!important;
  grid-template-columns:1fr!important;
  align-items:start!important;
  justify-content:stretch!important;
  gap:4px!important;
  margin:0 0 14px!important;
}
.alms-inventory-exchange-drawer .alms-rule-base-panel>header strong{
  display:block!important;
  margin:0!important;
  font-size:19px!important;
  line-height:1.2!important;
}
.alms-inventory-exchange-drawer .alms-rule-base-panel>header small{
  display:block!important;
  margin:0!important;
}
.alms-inventory-exchange-drawer .alms-conditional-rules>header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:start!important;
  justify-content:stretch!important;
  gap:18px!important;
  margin:0 0 12px!important;
}
.alms-inventory-exchange-drawer .alms-conditional-rules>header>div{
  min-width:0!important;
  max-width:none!important;
  display:grid!important;
  gap:4px!important;
}
.alms-inventory-exchange-drawer .alms-conditional-rules>header strong{
  display:block!important;
  margin:0!important;
  font-size:19px!important;
  line-height:1.2!important;
}
.alms-inventory-exchange-drawer .alms-conditional-rules>header small{
  display:block!important;
  margin:0!important;
  max-width:760px!important;
}
.alms-inventory-exchange-drawer .alms-rule-add-button{
  width:auto!important;
  min-width:170px!important;
  max-width:100%!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 14px!important;
  margin:0!important;
  font-size:11px!important;
  line-height:1!important;
  justify-content:center!important;
  align-self:start!important;
  box-sizing:border-box!important;
  box-shadow:0 8px 22px rgba(126,34,206,.2)!important;
}
.alms-inventory-exchange-drawer .alms-rule-add-button b{
  flex:0 0 20px!important;
  width:20px!important;
  height:20px!important;
  font-size:15px!important;
  line-height:20px!important;
}
.alms-inventory-exchange-drawer .alms-rule-builder-help{
  width:100%!important;
  box-sizing:border-box!important;
  min-height:46px!important;
  padding:10px 12px!important;
  margin:0 0 12px!important;
}
.alms-inventory-exchange-drawer [data-conditional-rules]{
  width:100%!important;
  min-width:0!important;
}
.alms-inventory-exchange-drawer .alms-ifelse-rule{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.alms-inventory-exchange-drawer .alms-ifelse-rule-head{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px 11px!important;
  background:rgba(15,23,42,.56)!important;
  border-bottom:1px solid rgba(148,163,184,.11)!important;
}
.alms-inventory-exchange-drawer .alms-rule-title-block{
  min-width:0!important;
  display:grid!important;
  grid-template-columns:minmax(150px,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
}
.alms-inventory-exchange-drawer .alms-rule-title-block>input{
  width:100%!important;
  max-width:none!important;
}
.alms-inventory-exchange-drawer .alms-rule-title-block small{
  margin:0!important;
}
/* One visual system for every Rules input/select/textarea. */
.alms-inventory-exchange-drawer .alms-inventory-rules-advanced input[type="text"],
.alms-inventory-exchange-drawer .alms-inventory-rules-advanced input[type="number"],
.alms-inventory-exchange-drawer .alms-inventory-rules-advanced select,
.alms-inventory-exchange-drawer .alms-inventory-rules-advanced textarea{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  border:1px solid rgba(96,165,250,.28)!important;
  border-radius:9px!important;
  background-color:#071426!important;
  color:#f8fafc!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02)!important;
  font-family:inherit!important;
  font-size:11px!important;
  font-weight:650!important;
  line-height:1.25!important;
  outline:none!important;
  transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease!important;
  color-scheme:dark!important;
}
.alms-inventory-exchange-drawer .alms-inventory-rules-advanced input[type="text"],
.alms-inventory-exchange-drawer .alms-inventory-rules-advanced input[type="number"],
.alms-inventory-exchange-drawer .alms-inventory-rules-advanced select{
  height:38px!important;
  min-height:38px!important;
  padding:0 10px!important;
}
.alms-inventory-exchange-drawer .alms-inventory-rules-advanced select{
  -webkit-appearance:none!important;
  appearance:none!important;
  padding-right:34px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%2399A7BC' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 10px center!important;
  background-size:14px 14px!important;
}
.alms-inventory-exchange-drawer .alms-inventory-rules-advanced select option{
  background:#071426!important;
  color:#f8fafc!important;
}
.alms-inventory-exchange-drawer .alms-inventory-rules-advanced input:focus,
.alms-inventory-exchange-drawer .alms-inventory-rules-advanced select:focus,
.alms-inventory-exchange-drawer .alms-inventory-rules-advanced textarea:focus{
  border-color:rgba(168,85,247,.82)!important;
  background-color:#09182c!important;
  box-shadow:0 0 0 3px rgba(126,34,206,.13)!important;
}
.alms-inventory-exchange-drawer .alms-rule-number-card input{
  padding-right:46px!important;
}
.alms-inventory-exchange-drawer .alms-rule-logic-row{
  display:grid!important;
  grid-template-columns:minmax(260px,420px) minmax(0,1fr)!important;
  align-items:end!important;
  gap:12px!important;
}
.alms-inventory-exchange-drawer .alms-rule-logic-row label{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
}
.alms-inventory-exchange-drawer .alms-rule-logic-row select{
  width:100%!important;
  min-width:0!important;
}
.alms-inventory-exchange-drawer .alms-rule-logic-row small{
  align-self:center!important;
  justify-self:end!important;
  text-align:right!important;
  line-height:1.35!important;
}
.alms-inventory-exchange-drawer .alms-rule-condition{
  grid-template-columns:minmax(150px,1fr) 92px minmax(170px,1.25fr) 30px!important;
  gap:8px!important;
}
.alms-inventory-exchange-drawer .alms-rule-condition select,
.alms-inventory-exchange-drawer .alms-rule-condition input{
  height:38px!important;
}
.alms-inventory-exchange-drawer .alms-rule-action-row{
  grid-template-columns:58px minmax(180px,.95fr) minmax(220px,1.25fr)!important;
  gap:10px!important;
  align-items:end!important;
  padding:10px!important;
}
.alms-inventory-exchange-drawer .alms-rule-action-row label{
  margin:0!important;
  min-width:0!important;
}
.alms-inventory-exchange-drawer .alms-rule-footer{
  grid-template-columns:minmax(0,1fr) minmax(210px,260px)!important;
  gap:12px!important;
}
.alms-inventory-exchange-drawer .alms-rule-message{
  margin:0!important;
}
.alms-inventory-exchange-drawer .alms-rule-message textarea{
  min-height:58px!important;
  padding:9px 10px!important;
}
.alms-inventory-exchange-drawer .alms-rule-stop{
  margin:0!important;
  min-height:58px!important;
  box-sizing:border-box!important;
}
.alms-inventory-exchange-drawer .alms-rule-card-actions{
  flex-wrap:nowrap!important;
}
.alms-inventory-exchange-drawer .alms-rule-card-actions button,
.alms-inventory-exchange-drawer .alms-rule-icon-button{
  width:30px!important;
  min-width:30px!important;
  height:30px!important;
  min-height:30px!important;
  padding:0!important;
  line-height:1!important;
}
@media(max-width:1320px){
  .alms-inventory-exchange-drawer .alms-rule-workspace{
    grid-template-columns:minmax(0,40fr) minmax(0,60fr)!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-base-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .alms-inventory-exchange-drawer .alms-ifelse-rule-head{
    grid-template-columns:32px minmax(0,1fr) auto!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-card-actions{
    grid-column:2/-1!important;
    justify-content:flex-end!important;
  }
}
@media(max-width:1120px){
  .alms-inventory-exchange-drawer .alms-rule-workspace{
    grid-template-columns:1fr!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-base-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@media(max-width:860px){
  .alms-inventory-exchange-drawer .alms-rule-base-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .alms-inventory-exchange-drawer .alms-conditional-rules>header{
    grid-template-columns:1fr!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-add-button{
    width:100%!important;
    min-width:0!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-logic-row{
    grid-template-columns:1fr!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-logic-row small{
    justify-self:start!important;
    text-align:left!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-condition{
    grid-template-columns:minmax(0,1fr) 82px!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-condition input{
    grid-column:1/2!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-condition .alms-rule-icon-button{
    grid-column:2!important;
    grid-row:2!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-action-row{
    grid-template-columns:54px minmax(0,1fr)!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-action-row label:last-child{
    grid-column:2!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-footer{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:580px){
  .alms-inventory-exchange-drawer .alms-rule-base-grid{
    grid-template-columns:1fr!important;
  }
  .alms-inventory-exchange-drawer .alms-ifelse-rule-head{
    grid-template-columns:28px minmax(0,1fr)!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-title-block{
    grid-template-columns:1fr!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-active,
  .alms-inventory-exchange-drawer .alms-rule-card-actions{
    grid-column:1/-1!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-card-actions{
    justify-content:flex-start!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-if{
    grid-template-columns:1fr!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-condition{
    grid-template-columns:1fr!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-condition input,
  .alms-inventory-exchange-drawer .alms-rule-condition .alms-rule-icon-button{
    grid-column:auto!important;
    grid-row:auto!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-action-row{
    grid-template-columns:1fr!important;
  }
  .alms-inventory-exchange-drawer .alms-rule-action-row label:last-child{
    grid-column:auto!important;
  }
}
