:root {
    /* ==================== PRESTIGE INSTITUTIONAL PALETTE (EXECUTIVE WARM PAPER) ==================== */
    /* Serene, calm, authoritative corporate theme matching executive banking dashboards */
    --bg-main: #fbfaf8;          /* Warm executive paper tone */
    --bg-surface: #ffffff;       /* Pure crisp white for surfaces */
    --bg-card: #ffffff;          /* Pure crisp white for cards */
    --bg-card-hover: #faf9f6;
    --app-container-bg: #fbfaf8;
    --header-bg: #fbfaf8;
    --user-strip-bg: #f8f7f4;
    --input-bg: #ffffff;
    --input-focus-bg: #ffffff;
    --bottom-nav-bg: #ffffff;
    --modal-bg: #ffffff;
    
    /* Fine hairline neutral borders */
    --border-color: #e8e5df;
    --border-color-subtle: #f0eee9;
    --border-color-strong: #dcd8cf;
    
    /* Dignified institutional typography */
    --text-primary: #111827;     /* Slate-obsidian */
    --text-secondary: #4b5563;   /* Balanced neutral gray */
    --text-muted: #8d8b85;       /* Muted calm gray */
    
    /* Corporate Obsidian primary & accents */
    --primary: #111827;          /* Solid obsidian for primary actions & active pills */
    --primary-hover: #1f2937;
    --primary-dark: #030712;
    --primary-glow: rgba(17, 24, 39, 0.08);
    --primary-text: #ffffff;
    --accent: #1f2937;
    --accent-glow: rgba(17, 24, 39, 0.05);
    --corporate-gold: #b45309;
    
    /* Functional Statuses (Muted, refined institutional tones) */
    --accent-success: #059669;   /* Emerald green (Confirmed Reconciled Capital) */
    --accent-warning: #d97706;   /* Warm amber (Pending Settlement Matching) */
    --accent-danger: #e11d48;    /* Crimson / Rose (Debits / Unmatched) */
    
    /* Metrics & Clean Geometry */
    --radius-xl: 10px;
    --radius-lg: 8px;
    --radius-md: 6px;
    --radius-sm: 5px;
    --font-ar: 'IBM Plex Sans Arabic', 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
    --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.05);
    --radial-1: transparent;
    --radial-2: transparent;
}

/* Light Theme Alias (Explicit) */
body.theme-light {
    --bg-main: #fbfaf8;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #faf9f6;
    --app-container-bg: #fbfaf8;
    --header-bg: #fbfaf8;
    --user-strip-bg: #f8f7f4;
    --input-bg: #ffffff;
    --input-focus-bg: #ffffff;
    --bottom-nav-bg: #ffffff;
    --modal-bg: #ffffff;
    --border-color: #e8e5df;
    --border-color-subtle: #f0eee9;
    --border-color-strong: #dcd8cf;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #8d8b85;
    --primary: #111827;
    --primary-hover: #1f2937;
    --primary-dark: #030712;
    --primary-glow: rgba(17, 24, 39, 0.08);
    --primary-text: #ffffff;
    --accent: #1f2937;
    --accent-glow: rgba(17, 24, 39, 0.05);
    --corporate-gold: #b45309;
    --accent-success: #059669;
    --accent-warning: #d97706;
    --accent-danger: #e11d48;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
    --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Dark Theme Support (Sleek Obsidian Navy) */
body.theme-dark {
    --bg-main: #0b1120;
    --bg-surface: #111827;
    --bg-card: #151f33;
    --bg-card-hover: #1c2942;
    --app-container-bg: #0b1120;
    --header-bg: #0e172a;
    --user-strip-bg: #111827;
    --input-bg: #0e172a;
    --input-focus-bg: #151f33;
    --bottom-nav-bg: #0e172a;
    --modal-bg: #151f33;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-subtle: rgba(255, 255, 255, 0.05);
    --border-color-strong: rgba(255, 255, 255, 0.2);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --primary: #38bdf8;
    --primary-hover: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-glow: rgba(56, 189, 248, 0.2);
    --primary-text: #0b1120;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.15);
    --corporate-gold: #f59e0b;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.55);
}

/* Tabular figures for financial precision across the entire platform */
body, input, select, button, table {
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.15s ease;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-ar);
    font-size: 0.88rem;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    background-image: none;
}

.hidden {
    display: none !important;
}

