/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary: #0274be;
    --primary-light: #0274be14;
    --secondary: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --purple: #9b59b6;

    /* Neutral Colors */
    --dark: #2c3e50;
    --gray-dark: #7f8c8d;
    --gray: #95a5a6;
    --gray-light: #bdc3c7;
    --gray-lighter: #ecf0f1;
    --white: #ffffff;

    /* Spacing */
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 15px;
    --space-lg: 20px;
    --space-xl: 25px;
    --space-xxl: 30px;

    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;

    /* Status Colors */
    --status-success: #10b981;
    --status-success-light: #d1fae5;
    --status-warning: #f59e0b;
    --status-warning-light: #fef3c7;
    --status-danger: #ef4444;
    --status-danger-light: #fee2e2;
    --status-info: #3b82f6;
    --status-info-light: #dbeafe;
    --status-secondary: #6b7280;
    --status-secondary-light: #f3f4f6;
    --status-purple: #8b5cf6;
    --status-purple-light: #ede9fe;
    --status-cyan: #06b6d4;
    --status-cyan-light: #cffafe;
}

/* ===== BASE STATUS STYLES ===== */
.dp-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.note-box-text {
	padding: 10px;
	background: #fff;
	margin: 20px 0;
	border-radius: 5px;
	border: 1px dashed #000;
	color: #e3393a;
}
.dp-status-default {
    background: linear-gradient(135deg, var(--status-secondary-light) 0%, #f9fafb 100%);
    color: var(--status-secondary);
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.1);
}

.dp-status-default::after {
    content: '❓';
    font-size: 0.7rem;
}

.dp-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.dp-status:hover::before {
    left: 100%;
}

/* ===== STATUS VARIANTS ===== */
.dp-status-paid {
    background: linear-gradient(135deg, var(--status-success-light) 0%, #ecfdf5 100%);
    color: var(--status-success);
    border-color: #a7f3d0;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.dp-status-paid::after {
    content: '✓';
    font-weight: bold;
}
/* در انتظار - Warning */
.dp-status-pending {
    background: linear-gradient(135deg, var(--status-warning-light) 0%, #fffbeb 100%);
    color: var(--status-warning);
    border-color: #fcd34d;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

.dp-status-pending::after {
    content: '⏳';
    font-size: 0.7rem;
}


.dp-status-pending::after {
    content: '⏳';
    font-size: 0.7rem;
}

/* معوقه - Danger */
.dp-status-overdue {
    background: linear-gradient(135deg, var(--status-danger-light) 0%, #fef2f2 100%);
    color: var(--status-danger);
    border-color: #fca5a5;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.1);
}

.dp-status-overdue::after {
    content: '⚠️';
    font-size: 0.7rem;
}

/* در حال بررسی - Info */
.dp-status-under_review {
    background: linear-gradient(135deg, var(--status-info-light) 0%, #eff6ff 100%);
    color: var(--status-info);
    border-color: #93c5fd;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.dp-status-under_review::after {
    content: '🔍';
    font-size: 0.7rem;
}


/* تایید شده - Success */
.dp-status-verified {
    background: linear-gradient(135deg, var(--status-cyan-light) 0%, #ecfeff 100%);
    color: var(--status-cyan);
    border-color: #67e8f9;
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.1);
}

.dp-status-verified::after {
    content: '✅';
    font-size: 0.7rem;
}

/* آپلود شده - Purple */
.dp-status-uploaded {
    background: linear-gradient(135deg, var(--status-purple-light) 0%, #faf5ff 100%);
    color: var(--status-purple);
    border-color: #c4b5fd;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.1);
}

.dp-status-uploaded::after {
    content: '📤';
    font-size: 0.7rem;
}

/* ناموفق - Danger */
.dp-status-failed {
    background: linear-gradient(135deg, #fecaca 0%, #fef2f2 100%);
    color: #dc2626;
    border-color: #fca5a5;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.dp-status-failed::after {
    content: '❌';
    font-size: 0.7rem;
}

/* برگشتی - Secondary */
.dp-status-bounced {
    background: linear-gradient(135deg, var(--status-secondary-light) 0%, #f9fafb 100%);
    color: var(--status-secondary);
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.1);
}

.dp-status-bounced::after {
    content: '↩️';
    font-size: 0.7rem;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    }
}

.dp-status-pending {
    animation: pulse-glow 2s ease-in-out infinite;
}

.dp-status-overdue {
    animation: pulse-glow 1.5s ease-in-out infinite;
}


/* ===== Empty State ===== */
.dp-empty-state {
    text-align: center;
    padding: var(--space-xxl);
    color: var(--gray-dark);
}

.dp-empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

/* ===== Base Styles ===== */
.dp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===== Typography ===== */
p.denapay_info {
    color: var(--primary);
    padding: var(--space-sm) var(--space-lg);
    font-size: 12px;
    font-weight: bold;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
}

p.denapay_info a {
    color: #000;
    padding: 0 var(--space-sm);
}

/* ===== Header ===== */
.dp-header {
    background: linear-gradient(135deg, var(--secondary), var(--info));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.dp-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dp-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.dp-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.dp-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--info);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.dp_info {
	display: flex;
	align-items: center;
	background: #0004ff17;
	color: #0004ff;
	padding: 20px;
    justify-content: space-between;
	border-radius: 5px;
	box-shadow: 0 0 5px #0004ff17;
	font-size: 12px;
}
.dp_info a {
	color: #fff;
	padding: 5px 15px;
	background: #ff1919;
	border-radius: 999px;
    transition: all 0.3s;
}
.dp_info a:hover {
    background: none;
    color: #ff1919;
    transition: all 0.3s;
}
/* ===== Card Components ===== */
.dp-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* ===== Balance Section ===== */
.dp-balance-section {
    margin: 2rem 0;
}

.dp-balance-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.dp-balance-info h2 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.dp-balance-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--success);
}

.dp-balance-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.dp-btn {
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
}

.dp-btn-primary {
    background-color: var(--info);
    color: var(--white);
}

.dp-btn-primary:hover {
    background-color: #2980b9;
}

.dp-btn-success {
    background-color: var(--success);
    color: var(--white);
}

.dp-btn-success:hover {
    background-color: #219653;
}

.dp-btn-info {
    background-color: var(--purple);
    color: var(--white);
}

.dp-btn-info:hover {
    background-color: #8e44ad;
}

.dp-btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* ===== Tables ===== */
.dp-requests-section {
    margin: 2rem 0;
}

.dp-section-title {
    color: var(--secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--info);
}

.dp-table-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.dp-table {
    width: 100%;
    border-collapse: collapse;
}

.dp-table th {
    background-color: var(--info);
    color: var(--white);
    padding: 12px 15px;
    text-align: right;
}

.dp-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-lighter);
}

.dp-table tr:last-child td {
    border-bottom: none;
}

.dp-table tr:hover {
    background-color: #f8f9fa;
}


.dp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xxl);
}

