/* Posted Invoices Table Styles */
.st-invoices-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.st-invoices-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.st-invoices-table {
    width: 100%;
    min-width: 300px;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.st-invoices-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.st-invoices-table thead tr,
.st-invoices-table tbody tr {
    display: flex;
    width: 100%;
}

.st-invoices-table th,
.st-invoices-table td {
    flex: 1;
    padding: 12px 16px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.st-invoices-table th:first-child,
.st-invoices-table td:first-child {
    text-align: left;
}

.st-invoices-table th:nth-child(2),
.st-invoices-table td:nth-child(2) {
    text-align: center;
}

.st-invoices-table th:last-child,
.st-invoices-table td:last-child {
    text-align: right;
}

.st-invoices-table tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.15s;
}

.st-invoices-table tr:nth-child(even) {
    background: #f8f9fa;
}

.st-invoices-table tr:nth-child(odd) {
    background: #ffffff;
}

.st-invoices-table tr:hover {
    background: #e3f2fd !important;
}

.st-invoices-table td {
    font-size: 14px;
}

.st-invoice-number {
    color: #212529;
}

.st-invoice-date {
    color: #6c757d;
}

.st-invoice-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.15s;
}

.st-invoice-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.st-invoices-empty {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.st-invoices-pagination {
    margin-top: 20px;
    text-align: center;
}

.st-page-link {
    display: inline-block;
    margin: 0 4px;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.st-page-link.active {
    background: #005a87;
    color: white;
    font-weight: bold;
    pointer-events: none;
    opacity: 0.7;
}

.st-page-link.hover {
    border-color: #005a87;
    font-weight: bold;
    pointer-events: none;
    opacity: 0.7;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .st-invoices-table {
        font-size: 13px;
    }
    
    .st-invoices-table th,
    .st-invoices-table td {
        padding: 8px 10px;
    }
    
    .st-invoices-table th:first-child,
    .st-invoices-table td:first-child {
        min-width: 80px;
    }
    
    .st-invoices-table th:nth-child(2),
    .st-invoices-table td:nth-child(2) {
        min-width: 85px;
    }
    
    .st-invoices-table th:last-child,
    .st-invoices-table td:last-child {
        min-width: 65px;
    }
    
    .st-invoice-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .st-invoices-container {
        padding: 0 5px;
    }
    
    .st-invoices-table {
        font-size: 12px;
    }
    
    .st-invoices-table th,
    .st-invoices-table td {
        padding: 6px 8px;
    }
    
    .st-invoice-btn {
        padding: 3px 6px;
        font-size: 11px;
    }
}

/* Large Screens */
@media (min-width: 1200px) {
    .st-invoices-table {
        font-size: 15px;
    }
    
    .st-invoices-table th,
    .st-invoices-table td {
        padding: 14px 20px;
    }
    
    .st-invoice-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}