* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1c1c1c;
    --primary-dark: #1b1b1b;
    --secondary-color: #cfcfcf;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-color: #f7f7f7;
    --card-bg: #ffffff;
    --text-primary: #212121;
    --text-secondary: #656565;
    --text-light: #dad7cd;
    --border-color: #e2e8f0;
    --sidebar-bg: #e3e3e319;
    --sidebar-hover: #334155;
    
    /* Login Color Palette */
    --login-dust-grey: #dad7cd;
    --login-dry-sage: #a3b18a;
    --login-fern: #588157;
    --login-hunter-green: #3a5a40;
    --login-pine-teal: #344e41;
}

html {
    zoom: 0.9;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Mobile: No zoom (100%) */
@media (max-width: 768px) {
    html {
        zoom: 1;
    }
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'TikTok Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Universal button styles - ensures all buttons use website font and consistent height */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    font-family: inherit;
    min-height: 40px;
}

/* Override for buttons that should be smaller (like close buttons in alerts) - already handled above */
/* Override for buttons that need auto height (like login button) - already handled above */

/* Login Screen - Override zoom to 100% */
#loginScreen,
#loginScreen * {
    zoom: 1;
}

.login-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 130vh;
    min-height: 130vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background: var(--login-dust-grey);
    z-index: 10001;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: var(--login-dust-grey);
    pointer-events: none;
}

.login-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: var(--login-pine-teal);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    pointer-events: none;
    transition: height 0.4s ease;
}

.login-container:has(input:focus)::after,
.login-container:has(textarea:focus)::after,
.login-container:has(select:focus)::after {
    height: 90%;
}

.login-box {
    background: var(--login-dust-grey);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: none;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-header i {
    color: var(--login-fern);
    margin-bottom: 20px;
}

.login-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* Convert logo to pine teal color (#344e41) */
    /* Using filter to shift colors: brightness->black, then colorize to pine teal */
    filter: brightness(0) saturate(100%) invert(15%) sepia(30%) saturate(1500%) hue-rotate(130deg) brightness(0.4) contrast(1.1);
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--login-pine-teal);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--login-hunter-green);
    font-size: 15px;
    font-weight: 400;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--login-hunter-green);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--login-fern);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--login-dry-sage);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--login-pine-teal);
    font-family: inherit;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 50px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--login-pine-teal);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle-btn:hover {
    color: var(--login-forest-green);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--login-forest-green);
}

.form-group select {
    width: 100%;
    padding: 14px 40px 14px 18px;
    border: 2px solid var(--login-dry-sage);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--login-pine-teal);
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23588157' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.form-group input::placeholder {
    color: var(--login-dry-sage);
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    border-color: var(--login-fern);
    box-shadow: 0 0 0 4px rgba(88, 129, 87, 0.15);
    background: #ffffff;
}

.form-group input:disabled,
.form-group input[readonly],
.form-group textarea:disabled,
.form-group textarea[readonly] {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.7;
    border-color: var(--border-color);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--login-pine-teal);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 78, 65, 0.3);
    letter-spacing: 0.3px;
    min-height: 40px;
    height: auto;
}

.btn-login:hover {
    background: var(--login-hunter-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 78, 65, 0.4);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(52, 78, 65, 0.3);
}