/* Custom Dropdown Chevron for all select tags */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 32px !important;
    cursor: pointer;
}

/* ==================== AUTH / LOGIN VIEW ==================== */
.auth-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 36px 20px;
    margin: auto 0;
}

.auth-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: #111827;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 22px;
    text-align: center;
}

.auth-brand-logo-frame {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    padding: 4px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-brand-logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.auth-corp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--primary);
    font-size: 0.73rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.75rem;
    font-family: var(--font-en);
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.auth-header p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: 14px;
    font-size: 0.95rem;
    color: var(--text-muted);
    pointer-events: none;
}

.input-wrapper input,
.form-group input {
    width: 100%;
    padding: 11px 14px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-ar);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s ease;
}

.input-wrapper input {
    padding-right: 42px;
}

.input-wrapper input:focus,
.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--input-focus-bg);
}

.btn-toggle-pass {
    position: absolute;
    left: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 4px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-ar);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.alert-box {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.alert-box.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-danger);
}

/* ==================== EXECUTIVE APP CONTAINER & HEADER ==================== */
.app-container {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--app-container-bg);
    position: relative;
    padding-bottom: 24px;
    transition: margin-right 0.28s cubic-bezier(0.16, 1, 0.3, 1), width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-container.has-pinned-sidebar {
    margin-right: 270px;
    width: calc(100% - 270px);
}

/* Top App Bar */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 16px;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Menu Toggle Button */
.btn-menu-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color-strong);
    color: var(--text-primary);
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-ar);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.btn-menu-header .menu-icon-bars {
    font-size: 1.1rem;
    line-height: 1;
}

.btn-menu-header:hover,
.btn-menu-header.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

/* Brand Lockup */
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-logo-frame {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    padding: 2px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-frame .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.brand-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.brand-name-ar {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.brand-name-en {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-en);
    color: var(--text-secondary);
    letter-spacing: 0.6px;
}

.brand-tagline {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
}

.brand-tag-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* Center Status Indicator */
.header-center-group {
    display: flex;
    align-items: center;
    justify-content: center;
}

.system-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.status-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Header Left Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 6px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.user-pill-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-pill-info {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.15;
}

.user-pill-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-primary);
}

.user-pill-role {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.btn-icon-header {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.btn-icon-header:hover {
    background: #f8f7f4;
    border-color: #111827;
    color: #111827;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-ar);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.btn-logout:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* ==================== EXECUTIVE HOME DASHBOARD STYLES ==================== */
.executive-home-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 4px;
}

/* Executive Hero Card */
.executive-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.executive-hero-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.hero-left-col {
    flex: 1;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-brand-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.hero-taqa-badge {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 3px 12px;
    border-radius: 20px;
}

.hero-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #10b981;
    font-weight: 600;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulseDot 2s infinite;
}

.hero-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.hero-quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-ar);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-ar);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color-strong);
    transform: translateY(-2px);
}

.hero-right-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    flex-shrink: 0;
}

.hero-logo-frame {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.hero-system-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-system-meta .meta-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.hero-system-meta .meta-val {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-en);
}

.hero-system-meta .meta-sub {
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 600;
}

/* Executive Live KPI Strip */
.executive-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.executive-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.executive-kpi-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--card-shadow-hover);
}

.kpi-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.kpi-icon-wrap.banks {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--primary);
}

.kpi-icon-wrap.deposits {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
}

.kpi-icon-wrap.stations {
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: var(--accent);
}

.kpi-icon-wrap.partners {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #f59e0b;
}

.kpi-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.kpi-value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.kpi-main-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-en);
    line-height: 1.1;
}

.kpi-unit {
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.kpi-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border-color-subtle);
}

.kpi-sub {
    font-size: 0.73rem;
    color: var(--text-muted);
    font-weight: 600;
}

.kpi-link {
    font-size: 0.74rem;
    color: var(--primary);
    font-weight: 700;
}

/* Executive Modules Grid */
.executive-modules-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modules-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modules-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.modules-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all 0.22s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--card-shadow-hover);
    background: var(--bg-card-hover);
}

