/* ========================================
   MODERN SIDEBAR LAYOUT STYLES
   ======================================== */

/* Body Layout with Sidebar */
body.modern-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Navigation Bar - Fixed */
body.modern-layout #header.navbar,
#header.navbar {
    height: 64px;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

/* Force horizontal alignment for navbar items */
.navbar .d-flex,
#header .d-flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.navbar .d-flex > *,
#header .d-flex > * {
    display: inline-flex !important;
    flex-shrink: 0 !important;
    align-items: center !important;
}

.navbar .dropdown,
#header .dropdown {
    display: inline-flex !important;
    position: relative;
}

.navbar .icon_wrap,
#header .icon_wrap {
    display: inline-flex !important;
    align-items: center !important;
}

.navbar .navbar-brand,
#header .navbar-brand {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar .navbar-brand img,
#header .navbar-brand img {
    height: 50px !important;
    width: auto !important;
}

/* Sidebar - Fixed Left - Zynix Style */
.sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 240px;
    height: calc(100vh - 64px);
    overflow-y: hidden;
    overflow-x: hidden;
    z-index: 1020;
    box-shadow: 2px 0 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar .nav-link {
    color: var(--modern-text);
    padding: 0.875rem 1.5rem;
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    margin: 0.25rem 0.75rem;
    border-radius: 6px;
}

.sidebar .nav-link i,
.sidebar .nav-link svg {
    width: 24px;
    margin-right: 28px;
    font-size: 17px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar .nav-link::after {
    content: '›';
    font-size: 20px;
    color: #dee2e6;
    margin-left: auto;
    transition: all 0.2s ease;
    pointer-events: none;
    line-height: 1;
}

.sidebar .nav-link:hover::after {
    color: #F85914;
    transform: translateX(3px);
}

.sidebar .menu_item.current_item .nav-link::after,
.sidebar .menu_item .nav-link.current_item::after {
    color: #F85914;
}

/* Hide arrow for dropdown menu items */
.sidebar .dropdown_toggle .nav-link::after {
    display: none;
}

.sidebar .nav-link:hover {
    /* background-color: #f8f9fa; @BBI */
    background-color: var(--bg-light);
    color: #F85914;
    border-left-color: transparent;
    text-decoration: none;
    transform: translateX(2px);
    border-left: 3px solid #F85914;
}

.sidebar .menu_item.current_item .nav-link,
.sidebar .menu_item .nav-link.current_item {
    /* background-color: #fff5f0; @BBI */
    background-color: var(--bg-light);
    color: #F85914;
    border-left-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(248, 89, 20, 0.1);
}

/* Sidebar Dropdown */
.sidebar .dropdown {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
}

.sidebar .dropdown_inner_wrap {
    position: relative;
    background: #f8f9fa;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0.25rem;
}

.sidebar .dropdown_inner_wrap::before {
    display: none;
}

.sidebar .dropdown_list_item {
    padding: 0.5rem 1.5rem 0.5rem 2.5rem;
    border-bottom: none;
    font-size: 14px;
}

.sidebar .dropdown_list_item:hover {
    background-color: #e9ecef;
}

/* Main Content Area */
body.modern-layout .main-content {
    margin-left: 240px;
    margin-top: 64px;
    min-height: calc(100vh - 64px);
    background-color: #f5f7fb;
    padding: 0;
}

.content-wrapper {
    padding: 2rem;
}

/* Footer Adjustment */
body.modern-layout footer {
    margin-left: 240px;
}

/* ========================================
   ZYNIX-STYLE CARD CONTAINERS
   ======================================== */

/* Enhanced Card Design */
.card,
.table-container {
    /* background: #ffffff; */
    background: var(--bg-white);
    /* color: var(--modern-txt); */
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.card:hover,
.table-container:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Card Header */
.card-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--color-hd-t);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 16px;
    /* color: #2c3e50; */
    color: var(--modern-text);
}    
.card-header:first-child {
    /* border-radius: calc(.5rem - 1px) calc(.5rem - 1px) 0 0; */
    border-radius: .45rem .45rem 0 0;
}