.error-message {
    margin-top: 16px;
    padding: 14px;
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 10px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Login Alert Popup */
.login-alert-popup {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    animation: slideInLeft 0.3s ease-out;
}

.login-alert-content {
    background: var(--login-pine-teal);
    color: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(52, 78, 65, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-alert-message {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.login-alert-message i {
    font-size: 20px;
    flex-shrink: 0;
    color: #ffffff;
}

.login-alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 16px;
    font-family: inherit;
}

.login-alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Dashboard Alert Popup (similar to login alert but on the right) */
.dashboard-alert-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

.dashboard-alert-content {
    background: var(--login-pine-teal);
    color: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(52, 78, 65, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-alert-content.success {
    background: var(--success-color);
}

.dashboard-alert-content.error {
    background: var(--danger-color);
}

.dashboard-alert-content.warning {
    background: var(--warning-color);
}

.dashboard-alert-content.info {
    background: var(--primary-color);
}

.dashboard-alert-message {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.dashboard-alert-message i {
    font-size: 20px;
    flex-shrink: 0;
    color: #ffffff;
}

.dashboard-alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 16px;
    font-family: inherit;
}

.dashboard-alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.success-message {
    margin-top: 16px;
    padding: 16px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #10b981;
}

.success-message i {
    color: #10b981;
    margin-right: 8px;
}

.success-message a {
    color: #065f46;
    font-weight: 600;
}

.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.error-modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 32px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--danger-color);
}

.error-modal-content h3 {
    color: var(--danger-color);
    margin-bottom: 16px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-modal-body {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 14px;
    white-space: pre-line;
}

.error-modal-body code {
    background: var(--bg-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--primary-color);
}

.credentials-box {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.credential-item {
    margin-bottom: 16px;
}

.credential-item label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.credential-item label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.credential-value {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.credential-value code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    background: transparent;
    padding: 0;
}

.btn-copy {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 14px;
    min-height: 40px;
    height: 40px;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.cors-warning {
    margin-top: 16px;
    padding: 16px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 10px;
    font-size: 13px;
    color: #78350f;
}

.cors-warning i {
    color: #d97706;
    margin-right: 8px;
}

.cors-warning p {
    margin: 8px 0;
}

.cors-warning code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.login-info {
    margin-top: 20px;
    padding: 14px;
    background: rgba(163, 177, 138, 0.2);
    border: 1px solid rgba(88, 129, 87, 0.3);
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.login-info p {
    margin: 0;
    color: var(--login-hunter-green);
    font-size: 13px;
}

.login-info a {
    color: var(--login-fern);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.login-info a:hover {
    color: var(--login-hunter-green);
    text-decoration: underline;
}

.login-info i {
    margin-right: 6px;
    color: var(--login-fern);
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh; 
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--card-bg);
    color: var(--text-primary);
    display: flex;
    margin: 0;
    padding: 10px;
    flex-direction: column;
    position: fixed;
    top: 0.3rem;
    bottom: 0.3rem;
    left: 0.3rem;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.sidebar-logo-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px;
}

.sidebar-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sidebar-brand-text {
    flex: 1;
    min-width: 0;
}

.sidebar-header h2 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sidebar-tagline {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

.sidebar-collapse-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.sidebar-collapse-btn i {
    font-size: 16px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-section-title {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px 8px 20px;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: var(--text-secondary);
    background-color: transparent;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    white-space: nowrap;
    position: relative;
    justify-content: flex-start;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.nav-item-button {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    min-height: 40px;
    color: var(--text-secondary);
}

.nav-item-button:hover {
    background: rgba(88, 129, 87, 0.08);
    border-radius: 10px;
    color: var(--text-primary);
}

.nav-item:hover {
    background: rgba(88, 129, 87, 0.08);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary-color);
    border-radius: 10px;
    color: white;
}

.nav-item.active .nav-icon {
    color: white;
}

.nav-icon {
    width: 24px;
    font-size: 22px;
    text-align: center;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item.active .nav-icon {
    color: white;
}

.nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.user-info i {
    font-size: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.user-info div {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}

.user-info span {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    color: var(--text-primary);
}

.user-info small {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}

.courier-service-badge {
    margin-top: 8px;
    padding: 4px 8px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
}

.courier-service-badge i {
    font-size: 10px;
    color: var(--primary-color);
}

.courier-service-header {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.courier-service-header i {
    color: var(--primary-color);
}

.courier-service-header strong {
    color: var(--primary-color);
    font-weight: 600;
}

.courier-service-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1e40af;
}

.courier-service-notice i {
    color: var(--primary-color);
}

.courier-service-notice strong {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-logout {
    width: 100%;
    padding: 10px;
    background: var(--danger-color);
    color: #ffffff;
    border: 1px solid var(--danger-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
    min-height: 40px;
    height: 40px;
}

.btn-logout span {
    white-space: nowrap;
    width: auto;
    overflow: hidden;
}

.btn-logout i {
    flex-shrink: 0;
    font-size: 18px;
}

.btn-logout:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
    box-sizing: border-box;
}


.content-header {
    background: var(--card-bg);
    padding: 24px 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0.6rem;
    left: calc(280px + 0.6rem);
    right: 0.6rem;
    z-index: 999;
    box-sizing: border-box;
    width: calc(100% - 280px - 1.2rem);
}

.content-header h1 {
    font-size: 24px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-icon {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-size: 14px;
    font-family: inherit;
    white-space: nowrap;
}

.btn-icon i {
    flex-shrink: 0;
}

.btn-icon span {
    font-size: 14px;
    font-weight: 500;
}

.btn-icon:hover {
    background: var(--bg-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-icon:active i {
    animation: spin 0.5s linear;
}

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

.content-body {
    padding: 32px;
    margin-top: 0;
    padding-top: 120px; /* Add padding to account for fixed header */
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background-image: url('../img/Yonne Logo Arrows Green.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-card.clickable-stat {
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-card.clickable-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--primary-color);
}

.stat-card.clickable-stat.active {
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(88, 129, 87, 0.15);
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
}

.stat-card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    font-family: inherit;
    padding: 0;
    opacity: 0.6;
}

.stat-card-arrow:hover {
    background: var(--primary-color);
    color: #ffffff;
    opacity: 1;
}

.recent-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
}

.recent-section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.recent-section-arrow {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: none;
    background: var(--bg-color);
    color: var(--text-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    font-family: inherit;
    padding: 0;
}

.recent-section-arrow:hover {
    background: var(--primary-dark);
    color: #ffffff;
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: linear-gradient(135deg, rgba(88, 129, 87, 0.12), rgba(88, 129, 87, 0.08));
    color: var(--primary-color);
}

.stat-icon.green {
    background: linear-gradient(135deg, rgba(88, 129, 87, 0.15), rgba(88, 129, 87, 0.1));
    color: var(--primary-color);
}

.stat-icon.orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.08));
    color: #f59e0b;
}

.stat-icon.purple {
    background: linear-gradient(135deg, rgba(88, 129, 87, 0.12), rgba(88, 129, 87, 0.08));
    color: var(--primary-dark);
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.section-header > div:first-child {
    flex: 1;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
    font-weight: 400;
}

/* Income Section Specific Styling */
#income .section-header {
    margin-bottom: 32px;
}

#income .section-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.section-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    min-height: 40px;
    height: 40px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    padding: 10px 20px;
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 40px;
    height: 40px;
}

.btn-secondary:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    font-family: inherit;
    min-height: 40px;
    height: 40px;
}

.btn-success {
    padding: 10px 20px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    min-height: 40px;
    height: 40px;
}

.btn-success:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-warning {
    padding: 10px 20px;
    background: var(--warning-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    min-height: 40px;
    height: 40px;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-danger {
    padding: 10px 20px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    min-height: 40px;
    height: 40px;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Table */
.table-container {
    background: var(--card-bg);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
}

/* Merchant tables - remove margins */
#merchants-list-tab .table-container,
#merchant-wallets-tab .table-container,
#pending-verifications-tab .table-container,
#all-merchants-view .table-container,
#top-merchants-view .table-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

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

thead {
    background: var(--primary-dark);
}

th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

td.action-cell {
    padding: 8px 16px;
    position: relative;
    width: 1%;
    white-space: nowrap;
}

tbody tr:hover {
    background: var(--bg-color);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.available {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.busy {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.offline {
    background: #e5e7eb;
    color: #374151;
}

/* Toggle Switch */
.status-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 26px;
    border: 2px solid transparent;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:not(:checked) + .toggle-slider {
    background-color: #cbd5e1;
    border-color: #94a3b8;
}

.toggle-switch input:not(:checked) + .toggle-slider:before {
    transform: translateX(0);
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-switch:hover input:not(:disabled) + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.toggle-switch input:checked:hover + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.toggle-switch input:not(:checked):hover + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(203, 213, 225, 0.3);
}

.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    background: transparent;
    color: var(--text-secondary);
    height: 40px;
    min-height: 40px;
    position: relative;
    pointer-events: auto;
    z-index: 1;
    flex-shrink: 0;
}

.action-btn i {
    font-size: 16px;
}

.action-btn .action-text {
    opacity: 1;
    display: inline-block;
    white-space: nowrap;
    font-weight: 500;
}

.action-btn:hover {
    background: var(--card-bg);
}

.action-btn.btn-primary {
    color: var(--primary-color);
}

.action-btn.btn-primary:hover {
    background: var(--primary-color);
    color: white;
}

.action-btn.btn-secondary {
    color: var(--text-secondary);
}

.action-btn.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

.action-btn.btn-success {
    color: var(--success-color);
}

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

.action-btn.btn-danger {
    color: var(--danger-color);
}

.action-btn.btn-danger:hover {
    background: var(--danger-color);
    color: white;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Spinner Styles */
.spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border-width: 5px;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.loading-screen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    text-align: center;
}

.loading-logo-container {
    animation: fadeInDown 0.6s ease-out;
}

.loading-logo {
    max-width: 180px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(15%) sepia(30%) saturate(1500%) hue-rotate(130deg) brightness(0.4) contrast(1.1);
    animation: pulse 2s ease-in-out infinite;
}

.loading-spinner-large {
    width: 60px;
    height: 60px;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Table spinner */
.table-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.table-spinner .spinner {
    margin: 0 auto;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

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

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    min-height: auto;
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 0;
    margin: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: none;
    animation: slideUp 0.3s ease-out;
}

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

/* Custom scrollbar for modals - styled but functional */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 3px;
    margin: 8px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
    min-height: 40px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.modal-content.large {
    max-width: 1200px;
    width: 95%;
    background: var(--card-bg);
}

#driverDetailsModal .modal-content {
    max-width: 900px;
    width: 95%;
    background: var(--card-bg);
}

.modal-content.wide {
    max-width: 1200px;
}

.modal-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 24px 32px;
}

.modal-two-column .column-left,
.modal-two-column .column-right {
    padding-top: 8px;
    padding-bottom: 8px;
}

.modal-two-column .column {
    display: flex;
    flex-direction: column;
}

.modal-two-column .column-left {
    border-right: 1px solid var(--border-color);
    padding-right: 24px;
}

.modal-two-column .column-right {
    padding-left: 24px;
}

@media (max-width: 1024px) {
    .modal-two-column {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .modal-two-column .column-left {
        border-right: none;
    border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 24px;
    }
    
    .modal-two-column .column-right {
        padding-left: 0;
        padding-top: 24px;
    }
}

.modal-header {
    padding: 28px 32px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border-radius: 20px 20px 0 0;
}

.modal-header-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    letter-spacing: -0.3px;
}

.modal-header-subtext {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.modal-close {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    font-size: 20px;
    font-family: inherit;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    transform: scale(1.05);
}

.modal-body {
    padding: 32px;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    background: transparent;
}

.driver-success-modal .modal-body {
    padding: 32px;
}

/* Ensure modal body content has proper spacing */
.modal-body > *:first-child {
    margin-top: 0;
}

.modal-body > *:last-child {
    margin-bottom: 0;
}

/* Form styling inside modals */
.modal-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-form .modal-body {
    padding: 32px;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    background: transparent;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-body .form-row {
    margin-bottom: 20px;
}

.modal-body .form-row:last-child {
    margin-bottom: 0;
}

/* Modal form inputs should use dashboard colors, not login colors */
.modal-body .form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.modal-body .form-group input,
.modal-body .form-group textarea,
.modal-body .form-group select {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    background: var(--card-bg);
}

.modal-body .form-group input:focus,
.modal-body .form-group textarea:focus,
.modal-body .form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.modal-body .form-group input::placeholder,
.modal-body .form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Content sections in modals - better spacing */
.modal-body > div:not(.modal-form):not(.spinner-container) {
    padding: 0;
}

/* Grid layouts in modal content */
.modal-body .driver-details-grid,
.modal-body .driver-details-docs-grid {
    margin-top: 20px;
}

/* Section titles in modals */
.modal-body h3,
.modal-body .section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Better spacing for paragraphs and text in modals */
.modal-body p {
    margin: 0 0 16px 0;
    line-height: 1.6;
    color: var(--text-primary);
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* Label styling in modals */
.modal-body label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Value display in modals */
.modal-body [style*="font-size: 16px"] {
    color: var(--text-primary);
    font-weight: 400;
}

/* Content divs with inline padding - remove outer padding since modal-body has it */
.modal-body > div[style*="padding: 24px"],
.modal-body > div[style*="padding: 40px"] {
    margin: 0;
    padding: 0 !important;
}

/* Grid layouts in modal content */
.modal-body [style*="display: grid"][style*="grid-template-columns"] {
    gap: 16px;
    margin-bottom: 24px;
}

.modal-body [style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
    gap: 16px;
    margin-bottom: 24px;
}

/* Button groups at bottom of modal content - extend to edges */
.modal-body [style*="display: flex"][style*="justify-content: flex-end"][style*="padding-top: 24px"] {
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px !important;
    padding-right: 32px !important;
    margin-top: 32px;
}

/* Remove all outline borders from modal elements */
.modal *:focus,
.modal *:active,
.modal input:focus,
.modal input:active,
.modal textarea:focus,
.modal textarea:active,
.modal select:focus,
.modal select:active,
.modal button:focus,
.modal button:active,
.modal a:focus,
.modal a:active {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    -webkit-outline: none !important;
    -moz-outline: none !important;
}

/* Also remove outline from form elements specifically */
.modal .form-group input:focus,
.modal .form-group textarea:focus,
.modal .form-group select:focus,
.modal input[type="text"]:focus,
.modal input[type="email"]:focus,
.modal input[type="tel"]:focus,
.modal input[type="password"]:focus,
.modal input[type="number"]:focus,
.modal input[type="file"]:focus,
.modal textarea:focus,
.modal select:focus {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    -webkit-outline: none !important;
    -moz-outline: none !important;
}

/* Remove outline from buttons in modals */
.modal .btn-primary:focus,
.modal .btn-secondary:focus,
.modal .btn-danger:focus,
.modal .btn-success:focus,
.modal .btn-icon:focus,
.modal .modal-close:focus,
.modal button:focus,
.modal .action-btn:focus {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    -webkit-outline: none !important;
    -moz-outline: none !important;
}

/* Remove outline from links and other interactive elements */
.modal a:focus,
.modal label:focus,
.modal .toggle-switch input:focus {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    -webkit-outline: none !important;
    -moz-outline: none !important;
}

/* Remove outline from all cards and card-like elements inside modals */
.modal .driver-details-section:focus,
.modal .driver-details-section:active,
.modal .attachment-item:focus,
.modal .attachment-item:active,
.modal .document-card:focus,
.modal .document-card:active,
.modal .card:focus,
.modal .card:active,
.modal [class*="card"]:focus,
.modal [class*="card"]:active,
.modal [class*="section"]:focus,
.modal [class*="section"]:active,
.modal div[class*="card"]:focus,
.modal div[class*="card"]:active,
.modal div[class*="section"]:focus,
.modal div[class*="section"]:active {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    -webkit-outline: none !important;
    -moz-outline: none !important;
}

/* Remove outline from all divs and containers inside modals */
.modal div:focus,
.modal div:active,
.modal section:focus,
.modal section:active {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    -webkit-outline: none !important;
    -moz-outline: none !important;
}

.modal-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#driverModal .modal-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Driver Details Modal Styling - Clean Minimalistic Design */
.driver-details-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100%;
    padding: 0;
}

.driver-details-wrapper {
    padding: 0;
}

/* Driver details sections should have proper spacing */
.driver-details-container {
    padding: 0;
}

/* Modal content wrapper - provides consistent padding */
.modal-body > div:not(.spinner-container):not(.modal-form) {
    padding: 0;
}

/* Ensure proper spacing for content sections in modals */
.modal-body .driver-details-container,
.modal-body > div[style*="padding"] {
    padding: 0 !important;
}

/* Grid layouts in modals */
.modal-body .driver-details-grid,
.modal-body .driver-details-docs-grid {
    margin-top: 20px;
}

.driver-details-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 32px;
    box-shadow: none;
}

.driver-details-section:last-child {
    margin-bottom: 0;
}

.driver-details-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    letter-spacing: -0.2px;
}

.driver-details-section-title svg,
.driver-details-section-title i {
    font-size: 18px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.driver-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px 32px;
    margin-top: 20px;
}

.driver-details-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.driver-details-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 4px;
}

.driver-details-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.5;
}

.driver-details-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 32px 0;
    width: 100%;
}

.driver-details-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.driver-details-doc-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.driver-details-doc-card:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.driver-details-doc-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.driver-details-doc-status {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.driver-details-location-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.driver-details-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
    margin-top: auto;
    flex-shrink: 0;
}

/* Status badges - minimalistic */
.driver-details-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

.driver-details-badge.verified {
    background: rgba(52, 199, 89, 0.1);
    color: #1a7f36;
}

.driver-details-badge.pending {
    background: rgba(255, 149, 0, 0.1);
    color: #c77700;
}

.driver-details-badge.not-uploaded {
    background: rgba(142, 142, 147, 0.1);
    color: #8e8e93;
}

/* Info grid - cleaner layout */
.driver-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 24px;
    font-size: 15px;
}

.driver-info-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.driver-info-value {
    font-weight: 400;
    color: var(--text-primary);
    font-size: 15px;
}

/* Status row */
.driver-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

.driver-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

/* Action buttons in doc cards */
.driver-doc-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.driver-doc-btn {
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.driver-doc-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.driver-doc-btn.verify {
    background: #34c759;
}

.driver-doc-btn.verify:hover {
    background: #2fb04a;
}

.driver-doc-btn svg {
    width: 14px;
    height: 14px;
}

/* Edit button */
.driver-edit-btn {
    background: #000;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.driver-edit-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.driver-edit-btn svg {
    width: 18px;
    height: 18px;
}

/* Order Details Modal Styling */
/* Order Details Modal - Reusing driver details styles */
.order-details-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100%;
    padding: 0;
}

.order-details-wrapper {
    padding: 32px;
}

.order-details-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 32px;
    box-shadow: none;
}

.order-details-section:last-child {
    margin-bottom: 0;
}

/* Reuse driver-details-section-title styles */
.order-details-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    letter-spacing: -0.2px;
}

.order-details-section-title svg,
.order-details-section-title i {
    font-size: 18px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Reuse driver-info-grid styles */
.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px 32px;
    margin-top: 20px;
}

.order-details-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Reuse driver-info-label and driver-info-value styles */
.order-details-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 4px;
}

.order-details-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.5;
}

.order-details-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 32px 0;
    width: 100%;
}

.order-details-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* Reuse driver-details-location-card styles */
.order-details-location-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.order-details-location-card:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.order-details-location-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 4px;
}

.order-details-location-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.6;
}

.order-details-notes-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 20px;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-top: 20px;
}

.order-details-token-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.order-details-token {
    font-size: 13px;
    background: rgba(0, 0, 0, 0.04);
    padding: 12px;
    border-radius: 8px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Scrollable content areas in modals */
[id^="documentsListEdit-"],
[id^="documentsList-"] {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    margin: 0 -8px;
}

/* Custom scrollbar for document lists and modal body - styled but functional */
[id^="documentsListEdit-"]::-webkit-scrollbar,
[id^="documentsList-"]::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 6px;
}

[id^="documentsListEdit-"]::-webkit-scrollbar-track,
[id^="documentsList-"]::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 3px;
    margin: 8px 0;
}

