/**
 * Energydata — List Styles
 *
 * Sortierbare Spalten und Pagination.
 * Wird auf Listen-Seiten geladen (Operators, Tariffs, Plants, Storage).
 */

/* ==========================================================================
   Base
   ========================================================================== */

.ed-pagination {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ed-text);
}

/* ==========================================================================
   Sortierbare Spalten
   ========================================================================== */

.ed-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.ed-sort-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    vertical-align: middle;
    opacity: 0.3;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 5px solid var(--ed-primary);
}

.ed-sorted .ed-sort-icon {
    opacity: 0.8;
    padding-bottom: 2px;
}

.ed-sorted[data-order="desc"] .ed-sort-icon {
    border-bottom: none;
    border-top: 5px solid var(--ed-primary);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.ed-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.ed-pagination a,
.ed-pagination .current {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--ed-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--ed-text);
}

.ed-pagination a:hover {
    background: var(--ed-bg-light);
}

.ed-pagination .current {
    background: var(--ed-primary);
    color: #fff;
    border-color: var(--ed-primary);
}

.ed-pagination-ellipsis {
    padding: 0.5rem 0.25rem;
    color: var(--ed-text-light);
}

/* ==========================================================================
   Service-Type Pill Filter
   ========================================================================== */

.ed-svc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.ed-svc-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ed-text);
    background: var(--ed-bg-white);
    border: 1px solid var(--ed-border);
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    white-space: nowrap;
}

.ed-svc-pill:hover {
    border-color: var(--ed-primary);
    color: var(--ed-primary);
    text-decoration: none;
}

.ed-svc-pill.active {
    background: var(--ed-primary);
    border-color: var(--ed-primary);
    color: #fff;
}

/* ==========================================================================
   Leerer Zustand (keine Filterergebnisse)
   ========================================================================== */

.ed-no-results {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--ed-text-light);
}

.ed-no-results i {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.35;
    display: block;
}

.ed-no-results p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.ed-no-results__reset {
    padding: 0.45rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ed-primary);
    background: transparent;
    border: 1.5px solid var(--ed-primary);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ed-no-results__reset:hover {
    background: var(--ed-primary);
    color: #fff;
}

