/**
 * MPD Tax Calculator - Beautiful Public Interface
 * Modern, professional, user-friendly design
 */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --error-gradient: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    --warning-gradient: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    --gray-gradient: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f0f4f8;
    --white: #ffffff;
    --border: #e2e8f0;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ====================
   Global Styles
   ==================== */
.mpd-tax-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ====================
   Login & Register Forms
   ==================== */
.mpd-tax-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.mpd-tax-auth-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -30px); }
}

.mpd-tax-auth-box {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 48px;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mpd-tax-auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.mpd-tax-auth-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.mpd-tax-auth-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.mpd-tax-auth-header p {
    margin: 0;
    color: var(--text-light);
    font-size: 15px;
}

.mpd-tax-form-group {
    margin-bottom: 24px;
}

.mpd-tax-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.mpd-tax-form-group label .required {
    color: #f56565;
    margin-left: 4px;
}

.mpd-tax-form-group input[type="text"],
.mpd-tax-form-group input[type="email"],
.mpd-tax-form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--white);
    box-sizing: border-box;
}

.mpd-tax-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.mpd-tax-form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.mpd-tax-button {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.mpd-tax-button::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;
}

.mpd-tax-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.mpd-tax-button:hover::before {
    left: 100%;
}

.mpd-tax-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mpd-tax-button-secondary {
    background: var(--white);
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: none;
}

.mpd-tax-button-secondary:hover {
    background: #f7fafc;
}

.mpd-tax-form-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.mpd-tax-form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.mpd-tax-form-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Messages */
.mpd-tax-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mpd-tax-message::before {
    font-size: 20px;
}

.mpd-tax-message-success {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    color: #22543d;
    border: 2px solid #48bb78;
}

.mpd-tax-message-success::before {
    content: '✓';
}

.mpd-tax-message-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    color: #742a2a;
    border: 2px solid #f56565;
}

.mpd-tax-message-error::before {
    content: '✕';
}

.mpd-tax-message-warning {
    background: linear-gradient(135deg, #fffaf0 0%, #feebc8 100%);
    color: #744210;
    border: 2px solid #ed8936;
}

.mpd-tax-message-warning::before {
    content: '⚠';
}

.mpd-tax-message-info {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    color: #2c5282;
    border: 2px solid #4299e1;
}

.mpd-tax-message-info::before {
    content: 'ℹ';
}

/* ====================
   Staff Dashboard
   ==================== */
.mpd-tax-staff-dashboard {
    background: var(--bg-light);
    min-height: 100vh;
    padding: 40px 20px;
}

.mpd-tax-dashboard-header {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.mpd-tax-dashboard-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mpd-tax-dashboard-header h1::before {
    content: '📊';
    font-size: 40px;
}

.mpd-tax-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: var(--gray-gradient);
    border-radius: 12px;
}

.mpd-tax-user-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.mpd-tax-user-details {
    display: flex;
    flex-direction: column;
}

.mpd-tax-user-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.mpd-tax-logout-link {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}

.mpd-tax-logout-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Dashboard Navigation Tabs */
.mpd-tax-dashboard-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.mpd-tax-tab-button {
    padding: 14px 28px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.mpd-tax-tab-button:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mpd-tax-tab-button.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

/* Tab Content */
.mpd-tax-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.mpd-tax-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Info Box */
.mpd-tax-info-box {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    border: 2px solid #4299e1;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mpd-tax-info-box::before {
    content: 'ℹ️';
    font-size: 32px;
}

.mpd-tax-info-box p {
    margin: 0;
    color: #2c5282;
    font-size: 15px;
    line-height: 1.6;
}

/* Calculator Form */
.mpd-tax-calculator-form {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.mpd-tax-form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f7fafc;
}

.mpd-tax-form-section:last-of-type {
    border-bottom: none;
}

.mpd-tax-form-section h3 {
    margin: 0 0 24px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mpd-tax-form-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.mpd-tax-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mpd-tax-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--white);
    cursor: pointer;
}

.mpd-tax-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.mpd-tax-form-group input[type="date"],
.mpd-tax-form-group input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--white);
    box-sizing: border-box;
}

