/* SLC Truck Admin - pagina Curse pe telefon v75
   Safari/iPhone: fara tabel desktop lat; fiecare rand devine card vertical. */

@media (max-width: 820px) {
  body.slc-mobile-curses .workspace,
  body.slc-mobile-curses .main-content,
  body.slc-mobile-curses .panel,
  body.slc-mobile-curses .card {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.slc-mobile-curses .table-wrap,
  body.slc-mobile-curses .compact-table-wrap,
  body.slc-mobile-curses .table-responsive,
  body.slc-mobile-curses [class*="table-wrap"] {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: auto !important;
  }

  body.slc-mobile-curses table.slc-mobile-curses-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border: 0 !important;
    border-collapse: separate !important;
    background: transparent !important;
  }

  body.slc-mobile-curses table.slc-mobile-curses-table thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  body.slc-mobile-curses table.slc-mobile-curses-table tbody {
    display: grid !important;
    width: 100% !important;
    gap: 12px !important;
  }

  body.slc-mobile-curses table.slc-mobile-curses-table tbody > tr {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #dbe3ec !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06) !important;
  }

  body.slc-mobile-curses table.slc-mobile-curses-table tbody > tr > td {
    display: grid !important;
    grid-template-columns: minmax(102px, .82fr) minmax(0, 1.18fr) !important;
    align-items: start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-align: left !important;
    line-height: 1.35 !important;
  }

  body.slc-mobile-curses table.slc-mobile-curses-table tbody > tr > td:last-child {
    border-bottom: 0 !important;
  }

  body.slc-mobile-curses table.slc-mobile-curses-table tbody > tr > td::before {
    content: attr(data-slc-label);
    display: block;
    min-width: 0;
    color: #6b7f95;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: normal;
  }

  body.slc-mobile-curses table.slc-mobile-curses-table tbody > tr > td[data-slc-label=""] {
    grid-template-columns: 1fr !important;
  }

  body.slc-mobile-curses table.slc-mobile-curses-table tbody > tr > td[data-slc-label=""]::before,
  body.slc-mobile-curses table.slc-mobile-curses-table tbody > tr > td[colspan]::before {
    display: none !important;
  }

  body.slc-mobile-curses table.slc-mobile-curses-table tbody > tr > td[colspan] {
    display: block !important;
  }

  body.slc-mobile-curses table.slc-mobile-curses-table td > *,
  body.slc-mobile-curses table.slc-mobile-curses-table td input,
  body.slc-mobile-curses table.slc-mobile-curses-table td select,
  body.slc-mobile-curses table.slc-mobile-curses-table td textarea {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.slc-mobile-curses table.slc-mobile-curses-table td .btn,
  body.slc-mobile-curses table.slc-mobile-curses-table td button {
    width: auto !important;
    max-width: 100% !important;
  }

  body.slc-mobile-curses .toolbar,
  body.slc-mobile-curses .toolbar-group {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 390px) {
  body.slc-mobile-curses table.slc-mobile-curses-table tbody > tr > td {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 9px 10px !important;
  }
}