/* Card Body */
.card-body {
    padding: 1.5rem;
    border-radius: 0 0 .45rem .45rem;
    background-color:var(--card-body);
}

/* Table Container - Zynix Style */
.table-container {
    overflow: hidden;
}

/* Universal Table Card Wrapper */
table {
    width: 100%;
    background: var(--bg-white);
    color: var(--modern-text)!important;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

/* Modern Table Styling */
table.fully_mobile,
table {
    border: none;
    margin-bottom: 0;
}

table.fully_mobile th,
table th {
    color: var(--modern-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* background-color:#f8f9fa; */
    /* background-color:var(--bg-light); */
    /* font-weight: 600; */
    /* font-size: 13px; */
    /* border-bottom: 2px solid #dee2e6; */
    /* @BBI padding: 1rem 0.75rem !important; */
}
table.fully_mobile th {
  font-weight: 500;
  font-size: 12px;
  border-bottom: 1px solid var(--color-hd);
  vertical-align: middle;
  padding: 6px 2px;

  /* color: red; */
  /* text-transform: uppercase; */
  /* border: 1px solid #dbd9d2; */
  /* @BBI padding: 12px 12px !important; */
  /* background-color: #f8f9fa; */
  /* background-color:var(--bg-light); */
}


table.fully_mobile td, table td {
    border-top: 1px solid #f0f0f0;
    padding: 0.875rem 0.75rem !important;
    vertical-align: middle;
}

table.fully_mobile tr:nth-child(2n), table tbody tr:nth-child(2n) {
    /* background-color: #fafafa; */
    background-color: var(--bg-light);
    color: var(--modern-text)!important;

}

table.fully_mobile tr:hover, table tbody tr:hover {
    /* background-color: #f0f7ff; */
    background-color: var(--bg-tr-hover)!important;
    color: var(--input-text)!important;
    transition: background-color 0.15s ease;
}
tr.spaceUnder > td {
  padding: 10px;
  align-items: flex-end;
}
.padding td {
  vertical-align: middle;
  padding: 10px;
}
table {
  border: 1px solid #dbd9d2;
  border-collapse: collapse;
  text-align: center;
  max-width: 100%;
  width: 100%;
  /* table-layout: fixed; */
}
table.full_width {
  width: 100%;
  display: table;
}
table.fully_mobile td {
  word-break: break-word;
}
table.fully_mobile td {
  /* border: 1px solid #dbd9d2; */
  border-top: 1px solid rgb(221, 188, 170);
  vertical-align: middle;
  padding: 8px 8px !important;
}
table.fully_mobile tr:hover {
  /* background-color: #f1f1f1; */
  /* background-color: #edfefe; @BBI*/
  /* background-color: var(--bg-light-2); */
  background-color: red;
}
table.fully_mobile tr {
  transition: all 0.2s linear;
}

/* end table th td tr */
/* Remove heavy borders */
table.fully_mobile,
table.fully_mobile th,
table.fully_mobile td,
table,
table th,
table td {
    border-color: #f0f0f0;
}

/* Wrapper for tables to add card styling */
.page_wrap table,
.content-wrapper table,
.main-content table {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    /* @BBI margin-bottom: 2rem; */
    /* margin-bottom: 1rem; */
}

/* ========================================
   BUTTON STYLES - Orange Accent Only
   ======================================== */

.btn {
    background: #F85914;
    border: 2px solid #F85914;
    color:var(--bg-white);
    transition: all 0.2s ease;
}

.btn:hover {
    background: #d24d14;
    border-color: #d24d14;
    color:var(--bg-white);
    box-shadow: 0 4px 8px rgba(248, 89, 20, 0.25);
}

/* ========================================
   BOOTSTRAP DROPDOWN OVERRIDES
   ======================================== */

/* Sidebar collapse submenu styling */
.sidebar .collapse {
    background:var(--bg-white);
    padding: 0.25rem 0;
}

.sidebar .submenu-item {
    padding: 0.5rem 1.5rem 0.5rem 3.5rem !important;
    font-size: 14px;
    color: var(--modern-text);
    display: flex;
    align-items: center;
    border-left: 3px solid transparent !important;
    margin: 0.25rem 0.75rem;
    border-radius: 6px;
}

.sidebar .submenu-item:hover {
    background-color:var(--bg-light);
    color: #F85914;
    text-decoration: none;
}

.sidebar .submenu-item::after {
    display: none !important;
}

/* Top bar dropdown styling - Proper positioning */
.navbar .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    margin-top: 0.5rem;
    z-index: 1050;
    background-color: var(--bg-white);
}

.navbar .dropdown-item {
    padding: 0.75rem 1rem;
    /* color: #464646; @BBI */
    color: var(--modern-text);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
}

.navbar .dropdown-item:hover {
    /* background-color: #f8f9fa; @BBI */
    background-color:var(--bg-light);
    color: #F85914;
}

/* Dropdown toggle arrow */
.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Hide arrow for sidebar dropdowns */
.sidebar .dropdown-toggle::after {
    display: none;
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 991px) {
    /* Hide sidebar on mobile */
    .sidebar {
        transform: translateX(-100%);
    }
    
    /* Remove sidebar margin on mobile */
    body.modern-layout .main-content,
    body.modern-layout footer {
        margin-left: 0;
    }
    
    /* Show burger button on mobile */
    .burger-wrap {
        display: block !important;
    }
    
    /* Mobile menu overlay (existing burger menu) */
    .menu_wrap {
        position: fixed;
        display: flex;
        flex-direction: column;
        background:var(--bg-white);
        max-width: 320px;
        width: 100%;
        height: calc(100% - 64px);
        top: 64px;
        overflow-y: auto;
        right: -370px;
        transition: all 0.3s ease-in-out;
        border-left: 1px solid #dbd9d2;
        z-index: 1025;
    }
    
    .menu_wrap.active {
        right: 0;
    }
    
    .mobile-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu .menu_item a {
        display: block;
        padding: 1rem 1.5rem;
        color: #464646;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-menu .menu_item a:hover {
        /* background-color: #f8f9fa; @BBI*/
        background-color: var(--bg-light);
        color: #F85914;
        text-decoration: none;
    }
}

@media (min-width: 992px) {
    /* Hide mobile menu and burger on desktop */
    .menu_wrap,
    .burger-wrap {
        display: none !important;
    }
}

/* ========================================
   CONTENT SPACING & CARDS
   ======================================== */

/* Make top dashboard cards equal height - FIXED approach to prevent chart stretching */
.container-fluid > .row:first-child .card,
.container-fluid > .row:nth-child(2) .card,
.container-fluid > .row:nth-child(3) .card {
    min-height: 450px;
    max-height: 450px;
}

/* Keep chart containers at fixed height to prevent infinite stretching */
.container-fluid > .row:first-child .card .card-body {
    height: 300px;
    overflow: hidden;
}

/* Allow scrolling only for list-based content (projects and hours status) */
.container-fluid > .row:nth-child(2) .card .card-body,
.container-fluid > .row:nth-child(3) .card .card-body {
    min-height: 300px;
    max-height: 300px;
    overflow-y: auto;
}

.page_wrap {
    max-width: 100%;
    padding: 0;
}

/* Card-style containers for content sections */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s ease;
}