.mpd-tax-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--white);
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.mpd-tax-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* Calculation Result */
.mpd-tax-result {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    margin-top: 32px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.5s ease;
}

.mpd-tax-result h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
}

.mpd-tax-result-main {
    text-align: center;
    padding: 40px;
    background: var(--gray-gradient);
    border-radius: 16px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.mpd-tax-result-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--success-gradient);
}

.mpd-tax-result-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
}

.mpd-tax-currency {
    font-size: 28px;
    color: var(--text-light);
    font-weight: 600;
}

.mpd-tax-amount {
    font-size: 56px;
    font-weight: 800;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mpd-tax-result-label {
    margin: 16px 0 0 0;
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}

.mpd-tax-result-breakdown h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.mpd-tax-breakdown-table {
    width: 100%;
    border-collapse: collapse;
}

.mpd-tax-breakdown-table td {
    padding: 14px;
    border-bottom: 1px solid #f7fafc;
    font-size: 15px;
}

.mpd-tax-breakdown-table td:first-child {
    color: var(--text-light);
    font-weight: 500;
}

.mpd-tax-breakdown-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
}

.mpd-tax-disclaimer {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #fffaf0 0%, #feebc8 100%);
    border-left: 4px solid #ed8936;
    border-radius: 12px;
}

.mpd-tax-disclaimer p {
    margin: 0;
    font-size: 14px;
    color: #744210;
    font-weight: 500;
}

