/* Warehouse settings aligned with the current Chuem workspace. */
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: calc(100vh - 66px) !important;
  height: calc(100dvh - 66px) !important;
  min-height: 0 !important;
  max-height: calc(100vh - 66px) !important;
  max-height: calc(100dvh - 66px) !important;
  padding: 0 0 18px !important;
  overflow: hidden !important;
  color: #17243d !important;
  background: #f7f9fc !important;
  font-family: Inter, Arial, sans-serif !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 92px !important;
  gap: 12px !important;
  align-items: end !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 7px 13px 8px !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 8px !important;
  background: rgba(240, 248, 253, 0.94) !important;
  box-shadow: 0 8px 22px rgba(27, 50, 84, 0.08) !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-search {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-search > label {
  color: #66758e !important;
  font-size: 8px !important;
  font-weight: 500 !important;
  line-height: 10px !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-search-control {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 34px !important;
  min-width: 0 !important;
  border: 1px solid #cfdae8 !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-search-control > span {
  display: grid !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  place-items: center !important;
  color: #73839b !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-search-control > span svg,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-search-control > button svg,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-search-button svg {
  width: 14px !important;
  height: 14px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-search-control .field {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #263750 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  outline: 0 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-search-control .field::placeholder {
  color: #8996aa !important;
  opacity: 1 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-search-control:focus-within {
  border-color: #77aee8 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-search-control > button {
  display: grid !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  place-items: center !important;
  border: 0 !important;
  color: #708097 !important;
  background: transparent !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-search-control > button:disabled {
  visibility: hidden !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-search-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  box-sizing: border-box !important;
  width: 92px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 7px !important;
  color: #fff !important;
  background: linear-gradient(90deg, #3159cf 0%, #289ed9 100%) !important;
  box-shadow: 0 5px 12px rgba(39, 96, 190, 0.2) !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-table-panel {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid #dce5ef !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 9px 24px rgba(25, 48, 82, 0.08) !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-table-head {
  display: flex !important;
  flex: 0 0 60px !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e9f1 !important;
  background: #fff !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-table-head h2 {
  margin: 0 !important;
  color: #17243d !important;
  font-family: Manrope, Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  letter-spacing: 0 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-table-head .subtle {
  display: block !important;
  margin-top: 3px !important;
  color: #7a879b !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  line-height: 12px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0 !important;
  height: 30px !important;
  overflow: hidden !important;
  border: 1px solid #dbe4ef !important;
  border-radius: 7px !important;
  background: #f7f9fc !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-summary span {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  min-width: 108px !important;
  height: 30px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: left !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-summary span + span {
  border-left: 1px solid #dbe4ef !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-summary i {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #36c6a1 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-summary em {
  color: #697990 !important;
  font-size: 9px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 11px !important;
  text-transform: none !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-summary b {
  margin-left: auto !important;
  color: #243650 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 13px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-table-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
  background: #fff !important;
  scrollbar-color: #bac8da transparent !important;
  scrollbar-width: thin !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-table {
  width: 100% !important;
  min-width: 1030px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: #34445c !important;
  background: #fff !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 9px !important;
  table-layout: auto !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-table th,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-table td {
  box-sizing: border-box !important;
  height: 52px !important;
  padding: 6px 10px !important;
  border-right: 1px solid #e0e7ef !important;
  border-bottom: 1px solid #e0e7ef !important;
  color: #40516a !important;
  background: #fff !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  line-height: 12px !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  height: 36px !important;
  padding: 0 10px !important;
  color: #f5f9ff !important;
  background: #1b3152 !important;
  font-size: 8px !important;
  font-weight: 600 !important;
  line-height: 10px !important;
  text-align: center !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-table th:first-child,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-table td:first-child {
  width: 250px !important;
  min-width: 250px !important;
  text-align: left !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-table tbody tr.active td,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-table tbody tr:hover td {
  background: #f8fbfe !important;
  background-image: none !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-table tbody tr.emergency-stopped td {
  background: #fff7f7 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-product-cell {
  min-width: 250px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-product {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-product-photo {
  display: grid !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 40px !important;
  place-items: center !important;
  overflow: hidden !important;
  border: 1px solid #dce4ee !important;
  border-radius: 7px !important;
  background: #eef3f8 !important;
  color: #61738c !important;
  font-size: 8px !important;
  font-weight: 600 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-product b {
  max-width: 190px !important;
  color: #263750 !important;
  font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 13px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-product small {
  max-width: 190px !important;
  margin-top: 3px !important;
  color: #8491a4 !important;
  font-size: 8px !important;
  font-weight: 400 !important;
  line-height: 10px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-wb-cell {
  color: #3469b5 !important;
  font-weight: 600 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-sizes-cell {
  min-width: 150px !important;
  max-width: 220px !important;
  color: #516078 !important;
  font-size: 8px !important;
  font-weight: 400 !important;
  line-height: 12px !important;
  text-align: left !important;
  white-space: normal !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-order-input {
  width: 48px !important;
  height: 28px !important;
  border: 1px solid #cbd7e5 !important;
  border-radius: 6px !important;
  color: #34465f !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 9px !important;
  font-weight: 600 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-order-input:focus {
  border-color: #6aa6e8 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-status {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 78px !important;
  min-height: 24px !important;
  padding: 0 8px !important;
  border: 1px solid #d7e0eb !important;
  border-radius: 6px !important;
  color: #74839a !important;
  background: #f5f7fa !important;
  font-size: 8px !important;
  font-weight: 500 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-status.active {
  border-color: #bfe7dc !important;
  color: #25866c !important;
  background: #edf9f5 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-emergency-cell,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-switch-cell,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-order-cell {
  text-align: center !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-switch-cell .warehouse-accounting-switch {
  display: inline-block !important;
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  inline-size: 46px !important;
  min-inline-size: 46px !important;
  max-inline-size: 46px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  block-size: 24px !important;
  aspect-ratio: 23 / 12 !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #d8e1ec !important;
  box-shadow: inset 0 1px 2px rgba(12, 41, 92, 0.16) !important;
  transition: background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-switch-cell .warehouse-accounting-switch span {
  top: 3px !important;
  left: 3px !important;
  width: 18px !important;
  height: 18px !important;
  background: #fff !important;
  box-shadow: 0 2px 5px rgba(18, 45, 83, 0.24) !important;
  transition: transform 0.18s ease !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-switch-cell .warehouse-accounting-switch.on {
  background: linear-gradient(90deg, #2853c7 0%, #347bed 66%, #2eb5d6 100%) !important;
  box-shadow: inset 0 1px 2px rgba(12, 41, 92, 0.18), 0 3px 8px rgba(41, 91, 196, 0.16) !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-switch-cell .warehouse-accounting-switch.on span {
  transform: translateX(22px) !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-emergency-open-button {
  min-width: 90px !important;
  min-height: 28px !important;
  padding: 0 8px !important;
  border-radius: 6px !important;
  font-size: 8px !important;
}

@media (max-width: 900px) {
  #app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-toolbar {
    grid-template-columns: minmax(0, 1fr) 82px !important;
  }

  #app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-settings-search-button {
    width: 82px !important;
  }
}

/* Settings follows the same clean command bar and transparent workspace as the
   stock, accounting and FBO pages.  Dedicated classes intentionally replace
   the legacy .panel surface so no inherited rectangle can reappear. */
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-toolbar {
  grid-template-columns: minmax(0, 1fr) 126px !important;
  gap: 12px !important;
  align-items: end !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 7px 13px !important;
  border: 1px solid rgba(211, 224, 239, 0.92) !important;
  border-radius: 15px !important;
  background: rgba(249, 253, 255, 0.96) !important;
  box-shadow: none !important;
  filter: none !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-toolbar::before,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-toolbar::after,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table-region::before,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table-region::after {
  display: none !important;
  content: none !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-search {
  grid-template-rows: 11px 34px !important;
  gap: 0 !important;
  height: 45px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-search > label {
  padding-left: 1px !important;
  color: #6f7f95 !important;
  font-size: 7.5px !important;
  font-weight: 600 !important;
  line-height: 11px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-search-control {
  height: 34px !important;
  border-color: #d4dfed !important;
  border-radius: 9px !important;
  background: #f8fbff !important;
  box-shadow: none !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-search-button {
  width: 126px !important;
  height: 30px !important;
  margin-bottom: 2px !important;
  border-radius: 8px !important;
  background-color: #2858d3 !important;
  background-image: url("/assets/e4/active-gradient.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  box-shadow: 0 4px 10px rgba(41, 86, 196, 0.18) !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table-region,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table-panel {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table-head {
  flex-basis: 50px !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 14px !important;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table-scroll {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table {
  background: transparent !important;
}

/* Explicit column alignment: these selectors are intentionally stronger than
   the generic centered table-cell rule. */
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table td.warehouse-settings-sizes-cell,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table td.warehouse-settings-wb-cell {
  text-align: left !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table td.warehouse-settings-wb-cell .copy-article-value {
  justify-content: flex-start !important;
  text-align: left !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table .copy-article-value {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 18px !important;
  overflow: visible !important;
  cursor: copy !important;
  transition: transform 0.16s ease, color 0.16s ease, filter 0.16s ease !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table .copy-article-value .copy-article-button {
  display: none !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table .copy-article-value:hover,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table .copy-article-value:focus-visible {
  color: #285dcc !important;
  filter: drop-shadow(0 3px 5px rgba(40, 93, 204, 0.14)) !important;
  transform: translateY(-2px) !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table .copy-article-value.copied .copy-article-text,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table .copy-article-value.copy-error .copy-article-text {
  opacity: 0 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table .copy-article-value.copied::after,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table .copy-article-value.copy-error::after {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  color: #27866e !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  content: "Скопировано" !important;
  transform: translateY(-50%) !important;
  animation: warehouse-settings-copy-note 0.2s ease both !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table .copy-article-value.copy-error::after {
  color: #7b8799 !important;
  content: "Нажмите для копии" !important;
}

@keyframes warehouse-settings-copy-note {
  from { opacity: 0; transform: translateY(-30%); }
  to { opacity: 1; transform: translateY(-50%); }
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table td.warehouse-settings-order-cell {
  text-align: center !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-table .warehouse-settings-order-input {
  display: block !important;
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center !important;
}

@media (max-width: 900px) {
  #app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-toolbar {
    grid-template-columns: minmax(0, 1fr) 108px !important;
  }

  #app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-settings .warehouse-settings-search-button {
    width: 108px !important;
  }
}
