/* ===================================================
   MAHALK Dashboard - Main Stylesheet
   Colors: Purple #4527A0 | Orange #F57C20
   Font: Cairo (Arabic-first)
=================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    font-family: 'Cairo', sans-serif;
    background-color: #F5F5F7;
    color: #1A1A2E;
    direction: rtl;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

/* ---- App Bar ---- */
.mahalk-appbar {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E5E7EB !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    height: 64px !important;
}

.mahalk-search .mud-input-outlined .mud-input-outlined-border {
    border-radius: 10px;
}

.mahalk-admin-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 24px;
    cursor: pointer;
    background: rgba(69, 39, 160, 0.06);
    transition: background 0.2s;
}
.mahalk-admin-chip:hover { background: rgba(69, 39, 160, 0.12); }
.mahalk-admin-name {
    font-size: 13px;
    font-weight: 600;
    color: #1A1A2E;
}

/* ---- Sidebar Drawer ---- */
.mahalk-drawer .mud-drawer-content {
    background: linear-gradient(180deg, #4527A0 0%, #3120A0 50%, #2D1890 100%) !important;
    display: flex;
    flex-direction: column;
}

/* Logo */
.mahalk-logo-container {
    padding: 0 16px;
    height: 64px;
    min-height: 64px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.mahalk-logo-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mahalk-logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F57C20;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 124, 32, 0.4);
}
.mahalk-logo-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.mahalk-logo-ar {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}
.mahalk-logo-en {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Nav Menu: remove default MudBlazor top padding */
.mahalk-nav.mud-nav-menu,
.mahalk-nav {
    padding-top: 4px !important;
}

/* Nav Section Labels */
.mahalk-nav-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    padding: 12px 20px 4px;
    margin-top: 4px;
}

/* Nav Items */
.mahalk-nav .mud-nav-link {
    color: rgba(255,255,255,0.8) !important;
    border-radius: 10px !important;
    margin: 2px 8px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
}
.mahalk-nav .mud-nav-link:hover {
    background: rgba(255,255,255,0.12) !important;
    color: #FFFFFF !important;
}
.mahalk-nav .mud-nav-link.active,
.mahalk-nav .mud-nav-link[aria-current="page"] {
    background: rgba(255,255,255,0.18) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.mahalk-nav .mud-nav-link.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #F57C20;
    border-radius: 3px 0 0 3px;
}

/* Nav Groups */
.mahalk-nav .mud-nav-group .mud-nav-group-title {
    color: rgba(255,255,255,0.8) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}
.mahalk-nav .mud-nav-group .mud-nav-group-title:hover {
    background: rgba(255,255,255,0.1) !important;
    border-radius: 10px !important;
}
.mahalk-nav .mud-nav-group > .mud-nav-group-collapse .mud-nav-link {
    padding-right: 32px !important;
    font-size: 13px !important;
    color: rgba(255,255,255,0.65) !important;
}

/* Drawer Footer */
.mahalk-drawer-footer {
    margin-top: auto;
    padding: 12px;
}
.mahalk-version {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    padding: 8px 0;
    font-weight: 500;
}

/* ---- Main Content ---- */
.mahalk-main-content {
    background: #F5F5F7 !important;
}
.mahalk-page-container {
    padding: 24px;
    max-width: 1600px;
}

/* ---- Page Header ---- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
    direction: rtl;
}
/* Title block always on the right (RTL start) */
.page-header > div:first-child { flex: 1; min-width: 0; }
/* Actions always pushed to the left (RTL end) */
.page-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0;
}
.page-subtitle {
    font-size: 13px;
    color: #6B7280;
    margin: 4px 0 0;
}
.page-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ---- Dashboard Cards ---- */
.dashboard-card {
    background: #FFFFFF !important;
    border-radius: 14px !important;
    border: 1px solid #F0F0F5 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
    transition: box-shadow 0.2s;
}
.dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(69, 39, 160, 0.08) !important;
}

