/* Centralized color variables for Mowazaf
    Note: Values here are defaults. They will be overridden at runtime
    by setCSSColorVariables() based on the company's primary color. */
:root {
    /* Primary Colors */
    --mowazaf-primary: #304EA1; /* Cobalt blue */
    --mowazaf-primary-dark: #243A78; /* Darker shade of cobalt blue */
    --mowazaf-primary-light: #4A5A8A; /* Lighter shade of cobalt blue */
    
    /* Accent Colors */
    --mowazaf-accent: #4ADDCB; /* Turquoise */
    --mowazaf-accent-dark: #17675c; /* Darker shade of turquoise */
    --mowazaf-accent-light: #7FEFE4; /* Lighter shade of turquoise */
    
    /* Background Colors */
    --mowazaf-bg-light: #F5F8FC; /* Cloud white */
    --mowazaf-bg-secondary: #F6EFEA; /* Linen */
    --mowazaf-bg-white: #ffffff;
    
    /* Text Colors */
    --mowazaf-text-dark: #243A78; /* Darker shade of cobalt blue for text */
    --mowazaf-text-light: #4A5A8A; /* Muted cobalt blue for lighter text */
    --mowazaf-text-muted: #666666; /* Muted gray for secondary text */
    
    /* Utility Colors */
    --mowazaf-border-light: rgba(255, 255, 255, 0.1);
    --mowazaf-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    --mowazaf-shadow-soft: 0 10px 40px -15px rgba(48, 78, 161, 0.25);
    
    /* Gradients */
    --mowazaf-gradient-primary: linear-gradient(135deg, #304EA1 0%, #4ADDCB 100%);
    --mowazaf-gradient-accent: linear-gradient(135deg, #4ADDCB 0%, #115850 100%);
    
    /* Legacy Support */
    --color-primary: #304EA1; /* Keep this for backward compatibility */
}

/* Auth Styles - Centralized styles matching backend auth UI */

:root {
    /* Mirror centralized variables with fallbacks */
    --primary: var(--mowazaf-primary, #304EA1);
    --primary-dark: var(--mowazaf-primary-dark, #243A78);
    --accent: var(--mowazaf-accent, #4ADDCB);
    --accent-dark: var(--mowazaf-accent-dark, #17675c);
    --accent-light: var(--mowazaf-accent-light, #7FEFE4);
    --secondary: var(--mowazaf-bg-secondary, #F6EFEA);
    --bg-light: var(--mowazaf-bg-light, #F5F8FC);
    --text-dark: var(--mowazaf-text-dark, #243A78);
    --text-light: var(--mowazaf-text-light, #4A5A8A);
    --white: #ffffff;
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow: var(--mowazaf-shadow, 0 10px 30px -5px rgba(0, 0, 0, 0.3));
    --shadow-soft: var(--mowazaf-shadow-soft, 0 10px 40px -15px rgba(48, 78, 161, 0.25));
    --gradient: var(--mowazaf-gradient-primary, linear-gradient(135deg, #304EA1 0%, #4ADDCB 100%));
    --gradient-accent: var(--mowazaf-gradient-accent, linear-gradient(135deg, #4ADDCB 0%, #115850 100%));
    --blur-bg: rgba(255, 255, 255, 0.8);
}

/* Auth page container */
.auth-container {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    background-image:
        radial-gradient(circle at 20% 25%, #123aa7af 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #4addcca1 0%, transparent 50%);
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

/* Main auth card */
.auth-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow);
    display: flex;
    position: relative;
    border: 1px solid var(--border-light);
    margin: 20px;
    padding: 4px;
}

.auth-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-accent);
    z-index: -1;
    border-radius: 26px;
    filter: blur(14px);
    opacity: 0.4;
}

/* Auth form section */
.auth-form-section {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */
.auth-logo {
    width: 140px;
    height: auto;
    margin-bottom: 25px;
    animation: float 6s ease-in-out infinite;
}

/* Headings */
.auth-title {
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    width: 100%;
}

.auth-subtitle {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
    width: 100%;
}

/* Buttons */
.auth-btn {
    background: var(--gradient-accent) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    min-width: 200px !important;
}

.auth-btn::after {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    transform: rotate(45deg) !important;
    transition: all 0.3s ease !important;
}

.auth-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.5) !important;
}

.auth-btn:hover::after {
    left: 100% !important;
    transition: all 0.7s ease !important;
}

.auth-btn-secondary {
    background: transparent;
    color: var(--accent-dark);
    border: 1px solid var(--accent-dark);
    margin-top: 10px;
}

.auth-btn-secondary:hover {
    background-color: rgba(79, 70, 229, 0.05);
    box-shadow: none;
}

/* Form groups */
.auth-form-group {
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.auth-form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.auth-form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
    box-sizing: border-box;
}

.auth-form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive design */
@media (min-width: 768px) {
    .auth-card {
        max-width: 500px;
    }
    
    .auth-form-section {
        padding: 50px 40px;
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .auth-logo {
        max-width: 220px;
    }
}

@media (min-width: 992px) {
    .auth-card {
        max-width: 550px;
    }
}

@media (max-width: 400px) {
    .auth-form-section {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 22px;
    }
}

/* Override FluentUI styles to match our design */
.auth-card .fui-Card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.auth-card .fui-CardHeader {
    padding: 0;
}

.auth-card .fui-Button {
    background: var(--gradient-accent);
    border: none;
    color: var(--white);
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.auth-card .fui-Button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.5);
}

/* Converted from index.scss (no Sass features remaining) */
/* @import "./pages/general-details.css"; (removed – merged into utilities) */

html {
  height: 1px;
  min-height: 100%;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
}

body {
  height: 100%;
  width: 100%;
  margin: 0;
}

#root { width: 100%; }

a { text-decoration: none; display: block; }

.el-menu { border-radius: 0; }
.el-menu--horizontal > .el-menu-item.dock-right { float: right; }

.circle { display: inline-block; border-radius: 50%; min-width: 20px; min-height: 20px; padding: 1rem; text-align: center; line-height: 1; box-sizing: content-box; white-space: nowrap; }
.circle:before { content: ""; display: inline-block; vertical-align: middle; background-color: red; padding-top: 100%; height: 0; }
.circle > * { display: inline-block; vertical-align: middle; }

.middle { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* Removed unused generated order utility loops (col-order-*) */

@media only screen and (max-width: 600px) { .el-dialog { width: 80%; } }

.ui-tooltip__content { position: absolute; left: -100%; top: 0; }
.ui-dialog { width: 500px !important; max-width: 80%; }

/* Design Tokens (Phase 1) - Central source of truth.
   NOTE: Dynamic brand colors still provided at runtime by setCSSColorVariables().
   Only define stable non-brand semantic tokens here. Brand tokens (primary, accent, etc.)
   are initialized in colors.css and then mutated by runtime script.
*/
:root {
  /* Status / semantic colors (stable) */
  --color-status-success: #86b271; /* success / active */
  --color-status-error: #B90E0A;   /* error / danger */
  --color-status-warning: #EE9322; /* warning / attention */
  --color-status-info: #187bcd;    /* informational */
  --color-status-neutral: #BED1DF; /* neutral / pending */

  /* Surfaces & borders */
  --color-surface: #ffffff;
  --color-surface-alt: #f8f9fa;
  --color-surface-muted: #F5F8FC; /* matches bg-light */
  --color-border: rgba(48,78,161,0.15);
  --color-border-subtle: rgba(48,78,161,0.08);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(48,78,161,0.10);
  --shadow-lg: 0 8px 24px rgba(48,78,161,0.16);
  --shadow-focus: 0 0 0 3px rgba(74,221,203,0.5);

  /* Spacing scale (4px baseline) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Typography */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-md: 18px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-base: 1.5;

  /* Tailwind theme color variables (fallbacks) */
  --color-background: #ffffff;
  --color-foreground: #1f2937; /* gray-800 */
  --color-input: var(--color-border); /* matches border token so inputs always show a visible edge */
  --color-ring: #2563eb; /* blue-600 */
  --color-primary: #2563eb; /* blue-600 */
  --color-primary-foreground: #ffffff;
  --color-secondary: #7c3aed; /* violet-600 */
  --color-secondary-foreground: #ffffff;
  --color-destructive: #dc2626; /* red-600 */
  --color-destructive-foreground: #ffffff;
  --color-muted: #f5f8fc; /* light surface */
  --color-muted-foreground: #6b7280; /* gray-500 */
  --color-accent: #f59e0b; /* amber-500 */
  --color-accent-foreground: #1f2937; /* gray-800 */
  --color-popover: #ffffff;
  --color-popover-foreground: #1f2937;
  --color-card: #ffffff;
  --color-card-foreground: #1f2937;
  --color-success: #10b981; /* emerald-500 */
  --color-success-foreground: #ffffff;
  --color-warning: #f59e0b; /* amber-500 */
  --color-warning-foreground: #1f2937;
  --color-error: #dc2626; /* red-600 */
  --color-error-foreground: #ffffff;
}

/* Design Tokens (Phase 1) - Central source of truth.
   NOTE: Dynamic brand colors still provided at runtime by setCSSColorVariables().
   Only define stable non-brand semantic tokens here. Brand tokens (primary, accent, etc.)
   are initialized in colors.css and then mutated by runtime script.
*/
:root {
  /* Status / semantic colors (stable) */
  --color-status-success: #86b271; /* success / active */
  --color-status-error: #B90E0A;   /* error / danger */
  --color-status-warning: #EE9322; /* warning / attention */
  --color-status-info: #187bcd;    /* informational */
  --color-status-neutral: #BED1DF; /* neutral / pending */

  /* Surfaces & borders */
  --color-surface: #ffffff;
  --color-surface-alt: #f8f9fa;
  --color-surface-muted: #F5F8FC; /* matches bg-light */
  --color-border: rgba(48,78,161,0.15);
  --color-border-subtle: rgba(48,78,161,0.08);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(48,78,161,0.10);
  --shadow-lg: 0 8px 24px rgba(48,78,161,0.16);
  --shadow-focus: 0 0 0 3px rgba(74,221,203,0.5);

  /* Spacing scale (4px baseline) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Typography */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-md: 18px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-base: 1.5;

  /* Tailwind theme color variables (fallbacks) */
  --color-background: #ffffff;
  --color-foreground: #1f2937; /* gray-800 */
  --color-input: var(--color-border); /* matches border token so inputs always show a visible edge */
  --color-ring: #2563eb; /* blue-600 */
  --color-primary: #2563eb; /* blue-600 */
  --color-primary-foreground: #ffffff;
  --color-secondary: #7c3aed; /* violet-600 */
  --color-secondary-foreground: #ffffff;
  --color-destructive: #dc2626; /* red-600 */
  --color-destructive-foreground: #ffffff;
  --color-muted: #f5f8fc; /* light surface */
  --color-muted-foreground: #6b7280; /* gray-500 */
  --color-accent: #f59e0b; /* amber-500 */
  --color-accent-foreground: #1f2937; /* gray-800 */
  --color-popover: #ffffff;
  --color-popover-foreground: #1f2937;
  --color-card: #ffffff;
  --color-card-foreground: #1f2937;
  --color-success: #10b981; /* emerald-500 */
  --color-success-foreground: #ffffff;
  --color-warning: #f59e0b; /* amber-500 */
  --color-warning-foreground: #1f2937;
  --color-error: #dc2626; /* red-600 */
  --color-error-foreground: #ffffff;
}

/* Utilities (Phase 1). Intent: consolidate repeated inline styles.
   Focus on layout, spacing, display, text & status badges.
   NOTE: Keep naming consistent with existing general.css utilities; duplicates will be rationalized in Phase 2.
*/

/* Display & Flex */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
/* NOTE: .flex-row and .flex-col removed - use Tailwind's responsive variants (e.g., md:flex-row) */
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.grow { flex: 1 1 auto; }
.shrink-0 { flex-shrink: 0; }
.gap-0 { gap: 0; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-7 { gap: var(--space-7); }
.gap-8 { gap: var(--space-8); }

/* Spacing - margin (m, mt, mb, ml, mr, mx, my) */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-7 { margin: var(--space-7); }
.m-8 { margin: var(--space-8); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }
.ml-1 { margin-left: var(--space-1); }
.ml-2 { margin-left: var(--space-2); }
.ml-3 { margin-left: var(--space-3); }
.ml-4 { margin-left: var(--space-4); }
.ml-5 { margin-left: var(--space-5); }
.mr-1 { margin-right: var(--space-1); }
.mr-2 { margin-right: var(--space-2); }
.mr-3 { margin-right: var(--space-3); }
.mr-4 { margin-right: var(--space-4); }
.mr-5 { margin-right: var(--space-5); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing - logical (RTL/LTR safe) */
.ms-1 { margin-inline-start: var(--space-1); }
.ms-2 { margin-inline-start: var(--space-2); }
.ms-3 { margin-inline-start: var(--space-3); }
.ms-4 { margin-inline-start: var(--space-4); }
.ms-5 { margin-inline-start: var(--space-5); }
.me-1 { margin-inline-end: var(--space-1); }
.me-2 { margin-inline-end: var(--space-2); }
.me-3 { margin-inline-end: var(--space-3); }
.me-4 { margin-inline-end: var(--space-4); }
.me-5 { margin-inline-end: var(--space-5); }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-7 { padding: var(--space-7); }
.p-8 { padding: var(--space-8); }

.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-5 { padding-top: var(--space-5); }
.pt-6 { padding-top: var(--space-6); }

.pb-1 { padding-bottom: var(--space-1); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-5 { padding-bottom: var(--space-5); }
.pb-6 { padding-bottom: var(--space-6); }

.pl-1 { padding-left: var(--space-1); }
.pl-2 { padding-left: var(--space-2); }
.pl-3 { padding-left: var(--space-3); }
.pl-4 { padding-left: var(--space-4); }
.pl-5 { padding-left: var(--space-5); }
.pl-6 { padding-left: var(--space-6); }

.pr-1 { padding-right: var(--space-1); }
.pr-2 { padding-right: var(--space-2); }
.pr-3 { padding-right: var(--space-3); }
.pr-4 { padding-right: var(--space-4); }
.pr-5 { padding-right: var(--space-5); }
.pr-6 { padding-right: var(--space-6); }

/* Padding - logical (RTL/LTR safe) */
.ps-1 { padding-inline-start: var(--space-1); }
.ps-2 { padding-inline-start: var(--space-2); }
.ps-3 { padding-inline-start: var(--space-3); }
.ps-4 { padding-inline-start: var(--space-4); }
.ps-5 { padding-inline-start: var(--space-5); }
.ps-6 { padding-inline-start: var(--space-6); }
.pe-1 { padding-inline-end: var(--space-1); }
.pe-2 { padding-inline-end: var(--space-2); }
.pe-3 { padding-inline-end: var(--space-3); }
.pe-4 { padding-inline-end: var(--space-4); }
.pe-5 { padding-inline-end: var(--space-5); }
.pe-6 { padding-inline-end: var(--space-6); }

/* Typography utilities */
.text-xs { font-size: var(--font-size-xs); line-height: var(--line-height-tight); }
.text-sm { font-size: var(--font-size-sm); line-height: var(--line-height-base); }
.text-base { font-size: var(--font-size-base); line-height: var(--line-height-base); }
.text-md { font-size: var(--font-size-md); line-height: var(--line-height-base); }
.text-lg { font-size: var(--font-size-lg); line-height: var(--line-height-base); }
.text-xl { font-size: var(--font-size-xl); line-height: var(--line-height-tight); }
.text-2xl { font-size: var(--font-size-2xl); line-height: var(--line-height-tight); }
.text-start { text-align: start; }
.text-end { text-align: end; }
.font-regular { font-weight: var(--font-weight-regular); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }
.text-muted { color: var(--mowazaf-text-light); }
.text-primary { color: var(--mowazaf-primary); }
.text-accent { color: var(--mowazaf-accent); }
.text-error { color: var(--color-status-error); }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-variant-numeric: tabular-nums; }

/* Width helpers */
.w-full { width: 100%; }
.max-w-sm { max-width: 400px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 960px; }

/* Cards / surfaces */
.card { background: var(--color-surface); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-sm); transition: box-shadow .2s ease; }
.card:hover { box-shadow: var(--shadow-md); }
.section { background: var(--color-surface-muted); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); padding: var(--space-4); }

/* Badges / pills */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: var(--font-weight-semibold); padding: 2px 8px; border-radius: 999px; line-height: 1.2; }
.badge-success { background: var(--color-status-success); color: #fff; }
.badge-error { background: var(--color-status-error); color: #fff; }
.badge-warning { background: var(--color-status-warning); color: #fff; }
.badge-info { background: var(--color-status-info); color: #fff; }
.badge-neutral { background: var(--color-status-neutral); color: #243A78; }

/* Extended typography utilities */
.heading-1 { font-size: var(--font-size-2xl); font-weight: var(--font-weight-semibold); line-height: var(--line-height-tight); }
.heading-2 { font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); line-height: var(--line-height-tight); }
.heading-3 { font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); }
.heading-4 { font-size: var(--font-size-md); font-weight: var(--font-weight-semibold); }
.heading-5 { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }
.text-semibold { font-weight: var(--font-weight-semibold); }
.text-bold { font-weight: var(--font-weight-bold); }

/* Focus utility */
.focus-ring:focus { outline: 2px solid var(--mowazaf-accent); outline-offset: 2px; }

/* Layout wrappers */
.page { width: 100%; padding: var(--space-7) var(--space-6); background: var(--color-surface-alt); }
.grid-auto-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: var(--space-6); }
.col-span-full { grid-column: 1 / -1; }

/* Accessibility */
.sr-only { position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.user-profile-content {
  flex: 1 1 auto;
  padding: 8px;
  min-height: 0;
  /* margin: 0 auto; */
}
.user-profile-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface-alt);
}
.user-profile-shell .profile-header-compact {
  /* padding: 10px; */
}
.profile-avatar-sm {
  width: 72px !important;
  height: 72px !important;
  border-width: 2px !important;
}
@media (max-width: 900px) {
  .profile-avatar-sm { width: 56px !important; height: 56px !important; }
}

/* --- Dialog & Camera (Reusable patterns) --- */
.dialog-compact { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.dialog-header { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: linear-gradient(135deg, rgba(48,78,161,0.08) 0%, rgba(48,78,161,0.02) 100%); border-bottom: 1px solid var(--color-border-subtle); }
.dialog-header-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; background: rgba(48,78,161,0.08); }
.dialog-title { font-weight: var(--font-weight-semibold); font-size: var(--font-size-lg); }

.camera-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border-subtle); box-shadow: var(--shadow-md); }
.camera-video { background: #d9d9d9; width: 100%; height: auto; max-height: 300px; } /* Keep compact to avoid scroll */
.hello-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }

.hello-overlay { pointer-events: none; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.hello-focus { position: relative; width: clamp(120px, 32%, 180px); aspect-ratio: 3/4; border-radius: 50%; animation: u-pulse 2.2s ease-out infinite; }
.hello-dim { position: absolute; inset: -30%; background: radial-gradient(ellipse 50% 45% at center, rgba(0,0,0,0) 48%, rgba(0,0,0,0.50) 52%); border-radius: 50%; }
.hello-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,0.25); transition: border-color 0.4s ease; }
.hello-arc { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--mowazaf-primary); animation: u-spin 1.8s linear infinite; transition: border-top-color 0.4s ease; }
.hello-success { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 3.5px rgba(46,125,50,1) inset, 0 0 8px rgba(46,125,50,0.3); }
.hello-brackets { position: absolute; inset: -2px; border-radius: 50%; }
.hello-brackets::before, .hello-brackets::after { content: ''; position: absolute; width: 14px; height: 14px; border-color: rgba(255,255,255,0.4); border-style: solid; border-width: 0; }
.hello-brackets::before { top: 8%; left: 8%; border-top-width: 2.5px; border-left-width: 2.5px; border-top-left-radius: 4px; }
.hello-brackets::after { top: 8%; right: 8%; border-top-width: 2.5px; border-right-width: 2.5px; border-top-right-radius: 4px; }
.hello-brackets-bottom::before { bottom: 8%; left: 8%; top: auto; border-top-width: 0; border-bottom-width: 2.5px; border-left-width: 2.5px; border-bottom-left-radius: 4px; }
.hello-brackets-bottom::after { bottom: 8%; right: 8%; top: auto; border-top-width: 0; border-bottom-width: 2.5px; border-right-width: 2.5px; border-bottom-right-radius: 4px; }
.hello-scan { position: absolute; left: 15%; right: 15%; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.08) 70%, transparent 100%); animation: u-scan 3s ease-in-out infinite alternate; }

/* Status pill */
.status-pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: var(--font-weight-medium); box-shadow: var(--shadow-sm); border: 1px solid transparent; }
.status-pill.is-info { background: rgba(48,78,161,0.10); color: var(--mowazaf-primary); border-color: rgba(48,78,161,0.35); }
.status-pill.is-success { background: rgba(46,125,50,0.12); color: #2e7d32; border-color: rgba(46,125,50,0.35); }
.status-pill.is-error { background: rgba(185,14,10,0.10); color: var(--color-status-error); border-color: rgba(185,14,10,0.35); }

/* Animations */
@keyframes u-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes u-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.12);} 70% { box-shadow: 0 0 0 12px rgba(0,0,0,0);} 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0);} }
@keyframes u-scan { from { top: 20%; } to { top: 80%; } }

/* --- Standardized Tables (Guidelines) --- */
.table-container { border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-surface);}
.table-responsive { overflow-x: auto; }
.table-standard thead th { background: var(--color-surface-alt); font-weight: var(--font-weight-semibold); color: var(--mowazaf-primary); font-size: var(--font-size-sm); }
.table-standard tbody tr:hover { background: rgba(48,78,161,0.06); }
.table-striped tbody tr:nth-of-type(odd) { background: var(--color-surface-alt); }
.table-outline-rows tbody tr:not(:last-child) { border-bottom: 1px solid var(--color-border-subtle); }
.table-compact td, .table-compact th { padding: 6px 12px; }

/* --- Phone Input (MUI-like outlined style) --- */
.phone-field { position: relative; display: flex; flex-direction: column; }
.phone-field .PhoneInput { display: flex; align-items: stretch; gap: 8px; }
.phone-field .PhoneInputCountry { display: flex; align-items: center; padding: 0 8px; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); background: var(--color-surface-alt); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.phone-field .PhoneInputCountry:hover { background: var(--color-surface); }
.phone-field .PhoneInputInput { flex: 1; font: inherit; font-size: var(--font-size-base); padding: 12.5px 14px; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); background: var(--color-surface); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.phone-field .PhoneInputInput:focus { outline: none; border-color: var(--mowazaf-primary); box-shadow: var(--shadow-focus); }
.phone-field.is-error .PhoneInputInput { border-color: var(--color-status-error); }
.phone-field.is-error .PhoneInputInput:focus { box-shadow: 0 0 0 3px rgba(185,14,10,0.35); }
.phone-field .helper-text { font-size: 12px; color: var(--mowazaf-text-light); margin-top: 4px; }
.phone-field.is-error .helper-text { color: var(--color-status-error); }

/* ------------------------------------------------------------------
   Legacy Styles (DEPRECATED)
   Most .mowazaf-* classes have been removed after migration to
   atomic utilities and MUI sx props. Only harmless aliases still
   referenced in code remain below. Do NOT add new mowazaf-* classes.
------------------------------------------------------------------- */

/* Flexbox aliases */
.flex-container { display: flex; }
.flex-column { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-start { display: flex; justify-content: flex-start; align-items: center; }
.flex-end { display: flex; justify-content: flex-end; align-items: center; }
.flex-1, .flex-grow { flex: 1 1 auto; }

/* (purged legacy block removed here) */


.main-row {
  height: 100%;
  align-items: stretch;
  justify-content: center;
  min-height: 100%;
  flex-wrap: wrap;
  align-content: stretch;
}
.timer-row { text-align: center; min-height: 100%; flex-wrap: wrap; align-content: space-around; }
.side-panel { position: absolute; top: 0; bottom: 0; width: 100%; overflow-y: auto; direction: rtl; padding: 0; }
.side-panel > * { direction: ltr; }
.ms-FocusZone { overflow-x: auto; }

/* Profile Navbar - Tailwind-compatible base styles */

/* Link styling for profile context */
a {
  color: var(--mowazaf-primary);
}

/* Focus-visible outline for accessibility */
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}

.mapNavContainer { overflow: auto; max-height: 400px; border: 1px solid var(--mowazaf-border, #d0d7e2); background-color: var(--mowazaf-surface-alt, #f5f8fc); }
.leaflet-container .leaflet-control-zoom, .leaflet-container .leaflet-control-layers, .leaflet-container .leaflet-draw-toolbar { z-index: 1000 !important; }
.leaflet-container .leaflet-marker-icon { display: block !important; }
.leaflet-container .leaflet-draw-toolbar a { display: block !important; width: 26px !important; height: 26px !important; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAAeCAYAAACWuCNnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAG7AAABuwBHnU4NQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAbvSURBVHic7dtdbBxXFQfw/9nZ3SRKwAP7UFFUQOoHqGnUoEAoNghX9tyxVcpD1X0J+WgiUQmpfUB5ACSgG1qJIKASqBIUIauqAbWseIlqb+bOWHVR6y0FKZBEqdIUQROIREGRx3FFvR/38ODZst3a3nE8Ywfv+T2t7hzdM3fle/bOnWtACCGEEEIIIYQQQgghhBBCC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AABJRU5ErkJggg==) !important; background-repeat: no-repeat !important; }
.leaflet-popup-content img { max-width: none !important; height: auto !important; }

.wialon-marker {
    background: none !important;
    border: none !important;
}

.wialon-marker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wialon-marker-label {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 2px 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 2px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wialon-employee-name {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wialon-unit-name {
    font-size: 10px;
    color: #666;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wialon-marker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

.wialon-marker-icon img {
    display: block;
}


/*# sourceMappingURL=main-234957ad-d91a9049.a6f1d2b02a35c348cfb2.css.map*/