.module-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.module-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.module-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.module-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.module-badge-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.mod-pill {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.mod-pill.highlight {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
    color: #10b981;
}

.module-action-arrow {
    font-size: 1.15rem;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
    align-self: center;
}

.module-card:hover .module-action-arrow {
    color: var(--primary);
    transform: translateX(-4px);
}

/* Main Area */
.app-main {
    padding: 16px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.view-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.22s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quick Access Card */
.quick-access-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: var(--card-shadow);
}

.quick-access-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.quick-access-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-icon {
    font-size: 1.8rem;
}

.quick-access-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.quick-access-info p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.arrow-indicator {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.native-hidden-file-input {
    position: fixed;
    top: -9999px;
    left: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.btn-action-primary {
    background: #111827;
    color: #ffffff;
    border: 1px solid #111827;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-ar);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    user-select: none;
    text-decoration: none;
    transition: all 0.18s ease;
}

.btn-action-primary:hover {
    background: #1f2937;
    border-color: #1f2937;
}

/* Executive Secondary Action & Export Buttons */
.btn-slice-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #dcdad5;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-ar);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.btn-slice-action:hover {
    background: #f8f7f4;
    color: #111827;
    border-color: #111827;
}

/* Bank Position Summary Grid */
.bank-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 1400px) {
    .report-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .report-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .report-summary-grid {
        grid-template-columns: 1fr;
    }
}

.summary-card {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.18s ease;
    position: relative;
    min-width: 0;
}

.summary-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.summary-card.total {
    border-right: 4px solid #10b981;
}

.summary-card.count {
    border-right: 4px solid #059669;
}

.summary-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.summary-value {
    font-size: clamp(1.02rem, 1.22vw, 1.25rem);
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-en);
    line-height: 1.2;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    width: 100%;
    text-align: center;
    direction: ltr;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.4px;
    white-space: nowrap;
}

.summary-value .currency {
    font-size: 0.72rem;
    font-family: var(--font-ar);
    color: var(--text-muted);
    font-weight: 700;
    direction: rtl;
}

/* Banks List */
.banks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bank-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
}

.bank-item-card:hover {
    border-color: var(--primary);
}

.bank-item-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bank-item-info span {
    font-size: 0.75rem;
    font-family: var(--font-en);
    color: var(--text-muted);
}

.bank-item-balance {
    text-align: left;
}

.bank-balance-amount {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-en);
}

.bank-balance-unit {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-family: var(--font-ar);
    margin-right: 4px;
}

.native-hidden-file-input {
    position: fixed;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Upload Status Box */
.upload-status-box {
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    animation: fadeIn 0.2s ease;
}

.upload-status-box.loading {
    background: rgba(37, 99, 235, 0.12);
    border-color: var(--primary);
    color: var(--primary);
}

.upload-status-box.success {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #10b981;
}

.upload-status-box.warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: #f59e0b;
    color: #f59e0b;
}

.upload-status-box.error {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
    color: #ef4444;
}

.statements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

/* Excel Drag & Drop Zone (Compact Accountant Style) */
.excel-drop-zone {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.drop-zone-overlay-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto !important;
}

.excel-drop-zone:hover,
.excel-drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 0 12px var(--primary-glow);
}

.drop-zone-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.drop-icon {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.drop-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
}

.drop-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* ==================== ACCOUNTING EXCEL TABLE ==================== */
.excel-table-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-top: 8px;
}

.excel-table-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #fbfaf8;
    border-bottom: 1px solid var(--border-color);
}

.excel-table-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.excel-table-badge {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #4b5563;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: var(--font-en);
}

.excel-scrollable-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.excel-accounting-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    text-align: right;
    min-width: 640px;
}

.excel-accounting-table th {
    background: #fbfaf8;
    color: #4b5563;
    font-weight: 700;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color-subtle);
    font-size: 0.74rem;
    white-space: nowrap;
    user-select: none;
}

.excel-accounting-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color-subtle);
    border-left: 1px solid var(--border-color-subtle);
    vertical-align: middle;
    color: var(--text-primary);
    white-space: nowrap;
    background: #ffffff;
}

.excel-accounting-table tbody tr:nth-child(even) td {
    background: #fcfbf9;
}

.excel-accounting-table tbody tr:hover td {
    background: #f5f4f0;
}

.table-bank-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-bank-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 4px;
    padding: 2px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.table-bank-name {
    font-weight: 700;
    color: var(--text-primary);
}

.table-date-cell {
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 600;
    direction: ltr;
    text-align: center;
    color: var(--text-primary);
}

.table-tx-cell {
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent);
    text-align: center;
}

