/* Neziskovky Documents Frontend Styles */

.neziskovky-orders-table-wrapper,
.neziskovky-invoices-table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
}

.neziskovky-orders-table-wrapper h3,
.neziskovky-invoices-table-wrapper h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 15px;
}

.neziskovky-orders-table,
.neziskovky-invoices-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9em;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.neziskovky-orders-table thead tr,
.neziskovky-invoices-table thead tr {
    background-color: #f8f9fa;
    color: #212529;
}

.neziskovky-orders-table th,
.neziskovky-invoices-table th,
.neziskovky-orders-table td,
.neziskovky-invoices-table td {
    padding: 12px 8px;
    text-align: left;
    border: 1px solid #dee2e6;
    vertical-align: top;
}

.neziskovky-orders-table th,
.neziskovky-invoices-table th {
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.neziskovky-orders-table tbody tr:nth-child(even),
.neziskovky-invoices-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.neziskovky-orders-table tbody tr:hover,
.neziskovky-invoices-table tbody tr:hover {
    background-color: #e9ecef;
}

.order-description,
.invoice-description {
    max-width: 200px;
    word-wrap: break-word;
    line-height: 1.4;
}

.supplier-info {
    line-height: 1.3;
}

.supplier-info strong {
    display: block;
    margin-bottom: 2px;
}

.supplier-info small {
    font-size: 0.8em;
    color: #666;
    display: block;
}

.neziskovky-pagination {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: #666;
}

.neziskovky-no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.neziskovky-no-results p {
    margin: 0;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .neziskovky-orders-table,
    .neziskovky-invoices-table {
        font-size: 0.8em;
    }
    
    .neziskovky-orders-table thead,
    .neziskovky-invoices-table thead {
        display: none;
    }
    
    .neziskovky-orders-table,
    .neziskovky-invoices-table,
    .neziskovky-orders-table tbody,
    .neziskovky-invoices-table tbody,
    .neziskovky-orders-table tr,
    .neziskovky-invoices-table tr,
    .neziskovky-orders-table td,
    .neziskovky-invoices-table td {
        display: block;
        width: 100%;
    }
    
    .neziskovky-orders-table tr,
    .neziskovky-invoices-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        background-color: #fff;
    }
    
    .neziskovky-orders-table td,
    .neziskovky-invoices-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 30% !important;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    .neziskovky-orders-table td:before,
    .neziskovky-invoices-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 25%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #333;
    }
    
    .order-description,
    .invoice-description {
        max-width: none;
    }
}

@media screen and (max-width: 480px) {
    .neziskovky-orders-table td,
    .neziskovky-invoices-table td {
        padding-left: 35% !important;
    }
    
    .neziskovky-orders-table td:before,
    .neziskovky-invoices-table td:before {
        width: 30%;
        font-size: 0.8em;
    }
}