/* === ULTRA-PREMIUM SELLER ORDERS PAGE STYLES === */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* Root Variables */
:root {
    --mririiiii-primary-orange: #ff7a00;
    --mririiiii-orange-light: #ff9533;
    --mririiiii-orange-dark: #e66a00;
    --mririiiii-white: #ffffff;
    --mririiiii-cream: #f5e7da;
    --mririiiii-dark: #0d0d0d;
    --mririiiii-dark-light: #1a1a1a;
    --mririiiii-dark-medium: #222222;
    --mririiiii-dark-card: #181818;
    --mririiiii-success: #00d4aa;
    --mririiiii-warning: #ffd700;
    --mririiiii-danger: #e74c3c;
    --mririiiii-info: #3498db;
    --mririiiii-gradient-primary: linear-gradient(135deg, #ff7a00, #ff9533);
    --mririiiii-gradient-secondary: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    --mririiiii-gradient-glass: linear-gradient(135deg, rgba(255, 122, 0, 0.08), rgba(255, 149, 51, 0.04));
    --mririiiii-gradient-card: linear-gradient(145deg, rgba(24, 24, 24, 0.95), rgba(34, 34, 34, 0.85));
    --mririiiii-shadow-primary: 0 25px 80px rgba(255, 122, 0, 0.35);
    --mririiiii-shadow-secondary: 0 15px 50px rgba(0, 0, 0, 0.6);
    --mririiiii-shadow-card: 0 20px 60px rgba(0, 0, 0, 0.4);
    --mririiiii-blur-glass: blur(25px);
    --mririiiii-border-radius: 20px;
    --mririiiii-transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Global Styles */
.mririiiii-orders-wrapper {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a, #0f0f0f);
    color: var(--mririiiii-white);
    font-family: "Inter", sans-serif;
    padding: clamp(30px, 5vw, 60px) 0;
    overflow-x: hidden;
}

/* Particles Container */
.mririiiii-particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.mririiiii-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--mririiiii-primary-orange), transparent);
    opacity: 0.3;
    animation: mririiiiiFloatOrbit linear infinite;
}

.mririiiii-particle-1 { width: 3px; height: 3px; left: 15%; top: 25%; animation-duration: 24s; }
.mririiiii-particle-2 { width: 5px; height: 5px; left: 75%; top: 20%; animation-duration: 28s; }
.mririiiii-particle-3 { width: 2px; height: 2px; left: 55%; top: 65%; animation-duration: 22s; }
.mririiiii-particle-4 { width: 4px; height: 4px; left: 35%; top: 85%; animation-duration: 26s; }
.mririiiii-particle-5 { width: 3px; height: 3px; left: 85%; top: 45%; animation-duration: 20s; }

.mririiiii-glow-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.15), transparent);
    filter: blur(50px);
    animation: mririiiiiPulse 5s ease-in-out infinite;
}

.mririiiii-glow-1 { width: 250px; height: 250px; left: 25%; top: 35%; }
.mririiiii-glow-2 { width: 350px; height: 350px; left: 70%; top: 65%; animation-delay: -3s; }

/* Gradient Overlay */
.mririiiii-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 45%, rgba(255, 122, 0, 0.06), transparent),
                radial-gradient(circle at 75% 85%, rgba(245, 231, 218, 0.04), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Container */
.mririiiii-container {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 40px auto 0 auto;
    padding: 0 clamp(15px, 3vw, 40px);
}

/* Header Section */
.mririiiii-page-header {
    position: relative;
    margin-bottom: clamp(40px, 6vw, 60px);
    padding: clamp(30px, 5vw, 50px);
    background: var(--mririiiii-gradient-card);
    backdrop-filter: var(--mririiiii-blur-glass);
    border-radius: var(--mririiiii-border-radius);
    border: 1px solid rgba(255, 122, 0, 0.15);
    box-shadow: var(--mririiiii-shadow-card);
    overflow: hidden;
}

.mririiiii-header-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.1), transparent);
    animation: mririiiiiRotate 20s linear infinite;
}

.mririiiii-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 30px);
}

