#workspace-warehouse [data-wh-tab="xnt"] .wh-of {
  --of-ink: #142b42;
  --of-muted: #697b8d;
  --of-line: #dce6ed;
  --of-tint: #f5f8fb;
  --of-blue: #2563eb;
  display: grid;
  gap: 16px;
  color: var(--of-ink);
  font-family: inherit;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-loading { cursor: progress; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--of-line);
  border-left: 4px solid #2563eb;
  border-radius: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-eyebrow {
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-hero h2 {
  margin: 6px 0 4px;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 750;
  letter-spacing: -.035em;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-hero p {
  margin: 0;
  color: var(--of-muted);
  font-size: 13px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#workspace-warehouse [data-wh-tab="xnt"] #wh-of-sync {
  color: var(--of-muted);
  font-size: 11px;
  white-space: nowrap;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-message {
  padding: 10px 14px;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  font-size: 13px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-message.bad {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-card {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--of-line);
  border-radius: 10px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-card > span {
  color: #566b7e;
  font-size: 12px;
  font-weight: 650;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-card strong {
  font-size: 27px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-card .wh-of-units {
  display: grid;
  gap: 2px;
  font-size: 21px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-units em {
  margin-left: 5px;
  color: #566b7e;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-panel {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--of-line);
  border-radius: 10px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-section-head h3 {
  margin: 0 0 2px;
  font-size: 17px;
  letter-spacing: -.025em;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-section-head span,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-head p {
  margin: 0;
  color: var(--of-muted);
  font-size: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-toolbar input,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-toolbar select,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-section-head input,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-field input,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-field select,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-field textarea {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #cbd8e3;
  border-radius: 7px;
  background: #fff;
  color: var(--of-ink);
  font: inherit;
  font-size: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-toolbar input[type="search"] {
  flex: 1 1 230px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--of-muted);
  font-size: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-toolbar input:focus-visible,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-toolbar select:focus-visible,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-field input:focus-visible,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-field select:focus-visible,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-field textarea:focus-visible,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-table { max-height: 300px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-modal[hidden] { display: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 31, 48, .52);
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-dialog {
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  padding: 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(12, 34, 56, .25);
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-head,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-actions,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-head { margin-bottom: 20px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-head h3 { margin: 4px 0 0; font-size: 22px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-close {
  border: 0;
  background: transparent;
  color: var(--of-muted);
  font-size: 26px;
  cursor: pointer;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-grid .wh-of-field { min-width: 0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-grid .wh-of-field input,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-grid .wh-of-field select,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-grid .wh-of-field textarea { width: 100%; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-lines {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  background: var(--of-tint);
  border: 1px solid var(--of-line);
  border-radius: 8px;
  font-size: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-lines > div { border-top: 1px solid var(--of-line); padding-top: 8px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-lines span { min-width: 0; white-space: normal; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-lines b { white-space: nowrap; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-drop {
  flex: none;
  width: 28px;
  height: 26px;
  margin: -4px 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--of-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-drop:hover { background: #fdebe9; color: #b42318; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-drop:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-actions { justify-content: flex-end; margin-top: 20px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-dialog.wide { width: min(1080px, 100%); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-dialog.wide .wh-of-ticket-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-dialog.wide .wh-of-span2 { grid-column: span 2; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-dialog .wh-of-message { margin-bottom: 14px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-head h3 .wh-of-pill { margin-left: 8px; vertical-align: middle; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-section { margin-top: 20px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-section h4 {
  margin: 0 0 10px;
  color: var(--of-ink);
  font-size: 13px;
  font-weight: 750;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-inline { display: flex; gap: 8px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-inline input { flex: 1 1 auto; min-width: 0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-inline .wh-btn { flex: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-result-table input[data-result-note] {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #cbd8e3;
  border-radius: 6px;
  background: #fff;
  color: var(--of-ink);
  font: inherit;
  font-size: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-result-table th { white-space: normal; vertical-align: bottom; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-result-table input[data-result-note] { width: 168px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-result-table td:first-child .wh-of-pill { margin-left: 6px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-result-table input:disabled {
  background: #f4f7fa;
  color: #8796a5;
  cursor: not-allowed;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-result-table input:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  cursor: pointer;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--of-blue);
  cursor: pointer;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof input:disabled { cursor: not-allowed; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof span { color: var(--of-ink); font-size: 11px; line-height: 1.3; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof small { margin: 0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-cell > .wh-of-proof,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-doc > .wh-of-proof { display: flex; }
@media (max-width: 620px) {
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-modal { padding: 8px; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-dialog { padding: 18px; max-height: calc(100vh - 16px); }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-grid { grid-template-columns: 1fr; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-dialog.wide .wh-of-span2 { grid-column: auto; }
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table-wrap {
  max-height: 470px;
  overflow: auto;
  border: 1px solid var(--of-line);
  border-radius: 8px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  background: #f4f8fb;
  color: #52677b;
  border-bottom: 1px solid var(--of-line);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f5;
  vertical-align: middle;
  white-space: nowrap;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table tr:last-child td {
  border-bottom: 0;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table tr.selected td {
  background: #eef5ff;
}
#workspace-warehouse [data-wh-tab="xnt"] #wh-of-orders tr[data-order] { cursor: pointer; }
#workspace-warehouse [data-wh-tab="xnt"] #wh-of-orders tr.selected td:first-child { box-shadow: inset 3px 0 0 #2563eb; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-link .wh-of-pill { margin-left: 6px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-order-open { display: block; text-align: left; text-decoration: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-order-open small { font-weight: 400; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table tr:hover td {
  background: #f7faff;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* Ô số giữ font số đều (warehouse.css: #workspace-warehouse .num), tiêu đề cột số dùng font thường như các tiêu đề khác. */
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table th.num { font-family: inherit; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table small {
  display: block;
  max-width: 230px;
  margin-top: 2px;
  color: var(--of-muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #bfd1f5;
  text-underline-offset: 3px;
  cursor: pointer;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-pill.ok { color: #047857; background: #e7f8f0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-pill.warn { color: #9a6700; background: #fff3d2; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-pill.bad { color: #b42318; background: #fdebe9; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-pill.muted { color: #526579; background: #edf2f6; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-pill.info { color: #1d4ed8; background: #e8efff; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 14px;
  background: #dbe5ee;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  overflow: hidden;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-metrics div {
  display: grid;
  gap: 4px;
  padding: 12px 15px;
  background: #f7fafc;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-metrics span {
  color: #667b8c;
  font-size: 11px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-metrics strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #53677a;
  font-size: 11px;
  font-weight: 650;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-field input { width: 100%; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-neg { color: #b42318; font-weight: 800; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-empty {
  padding: 24px !important;
  color: #748596;
  text-align: center;
  font-size: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-more { margin-top: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-stock-groups { display: grid; gap: 9px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-stock-group {
  border: 1px solid #dce6ed;
  border-radius: 8px;
  overflow: hidden;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-stock-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  background: #f7faff;
  cursor: pointer;
  list-style: none;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-stock-group summary::-webkit-details-marker { display: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-stock-group summary:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-stock-group summary strong { flex: 1; font-size: 13px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-stock-group summary span:last-child { color: #697b8d; font-size: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-stock-chevron { color: #2563eb; font-size: 22px; line-height: 1; transition: transform .15s; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-stock-group[open] .wh-of-stock-chevron { transform: rotate(90deg); }
@media (max-width: 650px) {
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-hero { align-items: flex-start; padding: 18px; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-hero-actions { align-items: flex-end; flex-direction: column-reverse; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-cards { gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-card { padding: 12px; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-metrics { grid-template-columns: repeat(2, 1fr); }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-panel { padding: 12px; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-table-wrap { scrollbar-width: thin; scrollbar-color: #9db9d5 #eef3f7; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-table th:first-child,
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 1px 0 0 #dce6ed;
  }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-table th:first-child { z-index: 3; background: #f4f8fb; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-table tr.selected td:first-child { background: #eef5ff; }
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-head-actions select {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #cbd8e3;
  border-radius: 7px;
  background: #fff;
  color: var(--of-ink);
  font: inherit;
  font-size: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] fieldset.wh-of-field {
  margin: 0;
  padding: 0;
  border: 0;
}
#workspace-warehouse [data-wh-tab="xnt"] fieldset.wh-of-field legend { margin-bottom: 5px; padding: 0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-branch > div { display: flex; flex-wrap: wrap; gap: 6px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-branch label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #cbd8e3;
  border-radius: 7px;
  background: #fff;
  color: var(--of-ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-branch label:has(input:checked) {
  border-color: var(--of-blue);
  background: #eef5ff;
  color: #1d4ed8;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-branch label:has(input:disabled) { cursor: not-allowed; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-branch label:focus-within { outline: 2px solid var(--of-blue); outline-offset: 1px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-field.wh-nk-branch input,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-grid .wh-of-field.wh-nk-branch input,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-grid .wh-of-field .wh-nk-chips input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--of-blue);
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-lines input,
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-lines select {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #cbd8e3;
  border-radius: 6px;
  background: #fff;
  color: var(--of-ink);
  font: inherit;
  font-size: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table.wh-nk-lines th,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table.wh-nk-lines td { padding-left: 8px; padding-right: 8px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-lines input[data-nk-product] { width: 220px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-lines input[data-nk-doc],
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-lines input[data-nk-actual] { width: 88px; text-align: right; font-variant-numeric: tabular-nums; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-lines input[data-nk-lot] { width: 84px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-lines input[data-nk-exp] { width: 136px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-lines input[data-nk-actual]:not(:disabled) { border-color: #9db8f5; background: #f7faff; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-add { margin-top: 10px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-chips { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-bottom: 6px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-static {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--of-ink);
  font-size: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-field em[data-nk-evidence] { color: #b42318; font-style: normal; font-weight: 700; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-field em[data-nk-evidence][hidden] { display: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-photos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-photo {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--of-line);
  border-radius: 8px;
  background: var(--of-tint);
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-photo button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 31, 48, .72);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-photo button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-upload { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-field .wh-nk-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-upload:focus-within { outline: 2px solid var(--of-blue); outline-offset: 2px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-none { color: var(--of-muted); font-size: 12px; font-weight: 500; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-cancel { margin-right: auto; color: #b42318; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-dialog .wh-of-field { align-content: start; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-purpose { display: inline-flex; flex-wrap: wrap; gap: 4px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-count-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-count { display: flex; align-items: center; gap: 6px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-count input {
  width: 88px;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #cbd8e3;
  border-radius: 6px;
  background: #fff;
  color: var(--of-ink);
  font: inherit;
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-count input:focus-visible { outline: 2px solid var(--of-blue); outline-offset: 1px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-count .wh-btn { min-height: 32px; padding: 5px 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-pill + .wh-of-pill { margin-left: 4px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-add-order { max-width: 560px; margin-top: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-add-order select { width: 100%; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-carrier-hint { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-carrier-hint:empty { display: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-chip {
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid #cbd8e3;
  border-radius: 999px;
  background: var(--of-tint);
  color: var(--of-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-chip:hover { border-color: var(--of-blue); color: var(--of-blue); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-chip:focus-visible { outline: 2px solid var(--of-blue); outline-offset: 2px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-carrier-add {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-carrier-add .wh-of-field input,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-carrier-add .wh-of-field select { width: 100%; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-carrier-table input:not([type="checkbox"]),
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-carrier-table select {
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #cbd8e3;
  border-radius: 6px;
  background: #fff;
  color: var(--of-ink);
  font: inherit;
  font-size: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-carrier-table input:focus-visible,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-carrier-table select:focus-visible { outline: 2px solid var(--of-blue); outline-offset: 1px; }
@media (max-width: 620px) {
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-carrier-add { grid-template-columns: 1fr; }
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-field[hidden] { display: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-grid .wh-of-field .wh-of-proof input { width: 16px; height: 16px; min-height: 0; padding: 0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-grid .wh-of-field .wh-of-proof { min-height: 36px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-grid .wh-of-field .wh-of-proof small { display: block; color: var(--of-muted); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-eod-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin-bottom: 14px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-eod-bar .wh-of-field { min-width: 180px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-eod-sum { display: grid; gap: 2px; margin-right: auto; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-eod-sum strong { font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-eod-sum span { color: var(--of-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-order-cards { display: grid; gap: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-versions { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-restock { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--of-ink); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-restock[hidden] { display: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-versions > li { padding: 10px 12px; border: 1px solid var(--of-line); border-radius: 8px; font-size: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-versions ul { margin: 6px 0 0; padding-left: 18px; color: var(--of-ink); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-btn.danger { border-color: #f1b8b0; color: #b42318; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-btn.danger:hover { border-color: #b42318; background: #fdebe9; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-push-left { margin-right: auto; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-row-actions { display: flex; gap: 6px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table td.wh-of-wrap { min-width: 220px; white-space: normal; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-delete-reason { margin-top: 16px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-delete-reason textarea { width: 100%; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-order-card { padding: 14px; border: 1px solid var(--of-line); border-radius: 10px; background: #fbfdff; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-order-card-head { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-order-card-head small { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--of-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-order-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-order-card-foot .wh-of-carrier-hint { margin-top: 0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-order-card-foot .wh-btn { margin-left: auto; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-grid .wh-of-field { align-content: start; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border: 1px solid var(--of-line); border-radius: 999px; background: #fff; color: var(--of-ink); font: inherit; font-size: 12px; cursor: pointer; transition: border-color .15s, background-color .15s; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-chip b { color: var(--of-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-chip:hover { border-color: #9db9d5; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-chip[aria-pressed="true"],
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-chip[data-xm-on] { border-color: var(--of-blue); background: #eef5ff; color: #1d4ed8; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-chip[aria-pressed="true"] b { color: inherit; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-hist-row { cursor: pointer; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-hist-toggle { display: inline-flex; align-items: baseline; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-hist-toggle::before { content: '\25B8'; flex: none; color: var(--of-muted); transition: transform .15s; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-hist-toggle[aria-expanded="true"]::before { transform: rotate(90deg); color: var(--of-blue); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-chip:focus-visible,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-hist-toggle:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table tr.wh-of-hist-detail > td { position: static; padding: 4px 12px 12px; background: #f7faff; box-shadow: none; white-space: normal; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table .wh-of-diff { width: 100%; border: 1px solid var(--of-line); border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table .wh-of-diff th { position: static; padding: 6px 10px; box-shadow: none; font-size: 11px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table .wh-of-diff td { position: static; padding: 6px 10px; background: #fff; box-shadow: none; white-space: normal; vertical-align: top; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table .wh-of-diff td.old { color: var(--of-muted); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-table .wh-of-diff td.new { color: var(--of-ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-chip,
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-hist-toggle::before { transition: none; }
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-wait { color: var(--of-muted); font-size: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-files { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 56px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-files input[hidden] { display: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-file { position: relative; display: inline-flex; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-thumb {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--of-line);
  border-radius: 8px;
  background: var(--of-tint);
  color: var(--of-muted);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: zoom-in;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-thumb:hover { border-color: #9db9d5; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-x {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--of-line);
  border-radius: 99px;
  background: #fff;
  color: var(--of-muted);
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(20, 20, 25, .08);
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-x:hover { border-color: #f1b8b0; color: #b42318; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-up { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; font-size: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-up svg { flex: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-up:disabled,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-x:disabled { opacity: .55; cursor: progress; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-thumb:focus-visible,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-x:focus-visible,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-up:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
/* 26/10 — màn chia 4 thẻ (Quản lý xuất nhập · nhập kho · xuất kho · tồn kho) + bảng tổng xnt-master.js */
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-cardbar {
  display: inline-flex;
  flex-wrap: wrap;
  justify-self: start;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--of-line);
  border-radius: 10px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-cardtab {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--of-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-cardtab:hover { background: var(--of-tint); color: var(--of-ink); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-cardtab[aria-selected="true"] { background: #eef5ff; color: #1d4ed8; box-shadow: inset 0 0 0 1px #c9dafc; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-cardtab:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-pane { display: grid; gap: 16px; min-width: 0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-pane[hidden] { display: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-wrap { max-height: max(470px, calc(100vh - 280px)); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table th { min-width: 84px; white-space: normal; vertical-align: bottom; line-height: 1.35; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-xm-c1,
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-xm-c2 { position: sticky; z-index: 2; background: #fff; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-xm-c1 { left: 0; box-sizing: border-box; width: 128px; min-width: 128px; max-width: 128px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-xm-c2 { left: 128px; box-shadow: 1px 0 0 var(--of-line); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table th.wh-xm-c1,
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table th.wh-xm-c2 { z-index: 3; background: #f4f8fb; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table tr.wh-xm-band th {
  height: 28px;
  padding: 0 12px;
  box-sizing: border-box;
  line-height: 27px;
  white-space: nowrap;
  vertical-align: middle;
  color: var(--of-ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table tr.wh-xm-band th[scope="colgroup"] { background: #eef5ff; box-shadow: inset 3px 0 0 var(--of-blue); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table tr.wh-xm-head th { top: 28px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table tr.wh-xm-head:first-child th { top: 0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table td.wh-xm-customer { min-width: 240px; max-width: 320px; white-space: normal; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table td.wh-xm-customer strong { display: block; font-weight: 700; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-btn { min-height: 32px; padding: 4px 12px; font-size: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table select {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #cbd8e3;
  border-radius: 6px;
  background: #fff;
  color: var(--of-ink);
  font: inherit;
  font-size: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table select:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table select:disabled,
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-btn:disabled { opacity: .55; cursor: progress; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-of-link.wh-xm-none { color: var(--of-muted); font-weight: 600; text-decoration-color: var(--of-line); }
/* Ô CT nhận file kéo thả (12/11) */
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table td.wh-xm-dz > span.wh-xm-none { color: var(--of-muted); font-weight: 600; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table td.wh-xm-dz.is-over { outline: 2px dashed var(--of-blue); outline-offset: -3px; background: #eef5ff; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table td.wh-xm-dz.is-busy { color: var(--of-muted); cursor: progress; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-of-link:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-search { flex: 1 1 240px; max-width: 360px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-search:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-drop {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  margin: auto;
  padding: 20px 24px 24px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--of-ink);
  box-shadow: 0 24px 80px rgba(12, 34, 56, .25);
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-drop::backdrop { background: rgba(15, 31, 48, .52); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-drop .wh-of-ticket-head { margin-bottom: 16px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-drop h3 { font-size: 17px; }
@media (max-width: 650px) {
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-cardbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-self: stretch; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-cardtab { padding: 8px; white-space: normal; }
}
@media (max-width: 480px) {
  #workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table th,
  #workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table td { padding-left: 8px; padding-right: 8px; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-xm-c1 { width: 120px; min-width: 120px; max-width: 120px; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-xm-c2 { left: 120px; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-btn,
  #workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table select,
  #workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-of-chip,
  #workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-of-link { min-height: 40px; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-xm-search { min-height: 40px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-cardtab { transition: none; }
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-hub-tabs { display: flex; gap: 4px; margin: -8px 0 16px; overflow: auto hidden; box-shadow: inset 0 -1px 0 var(--of-line); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-hub-tab {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  white-space: nowrap;
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--of-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-hub-tab:hover { color: var(--of-ink); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-hub-tab[aria-current="true"] { color: #1d4ed8; border-bottom-color: var(--of-blue); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-hub-tab:focus-visible { outline: 2px solid var(--of-blue); outline-offset: -2px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop .wh-of-ticket-section:first-child { margin-top: 0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-sum { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-sum small { color: var(--of-muted); font-size: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-p { margin: 0; color: var(--of-muted); font-size: 13px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-list { display: grid; gap: 8px; margin: 0; padding-left: 18px; font-size: 13px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-list li > * { display: block; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-list span { color: var(--of-muted); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-list em { font-style: normal; color: #b42318; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop .wh-of-table th[scope="row"] { position: static; text-align: left; white-space: nowrap; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop tr.wh-xm-pop-x td { background: #fff5f4; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop td.wh-xm-pop-lech { background: #fdecee; color: #b42318; font-weight: 800; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-sh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 10px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-sh h4 { margin: 0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-lg { display: inline-flex; gap: 6px; font-size: 11.5px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-q { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 4px; background: #e8efff; color: #1d4ed8; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 25%, transparent); font-weight: 700; text-align: center; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-q.wh-xm-q-t { background: #f3eafb; color: #7b3fb0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-hds { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-hds > li { padding: 12px 16px; border: 1px solid var(--of-line); border-left: 3px solid var(--of-blue); border-radius: 8px; background: #fff; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-hds > li.off { border-left-color: var(--of-line); background: var(--of-tint); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-hd span { color: var(--of-muted); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-hds dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; margin: 12px 0 0; font-size: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-hds dt { color: var(--of-muted); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-hds dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-btn { padding: 0; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-btn:hover .wh-of-pill { box-shadow: 0 0 0 2px #bfd1f5; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop-btn:focus-visible { outline: 2px solid var(--of-blue); outline-offset: 2px; border-radius: 4px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-file { white-space: nowrap; }
@media (max-width: 480px) {
  #workspace-warehouse [data-wh-tab="xnt"] .wh-xm-pop { padding: 16px; }
  #workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table .wh-xm-pop-btn { min-height: 40px; }
}
/* 28/10 chiều — «Cập nhật thực xuất & nhận»: bảng SKU nhập thẳng (hộp riêng + mục Ticket) */
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-table td small { display: block; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-table .wh-of-purpose { margin-top: 4px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-table input {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #cbd8e3;
  border-radius: 6px;
  background: #fff;
  color: var(--of-ink);
  font: inherit;
  font-size: 12px;
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-table input[type="number"] { width: 88px; text-align: right; font-variant-numeric: tabular-nums; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-table input:disabled { background: #f4f7fa; color: #8796a5; cursor: not-allowed; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-table input:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-ticket-dialog.wide.xl { width: min(1240px, 100%); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-table tfoot td,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-table tfoot tr:hover td { position: static; padding: 12px; border-top: 1px solid var(--of-line); background: var(--of-tint); box-shadow: none; white-space: normal; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-doc { display: grid; align-content: start; gap: 8px; min-width: 0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-doc > span { color: var(--of-ink); font-size: 12px; font-weight: 700; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-doc .wh-of-proof-files { min-height: 0; gap: 8px; }
@media (max-width: 760px) {
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-docs { grid-template-columns: 1fr; }
}
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-order { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 8px; color: var(--of-muted); font-size: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-order strong { color: var(--of-ink); font-size: 13px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-chip[data-xm-retry] { border-color: #f4b4ae; background: #fdebe9; color: #b42318; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-chip[data-xm-retry]:hover { border-color: #b42318; color: #b42318; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table select.wh-xm-pgh { padding: 3px 24px 3px 10px; border-color: transparent; border-radius: 999px; font-size: 11px; font-weight: 700; cursor: pointer; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table select.wh-xm-pgh.info { color: #1d4ed8; background-color: #e8efff; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table select.wh-xm-pgh.ok { color: #047857; background-color: #e7f8f0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table select.wh-xm-pgh:hover { border-color: currentColor; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-xm-table select.wh-xm-pgh option { color: var(--of-ink); background: #fff; font-weight: 400; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-files[data-proof-paste] { padding: 8px; border: 1px dashed #cbd8e3; border-radius: 8px; background: #fff; outline: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-files[data-proof-paste]:focus,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-proof-files[data-proof-paste]:focus-within { border-color: var(--of-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-result-table td { vertical-align: top; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-result-table td.wh-of-proof-cell { min-width: 168px; white-space: normal; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-result-table input[data-result-note] { width: 152px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-result-table td:first-child { min-width: 168px; max-width: 216px; white-space: normal; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-result-table .wh-of-proof-cell .wh-of-proof-files { min-height: 0; margin-top: 8px; gap: 8px; }
/* 29/10 — Thông tin giao hàng gộp · Kết quả giao tự động · thực xuất & nhận lệch tô đỏ */
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-info-section { margin-top: 0; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-info-section .wh-of-ticket-grid + .wh-of-order-cards { margin-top: 14px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-info-section .wh-of-field input:disabled,
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-info-section .wh-of-field select:disabled { background: #f4f7fa; color: #8796a5; cursor: not-allowed; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-result-table td[data-result] { min-width: 120px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-table input.wh-of-lech { border-color: #e8a29a; background: #fff5f4; color: #b42318; font-weight: 700; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-table input[data-real-f="n"] { width: 220px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-table input[data-real-f="n"]:not(:placeholder-shown) { border-color: #fdab3d; background: #fff4e5; color: var(--of-ink); }
/* 29/10 — Lịch sử sửa số dưới bảng thực xuất & nhận */
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-hist { margin-top: 8px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-hist > summary { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 0; color: var(--of-blue); font-size: 12px; font-weight: 600; list-style: none; cursor: pointer; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-hist > summary::-webkit-details-marker { display: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-hist > summary::before { content: '\25B8'; flex: none; color: var(--of-muted); transition: transform .15s; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-hist[open] > summary::before { transform: rotate(90deg); color: var(--of-blue); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-hist > summary:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-hist > div { max-height: 280px; margin-top: 6px; overflow-y: auto; }
@media (prefers-reduced-motion: reduce) {
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-real-hist > summary::before { transition: none; }
}
/* 07/11 GĐ5 — tab «Tổng xuất nhập 3 miền» (xnt-tong.js): cột đầu «Miền hàng» ghim trái, Mã ticket · Đơn hàng dời sang phải. */
#workspace-warehouse [data-wh-tab="tong"] .wh-xm-table .wh-xm-c0 { position: sticky; left: 0; z-index: 2; box-sizing: border-box; width: 92px; min-width: 92px; max-width: 92px; background: #fff; font-weight: 600; white-space: nowrap; }
#workspace-warehouse [data-wh-tab="tong"] .wh-xm-table th.wh-xm-c0 { z-index: 3; background: #f4f8fb; }
#workspace-warehouse [data-wh-tab="tong"] .wh-xm-table .wh-xm-c1 { left: 92px; }
#workspace-warehouse [data-wh-tab="tong"] .wh-xm-table .wh-xm-c2 { left: 220px; }
@media (max-width: 480px) {
  #workspace-warehouse [data-wh-tab="tong"] .wh-xm-table .wh-xm-c2 { left: 212px; }
}
/* Quản lý xuất kho — bảng «Bán hàng · số lượng theo MISA» gộp dòng 0đ chưa phân loại + đơn nghi sai kho (export-view.js, cả tab Xuất kho cũ). */
#workspace-warehouse .wh-ev-chips:empty { display: none; }
#workspace-warehouse .wh-ev-chips { margin: 0 0 12px; }
#workspace-warehouse .wh-ev-chipbar { display: flex; flex-wrap: wrap; gap: 6px; }
#workspace-warehouse .wh-ev-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border: 1px solid #dce6ed; border-radius: 999px; background: #fff; color: #142b42; font: inherit; font-size: 12px; cursor: pointer; transition: border-color .15s, background-color .15s; }
#workspace-warehouse .wh-ev-chip b { color: #697b8d; font-weight: 700; font-variant-numeric: tabular-nums; }
#workspace-warehouse .wh-ev-chip.warn b { color: #9a6700; }
#workspace-warehouse .wh-ev-chip.bad b { color: #b42318; }
#workspace-warehouse .wh-ev-chip:hover { border-color: #9db9d5; }
#workspace-warehouse .wh-ev-chip[aria-pressed="true"] { border-color: #2563eb; background: #eef5ff; color: #1d4ed8; }
#workspace-warehouse .wh-ev-chip[aria-pressed="true"] b { color: inherit; }
#workspace-warehouse .wh-ev-chip:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
#workspace-warehouse .wh-ev-chips .wh-error { margin-top: 8px; }
#workspace-warehouse .wh-table tr.wh-ev-zero > td { background: #fffbeb; }
#workspace-warehouse .wh-ev-zpill { display: inline-flex; padding: 2px 8px; border-radius: 999px; color: #9a6700; background: #fff3d2; font-size: 11px; font-weight: 700; white-space: nowrap; }
#workspace-warehouse .wh-ev-cls { width: 100%; min-width: 240px; min-height: 30px; background: #fff; }
@media (prefers-reduced-motion: reduce) {
  #workspace-warehouse .wh-ev-chip { transition: none; }
}
/* Ticket nhập kho — thanh Excel online (Mở file · Đồng bộ ngay · Tải form · Import) + hộp xem trước Import Excel (import-ticket.js). */
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-excel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--of-line); border-radius: 10px; background: var(--of-tint); }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-excel-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; color: var(--of-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-excel-info strong { color: var(--of-ink); font-size: 13px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-excel-info .bad { color: #b42318; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-excel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-excel-actions a.wh-btn { display: inline-flex; align-items: center; text-decoration: none; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-issues { flex-basis: 100%; color: var(--of-ink); font-size: 12px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-issues summary { color: #b42318; font-weight: 600; cursor: pointer; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-issues summary:focus-visible { outline: 2px solid var(--of-blue); outline-offset: 2px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-issues ul { display: grid; gap: 2px; margin: 6px 0 0; padding-left: 18px; }
#workspace-warehouse [data-wh-tab="xnt"] .wh-nk-up-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
@media (max-width: 650px) {
  #workspace-warehouse [data-wh-tab="xnt"] .wh-of-items tfoot td:first-child { position: static; background: inherit; box-shadow: none; }
}
