/* Frontend Styles */
.pgpaj-frontend-container {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pgpaj-title {
    text-align: center;
    color: #1e3a5f;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1e3a5f;
    font-size: 24px;
    font-weight: 600;
}

.pgpaj-table-wrapper {
    overflow-x: auto;
}

.pgpaj-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.pgpaj-table thead {
    background-color: #1e3a5f;
    color: #fff;
}

.pgpaj-table thead th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #fff;
}

.pgpaj-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.pgpaj-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.pgpaj-table tbody tr:hover {
    background-color: #f0f0f0;
}

.pgpaj-table tbody td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.pgpaj-table tbody td:first-child {
    text-align: center;
    font-weight: 600;
}

/* Responsive Table */
@media screen and (max-width: 768px) {
    .pgpaj-title {
        font-size: 18px;
    }
    
    .pgpaj-table {
        font-size: 12px;
    }
    
    .pgpaj-table thead {
        display: none;
    }
    
    .pgpaj-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .pgpaj-table tbody td {
        display: block;
        text-align: right;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #eee;
    }
    
    .pgpaj-table tbody td:last-child {
        border-bottom: none;
    }
    
    .pgpaj-table tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #1e3a5f;
    }
    
    .pgpaj-table tbody td:first-child {
        text-align: right;
        background-color: #1e3a5f;
        color: #fff;
    }
    
    .pgpaj-table tbody td:first-child:before {
        color: #fff;
    }
}

/* Print Styles */
@media print {
    .pgpaj-frontend-container {
        border: none;
        box-shadow: none;
    }
    
    .pgpaj-table {
        font-size: 11px;
    }
    
    .pgpaj-table thead {
        background-color: #1e3a5f !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
