/**
 * شركة الأستاذ الدولية للصرافة والحولات المالية
 * Main Application Stylesheet (app.css)
 * Source of Truth: Design Tokens, Typography, Bootstrap Overrides,
 * Unified Sidebar, Bottom Navigation, Mobile Table Cards, and Utilities.
 */

/* ==========================================================================
   1. SELF-HOSTED TYPOGRAPHY (CAIRO FONT)
   ========================================================================== */
/* Regular 400 */
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cairo-400-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cairo-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* SemiBold 600 */
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/cairo-600-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/cairo-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Bold 700 */
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/cairo-700-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/cairo-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. DESIGN TOKENS & BOOTSTRAP OVERRIDES
   ========================================================================== */
:root {
    /* Gold Color Palette */
    --ost-gold-50:  #fffbeb;
    --ost-gold-100: #fef3c7;
    --ost-gold-200: #fde68a;
    --ost-gold-300: #fcd34d;
    --ost-gold-400: #fbbf24;
    --ost-gold-500: #f59e0b;
    --ost-gold-600: #d97706;
    --ost-gold-700: #b45309;
    --ost-gold-800: #92400e;
    --ost-gold-900: #78350f;

    /* Theme Palette Aliases */
    --gold-50:  var(--ost-gold-50);
    --gold-100: var(--ost-gold-100);
    --gold-200: var(--ost-gold-200);
    --gold-300: var(--ost-gold-300);
    --gold-400: var(--ost-gold-400);
    --gold-500: var(--ost-gold-500);
    --gold-600: var(--ost-gold-600);
    --gold-700: var(--ost-gold-700);
    --gold-800: var(--ost-gold-800);
    --gold-900: var(--ost-gold-900);

    /* Neutral & Semantic Tokens */
    --ost-ink: #1f2937;
    --ost-ink-light: #374151;
    --ost-muted: #6b7280;
    --ost-muted-light: #9ca3af;
    --ost-line: rgba(245, 158, 11, 0.25);
    --ost-line-light: #e5e7eb;
    --ost-bg-card: #ffffff;
    --ost-bg-subtle: #fffbeb;

    /* Spacing Tokens */
    --ost-space-1: 0.25rem;  /* 4px */
    --ost-space-2: 0.5rem;   /* 8px */
    --ost-space-3: 0.75rem;  /* 12px */
    --ost-space-4: 1rem;     /* 16px */
    --ost-space-5: 1.25rem;  /* 20px */
    --ost-space-6: 1.5rem;   /* 24px */
    --ost-space-7: 1.75rem;  /* 28px */
    --ost-space-8: 2rem;     /* 32px */

    /* Border Radius */
    --ost-radius-sm: 0.375rem; /* 6px */
    --ost-radius-md: 0.75rem;  /* 12px */
    --ost-radius-lg: 1rem;     /* 16px */
    --ost-radius-xl: 1.5rem;   /* 24px */
    --ost-radius-full: 9999px;

    /* Shadows */
    --ost-shadow-1: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --ost-shadow-2: 0 4px 15px rgba(245, 158, 11, 0.18);
    --ost-shadow-3: 0 10px 30px rgba(245, 158, 11, 0.25);

    /* Layout Dimensions */
    --ost-header-h: 64px;
    --ost-bottombar-h: 64px;
    --ost-sidebar-w: 288px;
    --ost-safe-b: env(safe-area-inset-bottom, 0px);
    --ost-safe-t: env(safe-area-inset-top, 0px);

    /* Gradients */
    --gold-gradient: linear-gradient(135deg, var(--ost-gold-500), var(--ost-gold-600));
    --gold-gradient-hover: linear-gradient(135deg, var(--ost-gold-400), var(--ost-gold-500));
    --gold-gradient-active: linear-gradient(135deg, var(--ost-gold-600), var(--ost-gold-700));
    --gold-gradient-subtle: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    --gold-gradient-subtle-hover: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));

    /* Direct Bootstrap Overrides */
    --bs-primary: #f59e0b;
    --bs-primary-rgb: 245, 158, 11;
    --bs-link-color: #d97706;
    --bs-link-hover-color: #b45309;
    --bs-body-font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --bs-body-color: var(--ost-ink);
    --bs-body-bg: #ffffff;
    --bs-border-radius: var(--ost-radius-md);
    --bs-border-radius-sm: var(--ost-radius-sm);
    --bs-border-radius-lg: var(--ost-radius-lg);
}

/* ==========================================================================
   3. GLOBAL RESET & BASE RULES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body, button, input, select, textarea, optgroup {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ensure FontAwesome icons always use their own font family and are never overridden */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands, [class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free" !important;
}
.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands" !important;
}
.fa, .fas, .fa-solid {
    font-weight: 900 !important;
}
.far, .fa-regular {
    font-weight: 400 !important;
}

