#resellerDropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
}

.table-custom {
    width: 100%;
    min-width: 500px;
}

.table-custom td,
.table-custom th {
    vertical-align: middle !important;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

table.dataTable th,
table.dataTable td {
    white-space: nowrap;
}

/* ================================
   DATATABLES – TOP LAYOUT
================================ */

.dt-layout-top {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 8px;
}

.dt-layout-top .dt-layout-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

/* Entries selector */
.dt-layout-top .dt-length {
    margin-bottom: 0;
}

/* All Pins – balanced gap above */
.dt-extra-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 9px;        /* ✅ perfect rhythm */
}

.dt-extra-filter select {
    min-width: 130px;
    width: auto;
}

/* Search – tighter gap */
.dt-search {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 3px;        /* ✅ tighter spacing */
}

.dt-search input {
    text-align: center;
    width: 80%;
    max-width: 260px;
}


/* ================================
   DATATABLES – BOTTOM LAYOUT
================================ */

.dt-layout-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.dt-layout-bottom .dt-info {
    width: 100%;
    text-align: center;
}

.dt-layout-bottom .dt-paging {
    display: flex;
    justify-content: center;
    width: 100%;
}


/* ================================
   DESKTOP LAYOUT
================================ */

@media (min-width: 768px) {
    .dt-layout-top .dt-layout-cell {
        flex-direction: row;
        gap: 10px;
    }

    .dt-extra-filter,
    .dt-search {
        margin-top: 0;     /* reset vertical spacing */
    }

    .dt-search input {
        width: 220px;
    }
}

mwc-select {
    --mdc-menu-max-height: 300px;
    --mdc-menu-min-width: 100%;
}

.select-icon {
    width: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.litepicker {
    animation: fadeInScale 0.15s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#data-table tbody td {
    vertical-align: middle !important;
}

/* remove default blue highlight (FIXED properly) */
#server-table-list tbody td {
    vertical-align: middle !important;
}

#server-table-list.dataTable tbody tr.selected,
#server-table-list.dataTable tbody tr.selected > td {
    background-color: #f5f5f5 !important;
    color: inherit !important;
}

/* optional: subtle hover (nice UX) */
#server-table-list.dataTable tbody tr:hover {
    background-color: #f1f3f5;
}

/* checkbox column */
#server-table-list td.select-checkbox {
    position: relative;
    cursor: pointer;
}

/* checkbox box */
#server-table-list td.select-checkbox::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 1px solid #adb5bd;
    border-radius: 3px;
    display: inline-block;
    vertical-align: middle;
    background: #fff;
}

/* checked state */
#server-table-list tr.selected td.select-checkbox::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 8px;
    border: solid #0d6efd;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* force override DataTables select blue */
#server-table-list.dataTable tbody tr.selected,
#server-table-list.dataTable tbody tr.selected > td,
#server-table-list.dataTable tbody tr.selected > * {
    background-color: #f5f5f5 !important;
    color: inherit !important;
}

#server-table-list.dataTable tbody tr.selected > * {
    box-shadow: inset 0 0 0 9999px rgba(var(--bs-primary-rgb), 0.15) !important;
    color: inherit !important;
}

#server-table-list .checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-compact {
    font-size: 0.775rem;
    padding: 0.25rem 0.5rem;
    height: calc(1.5em + 0.5rem + 2px);

    display: inline-flex;
    align-items: center;
    justify-content: center;  /* 🔥 ensures perfect vertical + horizontal centering */
    gap: 4px;                 /* better than margin-right */
}

.btn-compact .material-symbols-outlined {
    font-size: 1em;
}

#bulk-list {
    scrollbar-gutter: stable;
}

.bulk-item {
    padding-right: 8px;
}

.bulk-item:hover {
    background: #f8f9fa;
}