.pg-toolbar,
.table-panel-header {
    position: relative;
}

.pg-toolbar--tinted {
    background:
        linear-gradient(120deg, rgba(15, 118, 110, 0.06) 0%, rgba(2, 132, 199, 0.04) 40%, rgba(217, 119, 6, 0.05) 100%),
        linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.table-panel-header {
    background:
        linear-gradient(115deg, rgba(2, 132, 199, 0.05) 0%, rgba(249, 250, 251, 0.9) 45%, rgba(217, 119, 6, 0.05) 100%);
    border-bottom: 1px solid #e5e7eb;
}

.pg-table-head {
    background:
        linear-gradient(180deg, rgba(2, 132, 199, 0.06) 0%, rgba(249, 250, 251, 0.92) 42%, rgba(217, 119, 6, 0.06) 100%);
}

.power-grid-table thead th {
    border-bottom: 1px solid #e5e7eb;
}

.pg-toolbar .pg-actions > * {
    display: inline-flex;
    align-items: center;
}

.pg-toolbar .pg-actions a:not([class*="kt-btn"]),
.pg-toolbar .pg-actions button:not([class*="kt-btn"]) {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 0.65rem;
    transition: all 0.15s ease;
}

.pg-toolbar .pg-actions a:not([class*="kt-btn"]):hover,
.pg-toolbar .pg-actions button:not([class*="kt-btn"]):hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.pg-toolbar .kt-input {
    min-width: 12.5rem;
}

.pg-search-wrap .kt-input {
    max-width: 16rem;
}

.pg-toolbar #toggle-filters {
    margin-right: 0;
}

.pg-toolbar #toggle-filters button {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #4b5563;
    padding: 0.45rem 0.6rem;
}

.pg-toolbar #toggle-filters button:hover {
    background: #f9fafb;
    border-color: #cbd5e1;
}

.pg-toolbar #toggle-filters button .ki-outline,
.pg-toolbar #toggle-filters button svg {
    color: #6b7280;
}

.pg-filter-container {
    margin-top: 0.65rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.65rem;
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    padding: 0.75rem;
}

.pg-enabled-filters-base {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.pg-enabled-filters-base span {
    border-color: #d1d5db !important;
    background: #ffffff !important;
    color: #4b5563 !important;
}

.pg-enabled-filters-base span:hover {
    background: #f9fafb !important;
    color: #111827 !important;
}

.pg-pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.88);
}

.pg-pagination-pages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.pg-pagination-btn {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    background: transparent;
    color: #4b5563;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    transition: all 0.15s ease;
}

.pg-pagination-btn:hover:not(.is-disabled):not(.is-active) {
    border-color: #e5e7eb;
    background: #f9fafb;
    color: #111827;
}

.pg-pagination-btn.is-active {
    border-color: #d8e0ea;
    background: #edf1f5;
    color: #1f2937;
    cursor: default;
    pointer-events: none;
}

.pg-pagination-btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pg-pagination-ellipsis {
    padding: 0 0.2rem;
    color: #9ca3af;
    font-size: 0.75rem;
}

@media (max-width: 767px) {
    .pg-toolbar .kt-input,
    .pg-search-wrap .kt-input {
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .pg-pagination-btn {
        min-width: 1.85rem;
        height: 1.85rem;
        padding: 0 0.35rem;
    }
}

.power-grid-table td[data-column="actions"] {
    white-space: nowrap;
    width: 1%;
}