body {
    background-color: #ffffff;
    color: var(--ost-ink);
    min-height: 100vh;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tabular Numbers */
.tabular-nums,
.num,
.amount-cell,
.balance-cell {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    letter-spacing: 0.02em;
}

.page-wrapper {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    position: relative;
    width: 100%;
}

.main-content {
    background-color: #ffffff;
    flex: 1;
    min-width: 0;
    padding: var(--ost-space-6);
    transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    .main-content {
        margin-right: var(--ost-sidebar-w);
        width: calc(100% - var(--ost-sidebar-w));
    }
}

@media (max-width: 1023px) {
    .main-content {
        margin-right: 0;
        width: 100%;
        padding: var(--ost-space-4);
        padding-top: calc(var(--ost-space-4) + 10px);
        padding-bottom: calc(var(--ost-bottombar-h) + var(--ost-safe-b) + 1.5rem);
    }
}

/* ==========================================================================
   4. BOOTSTRAP COMPONENTS CUSTOMIZATION (Gold Theme)
   ========================================================================== */
/* Buttons */
.btn {
    border-radius: var(--ost-radius-md);
    font-weight: 600;
    transition: all 0.25s ease;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .btn {
        min-height: 44px; /* Touch target minimum */
    }
    
    .btn-block-mobile {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
    background: var(--gold-gradient);
    border-color: rgba(245, 158, 11, 0.5);
    color: #ffffff;
    box-shadow: var(--ost-shadow-2);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):hover,
.btn-primary:not(:disabled):not(.disabled):focus {
    background: var(--gold-gradient-hover);
    border-color: rgba(245, 158, 11, 0.8);
    color: #ffffff;
    box-shadow: var(--ost-shadow-3);
    transform: translateY(-2px);
}

.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background: var(--gold-gradient-active);
    transform: translateY(0);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid rgba(245, 158, 11, 0.7);
    color: var(--ost-gold-600);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--gold-gradient-subtle);
    border-color: var(--ost-gold-500);
    color: var(--ost-gold-700);
    box-shadow: var(--ost-shadow-2);
}

/* Badges */
.badge.bg-primary,
.badge[class*="bg-primary"] {
    background: var(--gold-gradient);
    color: #ffffff;
    font-weight: 700;
    border-radius: var(--ost-radius-sm);
    padding: 0.4em 0.75em;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

/* Cards */
.card {
    background-color: var(--ost-bg-card);
    border: 1px solid var(--ost-line);
    border-radius: var(--ost-radius-lg);
    box-shadow: var(--ost-shadow-1);
    overflow: hidden;
}

.card-header.bg-primary {
    background: var(--gold-gradient);
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: var(--ost-radius-md);
    border: 1.5px solid #d1d5db;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents iOS auto-zoom */
        min-height: 44px;
    }
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ost-gold-500);
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.25);
    outline: none;
}

/* Alerts */
.alert-primary {
    background: var(--gold-gradient-subtle);
    border: 1px solid var(--ost-line);
    color: var(--ost-gold-700);
    border-radius: var(--ost-radius-md);
}

/* Pagination */
.page-link {
    color: var(--ost-gold-600);
    border-color: var(--ost-line);
    font-weight: 600;
}

.page-link:hover {
    background-color: var(--ost-gold-50);
    border-color: var(--ost-gold-500);
    color: var(--ost-gold-700);
}

.page-item.active .page-link {
    background: var(--gold-gradient);
    border-color: var(--ost-gold-500);
    color: #ffffff;
}

/* ==========================================================================
   5. PAGE HEADER COMPONENT (.ost-page-header)
   ========================================================================== */
.ost-page-header {
    margin-bottom: var(--ost-space-6);
    padding-bottom: var(--ost-space-4);
    border-bottom: 1.5px solid var(--ost-line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ost-space-4);
}

.ost-page-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ost-page-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--ost-ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ost-page-title i {
    color: var(--ost-gold-500);
}

.ost-page-subtitle {
    font-size: 0.9rem;
    color: var(--ost-muted);
    margin: 0;
}

.ost-page-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .ost-page-header {
        margin-top: 0.5rem;
        margin-bottom: var(--ost-space-4);
        padding-right: 3.5rem; /* Space so hamburger button never covers title */
    }
    
    .ost-page-title {
        font-size: 1.3rem;
    }
    
    .ost-page-actions {
        width: 100%;
    }
    
    .ost-page-actions .btn {
        flex: 1;
    }
}

/* ==========================================================================
   6. UNIFIED TABLE & MOBILE CARDS COMPONENT
   ========================================================================== */
.ost-table-wrapper {
    background: #ffffff;
    border-radius: var(--ost-radius-lg);
    border: 1px solid var(--ost-line);
    box-shadow: var(--ost-shadow-1);
    margin-bottom: var(--ost-space-6);
    overflow: hidden;
}

/* Desktop View (>= 768px) */
.ost-desktop-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.ost-desktop-table thead th {
    background: var(--gold-gradient-subtle);
    color: var(--ost-gold-700);
    font-weight: 700;
    padding: 0.9rem 1rem;
    border-bottom: 2px solid var(--ost-line);
    white-space: nowrap;
}

.ost-desktop-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    color: var(--ost-ink);
}

.ost-desktop-table tbody tr:hover {
    background-color: rgba(245, 158, 11, 0.04);
}

