/* Custom CSS for zlecenia module */

/* Word wrapping for customers_order column in orders table */
.table td[data-title*="zlecenia klienta"],
.table td:nth-child(4) {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 200px;
    overflow-wrap: break-word;
}

/* Ensure proper table layout */
.table {
    table-layout: auto;
}

/* Disable responsive table behavior on mobile devices */
/* Override table-no-more styles to show normal table layout on all devices */
@media only screen and (max-width: 991px) {
    .table.table-no-more,
    .table.table-no-more thead,
    .table.table-no-more tbody,
    .table.table-no-more tr,
    .table.table-no-more th,
    .table.table-no-more td {
        display: table !important;
    }

    .table.table-no-more thead {
        display: table-header-group !important;
    }

    .table.table-no-more tbody {
        display: table-row-group !important;
    }

    .table.table-no-more tr {
        display: table-row !important;
        border-bottom: none !important;
    }

    .table.table-no-more th {
        display: table-cell !important;
    }

    .table.table-no-more td {
        display: table-cell !important;
        border: 1px solid #dedede !important;
        position: static !important;
        padding: 8px !important;
        padding-left: 8px !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    .table.table-no-more td:before {
        content: none !important;
        display: none !important;
    }

    .table.table-no-more thead tr {
        left: auto !important;
        position: static !important;
        top: auto !important;
        display: table-row !important;
    }

    /* Allow horizontal scrolling on mobile for wide tables */
    .card-body.card-only-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
