/* Основные стили таблицы */
#spt-search {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.spt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.spt-table th, 
.spt-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.spt-table th {
    background-color: #f5f5f5;
    cursor: pointer;
    position: relative;
    padding-right: 30px !important;
}

.spt-table th:hover {
    background-color: #e9e9e9;
}

/* Исправленные стили для иконок сортировки */
.spt-sort-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 14px;
}

.spt-table th.spt-sorted .spt-sort-icon {
    opacity: 1;
    color: #2271b1;
}

.spt-table th.spt-sorted-asc .spt-sort-icon:before {
    content: "↑";
    display: inline-block;
}

.spt-table th.spt-sorted-desc .spt-sort-icon:before {
    content: "↓";
    display: inline-block;
}

/* Анимация при наведении */
.spt-table th:not(.spt-sorted):hover .spt-sort-icon {
    opacity: 0.8;
}