/* Mobile Cards View (< 768px) */
.ost-mobile-cards {
    display: none;
    padding: var(--ost-space-3);
    gap: var(--ost-space-3);
    flex-direction: column;
}

@media (max-width: 767px) {
    .ost-desktop-table {
        display: none !important;
    }
    
    .ost-mobile-cards {
        display: flex !important;
    }
    
    .ost-table-wrapper {
        background: transparent;
        border: none;
        box-shadow: none;
    }
}

.ost-table-card {
    background: #ffffff;
    border: 1.5px solid var(--ost-line);
    border-radius: var(--ost-radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: var(--ost-space-4);
    position: relative;
    transition: all 0.2s ease;
}

.ost-table-card:hover {
    border-color: var(--ost-gold-400);
    box-shadow: var(--ost-shadow-2);
}

.ost-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--ost-space-3);
    padding-bottom: var(--ost-space-2);
    border-bottom: 1px dashed var(--ost-line);
}

.ost-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ost-gold-700);
    margin: 0;
}

.ost-card-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
}

.ost-card-field {
    display: flex;
    flex-direction: column;
}

.ost-card-field.full-width {
    grid-column: span 2;
}

.ost-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ost-muted);
    margin-bottom: 0.15rem;
}

.ost-card-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ost-ink);
    word-break: break-word;
}

.ost-card-actions {
    margin-top: var(--ost-space-3);
    padding-top: var(--ost-space-2);
    border-top: 1px solid var(--ost-line-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ost-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--ost-muted);
}

.ost-empty-icon {
    font-size: 3rem;
    color: var(--ost-gold-300);
    margin-bottom: 1rem;
}

/* ==========================================================================
   7. MOBILE BOTTOM NAVIGATION BAR (.bottom-nav)
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--ost-bottombar-h) + var(--ost-safe-b));
    padding-bottom: var(--ost-safe-b);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1.5px solid var(--ost-line);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1030;
    display: none;
}

@media (max-width: 991px) {
    .bottom-nav {
        display: block;
    }
}

.bottom-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: var(--ost-bottombar-h);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ost-muted);
    font-size: 0.72rem;
    font-weight: 600;
    height: 100%;
    min-width: 48px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.25rem 0;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
    transition: transform 0.2s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
    color: var(--ost-gold-600);
}

.bottom-nav-item.active {
    color: var(--ost-gold-600);
}

.bottom-nav-item.active i {
    transform: scale(1.15);
    color: var(--ost-gold-500);
}

/* Floating Action Button in Bottom Nav */
.bottom-nav-fab-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bottom-nav-fab {
    position: absolute;
    top: -18px;
    width: 52px;
    height: 52px;
    border-radius: var(--ost-radius-full);
    background: var(--gold-gradient);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    border: 3px solid #ffffff;
    text-decoration: none;
    transition: all 0.25s ease;
}

.bottom-nav-fab i {
    font-size: 1.4rem;
}

.bottom-nav-fab:hover,
.bottom-nav-fab:active {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.65);
}

/* ==========================================================================
   8. UNIFIED SIDEBAR STYLES (Clean & Modular)
   ========================================================================== */
#sidebar {
    background: #ffffff;
    border-right: 2px solid var(--ost-line);
    box-shadow: 4px 0 20px rgba(245, 158, 11, 0.08);
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: var(--ost-sidebar-w);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: block;
    z-index: 1050;
}

#sidebar::-webkit-scrollbar {
    width: 5px;
}
#sidebar::-webkit-scrollbar-track {
    background: rgba(245, 158, 11, 0.05);
}
#sidebar::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.4);
    border-radius: 3px;
}

/* Sidebar Toggle Floating Button */
#sidebarToggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    background: var(--gold-gradient);
    color: #ffffff;
    padding: 0.75rem;
    border-radius: var(--ost-radius-full);
    border: 2px solid #ffffff;
    box-shadow: var(--ost-shadow-3);
    width: 3.25rem;
    height: 3.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

#sidebarToggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
}

#sidebarOverlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    display: none;
}

/* Sidebar Header */
.sidebar-header {
    padding: var(--ost-space-5) var(--ost-space-4);
    border-bottom: 2px solid var(--ost-gold-100);
    background: linear-gradient(to bottom right, var(--ost-gold-50), #ffffff);
    text-align: center;
}

.sidebar-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    margin: 0 auto var(--ost-space-2);
}

.sidebar-brand-title {
    color: var(--ost-gold-600);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
}

.sidebar-brand-sub {
    color: var(--ost-gold-500);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Sidebar User Profile Section */
.sidebar-user-section {
    padding: var(--ost-space-4);
    border-bottom: 1.5px solid var(--ost-gold-100);
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: var(--ost-space-3);
}

.sidebar-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--ost-radius-full);
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    overflow: hidden;
    border: 2px solid var(--ost-gold-300);
    flex-shrink: 0;
}

.sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.sidebar-user-name {
    color: var(--ost-ink);
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    color: var(--ost-muted);
    font-size: 0.75rem;
    margin: 0;
}