.btn-table-del {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-danger);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-table-del:hover {
    background: var(--accent-danger);
    color: #ffffff;
}

/* Station Brand Badges & Location Link */
.station-brand-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-en);
    letter-spacing: 0.3px;
}
.brand-mastergas {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.35);
    color: var(--primary);
}
.brand-chillout {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid #f59e0b;
    color: #f59e0b;
}
.brand-taqa {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #10b981;
}
.brand-other {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid #94a3b8;
    color: #94a3b8;
}

.btn-station-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 4px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-station-location:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.table-summary-row td {
    background: var(--user-strip-bg);
    font-weight: 700;
    border-top: 2px solid var(--border-color);
    font-size: 0.78rem;
}

/* Statement Card (Bank, Logo, Period) */
.statement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.25s ease;
}

.statement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.bank-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bank-logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bank-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bank-identity-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bank-title-lg {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.bank-sub-title {
    font-size: 0.76rem;
    color: var(--primary);
    font-weight: 600;
}

.btn-delete-statement {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-danger);
    font-family: var(--font-ar);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-delete-statement:hover {
    background: var(--accent-danger);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Statement Period Box (Date Only) */
.statement-period-box {
    background: var(--user-strip-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.period-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.period-label {
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.period-date {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-en);
    direction: ltr;
    text-align: right;
}

.period-arrow {
    font-size: 1.3rem;
    color: var(--primary);
    padding: 0 4px;
}

/* Statement Footer Meta */
.statement-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.file-info-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-en);
    background: rgba(125, 125, 125, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transactions-count-chip strong {
    color: var(--accent);
    font-family: var(--font-en);
    margin: 0 3px;
}

.empty-state {
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.empty-icon {
    font-size: 2.2rem;
    opacity: 0.8;
}

.empty-state p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.empty-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Settings Card */
.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--card-shadow);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.settings-row:last-child {
    border-bottom: none;
}

.value-highlight {
    font-weight: 700;
    color: var(--primary);
}

.btn-theme-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--user-strip-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-ar);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-theme-switch:hover {
    border-color: var(--primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 999999;
    overflow-y: auto;
}

.modal-content, .modal-card {
    background: var(--modal-bg, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    width: 100%;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    padding: 22px 24px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
    overflow: hidden;
}

body.theme-dark .modal-content, 
body.theme-dark .modal-card {
    background: #111827;
    border-color: #374151;
    color: #f9fafb;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.btn-secondary {
    background: rgba(125, 125, 125, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-ar);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

/* Card */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--card-shadow);
}



/* ==================== EXECUTIVE SIDEBAR NAVIGATION (AUTO-HIDING DOCK) ==================== */
/* ==================== EXECUTIVE SIDEBAR NAVIGATION ==================== */
.sidebar-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 270px;
    height: 100vh;
    background: #fcfbf9;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 99999;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.04);
    padding: 14px 12px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease;
}

/* Slide in on hover or when pinned */
.sidebar-nav:hover,
.sidebar-nav.hover-active,
.sidebar-nav.pinned {
    transform: translateX(0);
}

/* Pin Toggle Button inside Sidebar */
.btn-pin-sidebar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.btn-pin-sidebar:hover {
    color: #111827;
    border-color: #111827;
}

.btn-pin-sidebar.pinned {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.sidebar-brand-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: var(--font-en);
    letter-spacing: 0.5px;
}

.sidebar-brand-sub {
    font-size: 0.68rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.sidebar-category-header {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #9ca3af;
    text-transform: uppercase;
    padding: 12px 8px 4px;
    margin-top: 4px;
    font-family: var(--font-ar);
}

.sidebar-nav .nav-item {
    background: transparent;
    border: 1px solid transparent;
    outline: none;
    color: #4b5563;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ar);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    width: 100%;
    text-align: right;
    transition: all 0.16s ease;
    white-space: normal;
    line-height: 1.35;
    position: relative;
}

.sidebar-nav .nav-item .nav-icon {
    font-size: 1.15rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    flex-shrink: 0;
}

.sidebar-nav .nav-item .nav-label {
    flex: 1;
}

.sidebar-nav .nav-item:hover {
    color: #111827;
    background: #f4f2ed;
}

.sidebar-nav .nav-item.active {
    color: #111827;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #dcdad5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Sidebar Accordion Submenu */
.nav-item-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-expand-icon {
    font-size: 0.72rem;
    color: var(--text-muted);
    transition: transform 0.22s ease;
    margin-right: auto;
    pointer-events: none;
    user-select: none;
}

.nav-item-group.expanded .nav-expand-icon {
    transform: rotate(180deg);
}

.sidebar-submenu {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-right: 14px;
    margin: 2px 0 4px 0;
    border-right: 2px solid #e8e5df;
}

.nav-item-group.expanded .sidebar-submenu {
    display: flex;
    animation: fadeInSubmenu 0.18s ease;
}

@keyframes fadeInSubmenu {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: var(--font-ar);
    cursor: pointer;
    text-align: right;
    transition: all 0.15s ease;
    width: 100%;
}

.submenu-item:hover {
    color: #111827;
    background: #f4f2ed;
}

.submenu-item.active {
    color: #111827 !important;
    background: #ffffff !important;
    border-color: #dcdad5 !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.submenu-icon {
    font-size: 0.95rem;
    line-height: 1;
}

/* Sidebar Footer Profile (matching screenshot) */
.sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px;
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.sidebar-user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #111827;
}

.sidebar-user-role {
    font-size: 0.68rem;
    color: #8d8b85;
}

.sidebar-signout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #dcdad5;
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-family: var(--font-ar);
    font-size: 0.78rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.16s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.sidebar-signout-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* Full Width Main App Layout */
.app-container {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh;
    transition: margin-right 0.28s ease, width 0.28s ease;
}

.app-container.has-pinned-sidebar {
    margin-right: 270px !important;
    width: calc(100% - 270px) !important;
}

.app-main {
    padding-bottom: 40px !important;
    width: 100%;
}

/* Executive Segment Control Bar */
.segment-control-bar {
    display: flex;
    gap: 4px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.segment-btn {
    flex: 1;
    min-width: 140px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: #4b5563;
    font-family: var(--font-ar);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.16s ease;
    white-space: nowrap;
}

.segment-btn .seg-icon {
    font-size: 1.05rem;
}

.segment-btn:hover {
    color: #111827;
    background: #f8f7f4;
}

.segment-btn.active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Desktop / Laptop Full Page Expansion */
@media (min-width: 768px) {
    body {
        align-items: stretch;
        padding: 0;
    }
    
    .app-header {
        padding: 14px 32px;
    }
    
    .user-strip {
        padding: 10px 32px;
    }
    
    .app-main {
        padding: 18px 32px 40px;
    }
}

/* Natural Gas Stations Slice */
.slice-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.slice-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slice-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(0, 180, 166, 0.12);
    border: 1px solid rgba(0, 180, 166, 0.3);
    color: #0fa5a5;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slice-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.slice-desc {
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.slice-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.slice-buttons-grid.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
    .slice-buttons-grid.three-cols {
        grid-template-columns: 1fr;
    }
}

.btn-slice {
    background: var(--user-strip-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-ar);
    transition: all 0.2s ease;
}

.btn-slice:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
    transform: translateY(-1px);
}

.btn-slice-icon {
    font-size: 1.2rem;
}

.btn-slice-text {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-back-home {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-ar);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.btn-back-home:hover {
    background: #f8f7f4;
    color: #111827;
    border-color: #111827;
}

.empty-data-card {
    padding: 36px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.empty-data-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.empty-data-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 320px;
}

/* ==================== PAGINATION CONTROLS STYLING ==================== */
/* Wrapper for page indicator and jump input */
.page-jump-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--input-bg, #ffffff);
    padding: 3px 10px;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Page Jump Input (No black background, matches theme) */
.page-jump-input,
input[id$="-page-jump"] {
    width: 44px !important;
    height: 28px !important;
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    border-radius: 4px !important;
    border: 1px solid var(--border-color, #cbd5e1) !important;
    background: var(--input-bg, #ffffff) !important;
    color: var(--text-primary, #0f172a) !important;
    font-family: var(--font-en, inherit) !important;
    padding: 0 4px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.page-jump-input:focus,
input[id$="-page-jump"]:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary-glow) !important;
}

/* Remove up/down spinners on number input */
.page-jump-input::-webkit-outer-spin-button,
.page-jump-input::-webkit-inner-spin-button,
input[id$="-page-jump"]::-webkit-outer-spin-button,
input[id$="-page-jump"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Compact Prev / Next Arrow-Only Buttons */
.pagination-arrow-btn,
button[id$="-prev"],
button[id$="-next"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 28px !important;
    padding: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    border-radius: var(--radius-sm, 6px) !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    background: var(--input-bg, #ffffff) !important;
    color: var(--text-primary, #0f172a) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
}

.pagination-arrow-btn:hover:not(:disabled),
button[id$="-prev"]:hover:not(:disabled),
button[id$="-next"]:hover:not(:disabled) {
    background: var(--primary-glow) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.pagination-arrow-btn:disabled,
button[id$="-prev"]:disabled,
button[id$="-next"]:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

/* ==================== RECEIPT IMAGE PREVIEW MODAL ==================== */
/* ==================== RECEIPT IMAGE PREVIEW FLOATING WINDOW ==================== */
.receipt-modal-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 100000;
}

.receipt-modal-container {
    pointer-events: auto;
    position: fixed;
    top: 70px;
    left: 20px;
    width: 420px;
    height: 530px;
    min-width: 300px;
    min-height: 320px;
    max-width: 95vw;
    max-height: 92vh;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    resize: both;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
    animation: popInReceipt 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popInReceipt {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.receipt-modal-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
}

.receipt-modal-header.is-window-dragging {
    cursor: grabbing !important;
}

.receipt-modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    cursor: grab;
}

.receipt-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    cursor: grab;
}

.receipt-drag-handle {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.15s ease;
    cursor: grab;
}

.receipt-modal-header:hover .receipt-drag-handle {
    color: #0284c7;
}

.receipt-modal-icon {
    font-size: 1rem;
}

.receipt-modal-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    font-family: var(--font-ar, 'Cairo', sans-serif);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.receipt-modal-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.receipt-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 3px 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    user-select: none;
    font-family: inherit;
}

.receipt-tool-btn:hover {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #0284c7;
}

.receipt-zoom-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 2px 5px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0284c7;
    font-family: var(--font-en, monospace);
    font-size: 0.72rem;
    font-weight: 700;
}

.receipt-close-btn {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 8px;
}

.receipt-close-btn:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

.receipt-modal-body {
    flex: 1;
    position: relative;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.receipt-img-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    background: #ffffff;
    padding: 0;
    margin: 0;
}

.receipt-img-viewport.is-dragging {
    cursor: grabbing;
}

#receipt-modal-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.08s ease-out;
    border: none;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    margin: 0;
    padding: 0;
    pointer-events: none;
    display: block;
}

.receipt-modal-loading,
.receipt-modal-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.8rem;
    z-index: 10;
    background: #ffffff;
}

.receipt-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(2, 132, 199, 0.2);
    border-top-color: #0284c7;
    border-radius: 50%;
    animation: spinReceipt 0.8s linear infinite;
}

@keyframes spinReceipt {
    to { transform: rotate(360deg); }
}

.btn-preview-receipt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: 4px;
    color: var(--primary, #0284c7);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.btn-preview-receipt:hover,
.btn-preview-receipt.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Active row highlight during comparison */
tr.receipt-active-row {
    background: rgba(2, 132, 199, 0.09) !important;
    outline: 2px solid #38bdf8 !important;
    outline-offset: -2px;
}

/* ==================== BANK RECONCILIATION BADGES & FILTERS ==================== */
.badge-reconciled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.2;
}

.badge-reconciled.matched {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-reconciled.pending {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.deposits-filter-group {
    display: inline-flex;
    gap: 4px;
    background: var(--input-bg, #ffffff);
    padding: 3px;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid var(--border-color, #cbd5e1);
}

.btn-deposit-filter {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary, #475569);
    font-family: var(--font-ar, sans-serif);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-deposit-filter:hover {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.2);
}

.btn-deposit-filter.active,
.btn-deposit-filter.active * {
    color: #ffffff !important;
}

.btn-deposit-filter.active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
}

.btn-deposit-filter.active span {
    background: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    display: inline-block;
}

/* ==================== SOURCE SELECTION SLIDE DRAWER ==================== */
/* ==================== SOURCE SELECTION & BANK MATCH SLIDE DRAWER ==================== */
.slide-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.18); /* Gentle, transparent executive background */
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 100000;
    display: flex;
    justify-content: flex-start; /* Anchors to the right in RTL */
    transition: opacity 0.2s ease;
}

.slide-drawer-overlay.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.slide-drawer {
    width: 580px;
    max-width: 96vw;
    height: 100vh;
    background: var(--modal-bg, #ffffff);
    border-left: 1px solid var(--border-color);
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Guarantees no contents ever spill outside drawer */
    animation: slideInDrawerRtl 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

tr.matching-active-row {
    background: rgba(2, 132, 199, 0.08) !important;
    outline: 2px solid rgba(2, 132, 199, 0.5) !important;
    outline-offset: -2px;
}

@keyframes slideInDrawerRtl {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.slide-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    background: var(--user-strip-bg);
    flex-shrink: 0;
}

.slide-drawer-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.slide-drawer-sub {
    font-size: 0.78rem;
    color: var(--primary);
    margin: 3px 0 0;
    font-weight: 700;
    font-family: var(--font-en), var(--font-ar);
}

.slide-drawer-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
}

.slide-drawer-close:hover {
    color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Search Bar */
.slide-drawer-search {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
    flex-shrink: 0;
}

.slide-drawer-search input {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.82rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: var(--font-ar);
    outline: none;
    transition: all 0.2s;
}

.slide-drawer-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--input-focus-bg);
}

/* ==================== DRAWER TABS (CLEAN 2x2 EXECUTIVE GRID) ==================== */
.slide-drawer-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 8px 14px;
    background: var(--user-strip-bg);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
}

.slide-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-ar);
    transition: all 0.18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    min-width: 0;
}

.slide-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(2, 132, 199, 0.04);
}

