.draggable-helper {
    padding: 10px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.ui-droppable-hover {
    background: tomato;
}

.accordion-button {
    height: 1.5rem;
    width: 1.5rem;
}

.distributor-listing-table,
.gm-table {
    padding-left: 1rem;
    /* margin-top: 0.5rem; */
    min-height: 400px;
    max-height: calc(100vh - 220px);
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.distributor-listing-table {
    max-height: 55vh;
}

.distributor-listing-table tr,
.gm-table tr {
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.row-group-name:hover {
    cursor: pointer;
    transition: 0.5s ease-in-out;
}

#pagination {
    margin: 16px 0;
}

.row-selector {
    /* display: none; */
    margin-top: 4px;
    margin-left: 3px;
    transform: scale(1.2);
    cursor: pointer;
}

/* search distributor styles */
/* search button styles */
.search-container {
    position: relative;
    display: inline-block;
}

.search-box {
    position: absolute;
    bottom: 100%;
    left: 60%;
    transform: translateX(-10%);
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 5px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-box.visible {
    opacity: 1;
    visibility: visible;
}

.search-input {
    border: none;
    outline: none;
    padding: 8px;
    font-size: 16px;
    width: 200px;
    border-radius: 20px;
}

.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    color: #007bff;
    transition: color 0.3s ease;
}

/* Search Toggle Button */
.search-toggle {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: black;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.search-toggle:hover {
    transform: scale(1.2);
    transition: 0.3s ease-in-out;
}


#rowsPerPage {
    color: gray;
    appearance: none;
    /* Hides the default dropdown arrow */
}


.table-draggable {
    cursor: move;
}

.table-droppable {
    transition: background-color 0.3s ease;
}

.gm-table .drop-highlight,
.gm-table .group-table .drop-highlight {
    background-color: tomato !important;
    transform: scale(1.02);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.dragging {
    opacity: 0.7;
    animation: pulse 1s infinite;
    z-index: 1000;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.drag-handle {
    cursor: move;
    padding: 5px;
    color: #666;
}

.drag-handle:hover {
    color: #000;
}

.gm-table tbody tr td,
.gm-table .group-table tbody tr td {
    position: relative;
    z-index: 10;
    min-width: 50px;
}

.accordion-collapse {
    z-index: 5;
    /* Ensure nested tables are accessible */
}