/* ========================================
   EDIT PAGE LAYOUTS - MODERN CARD DESIGN
   ======================================== */

/* Edit Page Container with Sidebar */
.edit-page-container {
    display: flex;
    gap: 2rem;
    /* @BBI padding: 2rem; */
    background-color:var(--bg-light);
    min-height: calc(100vh - 64px);
}

/* Edit Page Sidebar Navigation */
.edit-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.edit-sidebar-card {
    background:var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(255, 164, 95, 0.502);
    border: 1px solid var(--bg-light);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.edit-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-hd);
    background:var(--bg-white);
}

.edit-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color:var(--modern-text);
    margin: 0;
}

.edit-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.edit-sidebar-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.edit-sidebar-nav-item:last-child {
    border-bottom: none;
}

.edit-sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--modern-text);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.edit-sidebar-nav-link:hover {
    background-color:var(--bg-light);
    color: #F85914;
    text-decoration: none;
    border-left-color: #F85914;
}

.edit-sidebar-nav-link.active {
    background-color:var(--bg-active); 
    color: #F85914;
    font-weight: 600;
    border-left-color: #F85914;
}

.edit-sidebar-nav-link svg,
.edit-sidebar-nav-link i {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Edit Page Content Area */
.edit-content {
    flex: 1;
    min-width: 0;
}

/* Edit Page Section Cards */
.edit-section-card {
    background:var(--bg-light-3);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(253, 162, 106, 0.45);
    border: 1px solid #e8e8e8;
    margin-bottom: 2rem;
    overflow: hidden;
}

.edit-section-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background:var(--bg-white);
}