/* Sidebar Nav Links */
.sidebar-nav {
    padding: var(--ost-space-3) var(--ost-space-3) var(--ost-space-6);
}

.sidebar-link,
.sidebar-collapse-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.35rem;
    border-radius: var(--ost-radius-md);
    color: var(--ost-ink-light);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: right;
    font-weight: 600;
    font-size: 0.92rem;
}

.sidebar-link:hover,
.sidebar-collapse-btn:hover {
    background-color: var(--ost-gold-50);
    color: var(--ost-gold-700);
}

.sidebar-link.active {
    background-color: var(--ost-gold-100);
    color: var(--ost-gold-800);
    font-weight: 700;
    border-right: 4px solid var(--ost-gold-500);
}

.sidebar-link i,
.sidebar-collapse-btn i {
    width: 1.25rem;
    font-size: 1.1rem;
    text-align: center;
}

/* Sub Links */
.sidebar-sub-links {
    padding-right: 1.75rem;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.sidebar-sub-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.85rem;
    margin-bottom: 0.2rem;
    border-radius: var(--ost-radius-sm);
    color: var(--ost-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-sub-link:hover {
    background-color: var(--ost-gold-50);
    color: var(--ost-gold-700);
}

.sidebar-sub-link.active {
    background-color: var(--ost-gold-100);
    color: var(--ost-gold-800);
    font-weight: 700;
}

/* Sidebar Logout */
.sidebar-logout-section {
    margin-top: var(--ost-space-4);
    padding-top: var(--ost-space-3);
    border-top: 1.5px solid var(--ost-gold-100);
}

.sidebar-link.text-red {
    color: #dc2626;
}

.sidebar-link.text-red:hover {
    background-color: #fef2f2;
    color: #b91c1c;
}

/* Responsive Sidebar Behavior */
@media (max-width: 1023px) {
    #sidebar {
        transform: translateX(100%);
    }
    #sidebar.show {
        transform: translateX(0);
    }
    #sidebarToggle {
        display: flex;
    }
}

@media (min-width: 1024px) {
    #sidebar {
        transform: translateX(0);
        position: fixed;
    }
    #sidebarToggle,
    #sidebarOverlay {
        display: none !important;
    }
}

/* ==========================================================================
   LAYOUT STRUCTURE (.page-wrapper & .main-content)
   ========================================================================== */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.main-content {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f8fafc;
}

@media (min-width: 1024px) {
    .main-content {
        margin-right: var(--ost-sidebar-w);
        width: calc(100% - var(--ost-sidebar-w));
    }
}

@media (max-width: 1023px) {
    .main-content {
        margin-right: 0 !important;
        width: 100% !important;
        padding-bottom: calc(var(--ost-bottombar-h) + var(--ost-safe-b) + 4rem) !important;
    }
}

/* ==========================================================================
   UNIFIED PAGE HEADER (.ost-page-header)
   ========================================================================== */
.ost-page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1.5px solid var(--ost-line);
}

@media (min-width: 768px) {
    .ost-page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.ost-page-title-group {
    display: flex;
    flex-direction: column;
}

.ost-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ost-ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.ost-page-title i {
    color: var(--ost-gold-500);
}

.ost-page-subtitle {
    font-size: 0.88rem;
    color: var(--ost-muted);
    margin: 0;
}

.ost-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 767.98px) {
    .ost-page-actions {
        width: 100%;
    }
    .ost-page-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   MOBILE FORM & CARD ENHANCEMENTS
   ========================================================================== */
@media (max-width: 767.98px) {
    .form-control,
    .form-select {
        font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
        min-height: 44px;
        border-radius: var(--ost-radius-md);
    }
    
    .input-group > .btn,
    .input-group > .form-control,
    .input-group > .form-select {
        min-height: 44px;
    }
    
    .card {
        border-radius: var(--ost-radius-xl) !important;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1.25rem 1rem;
    }

    .modal-dialog {
        margin: 0.75rem;
    }
    
    .modal-content {
        border-radius: var(--ost-radius-xl);
    }

    .btn {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Floating toggle button adjustments on mobile */
    #sidebarToggle {
        top: 0.75rem;
        right: 0.75rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* ==========================================================================
   9. DASHBOARD & PROFILE COMPONENTS
   ========================================================================== */
.dashboard-gradient {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 50%, #ffffff 100%);
    min-height: 100vh;
}

.gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--ost-line);
    border-radius: var(--ost-radius-lg);
    padding: var(--ost-space-5);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ost-shadow-3);
    border-color: var(--ost-gold-400);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ost-gold-600);
    margin: 0.4rem 0;
}

.stat-card .stat-label {
    color: var(--ost-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.stat-card .stat-icon {
    font-size: 2.25rem;
    color: var(--ost-gold-500);
    margin-bottom: 0.4rem;
}

.office-card,
.user-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1.5px solid var(--ost-line);
    border-radius: var(--ost-radius-lg);
}

.office-card:hover,
.user-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ost-shadow-3);
    border-color: var(--ost-gold-400);
}