.slide-tab-btn.active {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
    box-shadow: 0 2px 6px var(--primary-glow);
}

.slide-tab-btn span {
    font-family: var(--font-en);
    background: rgba(125, 125, 125, 0.12);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 800;
}

.slide-tab-btn.active span {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==================== BANK FILTER CHIPS ==================== */
.bank-filter-chips-bar {
    display: flex;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
    flex-shrink: 0;
}

.bank-filter-chips-bar::-webkit-scrollbar {
    height: 4px;
}
.bank-filter-chips-bar::-webkit-scrollbar-track {
    background: transparent;
}
.bank-filter-chips-bar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 4px;
}

.bank-chip {
    padding: 4px 10px;
    font-size: 0.73rem;
    font-weight: 700;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
    font-family: var(--font-ar);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.bank-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.bank-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px var(--primary-glow);
}

/* ==================== TARGET DEPOSIT BANNER ==================== */
.bank-match-banner {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.06) 0%, rgba(16, 185, 129, 0.04) 100%);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.bank-match-banner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.bank-match-banner-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.bank-match-banner-sap {
    font-family: var(--font-en);
    background: rgba(2, 132, 199, 0.12);
    color: var(--primary);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

.bank-match-banner-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.76rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.bank-match-banner-amt {
    font-size: 1.15rem;
    font-weight: 800;
    color: #059669;
    font-family: var(--font-en);
}

/* ==================== DRAWER LIST & CARDS ==================== */
.slide-drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
}

