/* Style dla tabeli upadłości */
.bkm-cases-table-wrapper {
    margin: 2rem 0;
    font-family: inherit;
}

.bkm-cases-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bkm-cases-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
}

.bkm-cases-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.bkm-cases-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Paginacja */
.bkm-pagination {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bkm-pagination a,
.bkm-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #007cba;
    background: #fff;
    transition: all 0.3s ease;
}

.bkm-page-numbers a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #007cba;
    background: #fff;
    transition: all 0.3s ease;
}

.bkm-page-numbers a:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.bkm-pagination a:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.bkm-current-page {
    background: #007cba !important;
    color: #fff !important;
    border-color: #007cba !important;
}

.bkm-prev-page,
.bkm-next-page {
    font-weight: 600;
}

/* Responsywność */
@media (max-width: 768px) {
    .bkm-cases-table-wrapper {
        overflow-x: auto;
        margin: 1rem 0;
    }
    
    .bkm-cases-table {
        min-width: 600px;
        font-size: 14px;
    }
    
    .bkm-cases-table th,
    .bkm-cases-table td {
        padding: 8px 10px;
    }
    
    .bkm-pagination {
        flex-direction: column;
        gap: 5px;
    }
}

/* Responsywna tabela - przekształca się w karty na małych ekranach */
@media (max-width: 600px) {
    .bkm-cases-table {
        display: block;
        min-width: auto;
    }
    
    .bkm-cases-table thead {
        display: none;
    }
    
    .bkm-cases-table tbody {
        display: block;
    }
    
    .bkm-cases-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 1rem;
        transition: all 0.3s ease;
    }
    
    .bkm-cases-table tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    
    .bkm-cases-table td {
        display: block;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        white-space: normal;
    }
    
    .bkm-cases-table td:last-child {
        border-bottom: none;
    }
    
    .bkm-cases-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #495057;
        display: block;
        margin-bottom: 4px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .bkm-cases-table td:first-child:before {
        content: "Lp.";
    }
    
    .bkm-cases-table td:nth-child(2):before {
        content: "Orzeczenie";
    }
    
    .bkm-cases-table td:nth-child(3):before {
        content: "Wynik";
    }
}

/* Komunikat o braku spraw */
.bkm-no-cases {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}
