.page-current-orders {
  --order-blue: #2f6fdd;
  --order-blue-soft: #eef5ff;
  --order-line: rgba(47, 111, 221, 0.18);
  --order-panel: rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(circle at 10% 8%, rgba(47, 111, 221, 0.12), transparent 34%),
    radial-gradient(circle at 72% 18%, rgba(213, 232, 255, 0.72), transparent 33%),
    linear-gradient(125deg, rgba(247, 251, 255, 0.98), rgba(241, 247, 255, 0.94));
  min-height: calc(100vh - 52px);
  padding: 14px;
}

.order-clear-filters-button {
  flex: 0 0 auto;
}

.topbar-actions [data-order-action="new-order"].button.compact {
  min-height: 42px;
  height: 42px;
  padding-block: 8px;
}

@media (max-width: 760px) {
  .page-current-orders {
    min-height: auto;
    overflow: visible;
    padding-bottom: 18px;
  }

  .page-current-orders .orders-table-card {
    max-height: none;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }
}

.current-orders-filter-layer.page-current-orders {
  min-height: 0;
  padding: 0;
  background: none;
}

.page-current-orders .orders-table-card,
.order-modal .panel {
  border: 1px solid var(--order-line);
  background: var(--order-panel);
  box-shadow: 0 18px 44px rgba(33, 93, 122, 0.08);
  padding: 0 10px;
}

.page-current-orders .orders-table-card {
  backdrop-filter: blur(12px);
}

.order-modal .panel {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: none;
}

.page-current-orders .orders-breakdown-accordion {
  margin: 0 0 12px;
  padding: 14px;
}

.page-current-orders .orders-breakdown-accordion > summary {
  cursor: pointer;
  list-style: none;
}

.page-current-orders .orders-breakdown-accordion > summary::-webkit-details-marker {
  display: none;
}

.page-current-orders .orders-breakdown-accordion .accordion-indicator {
  display: inline-grid;
  margin-left: auto;
}

.page-current-orders .orders-metrics {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  margin: 12px 0 0;
}