/* Case History */
.mpd-tax-case-history {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.mpd-tax-case-filters {
    background: var(--gray-gradient);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.mpd-tax-filter-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.mpd-tax-filter-group {
    flex: 1;
    min-width: 200px;
}

.mpd-tax-cases-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.mpd-tax-cases-table thead {
    background: var(--gray-gradient);
}

.mpd-tax-cases-table th,
.mpd-tax-cases-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f7fafc;
}

.mpd-tax-cases-table th {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mpd-tax-cases-table td {
    font-size: 14px;
    color: var(--text-dark);
}

.mpd-tax-cases-table tbody tr {
    transition: background 0.2s ease;
}

.mpd-tax-cases-table tbody tr:hover {
    background: #f7fafc;
}

/* Modal */
.mpd-tax-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(26, 32, 44, 0.75);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.mpd-tax-modal-content {
    width: 90%;
}

.mpd-tax-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-light);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.mpd-tax-modal-close:hover {
    color: var(--text-dark);
    background: #f7fafc;
    transform: rotate(90deg);
}

/* ====================
   Responsive Design
   ==================== */
@media (max-width: 768px) {
    .mpd-tax-auth-box {
        padding: 32px 24px;
    }
    
    .mpd-tax-dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .mpd-tax-dashboard-header h1 {
        font-size: 24px;
    }
    
    .mpd-tax-dashboard-nav {
        flex-direction: column;
    }
    
    .mpd-tax-tab-button {
        width: 100%;
        text-align: center;
    }
    
    .mpd-tax-form-row {
        grid-template-columns: 1fr;
    }
    
    .mpd-tax-form-actions {
        flex-direction: column;
    }
    
    .mpd-tax-amount {
        font-size: 40px;
    }
    
    .mpd-tax-filter-row {
        flex-direction: column;
    }
    
    .mpd-tax-filter-group {
        width: 100%;
    }
    
    .mpd-tax-modal-content {
        width: 95%;
        padding: 24px;
    }
}

/* ====================
   Print Styles
   ==================== */
@media print {
    .mpd-tax-dashboard-nav,
    .mpd-tax-logout-link,
    .mpd-tax-button,
    .mpd-tax-modal {
        display: none !important;
    }
    
    .mpd-tax-result {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ====================
   Loading & Transitions
   ==================== */
.mpd-tax-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.mpd-tax-loading::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.mpd-tax-no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-style: italic;
}

.mpd-tax-no-data::before {
    content: '📋';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Delete button styling */
.mpd-btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.mpd-btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.mpd-btn-danger:disabled {
    background: #e4606d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Modal styling - unified for staff and admin */
.mpd-modal-wrapper {
    padding: 20px;
}

.mpd-modal-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.mpd-modal-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.mpd-modal-meta {
    display: flex;
    gap: 10px;
}

.date-badge, .staff-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

.date-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.staff-badge {
    background: #f3e5f5;
    color: #7b1fa2;
}

.mpd-refund-highlight {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.refund-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.refund-amount {
    font-size: 36px;
    font-weight: bold;
    margin: 0;
}

.mpd-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .mpd-modal-grid {
        grid-template-columns: 1fr;
    }
}

.mpd-modal-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.mpd-modal-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
}

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

.mpd-info-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.mpd-info-table tr:last-child {
    border-bottom: none;
}

.mpd-info-table td {
    padding: 10px 0;
    font-size: 14px;
}

.mpd-info-table td:first-child {
    color: #666;
    width: 45%;
}

.mpd-info-table td:last-child {
    font-weight: 500;
    color: #333;
}

.mpd-info-table tr.refund-row td {
    padding-top: 15px;
    font-size: 16px;
    color: #48bb78;
}

/* Beautiful Modal Styling v3.3.0 */
.mpd-modal-beautiful {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.mpd-modal-header-beautiful {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 0;
}
.mpd-modal-header-beautiful .mpd-modal-subtitle{
    color: #fff;
    font-size: 16px;
}
.mpd-modal-title-area h2{
    margin: 0 !important;
    font-size: 20px !important;
}
.mpd-modal-icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-right: 15px;
}

.mpd-modal-title-area {
    flex: 1;
}

.mpd-modal-title-area h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.mpd-modal-subtitle {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.mpd-staff-badge-large {
    background: rgba(255,255,255,0.25);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.mpd-refund-banner-large {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    display: none !important;
}

.mpd-refund-icon {
    font-size: 36px;
}

.mpd-refund-content {
    flex: 1;
}

.mpd-refund-label {
    font-size: 16px;
    margin-bottom: 0;
}

.mpd-refund-amount-large {
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
}

.mpd-modal-grid-beautiful {
    padding: 0 30px;
}

@media (max-width: 768px) {
    .mpd-modal-grid-beautiful {
        grid-template-columns: 1fr;
    }
}

.mpd-modal-card-beautiful {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.mpd-card-header-beautiful {
    font-size: 16px;
    color: #000;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
    background: #fff;
    font-weight: 500;
}

.mpd-detail-table-beautiful {
    width: 100%;
    border-collapse: collapse;
}

.mpd-detail-table-beautiful tr {
    border-bottom: 1px solid #e9ecef;
}

.mpd-detail-table-beautiful tr:last-child {
    border-bottom: none;
}

.mpd-detail-table-beautiful td {
    padding: 12px 20px;
    font-size: 14px;
}

.mpd-detail-table-beautiful td:first-child {
    color: #6c757d;
    width: 45%;
}

.mpd-detail-table-beautiful td:last-child {
    font-weight: 500;
    color: #212529;
}

.mpd-detail-table-beautiful .total-row-beautiful td {
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
    font-size: 16px;
}

.mpd-detail-table-beautiful .refund-row-beautiful td {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    font-size: 18px;
    padding: 15px 20px;
}

/* Modal close improvements */
.mpd-tax-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 24px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.mpd-tax-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

#caseDetailModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

#caseDetailModal .mpd-tax-modal-container {
    position: relative;
    max-width: 950px;
    margin: 50px auto;
}

#caseDetailModal .mpd-tax-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
#paginationContainer .mpd-pagination{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}
#paginationContainer .mpd-pagination .mpd-pagination-info{
    color: #000;
    margin: 10px 0;
}
#paginationContainer .mpd-pagination .mpd-btn-pagination{
    margin: 3px 5px;
    opacity: 0.6;
}
#paginationContainer .mpd-pagination .mpd-btn-pagination.active{
    opacity: 1;
}