.pro-data-page {
    min-height: calc(100dvh - 72px);
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding: 10px 14px;
    gap: 10px;
}

.pro-page-header {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 10px 4px;
}

.pro-title-block {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.pro-page-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.pro-page-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.pro-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.pro-data-panel {
    flex: 1 1 auto;
    min-height: calc(100dvh - 210px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: visible;
}

.global-listing-page #listing-fragment {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.global-listing-page .listing-table-container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.global-listing-page .listing-table-container > .table-responsive {
    flex: 1 1 auto;
    min-height: 0;
}

.pro-data-toolbar {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.pro-toolbar-strip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.pro-toolbar-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    flex: 0 0 auto;
}

.pro-search-box {
    position: relative;
    width: 100%;
    min-width: 0;
}

.pro-search-box input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 42px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    white-space: nowrap;
}

.pro-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.pro-data-toolbar .btn,
.pro-data-toolbar select,
.pro-data-toolbar input {
    height: 42px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.pro-table-zone {
    flex: 1 1 auto;
    min-height: 480px;
    max-height: calc(100dvh - 320px);
    overflow: auto;
    position: relative;
}

.pro-card-zone {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 12px;
}

.pro-data-footer {
    flex: 0 0 auto;
    padding: 10px 12px;
    padding-right: 90px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    visibility: visible;
    position: relative;
    z-index: 5;
}

.pro-data-footer > nav {
    flex: 1 1 auto;
    width: 100%;
}

.pro-data-footer p {
    margin: 0;
}

.pro-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.pro-table thead th {
    position: sticky;
    top: 0;
    z-index: 6;
    background: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 10px 12px;
    border-bottom: 1px solid #dbe3ef;
}

.pro-table tbody {
    display: table-row-group !important;
    visibility: visible !important;
}

.pro-table tbody tr {
    display: table-row !important;
    visibility: visible !important;
    height: 38px;
}

.pro-table td {
    padding: 7px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #edf2f7;
    font-size: 13px;
}

.pro-table .col-check {
    width: 44px;
    min-width: 44px;
    text-align: center;
}

.pro-table .col-date {
    width: 150px;
    min-width: 150px;
}

.pro-table .col-invoice {
    width: 120px;
    min-width: 120px;
}

.pro-table .col-name,
.pro-table .col-customer {
    width: 260px;
    min-width: 240px;
}

.pro-table .col-staff {
    width: 220px;
    min-width: 200px;
}

.pro-table .col-location {
    width: 180px;
    min-width: 170px;
}

.pro-table .col-status,
.pro-table .col-payment {
    width: 120px;
    min-width: 120px;
    text-align: center;
}

.pro-table .col-money {
    width: 140px;
    min-width: 130px;
    text-align: right;
}

.pro-table .col-actions {
    width: 140px;
    min-width: 140px;
    position: sticky;
    right: 0;
    background: #fff;
    z-index: 5;
}

.pro-table .cell-wrap {
    white-space: normal;
    line-height: 1.25;
    max-height: 38px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .pro-page-header {
        grid-template-columns: 1fr;
    }

    .pro-header-actions {
        width: 100%;
    }

    .pro-header-actions > * {
        flex: 1;
    }

    .pro-data-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .pro-search-box {
        grid-column: 1 / -1;
    }

    .pro-data-toolbar .btn,
    .pro-data-toolbar select {
        width: 100%;
    }

    .pro-toolbar-strip {
        grid-column: 1 / -1;
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: flex-start;
    }

    .pro-toolbar-strip .pro-toolbar-group {
        flex: 1 1 100%;
        flex-wrap: wrap;
    }

    .gmt-has-mobile-cards .pro-table-zone,
    .gmt-has-mobile-cards table.table-pro,
    .gmt-has-mobile-cards table.data-table,
    .gmt-has-mobile-cards div.dataTables_scrollBody {
        display: none !important;
    }

    .pro-card-zone {
        padding: 10px;
    }
}