.page-current-orders .order-metric {
  border: 1px solid var(--order-line);
  background: rgba(255, 255, 255, 0.82);
  min-height: 88px;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.page-current-orders .order-metric:hover,
.page-current-orders .order-metric.active {
  transform: translateY(-1px);
  border-color: rgba(47, 111, 221, 0.52);
  background: linear-gradient(135deg, #eef5ff, #f9fbff);
}

.page-current-orders .orders-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-current-orders .orders-workspace.filters-open {
  grid-template-columns: minmax(0, 1fr);
}

.page-current-orders .orders-table-card {
  overflow: auto;
  padding: 0;
}

.page-current-orders .orders-table {
  min-width: 1180px;
}

.page-current-orders .orders-table:has(.order-select-col) {
  min-width: 1230px;
}

.page-current-orders .orders-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(244, 250, 255, 0.96);
  white-space: nowrap;
}

.page-current-orders .orders-table td,
.page-current-orders .orders-table th {
  padding: 13px 12px;
  vertical-align: middle;
}

.page-current-orders .orders-table tbody tr {
  transition: background 0.16s ease;
}

.page-current-orders .orders-table tbody tr:hover {
  background: rgba(224, 248, 255, 0.56);
}

.page-current-orders .orders-table tbody tr.selected {
  background: rgba(220, 252, 231, 0.52);
}

.page-current-orders .order-select-col {
  width: 70px;
  text-align: center;
}

.page-current-orders .order-row-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-current-orders .order-row-check input {
  width: 20px;
  height: 20px;
  accent-color: #2f6fdd;
}

.page-current-orders .order-supplier-cell {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-current-orders .order-row-danger {
  background: rgba(255, 237, 237, 0.74);
}

.page-current-orders .order-row-muted {
  opacity: 0.72;
}

.page-current-orders .order-status-badge {
  border-radius: 999px;
  white-space: nowrap;
}

.page-current-orders .order-id-cell {
  display: inline-grid;
  gap: 3px;
  white-space: nowrap;
}

.page-current-orders .order-id-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-current-orders .order-id-meta {
  display: grid;
  gap: 1px;
  color: #718096;
  font-size: 0.74rem;
  line-height: 1.18;
}

.page-current-orders .order-attachment-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #2f6fdd;
  opacity: 0.86;
}

.page-current-orders .order-attachment-icon .icon {
  width: 16px;
  height: 16px;
}

.page-current-orders .status-draft,
.order-modal .status-draft { background: #eaf0ff; color: #2c55a2; }
.page-current-orders .status-staff_requested,
.order-modal .status-staff_requested { background: #fff1c9; color: #9d6711; }
.page-current-orders .status-sent_to_boss,
.order-modal .status-sent_to_boss { background: #fff1c9; color: #9d6711; }
.page-current-orders .status-boss_review,
.order-modal .status-boss_review { background: #efe9ff; color: #6842b8; }
.page-current-orders .status-supplier_placed,
.order-modal .status-supplier_placed { background: #e5f0ff; color: #2457a5; }
.page-current-orders .status-supplier_confirmed,
.order-modal .status-supplier_confirmed { background: #e5fbff; color: #0b7285; }
.page-current-orders .status-partially_received,
.order-modal .status-partially_received { background: #fff4d9; color: #a36105; }
.page-current-orders .status-received_with_variance,
.order-modal .status-received_with_variance { background: #ffe8f0; color: #aa2859; }
.page-current-orders .status-fully_received,
.order-modal .status-fully_received { background: #dcfce7; color: #15803d; }
.page-current-orders .status-closed,
.order-modal .status-closed { background: #edf1f5; color: #667789; }
.page-current-orders .status-cancelled,
.order-modal .status-cancelled,
.page-current-orders .status-deleted,
.order-modal .status-deleted { background: #ffe4e4; color: #ad2b22; }

.page-current-orders .two-line-date {
  display: grid;
  gap: 2px;
  white-space: nowrap;
}

.page-current-orders .order-date-time {
  color: #718096;
  font-size: 0.78rem;
  line-height: 1.18;
}

.page-current-orders .order-items-summary {
  position: relative;
}

.page-current-orders .order-items-summary > button {
  border: 0;
  background: transparent;
  color: #1f2b39;
  padding: 0;
  text-align: left;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

:root[data-mode="night"] .page-current-orders .order-items-summary > button {
  color: #ffd2bd;
}

.page-current-orders .order-items-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 40;
  display: none;
  width: max-content;
  max-width: min(360px, 82vw);
  padding: 10px 12px;
  border: 1px solid rgba(47, 111, 221, 0.22);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(31, 64, 102, 0.18);
}

.page-current-orders .order-items-popover span {
  display: block;
  color: #253646;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-current-orders .order-items-summary:hover .order-items-popover,
.page-current-orders .order-items-summary:focus-within .order-items-popover {
  display: grid;
  gap: 6px;
}

.topbar-order-smart-picker .filter-choice-menu,
.topbar-order-user-picker .filter-choice-menu,
.topbar-order-bulk-picker .filter-choice-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: auto;
  left: 0;
  z-index: 2600;
  width: max-content;
  min-width: 100%;
  max-width: min(320px, calc(100vw - 24px));
  max-height: min(300px, 54vh);
  overflow: auto;
}

.topbar-order-smart-picker .filter-choice.open,
.topbar-order-user-picker .filter-choice.open,
.topbar-order-bulk-picker .filter-choice.open {
  z-index: 2700;
}

.topbar-order-smart-picker,
.topbar-order-user-picker,
.topbar-order-bulk-picker {
  min-width: 190px;
}

.topbar-order-user-picker {
  min-width: 170px;
}

.topbar-order-bulk-picker {
  min-width: 138px;
}

.topbar-order-smart-picker,
.topbar-order-user-picker,
.topbar-order-bulk-picker {
  gap: 0;
}

.topbar-order-smart-picker .filter-choice-trigger,
.topbar-order-user-picker .filter-choice-trigger,
.topbar-order-bulk-picker .filter-choice-trigger {
  min-height: 38px;
  padding: 7px 10px;
}

.order-select-mode-button.active {
  color: #fff;
  border-color: #2f6fdd;
  background: #2f6fdd;
}

.order-selected-count {
  flex: 0 0 auto;
  color: #5d6f85;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.order-filter-chip-bar {
  margin: -4px 0 12px;
}

.order-modal {
  width: min(1480px, calc(100vw - 34px));
  max-height: calc(100vh - 34px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
}

#modal.open:has(.order-modal) {
  backdrop-filter: none;
}

#modal.open:has(.order-modal) .modal-head {
  backdrop-filter: none;
}

.order-modal.order-modal-compact {
  width: min(760px, calc(100vw - 34px));
  overflow: hidden;
}

.order-modal.order-modal-draft.order-modal-view,
.order-modal.order-modal-draft.order-modal-edit {
  width: min(780px, calc(100vw - 34px));
  overflow: hidden;
}

.order-modal.order-modal-compact.order-modal-draft {
  width: min(760px, calc(100vw - 34px));
}

.order-modal.order-modal-boss-stage.order-modal-view {
  width: min(900px, calc(100vw - 34px));
}

.order-modal.order-modal-edit {
  width: min(920px, calc(100vw - 34px));
}

.order-modal.order-modal-edit:has(.order-lines-receive-state) {
  width: min(1160px, calc(100vw - 34px));
}

.order-modal.order-modal-boss-stage.order-modal-edit {
  width: min(920px, calc(100vw - 34px));
}

.order-modal.order-modal-place {
  width: min(1040px, calc(100vw - 34px));
}

.order-modal.order-modal-receive {
  width: min(1060px, calc(100vw - 34px));
}

.order-modal.order-modal-view:not(.order-modal-boss-stage):not(.order-modal-draft) {
  width: min(1120px, calc(100vw - 34px));
}

.order-modal .order-modal-head {
  border-bottom: 1px solid rgba(106, 160, 190, 0.24);
  background: rgba(248, 253, 255, 0.96);
}

.order-modal .order-modal-body {
  overflow: auto;
  padding: 10px 14px 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(219, 245, 255, 0.72), transparent 30%),
    linear-gradient(135deg, #fbfdff, #f8fcff);
}

.order-modal .order-modal-body > .panel {
  padding: 14px 16px;
  margin-bottom: 15px;
}

.order-modal .order-modal-body > .panel > .detail-section-head:first-child {
  margin-bottom: 12px;
  padding-left: 5px;
}

.order-modal .order-modal-head [data-order-action="close-modal"] {
    margin-left: 10px;
}

.order-modal.order-modal-compact .order-modal-body {
  overflow: auto;
  padding-top: 8px;
}

.order-modal.order-modal-draft .order-modal-body,
.order-modal.order-modal-edit .order-modal-body {
  overflow: auto;
}

.order-modal .order-workflow-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid rgba(106, 160, 190, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.order-modal .order-modal-head h2 {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.order-modal .order-modal-head .badge {
  align-self: flex-start;
  white-space: nowrap;
  min-height: 20px;
}

.order-modal .order-modal-number {
  line-height: 1.05;
}

.order-modal .order-modal-head .row-actions {
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.order-modal .order-modal-head .icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
}

.order-modal .order-modal-head .button.compact {
  min-height: 44px;
  height: 44px;
  padding-block: 8px;
}

.order-modal .detail-section-head .button {
  border: 1px solid rgba(92, 175, 225, 0.28);
  background: rgba(238, 249, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.order-modal .detail-section-head {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 0;
}

.order-modal .detail-section-head h3 {
  margin: 0;
  margin-right: 12px;
}

.order-modal .detail-section-head > .row-actions {
  justify-content: flex-end;
  margin-left: 10px;
}

.order-modal .order-supplier-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  min-width: 0;
}

.order-modal .order-supplier-inline > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(47, 111, 221, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.78);
}

.order-modal .order-supplier-inline span {
  color: #667789;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.order-modal .order-supplier-inline strong {
  color: #1f2b39;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.2;
  /*overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;*/
}

.order-modal .detail-section-head .order-add-product {
  border-color: #2f6fdd;
  background: #2f6fdd;
  color: #ffffff;
  min-height: 38px;
}

.order-modal .detail-section-head .order-add-custom {
  border-color: rgba(47, 111, 221, 0.36);
  background: #ffffff;
  color: #2f6fdd;
}

.order-modal .order-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 12px;
}

.order-modal .order-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.order-modal .order-form-grid .wide {
  grid-column: 1 / -1;
}

.order-modal label {
  display: grid;
  gap: 6px;
  color: #303653;
  font-weight: 800;
}

.order-modal input,
.order-modal select,
.order-modal textarea,
.page-current-orders input,
.page-current-orders select {
  border: 1px solid #d5e2eb;
  border-radius: 9px;
  min-height: 40px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #1f2b39;
}

.order-modal textarea {
  min-height: 76px;
  resize: vertical;
}

.order-modal .restricted-card {
  border: 1px dashed #cbdce8;
  border-radius: 10px;
  padding: 14px;
  background: rgba(246, 250, 253, 0.86);
  color: #667789;
  font-weight: 800;
}

.order-modal .order-line-editor {
  max-height: none;
  overflow: visible;
}

.order-modal.order-modal-compact .order-line-editor {
  max-height: none;
  overflow: visible;
}

.order-modal .order-lines-table {
  min-width: 1080px;
}

.order-modal .order-lines-table.order-lines-request-only {
  min-width: 0;
  table-layout: fixed;
}

.order-modal .order-lines-table.order-lines-new {
  min-width: 0;
  table-layout: fixed;
}

.order-modal .order-lines-table.order-lines-new th:nth-child(1),
.order-modal .order-lines-table.order-lines-new td:nth-child(1) {
  width: 53%; 
  border-top-left-radius: 4px;
}

.order-modal .order-lines-table.order-lines-new th:nth-child(2),
.order-modal .order-lines-table.order-lines-new td:nth-child(2) {
  width: 14%;
}

.order-modal .order-lines-table.order-lines-new th:nth-child(3),
.order-modal .order-lines-table.order-lines-new td:nth-child(3) {
  width: 23%;
}

.order-modal .order-lines-table.order-lines-new th:nth-child(4),
.order-modal .order-lines-table.order-lines-new td:nth-child(4) {
  width: 10%;
}

.order-modal .order-lines-table.order-lines-request-only:not(.order-lines-new) th:nth-child(1),
.order-modal .order-lines-table.order-lines-request-only:not(.order-lines-new) td:nth-child(1) {
  width: 46%;
}

.order-modal .order-lines-table.order-lines-request-only:not(.order-lines-new) th:nth-child(2),
.order-modal .order-lines-table.order-lines-request-only:not(.order-lines-new) td:nth-child(2) {
  width: 22%;
}

.order-modal .order-lines-table.order-lines-request-only:not(.order-lines-new) th:nth-child(3),
.order-modal .order-lines-table.order-lines-request-only:not(.order-lines-new) td:nth-child(3) {
  width: 32%;
}

.order-modal .order-lines-table.order-lines-place {
  min-width: 0;
  table-layout: fixed;
}

.order-modal .order-lines-table.order-lines-place th:nth-child(1),
.order-modal .order-lines-table.order-lines-place td:nth-child(1) {
  width: 30%;
}

.order-modal .order-lines-table.order-lines-place th:nth-child(2),
.order-modal .order-lines-table.order-lines-place td:nth-child(2),
.order-modal .order-lines-table.order-lines-place th:nth-child(3),
.order-modal .order-lines-table.order-lines-place td:nth-child(3) {
  width: 12%;
}

.order-modal .order-lines-table.order-lines-place th:nth-child(4),
.order-modal .order-lines-table.order-lines-place td:nth-child(4) {
  width: 13%;
}

.order-modal .order-lines-table.order-lines-place th:nth-child(5),
.order-modal .order-lines-table.order-lines-place td:nth-child(5) {
  width: 12%;
}

.order-modal .order-lines-table.order-lines-place th:nth-child(6),
.order-modal .order-lines-table.order-lines-place td:nth-child(6) {
  width: 15%;
}

.order-modal .order-lines-table.order-lines-place .order-product-cell,
.order-modal .order-lines-table.order-lines-place input {
  min-width: 0;
}

.order-modal .order-lines-table.order-lines-receive-state {
  min-width: 0;
  table-layout: fixed;
}

.order-modal .order-lines-table.order-lines-receive-state th:nth-child(1),
.order-modal .order-lines-table.order-lines-receive-state td:nth-child(1) {
  width: 24%;
}

.order-modal .order-lines-table.order-lines-receive-state th:nth-child(2),
.order-modal .order-lines-table.order-lines-receive-state td:nth-child(2) {
  width: 11%;
}

.order-modal .order-lines-table.order-lines-receive-state th:nth-child(3),
.order-modal .order-lines-table.order-lines-receive-state td:nth-child(3),
.order-modal .order-lines-table.order-lines-receive-state th:nth-child(4),
.order-modal .order-lines-table.order-lines-receive-state td:nth-child(4),
.order-modal .order-lines-table.order-lines-receive-state th:nth-child(5),
.order-modal .order-lines-table.order-lines-receive-state td:nth-child(5) {
  width: 8%;
}

.order-modal .order-lines-table.order-lines-receive-state th:nth-child(6),
.order-modal .order-lines-table.order-lines-receive-state td:nth-child(6) {
  width: 10%;
}

.order-modal .order-lines-table.order-lines-receive-state th:nth-child(7),
.order-modal .order-lines-table.order-lines-receive-state td:nth-child(7) {
  width: 23%;
}

.order-modal .order-lines-table.order-lines-receive-state .order-product-cell,
.order-modal .order-lines-table.order-lines-receive-state input {
  min-width: 0;
}

.order-modal .order-lines-table.order-lines-receive-entry {
  min-width: 0;
  table-layout: fixed;
}

.order-modal .order-lines-table.order-lines-receive-entry th:nth-child(1),
.order-modal .order-lines-table.order-lines-receive-entry td:nth-child(1) {
  width: 28%;
  white-space: normal;
}

.order-modal .order-lines-table.order-lines-receive-entry th:nth-child(2),
.order-modal .order-lines-table.order-lines-receive-entry td:nth-child(2) {
  width: 18%;
}

.order-modal .order-lines-table.order-lines-receive-entry th:nth-child(3),
.order-modal .order-lines-table.order-lines-receive-entry td:nth-child(3) {
  width: 13%;
}

.order-modal .order-lines-table.order-lines-receive-entry th:nth-child(4),
.order-modal .order-lines-table.order-lines-receive-entry td:nth-child(4),
.order-modal .order-lines-table.order-lines-receive-entry th:nth-child(5),
.order-modal .order-lines-table.order-lines-receive-entry td:nth-child(5) {
  width: 20.5%;
}

.order-modal .order-lines-table.order-lines-receive-entry input {
  min-width: 0;
}

.order-modal .order-lines-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4faff;
}

.order-modal .order-lines-table input {
  width: 100%;
  min-width: 76px;
}

.order-modal .order-lines-table th,
.order-modal .order-lines-table td {
  white-space: nowrap;
  padding-inline: 8px;
}

.order-modal .order-lines-table:has([data-order-action='remove-line']) th:last-child,
.order-modal .order-lines-table:has([data-order-action='remove-line']) td:last-child {
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  text-align: center;
  border-top-right-radius: 4px;
}

.order-modal .order-lines-table:has([data-order-action='remove-line']) td:last-child .icon-button {
  margin-inline: auto;
  width: 42px;
  min-width: 42px;
  height: 42px;
}

.order-modal .order-product-cell {
  position: relative;
  min-width: 250px;
  overflow: visible;
}

.order-product-suggestions {
  position: fixed;
  z-index: 33000;
  left: var(--order-suggest-left, 12px);
  top: var(--order-suggest-top, 12px);
  width: var(--order-suggest-width, min(520px, 86vw));
  display: grid;
  gap: 4px;
  max-height: var(--order-suggest-max-height, 220px);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(47, 111, 221, 0.58);
  border-radius: 10px;
  background: #fff;
  backdrop-filter: none;
  box-shadow: 0 18px 38px rgba(35, 92, 120, 0.16);
}

.order-product-suggestions-empty {
  display: block;
  width: var(--order-suggest-width, auto);
  min-width: 0;
  white-space: nowrap;
  color: #667789;
  font-weight: 800;
}

.order-modal .order-placement-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-modal .order-placement-note {
  min-height: 40px;
  height: 40px;
  resize: vertical;
}

.order-modal .order-images-panel {
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.order-modal .order-image-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  cursor: pointer;
}

.order-modal .order-image-upload input {
  display: none;
}

.order-modal .order-image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.order-modal .order-image-list.empty {
  color: #667789;
  font-weight: 800;
}

.order-modal .order-image-thumb {
  position: relative;
  width: 118px;
  margin: 0;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(47, 111, 221, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.order-modal .order-image-preview {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  line-height: 0;
}

.order-modal .order-image-preview img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(106, 160, 190, 0.18);
}

.order-modal .order-image-thumb figcaption {
  color: #253646;
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}

.order-modal .order-image-thumb .icon-button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  background: rgba(255, 241, 241, 0.92);
}

.order-modal .order-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(58px, 8dvh, 82px) 20px 32px;
  background: rgba(15, 25, 34, 0.72);
}

.order-modal .order-image-lightbox figure {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: min(88vw, 1100px);
  max-height: calc(100dvh - 110px);
  margin: 0;
}

.order-modal .order-image-lightbox img {
  max-width: min(88vw, 1100px);
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.order-modal .order-image-lightbox figcaption {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.15;
  max-width: min(88vw, 760px);
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-modal .order-image-lightbox-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 2;
  background: #ffffff;
}

.order-modal .order-supplier-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding-block: 10px;
}

.order-modal .order-supplier-summary > div {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 111, 221, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.order-modal .order-supplier-summary span {
  color: #667789;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.order-modal .order-supplier-summary strong {
  color: #1f2b39;
  font-size: 0.98rem;
  min-height: 1.2em;
}

.order-product-suggestions-more {
  display: block;
  padding: 7px 10px 4px;
  color: #667789;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.order-product-suggestions button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 9px 10px;
  text-align: left;
  font-weight: 800;
}

.order-product-suggestions button:hover {
  background: #e5fbff;
}

.order-modal .order-receive-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 1180px;
  margin-inline: auto;
  padding-top: 12px;
  padding-bottom: 12px;
}

.order-modal .order-receive-panel > h3,
.order-modal .order-receive-final-row {
  grid-column: 1 / -1;
}

.order-modal .receive-line {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(47, 111, 221, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(31, 76, 120, 0.07);
}

.order-modal .receive-line > span {
  color: #667789;
  font-weight: 700;
}

.order-dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 32000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(21, 35, 48, 0.48);
}

.order-dialog-card {
  width: min(400px, calc(100vw - 36px));
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(47, 111, 221, 0.24);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(19, 48, 83, 0.22);
}

.order-dialog-card h3,
.order-dialog-card p {
  margin: 0;
}

.order-dialog-card p {
  color: #526477;
  font-weight: 700;
  line-height: 1.38;
  white-space: pre-wrap;
  word-break: break-word;
}

.order-dialog-card .row-actions {
  justify-content: end;
}

.order-dialog-card .button.success {
  color: #ffffff;
  border-color: #16a34a;
  background: #16a34a;
}

.order-dialog-card .button.success:hover {
  border-color: #15803d;
  background: #15803d;
}

.order-dialog-card .button.danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fee2e2;
}

.order-dialog-card .button.danger:hover {
  border-color: #fca5a5;
  background: #fecaca;
}

.order-modal .order-receive-final-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(47, 111, 221, 0.16);
  border-radius: 12px;
  background: rgba(244, 250, 255, 0.86);
  cursor: pointer;
}

.order-modal .order-receive-final-row:has(input:checked) {
  border-color: rgba(22, 163, 74, 0.38);
  background: #ecfdf3;
  box-shadow: inset 4px 0 0 rgba(34, 197, 94, 0.55);
}

.order-modal .order-modal-grid .panel.order-totals h3 {
    margin: 8px 0;
}

.order-modal .order-receive-final-row input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.order-modal .order-receive-final-row input.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.order-modal .order-receive-final-row span {
  display: grid;
  gap: 3px;
}

.order-modal .order-receive-final-row small {
  color: #667789;
  font-weight: 700;
  line-height: 1.35;
}

.order-modal .order-totals .status-line {
  padding: 10px;
  border: 1px solid rgba(106, 160, 190, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  min-height: 20px;
    margin-bottom: 14px;
}

.order-modal .order-totals-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1fr);
  gap: 8px;
}

.order-modal .order-grand-total {
  min-width: 250px;
  min-height: 96px;
  align-items: center;
}

.order-modal .order-grand-total strong {
  margin-left: auto;
  font-size: 1.45rem;
}

.order-modal .order-modal-lower > .order-totals:only-child {
  grid-column: 1 / -1;
}

.order-modal.order-modal-compact .order-modal-lower > .order-totals:only-child {
  grid-column: auto;
  justify-self: end;
  width: 250px;
}

.order-modal .order-log-panel {
  margin-top: 12px;
  padding: 12px 14px;
}

.order-modal .order-log-panel > summary {
  padding: 0;
}

.order-modal .order-log-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.order-modal .order-log-row > strong,
.order-modal .order-log-row > p {
  margin: 0;
  white-space: nowrap;
  font-size: 13px;
}

.order-modal .order-timeline {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.order-modal .order-log-details {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-modal .order-log-details li {
  padding: 5px 8px;
  border: 1px solid rgba(106, 160, 190, 0.16);
  border-radius: 999px;
  background: rgba(244, 250, 255, 0.86);
  color: #526477;
  font-size: 0.70rem;
  font-weight: 600;
      width: max-content;
}

.order-modal .order-timeline pre {
  max-height: 140px;
  overflow: auto;
  border-radius: 8px;
  padding: 8px;
  background: #f5f9fc;
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .page-current-orders .orders-workspace.filters-open,
  .order-modal .order-modal-grid {
    grid-template-columns: 1fr;
  }

  .order-modal .detail-section-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .order-modal .order-supplier-inline {
    grid-template-columns: 1fr;
  }

  .order-modal .receive-line {
    grid-template-columns: 1fr;
  }

  .order-modal .order-receive-panel {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .order-modal .order-log-row {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 8px;
  }

  .order-modal .order-log-details {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  #modal.open:has(.order-modal) {
    align-items: center !important;
    justify-items: center !important;
    place-items: center !important;
    padding: 12px !important;
  }

  .page-current-orders .orders-breakdown-accordion {
    padding: 14px;
  }

  .page-current-orders .orders-breakdown-accordion .accordion-indicator {
    display: inline-grid;
  }

  .page-current-orders .orders-breakdown-accordion:not([open]) {
    padding-bottom: 14px;
  }

  .page-current-orders .orders-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .page-current-orders .order-metric {
    min-height: 76px;
    padding: 9px 10px;
  }

  .page-current-orders .order-metric span {
    font-size: 0.74rem;
    line-height: 1.18;
  }

  .page-current-orders .order-metric strong {
    font-size: clamp(1.05rem, 5vw, 1.48rem);
    line-height: 1.08;
  }

  .topbar-order-smart-picker .filter-choice-menu,
  .topbar-order-user-picker .filter-choice-menu,
  .topbar-order-bulk-picker .filter-choice-menu {
    position: fixed !important;
    top: var(--filter-menu-top, 68px) !important;
    left: var(--filter-menu-left, 12px) !important;
    right: auto !important;
    z-index: 19000 !important;
    width: var(--filter-menu-width, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    max-height: var(--filter-menu-max-height, 55vh) !important;
  }

  .order-modal,
  .order-modal.order-modal-compact,
  .order-modal.order-modal-draft.order-modal-view,
  .order-modal.order-modal-draft.order-modal-edit,
  .order-modal.order-modal-compact.order-modal-draft,
  .order-modal.order-modal-boss-stage.order-modal-view,
  .order-modal.order-modal-edit,
  .order-modal.order-modal-edit:has(.order-lines-receive-state),
  .order-modal.order-modal-boss-stage.order-modal-edit,
  .order-modal.order-modal-place,
  .order-modal.order-modal-receive,
  .order-modal.order-modal-view:not(.order-modal-boss-stage):not(.order-modal-draft) {
    width: min(100%, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 24px) !important;
    margin: auto !important;
  }

  .order-modal .order-modal-head {
    min-height: 54px;
    padding: 8px 10px;
    overflow-x: auto !important;
    overflow-y: visible !important;
  }

  .order-modal .order-modal-head h2 {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    font-size: 1.05rem;
    white-space: normal;
  }
  
  .order-modal .order-modal-head .badge {
    border-radius: 6px;
  }

  .order-modal .order-modal-head .row-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .order-modal .order-modal-head .button.compact {
    min-height: 40px;
    height: 40px;
    padding: 7px 10px;
    font-size: 0.84rem;
  }

  .order-modal .order-modal-head .icon-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .order-modal .order-modal-body {
    padding: 10px;
  }

  .order-modal .detail-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .order-modal .detail-section-head h3 {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
  }
  
  .order-modal-grid.order-modal-lower .panel.order-totals h3 {
    margin: 0;
    padding: 10px 0;
}

.order-modal .order-totals .status-line {
    padding: 10px 18px;
    min-height: 50px;
        margin-bottom: 13px;
}

.order-modal .order-modal-grid {
    margin-bottom: 15px;
}

.order-modal .order-modal-body > details.panel.order-log-panel {
    padding: 12px;
    margin-bottom: 3px;
}

  .order-modal .detail-section-head > .row-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
  }

  .order-modal .detail-section-head .button,
  .order-modal .order-image-upload,
  .order-modal .order-add-product {
    min-height: 38px;
    padding: 7px 10px;
    font-size: clamp(0.76rem, 3.4vw, 0.9rem);
    white-space: nowrap;
  }

  .order-modal .order-supplier-inline {
    grid-column: 1 / -1;
  }

  .order-modal .order-line-editor {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
  }

  .order-modal .order-lines-table,
  .order-modal .order-lines-table.order-lines-new,
  .order-modal .order-lines-table.order-lines-request-only,
  .order-modal .order-lines-table.order-lines-place,
  .order-modal .order-lines-table.order-lines-receive-state,
  .order-modal .order-lines-table.order-lines-receive-entry {
    min-width: 620px !important;
    table-layout: auto !important;
  }

  .order-modal .order-lines-table.order-lines-receive-state,
  .order-modal .order-lines-table.order-lines-receive-entry {
    min-width: 760px !important;
  }

  .order-modal .order-lines-table th,
  .order-modal .order-lines-table td {
    padding: 8px 7px;
    white-space: nowrap;
  }

  .order-modal .order-lines-table input {
    min-width: 0 !important;
  }

  .order-modal .order-lines-table th:nth-child(n),
  .order-modal .order-lines-table td:nth-child(n) {
    width: auto !important;
  }

  .order-dialog-layer {
    align-items: center;
    justify-items: center;
    place-items: center;
    padding: 12px;
  }
}

:root[data-mode="night"] .page-current-orders {
  --order-line: rgb(255 138 61 / 0.18);
  --order-panel: rgb(20 20 20 / 0.9);
}

:root[data-mode="night"] .page-current-orders .orders-table tbody tr.selected {
  background: rgb(74 91 76 / 0.72) !important;
  color: #f6efe8;
}

:root[data-mode="night"] .page-current-orders .order-row-danger {
  background: rgb(89 31 29 / 0.34) !important;
}

:root[data-mode="night"] .page-current-orders .orders-table tbody tr.selected.order-row-danger {
  background: rgb(94 61 54 / 0.58) !important;
}

:root[data-mode="night"] .page-current-orders .order-id-meta,
:root[data-mode="night"] .page-current-orders .order-date-time,
:root[data-mode="night"] .order-selected-count {
  color: #9daec6 !important;
}

:root[data-mode="night"] .page-current-orders .order-metric,
:root[data-mode="night"] .page-current-orders .orders-table-card,
:root[data-mode="night"] .order-modal .panel,
:root[data-mode="night"] .order-modal .order-supplier-inline > div,
:root[data-mode="night"] .order-modal .order-supplier-summary > div,
:root[data-mode="night"] .order-modal .order-receive-final-row > span {
  border-color: rgb(255 138 61 / 0.2) !important;
  background: linear-gradient(135deg, rgb(24 24 24 / 0.96), rgb(17 17 17 / 0.98)) !important;
  color: #f5eee8 !important;
}

:root[data-mode="night"] .order-modal .order-supplier-inline strong,
:root[data-mode="night"] .order-modal .order-supplier-summary strong {
  color: #f5eee8 !important;
}

:root[data-mode="night"] .order-modal .order-supplier-inline span,
:root[data-mode="night"] .order-modal .order-supplier-summary span {
  color: #b7a89f !important;
}

:root[data-mode="night"] .order-product-suggestions {
  border-color: rgb(255 138 61 / 0.3);
  background: #141211;
  color: #f5eee8;
}

:root[data-mode="night"] .order-product-suggestions button:hover {
  background: rgb(255 106 42 / 0.16);
}

:root[data-mode="night"] .order-modal input,
:root[data-mode="night"] .order-modal textarea,
:root[data-mode="night"] .order-modal select {
  background: rgb(14 14 14 / 0.96) !important;
  border-color: rgb(255 136 74 / 0.3) !important;
  color: #f5eee8 !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.03);
}

:root[data-mode="night"] .order-modal input::placeholder,
:root[data-mode="night"] .order-modal textarea::placeholder {
  color: rgb(245 238 232 / 0.48);
}

:root[data-mode="night"] .order-modal .order-receive-final-row {
  background: rgb(18 18 18 / 0.94) !important;
  border-color: rgb(255 136 74 / 0.26) !important;
  color: #f5eee8 !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.03);
}

:root[data-mode="night"] .order-modal .order-receive-final-row:has(input:checked) {
  background: rgb(20 83 45 / 0.2) !important;
  border-color: rgb(74 222 128 / 0.36) !important;
  box-shadow: inset 4px 0 0 rgb(74 222 128 / 0.5);
}

:root[data-mode="night"] .order-modal .order-receive-final-row span,
:root[data-mode="night"] .order-modal .order-receive-final-row small {
  color: #f5eee8 !important;
}

:root[data-mode="night"] .order-modal .order-images-panel,
:root[data-mode="night"] .order-modal .order-image-upload,
:root[data-mode="night"] .order-modal .order-image-list,
:root[data-mode="night"] .order-modal .order-image-thumb,
:root[data-mode="night"] .order-modal .order-image-preview {
  background: rgb(14 14 14 / 0.94) !important;
  border-color: rgb(255 136 74 / 0.24) !important;
  color: #f5eee8 !important;
}

:root[data-mode="night"] .order-modal .order-image-thumb figcaption,
:root[data-mode="night"] .order-modal .order-image-preview figcaption {
  background: rgb(14 14 14 / 0.92) !important;
  color: #cbd5e1 !important;
}

/* Mobile list layout: keep the topbar scrollable, but make order content wrap without a table slider. */
@media (max-width: 760px) {
  .app-shell:has(.page-current-orders) .content-shell,
  .page-current-orders {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .page-current-orders .orders-table-card,
  .page-current-orders .orders-table,
  .page-current-orders .orders-table tbody {
    touch-action: pan-y;
  }

  .page-current-orders .orders-table-card {
    max-height: none !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  html body #app .page-current-orders .orders-table-card > table.orders-table,
  .page-current-orders .orders-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
  }

  .page-current-orders .orders-table thead {
    display: none !important;
  }

  .page-current-orders .orders-table tbody {
    display: grid !important;
    gap: 10px !important;
  }

  .page-current-orders .orders-table tr {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    background: rgb(255 255 255 / 0.92) !important;
    padding: 10px !important;
  }

  :root[data-mode="night"] .page-current-orders .orders-table tr {
    background: rgb(18 18 18 / 0.94) !important;
  }

  .page-current-orders .orders-table td {
    display: grid !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .page-current-orders .orders-table td::before {
    content: attr(data-cell-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .page-current-orders .orders-table td[data-cell-label="Items"],
  .page-current-orders .orders-table tr > td[colspan] {
    grid-column: 1 / -1 !important;
  }

  .page-current-orders .order-id-cell,
  .page-current-orders .order-items-summary,
  .page-current-orders .order-supplier-cell,
  .page-current-orders .order-amount-cell {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .page-current-orders .orders-table tr {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    align-items: start !important;
  }

  .page-current-orders .orders-table td[data-cell-label="Order ID"] {
    order: 1;
    grid-column: span 2 !important;
  }

  .page-current-orders .orders-table td[data-cell-label="Status"] {
    order: 2;
    grid-column: span 4 !important;
  }

  .page-current-orders .orders-table td[data-cell-label="Created by"] {
    order: 3;
    grid-column: span 2 !important;
  }

  .page-current-orders .orders-table td[data-cell-label="Items"] {
    order: 4;
    grid-column: 1 / -1 !important;
  }

  .page-current-orders .orders-table td[data-cell-label="Requested"] {
    order: 5;
    grid-column: span 2 !important;
  }

  .page-current-orders .orders-table td[data-cell-label="Ordered"] {
    order: 6;
    grid-column: span 2 !important;
  }

  .page-current-orders .orders-table td[data-cell-label="Received"] {
    order: 7;
    grid-column: span 2 !important;
  }

  .page-current-orders .orders-table td[data-cell-label="Pending"] {
    order: 8;
    grid-column: span 2 !important;
  }

  .page-current-orders .orders-table td[data-cell-label="Supplier"] {
    order: 9;
    grid-column: span 3 !important;
  }

  .page-current-orders .orders-table td[data-cell-label="Amount"] {
    order: 10;
    grid-column: span 2 !important;
  }

  .page-current-orders .orders-table td[data-cell-label="Updated"] {
    order: 11;
    display: none !important;
  }

  .page-current-orders .orders-table td[data-cell-label="Actions"] {
    order: 12;
    grid-column: span 3 !important;
  }

  .page-current-orders .order-status-badge {
    padding: 0;
        justify-content: left;
        background: transparent;
        color: black;
        font-size: 13px;
  }

  .page-current-orders .order-items-summary > button {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.25;
  }
}

.topbar-order-smart-picker .filter-choice-menu,
.topbar-order-user-picker .filter-choice-menu,
.topbar-order-bulk-picker .filter-choice-menu {
  position: fixed !important;
  top: var(--filter-menu-top, 68px) !important;
  left: var(--filter-menu-left, 12px) !important;
  right: auto !important;
  width: var(--filter-menu-width, min(320px, calc(100vw - 24px))) !important;
  min-width: 0 !important;
  max-width: calc(100vw - 24px) !important;
  max-height: var(--filter-menu-max-height, 55vh) !important;
  z-index: 24000 !important;
}

.page-current-orders .orders-workspace {
  padding-bottom: 36px;
}

.page-current-orders .orders-table-card {
  scroll-padding-bottom: 72px;
}

.page-current-orders .orders-table tbody tr:last-child td {
  padding-bottom: 44px;
}

@media (min-width: 761px) {
  .page-current-orders .orders-breakdown-accordion[open] ~ .orders-workspace .orders-table-card,
  .page-current-orders .orders-breakdown-accordion[open] ~ .order-filter-chip-bar ~ .orders-workspace .orders-table-card {
    max-height: var(--orders-table-max-height, calc(100dvh - 260px));
    overflow: auto;
  }
}