.slide-drawer-list::-webkit-scrollbar {
    width: 6px;
}
.slide-drawer-list::-webkit-scrollbar-track {
    background: transparent;
}
.slide-drawer-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 4px;
}

.slide-bank-tx-card,
.slide-post-tx-card {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: right;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.slide-bank-tx-card:hover,
.slide-post-tx-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.slide-post-tx-card {
    border-right: 4px solid #10b981;
}

.slide-bank-tx-card.fawry-card {
    border-right: 4px solid #f59e0b;
}

.slide-bank-tx-card.statement-card {
    border-right: 4px solid #0284c7;
}

.slide-bank-tx-card.exact-match,
.slide-post-tx-card.exact-match {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.slide-bank-tx-card.is-current-bound,
.slide-post-tx-card.is-current-bound {
    border-color: #0284c7;
    background: rgba(2, 132, 199, 0.06);
}

.slide-bank-tx-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.slide-bank-tx-badge {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary);
    white-space: nowrap;
}

.slide-bank-tx-date {
    font-family: var(--font-en);
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.slide-bank-tx-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.slide-bank-tx-amt {
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--font-en);
    color: #059669;
}

.slide-bank-tx-diff {
    font-size: 0.74rem;
    font-family: var(--font-en);
    font-weight: 700;
}

.slide-bank-tx-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-word;
    background: var(--input-bg);
    padding: 6px 10px;
    border-radius: 6px;
    border-right: 2px solid var(--border-color);
}

