/* Search page: reservation results table */
.reservation-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 12px 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.reservation-results-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 15px;
}

.reservation-results-table thead th {
    text-align: left;
    padding: 10px 12px;
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #e2e8f0;
}

.reservation-results-table tbody td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #edf2f7;
    word-break: break-word;
}

.reservation-results-table tbody tr:last-child td {
    border-bottom: none;
}

.reservation-results-table .cell-actions {
    white-space: nowrap;
}

.reservation-results-table .cell-actions .btn {
    display: inline;
    margin: 4px 4px 4px 0;
    text-align: center;
    box-sizing: border-box;
    min-width: 80px;
}

.reservation-results-table .cell-actions .btn + .btn {
    min-width: 140px;
}

@media screen and (max-width: 640px) {
    .reservation-table-wrap {
        overflow: visible;
        border: none;
        margin: 0;
    }

    .reservation-results-table {
        min-width: 0;
    }

    .reservation-results-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .reservation-results-table tbody tr {
        display: block;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 14px;
        padding: 4px 0;
        background: #fff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .reservation-results-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 14px;
        border-bottom: 1px solid #edf2f7;
        font-size: 15px;
    }

    .reservation-results-table tbody td:last-child {
        border-bottom: none;
    }

    .reservation-results-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #718096;
        flex-shrink: 0;
        max-width: 42%;
    }

    .reservation-results-table .cell-actions {
        flex-direction: column;
        align-items: stretch;
        white-space: normal;
    }

    .reservation-results-table .cell-actions::before {
        max-width: none;
    }

    .reservation-results-table .cell-actions .btn {
        display: block;
        width: min-content !important;
        margin: 6px auto auto auto;
    }

    .reservation-results-table .cell-actions .btn:first-of-type {
        margin-top: 0;
    }
}