.mririiiii-header-left h2 {
    font-size: clamp(1.8rem, 4vw + 0.5rem, 3rem);
    font-weight: 800;
    color: var(--mririiiii-white);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mririiiii-header-left h2 i {
    background: var(--mririiiii-gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mririiiii-header-left p {
    font-size: clamp(0.95rem, 2vw + 0.3rem, 1.1rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.mririiiii-header-right .mririiiii-btn-export {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: clamp(12px, 2vw + 5px, 15px) clamp(20px, 3vw + 10px, 30px);
    background: var(--mririiiii-gradient-primary);
    color: var(--mririiiii-white);
    border: none;
    border-radius: 15px;
    font-size: clamp(0.9rem, 1.5vw + 0.3rem, 1rem);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--mririiiii-transition);
    overflow: hidden;
}

.mririiiii-btn-export:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 100px rgba(255, 122, 0, 0.4);
    color: var(--mririiiii-white);
}

/* Statistics Grid */
.mririiiii-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(15px, 3vw, 30px);
    margin-bottom: clamp(40px, 6vw, 60px);
}

.mririiiii-stat-card {
    position: relative;
    padding: clamp(25px, 4vw, 35px);
    background: var(--mririiiii-gradient-card);
    backdrop-filter: var(--mririiiii-blur-glass);
    border-radius: var(--mririiiii-border-radius);
    border: 1px solid rgba(255, 122, 0, 0.15);
    box-shadow: var(--mririiiii-shadow-card);
    text-align: center;
    transition: var(--mririiiii-transition);
    overflow: hidden;
}

.mririiiii-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(255, 122, 0, 0.25);
}

.mririiiii-stat-card.mririiiii-stat-primary { border-color: rgba(255, 122, 0, 0.3); }
.mririiiii-stat-card.mririiiii-stat-warning { border-color: rgba(255, 215, 0, 0.3); }
.mririiiii-stat-card.mririiiii-stat-success { border-color: rgba(0, 212, 170, 0.3); }
.mririiiii-stat-card.mririiiii-stat-info { border-color: rgba(52, 152, 219, 0.3); }

.mririiiii-stat-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 122, 0, 0.1), transparent);
    opacity: 0;
    transition: var(--mririiiii-transition);
}

.mririiiii-stat-card:hover .mririiiii-stat-glow {
    opacity: 1;
}

.mririiiii-stat-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}

.mririiiii-stat-primary .mririiiii-stat-icon { color: var(--mririiiii-primary-orange); }
.mririiiii-stat-warning .mririiiii-stat-icon { color: var(--mririiiii-warning); }
.mririiiii-stat-success .mririiiii-stat-icon { color: var(--mririiiii-success); }
.mririiiii-stat-info .mririiiii-stat-icon { color: var(--mririiiii-info); }

.mririiiii-stat-value {
    font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
    font-weight: 800;
    color: var(--mririiiii-white);
    margin-bottom: 8px;
}

.mririiiii-stat-label {
    font-size: clamp(0.9rem, 1.5vw + 0.3rem, 1rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Filters Card */
.mririiiii-filters-card {
    position: relative;
    padding: clamp(25px, 4vw, 35px);
    background: var(--mririiiii-gradient-card);
    backdrop-filter: var(--mririiiii-blur-glass);
    border-radius: var(--mririiiii-border-radius);
    border: 1px solid rgba(255, 122, 0, 0.15);
    box-shadow: var(--mririiiii-shadow-card);
    margin-bottom: clamp(30px, 5vw, 40px);
}

.mririiiii-filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(15px, 3vw, 20px);
    align-items: end;
}

.mririiiii-form-control {
    width: 100%;
    padding: clamp(12px, 2vw + 5px, 14px) clamp(15px, 2.5vw, 18px);
    background: rgba(24, 24, 24, 0.8);
    border: 2px solid rgba(255, 122, 0, 0.2);
    border-radius: 12px;
    color: var(--mririiiii-white);
    font-size: clamp(0.9rem, 1.5vw + 0.3rem, 0.95rem);
    font-weight: 500;
    transition: var(--mririiiii-transition);
}

.mririiiii-form-control:focus {
    outline: none;
    border-color: var(--mririiiii-primary-orange);
    box-shadow: 0 0 20px rgba(255, 122, 0, 0.3);
}

.mririiiii-form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mririiiii-btn-filter {
    padding: clamp(12px, 2vw + 5px, 14px) clamp(15px, 2.5vw, 18px);
    background: var(--mririiiii-gradient-primary);
    color: var(--mririiiii-white);
    border: none;
    border-radius: 12px;
    font-size: clamp(0.9rem, 1.5vw + 0.3rem, 0.95rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--mririiiii-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mririiiii-btn-filter:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(255, 122, 0, 0.4);
}

/* ============= FIXED TABLE STYLES ============= */
.mririiiii-table-card {
    position: relative;
    background: var(--mririiiii-gradient-card);
    backdrop-filter: var(--mririiiii-blur-glass);
    border-radius: var(--mririiiii-border-radius);
    border: 1px solid rgba(255, 122, 0, 0.15);
    box-shadow: var(--mririiiii-shadow-card);
    overflow: hidden;
}

.mririiiii-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    padding: clamp(15px, 3vw, 25px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--mririiiii-primary-orange) rgba(255, 122, 0, 0.1);
}

.mririiiii-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.mririiiii-table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 122, 0, 0.1);
    border-radius: 10px;
}

