/* Payment History Styles */

.ptpph-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.ptpph-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
}

.ptpph-header h2 {
    font-size: 28px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.ptpph-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Search Section */
.ptpph-search-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.ptpph-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: flex-end;
}

.ptpph-form-group {
    display: flex;
    flex-direction: column;
}

.ptpph-form-group-filter {
    grid-column: 2 / 3;
}

.ptpph-form-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 13px;
}

.ptpph-required {
    color: #e74c3c;
    margin-left: 3px;
}

.ptpph-form-group input,
.ptpph-form-group select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.ptpph-form-group input:focus,
.ptpph-form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Buttons */
.ptpph-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.ptpph-btn-primary {
    background-color: #3498db;
    color: white;
}

.ptpph-btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.ptpph-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Results Section */
.ptpph-results {
    margin: 30px 0;
}

.ptpph-loading {
    text-align: center;
    padding: 40px;
}

.ptpph-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: ptpph-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes ptpph-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ptpph-loading p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Error Messages */
.ptpph-error {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 15px;
    color: #c33;
    margin-bottom: 20px;
}

/* Table */
.ptpph-table-wrapper {
    overflow-x: auto;
}

.ptpph-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.ptpph-table thead {
    background-color: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
}

.ptpph-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ptpph-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
}

.ptpph-table tbody tr:hover {
    background-color: #f9f9f9;
}

.ptpph-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.ptpph-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.ptpph-badge-approved {
    background-color: #d4edda;
    color: #155724;
}

.ptpph-badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

.ptpph-badge-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.ptpph-badge-failed {
    background-color: #f5c6cb;
    color: #721c24;
}

/* No Results */
.ptpph-no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px dashed #ddd;
}

.ptpph-no-results p {
    margin: 0;
    font-size: 16px;
}

/* Info Box */
.ptpph-info-box {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
}

.ptpph-info-box h3 {
    color: #1565c0;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
}

.ptpph-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ptpph-info-box li {
    padding: 8px 0;
    color: #0d47a1;
    font-size: 13px;
    padding-left: 25px;
    position: relative;
}

.ptpph-info-box li:before {
    content: "ℹ";
    position: absolute;
    left: 0;
}

/* Modal/Popup for details */
.ptpph-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.ptpph-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.ptpph-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.ptpph-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.ptpph-close {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.3s;
}

.ptpph-close:hover {
    color: #333;
}

.ptpph-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ptpph-detail-row:last-child {
    border-bottom: none;
}

.ptpph-detail-label {
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
}

.ptpph-detail-value {
    color: #333;
    font-size: 14px;
    word-break: break-all;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ptpph-container {
        padding: 15px;
    }

    .ptpph-form {
        grid-template-columns: 1fr;
    }

    .ptpph-form-group-filter {
        grid-column: 1;
    }

    .ptpph-table {
        font-size: 12px;
    }

    .ptpph-table th,
    .ptpph-table td {
        padding: 10px;
    }

    .ptpph-detail-row {
        grid-template-columns: 1fr;
    }

    .ptpph-modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .ptpph-header h2 {
        font-size: 20px;
    }

    .ptpph-form {
        gap: 10px;
    }

    .ptpph-btn {
        width: 100%;
    }

    .ptpph-table {
        font-size: 11px;
    }

    .ptpph-table th,
    .ptpph-table td {
        padding: 8px;
    }
}

