/* Kontener nawigacji */
.dp-espi-wrapper {
    margin: 20px 0;
    font-family: inherit;
}

.dp-espi-nav-container {
    background-color: #f2f2f2;
    padding: 15px 20px 10px 20px;
    margin-bottom: 20px;
}

/* Poziom 1: Zakładki typów raportów (RAPORTY BIEŻĄCE / RAPORTY OKRESOWE) */
.dp-espi-types-filter {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    gap: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.dp-espi-types-filter li {
    font-size: 16px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.dp-espi-types-filter li:hover,
.dp-espi-types-filter li.active {
    color: #d9230f; /* Czerwony kolor aktywnej zakładki */
}

/* Poziom 2: Nawigacja lat ze strzałką */
.dp-espi-years-filter {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

.dp-espi-years-filter li {
    position: relative;
    font-size: 18px;
    font-weight: bold;
    color: #444;
    cursor: pointer;
    padding-bottom: 5px;
    transition: color 0.2s ease;
}

.dp-espi-years-filter li:hover,
.dp-espi-years-filter li.active {
    color: #d9230f;
}

/* Czerwony trójkącik nad aktywnym rokiem */
.dp-espi-years-filter li.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #d9230f;
}

/* Tabela */
.dp-espi-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.dp-espi-table th {
    background-color: #fff;
    color: #333;
    font-weight: bold;
    text-align: left;
    padding: 12px 8px;
    border-bottom: 2px solid #eee;
}

.dp-espi-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    font-size: 14px;
}

.dp-espi-table td a {
    color: #d9230f;
    text-decoration: none;
}

.dp-espi-table td a:hover {
    text-decoration: underline;
}