/* Advanced Tax Returns List Styles - Enhanced Modern Theme */
.dmp-advanced-returns-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px;
    font-family: 'Cairo', 'Segoe UI', Arial, sans-serif;
    direction: rtl;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #edf2f7 100%);
    color: #2d3748;
    border-radius: 28px;
    min-height: 500px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.dmp-advanced-returns-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4fd1c5);
    opacity: 0.8;
}

.dmp-advanced-returns-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.dmp-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px 30px;
    border-bottom: 3px solid rgba(79, 209, 197, 0.25);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.dmp-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    opacity: 0.6;
}

.dmp-header-section h2 {
    color: #2b6cb0;
    margin: 0;
    font-size: 2.1rem;
    font-weight: 800;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #2b6cb0, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Enhanced Tabs Styling - Premium Modern Theme */
.dmp-tabs-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 40px;
    overflow-x: auto;
    gap: 8px;
    border: 1px solid rgba(79, 209, 197, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(15px);
    position: relative;
}

.dmp-tabs-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4fd1c5, #2dd4bf, #06d6a0);
    border-radius: 20px 20px 0 0;
    opacity: 0.7;
}

.dmp-tab-btn {
    flex: 1;
    padding: 16px 28px;
    border: none;
    background: transparent;
    color: #4a5568;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.dmp-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.15), rgba(45, 212, 191, 0.15));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    z-index: 1;
}

.dmp-tab-btn:hover::before {
    opacity: 1;
}

.dmp-tab-btn:hover {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.2), rgba(45, 212, 191, 0.2));
    color: #2b6cb0;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(79, 209, 197, 0.35);
    border: 1px solid rgba(79, 209, 197, 0.3);
}

.dmp-tab-btn.active {
    background: linear-gradient(135deg, #4fd1c5 0%, #2dd4bf 50%, #06d6a0 100%);
    color: white;
    box-shadow: 0 16px 45px rgba(79, 209, 197, 0.6);
    transform: translateY(-3px) scale(1.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dmp-count-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 800;
    min-width: 26px;
    text-align: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.dmp-tab-btn.active .dmp-count-badge {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dmp-tab-content {
    display: none;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.dmp-tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    opacity: 0.6;
}

.dmp-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Files Accordion */
.dmp-files-accordion {
    margin-bottom: 25px;
}

/* Accordion Styling - Modern Light Theme */
.dmp-accordion-item {
    margin-bottom: 20px;
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dmp-accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(79, 209, 197, 0.2);
    border-color: rgba(79, 209, 197, 0.4);
}

.dmp-accordion-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.dmp-accordion-header {
    width: 100%;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border: none;
    color: #2b6cb0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: right;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.dmp-accordion-header:hover {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.1), rgba(45, 212, 191, 0.1));
    color: #1a365d;
    transform: scale(1.01);
}

.dmp-accordion-header.active {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.2), rgba(45, 212, 191, 0.2));
    color: #1a365d;
    box-shadow: inset 0 2px 8px rgba(79, 209, 197, 0.3);
}

.dmp-file-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-number {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2b6cb0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.file-user, .user-info {
    color: #4a5568;
    font-size: 0.9rem;
    opacity: 0.8;
}

.dmp-accordion-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.returns-count {
    background: linear-gradient(135deg, #4fd1c5, #2dd4bf);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.4);
    backdrop-filter: blur(5px);
}

.dmp-accordion-content {
    display: none;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(248, 250, 252, 0.4));
    border-top: 1px solid rgba(79, 209, 197, 0.3);
    color: #2d3748;
    backdrop-filter: blur(10px);
}

.dmp-accordion-content.active {
    display: block;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from { 
        max-height: 0; 
        opacity: 0; 
        transform: translateY(-10px);
    }
    to { 
        max-height: 1000px; 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* Year Accordion */
.dmp-years-accordion {
    margin-right: 25px;
}

.dmp-year-accordion-item {
    margin-bottom: 16px;
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.dmp-year-accordion-header {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.8));
    border: none;
    color: #2b6cb0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: right;
    font-weight: 600;
}

.dmp-year-accordion-header:hover {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.1), rgba(45, 212, 191, 0.1));
    transform: translateX(-3px);
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.2);
}

.dmp-year-accordion-header.active {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.15), rgba(45, 212, 191, 0.15));
    color: #1a365d;
    box-shadow: inset 0 2px 6px rgba(79, 209, 197, 0.2);
}