.mririiiii-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--mririiiii-primary-orange);
    border-radius: 10px;
}

.mririiiii-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--mririiiii-orange-light);
}

.mririiiii-orders-table {
    width: 100%;
    min-width: 1200px; /* Ensures table doesn't compress too much */
    border-collapse: separate;
    border-spacing: 0 12px;
}

.mririiiii-orders-table thead tr {
    background: rgba(255, 122, 0, 0.1);
}

.mririiiii-orders-table thead th {
    padding: 15px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mririiiii-primary-orange);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 122, 0, 0.3);
    white-space: nowrap;
}

.mririiiii-orders-table tbody tr {
    background: rgba(34, 34, 34, 0.6);
    transition: var(--mririiiii-transition);
}

.mririiiii-orders-table tbody tr:hover {
    background: rgba(255, 122, 0, 0.08);
    transform: scale(1.005);
    box-shadow: 0 8px 30px rgba(255, 122, 0, 0.2);
}

.mririiiii-orders-table tbody td {
    padding: 18px 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 122, 0, 0.1);
    vertical-align: middle;
}

.mririiiii-orders-table tbody tr:first-child td:first-child {
    border-top-left-radius: 12px;
}

.mririiiii-orders-table tbody tr:first-child td:last-child {
    border-top-right-radius: 12px;
}

.mririiiii-orders-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.mririiiii-orders-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Order Number Link */
.mririiiii-order-link {
    color: var(--mririiiii-primary-orange);
    font-weight: 700;
    text-decoration: none;
    transition: var(--mririiiii-transition);
    position: relative;
    white-space: nowrap;
}

.mririiiii-order-link:hover {
    color: var(--mririiiii-orange-light);
    text-shadow: 0 0 15px rgba(255, 122, 0, 0.5);
}

/* Customer Info */
.mririiiii-customer-info {
    min-width: 150px;
}

.mririiiii-customer-info strong {
    display: block;
    color: var(--mririiiii-white);
    margin-bottom: 5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.mririiiii-customer-info small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Car Info */
.mririiiii-car-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.mririiiii-car-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255, 122, 0, 0.3);
    flex-shrink: 0;
}

.mririiiii-car-details {
    flex: 1;
    min-width: 0;
}

.mririiiii-car-details small {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Amount Styling */
.mririiiii-amount-primary {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--mririiiii-white);
    white-space: nowrap;
}

.mririiiii-amount-danger {
    color: var(--mririiiii-danger);
    font-weight: 600;
    white-space: nowrap;
}

.mririiiii-amount-success {
    color: var(--mririiiii-success);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Badges */
.mririiiii-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.mririiiii-badge-success {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(0, 212, 170, 0.1));
    color: var(--mririiiii-success);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.mririiiii-badge-warning {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    color: var(--mririiiii-warning);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.mririiiii-badge-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(231, 76, 60, 0.1));
    color: var(--mririiiii-danger);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.mririiiii-badge-info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0.1));
    color: var(--mririiiii-info);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* Date Styling */
.mririiiii-date-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 100px;
}

.mririiiii-date-primary {
    color: var(--mririiiii-white);
    font-weight: 600;
    white-space: nowrap;
}

.mririiiii-date-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Action Buttons */
.mririiiii-btn-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.mririiiii-btn-action {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--mririiiii-transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.mririiiii-btn-view {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0.1));
    color: var(--mririiiii-info);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.mririiiii-btn-view:hover {
    background: var(--mririiiii-info);
    color: var(--mririiiii-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.mririiiii-btn-edit {
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.2), rgba(255, 122, 0, 0.1));
    color: var(--mririiiii-primary-orange);
    border: 1px solid rgba(255, 122, 0, 0.3);
}