[id^="documentsListEdit-"]::-webkit-scrollbar-thumb,
[id^="documentsList-"]::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
    min-height: 40px;
}

[id^="documentsListEdit-"]::-webkit-scrollbar-thumb:hover,
[id^="documentsList-"]::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 2FA Code Input Styling */
.code-box:focus {
    outline: none;
    border-color: #000000 !important;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.12) !important;
    background: white !important;
}

.code-box.active {
    border-color: #000000 !important;
    background: white !important;
}

.btn-send,
.btn-confirm {
    font-family: inherit;
    min-height: 40px;
    height: 40px;
}

.btn-send:hover,
.btn-confirm:hover {
    background: #222222 !important;
}

.btn-send:disabled,
.btn-confirm:disabled {
    background: #c7c7cc !important;
    cursor: not-allowed !important;
}

/* File upload styling */
input[type="file"] {
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: var(--primary-color);
}

input[type="file"]::file-selector-button {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 12px;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
    min-height: 40px;
    height: 40px;
}

input[type="file"]::file-selector-button:hover {
    background: var(--primary-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 24px 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--card-bg);
    margin-top: auto;
    flex-shrink: 0;
    border-radius: 0 0 20px 20px;
}

.form-actions button,
.form-actions .btn-primary,
.form-actions .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 100px;
    min-height: 40px;
    height: 40px;
    border: none;
}

.form-actions .btn-primary {
    background: var(--primary-color);
    color: white;
}

.form-actions .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.form-actions .btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.form-actions .btn-secondary:hover {
    background: var(--bg-color);
    border-color: var(--text-secondary);
    transform: translateY(-1px);
}

/* Income Section */
.filter-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    background: var(--bg-color);
    padding: 4px;
    border-radius: 12px;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 40px;
    height: 40px;
}

.filter-btn:hover {
    background: rgba(28, 28, 28, 0.05);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(28, 28, 28, 0.15);
}

/* Removed old income-stats, income-card, income-amount styles - now using stat-card and stat-info */

/* Income Details Section */
#incomeDetails {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-top: 8px;
}

#incomeDetails .table-container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* Income Details Cards */
#incomeDetails > div > div {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
}

#incomeDetails > div > div > div {
    padding: 24px !important;
    background: var(--card-bg) !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border: none !important;
}

#incomeDetails > div > div > div > div:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

#incomeDetails > div > div > div > div:first-child > div:first-child {
    width: 56px !important;
    height: 56px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(88, 129, 87, 0.12), rgba(88, 129, 87, 0.08)) !important;
}

/* WooCommerce icon styling */
#incomeDetails > div > div > div:first-child > div:first-child > div:first-child {
    background: linear-gradient(135deg, rgba(88, 129, 87, 0.15), rgba(88, 129, 87, 0.1)) !important;
}

/* Flutter icon styling */
#incomeDetails > div > div > div:last-child > div:first-child > div:first-child {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.08)) !important;
}

#incomeDetails > div > div > div > div:first-child > div:first-child i {
    color: var(--primary-color) !important;
    font-size: 24px !important;
}

/* WooCommerce icon color */
#incomeDetails > div > div > div:first-child > div:first-child > div:first-child i {
    color: var(--primary-color) !important;
}

/* Flutter icon color */
#incomeDetails > div > div > div:last-child > div:first-child > div:first-child i {
    color: #f59e0b !important;
}

#incomeDetails > div > div > div > div:first-child > div:last-child > div:first-child {
    font-size: 12px !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 4px !important;
}

#incomeDetails > div > div > div > div:first-child > div:last-child > div:last-child {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.3px !important;
}

#incomeDetails > div > div > div > div:last-child {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    margin-top: 8px !important;
    font-weight: 500 !important;
}

.recent-section {
    margin-top: 32px;
}

.recent-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Ticketing System Styles */
.tickets-view {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tickets-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 0 20px;
}

/* Tickets filter select now uses the same styling as form-select-base above */

