/* MBus WMS v42 – File Explorer pogled za velike sezname
   Telefon ostane terminal; sprememba velja samo za desktop PRO program. */

@media (min-width: 901px) {
  body.mbus-desktop-pro {
    --mbus-explorer-head-bg: #f8fafc;
    --mbus-explorer-hover: rgba(37, 99, 235, .055);
    --mbus-explorer-selected: rgba(37, 99, 235, .11);
    --mbus-explorer-line: rgba(148, 163, 184, .24);
  }

  body.mbus-desktop-pro .mbus-explorer-toolbar {
    margin-bottom: 10px !important;
  }

  body.mbus-desktop-pro .mbus-file-explorer {
    width: 100%;
    max-width: 100%;
    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(148, 163, 184, .28) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .065) !important;
    overflow: auto !important;
  }

  body.mbus-desktop-pro .mbus-file-explorer table {
    width: 100%;
    min-width: 1040px;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: auto;
  }

  body.mbus-desktop-pro .mbus-file-explorer thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, #ffffff 0%, var(--mbus-explorer-head-bg) 100%) !important;
    color: #475569 !important;
    border-bottom: 1px solid rgba(148, 163, 184, .34) !important;
    padding: 9px 12px !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    letter-spacing: .045em !important;
    line-height: 1.1 !important;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body.mbus-desktop-pro .mbus-file-explorer tbody td {
    padding: 7px 12px !important;
    height: 38px;
    color: #0f172a;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(226, 232, 240, .84);
  }

  body.mbus-desktop-pro .mbus-file-explorer tbody tr:last-child td {
    border-bottom: 0 !important;
  }

  body.mbus-desktop-pro .mbus-file-explorer tbody tr:hover td {
    background: var(--mbus-explorer-hover) !important;
  }

  body.mbus-desktop-pro .mbus-file-explorer tbody tr.is-selected td {
    background: var(--mbus-explorer-selected) !important;
  }

  body.mbus-desktop-pro .mbus-file-explorer tbody tr.is-locked td {
    opacity: .72;
  }

  body.mbus-desktop-pro .mbus-file-explorer .font-mono {
    font-variant-numeric: tabular-nums;
  }

  body.mbus-desktop-pro .mbus-file-explorer .tabular-nums {
    font-variant-numeric: tabular-nums;
  }

  body.mbus-desktop-pro .mbus-file-explorer button,
  body.mbus-desktop-pro .mbus-file-explorer a.inline-flex {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 9px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    font-weight: 850 !important;
  }

  body.mbus-desktop-pro .mbus-file-explorer [class*="rounded-full"],
  body.mbus-desktop-pro .mbus-file-explorer [class*="border"][class*="inline-flex"] {
    min-height: 21px !important;
    padding: 2px 7px !important;
    font-size: 10.5px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  body.mbus-desktop-pro .mbus-file-explorer-orders th:nth-child(1),
  body.mbus-desktop-pro .mbus-file-explorer-orders td:nth-child(1) {
    width: 42px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-orders th:nth-child(2),
  body.mbus-desktop-pro .mbus-file-explorer-orders td:nth-child(2) {
    width: 150px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-orders th:nth-child(4),
  body.mbus-desktop-pro .mbus-file-explorer-orders td:nth-child(4) {
    width: 118px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-orders th:nth-child(5),
  body.mbus-desktop-pro .mbus-file-explorer-orders td:nth-child(5) {
    width: 82px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-orders th:nth-child(6),
  body.mbus-desktop-pro .mbus-file-explorer-orders td:nth-child(6) {
    width: 220px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-orders th:nth-child(7),
  body.mbus-desktop-pro .mbus-file-explorer-orders td:nth-child(7) {
    width: 130px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-orders th:nth-child(8),
  body.mbus-desktop-pro .mbus-file-explorer-orders td:nth-child(8) {
    width: 82px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-orders th:nth-child(9),
  body.mbus-desktop-pro .mbus-file-explorer-orders td:nth-child(9) {
    width: 92px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-delivery table {
    min-width: 1120px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-delivery th:nth-child(1),
  body.mbus-desktop-pro .mbus-file-explorer-delivery td:nth-child(1) {
    width: 190px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-delivery th:nth-child(2),
  body.mbus-desktop-pro .mbus-file-explorer-delivery td:nth-child(2) {
    width: 130px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-delivery th:nth-child(4),
  body.mbus-desktop-pro .mbus-file-explorer-delivery td:nth-child(4) {
    width: 110px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-delivery th:nth-child(5),
  body.mbus-desktop-pro .mbus-file-explorer-delivery td:nth-child(5) {
    width: 130px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-delivery th:nth-child(6),
  body.mbus-desktop-pro .mbus-file-explorer-delivery th:nth-child(7),
  body.mbus-desktop-pro .mbus-file-explorer-delivery th:nth-child(8),
  body.mbus-desktop-pro .mbus-file-explorer-delivery th:nth-child(9),
  body.mbus-desktop-pro .mbus-file-explorer-delivery td:nth-child(6),
  body.mbus-desktop-pro .mbus-file-explorer-delivery td:nth-child(7),
  body.mbus-desktop-pro .mbus-file-explorer-delivery td:nth-child(8),
  body.mbus-desktop-pro .mbus-file-explorer-delivery td:nth-child(9) {
    width: 82px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-delivery th:nth-child(10),
  body.mbus-desktop-pro .mbus-file-explorer-delivery td:nth-child(10) {
    width: 170px;
  }

  body.mbus-desktop-pro .mbus-file-explorer .truncate {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Stari kartični razmiki naj se na straneh z explorer pogledom ne vrinejo nazaj. */
  body.mbus-desktop-route-narocila main .mbus-file-explorer,
  body.mbus-desktop-route-dobavnice main .mbus-file-explorer {
    margin-top: 0 !important;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  body.mbus-desktop-pro .mbus-file-explorer table {
    min-width: 980px;
  }

  body.mbus-desktop-pro .mbus-file-explorer-orders th:nth-child(8),
  body.mbus-desktop-pro .mbus-file-explorer-orders td:nth-child(8) {
    display: none;
  }
}