/* Profile Avatars */
.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--ost-radius-full);
    overflow: hidden;
    object-fit: cover;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-sm, .profile-image-sm img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.profile-image-md, .profile-image-md img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.profile-image-lg, .profile-image-lg img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.profile-image-xl, .profile-image-xl img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }

.default-avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-gradient); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; font-weight: 700; }
.default-avatar-md { width: 48px; height: 48px; border-radius: 50%; background: var(--gold-gradient); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; font-weight: 700; }
.default-avatar-lg { width: 64px; height: 64px; border-radius: 50%; background: var(--gold-gradient); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; font-weight: 700; }

/* ==========================================================================
   10. TAILWIND COMPATIBILITY LAYER & UTILITIES
   ========================================================================== */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }

.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

.flex-1 { flex: 1 1 0%; }
.flex-shrink { flex-shrink: 1; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.w-5 { width: 1.25rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }

.h-5 { height: 1.25rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-full { height: 100%; }

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.ms-auto { margin-inline-start: auto; }

.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-start { text-align: start; }
.text-end { text-align: end; }

.text-gold-500 { color: var(--ost-gold-500) !important; }
.text-gold-600 { color: var(--ost-gold-600) !important; }
.text-gold-700 { color: var(--ost-gold-700) !important; }
.text-green-600 { color: #16a34a !important; }
.text-blue-600 { color: #2563eb !important; }
.text-purple-600 { color: #9333ea !important; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-white { color: #ffffff !important; }

.bg-white { background-color: #ffffff; }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2) !important; }
.bg-white\/30 { background-color: rgba(255, 255, 255, 0.3) !important; }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8) !important; }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95) !important; }
.bg-gold-50 { background-color: var(--ost-gold-50); }
.bg-gold-100 { background-color: var(--ost-gold-100); }
.bg-gold-500 { background-color: var(--ost-gold-500); }
.bg-gold-600 { background-color: var(--ost-gold-600); }

/* Tailwind Gradient Backgrounds */
.bg-gradient-to-br.from-gold-400.to-gold-600,
.from-gold-400.to-gold-600 {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
}
.bg-gradient-to-br.from-gold-500.to-gold-600,
.from-gold-500.to-gold-600 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}
.bg-gradient-to-br.from-green-400.to-green-600,
.from-green-400.to-green-600 {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%) !important;
}
.bg-gradient-to-br.from-green-500.to-green-600,
.from-green-500.to-green-600 {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}
.bg-gradient-to-br.from-blue-400.to-blue-600,
.from-blue-400.to-blue-600 {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%) !important;
}
.bg-gradient-to-br.from-blue-500.to-blue-600,
.from-blue-500.to-blue-600 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}
.bg-gradient-to-br.from-purple-400.to-purple-600,
.from-purple-400.to-purple-600 {
    background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%) !important;
}
.bg-gradient-to-br.from-purple-500.to-purple-600,
.from-purple-500.to-purple-600 {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%) !important;
}
.bg-gradient-to-r.from-gold-500.to-gold-600 {
    background: linear-gradient(to right, #f59e0b 0%, #d97706 100%) !important;
}
.bg-gradient-to-r.from-blue-500.to-blue-600 {
    background: linear-gradient(to right, #3b82f6 0%, #2563eb 100%) !important;
}

.rounded { border-radius: 0.25rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-gold-200 { border-color: #fde68a !important; }
.border-gold-300 { border-color: #fcd34d !important; }
.border-green-200 { border-color: #bbf7d0 !important; }
.border-blue-200 { border-color: #bfdbfe !important; }
.border-purple-200 { border-color: #e9d5ff !important; }

.shadow-sm { box-shadow: var(--ost-shadow-1); }
.shadow-lg { box-shadow: var(--ost-shadow-2); }
.shadow-xl { box-shadow: var(--ost-shadow-3); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); }

.overflow-hidden { overflow: hidden; }
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.rotate-180 { transform: rotate(180deg); }

.backdrop-blur-lg { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.transition-transform { transition: transform 0.2s ease; }
.transition-colors { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.transition-all { transition: all 0.25s ease; }
.duration-300 { transition-duration: 300ms; }

.transform { transform-origin: center; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.08); }

/* Float Animation */
@keyframes ostFloatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.float-animation {
    animation: ostFloatAnim 3s ease-in-out infinite;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ==========================================================================
   10. SKELETON LOADERS (FOR HEAVY QUERY PAGES)
   ========================================================================== */
.skeleton-box {
    display: inline-block;
    height: 1em;
    position: relative;
    overflow: hidden;
    background-color: #f3f4f6;
    border-radius: var(--ost-radius-sm, 6px);
}

.skeleton-box::after {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.5) 30%,
        rgba(255, 255, 255, 0.8) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: ostShimmer 1.8s infinite;
    content: '';
}

@keyframes ostShimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-card {
    background: #ffffff;
    border-radius: var(--ost-radius-md, 12px);
    border: 1px solid var(--ost-line, #e5e7eb);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   11. MOBILE FORM POLISH & TOUCH TARGETS (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
    .form-control, .form-select {
        font-size: 1rem !important; /* Prevents auto-zoom on mobile safari */
        min-height: 44px; /* Accessible touch target */
        border-radius: var(--ost-radius-md, 10px);
    }
    
    .form-control:focus, .form-select:focus {
        border-color: var(--ost-gold-500) !important;
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
    }

    .btn:not(.btn-sm) {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   12. ACCESSIBILITY & REDUCED MOTION (WCAG 2.1)
   ========================================================================== */
:focus-visible {
    outline: 2px solid var(--ost-gold-500) !important;
    outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   13. AUTHENTICATION & LOGIN PAGES
   ========================================================================== */
body.auth-page {
    font-family: 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #0b0f19;
    background-image: 
        radial-gradient(at 0% 0%, rgba(245, 158, 11, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(217, 119, 6, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 30%, #151e2e 0%, #0b0f19 100%);
    position: relative;
    overflow-x: hidden;
    color: #1e293b;
}

/* Ambient Background Glows */
.auth-bg-glow {
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
    opacity: 0.22;
}

.auth-bg-glow-1 {
    top: -120px;
    right: -100px;
    background: radial-gradient(circle, var(--ost-gold-500), var(--ost-gold-600));
}

.auth-bg-glow-2 {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--ost-gold-700), #78350f);
}

.auth-bg-glow-blue {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, #0284c7, #0369a1);
}

/* Main Container */
.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    margin: auto;
    padding: 2.5rem 1.25rem;
}

/* Glassmorphism Elevated Card */
.auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--ost-radius-xl, 1.5rem);
    box-shadow: 
        0 20px 45px -10px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(245, 158, 11, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    padding: 2.25rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 576px) {
    .auth-container {
        padding: 1.5rem 1rem;
    }
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: var(--ost-radius-lg, 1.25rem);
    }
}

/* Logo Header */
.auth-logo-wrapper {
    text-align: center;
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-logo-img {
    max-height: 68px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
}

.auth-logo-img:hover {
    transform: scale(1.02);
}

.auth-badge-icon {
    width: 60px;
    height: 60px;
    border-radius: 1.1rem;
    background: var(--gold-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.65rem;
    box-shadow: 0 8px 20px -4px rgba(217, 119, 6, 0.4);
    margin-bottom: 0.5rem;
}

.auth-title {
    font-size: 1.38rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 0;
    font-weight: 500;
    text-align: center;
}

/* Form Controls & Inputs */
.auth-field {
    position: relative;
    margin-bottom: 1.25rem;
    text-align: right;
}

.auth-field label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.45rem;
}

.auth-field label i {
    color: var(--ost-gold-600);
    font-size: 0.85rem;
}

.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    right: 1rem;
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease, transform 0.2s ease;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding-right: 2.75rem;
    padding-left: 2.75rem;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--ost-radius-md, 0.75rem);
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    font-family: inherit;
    transition: all 0.2s ease;
}

.auth-input:hover {
    border-color: var(--ost-gold-400);
    background: #ffffff;
}

.auth-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--ost-gold-600);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.auth-input-group:focus-within .auth-input-icon {
    color: var(--ost-gold-600);
    transform: scale(1.08);
}

.auth-password-toggle {
    position: absolute;
    left: 0.65rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    padding: 0.45rem;
    cursor: pointer;
    z-index: 2;
    border-radius: var(--ost-radius-sm, 0.375rem);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.auth-password-toggle:hover {
    color: var(--ost-gold-600);
    background-color: rgba(245, 158, 11, 0.1);
}

/* Checkbox & Options */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    font-weight: 500;
}

.auth-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--ost-gold-600);
    border-radius: 4px;
    cursor: pointer;
}

/* Primary Submit Button */
.auth-btn-primary {
    width: 100%;
    height: 50px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--ost-radius-md, 0.75rem);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 8px 20px -4px rgba(217, 119, 6, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.auth-btn-primary:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(217, 119, 6, 0.5);
    color: #ffffff;
}

.auth-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.auth-btn-primary:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

/* Switch Portal Button / Link */
.auth-switch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--ost-radius-md, 0.75rem);
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    color: var(--ost-gold-700);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.auth-switch-link:hover {
    background: rgba(245, 158, 11, 0.16);
    color: var(--ost-gold-800);
    border-color: var(--ost-gold-600);
}

/* Alert Box */
.auth-alert {
    padding: 0.8rem 1rem;
    border-radius: var(--ost-radius-md, 0.75rem);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.auth-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Footer */
.auth-footer {
    position: relative;
    z-index: 2;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
    color: #94a3b8;
    font-size: 0.84rem;
    width: 100%;
}

.auth-footer a {
    color: var(--ost-gold-400);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--ost-gold-300);
    text-decoration: underline;
}

/* SVG Icons for Auth Pages */
.auth-svg-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    stroke-width: 2;
}

.auth-field label .auth-svg-icon {
    width: 1rem;
    height: 1rem;
    color: var(--ost-gold-600);
}

.auth-input-group .auth-input-icon .auth-svg-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.auth-password-toggle .auth-svg-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.auth-btn-primary .auth-svg-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.auth-switch-link .auth-svg-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.auth-badge-icon .auth-svg-icon {
    width: 2rem;
    height: 2rem;
}

.auth-footer .auth-svg-icon {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--ost-gold-500);
}

/* ==========================================================================
   LUXURY EXECUTIVE DASHBOARD STYLES (Al-Ostath V2)
   ========================================================================== */
.executive-dashboard {
    padding: 1.5rem 1rem 3rem;
    background: radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 100%, rgba(217, 119, 6, 0.04) 0%, transparent 40%),
                #f8fafc;
    min-height: 100vh;
}

/* Hero Banner */
.dash-hero-card {
    background: linear-gradient(135deg, #111827 0%, #1f2937 60%, #0f172a 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    color: #ffffff;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.dash-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.dash-hero-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.dash-hero-greeting {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dash-hero-greeting .gold-name {
    background: linear-gradient(135deg, #fde68a, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dash-hero-sub {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.dash-hero-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dash-hero-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dash-hero-badge.live-status {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.dash-hero-badge.live-status .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.dash-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-hero-action {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.65rem 1.25rem;
    border-radius: 0.85rem;
    border: none;
    box-shadow: 0 8px 20px -4px rgba(217, 119, 6, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-hero-action:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(217, 119, 6, 0.6);
}

.btn-hero-action-outline {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.65rem 1.15rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-hero-action-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

/* Live FX Ticker Strip */
.fx-ticker-strip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.fx-ticker-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: 1rem;
    border-left: 2px solid var(--ost-gold-500);
}

.fx-pills-list {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: nowrap;
}

.fx-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.4rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.fx-pill:hover {
    border-color: var(--ost-gold-400);
    background: #fffbeb;
    transform: translateY(-1px);
}

.fx-pill .curr-code {
    font-weight: 700;
    color: #0f172a;
}

.fx-pill .curr-rate {
    font-weight: 800;
    color: var(--ost-gold-600);
    font-family: system-ui, sans-serif;
    direction: ltr;
}

/* Executive KPI Cards */
.kpi-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
    border-color: var(--kpi-border, var(--ost-gold-300));
}

.kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: var(--kpi-accent, var(--gold-gradient));
    border-radius: 0 1.25rem 1.25rem 0;
}

.kpi-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.kpi-icon-box {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #ffffff;
    background: var(--kpi-accent, var(--gold-gradient));
    box-shadow: 0 8px 16px -4px var(--kpi-glow, rgba(217, 119, 6, 0.4));
}

.kpi-badge-trend {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.kpi-badge-trend.up {
    background: #dcfce7;
    color: #15803d;
}

.kpi-badge-trend.info {
    background: #e0e7ff;
    color: #4338ca;
}

.kpi-badge-trend.warning {
    background: #fef3c7;
    color: #b45309;
}

.kpi-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.kpi-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.kpi-card-footer {
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
}

.kpi-card-footer strong {
    color: #334155;
}

/* Glassmorphism Section Cards */
.dash-glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
    transition: box-shadow 0.2s ease;
}

.dash-glass-card:hover {
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.06);
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.dash-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.dash-card-title i {
    color: var(--ost-gold-600);
}

/* Quick Action Tiles */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.action-tile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 0.75rem;
    text-align: center;
    text-decoration: none;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.action-tile:hover {
    color: var(--ost-gold-700);
    transform: translateY(-4px);
    border-color: var(--ost-gold-300);
    box-shadow: 0 12px 20px -5px rgba(245, 158, 11, 0.15);
    background: #fffdf5;
}

.action-tile-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: transform 0.2s ease;
}

.action-tile:hover .action-tile-icon {
    transform: scale(1.1);
}

.action-tile-title {
    font-size: 0.86rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* Recent Transactions Table */
.recent-tx-table {
    margin-bottom: 0;
}

.recent-tx-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.recent-tx-table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    font-size: 0.86rem;
    border-bottom: 1px solid #f1f5f9;
}

.recent-tx-table tr:hover td {
    background-color: #fffdf5;
}

.badge-op-credit {
    background: #dcfce7;
    color: #15803d;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
}

.badge-op-debit {
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
}

.badge-status-completed {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
}

.badge-status-pending {
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
}

/* Activity Pulse Feed */
.pulse-feed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pulse-feed-item {
    position: relative;
    padding-right: 2rem;
    padding-bottom: 1.25rem;
    border-right: 2px solid #e2e8f0;
}

.pulse-feed-item:last-child {
    padding-bottom: 0;
    border-right-color: transparent;
}

.pulse-dot-indicator {
    position: absolute;
    right: -7px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ost-gold-500);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px var(--ost-gold-200);
}

.pulse-feed-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.15rem;
}

.pulse-feed-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dash-hero-card {
        padding: 1.25rem;
    }
    .dash-hero-greeting {
        font-size: 1.35rem;
    }
    .dash-hero-actions {
        width: 100%;
    }
    .btn-hero-action, .btn-hero-action-outline {
        width: 100%;
        justify-content: center;
    }
    .action-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .action-tile {
        padding: 0.85rem 0.4rem;
    }
    .action-tile-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.1rem;
    }
    .action-tile-title {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   OFFICE CARDS & RESPONSIVE DUAL-VIEW SYSTEM (EXECUTIVE OVERHAUL)
   ========================================================================== */

/* View Switcher Toolbar */
.view-switcher-group {
    background: #f1f5f9;
    padding: 3px;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.btn-view-switch {
    border: none !important;
    background: transparent;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 0.55rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none !important;
}

.btn-view-switch:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}

.btn-view-switch.active {
    background: #ffffff !important;
    color: var(--ost-gold-700, #b45309) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Forced View Mode Classes */
body.view-force-cards .offices-view-table {
    display: none !important;
}
body.view-force-cards .offices-view-cards {
    display: block !important;
}

body.view-force-table .offices-view-cards {
    display: none !important;
}
body.view-force-table .offices-view-table {
    display: block !important;
}

/* Office Card Grid */
.office-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 576px) {
    .office-card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Executive Mobile Card Container */
.office-mobile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: visible; /* Allows bootstrap dropdown to flow nicely */
}

.office-mobile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(245, 158, 11, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

/* Top Header: Avatar, Title, Badge */
.office-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed #f1f5f9;
}

.office-card-avatar {
    width: 46px;
    height: 46px;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.08));
    color: var(--ost-gold-600, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.office-card-title-group {
    flex: 1;
    min-width: 0;
}

.office-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.35;
    display: block;
    word-break: break-word;
    transition: color 0.15s ease;
}

.office-card-name:hover {
    color: var(--ost-gold-600, #d97706);
}

.office-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.office-card-meta-item {
    font-size: 0.78rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.office-card-id-tag {
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--ost-font-mono, monospace);
    color: #94a3b8;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.1rem 0.4rem;
    border-radius: 0.4rem;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.status-pill.active {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.status-pill.inactive {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill.active .status-dot {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Executive Balance Spotlight Box */
.office-card-balance-box {
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid;
    transition: all 0.2s ease;
}

.office-card-balance-box.balance-positive {
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fee7 100%);
    border-color: #bbf7d0;
}

.office-card-balance-box.balance-negative {
    background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
    border-color: #fecdd3;
}

.office-card-balance-box.balance-zero {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.balance-box-header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.balance-box-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.balance-box-title i {
    color: var(--ost-gold-600, #d97706);
    font-size: 0.85rem;
}

.balance-currency-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    font-family: var(--ost-font-mono, monospace);
}

.balance-box-amount {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.1;
    direction: ltr;
    text-align: left;
}

.balance-box-amount.text-success {
    color: #059669 !important;
}

.balance-box-amount.text-danger {
    color: #dc2626 !important;
}

.balance-box-amount.text-muted {
    color: #64748b !important;
}

.balance-box-amount .currency-symbol {
    font-size: 1rem;
    font-weight: 600;
    margin-right: 2px;
    opacity: 0.85;
}

/* Info Grid (Manager & Contact) */
.office-card-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.84rem;
    color: #475569;
    margin-bottom: 1rem;
    background: #fafafa;
    border-radius: 0.85rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #f1f5f9;
}

.office-card-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.info-row-label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.info-row-label i {
    color: #94a3b8;
    font-size: 0.82rem;
}

.info-row-val {
    font-weight: 700;
    color: #1e293b;
    text-align: end;
    word-break: break-word;
}

.info-contact-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-phone-call {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.25rem 0.55rem;
    border-radius: 0.6rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-phone-call:hover {
    border-color: #059669;
    color: #059669;
    background: #f0fdf4;
}

.btn-phone-call i {
    color: #059669;
    font-size: 0.75rem;
}

.btn-wa-chat {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3);
}

.btn-wa-chat:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

/* Card Actions (Zero-Overflow Layout) */
.office-card-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
}

.btn-card-primary {
    flex: 1;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.75rem;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-card-primary:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(217, 119, 6, 0.35);
}

.btn-card-quick {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857 !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-card-quick:hover {
    background: #10b981;
    color: #ffffff !important;
    border-color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
}

.btn-card-more {
    width: 38px;
    height: 38px;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-card-more:hover,
.btn-card-more:focus {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn-card-more::after {
    display: none; /* Hide default bootstrap arrow */
}

/* Office Dropdown Menu */
.office-actions-dropdown .dropdown-menu {
    border-radius: 0.85rem !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.4rem;
    min-width: 190px;
    z-index: 1050;
}

.office-actions-dropdown .dropdown-item {
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    border-radius: 0.55rem;
    transition: all 0.15s ease;
}

.office-actions-dropdown .dropdown-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.office-actions-dropdown .dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* ==========================================================================
   TABLE VIEW & COMPACT ACTIONS SYSTEM
   ========================================================================== */
.table-actions-cell {
    white-space: nowrap;
}

.table-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-table-action-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem;
    border-radius: 0.65rem;
    border: none;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-table-action-primary:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35);
}

.btn-table-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.65rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-table-action-icon:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.btn-table-action-icon.quick-add:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.btn-table-action-icon::after {
    display: none;
}