.tickets-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .tickets-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.ticket-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.ticket-card-id {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.ticket-card-subject {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 8px 0;
    line-height: 1.4;
}

.ticket-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-description-text {
    display: inline;
}

.ticket-description-full {
    display: inline;
}

.ticket-description-more {
    margin-left: 8px;
    padding: 2px 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.ticket-description-more:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.ticket-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.ticket-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.ticket-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-badge.status-open {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.ticket-badge.status-in_progress {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.ticket-badge.status-resolved {
    background: rgba(88, 129, 87, 0.1);
    color: var(--primary-color);
}

.ticket-badge.status-closed {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.ticket-badge.priority-low {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.ticket-badge.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.ticket-badge.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.ticket-badge.priority-urgent {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
}

.ticket-badge.category {
    background: rgba(28, 28, 28, 0.08);
    color: var(--text-primary);
}

.ticket-card-date {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-card-actions {
    display: flex;
    gap: 8px;
}

/* Ticket Detail View */
.ticket-detail-view {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ticket-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ticket-detail-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ticket-detail-main {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ticket-detail-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.ticket-detail-header-left {
    flex: 1;
    min-width: 0;
}

.ticket-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.ticket-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ticket-attachments-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}

.ticket-detail-attachments-header-wrapper {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.ticket-detail-attachments-header-wrapper .ticket-attachments-header {
    align-items: flex-start;
}

.attachment-header-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    max-width: 200px;
}

.attachment-header-item i {
    color: var(--primary-color);
    font-size: 16px;
}

.attachment-header-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-download-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-download-link:hover {
    background: rgba(28, 28, 28, 0.1);
    color: var(--primary-color);
}

.attachment-more-btn {
    padding: 6px 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.attachment-more-btn:hover {
    background: rgba(28, 28, 28, 0.05);
    border-color: var(--primary-color);
}

.ticket-detail-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 16px;
    white-space: pre-wrap;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ticket-detail-description.expanded {
    max-height: none;
}

.ticket-description-text {
    display: inline;
}

.ticket-description-full {
    display: inline;
}

.ticket-description-more {
    margin-left: 8px;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-description-more:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.ticket-detail-attachments {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.ticket-detail-attachments h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: all 0.2s;
}

.attachment-item:hover {
    background: rgba(28, 28, 28, 0.05);
}

.attachment-item:focus,
.attachment-item:active {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
}

.attachment-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(28, 28, 28, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.attachment-size {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Ticket Conversation Thread */
.ticket-conversation {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ticket-conversation h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.conversation-thread {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.conversation-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.conversation-message.message-own {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.conversation-message.message-other {
    flex-direction: row;
    justify-content: flex-start;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 14px;
}

.message-avatar-own {
    background: #000;
}

.message-content {
    max-width: 70%;
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 18px;
    background: var(--bg-color);
    position: relative;
}

.message-content-own {
    background: #000;
    color: white;
}

.message-content-own .message-author,
.message-content-own .message-date,
.message-content-own .message-text {
    color: white;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.message-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.message-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.message-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-attachments {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

/* Conversation Reply Styles */
.conversation-reply {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.conversation-reply-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.conversation-reply-input-wrapper textarea {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-primary);
    resize: none;
    min-height: 44px;
    max-height: 120px;
    transition: all 0.2s;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
}

.conversation-reply-input-wrapper textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.conversation-reply-input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.1);
}

.conversation-send-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 12px;
    background: #000;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-family: inherit;
}

.conversation-send-btn:hover:not(:disabled) {
    background: #222;
}

.conversation-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.conversation-send-btn i {
    font-size: 18px;
}

/* Reply Form */
.ticket-reply-form {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-top: 24px;
}

.ticket-reply-form h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.reply-form-group {
    margin-bottom: 20px;
}

.reply-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.reply-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s;
}

.reply-form-group textarea:focus {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.1);
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.empty-state-icon {
    font-size: 64px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ============================================ */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn i {
    font-size: 20px;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        width: 260px;
    }
    
    .main-content {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
    
    .content-header {
        left: calc(260px + 0.6rem);
        width: calc(100% - 260px - 1.2rem);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    
    .recent-section-grid {
        grid-template-columns: 1fr !important;
    }
    
    .modal-content.large,
    #driverDetailsModal .modal-content {
        max-width: 95vw;
        width: 95%;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Mobile Menu Button - Show on mobile */
    .mobile-menu-btn {
        display: flex !important;
    }
    
    /* Remove d-none class on mobile for hamburger */
    .mobile-menu-btn.d-none {
        display: flex !important;
    }
    
    /* Sidebar - Hidden by default, slides in from left */
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        top: 0;
        bottom: 0;
        left: 0;
        margin: 0;
        border-radius: 0;
        z-index: 1001;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }
    
    /* Show sidebar when body has class */
    body.sidebar-open .sidebar,
    body.sidebar-locked-open .sidebar {
        transform: translateX(0);
    }
    
    /* Keep sidebar hidden when locked closed */
    body.sidebar-locked-closed .sidebar {
        transform: translateX(-100%);
    }
    
    /* Sidebar overlay - show when sidebar is open */
    .sidebar-overlay {
        display: none;
        pointer-events: none;
    }
    
    body.sidebar-open .sidebar-overlay,
    body.sidebar-locked-open .sidebar-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    
    body.sidebar-locked-closed .sidebar-overlay {
        display: none !important;
        opacity: 0;
        pointer-events: none !important;
    }
    
    /* Ensure overlay doesn't block when sidebar is closed */
    .sidebar-overlay:not(.show) {
        display: none !important;
        pointer-events: none !important;
    }
    
    /* Main content - full width on mobile */
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .content-header {
        left: 0.6rem;
        right: 0.6rem;
        width: calc(100% - 1.2rem);
        padding: 16px 20px;
    }
    
    .content-header > div:first-child {
        display: flex;
        align-items: center;
        gap: 12px;
    flex: 1;
    }
    
    .content-header h1 {
        font-size: 20px;
        margin: 0;
    }
    
    /* Ensure hamburger icon is visible and properly positioned on mobile */
    .content-header .mobile-menu-btn {
        display: flex !important;
        flex-shrink: 0;
        order: -1; /* Place it before the title */
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .btn-icon span {
        display: none;
    }
    
    .content-body {
        padding: 16px;
        padding-top: 90px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Stats grid - single column */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    
    .stat-card {
        padding: 20px;
    }
    
    /* Recent sections */
    .recent-section-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure recent sections don't overflow */
    .recent-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Tables - ensure container doesn't overflow viewport */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Recent section tables - ensure they work on mobile */
    #recentDrivers,
    #recentOrders {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .recent-section .table-container,
    .recent-section-grid .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .recent-section-grid {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Grid items inside recent-section-grid - critical for mobile */
    .recent-section-grid > div {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .recent-section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    table {
        font-size: 13px;
        width: auto;
        min-width: 100%;
    }
    
    /* Ensure tables inside recent sections work properly */
    #recentDrivers table,
    #recentOrders table,
    .recent-section table,
    .recent-section-grid table,
    .recent-section-grid > div table {
        font-size: 13px !important;
        width: auto !important;
        min-width: 100% !important;
    }
    
    table th,
    table td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    #recentDrivers table th,
    #recentDrivers table td,
    #recentOrders table th,
    #recentOrders table td,
    .recent-section table th,
    .recent-section table td {
        padding: 10px 8px !important;
        white-space: nowrap !important;
    }
    
    /* Minimal table mobile styles */
    .minimal-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .minimal-table {
        font-size: 13px;
    }
    
    .minimal-table th,
    .minimal-table td {
        padding: 12px 10px;
    }
    
    /* Modals - full width for large modals only */
    .modal-content.large,
    #driverDetailsModal .modal-content,
    .modal-content.wide {
        width: 100%;
        max-width: 100vw;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        height: 100vh;
    }
    
    /* All main modals fill entire screen on mobile (except small dialog boxes) */
    .modal-content {
        width: 100% !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    /* Small dialog modals - fit content (confirmation dialogs, etc.) */
    .modal-content[style*="max-width: 400px"],
    .modal-content[style*="max-width:420px"],
    .modal-content[style*="max-width: 420px"],
    .modal-content[style*="max-width: 500px"],
    .modal-content[style*="max-width: 600px"] {
        width: auto !important;
        max-width: 90vw !important;
        max-height: 90vh !important;
        height: auto !important;
        margin: 20px auto !important;
        border-radius: 20px !important;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    /* Small dialog modals - adjust padding */
    .modal-content[style*="max-width: 400px"] .modal-body,
    .modal-content[style*="max-width:420px"] .modal-body,
    .modal-content[style*="max-width: 420px"] .modal-body {
        padding: 24px 20px !important;
    }
    
    .modal-body {
        padding: 0;
    }
    
    .driver-details-wrapper,
    .order-details-wrapper {
        padding: 20px;
    }
    
    /* Modal detail fields - labels left, values right on mobile */
    .driver-details-field,
    .order-details-field {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
    }
    
    .driver-details-label,
    .order-details-label {
        text-align: left !important;
        flex-shrink: 0 !important;
    }
    
    .driver-details-value,
    .order-details-value {
        text-align: right !important;
        flex: 1 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }
    
    /* Filter controls - single row on mobile */
    .filter-controls,
    .tickets-filters {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        padding: 0 0 4px 0;
    }
    
    /* Search box - collapsed state (icon only) - just fit the icon */
    .search-box-base {
        position: relative;
        height: 44px;
        flex-shrink: 0;
        transition: width 0.3s ease, min-width 0.3s ease;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* When collapsed, make it just fit the icon */
    .search-box-base:not(.search-expanded) {
        width: 44px;
        min-width: 44px;
        max-width: 44px;
    }
    
    /* When expanded, cover 3/4 of screen width */
    .search-box-base.search-expanded {
        width: 75vw;
        min-width: 75vw;
        max-width: 75vw;
        flex: 0 0 75vw;
    }
    
    /* Search icon - always visible and clickable */
    .search-box-base .search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-secondary);
        pointer-events: auto;
        z-index: 2;
        cursor: pointer;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* When collapsed, show icon in a clickable area - center the icon */
    .search-box-base:not(.search-expanded) {
        cursor: pointer;
    background: var(--card-bg);
        border: none;
    border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Center icon when collapsed */
    .search-box-base:not(.search-expanded) .search-icon {
        position: static;
        transform: none;
        left: auto;
        top: auto;
        margin: 0;
    }
    
    .search-box-base:not(.search-expanded):hover {
        background: rgba(0, 0, 0, 0.02);
    }
    
    /* When expanded, restore icon position to left */
    .search-box-base.search-expanded .search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Search input - hidden when collapsed */
    .search-box-base input {
        width: 100%;
        padding: 12px 44px 12px 40px;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        background: var(--card-bg);
        color: var(--text-primary);
        transition: all 0.2s ease;
        opacity: 0;
        pointer-events: none;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        box-sizing: border-box;
    }
    
    .search-box-base.search-expanded {
        background: transparent;
        border: none;
    }
    
    .search-box-base.search-expanded input {
        opacity: 1;
        pointer-events: auto;
        position: relative;
    }
    
    /* Search close button */
    .search-close-btn {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        border: none;
        background: transparent;
        color: var(--text-secondary);
        cursor: pointer;
    display: flex;
    align-items: center;
        justify-content: center;
        border-radius: 6px;
        z-index: 3;
        transition: all 0.2s ease;
        padding: 0;
    }
    
    .search-close-btn:hover {
        background: rgba(0, 0, 0, 0.05);
        color: var(--text-primary);
    }
    
    .search-close-btn i {
    font-size: 18px;
    }
    
    /* Dropdowns - normal state on mobile (reduced width, text truncated to ~9 chars) */
    .form-select-base,
    .tickets-filter-select {
        width: auto;
        min-width: 65px;
        max-width: 75px;
        height: 44px;
        padding: 12px 28px 12px 10px;
        flex-shrink: 0;
        transition: width 0.3s ease, min-width 0.3s ease, padding 0.3s ease;
        position: relative;
        box-sizing: border-box;
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Show full text in dropdown when opened */
    .form-select-base option,
    .tickets-filter-select option {
        max-width: none;
    }
    
    /* Dropdowns - collapsed when search is expanded (arrows only) */
    .filter-controls.search-expanded .form-select-base,
    .filter-controls.search-expanded .tickets-filter-select {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        padding: 12px 12px !important;
        color: transparent !important;
        font-size: 0 !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23656565' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 16px !important;
    }
    
    /* Clear button - X icon only on mobile */
    #clearDriversFilters,
    #clearOrdersFilters,
    #clearTicketsFilters,
    .filter-controls button.btn-secondary,
    .tickets-filters button.btn-secondary {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }
    
    /* Hide text in clear button, show only icon */
    #clearDriversFilters .clear-text,
    #clearOrdersFilters .clear-text,
    #clearTicketsFilters .clear-text,
    .filter-controls button.btn-secondary .clear-text,
    .tickets-filters button.btn-secondary .clear-text {
        display: none !important;
    }
    
    /* Show only icon */
    #clearDriversFilters i,
    #clearOrdersFilters i,
    #clearTicketsFilters i,
    .filter-controls button.btn-secondary i,
    .tickets-filters button.btn-secondary i {
        margin: 0 !important;
        font-size: 20px !important;
    }
    
    /* Driver/Order details - single column */
    .driver-info-grid,
    .order-details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .driver-details-docs-grid {
        grid-template-columns: 1fr;
    }
    
    .driver-status-row {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .order-details-location-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form rows */
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .content-body {
        padding: 12px;
        padding-top: 80px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    overflow-x: hidden;
}

    .content-header {
        padding: 12px 16px;
        left: 0.3rem;
        right: 0.3rem;
        width: calc(100% - 0.6rem);
    }
    
    .content-header h1 {
        font-size: 18px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    /* Small dialog modals - fit content on small mobile */
    .modal-content {
        width: auto !important;
        max-width: 90vw !important;
        max-height: 85vh !important;
        height: auto !important;
        margin: 15px !important;
        border-radius: 16px !important;
    }
    
    /* All main modals fill entire screen on mobile (except small dialog boxes) */
    .modal-content {
        width: 100% !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    /* Small dialog modals - fit content (confirmation dialogs, etc.) */
    .modal-content[style*="max-width: 400px"],
    .modal-content[style*="max-width:420px"],
    .modal-content[style*="max-width: 420px"],
    .modal-content[style*="max-width: 500px"],
    .modal-content[style*="max-width: 600px"] {
        width: auto !important;
        max-width: 90vw !important;
        max-height: 90vh !important;
        height: auto !important;
        margin: 15px auto !important;
        border-radius: 16px !important;
    }
    
    /* Large modals stay full screen */
    .modal-content.large,
    #driverDetailsModal .modal-content,
    .modal-content.wide {
        width: 100% !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        height: 100vh !important;
    }
    
    /* Dialog modals with max-width inline style (confirmation dialogs) */
    .modal-content[style*="max-width: 400px"],
    .modal-content[style*="max-width:420px"],
    .modal-content[style*="max-width: 420px"] {
        width: auto !important;
        max-width: 90vw !important;
        max-height: auto !important;
        height: auto !important;
        margin: 15px auto !important;
        border-radius: 16px !important;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-header-subtext {
        font-size: 12px;
    }
    
    /* Small dialog modals - adjust padding */
    .modal-content[style*="max-width: 400px"] .modal-body,
    .modal-content[style*="max-width:420px"] .modal-body,
    .modal-content[style*="max-width: 420px"] .modal-body {
        padding: 20px 16px !important;
    }
    
    .driver-details-wrapper,
    .order-details-wrapper {
        padding: 16px;
    }
    
    .driver-details-section {
        margin-bottom: 24px;
    }
    
    /* Modal detail fields - labels left, values right on mobile */
    .driver-details-field,
    .order-details-field,
    .driver-info-field {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
    }
    
    .driver-details-label,
    .order-details-label,
    .driver-info-label {
        text-align: left !important;
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .driver-details-value,
    .order-details-value,
    .driver-info-value {
        text-align: right !important;
        flex: 1 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }
    
    /* Tables on small mobile */
    .table-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
    /* Recent section tables on small mobile */
    #recentDrivers,
    #recentOrders {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
    }
    
    .recent-section .table-container,
    .recent-section-grid .table-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
    }
    
    .recent-section-grid {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Grid items inside recent-section-grid - critical for small mobile */
    .recent-section-grid > div {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .recent-section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Ensure tables inside recent sections work properly on small mobile */
    #recentDrivers table,
    #recentOrders table,
    .recent-section table,
    .recent-section-grid table,
    .recent-section-grid > div table {
        font-size: 12px !important;
        width: auto !important;
        min-width: 100% !important;
    }
    
    #recentDrivers table th,
    #recentDrivers table td,
    #recentOrders table th,
    #recentOrders table td,
    .recent-section table th,
    .recent-section table td,
    .recent-section-grid > div table th,
    .recent-section-grid > div table td {
        padding: 8px 6px !important;
        white-space: nowrap !important;
    }
    
    table {
        font-size: 12px;
        width: auto;
        min-width: 100%;
    }
    
    table th,
    table td {
        padding: 8px 6px;
    }
    
    /* Minimal table small mobile styles */
    .minimal-table-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .minimal-table {
        width: auto;
        min-width: 100%;
    }
    
    .minimal-table th,
    .minimal-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .btn-icon {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
    }
    
    .sidebar {
        width: 100%;
        max-width: 280px;
    }
    
    .sidebar-header {
        padding: 16px;
    }
    
    .financial-card {
        padding: 16px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Platform Fee Balance Cards */
.balance-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.balance-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
    opacity: 0.3;
}

.balance-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.balance-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.balance-card-header i {
    font-size: 24px;
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.08), rgba(28, 28, 28, 0.04));
    border-radius: 12px;
    flex-shrink: 0;
}

.balance-card-header h3 {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.balance-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 500;
}

.balance-card.current-balance {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, #ffffff 100%);
    border-left: 4px solid #ef4444;
}

.balance-card.current-balance::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
    opacity: 1;
}

.balance-card.current-balance .balance-card-header i {
    color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.06));
}

.balance-card.total-owed {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, #ffffff 100%);
    border-left: 4px solid #f59e0b;
}

.balance-card.total-owed::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    opacity: 1;
}

.balance-card.total-owed .balance-card-header i {
    color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.06));
}

.balance-card.total-paid {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, #ffffff 100%);
    border-left: 4px solid #10b981;
}

.balance-card.total-paid::before {
    background: linear-gradient(90deg, #10b981, #34d399);
    opacity: 1;
}

.balance-card.total-paid .balance-card-header i {
    color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.06));
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.stat-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}


/* Filters Bar */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 14px;
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 1;
    font-size: 16px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
    min-height: 44px;
    height: 44px;
}

.search-box input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-box input:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.search-box input:focus {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: 0 0 0 4px rgba(28, 28, 28, 0.12);
    background: var(--card-bg);
}

/* Filter Select */
.filter-select {
    padding: 12px 40px 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23656565' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    min-width: 160px;
    min-height: 44px;
    height: 44px;
}

.filter-select:hover {
    background-color: rgba(0, 0, 0, 0.02);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23212121' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.filter-select:focus {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: 0 0 0 4px rgba(28, 28, 28, 0.12);
    background-color: var(--card-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23212121' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.filter-select option {
    padding: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
}

/* Filter Input */
.filter-input {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 140px;
    min-height: 44px;
    height: 44px;
}

.filter-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.filter-input:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.filter-input:focus {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: 0 0 0 4px rgba(28, 28, 28, 0.12);
    background: var(--card-bg);
}

/* Date Input Styling */
.filter-input[type="date"] {
    position: relative;
    color-scheme: light;
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    filter: invert(0.4);
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Date Range Filter */
.date-range-filter {
    position: relative;
}

.date-range-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 160px;
    min-height: 44px;
    height: 44px;
    justify-content: space-between;
}

.date-range-btn:hover {
    border-color: rgba(0, 0, 0, 0.15);
    background-color: rgba(0, 0, 0, 0.02);
}

.date-range-btn:focus {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(28, 28, 28, 0.12);
    background-color: var(--card-bg);
}

.date-range-btn i:first-child {
    color: var(--text-secondary);
    font-size: 16px;
}

.date-range-btn .bi-chevron-down {
    color: var(--text-secondary);
    font-size: 12px;
    transition: transform 0.2s ease;
}

.date-range-btn .bi-chevron-down.rotate {
    transform: rotate(180deg);
}

.date-range-text {
    flex: 1;
    text-align: left;
}

.date-range-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 20px;
    min-width: 320px;
    z-index: 1000;
    display: none;
    animation: slideUp 0.2s ease;
}

.date-range-dropdown.show {
    display: block;
}

/* Generate Reports Button */
.generate-reports-btn {
    padding: 12px 16px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    min-height: 44px;
}

.generate-reports-btn:hover {
    background: #fff;
    border-color: #000;
    color: #000;
}

.generate-reports-btn i:first-child {
    font-size: 16px;
}

.generate-reports-btn .bi-chevron-down {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.generate-reports-btn .bi-chevron-down.rotate {
    transform: rotate(180deg);
}

/* Reports Dropdown */
.reports-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 16px;
    min-width: 320px;
    z-index: 1000;
    display: none;
    animation: slideUp 0.2s ease;
}

.reports-dropdown.show {
    display: block;
}

.reports-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-download-btn {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.report-download-btn:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    transform: translateX(2px);
}

.report-btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
}

.report-btn-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.report-btn-header i {
    font-size: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.report-btn-header strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.report-download-btn small {
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: 28px;
    line-height: 1.4;
}

.date-range-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-input-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-input-group .filter-input {
    width: 100%;
    margin: 0;
}

/* Identity Verification Tabs */
.identity-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
    flex-wrap: wrap;
}

.identity-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-bottom: -2px;
    position: relative;
}

.identity-tab:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.02);
}

.identity-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.identity-tab.active:hover {
    color: var(--primary-color);
}

/* Wallet Sub-tabs */
.wallet-subtab {
    display: block;
}

/* Sort By with Icons - Using arrow symbols */
.filter-select option {
    padding: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
}

/* Date Range Button Active State */
.date-range-btn.active {
    border-color: var(--primary-color);
    background-color: rgba(28, 28, 28, 0.02);
}

.date-range-btn.active .date-range-text {
    color: var(--primary-color);
    font-weight: 500;
}

/* Clear Filters Button in Filters Bar */
.filters-bar .btn-secondary {
    min-height: 44px;
    height: 44px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Filter Styling */
@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0;
    }
    
    .search-box {
        min-width: 100%;
        width: 100%;
    }
    
    .filter-select,
    .filter-input,
    .date-range-btn {
        width: 100%;
        min-width: 100%;
    }
    
    .filters-bar .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .date-range-dropdown {
        left: 0;
        right: 0;
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filters-bar {
        padding: 0;
        gap: 10px;
    }
    
    .search-box input,
    .filter-select,
    .filter-input {
        font-size: 13px;
        padding: 10px 14px 10px 38px;
        min-height: 40px;
        height: 40px;
    }
    
    .search-box i {
        left: 12px;
        font-size: 14px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    min-width: 40px;
    min-height: 40px;
    height: 40px;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-info {
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.pagination-info {
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-numbers {
    display: flex;
    gap: 4px;
    align-items: center;
}

.page-number {
    min-width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number:hover:not(.active) {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.page-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-ellipsis {
    padding: 0 4px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Pricing Page Styles */
.pricing-main-card {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.pricing-main-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pricing-input-container {
    max-width: 100%;
    margin: 0 auto;
}

.pricing-input-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pricing-label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.pricing-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--card-bg);
    border: none;
    border-radius: 16px;
    padding: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex: 1;
    min-width: 300px;
}

.pricing-input-wrapper:focus-within {
    box-shadow: 0 4px 16px rgba(28, 28, 28, 0.12);
    transform: translateY(-1px);
}

.pricing-currency-badge,
.pricing-unit-badge {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-color);
    border-radius: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}

.pricing-input {
    flex: 1;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    padding: 20px 16px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    min-width: 0;
}

.pricing-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.pricing-input::-webkit-inner-spin-button,
.pricing-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pricing-input[type=number] {
    -moz-appearance: textfield;
}


.pricing-update-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(28, 28, 28, 0.1);
    white-space: nowrap;
    height: fit-content;
    align-self: flex-end;
}

.pricing-update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(28, 28, 28, 0.2);
}

.pricing-info-card {
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.02), rgba(28, 28, 28, 0.01));
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pricing-info-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.pricing-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.1), rgba(28, 28, 28, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.pricing-info-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.pricing-info-content {
    flex: 1;
}

.pricing-info-title {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.pricing-info-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
}

.pricing-example-container {
    background: var(--card-bg);
    padding: 28px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pricing-example-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.pricing-example-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.pricing-example-grid {
    display: grid;
    gap: 16px;
}

.pricing-example-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-color);
    border-radius: 12px;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.pricing-example-item:hover {
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.03), rgba(28, 28, 28, 0.01));
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pricing-example-item.pricing-example-total {
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.08), rgba(28, 28, 28, 0.04));
    border: none;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(28, 28, 28, 0.15);
}

.pricing-example-label {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 15px;
}

.pricing-example-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 18px;
    letter-spacing: 0.5px;
}

.pricing-example-total .pricing-example-label {
    color: var(--text-primary);
    font-weight: 600;
}

.pricing-example-total-value {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 800;
}

/* Minimal Design Styles */
.minimal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
}

.minimal-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.minimal-icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    font-family: inherit;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
}

.minimal-icon-btn:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.minimal-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: none;
    transition: box-shadow 0.2s ease;
}

.minimal-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.minimal-card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.minimal-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.minimal-card-header[style*="display: flex"] h3 {
    margin: 0;
}

.minimal-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.minimal-form-group {
    margin-bottom: 28px;
}

.minimal-form-group:last-of-type {
    margin-bottom: 0;
}

.minimal-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.minimal-optional {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 13px;
}

.minimal-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.minimal-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    flex: 1;
    min-width: 280px;
    transition: box-shadow 0.2s ease;
}

.minimal-input-wrapper:focus-within {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.minimal-prefix,
.minimal-suffix {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-color);
    border-radius: 10px;
    white-space: nowrap;
}

.minimal-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 16px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    text-align: center;
    min-width: 0;
}

.minimal-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
    font-size: 18px;
}

.minimal-input[type="text"],
.minimal-input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: var(--bg-color);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    text-align: left;
}

.minimal-input[type="text"]:focus,
.minimal-input[type="password"]:focus {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    outline: none;
}

.minimal-hint {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.minimal-btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    min-height: 40px;
    height: 40px;
}

.minimal-btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.minimal-btn-primary:active {
    transform: translateY(0);
}

.minimal-btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    min-height: 40px;
    height: 40px;
}

.minimal-btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.minimal-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.minimal-example-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.minimal-example-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-color);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.minimal-example-item:hover {
    background: rgba(28, 28, 28, 0.02);
}

.minimal-example-item.minimal-example-total {
    background: rgba(28, 28, 28, 0.04);
    padding: 20px;
}

.minimal-example-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.minimal-example-item.minimal-example-total .minimal-example-label {
    font-weight: 600;
    color: var(--text-primary);
}

.minimal-example-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.minimal-example-item.minimal-example-total .minimal-example-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.minimal-info-card {
    background: rgba(28, 28, 28, 0.02);
}

.minimal-info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    letter-spacing: -0.3px;
}

.minimal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.minimal-list li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.minimal-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    font-weight: 600;
}

.minimal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.minimal-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Payment Settings Specific Styles */
.minimal-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.minimal-status-btn {
    background: var(--text-secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    pointer-events: none;
}

.minimal-status-btn.active {
    background: var(--primary-color);
    opacity: 1;
    pointer-events: auto;
}

.minimal-status-btn.active:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.minimal-status-btn:disabled {
    cursor: not-allowed;
}

.payment-settings-content {
    position: relative;
    min-height: 200px;
}

.payment-settings-view {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.payment-settings-view[style*="display: block"] {
    animation: fadeIn 0.3s ease;
}

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

.payment-status-list {
    display: flex;
    flex-direction: column;
}

.payment-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.payment-status-item:hover {
    background-color: transparent;
}

.payment-status-item-last {
    border-bottom: none;
}

.payment-status-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.payment-status-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.payment-status-code {
    background: var(--bg-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-weight: 500;
}

.payment-status-empty,
.payment-status-error {
    padding: 40px 20px;
    text-align: center;
}

.payment-status-empty p,
.payment-status-error p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.payment-status-error p {
    color: var(--danger-color);
}

/* Platform Fees Minimal Styles */
.minimal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.minimal-stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: none;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.minimal-stat-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.minimal-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.minimal-stat-icon-red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.08));
    color: #ef4444;
}

.minimal-stat-icon-orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.08));
    color: #f59e0b;
}