.edit-section-title {
    font-size: 18px;
    font-weight: 600;
    color:var(--modern-text);
    margin: 0;
}

.edit-section-body {
    padding: 1.5rem;
}

/* Form Grid Layout */
.form-grid-x {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.form-grid-x100 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--modern-text);
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.625rem 0.875rem;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #F85914;
    box-shadow: 0 0 0 0.2rem rgba(248, 89, 20, 0.15);
    outline: none;
}

/* Action Buttons */
.edit-actions {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1.5rem;
    background:var(--bg-light);
    border-top: 1px solid #f0f0f0;
    justify-content: flex-end;
}

.edit-actions .btn {
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .edit-page-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .edit-sidebar {
        width: 100%;
        position: relative;
    }
    
    .edit-sidebar-card {
        position: relative;
        top: 0;
    }
    
    .form-grid-4,
    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .form-grid-x {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .edit-actions {
        flex-direction: column;
    }
    
    .edit-actions .btn {
        width: 100%;
    }
}

/* ========================================
   FORM IMPROVEMENTS
   ======================================== */
.form-control {
    background-color:var(--bg-white);
    color:var(--modern-text);
}
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
select.form-control {
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: #F85914;
    box-shadow: 0 0 0 0.2rem rgba(248, 89, 20, 0.15);
    background-color:var(--bg-white);
    color:var(--modern-text);
}

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

.bg-light {
    background-color: #f5f5f5 !important;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}

.border-light {
    border-color: #e0e0e0 !important;
}

/* Orange accent for active states */
.text-primary,
.text-orange {
    color: #F85914 !important;
}

.border-primary,
.border-orange {
    border-color: #F85914 !important;
}

.bg-primary-light {
    background-color: #fff5f0 !important;
}

/* ========================================
   DASHBOARD SPECIFIC STYLES - TILES WITH STATS
   ======================================== */

.dashboard-tile {
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.dashboard-tile:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border-left: 4px solid #F85914;
    transform: translateY(-2px);
}

.dashboard-tile .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex: 1;
}

/* Statistics Row at Top */
.dashboard-stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    gap: 0.5rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #F85914;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 10px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Title */
.dashboard-tile-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1rem;
}

/* Menu Items */
.dashboard-tile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-tile-menu-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    color: var(--modern-text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    /* background: #f8f9fa; @BBI */
    background: var(--bg-light);
    border: 1px solid transparent;
}

.dashboard-tile-menu-item i {
    font-size: 11px;
    color: #F85914;
    margin-right: 0.625rem;
    transition: all 0.2s ease;
}

