/* ======================================== */
/* tables.css - Table styles               */
/* ======================================== */

/* ======================================== */
/*                Table                     */
/* ======================================== */

.table-wrapper {
    max-height: unset;
    overflow: unset;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    line-height: 1.4;
    font-size: 14px;
    background:var(--white);
}

thead th {
    position: sticky;
    top: var(--toolbar-height, 0px);
    z-index: 10;
    background-color: var(--table-header-bg-color);
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 14px;
    text-align: left;
    white-space: nowrap;
}

    thead th input,
    thead th select {
        background-color: var(--input-bg-color);
        border-color: var(--gray-300);
    }

td {
    padding: 6px 14px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    color: var(--text-color);

}

.td-actions {
    padding-top: 0;
    padding-bottom: 0;
    white-space: nowrap;
    text-align: right;
}

    .td-actions .btn {
        padding: 6px 10px;
        font-size: 13px;
    }

tbody tr {
    background-color: var(--table-row-bg);
    transition: background-color 0.1s ease;
}

@media (hover: hover) {
    tbody tr:hover {
        background-color: var(--table-hover-bg-color);
        cursor: pointer;
    }
}

@media (hover: none) {
    tbody tr:active {
        background-color: var(--table-hover-bg-color);
    }
}

tr.group-header {
    position: sticky;
    top: 0;
    background-color: var(--gray-200);
    z-index: 5;
}

    tr.group-header td {
        font-weight: 600;
    }

tr.placeholder {
    cursor: default;
    pointer-events: none;
    opacity: 0.6;
}

.handle-cell {
    width: 40px;
    text-align: center;
}

.td-icons {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

    .td-icons i {
        color: var(--gray-300);
        margin-left: 8px;
    }

    .td-icons .qr-icon {
        color: var(--primary);
    }

    .td-icons .time-credit {
        font-size: 12px;
        color: var(--muted-color);
        margin-left: 8px;
    }

.icon-action {
    cursor: pointer;
    transition: color 0.15s;
}

    .icon-action:hover {
        color: var(--primary) !important;
    }

.hotel-rooms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