.mririiiii-btn-edit:hover {
    background: var(--mririiiii-primary-orange);
    color: var(--mririiiii-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.4);
}

/* Empty State */
.mririiiii-empty-state {
    text-align: center;
    padding: clamp(60px, 10vw, 100px) clamp(15px, 3vw, 20px);
}

.mririiiii-empty-icon {
    font-size: clamp(3rem, 6vw, 4rem);
    color: rgba(255, 122, 0, 0.5);
    margin-bottom: 25px;
    display: block;
}

.mririiiii-empty-text {
    font-size: clamp(1.2rem, 2.5vw + 0.3rem, 1.5rem);
    color: rgba(255, 255, 255, 0.7);
}

/* Modal Styling */
.mririiiii-modal-content {
    background: var(--mririiiii-dark-card);
    border: 1px solid rgba(255, 122, 0, 0.3);
    border-radius: var(--mririiiii-border-radius);
    box-shadow: var(--mririiiii-shadow-primary);
}

.mririiiii-modal-header {
    padding: clamp(20px, 3vw, 25px);
    border-bottom: 1px solid rgba(255, 122, 0, 0.2);
}

.mririiiii-modal-title {
    font-size: clamp(1.2rem, 2.5vw + 0.3rem, 1.5rem);
    font-weight: 700;
    color: var(--mririiiii-white);
}

.mririiiii-modal-body {
    padding: clamp(20px, 3vw, 25px);
}

.mririiiii-modal-body p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.mririiiii-modal-body p strong {
    color: var(--mririiiii-primary-orange);
}

.mririiiii-form-group {
    margin-bottom: 20px;
}

.mririiiii-form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--mririiiii-white);
    font-size: clamp(0.9rem, 1.5vw + 0.3rem, 0.95rem);
}

.mririiiii-form-label .mririiiii-required {
    color: var(--mririiiii-danger);
}

.mririiiii-form-select {
    width: 100%;
    padding: clamp(12px, 2vw + 5px, 14px) clamp(15px, 2.5vw, 18px);
    background: rgba(24, 24, 24, 0.8);
    border: 2px solid rgba(255, 122, 0, 0.2);
    border-radius: 12px;
    color: var(--mririiiii-white);
    font-size: clamp(0.9rem, 1.5vw + 0.3rem, 0.95rem);
    font-weight: 500;
    cursor: pointer;
    transition: var(--mririiiii-transition);
}

.mririiiii-form-select:focus {
    outline: none;
    border-color: var(--mririiiii-primary-orange);
    box-shadow: 0 0 20px rgba(255, 122, 0, 0.3);
}

.mririiiii-modal-footer {
    padding: clamp(20px, 3vw, 25px);
    border-top: 1px solid rgba(255, 122, 0, 0.2);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.mririiiii-btn-secondary {
    padding: clamp(10px, 1.5vw + 5px, 12px) clamp(15px, 2.5vw, 20px);
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mririiiii-transition);
}

.mririiiii-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.mririiiii-btn-primary {
    padding: clamp(10px, 1.5vw + 5px, 12px) clamp(15px, 2.5vw, 20px);
    background: var(--mririiiii-gradient-primary);
    color: var(--mririiiii-white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mririiiii-transition);
}

.mririiiii-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 122, 0, 0.4);
}

/* Pagination */
.mririiiii-pagination {
    display: flex;
    justify-content: center;
    padding: clamp(30px, 5vw, 40px) 0;
}

/* Animations */
@keyframes mririiiiiFloatOrbit {
    0% {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: rotate(360deg) translateX(120px) rotate(-360deg);
        opacity: 0.3;
    }
}

@keyframes mririiiiiPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes mririiiiiRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ======================== RESPONSIVE BREAKPOINTS ======================== */

/* Large Desktop */
@media screen and (min-width: 1400px) {
    .mririiiii-orders-table {
        min-width: 100%;
    }
}

/* Tablets Landscape (992px - 1200px) */
@media screen and (max-width: 1200px) {
    .mririiiii-header-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .mririiiii-header-right {
        display: flex;
        justify-content: center;
    }

    .mririiiii-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .mririiiii-orders-table {
        min-width: 1000px;
    }
}

/* ============= RESPONSIVE TABLE FIX ============= */

/* Desktop Table (above 992px) */
@media screen and (min-width: 993px) {
    .mririiiii-mobile-order-card {
        display: none !important;
    }
}