.dashboard-tile-menu-item span {
    flex: 1;
}

.dashboard-tile-menu-item:hover {
    /* background: #fff5f0; @BBI */
    background: var(--bg-light-2);
    color: #F85914;
    text-decoration: none;
    border-color: #ffe8dd;
    transform: translateX(4px);
}

.dashboard-tile-menu-item:hover i {
    transform: translateX(2px);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .dashboard-stats-row {
        flex-wrap: wrap;
    }
    
    .stat-item {
        min-width: 70px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .dashboard-tile-title {
        font-size: 16px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .dashboard-tile-menu-item {
        padding: 0.5rem 0.75rem;
        font-size: 13px;
    }
}

/* Legacy Support - Keep old classes for backward compatibility */
.dashboard-card {
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.row > [class*='col-'] > .dashboard-card,
.row > [class*='col-'] > .dashboard-tile {
    width: 100%;
}

.dashboard-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
}

.dashboard-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dashboard-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dashboard-menu-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--modern-text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.dashboard-menu-item:hover {
    background: #fff5f0;
    color: #F85914;
    text-decoration: none;
    transform: translateX(4px);
}

.dashboard-menu-item i {
    font-size: 12px;
    color: #F85914;
}

.btn-outline-primary {
    color: #F85914;
    border-color: #F85914;
}

.btn-outline-primary:hover {
    background: #F85914;
    border-color: #F85914;
    color:var(--bg-white);
}
.menu-user-name {
  margin-left: 1rem;
  /* color: #777; @BBI*/
  color: var(--modern-text);
  font-weight: bold;
}

/* ========================================
   MOBILE MENU / BURGER MENU
   ======================================== */

/* Hide burger menu on desktop */
@media (min-width: 992px) {
    .burger-wrap {
        display: none !important;
    }
}

/* Mobile styles */
@media (max-width: 991px) {
    /* Show burger menu on mobile */
    .burger-wrap {
        display: flex !important;
        align-items: center;
        cursor: pointer;
        margin-right: 15px;
    }
    
    /* Hide user name text on mobile - show only avatar - More specific selectors to override .d-flex > * */
    .navbar .d-flex > .menu-user-name,
    .navbar .d-flex > div.menu-user-name,
    #header .d-flex > .menu-user-name,
    #header .d-flex > div.menu-user-name,
    .navbar .menu-user-name,
    #header .menu-user-name,
    .menu-user-name,
    .name.menu-user-name,
    div.menu-user-name {
        display: none !important;
    }
    
    /* Hide language text on mobile - show only icon */
    .dropdown-toggle span {
        display: none !important;
    }
    
    /* Mobile menu overlay */
    .menu_wrap {
        display: block;
        position: fixed;
        background:var(--bg-white);
        max-width: 320px;
        width: 100%;
        height: calc(100% - 64px);
        top: 64px;
        overflow-y: auto;
        right: -370px;
        transition: all 0.3s ease-in-out;
        border-left: 1px solid #dbd9d2;
        z-index: 1025;
    }
    
    .menu_wrap.active {
        right: 0;
    }
    
    /* Mobile menu wrapper - flex layout for language selector at bottom */
    .menu_wrap .wrap {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }
    
    /* Mobile language selector styling */
    .mobile-language-selector {
        margin-top: auto;
    }
    
    .mobile-language-item:hover {
        background-color: #f8f9fa;
        color: #F85914 !important;
    }
    
    .mobile-language-item:last-child {
        border-bottom: none !important;
    }
    
    /* Hide desktop language selector on mobile - it's in mobile menu now */
    .navbar .dropdown.mr-3:last-of-type,
    #header .dropdown.mr-3:last-of-type {
        display: none !important;
    }
    
    /* Stack card header content on mobile for better dropdown positioning */
    .card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .card-header > div {
        width: 100%;
    }
    
    .card-header h5 {
        width: 100%;
    }
}