.slide-bank-tx-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.btn-bind-bank-tx {
    padding: 6px 14px;
    font-size: 0.76rem;
    font-weight: 700;
    font-family: var(--font-ar);
    border-radius: 6px;
    background: #059669;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.btn-bind-bank-tx:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.badge-exact-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.slide-drawer-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--user-strip-bg);
    flex-shrink: 0;
}

/* ==================== DEPOSITS FILTER SEGMENT CONTROLS ==================== */
.deposits-filter-group {
    display: flex;
    gap: 4px;
    background: var(--user-strip-bg);
    padding: 3px 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.btn-deposit-filter {
    padding: 6px 12px;
    font-size: 0.77rem;
    font-weight: 700;
    font-family: var(--font-ar);
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-deposit-filter:hover {
    background: rgba(125, 125, 125, 0.08);
    color: var(--text-primary);
}

.btn-deposit-filter.active,
.btn-deposit-filter.active * {
    color: #ffffff !important;
}

.btn-deposit-filter.active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.btn-deposit-filter span {
    font-family: var(--font-en);
    background: rgba(125, 125, 125, 0.12);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-block;
    transition: all 0.15s ease;
}

.btn-deposit-filter.active span {
    background: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Rejection System Styles */
.rejection-reason-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.74rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: right;
    font-family: var(--font-ar);
    width: 100%;
    display: block;
}

.rejection-reason-chip:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.45);
    color: #ef4444;
}