/* ---- KPI Cards ---- */
.kpi-card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #F0F0F5;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.kpi-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kpi-icon-primary { background: rgba(69, 39, 160, 0.12); color: #4527A0 !important; }
.kpi-icon-primary .mud-icon-root { color: #4527A0; }
.kpi-icon-orange { background: rgba(245, 124, 32, 0.12); }
.kpi-icon-orange .mud-icon-root { color: #F57C20; }
.kpi-icon-teal { background: rgba(16, 185, 129, 0.12); }
.kpi-icon-teal .mud-icon-root { color: #10B981; }
.kpi-icon-warning { background: rgba(245, 158, 11, 0.12); }
.kpi-icon-warning .mud-icon-root { color: #F59E0B; }
.kpi-icon-blue { background: rgba(59, 130, 246, 0.12); }
.kpi-icon-blue .mud-icon-root { color: #3B82F6; }
.kpi-icon-purple { background: rgba(124, 77, 255, 0.12); }
.kpi-icon-purple .mud-icon-root { color: #7C4DFF; }

.kpi-value {
    font-size: 20px;
    font-weight: 800;
    color: #1A1A2E;
    line-height: 1.2;
}
.kpi-label {
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}
.kpi-change {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
}
.kpi-up { color: #10B981; }
.kpi-neutral { color: #6B7280; }
.kpi-down { color: #EF4444; }

/* Card borders by type */
.kpi-primary { border-top: 3px solid #4527A0; }
.kpi-orange { border-top: 3px solid #F57C20; }
.kpi-teal { border-top: 3px solid #10B981; }
.kpi-warning { border-top: 3px solid #F59E0B; }
.kpi-blue { border-top: 3px solid #3B82F6; }
.kpi-purple-light { border-top: 3px solid #7C4DFF; }

/* ---- Chart Container ---- */
.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}
.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0;
}
.card-subtitle {
    font-size: 12px;
    color: #6B7280;
    margin: 4px 0 0;
}
.chart-container {
    width: 100%;
    overflow-x: auto;
}
.revenue-chart {
    width: 100%;
    height: 200px;
}

/* Donut Chart */
.donut-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.donut-legend {
    width: 100%;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #4B5563;
    margin-bottom: 6px;
    font-weight: 500;
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Recent Orders Table ---- */
.recent-orders-table .mud-table-head th {
    background: #F9FAFB !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #6B7280 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px !important;
}
.order-number {
    font-family: monospace;
    font-size: 12px;
    color: #4527A0;
    font-weight: 600;
    background: rgba(69,39,160,0.06);
    padding: 2px 8px;
    border-radius: 6px;
}
.order-amount {
    font-weight: 700;
    color: #1A1A2E;
}
.order-time {
    font-size: 12px;
    color: #9CA3AF;
}
.status-chip {
    font-size: 11px !important;
    font-weight: 600 !important;
    height: 24px !important;
    border-radius: 6px !important;
}

/* ---- Action Items ---- */
.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}
.action-title {
    font-size: 13px;
    font-weight: 600;
    color: #1A1A2E;
}
.action-sub {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 2px;
}
.action-warning .mud-icon-root { color: #F59E0B; }
.action-error .mud-icon-root { color: #EF4444; }
.action-info .mud-icon-root { color: #3B82F6; }

/* Top Providers */
.top-provider-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #F3F4F6;
}
.top-provider-item:last-child { border-bottom: none; }
.top-provider-name {
    font-size: 13px;
    font-weight: 600;
    color: #1A1A2E;
}
.top-provider-meta {
    font-size: 11px;
    color: #9CA3AF;
}
.top-provider-info { flex: 1; }

/* ---- Mini Stats ---- */
.mini-stat {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid #F0F0F5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.mini-stat-val {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}
.mini-stat-label {
    font-size: 12px;
    color: #6B7280;
    margin-top: 4px;
}
.mini-primary .mini-stat-val { color: #4527A0; }
.mini-success .mini-stat-val { color: #10B981; }
.mini-warning .mini-stat-val { color: #F59E0B; }
.mini-error .mini-stat-val { color: #EF4444; }
.mini-orange .mini-stat-val { color: #F57C20; }

/* ---- Management Tables ---- */
.management-table .mud-table-head th {
    background: #F9FAFB !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #6B7280 !important;
    border-bottom: 2px solid #E5E7EB !important;
    padding: 12px 16px !important;
}
.management-table .mud-table-row:hover {
    background: rgba(69, 39, 160, 0.03) !important;
}
.user-cell {
    display: flex;
    align-items: center;
}
.provider-cell {
    display: flex;
    align-items: center;
}
.provider-name {
    font-size: 13px;
    font-weight: 600;
    color: #1A1A2E;
}
.provider-phone {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 2px;
}
.amount-text {
    color: #4527A0;
    font-size: 14px;
}
.rating-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}
.payment-cell {
    display: flex;
    align-items: center;
    font-size: 13px;
}

/* ---- Order Tabs ---- */
.order-tabs .mud-tabs-tabbar {
    background: transparent !important;
    border-bottom: 2px solid #E5E7EB;
    padding: 0 16px;
}
.order-tabs .mud-tab {
    font-size: 13px !important;
    font-weight: 600 !important;
    min-width: auto !important;
    padding: 12px 16px !important;
}

/* ---- Banner Cards ---- */
.banner-card {
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid #F0F0F5 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
    transition: box-shadow 0.2s, transform 0.2s !important;
}
.banner-card:hover {
    box-shadow: 0 6px 20px rgba(69, 39, 160, 0.12) !important;
    transform: translateY(-2px);
}
.banner-preview {
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.banner-preview-title {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.banner-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
}
.banner-title-ar {
    font-size: 14px;
    font-weight: 700;
    color: #1A1A2E;
}
.banner-title-en {
    font-size: 12px;
    color: #9CA3AF;
}
.banner-dates {
    font-size: 11px;
    color: #9CA3AF;
}
.banner-add-card {
    border: 2px dashed #E5E7EB !important;
    background: rgba(69, 39, 160, 0.02) !important;
    transition: all 0.2s !important;
}
.banner-add-card:hover {
    border-color: #4527A0 !important;
    background: rgba(69, 39, 160, 0.05) !important;
}

/* ---- Login Page ---- */
.login-page {
    display: flex;
    min-height: 100vh;
    direction: rtl;
}
.login-branding {
    flex: 1;
    background: linear-gradient(135deg, #4527A0 0%, #2D1890 60%, #1A0F5C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}
.login-branding::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #F57C20;
    top: -100px;
    right: -100px;
    opacity: 0.9;
}
.login-branding::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(245, 124, 32, 0.3);
    bottom: -80px;
    left: -80px;
}
.login-branding-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
    max-width: 500px;
}
.login-brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}
.login-brand-ar {
    font-size: 52px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
}
.login-brand-en {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 4px;
}
.login-brand-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #F57C20;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(245, 124, 32, 0.5);
}
.login-brand-tagline {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}
.login-brand-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 32px;
}
.login-brand-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
}
.login-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: #FFFFFF;
}
.login-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    margin-top: 2px;
}

.login-form-panel {
    width: 460px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 100vh;
}
.login-form-container {
    width: 100%;
    max-width: 380px;
}
.login-form-header {
    text-align: center;
    margin-bottom: 32px;
}
.login-title {
    font-size: 26px;
    font-weight: 800;
    color: #1A1A2E;
    margin: 12px 0 4px;
}
.login-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}
.login-field .mud-input-root { font-size: 14px; }
.login-remember {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}
.login-btn {
    border-radius: 12px !important;
    height: 48px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #4527A0, #6B3FD0) !important;
    box-shadow: 0 4px 16px rgba(69, 39, 160, 0.35) !important;
    transition: all 0.2s !important;
}
.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(69, 39, 160, 0.45) !important;
}
.login-footer-note {
    text-align: center;
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* ---- Login Logo Icon ---- */
.login-logo-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #4527A0, #6B3FD0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(69,39,160,0.3);
    transition: all 0.3s ease;
}
.login-logo-icon.login-logo-error {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    box-shadow: 0 8px 24px rgba(239,68,68,0.35);
    animation: pulse-error 1s ease;
}

/* ---- Login Error Banner ---- */
.login-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FEF2F2;
    border: 1.5px solid #FCA5A5;
    border-right: 4px solid #EF4444;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    color: #DC2626;
    animation: slideDown 0.3s ease;
}
.login-error-icon-wrap {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(239,68,68,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.login-error-text { flex: 1; }
.login-error-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}
.login-error-msg {
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.5;
}

/* ---- Login Attempts Warning ---- */
.login-attempts-warn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #92400E;
}

/* ---- Animations ---- */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-error {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    10%,50%,90% { transform: translateX(-8px); }
    30%,70% { transform: translateX(8px); }
}

.shake { animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both; }

/* ===================================================
   MAHALK TOAST NOTIFICATIONS
=================================================== */
.mud-snackbar-container {
    z-index: 9999 !important;
    direction: rtl;
}

/* Base snackbar */
.mud-snackbar {
    border-radius: 14px !important;
    min-width: 340px !important;
    max-width: 420px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18) !important;
    font-family: 'Cairo', sans-serif !important;
    border: none !important;
    backdrop-filter: blur(8px);
}

/* Snackbar content (the part we control) */
.mud-snackbar .mud-snackbar-content {
    padding: 0 !important;
    font-family: 'Cairo', sans-serif !important;
}

/* Remove MudBlazor default icon on the snackbar itself */
.mud-snackbar .mud-snackbar-content-icon { display: none !important; }

/* Our custom toast body */
.mahalk-toast-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    direction: rtl;
}

.mahalk-toast-icon {
    font-size: 26px !important;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.95;
}

.mahalk-toast-text { flex: 1; }

.mahalk-toast-title {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 3px;
}

.mahalk-toast-msg {
    font-size: 12.5px;
    opacity: 0.88;
    line-height: 1.55;
    font-weight: 500;
}

/* ---- Success Toast ---- */
.mud-snackbar.mud-alert-filled-success {
    background: linear-gradient(135deg, #059669, #10B981) !important;
    color: #FFFFFF !important;
}
.mud-snackbar.mud-alert-filled-success::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 4px; height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 0;
}

/* ---- Error Toast ---- */
.mud-snackbar.mud-alert-filled-error {
    background: linear-gradient(135deg, #DC2626, #EF4444) !important;
    color: #FFFFFF !important;
}

/* ---- Warning Toast ---- */
.mud-snackbar.mud-alert-filled-warning {
    background: linear-gradient(135deg, #D97706, #F59E0B) !important;
    color: #FFFFFF !important;
}

/* ---- Info Toast ---- */
.mud-snackbar.mud-alert-filled-info {
    background: linear-gradient(135deg, #4527A0, #6B3FD0) !important;
    color: #FFFFFF !important;
}

/* Close button on toast */
.mud-snackbar .mud-snackbar-content-message > button {
    color: rgba(255,255,255,0.8) !important;
}
.mud-snackbar .mud-snackbar-content-message > button:hover {
    color: #FFFFFF !important;
    background: rgba(255,255,255,0.15) !important;
}

/* Progress bar on snackbar */
.mud-snackbar .mud-snackbar-progress {
    background: rgba(255,255,255,0.4) !important;
}

/* Entrance animation */
@keyframes toastSlide {
    from { opacity: 0; transform: translateY(-20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.mud-snackbar {
    animation: toastSlide 0.22s cubic-bezier(0.16,1,0.3,1) !important;
}

/* ---- Native Login Form Inputs ---- */
.login-native-field { display: flex; flex-direction: column; gap: 6px; }
.login-native-label { font-size: 13px; font-weight: 600; color: #4527A0; }
.login-native-input-wrap {
    display: flex; align-items: center; gap: 10px;
    border: 1.5px solid #D1C4E9; border-radius: 10px;
    padding: 10px 14px; background: #fff;
    transition: border-color 0.2s;
}
.login-native-input-wrap:focus-within { border-color: #4527A0; box-shadow: 0 0 0 3px rgba(69,39,160,0.1); }
.field-error .login-native-input-wrap { border-color: #EF4444; }
.field-error .login-native-input-wrap:focus-within { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.field-error .login-native-label { color: #EF4444; }
.login-native-icon { font-size: 20px; color: #7C3AED; user-select: none; }
.field-error .login-native-icon { color: #EF4444; }
.login-native-input {
    flex: 1; border: none; outline: none; background: transparent;
    font-family: 'Cairo', sans-serif; font-size: 14px; color: #1A1A2E; direction: rtl;
}
.login-native-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px 20px; border: none; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, #4527A0 0%, #7C3AED 100%);
    color: #fff; font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 700;
    transition: opacity 0.2s, transform 0.1s;
}
.login-native-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.login-native-btn:active { transform: translateY(0); }
.login-native-btn.btn-error { background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%); }
.login-native-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.login-native-btn .material-icons { font-size: 20px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .login-branding { display: none; }
    .login-form-panel { width: 100%; }
    .mahalk-page-container { padding: 16px; }
}
@media (max-width: 600px) {
    .page-header { flex-direction: column; align-items: flex-start; }
    .kpi-value { font-size: 18px; }
}

/* ---- MudBlazor RTL Overrides ---- */

/* Drawer width */
.mud-drawer { width: 260px !important; }
.mud-main-content { padding-top: 64px !important; }

/* Drawer RIGHT side - MudBlazor uses mud-drawer-right when Anchor=Right */
.mud-drawer-right-responsive {
    right: 0 !important;
    left: auto !important;
}

/* Main content: shift LEFT when right-drawer is open */
.mud-main-content.mud-main-content-right-open {
    margin-right: 260px !important;
    margin-left: 0 !important;
}

/* Drawer renders ON TOP of AppBar (higher z-index) so AppBar fills full width
   without visually bleeding into the purple sidebar area */
.mud-drawer-right,
.mahalk-drawer {
    z-index: 1400 !important;
}

/* RTL nav icon spacing */
.mud-nav-link .mud-nav-link-icon-wrapper {
    margin-right: 0 !important;
    margin-left: 10px !important;
}
.mud-nav-group-title .mud-nav-link-icon-wrapper {
    margin-right: 0 !important;
    margin-left: 10px !important;
}

/* Active nav indicator on LEFT side (toward content, not edge) */
.mahalk-nav .mud-nav-link.active {
    position: relative;
}
.mahalk-nav .mud-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    right: auto !important;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #F57C20;
    border-radius: 0 3px 3px 0;
}

/* Fonts everywhere */
.mud-nav-link, .mud-nav-group-title {
    font-family: 'Cairo', sans-serif !important;
}
.mud-table-cell { font-family: 'Cairo', sans-serif !important; }
.mud-button-label { font-family: 'Cairo', sans-serif !important; }
.mud-typography { font-family: 'Cairo', sans-serif !important; }
.mud-input { font-family: 'Cairo', sans-serif !important; }
.mud-chip-content { font-family: 'Cairo', sans-serif !important; }
.mud-select-input { font-family: 'Cairo', sans-serif !important; }
.mud-list-item-text { font-family: 'Cairo', sans-serif !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #F5F5F7; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4527A0; }

/* ===================================================
   NEW PAGES - Extended Component Styles
=================================================== */

/* ---- Driver Status Dots ---- */
.status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.dot-green { background: #10B981; box-shadow: 0 0 6px rgba(16,185,129,0.5); }
.dot-orange { background: #F59E0B; box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.dot-gray { background: #9CA3AF; }
.dot-red { background: #EF4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }

/* ---- Info Rows (Provider/Order Details) ---- */
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-label {
    font-weight: 600;
    color: #6B7280;
    min-width: 140px;
    flex-shrink: 0;
}

/* ---- Verification Section ---- */
.verify-section {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
.verify-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 10px;
}

/* ---- Working Hours Cards ---- */
.working-hour-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}
.wh-open { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); }
.wh-closed { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15); }
.wh-day { font-weight: 700; color: #1A1A2E; }
.wh-time { color: #6B7280; font-size: 12px; }

/* ---- Product Card Items ---- */
.product-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    margin-bottom: 10px;
    background: #FFFFFF;
    transition: box-shadow 0.2s;
}
.product-card-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.product-card-img {
    width: 56px; height: 56px;
    border-radius: 10px;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
}
.product-card-info { flex: 1; }
.product-card-name { font-weight: 600; font-size: 14px; color: #1A1A2E; }
.product-card-price { font-size: 13px; color: #6B7280; margin-top: 2px; }

/* ---- Delivery Map ---- */
.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #E5E7EB;
}
.map-container { position: relative; }
.map-placeholder {
    width: 100%;
    height: 520px;
    position: relative;
    overflow: hidden;
    background: #EEF2FF;
    border-radius: 0 0 12px 12px;
}
.map-bg {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 49px, #C7D2FE 50px),
        repeating-linear-gradient(90deg, transparent, transparent 49px, #C7D2FE 50px);
    opacity: 0.4;
}
.map-grid { position: absolute; inset: 0; }
.map-center-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 600;
    color: #4527A0;
    background: rgba(255,255,255,0.9);
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.map-driver-pin {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.map-driver-pin:hover { transform: scale(1.15); }
.map-driver-pin .pin-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    font-size: 18px;
    border: 2px solid white;
}
.pin-available .pin-icon { background: #10B981; }
.pin-busy .pin-icon { background: #F59E0B; }
.pin-label {
    font-size: 10px;
    font-weight: 700;
    color: #1A1A2E;
    background: white;
    padding: 2px 6px;
    border-radius: 6px;
    margin-top: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    white-space: nowrap;
}
.driver-status-indicator {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.ind-available { background: #10B981; }
.ind-busy { background: #F59E0B; }
.driver-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 13px;
}
.driver-list-item:last-child { border-bottom: none; }
.driver-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #F59E0B;
    font-weight: 700;
    font-size: 12px;
}

/* ---- Coupon Code ---- */
.coupon-code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    background: #EEF2FF;
    color: #4527A0;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
}

/* ---- Plan Cards ---- */
.plan-card {
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
    background: #FFFFFF;
    height: 100%;
}
.plan-card:hover { border-color: #4527A0; box-shadow: 0 8px 24px rgba(69,39,160,0.12); }
.plan-popular {
    border-color: #4527A0;
    box-shadow: 0 8px 24px rgba(69,39,160,0.15);
}
.plan-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%; transform: translateX(-50%);
    background: #F57C20;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.plan-icon-wrap {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.plan-name {
    font-size: 20px;
    font-weight: 800;
    color: #1A1A2E;
    margin-bottom: 4px;
}
.plan-price { margin: 16px 0; }
.plan-amount {
    font-size: 36px;
    font-weight: 800;
    color: #4527A0;
    line-height: 1;
}
.plan-features { text-align: right; margin: 20px 0; }
.plan-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #F3F4F6;
}
.plan-feature-item:last-child { border-bottom: none; }
.plan-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 12px 0 0;
    border-top: 1px solid #F3F4F6;
    margin-top: 12px;
}

/* ---- Store Type Cards ---- */
.store-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}
.store-type-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-type-info { flex: 1; width: 100%; }
.store-type-name {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 2px;
}
.store-type-name-en {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 6px;
}
.store-type-count {
    font-size: 12px;
    color: #9CA3AF;
}
.store-type-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

/* ---- Cities List ---- */
.city-list .mud-list-item { border-bottom: 1px solid #F3F4F6; }
.city-list .mud-list-item:last-child { border-bottom: none; }
.city-list .mud-list-item.mud-selected { background: rgba(69,39,160,0.06) !important; }

/* ---- Payment History ---- */
.payment-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 13px;
}
.payment-history-row:last-child { border-bottom: none; }

/* ---- Order Timeline ---- */
.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}
.timeline-step::before {
    content: '';
    position: absolute;
    right: 17px;
    top: 36px;
    width: 2px;
    height: calc(100% - 8px);
    background: #E5E7EB;
}
.timeline-step:last-child::before { display: none; }
.tl-dot {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}
.tl-done .tl-dot { background: rgba(16,185,129,0.15); }
.tl-pending .tl-dot { background: rgba(156,163,175,0.15); }
.tl-title {
    font-size: 13px;
    font-weight: 600;
    color: #1A1A2E;
}
.tl-done .tl-title { color: #1A1A2E; }
.tl-pending .tl-title { color: #9CA3AF; }
.tl-time {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 2px;
}

/* ---- Order Item Rows ---- */
.order-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #F3F4F6;
    gap: 8px;
}
.order-item-row:last-child { border-bottom: none; }
.order-item-qty {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: #EEF2FF;
    color: #4527A0;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.order-item-name { font-size: 14px; font-weight: 600; color: #1A1A2E; }
.order-item-notes { font-size: 11px; color: #9CA3AF; margin-top: 2px; }
.order-item-price { font-size: 14px; font-weight: 700; color: #4527A0; flex-shrink: 0; }
.price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: #374151;
}
.price-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 0;
    border-top: 2px solid #4527A0;
    font-size: 15px;
    font-weight: 800;
    color: #4527A0;
    margin-top: 6px;
}

/* ---- Pending Provider Cards ---- */
.pending-provider-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}
.pending-provider-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

/* ---- Provider Header ---- */
.provider-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #E5E7EB;
}
.provider-header-info { flex: 1; }
.provider-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6B7280;
    margin-top: 4px;
}
.provider-header-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

/* ---- Subscription Badge Cards ---- */
.sub-badge-card {
    text-align: center;
    padding: 20px 16px;
    border-radius: 12px;
}

/* ---- Reports Progress ---- */
.report-progress-item { margin-bottom: 12px; }

/* ---- Mini Stats (Subscriptions) ---- */
.mini-stat {
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid transparent;
}
.mini-stat-val {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}
.mini-stat-label {
    font-size: 12px;
    color: #6B7280;
    margin-top: 4px;
}
.mini-success { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.2); }
.mini-success .mini-stat-val { color: #10B981; }
.mini-warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); }
.mini-warning .mini-stat-val { color: #F59E0B; }
.mini-error { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); }
.mini-error .mini-stat-val { color: #EF4444; }
.mini-orange { background: rgba(245,124,32,0.08); border-color: rgba(245,124,32,0.2); }
.mini-orange .mini-stat-val { color: #F57C20; }
.mini-teal { background: rgba(6,182,212,0.08); border-color: rgba(6,182,212,0.2); }
.mini-teal .mini-stat-val { color: #06B6D4; }

/* ---- Empty State ---- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 200px;
    color: #9CA3AF;
    text-align: center;
}

/* ---- Category Icon Wrap ---- */
.cat-icon-wrap {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---- Mini Stat Primary ---- */
.mini-primary { background: rgba(69,39,160,0.08); border: 1px solid rgba(69,39,160,0.2); }
.mini-primary .mini-stat-val { color: #4527A0; }

/* ===================================================
   RTL FIXES - MudBlazor Component Alignment
=================================================== */

/* Page header: direction:rtl + space-between already puts title on right, actions on left */

/* Table header alignment RTL */
.mud-table-head .mud-table-cell,
.management-table .mud-table-cell {
    text-align: right !important;
    direction: rtl;
}

/* Table cell text alignment */
.mud-table-body .mud-table-cell {
    text-align: right !important;
}

/* MudTextField label RTL */
.mud-input-label { right: 0 !important; left: auto !important; transform-origin: top right !important; }
.mud-input-label-inputcontrol { right: 14px !important; left: auto !important; }
.mud-input-outlined .mud-input-outlined-border { padding-right: 12px !important; }

/* MudSelect icon position RTL */
.mud-select .mud-select-input .mud-input-adornment-end { margin-right: auto; margin-left: 0; }
.mud-input-adornment-end { left: 8px !important; right: auto !important; }
.mud-input-adornment-start { right: 8px !important; left: auto !important; }

/* Search field adornment */
.mahalk-search .mud-input-adornment-end { left: 8px !important; right: auto !important; }

/* MudChip RTL */
.mud-chip { direction: rtl; }

/* MudButton icon spacing RTL */
.mud-button .mud-button-icon-start { margin-right: 0 !important; margin-left: 8px !important; }
.mud-button .mud-button-icon-end { margin-left: 0 !important; margin-right: 8px !important; }

/* MudTabs alignment */
.mud-tabs .mud-tab { direction: rtl; }
.mud-tab-panel { direction: rtl; }

/* NavGroup arrow should be on left in RTL */
.mud-nav-group .mud-nav-link .mud-icon-root:last-child {
    margin-right: auto;
    margin-left: 0;
}

/* MudAlert RTL */
.mud-alert-message { text-align: right; }
.mud-alert { flex-direction: row-reverse; }
.mud-alert-icon { margin-right: 0; margin-left: 12px; }

/* MudMenu anchor position */
.mud-popover { direction: rtl; }

/* Pagination RTL */
.mud-table-pagination { direction: rtl; }
.mud-table-pagination .mud-table-pagination-actions { flex-direction: row-reverse; }

/* Dialog RTL */
.mud-dialog { direction: rtl; }
.mud-dialog-title { text-align: right; }
.mud-dialog-content { direction: rtl; }
.mud-dialog-actions { flex-direction: row-reverse; justify-content: flex-start !important; }

/* MudSwitch label RTL */
.mud-switch-label { flex-direction: row-reverse; gap: 8px; }

/* MudTooltip */
.mud-tooltip { direction: rtl; }

/* Rating cell */
.rating-cell { display: flex; align-items: center; gap: 4px; direction: rtl; }

/* KPI change indicator */
.kpi-up, .kpi-down { direction: ltr; display: inline-block; }

/* Drawer close button in RTL */
.mud-drawer .mud-drawer-content { direction: rtl; }

/* AppBar actions spacing */
.mud-appbar .mud-toolbar { direction: rtl; }

/* Fix MudList selected item indicator */
.mud-list-item.mud-list-item-selected::before {
    right: 0; left: auto;
    border-radius: 0 4px 4px 0;
}

/* ===================================================
   RECONNECT OVERLAY
=================================================== */
#components-reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(26,26,46,0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    direction: rtl;
}
#components-reconnect-modal.components-reconnect-show { display: flex; }
#components-reconnect-modal.components-reconnect-failed { display: flex; }
#components-reconnect-modal.components-reconnect-rejected { display: flex; }

.mahalk-reconnect-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 36px 48px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    min-width: 360px;
    animation: toastSlide 0.3s ease;
}
.mahalk-reconnect-spinner {
    width: 44px; height: 44px;
    border: 4px solid #EEF2FF;
    border-top-color: #4527A0;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mahalk-reconnect-body { }
.mahalk-reconnect-title {
    font-size: 17px;
    font-weight: 800;
    color: #1A1A2E;
    margin-bottom: 4px;
}
.mahalk-reconnect-msg {
    font-size: 13px;
    color: #6B7280;
}

.mahalk-reconnect-failed-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 36px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    min-width: 360px;
    text-align: center;
}
.mahalk-reconnect-retry {
    background: linear-gradient(135deg, #4527A0, #6B3FD0);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}
.mahalk-reconnect-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(69,39,160,0.35);
}

/* Auth checking state */
.mahalk-auth-checking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 100vh;
    font-size: 16px;
    font-weight: 600;
    color: #6B7280;
    direction: rtl;
}

/* ===================================================
   DOCUMENT CARDS (Provider Pending)
=================================================== */
.pending-header { background: #FAFAFA; border-radius: 12px 12px 0 0; }

.doc-card {
    border-radius: 14px;
    border: 1.5px solid #E5E7EB;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s;
    background: #FFFFFF;
}
.doc-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.doc-approved { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.03); }
.doc-rejected { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.03); }
.doc-pending  { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.03); }

.doc-card-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.doc-approved .doc-card-icon { background: rgba(16,185,129,0.1); color: #10B981; }
.doc-rejected .doc-card-icon { background: rgba(239,68,68,0.1); color: #EF4444; }
.doc-pending  .doc-card-icon { background: rgba(245,158,11,0.1); color: #F59E0B; }

.doc-card-info { flex: 1; }
.doc-card-name { font-weight: 700; font-size: 14px; color: #1A1A2E; margin-bottom: 3px; }
.doc-card-meta { font-size: 11px; color: #9CA3AF; }
.doc-card-status { margin-top: 6px; }
.doc-card-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    border-top: 1px solid #F3F4F6;
    padding-top: 8px;
}

.doc-summary {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: #F9FAFB;
    border-radius: 12px;
}
.doc-summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}
.doc-sum-approved { color: #10B981; }
.doc-sum-pending  { color: #F59E0B; }
.doc-sum-rejected { color: #EF4444; }

.doc-preview-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    background: #F9FAFB;
    border-radius: 12px;
    text-align: center;
}