.minimal-stat-icon-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.08));
    color: #10b981;
}

.minimal-stat-icon-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.08));
    color: #3b82f6;
}

.minimal-stat-content {
    flex: 1;
    min-width: 0;
}

.minimal-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.minimal-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.minimal-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

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

.minimal-table thead {
    background: var(--bg-color);
}

.minimal-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.minimal-table td {
    padding: 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.minimal-table tbody tr {
    transition: background-color 0.2s ease;
}

.minimal-table tbody tr:hover {
    background-color: rgba(28, 28, 28, 0.02);
}

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

.minimal-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.minimal-select:hover {
    border-color: var(--primary-color);
}

.minimal-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.1);
}

.minimal-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.minimal-pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.minimal-pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.minimal-btn-secondary {
    background: var(--bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    height: 40px;
}

.minimal-btn-secondary:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.minimal-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.minimal-page-numbers {
    display: flex;
    gap: 4px;
}

.minimal-page-numbers button {
    min-width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.minimal-page-numbers button:hover:not(.active) {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.minimal-page-numbers button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================
   REUSABLE UTILITY CLASSES
   ============================================ */

/* Display Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }
.d-grid { display: grid !important; }

/* Position Utilities */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }

/* Flexbox Utilities */
.flex-wrap { flex-wrap: wrap !important; }
.flex-1 { flex: 1 !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-space-between { justify-content: space-between !important; }
.gap-8 { gap: 8px !important; }
.gap-12 { gap: 12px !important; }
.gap-16 { gap: 16px !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }

/* Grid Utilities */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-auto-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

/* Spacing Utilities */
.m-0 { margin: 0 !important; }
.mt-8 { margin-top: 8px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.p-0 { padding: 0 !important; }

/* Text Utilities */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-white { color: white !important; }
.text-black { color: #000000 !important; }
.font-weight-400 { font-weight: 400 !important; }
.font-weight-500 { font-weight: 500 !important; }
.font-weight-600 { font-weight: 600 !important; }
.font-weight-700 { font-weight: 700 !important; }
.font-size-12 { font-size: 12px !important; }
.font-size-13 { font-size: 13px !important; }
.font-size-14 { font-size: 14px !important; }
.font-size-15 { font-size: 15px !important; }
.font-size-17 { font-size: 17px !important; }
.font-size-18 { font-size: 18px !important; }
.font-size-20 { font-size: 20px !important; }
.font-size-24 { font-size: 24px !important; }
.font-size-28 { font-size: 28px !important; }
.line-height-1-4 { line-height: 1.4 !important; }
.line-height-56 { line-height: 56px !important; }
.white-space-nowrap { white-space: nowrap !important; }
.text-decoration-none { text-decoration: none !important; }

/* Width & Height Utilities */
.w-100 { width: 100% !important; }
.min-width-150 { min-width: 150px !important; }
.min-width-250 { min-width: 250px !important; }
.min-width-280 { min-width: 280px !important; }
.min-width-300 { min-width: 300px !important; }
.width-52 { width: 52px !important; }
.height-60 { height: 60px !important; }
.max-width-420 { max-width: 420px !important; }

/* Background & Border Utilities */
.bg-transparent { background: transparent !important; }
.bg-none { background: none !important; }
.bg-white { background: white !important; }
.bg-f9 { background: #f9f9f9 !important; }
.border-none { border: none !important; }
.border-radius-8 { border-radius: 8px !important; }
.border-radius-12 { border-radius: 12px !important; }
.border-radius-18 { border-radius: 18px !important; }
.outline-none { outline: none !important; }

/* Common Form Input Styles */
.form-input-base {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-input-base:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.1);
}

/* Custom Dropdown Styling - Clean Minimalistic Design */
.form-select-base,
.tickets-filter-select {
    position: relative;
    padding: 12px 40px 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 400;
    background: var(--card-bg);
    color: var(--text-primary);
    min-width: 160px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23656565' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    font-family: inherit;
}

.form-select-base:hover,
.tickets-filter-select:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background-color: rgba(0, 0, 0, 0.02);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23212121' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.form-select-base:focus,
.tickets-filter-select:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.3);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23212121' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.form-select-base:active,
.tickets-filter-select:active {
    border-color: rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.02);
}

/* Style options */
.form-select-base option,
.tickets-filter-select option {
    padding: 10px 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
}

.form-select-base option:hover,
.tickets-filter-select option:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Search Box Styles */
.search-box-base {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box-base i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 1;
}

.search-box-base input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 400;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
}

.search-box-base input:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.search-box-base input:focus {
    outline: none;
    background-color: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

/* Filter Controls Container */
.filter-controls {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Info Text */
.info-text {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Clear Filter Button */
.clear-filter-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.clear-filter-btn:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

/* 2FA Code Input Container */
.code-inputs-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

/* Code Box Input */
.code-box {
    width: 52px;
    height: 60px;
    border: 2px solid #d2d2d7;
    border-radius: 12px;
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    line-height: 56px;
    transition: all 0.15s ease;
    background: #f9f9f9;
    color: #1d1d1f;
    outline: none;
}

.code-box:focus {
    border-color: #000000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12);
    background: white;
}

.code-box.active {
    border-color: #000000;
    background: white;
}

/* 2FA Form Container */
.tfa-form-container {
    position: relative;
    background: none;
    border-radius: 18px;
    padding: 32px 28px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    margin: 0 auto;
}

.tfa-form-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #1d1d1f;
}

.tfa-form-subtitle {
    color: #6e6e73;
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 32px 0;
}

.tfa-resend-link {
    color: #000000;
    font-size: 15px;
    margin: 16px 0 32px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s;
}

.tfa-resend-link:hover {
    opacity: 0.7;
}

.tfa-button {
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
    background: #000000;
    color: white;
    min-height: 40px;
    height: auto;
}

.tfa-button:hover:not(:disabled) {
    background: #222222;
}

.tfa-button:disabled {
    background: #c7c7cc;
    cursor: not-allowed;
}

.tfa-error {
    margin-top: 16px;
    text-align: center;
    display: none;
    color: #d32f2f;
    font-size: 14px;
}

.tfa-error.show {
    display: block;
}

/* Button Variants */
.btn-base {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: none;
    min-height: 40px;
    height: 40px;
}

.btn-base:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Card with Relative Position */
.card-relative {
    position: relative;
}

/* Stats Grid with Margin */
.stats-grid-mb {
    margin-bottom: 24px;
}

/* Section Spacing */
.section-spacing {
    margin-top: 32px;
}

/* Recent Section Grid */
.recent-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

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

/* Financial Overview Cards */
.financial-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.financial-card-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.financial-card-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.financial-card-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
}

/* Transaction Header */
.transaction-header {
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.02), rgba(28, 28, 28, 0.01));
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.transaction-header-title i {
    font-size: 20px;
    color: var(--primary-color);
}

/* Settlement Section */
.settlement-section {
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.02), rgba(28, 28, 28, 0.01));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 32px;
    text-align: center;
}