.dmp-year-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.year-label {
    font-weight: 700;
    color: #2b6cb0;
    font-size: 1.05rem;
}

.dmp-year-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.year-count {
    background: linear-gradient(135deg, #4fd1c5, #2dd4bf);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(79, 209, 197, 0.4);
}

.dmp-year-accordion-content {
    display: none;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(248, 250, 252, 0.3));
    backdrop-filter: blur(5px);
}

.dmp-year-accordion-content.active {
    display: block;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Returns Grid */
.dmp-returns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding-top: 15px;
}

.dmp-return-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(99, 179, 237, 0.25);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: #2d3748;
}

.dmp-return-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0.9;
    transition: width 0.4s ease;
}

.dmp-return-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.dmp-return-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
    border-color: rgba(99, 179, 237, 0.5);
    background: rgba(255, 255, 255, 1);
}

.dmp-return-card:hover::before {
    width: 8px;
}

.dmp-return-card:hover::after {
    opacity: 1;
}

.dmp-return-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(99, 179, 237, 0.15);
}

.dmp-return-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    line-height: 1.3;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dmp-return-status {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-not-prepared {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    color: #c53030;
    border: 1px solid #feb2b2;
    box-shadow: 0 2px 8px rgba(197, 48, 48, 0.15);
}

.status-prepared-review {
    background: linear-gradient(135deg, #fffaf0, #fef5e7);
    color: #c05621;
    border: 1px solid #f6ad55;
    box-shadow: 0 2px 8px rgba(192, 86, 33, 0.15);
}

.status-reviewed-sent {
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
    color: #276749;
    border: 1px solid #9ae6b4;
    box-shadow: 0 2px 8px rgba(39, 103, 73, 0.15);
}

.status-submitted {
    background: linear-gradient(135deg, #ebf8ff, #bee3f8);
    color: #2c5aa0;
    border: 1px solid #90cdf4;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.15);
}

.status-approved {
    background: linear-gradient(135deg, #f0fff4, #9ae6b4);
    color: #22543d;
    border: 1px solid #68d391;
    box-shadow: 0 2px 8px rgba(34, 84, 61, 0.15);
}

.dmp-return-details {
    margin-bottom: 18px;
}

.dmp-return-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dmp-return-info span {
    font-size: 0.9rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dmp-return-info i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

.dmp-return-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dmp-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dmp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.dmp-btn:hover::before {
    left: 100%;
}

.dmp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dmp-btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.dmp-btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #4a5568;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.dmp-btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.dmp-btn-error {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #c53030;
    box-shadow: 0 2px 8px rgba(197, 48, 48, 0.2);
}

.dmp-btn-error:hover {
    background: linear-gradient(135deg, #feb2b2, #fc8181);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
}

.dmp-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #718096;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.dmp-empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #a0aec0;
    opacity: 0.7;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dmp-empty-state h3 {
    margin: 0 0 12px 0;
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 600;
}

.dmp-empty-state p {
    color: #718096;
    font-size: 1rem;
    margin: 0;
}

/* Loading States */
.dmp-loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
}

.dmp-loading i {
    font-size: 2rem;
    color: #667eea;
    animation: spin 1s linear infinite;
}

/* Modern Animations and Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.dmp-return-card {
    animation: fadeInUp 0.6s ease-out;
}

.dmp-return-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.dmp-return-card:nth-child(even) {
    animation-delay: 0.2s;
}

.dmp-tab-btn {
    animation: slideInRight 0.4s ease-out;
}

.dmp-loading i {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dmp-advanced-returns-container {
        padding: 15px;
    }
    
    .dmp-header-section {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .dmp-tabs-nav {
        flex-direction: column;
        gap: 8px;
    }
    
    .dmp-tab-btn {
        justify-content: flex-start;
        min-width: auto;
    }
    
    .dmp-returns-grid {
        grid-template-columns: 1fr;
    }
    
    .dmp-years-accordion {
        margin-right: 0;
    }
    
    .dmp-accordion-header {
        padding: 15px;
    }
    
    .dmp-file-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .dmp-return-card {
        padding: 15px;
    }
    
    .dmp-return-actions {
        justify-content: center;
    }
}

/* Enhanced Return Card Styles */
.dmp-return-card.enhanced {
    padding: 28px;
    border-radius: 24px;
}

.dmp-return-title-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dmp-return-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 500;
}

.dmp-return-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dmp-basic-info {
    margin-bottom: 20px;
}

.dmp-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #4a5568;
}

.dmp-info-row i {
    color: #667eea;
    width: 18px;
    text-align: center;
}

.dmp-info-row strong {
    color: #2d3748;
}

.dmp-financial-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.dmp-financial-section h5 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dmp-financial-section h5 i {
    color: #667eea;
}

.dmp-financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.dmp-financial-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dmp-financial-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.dmp-financial-item .label {
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 600;
}

.dmp-financial-item .value {
    color: #2d3748;
    font-weight: 700;
    font-size: 0.9rem;
}

.dmp-financial-item.net-vat .value.net {
    color: #667eea;
    font-size: 1rem;
}

.dmp-financial-item.sales {
    border-left: 4px solid #48bb78;
}

.dmp-financial-item.vat-sales {
    border-left: 4px solid #38b2ac;
}

.dmp-financial-item.purchases {
    border-left: 4px solid #ed8936;
}

.dmp-financial-item.vat-purchases {
    border-left: 4px solid #f56565;
}

.dmp-financial-item.net-vat {
    border-left: 4px solid #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.dmp-financial-item.income {
    border-left: 4px solid #48bb78;
}

.dmp-financial-item.tax {
    border-left: 4px solid #ed8936;
}

.dmp-financial-item.employees {
    border-left: 4px solid #667eea;
}

.dmp-financial-item.salaries {
    border-left: 4px solid #38b2ac;
}

.dmp-file-section {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(231, 76, 60, 0.1));
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.dmp-file-section h5 {
    margin: 0 0 12px 0;
    color: #2d3748;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dmp-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.dmp-file-info span {
    color: #4a5568;
    font-weight: 600;
    flex: 1;
}

.dmp-btn-small {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dmp-btn-small:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.dmp-btn-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dmp-btn-success:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.dmp-btn-warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dmp-btn-warning:hover {
    background: linear-gradient(135deg, #dd6b20, #c05621);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.4);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .dmp-advanced-returns-container {
        padding: 20px;
        border-radius: 20px;
        margin: 10px;
    }
    
    .dmp-header-section {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }
    
    .dmp-header-section h2 {
        font-size: 1.7rem;
    }
    
    .dmp-tabs-nav {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }
    
    .dmp-tab-btn {
        min-width: auto;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .dmp-returns-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dmp-return-card {
        padding: 20px;
    }
    
    .dmp-return-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .dmp-financial-grid {
        grid-template-columns: 1fr;
    }
    
    .dmp-file-info {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .dmp-return-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .dmp-btn-small {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .dmp-advanced-returns-container {
        padding: 15px;
        margin: 5px;
    }
    
    .dmp-header-section h2 {
        font-size: 1.5rem;
    }
    
    .dmp-tab-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .dmp-return-card {
        padding: 16px;
    }
    
    .dmp-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Load More Section Styles */
.dmp-load-more-section {
    text-align: center;
    padding: 40px 20px;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.dmp-btn-load-more {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    min-width: 200px;
    justify-content: center;
}

.dmp-btn-load-more:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.dmp-btn-load-more:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.dmp-pagination-info {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
}

.dmp-pagination-info span {
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Animation for new items */
.dmp-new-item {
    animation: slideInFromBottom 0.6s ease-out;
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dmp-new-item .dmp-accordion-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

/* Loading spinner animation */
@keyframes loadingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fa-spin {
    animation: loadingSpin 1s linear infinite;
}

/* Performance optimizations */
.dmp-returns-grid .dmp-return-card {
    will-change: transform;
}

.dmp-accordion-content {
    will-change: height, opacity;
}

/* Responsive adjustments for load more */
@media (max-width: 768px) {
    .dmp-load-more-section {
        padding: 25px 15px;
        margin-top: 20px;
    }
    
    .dmp-btn-load-more {
        padding: 12px 25px;
        font-size: 0.9rem;
        min-width: 180px;
    }
    
    .dmp-pagination-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .dmp-advanced-returns-container {
        padding: 10px;
    }
    
    .dmp-header-section h2 {
        font-size: 1.4rem;
    }
    
    .dmp-tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .dmp-return-card {
        padding: 12px;
    }
    
    .dmp-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .dmp-advanced-returns-container {
        box-shadow: none;
        margin: 0;
        padding: 20px;
    }
    
    .dmp-tabs-nav,
    .dmp-return-actions,
    .dmp-header-section button {
        display: none !important;
    }
    
    .dmp-tab-content {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .dmp-return-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
        margin-bottom: 20px;
    }
}
