/* ExtJS-style Pagination Toolbar */
.x-tbar-page-number {
    width: 30px;
    height: 18px;
    padding: 2px 4px;
    text-align: right;
    border: 1px solid #b5b8c8;
    background: #fff;
    font-size: 11px;
    font-family: tahoma,arial,verdana,sans-serif;
    margin: 0 5px;
}

.x-toolbar-paging {
    background: #d0def0;
    border: 1px solid #99bbe8;
    padding: 2px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: tahoma,arial,verdana,sans-serif;
    font-size: 11px;
}

.x-toolbar-paging .x-toolbar-left {
    display: flex;
    align-items: center;
    gap: 2px;
}

.x-toolbar-paging .x-toolbar-right {
    display: flex;
    align-items: center;
    padding-right: 5px;
}

.x-toolbar-paging .x-paging-info {
    color: #15428b;
    font-weight: normal;
    padding: 0 5px;
}

.x-toolbar-paging .x-btn {
    background: #d0def0;
    padding: 1px 3px;
    margin: 0 1px;
    cursor: pointer;
    height: 20px;
    min-width: 20px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #15428b;
    text-decoration: none;
}

.x-toolbar-paging .x-btn:hover {
    background: #c0d0e8;
    border-color: #99bbe8;
}

.x-toolbar-paging .x-btn:active {
    background: #b0c0d8;
}

.x-toolbar-paging .x-btn.x-item-disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.x-toolbar-paging .x-btn .x-btn-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAdgAAAHYBTnsmCAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABSSURBVDiNY/j//z8DJYCJgUIwqmFUAy4NTAwUgqEbBv/pjP6jgVENoxqGjQYKAWODIwM1DKMGRjWQ7gJqh8GohlENo0YD5S6gdgSMahjVQDoAAK75EhFLJ6+6AAAAAElFTkSuQmCC');
    background-repeat: no-repeat;
}

.x-toolbar-paging .x-btn-first .x-btn-icon {
    background-position: 0 0;
}

.x-toolbar-paging .x-btn-prev .x-btn-icon {
    background-position: -16px 0;
}

.x-toolbar-paging .x-btn-next .x-btn-icon {
    background-position: -32px 0;
}

.x-toolbar-paging .x-btn-last .x-btn-icon {
    background-position: -48px 0;
}

.x-toolbar-paging .x-btn-refresh .x-btn-icon {
    background-position: -64px 0;
}

/* Simple text buttons without icons */
.x-toolbar-paging .x-btn-text {
    padding: 0 5px;
    font-size: 11px;
    line-height: 18px;
}

.x-toolbar-separator {
    width: 1px;
    height: 16px;
    background: #15428b;
    margin: 0 5px;
    display: inline-block;
    vertical-align: middle;
}

/* Page input field styling */
.x-tbar-page-number:focus {
    outline: none;
    border-color: #7eadd9;
    background: #ffffd0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .x-toolbar-paging {
        flex-direction: column;
        height: auto;
        padding: 5px;
    }

    .x-toolbar-paging .x-toolbar-left,
    .x-toolbar-paging .x-toolbar-right {
        width: 100%;
        justify-content: center;
        margin: 2px 0;
    }
}

/* Table row hover effect for dashboard_test */
.table-search tbody tr:hover {
    background-color: #f3f5f9 !important;
    cursor: pointer;
}

.table-search tbody tr {
    transition: background-color 0.2s ease;
}