/* Mobile/Tablet View (below 992px) */
@media screen and (max-width: 992px) {
    .mririiiii-orders-table {
        display: none !important;
    }

    .mririiiii-mobile-order-card {
        display: block;
        background: rgba(34, 34, 34, 0.6);
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 15px;
        border: 1px solid rgba(255, 122, 0, 0.2);
        transition: var(--mririiiii-transition);
    }

    .mririiiii-mobile-order-card:hover {
        background: rgba(255, 122, 0, 0.08);
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(255, 122, 0, 0.2);
    }

    .mririiiii-mobile-order-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255, 122, 0, 0.2);
    }

    .mririiiii-mobile-order-number {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--mririiiii-primary-orange);
    }

    .mririiiii-mobile-order-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 122, 0, 0.1);
    }

    .mririiiii-mobile-order-row:last-child {
        border-bottom: none;
    }

    .mririiiii-mobile-order-label {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.6);
        font-weight: 600;
    }

    .mririiiii-mobile-order-value {
        font-size: 0.9rem;
        color: var(--mririiiii-white);
        font-weight: 500;
        text-align: right;
    }

    .mririiiii-mobile-order-actions {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 122, 0, 0.2);
        display: flex;
        gap: 10px;
    }

    .mririiiii-mobile-order-actions .mririiiii-btn-action {
        flex: 1;
    }
}

/* Mobile Landscape (640px - 768px) */
@media screen and (max-width: 768px) {
    .mririiiii-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mririiiii-filters-form {
        grid-template-columns: 1fr;
    }

    .mririiiii-btn-group {
        flex-direction: column;
    }

    .mririiiii-modal-footer {
        flex-direction: column;
    }

    .mririiiii-modal-footer .mririiiii-btn-secondary,
    .mririiiii-modal-footer .mririiiii-btn-primary {
        width: 100%;
    }
}

/* Mobile Portrait (480px - 640px) */
@media screen and (max-width: 640px) {
    .mririiiii-stats-grid {
        grid-template-columns: 1fr;
    }

    .mririiiii-page-header {
        padding: clamp(20px, 4vw, 30px);
    }

    .mririiiii-header-left h2 {
        flex-direction: column;
        gap: 10px;
    }

    .mririiiii-car-info {
        flex-direction: column;
    }

    .mririiiii-car-image {
        width: 100%;
        height: auto;
        max-width: 120px;
    }
}

/* Small Mobile (< 480px) */
@media screen and (max-width: 480px) {
    .mririiiii-container {
        padding: 0 15px;
    }

    .mririiiii-table-wrapper {
        padding: 15px;
    }

    .mririiiii-btn-action {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* High Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .mririiiii-particles-container,
    .mririiiii-gradient-overlay,
    .mririiiii-btn-export,
    .mririiiii-filters-card,
    .mririiiii-btn-group {
        display: none !important;
    }

    .mririiiii-orders-wrapper {
        background: white !important;
        color: black !important;
    }

    .mririiiii-table-card,
    .mririiiii-stat-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}



/* ============= BOOTSTRAP MODAL OVERRIDES - CRITICAL ============= */

/* Modal Backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

/* Modal Dialog */
.modal-dialog {
    z-index: 1056;
}

/* Custom Modal Content */
.mririiiii-modal-content {
    background: var(--mririiiii-gradient-card);
    border: 2px solid rgba(255, 122, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 30px 100px rgba(255, 122, 0, 0.4);
    overflow: hidden;
}

.mririiiii-modal-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 122, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.1), rgba(255, 149, 51, 0.05));
}

.mririiiii-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mririiiii-white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mririiiii-modal-title i {
    color: var(--mririiiii-primary-orange);
}

.mririiiii-modal-body {
    padding: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.mririiiii-modal-body p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.mririiiii-modal-body p strong {
    color: var(--mririiiii-primary-orange);
    font-weight: 700;
}

.mririiiii-modal-body .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.mririiiii-form-group {
    margin-bottom: 20px;
}

.mririiiii-form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--mririiiii-white);
    font-size: 0.95rem;
}

.mririiiii-form-label .mririiiii-required {
    color: var(--mririiiii-danger);
    margin-left: 4px;
}

.mririiiii-form-select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid rgba(255, 122, 0, 0.3);
    border-radius: 14px;
    color: var(--mririiiii-white);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mririiiii-transition-smooth);
}

.mririiiii-form-select:focus {
    outline: none;
    border-color: var(--mririiiii-primary-orange);
    box-shadow: 0 0 25px rgba(255, 122, 0, 0.4);
}