.dp-stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.dp-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dp-stat-total {
    background: #e3f2fd;
    color: #1976d2;
}

.dp-stat-pending {
    background: #fff3e0;
    color: #f57c00;
}

.dp-stat-paid {
    background: #e8f5e8;
    color: #388e3c;
}

.dp-stat-overdue {
    background: #ffebee;
    color: #d32f2f;
}

.dp-stat-content h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
}

.dp-stat-label {
    margin: 5px 0 0 0;
    color: var(--gray-dark);
    font-size: 14px;
}

/* ===== Forms ===== */
.denapay-form {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg);
    background: #f8f9fa;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.denapay-form * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.denapay-form-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--info);
}

.denapay-form-title {
    color: var(--secondary);
    font-size: 24px;
    font-weight: bold;
}

.denapay-form-subtitle {
    color: var(--gray-dark);
    font-size: 14px;
    margin-top: var(--space-xs);
}

.denapay-form-group {
    margin-bottom: var(--space-xl);
}

.denapay-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 14px;
}

.denapay-form-input,
.denapay-form-select,
.denapay-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.denapay-form-input:focus,
.denapay-form-select:focus,
.denapay-form-textarea:focus {
    border-color: var(--info);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.denapay-form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== Form Layout ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-section {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.header_form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: var(--space-sm) 0;
}

.header_form a {
    background: #82b735;
    padding: 2px 30px;
    border-radius: var(--radius-sm);
    color: var(--white);
}

.section-title {
    font-weight: bold;
    color: var(--primary);
    margin: var(--space-lg) 0 var(--space-md) 0;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--gray-light);
}

/* ===== File Upload ===== */
.denapay-file-upload {
    position: relative;
    overflow: hidden;
    margin-top: var(--space-xs);
}

.denapay-file-input {
    opacity: 0;
    position: absolute;
    left: -9999px;
}

.denapay-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius-md);
    background: #f8f9fa;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.denapay-file-label:hover {
    border-color: var(--info);
    background: #e3f2fd;
}

.denapay-file-label.dragover {
    border-color: var(--success);
    background: #e8f5e8;
}

.denapay-file-icon {
    font-size: 24px;
    color: var(--gray-dark);
    margin-left: var(--space-sm);
}

.denapay-file-text {
    color: var(--gray-dark);
    font-size: 14px;
}

.denapay-file-preview {
    margin-top: var(--space-sm);
    display: none;
}

.denapay-preview-item {
    display: flex;
    align-items: center;
    padding: var(--space-sm);
    background: var(--white);
    border: 1px solid #e1e8ed;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xs);
}

.denapay-preview-icon {
    color: var(--success);
    margin-left: var(--space-sm);
}

.denapay-preview-name {
    flex: 1;
    font-size: 12px;
    color: var(--secondary);
}

.denapay-preview-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 16px;
}

/* ===== Amount Display ===== */
.denapay-amount-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.denapay-amount-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: var(--space-xs);
}

.denapay-amount-value {
    font-size: 28px;
    font-weight: bold;
}

