section.modal-delete.show .modal-footer {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

section.modal-delete.show .modal-header .form-close {
    position: relative !important;
}

/* Ensure the parent has position relative */
.l_sidebar-layout {
    position: relative;
}

/* Target notifications container when it has alert-dismissible notification inside */
.notifications:has(.notification.alert-dismissible) {
    position: absolute;
    bottom: 40px;
    left: 50%;
    z-index: 9999;
}

.notifications .notification.alert-dismissible {
    max-width: none !important;
}



.gmp-lookup-modal table.table {
    table-layout: fixed; /* Forces fixed column widths */
    width: 100%;
}

.gmp-lookup-modal table.table td {
    white-space: nowrap;     /* Keeps text on one line */
    overflow: hidden;        /* Hides overflow */
    text-overflow: ellipsis; /* Adds '...' if text is too long */
}

/* Specific alignment for the checkbox column */
.gmp-lookup-modal .col-checkbox {
    width: 80px;
    text-align: center;
}

.gmp-lookup-modal .selected-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    min-height: 30px;
}

.gmp-lookup-modal .selected-tag {
    background-color: #f2f2f2;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #333;
}

.gmp-lookup-modal .selected-tag .remove-tag {
    margin-left: 8px;
    cursor: pointer;
    color: #666;
    font-weight: bold;
}



.gmp-lookup-modal .pagination-wrapper {
    display: flex;
    justify-content: flex-start; /* Aligns items to the left */
    align-items: center;         /* Vertically centers text and buttons */
    gap: 15px;                   /* Space between 'Showing...' and the page links */
    padding: 10px 0;
}

/*
/* Ensure the record count stays on one line */
.gmp-lookup-modal .record-count {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

/* Reset Bootstrap pagination margins */
.gmp-lookup-modal .pagination-wrapper .pagination {
    margin: 0;
}

.gmp-lookup-modal table.table {
    table-layout: fixed;
    width: 100%;
    /* Define Fallbacks here */
    --col1-width: 30%;
    --col2-width: 60%;
}

/* Checkbox Column - Always fixed */
.gmp-lookup-modal table.table th:nth-child(1),
.gmp-lookup-modal table.table td:nth-child(1) {
    width: 80px; 
    text-align: center;
}

.gmp-lookup-modal table.table th:nth-child(2),
.gmp-lookup-modal table.table td:nth-child(2) {
    width: var(--custom-width-1, var(--col1-width));
}


.gmp-lookup-modal table.table th:nth-child(3),
.gmp-lookup-modal table.table td:nth-child(3) {
    width: var(--custom-width-2, var(--col2-width));
}

.gmp-lookup-modal tr.clickable-row.selected-row {
    background-color: #f3f2f1 !important; /* The light grey highlight */
}