.mririiiii-form-select option {
    background: var(--mririiiii-dark-card);
    color: var(--mririiiii-white);
    padding: 12px;
}

.mririiiii-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 122, 0, 0.2);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: rgba(255, 122, 0, 0.03);
}

.mririiiii-btn-secondary {
    padding: 12px 24px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--mririiiii-transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mririiiii-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.mririiiii-btn-primary {
    padding: 12px 24px;
    background: var(--mririiiii-gradient-primary);
    color: var(--mririiiii-white);
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--mririiiii-transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 35px rgba(255, 122, 0, 0.4);
}

.mririiiii-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(255, 122, 0, 0.6);
}

/* Close Button */
.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.btn-close-white:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Text Color Utility */
.text-orange {
    color: var(--mririiiii-primary-orange);
}

/* Mobile Responsive Modal */
@media screen and (max-width: 576px) {
    .mririiiii-modal-header {
        padding: 20px;
    }
    
    .mririiiii-modal-body {
        padding: 20px;
    }
    
    .mririiiii-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .mririiiii-modal-footer .mririiiii-btn-secondary,
    .mririiiii-modal-footer .mririiiii-btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .mririiiii-modal-title {
        font-size: 1.1rem;
    }
}


/* Custom SweetAlert2 Toast Styling */
.custom-toast-popup {
    border: 2px solid rgba(255, 122, 0, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 
        0 30px 100px rgba(255, 122, 0, 0.5),
        0 0 60px rgba(255, 122, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    padding: 20px !important;
    min-width: 350px !important;
    animation: slideInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-toast-title {
    font-weight: 800 !important;
    font-size: 1rem !important;
    letter-spacing: -0.3px !important;
    margin-bottom: 8px !important;
}

.custom-toast-icon {
    border-width: 3px !important;
    width: 45px !important;
    height: 45px !important;
    margin: 0 auto 10px !important;
    animation: zoomInBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-toast-progress {
    background: linear-gradient(90deg, #ff7a00, #ff9533, #ffa94d) !important;
    height: 4px !important;
    border-radius: 10px !important;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.6) !important;
}

.swal2-icon.swal2-success {
    border-color: #00ffa3 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #00ffa3 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(0, 255, 163, 0.3) !important;
}

.swal2-icon.swal2-error {
    border-color: #ff3366 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ff3366 !important;
}

.swal2-icon.swal2-info {
    border-color: #00d4ff !important;
    color: #00d4ff !important;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomInBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media screen and (max-width: 640px) {
    .custom-toast-popup {
        min-width: 280px !important;
        padding: 15px !important;
    }
    
    .custom-toast-title {
        font-size: 0.9rem !important;
    }
    
    .custom-toast-icon {
        width: 40px !important;
        height: 40px !important;
    }
}


<style>
/* Custom SweetAlert2 Toast Styling */
.custom-toast-popup {
    border: 2px solid rgba(255, 122, 0, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 
        0 30px 100px rgba(255, 122, 0, 0.5),
        0 0 60px rgba(255, 122, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    padding: 20px !important;
    min-width: 350px !important;
    animation: slideInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-toast-title {
    font-weight: 800 !important;
    font-size: 1rem !important;
    letter-spacing: -0.3px !important;
    margin-bottom: 8px !important;
}

.custom-toast-icon {
    border-width: 3px !important;
    width: 45px !important;
    height: 45px !important;
    margin: 0 auto 10px !important;
    animation: zoomInBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-toast-progress {
    background: linear-gradient(90deg, #ff7a00, #ff9533, #ffa94d) !important;
    height: 4px !important;
    border-radius: 10px !important;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.6) !important;
}

.swal2-icon.swal2-success {
    border-color: #00ffa3 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #00ffa3 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(0, 255, 163, 0.3) !important;
}

.swal2-icon.swal2-error {
    border-color: #ff3366 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ff3366 !important;
}

.swal2-icon.swal2-info {
    border-color: #00d4ff !important;
    color: #00d4ff !important;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomInBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media screen and (max-width: 640px) {
    .custom-toast-popup {
        min-width: 280px !important;
        padding: 15px !important;
    }
    
    .custom-toast-title {
        font-size: 0.9rem !important;
    }
    
    .custom-toast-icon {
        width: 40px !important;
        height: 40px !important;
    }
}

.text-orange {
    color: #ff7a00;
}