/* ===== Installment Options ===== */
.denapay-installment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.denapay-installment-option {
    text-align: center;
    padding: var(--space-sm);
    border: 2px solid #e1e8ed;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.denapay-installment-option:hover {
    border-color: var(--info);
}

.denapay-installment-option.selected {
    border-color: var(--success);
    background: #e8f5e8;
    color: var(--success);
}

.denapay-installment-number {
    font-size: 16px;
    font-weight: bold;
}

.denapay-installment-text {
    font-size: 10px;
    margin-top: 2px;
}

/* ===== Submit Button ===== */
.denapay-submit-btn {
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--success), #2ecc71);
    color: var(--white) !important;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.denapay-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.denapay-submit-btn:disabled {
    background: var(--gray-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== Status Sections ===== */
.status-section {
    background: #f8f9fa;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    border-right: 4px solid #4361ee;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.under_review {
    background: #cce7ff;
    color: #004085;
}

.status-badge.paid {
    background: #d4edda;
    color: #155724;
}

.status-badge.overdue {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.failed {
    background: #f8d7da;
    color: #721c24;
}

.status-message {
    color: #666;
    font-size: 0.9rem;
}

/* ===== Cheque Preview ===== */
.cheque-preview {
    background: #f8f9fa;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid #dee2e6;
}

.cheque-preview h3 {
    color: #4361ee;
    margin-bottom: var(--space-md);
    border-bottom: 2px solid #4361ee;
    padding-bottom: var(--space-sm);
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.preview-item {
    display: flex;
    flex-direction: column;
}

.preview-item.full-width {
    grid-column: 1 / -1;
}

.preview-item label {
    font-weight: bold;
    color: #333;
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
}

.preview-item span {
    color: #666;
    background: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid #dee2e6;
    min-height: 38px;
    display: flex;
    align-items: center;
}

#preview-cheque-image img {
    max-width: 200px;
    max-height: 150px;
    border-radius: var(--radius-sm);
    border: 1px solid #dee2e6;
}

.image-error {
    color: var(--danger);
    text-align: center;
    padding: var(--space-sm);
}

.image-error a {
    color: #4361ee;
    text-decoration: none;
}

.image-error a:hover {
    text-decoration: underline;
}

/* ===== Form States ===== */
.form-hidden {
    display: none !important;
}

.form-readonly .form-control {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.form-readonly .upload-area {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-readonly .denapay-submit-btn {
    display: none;
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: var(--space-sm) 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-control.error {
    border-color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: var(--space-xs);
    display: none;
}

.upload-area {
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    text-align: center;
    cursor: pointer;
    background-color: #fafbfc;
}

.upload-text {
    color: #666;
    font-size: 0.8rem;
}

.file-input {
    display: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-light);
}

.file-name {
    margin-top: var(--space-sm);
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* ===== Loader ===== */
.dp-loader {
    display: none;
    margin-right: 7px;
    position: relative;
    top: 2px;
}

.dp-send {
    margin-right: 7px;
}

/* ===== Empty States ===== */
.dp-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: var(--radius-xl);
    border: 2px dashed #dee2e6;
}

.dp-empty-icon {
    font-size: 64px;
    margin-bottom: var(--space-lg);
}

.dp-empty-state h3 {
    color: #6c757d;
    margin-bottom: var(--space-sm);
}

.dp-empty-state p {
    color: #adb5bd;
    margin: 0;
}

/* ===== Modal ===== */
.dp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.dp-modal-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-lighter);
}

.dp-modal-title {
    color: var(--secondary);
    margin: 0;
}

.dp-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-dark);
}

.dp-form-group {
    margin-bottom: 1.5rem;
}

.dp-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--secondary);
}

.dp-form-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.dp-form-input:focus {
    border-color: var(--info);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.dp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    margin-top: 1.5rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .dp-header-content {
        flex-direction: column;
        gap: var(--space-md);
    }

    .dp-balance-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .dp-balance-actions {
        width: 100%;
        justify-content: center;
    }

    .dp-table-container {
        overflow-x: auto;
    }

    .dp-table {
        min-width: 600px;
    }

    .dp-stats-grid {
        grid-template-columns: 1fr;
    }

    .dp-stat-card {
        padding: var(--space-lg);
    }

    .denapay-form {
        padding: var(--space-md);
        margin: var(--space-sm);
    }

    .denapay-form-title {
        font-size: 20px;
    }

    .denapay-installment-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .denapay-amount-value {
        font-size: 24px;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .preview-item.full-width {
        grid-column: 1;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dp-balance-amount {
        font-size: 1.5rem;
    }

    .dp-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .denapay-form {
        padding: var(--space-sm);
    }

    .denapay-installment-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .denapay-form-input,
    .denapay-form-select,
    .denapay-form-textarea {
        padding: var(--space-sm) 12px;
    }
}

.preview-image-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.preview-image-title {
    font-size: 18px;
    color: #4b6cb7;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}



.preview-image-container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 5px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-image {
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

@media (max-width: 768px) {
    .preview-image {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .preview-image {
        max-height: 250px;
    }
}