#workspace-warehouse [data-wh-tab="xnt"] .wh-of-stock-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-stock-actions input { min-width: 190px; }
.whse-overlay { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 20px; background: rgba(15, 31, 48, .55); }
.whse-dialog { width: min(1100px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 24px; border-radius: 14px; border-top: 4px solid #2563eb; background: #fff; box-shadow: 0 24px 64px rgba(15, 31, 48, .22); color: #142b42; font-family: inherit; }
.whse-head, .whse-actions, .whse-footer, .whse-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.whse-head span { color: #2563eb; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.whse-head h3 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.03em; }
.whse-head > button { border: 0; background: transparent; color: #697b8d; font-size: 28px; cursor: pointer; }
.whse-dialog .wh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 13px; border: 1px solid #cbd8e3; border-radius: 7px; background: #fff; color: #142b42; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.whse-dialog .wh-btn.primary { border-color: #2563eb; background: #2563eb; color: #fff; }
.whse-dialog .wh-btn:disabled { opacity: .5; cursor: wait; }
.whse-actions { justify-content: flex-start; }
.whse-file { position: relative; cursor: pointer; }
.whse-file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.whse-file:has(input:disabled) { opacity: .5; cursor: wait; }
.whse-file:focus-within, .whse-dialog button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
#whse-preview { min-height: 0; overflow: hidden; }
.whse-summary { padding: 12px 14px; border: 1px solid #dce6ed; border-radius: 8px 8px 0 0; background: #f5f8fb; font-size: 12px; }
.whse-summary strong { font-size: 14px; }
.whse-summary span { color: #697b8d; }
.whse-table-wrap { max-height: min(54vh, 520px); overflow: auto; border: 1px solid #dce6ed; border-top: 0; border-radius: 0 0 8px 8px; }
.whse-table-wrap table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 12px; }
.whse-table-wrap th, .whse-table-wrap td { padding: 10px 12px; border-bottom: 1px solid #e8eef3; text-align: left; vertical-align: middle; }
.whse-table-wrap th { position: sticky; top: 0; background: #f5f8fb; color: #526b80; font-weight: 700; }
.whse-table-wrap td strong { display: block; }
.whse-table-wrap td small { display: block; margin-top: 2px; color: #697b8d; }
.whse-table-wrap .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.whse-bad { color: #b42318; font-weight: 650; }
.whse-ok { color: #087443; font-weight: 650; }
.whse-error { color: #b42318; font-size: 12px; }
.whse-error:empty { display: none; }
.whse-footer { justify-content: flex-end; padding-top: 12px; border-top: 1px solid #e8eef3; }
.whse-dialog [hidden] { display: none !important; }
@media (max-width: 650px) {
  .whse-overlay { padding: 8px; }
  .whse-dialog { padding: 16px; max-height: calc(100vh - 16px); }
  .whse-head h3 { font-size: 18px; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-stock-actions { width: 100%; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-stock-actions input { flex: 1; }
}