.settlement-title {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.settlement-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 14px;
}

.settlement-button {
    min-width: 200px;
}

/* Payment Settings 2FA Container */
.payment-settings-2fa-container {
    max-width: 420px;
    margin: 60px auto;
    background: white;
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
}

/* Delivery Rate Display */
.delivery-rate-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    margin-bottom: 16px;
}

.delivery-rate-info {
    flex: 1;
}

.delivery-rate-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.delivery-rate-value-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-rate-currency {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.delivery-rate-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 120px;
    display: inline-block;
}

.delivery-rate-unit {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.delivery-rate-input-edit {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 4px 12px;
    min-width: 120px;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

.delivery-rate-input-edit:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(28, 28, 28, 0.1);
    background: var(--card-bg);
}

.delivery-rate-input-edit::-webkit-inner-spin-button,
.delivery-rate-input-edit::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.delivery-rate-input-edit[type=number] {
    -moz-appearance: textfield;
}

.delivery-rate-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Pagination Base */
.pagination-base {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Color Utilities */
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }

/* Card Container */
.card-container {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.card-container-padding {
    padding: 24px;
}

/* Payment Settings 2FA */
.payment-settings-2fa-wrapper {
    max-width: 420px;
    margin: 60px auto;
    background: white;
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
}

/* Mobile Styles for Login and 2FA Cards */
@media (max-width: 768px) {
    /* Login Container - Center on mobile */
    .login-container {
        height: 100vh !important;
        min-height: 100vh !important;
        align-items: center;
        justify-content: center;
        padding: 20px;
        display: flex !important;
    }
    
    /* Login Box - Resize and center on mobile */
    .login-box {
        max-width: 100%;
        width: 100%;
        padding: 32px 24px;
        margin: 0 auto;
        border-radius: 16px;
    }
    
    /* 2FA Form Container - Resize and center on mobile */
    .tfa-form-container {
        max-width: 100%;
        width: 100%;
        padding: 24px 20px;
        margin: 0 auto;
    }
    
    /* Payment Settings 2FA Wrapper - Resize and center on mobile */
    .payment-settings-2fa-wrapper {
        max-width: 100%;
        width: calc(100% - 40px);
        margin: 20px auto;
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    /* Ensure login header text is readable on mobile */
    .login-header p {
    font-size: 14px;
    }
    
    /* Adjust 2FA title size on mobile */
    .tfa-form-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    /* Adjust 2FA subtitle size on mobile */
    .tfa-form-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    /* Make code boxes smaller on mobile */
    .code-box {
        width: 40px !important;
        height: 48px !important;
        font-size: 22px !important;
        line-height: 44px !important;
        border-radius: 10px !important;
    }
    
    /* Reduce gap between code boxes on mobile */
    .code-inputs-container {
        gap: 8px !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    /* Login Box - Smaller padding on very small screens */
    .login-box {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    /* 2FA Form Container - Smaller padding on very small screens */
    .tfa-form-container {
        padding: 20px 16px;
    }
    
    /* Payment Settings 2FA Wrapper - Smaller padding on very small screens */
    .payment-settings-2fa-wrapper {
        width: calc(100% - 32px);
        margin: 16px auto;
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    /* Smaller logo on very small screens */
    .login-logo {
        max-width: 150px;
        margin-bottom: 16px;
    }
    
    /* Adjust 2FA title size on very small screens */
    .tfa-form-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    /* Adjust 2FA subtitle size on very small screens */
    .tfa-form-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    /* Make code boxes even smaller on very small screens */
    .code-box {
        width: 36px !important;
        height: 44px !important;
        font-size: 20px !important;
        line-height: 40px !important;
        border-radius: 8px !important;
    }
    
    /* Reduce gap between code boxes even more on very small screens */
    .code-inputs-container {
        gap: 6px !important;
        margin-bottom: 18px !important;
    }
}

/* Super Admin Specific Styles - Matching Admin Dashboard */
    .stats-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card-large {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.stat-card-large::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background-image: url('../img/Yonne Logo Arrows Green.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.stat-card-large:hover::before {
    opacity: 0.1;
}

.stat-icon-large {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.stat-icon-large.blue {
    background: linear-gradient(135deg, rgba(88, 129, 87, 0.12), rgba(88, 129, 87, 0.08));
    color: var(--primary-color);
}

.stat-icon-large.green {
    background: linear-gradient(135deg, rgba(88, 129, 87, 0.15), rgba(88, 129, 87, 0.1));
    color: var(--primary-color);
}

.stat-icon-large.orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.08));
    color: #f59e0b;
}

.stat-icon-large.purple {
    background: linear-gradient(135deg, rgba(88, 129, 87, 0.12), rgba(88, 129, 87, 0.08));
    color: var(--primary-dark);
}

.stat-info-large {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.stat-info-large h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.stat-info-large p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
}

.stat-info-large small {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
    display: block;
    opacity: 0.7;
    }

    .charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: none;
}

.chart-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.chart-card .card-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.chart-card .card-header > div:first-child {
    flex: 1;
}

.chart-card .card-header-actions {
    display: flex;
    gap: 8px;
}

.chart-card .view-toggle-btn {
    padding: 6px 12px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-card .view-toggle-btn:hover {
    background: #fff;
    border-color: #000;
    color: #000;
}

.chart-card .view-toggle-btn i {
    font-size: 14px;
}

.chart-card .collapse-chart-btn {
    padding: 6px 10px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.chart-card .collapse-chart-btn:hover {
    background: #fff;
    border-color: #000;
    color: #000;
}

.chart-card .collapse-chart-btn i {
    transition: transform 0.2s ease;
}

.chart-card.collapsed .collapse-chart-btn i {
    transform: rotate(-90deg);
}

.chart-card {
    transition: padding 0.3s ease;
}

.chart-card .chart-content {
    display: block;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
    max-height: 3000px;
    opacity: 1;
    margin-top: 0;
}

.chart-card.collapsed .chart-content {
    max-height: 0 !important;
    opacity: 0;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    display: block;
}

.chart-card.collapsed {
    padding-bottom: 24px;
}

.chart-card.collapsed .card-header {
    margin-bottom: 0;
}

.chart-card .chart-view {
    display: block;
}

.chart-card .data-view {
    display: none;
}

.chart-card .data-view.active {
    display: block;
}

.chart-card .chart-view.hidden {
    display: none;
}

.chart-card .data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.chart-card .data-table th,
.chart-card .data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.chart-card .data-table th {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    background: var(--bg-color);
}

.chart-card .data-table td {
    color: var(--text-secondary);
    font-size: 14px;
}

.chart-card .data-table tr:last-child td {
    border-bottom: none;
}

/* Dashboard Recent Items Styling */
.chart-card .card-body {
    padding: 0 24px 24px 24px;
}

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 8px;
    background: transparent;
}

.recent-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.recent-item:hover {
    background: var(--bg-color);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: transparent;
}

.recent-item-info {
    flex: 1;
    min-width: 0;
}

.recent-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.recent-item-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.recent-item-email,
.recent-item-phone,
.recent-item-date {
    color: var(--text-secondary);
    font-size: 13px;
}

.recent-item-meta {
    color: var(--text-secondary);
    opacity: 0.7;
    font-size: 13px;
}

.recent-item .status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.chart-card .card-body .empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.chart-card .card-header small {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

/* Custom Pie Chart Legend Styling */
.custom-legend {
    z-index: 10;
}

.custom-legend-item {
    min-height: 32px;
}

.custom-legend-indicator {
    border-radius: 30px !important;
}

/* Reports Grid Styling */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* Settings Grid Styling */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.settings-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 0;
}

/* Settings Item Styling */
.settings-item {
    margin-bottom: 24px;
}

.settings-item:last-child {
    margin-bottom: 0;
}

.settings-item-compact {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.settings-item-compact:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.settings-item-compact label {
    margin-bottom: 0;
    font-size: 13px;
    flex: 1;
}

.settings-item-compact .settings-input {
    max-width: 200px;
    padding: 8px 12px;
    font-size: 13px;
}

.settings-item-compact .toggle-switch {
    width: 44px;
    height: 24px;
}

.settings-item-horizontal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
}

.settings-item-horizontal label:first-child {
    margin-bottom: 0;
    line-height: 1.4;
}

.settings-item-horizontal .settings-input {
    margin-top: 0;
    height: 44px;
}

.settings-item-horizontal .toggle-switch {
    margin-top: 18px;
    margin-bottom: 0;
    height: 26px;
    align-self: flex-start;
}

.settings-item-horizontal label.toggle-switch {
    margin-top: 18px;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
}

.settings-item-horizontal label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.settings-item-horizontal .settings-input {
    max-width: 100%;
    padding: 10px 12px;
    font-size: 13px;
}

.settings-toggle-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-toggle-item label:first-child {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

/* Dashboard card padding fixes */
#recentAdmins .card-body,
#recentDrivers .card-body,
#systemActivity .card-body {
    padding: 16px 20px !important;
}

#recentAdmins .recent-item,
#recentDrivers .recent-item,
#systemActivity .recent-item {
    padding: 12px 0 !important;
}

.settings-item label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settings-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--card-bg);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.settings-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.1);
}

/* Toggle Switch Styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 26px;
    border: 2px solid transparent;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .slider {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:not(:checked) + .slider {
    background-color: #cbd5e1;
    border-color: #94a3b8;
}

.toggle-switch input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.1);
}

.toggle-switch:hover input:not(:disabled) + .slider {
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.1);
}

.toggle-switch input:checked:hover + .slider {
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.2);
}

/* Responsive adjustments for reports and settings */
@media (max-width: 768px) {
    .reports-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.chart-card canvas {
    max-height: 400px;
    min-height: 350px;
    width: 100% !important;
}

.chart-card .chart-view {
    min-height: 350px;
}

/* User Management Tabs */
.user-management-tab {
    display: none;
}

.user-management-tab.active {
    display: block;
}

.user-management-tab .chart-card {
    margin-bottom: 0;
}

/* Tab Content Animations */
.tab-content {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

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

.merchant-view-content {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.wallet-subtab {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Responsive styles for analytics */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    }

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .chart-card {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-header-actions {
        width: 100%;
    }
    
    .section-header-actions .filter-select {
        width: 100%;
    }
}

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

    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card-large {
        padding: 20px;
    }
}

/* Vendor Assist Chat Widget */
.vendor-assist-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.vendor-assist-toggle {
    min-width: 56px;
    height: 56px;
    border-radius: 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    box-shadow: 0 4px 12px rgba(88, 129, 87, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
    position: relative;
}

.vendor-assist-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(88, 129, 87, 0.4);
}

.vendor-assist-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.vendor-assist-welcome-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-10px);
}

.vendor-assist-toggle.show-welcome .vendor-assist-welcome-text {
    opacity: 1;
    width: auto;
    transform: translateX(0);
    margin-right: 0;
}

.vendor-assist-chat {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    height: 500px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vendor-assist-chat {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    height: 500px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.vendor-assist-widget.expanded .vendor-assist-chat {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vendor-assist-header {
    padding: 16px 20px;
    background: white;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.vendor-assist-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vendor-assist-header-content i {
    font-size: 20px;
}

.vendor-assist-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.vendor-assist-close {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.vendor-assist-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.vendor-assist-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vendor-assist-message {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: messageSlideIn 0.3s ease;
}

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

.vendor-assist-message.user {
    align-items: flex-end;
}

.vendor-assist-message.assistant {
    align-items: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.vendor-assist-message.user .message-content {
    background: var(--primary-color);
    color: white;
    border: none;
}

.message-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.vendor-assist-message.user .message-content p {
    color: white;
}

.message-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.message-action-btn {
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-action-btn:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

.message-action-btn i {
    font-size: 16px;
}

.vendor-assist-input-container {
    padding: 16px 20px;
    border-top: none;
    display: flex;
    gap: 12px;
    background: white;
}

.vendor-assist-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.vendor-assist-input:focus {
    border-color: var(--primary-color);
}

.vendor-assist-send {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.vendor-assist-send:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.vendor-assist-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vendor-assist-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 8px 0;
}

.vendor-assist-loading .spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* Scrollbar styling for messages */
.vendor-assist-messages::-webkit-scrollbar {
    width: 6px;
}

.vendor-assist-messages::-webkit-scrollbar-track {
    background: transparent;
}

.vendor-assist-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.vendor-assist-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ==================== TEAM USER MANAGEMENT ==================== */

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    background: var(--border-color);
    color: var(--text-primary);
}

.role-badge.role-finance {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.role-badge.role-operations {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.role-badge.role-analytics {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
}

.role-badge.role-support {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.role-badge.role-admin {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Status Badges */
.status-active {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-inactive {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Team Users Table Styling */
#teamUsersTable {
    width: 100%;
    border-collapse: collapse;
}

#teamUsersTable th {
    text-align: left;
    padding: 12px 16px;
    background: var(--card-bg);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#teamUsersTable td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
}

#teamUsersTable tbody tr:hover {
    background: rgba(88, 129, 87, 0.02);
}

#teamUsersTable .action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

#teamUsersTable .btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#teamUsersTable .btn-icon:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

#teamUsersTable .btn-icon.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}
