/* =============================================
   Rejestr Uchwał – style publiczne
   ============================================= */

.ru-rejestr {
    font-family: inherit;
    color: inherit;
}

/* Filtry */
.ru-filters {
    background: #f7f8fa;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.ru-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.ru-filters__group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 160px;
}

.ru-filters__group--btn {
    flex-direction: row;
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 8px;
}

.ru-filters__group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5a6374;
}

.ru-filters__group input[type="text"],
.ru-filters__group select {
    padding: 8px 10px;
    border: 1px solid #cdd0d6;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: inherit;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.ru-filters__group input[type="text"]:focus,
.ru-filters__group select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

/* Przyciski */
.ru-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.ru-btn--primary {
    background: #2271b1;
    color: #fff;
}

.ru-btn--primary:hover {
    background: #135e96;
    color: #fff;
}

.ru-btn--secondary {
    background: #fff;
    color: #2271b1;
    border: 1px solid #2271b1;
}

.ru-btn--secondary:hover {
    background: #f0f5fa;
    color: #135e96;
}

/* Liczba wyników */
.ru-count {
    font-size: 13px;
    color: #5a6374;
    margin-bottom: 12px;
}

/* Tabela */
.ru-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ru-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    overflow: hidden;
}

.ru-table thead {
    background: #f0f4f8;
}

.ru-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5a6374;
    border-bottom: 1px solid #e2e5ea;
    white-space: nowrap;
}

.ru-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f2f4;
    vertical-align: middle;
}

.ru-table tbody tr:last-child td {
    border-bottom: none;
}

.ru-table tbody tr:hover {
    background: #f7f9fb;
}

.ru-col-numer {
    width: 130px;
    font-family: monospace;
    font-size: 13px;
}

.ru-col-tytul {
    min-width: 200px;
}

.ru-col-rodzaj,
.ru-col-organ {
    width: 160px;
}

.ru-col-data {
    width: 110px;
    white-space: nowrap;
}

.ru-col-status {
    width: 120px;
}

.ru-col-pdf {
    width: 70px;
    text-align: center;
}

/* Statusy – odznaki */
.ru-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.ru-badge--obowiazujaca {
    background: #e6f6ec;
    color: #1a7a38;
}

.ru-badge--uchylona {
    background: #fce9e9;
    color: #c0392b;
}

.ru-badge--zmieniona {
    background: #fef9e7;
    color: #9a6a00;
}

.ru-badge--zawieszona {
    background: #f2f3f4;
    color: #555;
}

/* Link do PDF */
.ru-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #c0392b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.ru-pdf-link:hover {
    color: #7b241c;
    text-decoration: underline;
}

.ru-pdf-link svg {
    flex-shrink: 0;
}

/* Paginacja */
.ru-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.ru-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #cdd0d6;
    border-radius: 4px;
    font-size: 14px;
    color: #2271b1;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ru-page-link:hover {
    background: #f0f5fa;
    border-color: #2271b1;
}

.ru-page-link--active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    pointer-events: none;
}

/* Stan pusty */
.ru-empty {
    text-align: center;
    padding: 40px 20px;
    color: #5a6374;
    background: #f7f8fa;
    border: 1px dashed #cdd0d6;
    border-radius: 6px;
}

/* =============================================
   Responsywność – mobile
   ============================================= */
@media (max-width: 640px) {
    .ru-filters__row {
        flex-direction: column;
    }
    .ru-filters__group {
        flex: 1 1 100%;
    }
    .ru-filters__group--btn {
        width: 100%;
    }
    .ru-btn {
        width: 100%;
    }

    .ru-table thead {
        display: none;
    }

    .ru-table tbody tr {
        display: block;
        border-bottom: 2px solid #e2e5ea;
        margin-bottom: 8px;
    }

    .ru-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f0f2f4;
        padding: 8px 12px;
        font-size: 13px;
    }

    .ru-table td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 11px;
        text-transform: uppercase;
        color: #5a6374;
        flex-shrink: 0;
        margin-right: 12px;
    }

    .ru-col-pdf {
        text-align: right;
    }
}
