/* Order lists on the workspace background: Tổng quan, Đơn hàng, Đơn của tôi, Việc của tôi (Kinh doanh,
   Kỹ thuật, Kế hoạch) and the Điều phối / Vận hành order lists. No box around the list or the table; a
   light header row, thin lines between orders, and a tint on hover or keyboard focus. Filters, status
   tags, paging and whole-row opening stay as they are. Loaded last. */

.workspace-v2:not(.driver-mode) { --order-list-cell-padding: clamp(10px, 1vw, 16px); }

/* Table lists (Tổng quan, Đơn hàng, Đơn của tôi and order queues in Việc của tôi). */
.workspace-v2:not(.driver-mode) .sales-work-table.list-table { min-width: 760px; }
.workspace-v2:not(.driver-mode) .list-table th:nth-child(1) { width: 16%; }
.workspace-v2:not(.driver-mode) .list-table th:nth-child(2) { width: 26%; }
.workspace-v2:not(.driver-mode) .list-table th:nth-child(3) { width: 22%; }
.workspace-v2:not(.driver-mode) .list-table th:is(:nth-child(4), :nth-child(5)) { width: 18%; }
.workspace-v2:not(.driver-mode) .tracking-table th:nth-child(1) { width:15%; }
.workspace-v2:not(.driver-mode) .tracking-table th:nth-child(2) { width:24%; }
.workspace-v2:not(.driver-mode) .tracking-table th:nth-child(3) { width:18%; }
.workspace-v2:not(.driver-mode) .tracking-table th:is(:nth-child(4),:nth-child(5)) { width:15%; }
.workspace-v2:not(.driver-mode) .tracking-table th:nth-child(6) { width:13%; }
.workspace-v2:not(.driver-mode) .tracking-table .order-date { white-space:normal; overflow-wrap:normal; }
.workspace-v2:not(.driver-mode) .list-table :is(th, td) {
  padding-inline: var(--order-list-cell-padding);
  overflow-wrap: anywhere;
}
.workspace-v2:not(.driver-mode) .list-table th { white-space: normal; }
.workspace-v2:not(.driver-mode) .planning-work-table.list-table { min-width:0; table-layout:fixed; }
.workspace-v2:not(.driver-mode) .planning-work-table th:nth-child(1) { width:25%; }
.workspace-v2:not(.driver-mode) .planning-work-table th:nth-child(2) { width:50%; }
.workspace-v2:not(.driver-mode) .planning-work-table th:nth-child(3) { width:25%; }
@media (max-width:600px) {
  .workspace-v2:not(.driver-mode) .planning-work-table :is(th,td) { padding:8px 5px; font-size:12px; }
  .workspace-v2:not(.driver-mode) .planning-work-table th:nth-child(1) { width:29%; }
  .workspace-v2:not(.driver-mode) .planning-work-table th:nth-child(2) { width:41%; }
  .workspace-v2:not(.driver-mode) .planning-work-table th:nth-child(3) { width:30%; }
  .planning-work-table .workflow-badge { white-space:normal; }
}
.workspace-v2:not(.driver-mode) :is(#tracking-workspace, #order-list-panel) .order-table-scroll {
  border: 0; border-radius: 0; background: transparent;
}
.workspace-v2:not(.driver-mode) :is(#tracking-workspace, #order-list-panel) .list-table th {
  background: var(--ui-surface); border-bottom: 1px solid var(--ui-border); border-radius: 0;
}
.workspace-v2:not(.driver-mode) :is(#tracking-workspace, #order-list-panel) .list-table tbody tr { cursor: pointer; }
/* Row hover: list-rows.css (19/11/2026). */
.workspace-v2:not(.driver-mode) :is(#tracking-workspace, #order-list-panel) .list-table tbody tr:last-child td { border-bottom: 1px solid var(--ui-border); }

/* Row lists (Điều phối, Vận hành · Việc của tôi): the list panel loses its box, rows lose theirs. */
.workspace-v2:not(.driver-mode) .dispatch-orders :is(.roster-panel, section, div):has(> .order-row.order-head) {
  gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
}
.workspace-v2:not(.driver-mode) .dispatch-orders :has(> .order-row.order-head) > form { margin-bottom: 16px; }
.workspace-v2:not(.driver-mode) .dispatch-orders .order-row {
  box-sizing: border-box; min-width: 0; margin: 0; padding-inline: var(--order-list-cell-padding);
  border: 0; border-bottom: 1px solid var(--ui-border); border-radius: 0; background: transparent;
}
.workspace-v2:not(.driver-mode) .dispatch-orders .order-row.order-head {
  min-height: 44px; padding-block: 8px; background: var(--ui-surface); color: var(--ui-muted); border-bottom-color: var(--ui-border);
}
/* Row hover: list-rows.css (19/11/2026). */
.workspace-v2:not(.driver-mode) .dispatch-orders button.order-row:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: -2px; }

@media (min-width: 1200px) {
  .workspace-v2:not(.driver-mode) .dispatch-orders .order-row {
    --order-cols: minmax(0, 1fr) minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
    column-gap: 16px;
  }
  .workspace-v2:not(.driver-mode) .dispatch-orders .order-row.ops-row {
    --order-cols: minmax(0, 1fr) minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.1fr);
  }
}