.rejection-reason-chip.selected {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
    font-weight: 700;
}

.btn-reject-dep {
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 7px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-ar);
}

.btn-reject-dep:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: translateY(-1px);
}

.btn-unreject-dep {
    border: 1px solid rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: var(--font-ar);
}

.btn-unreject-dep:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
}

.row-deposit-rejected {
    background: rgba(239, 68, 68, 0.04) !important;
}

.row-deposit-rejected:hover {
    background: rgba(239, 68, 68, 0.08) !important;
}


/* ==================== SOURCE SELECTION DRAWER STYLES ==================== */
.slide-source-banner {
    background: rgba(2, 132, 199, 0.06);
    border-bottom: 1px solid rgba(2, 132, 199, 0.2);
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.slide-source-banner-amount {
    font-size: 1.05rem;
    font-weight: 800;
    color: #10b981;
    font-family: var(--font-en);
}

.slide-source-banner-bank {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-primary);
}

.slide-source-banner-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.35;
    background: var(--input-bg);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px dashed var(--border-color);
}

.slide-source-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-ar);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: right;
    width: 100%;
    box-sizing: border-box;
}

.slide-source-item:hover {
    border-color: #0284c7;
    background: rgba(2, 132, 199, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.slide-source-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(125, 125, 125, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.slide-source-info {
    flex: 1;
    min-width: 0;
}

.slide-source-name {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-source-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.slide-source-sap {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 0.7rem;
}

.slide-source-choose-btn {
    font-size: 0.74rem;
    color: #ffffff !important;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    font-weight: 700;
    border-radius: 6px;
    padding: 5px 12px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.slide-source-item:hover .slide-source-choose-btn {
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4);
    transform: scale(1.03);
}

/* ==================== GAS PRICING & TARIFFS ENGINE ==================== */
.active-tariff-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(56, 189, 248, 0.06) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--card-shadow);
}

.active-tariff-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.14);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 8px;
    width: fit-content;
}

.active-tariff-badge .pulse-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseTariff 1.8s infinite;
}

@keyframes pulseTariff {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.active-tariff-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
}

.active-tariff-info {
    flex: 1;
    min-width: 260px;
}

.active-tariff-title {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.active-tariff-sub {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.active-tariff-price-box {
    text-align: center;
    background: var(--bg-surface);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    flex-shrink: 0;
}

.active-tariff-price-label {
    display: block;
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
}

.active-tariff-price-val {
    font-family: var(--font-en);
    font-size: 1.55rem;
    font-weight: 800;
    color: #10b981;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.active-tariff-unit {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-weight: 600;
    font-family: var(--font-ar);
}

.tariff-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.tariff-status-pill.active {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.tariff-status-pill.expired {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

