
.jqx-grid {
    border-radius: 10px;
    overflow: hidden; /* makes the contents follow the rounded corners */
  }

.jqx-grid-row:nth-child(even),
.jqx-tree-grid-row:nth-child(even) {
    background-color: #994e4e !important;
}

.jqx-grid-row:nth-child(odd),
.jqx-tree-grid-row:nth-child(odd) {
    background-color: #ffffff !important;
}

/* Header row container can take the fixed height */
.jqx-grid .jqx-grid-header {
    height: 80px !important;            /* set once for all headers */
    min-height: 80px !important;
    overflow: visible !important;
    background: #031d36;
}

.jqx-grid-column-header {
    position: relative;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: bold !important;
    height: 70px !important;
    min-height: 70px !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box;/* Changed from 24px to 13px to match your top rule */
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.3 !important;
    border-left: none !important;
    border-right: none !important;
}

/* If jQWidgets nests an inner content div, ensure it can wrap */
.jqx-grid .jqx-grid-column-header > div {
display: block;
height: auto !important;
line-height: 1.3 !important;
white-space: normal !important;
overflow: visible !important;
}

/* Shorter, thicker right divider that scales to the fixed height */
.jqx-grid-column-header::after {
    content: "";
    position: absolute;
    right: 0px;  /* Keep at 0 */
    top: 8px;
    height: calc(100% - 16px);
    border-right: 3px solid #d3dce5;
    pointer-events: none;
    z-index: 999;  /* Add high z-index to keep it on top */
}

.jqx-grid .jqx-grid-column-header:last-child::after {
    display: none;
}
  
* {
-webkit-transition-delay: 0s !important;
transition-delay: 0s !important;
}


/* Fixed height for tree grid cells */
.jqx-grid-cell {
    height: 50px !important; /* Adjust this value as needed */
    min-height: 50px !important;
    max-height: 50px !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    position: relative !important;
    border-left: none !important;
    border-bottom: none !important;
    border-top: none !important;
    font-size: 14px !important;
    color: #4a4a4a !important;
    padding-left: 12px;
    padding-right: 12px;
    
}

.custom-tooltip {
position: fixed;
background-color: rgba(0, 0, 0, 0.9);
color: white;
padding: 6px 10px;
border-radius: 4px;
font-size: 12px;
white-space: nowrap;
pointer-events: none;
font-family: Arial, sans-serif;
display: none;
}

body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #fff;
}
#treeGrid, #treeGridFunds {
    margin-top: 10px;
    font-family: Arial, sans-serif;
}
#loading {
    text-align: center;
    padding: 50px;
    color: #666;
    font-size: 16px;
}


.jqx-grid-column-header {
    font-weight: bold;
}



.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s;
}

.modal-header {
    padding: 20px;
    background-color: #940F1A;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}
.modal-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    background-color: #f9f9f9;
    padding: 0;
    margin: 0;
    position:sticky;
}

.tab-button {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position:sticky;
}

.tab-button:hover {
    background-color: #f0f0f0;
    color: #333;
    position:sticky;
}

.tab-button.active {
    color: #940F1A;
    border-bottom-color: #940F1A;
    background-color: white;
    position:sticky;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #ddd;
}

.modal-body {
    padding: 25px;
    line-height: 1.6;
}

.modal-section {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-section:last-child {
    border-bottom: none;
}

.modal-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #940F1A;
    font-size: 18px;
}

.modal-body p {
    margin: 10px 0;
    font-size: 15px;
}

.modal-body strong {
    color: #333;
    font-weight: 600;
    display: inline-block;
    min-width: 150px;
}

.modal-body .badge {
    display: inline-block;
    background-color: #940F1A;
    color: #940F1A;
    padding: 5px 12px;
    border-radius: 4px;
    margin: 5px 5px 5px 0;
    font-weight: 500;
    font-size: 14px;
}

.modal-body .badge.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.modal-body .badge.warning {
    background-color: #fff3e0;
    color: #ef6c00;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.main-tabs-container {
display: flex;
width: 100%;
padding: 0;
margin: 0;
/* Optional: ensure it stretches across parent even if parent has padding */
/* You can also place the container in a full-width parent or reset parent padding */
}

.main-tab-button {
flex: 1 1 0;              /* Make all tabs share width equally */
text-align: center;        /* Center tab labels */
padding: 14px 0;           /* Keep vertical padding; remove horizontal so headings don’t squeeze */
border: none;
background: none;
cursor: pointer;
font-size: 16px;
font-weight: 600;
color: #666;
border-bottom: 3px solid transparent;
transition: all 0.3s ease;
font-family: 'Inter', sans-serif;
/* Optional: prevent wrapping to multiple lines if labels are long */
white-space: nowrap;
}

.main-tab-button:hover {
background-color: #f0f0f0;
color: #333;
}

.main-tab-button.active {
color: #940F1A;
border-bottom-color: #940F1A;
background-color: white;
}

.main-tab-content {
display: none;
}

.main-tab-content.active {
display: block;
}

.jqx-grid-cell {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    border-right: 3px solid #c82ac0;
} 


.bold-cell {
    font-weight: bold
  }
  
.project-name-column {
    border-right: 2px solid #c5c5ce !important;
    font-size: 12px;
    z-index: 9999
}

/* TreeGrid Icon Fixes */
.jqx-tree-grid-icon {
    cursor: pointer !important;
    width: 16px !important;
    height: 16px !important;
    display: inline-block !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
    position: relative !important;
}

/* Collapsed state (arrow pointing right) */
.jqx-tree-grid-icon.jqx-icon-arrow-right::before,
.jqx-tree-grid-expand-button::before {
    content: '▼' !important;
    color: #666 !important;
    font-size: 12px !important;
    font-weight: bold !important;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Expanded state (arrow pointing down) */
.jqx-tree-grid-icon.jqx-icon-arrow-down::before,
.jqx-tree-grid-collapse-button::before {
    content: '▶' !important;
    color: #666 !important;
    font-size: 12px !important;
    font-weight: bold !important;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.jqx-tree-grid-icon:hover::before,
.jqx-tree-grid-expand-button:hover::before,
.jqx-tree-grid-collapse-button:hover::before {
    color: #940F1A !important;
}

/* Remove default backgrounds */
.jqx-tree-grid-icon,
.jqx-tree-grid-expand-button,
.jqx-tree-grid-collapse-button {
    background: none !important;
    background-image: none !important;
}

/* Proper indentation for hierarchy levels */
.jqx-tree-grid-title {
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Level 0 (root) - no extra indent */
.jqx-tree-grid-row .jqx-tree-grid-title {
    padding-left: 0px !important;
}

/* Level 0 (root) - no extra indent */
.jqx-tree-grid-row[level="0"] .jqx-tree-grid-title {
    padding-left: 0px !important;
}

/* Level 1 (children) - indent */
.jqx-tree-grid-row[level="1"] .jqx-tree-grid-title {
    padding-left: 24px !important;
}

/* Level 2 (grandchildren) - more indent */
.jqx-tree-grid-row[level="2"] .jqx-tree-grid-title {
    padding-left: 48px !important;
}

/* Level 3+ - even more indent */
.jqx-tree-grid-row[level="3"] .jqx-tree-grid-title {
    padding-left: 72px !important;
}




/* 1. Resize the container of the Simple Filter */
.jqx-grid-toolbar {
    height: 65px !important; /* Match the JS toolbarHeight */
    min-height: 65px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #031d36 !important;
    border-bottom: 2px solid #ffffff !important;
    padding: 0 12px !important;
    box-sizing: border-box; 
    /* This overrides the absolute positioning 'top' glitch if needed */
    top: 0 !important; 
}

/* 2. Resize the Input Field and its Wrapper */
/* This targets the specific input group generated by simple filter */
.jqx-grid-toolbar .jqx-input-group {
    height: 45px !important; /* Your desired input height */
    margin: 0 !important;
}

.jqx-grid-toolbar .jqx-input-group input {
    height: 100% !important;
    line-height: normal !important;
    font-size: 16px !important;
    padding: 4px 10px !important;
}

/* 3. Resize the Dropdown (Column Chooser) if it exists next to search */
.jqx-grid-toolbar .jqx-dropdownlist-state-normal {
    height: 45px !important;
    margin: 0 10px 0 0 !important;
    display: flex;
    align-items: center;
}

/* 4. Style the "Search:" Text */
.jqx-grid-toolbar > div {
    color: white !important;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    height: 100%;
}


/* Optional */
/* 1. Push the Column Headers down */
.jqx-grid-header {
    /* The difference between your new height (65px) and the default (~35px) */
    margin-top: 30px !important; 
    z-index: 10; /* Ensure headers stay on top of rows */
}




#horizontalScrollBartreegrid {
    top: 550px !important;
}

#verticalScrollBartreeGrid{
    margin-top: 30px !important;
}
/* 1. Make the Search Icon White */
.jqx-grid-toolbar .jqx-icon-search {
    transform: scale(1.2); /* Optional: Make it slightly bigger */
    cursor: default;
}

/* Target the Close/Clear Icon */
.jqx-grid-toolbar .jqx-icon-close {
    /* 1. MAKE IT BIGGER */
    width: 24px !important;       /* Increased from 16px */
    height: 24px !important;
    background-size: 16px !important; /* Keep the 'X' graphic sharp inside the 24px box */
    
    /* 2. FIX VISIBILITY (Z-Index & Position) */
    position: relative !important;   /* Force it to sit on top of everything */
    opacity: 1 !important;        /* Ensure it's not transparent */

    /* 3. STOP IT FROM BEING SQUASHED */
    flex-shrink: 0 !important;    /* Prevents the input field from crushing it */
    margin-left: 8px !important;  /* Add space between Search Icon and Close Icon */
    margin-right: 5px !important; /* Space from the right edge */
    cursor: pointer;
}

/* 3. Ensure the 'Clear' button container is positioned correctly */
/* The close button often has weird default margins in the toolbar */
.jqx-grid-toolbar .jqx-input-group .jqx-icon-close {
    margin-top: -2px !important; /* Fine-tune vertical alignment */
    right: 5px !important; /* Ensure it's not sticking to the edge */
}

/* SEARCH ICON FIX */
/* Target the search icon container */
.jqx-grid-toolbar .jqx-icon-search,
.jqx-grid-toolbar .jqx-icon-search-white {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    position: relative !important;
    margin-right: 8px !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-radius: 4px 0 0 4px !important;
    padding: 4px !important;
}

/* Create a visible search icon using CSS */
.jqx-grid-toolbar .jqx-icon-search::before,
.jqx-grid-toolbar .jqx-icon-search-white::before {
    content: "🔍" !important;
    font-size: 16px !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff !important;
    opacity: 1 !important;
    line-height: 1;
}

/* CLOSE/CLEAR ICON FIX */
.jqx-grid-toolbar .jqx-icon-close,
.jqx-grid-toolbar .jqx-icon-close-white {
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    background-color: transparent !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-shrink: 0 !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
    cursor: pointer !important;
}

/* Create a visible X using CSS */
.jqx-grid-toolbar .jqx-icon-close::before,
.jqx-grid-toolbar .jqx-icon-close-white::before {
    content: "✕" !important;
    font-size: 20px !important;
    font-weight: bold !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgb(182, 37, 37) !important;
    opacity: 1 !important;
    line-height: 1;
}

/* Hover effect for close button */
.jqx-grid-toolbar .jqx-icon-close:hover::before,
.jqx-grid-toolbar .jqx-icon-close-white:hover::before {
    color: #ff6b6b !important;
}

/* Ensure the input group container doesn't hide the icons */
.jqx-grid-toolbar .jqx-input-group {
    display: flex !important;
    align-items: center !important;
    background: white !important;
    border-radius: 4px !important;
    padding: 0 8px !important;
}

/* Make sure icons are visible within the input group */
.jqx-grid-toolbar .jqx-input-group > * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix the input field to not overlap icons */
.jqx-grid-toolbar .jqx-input-group input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
}
/* Target the search icon container/addon */
.jqx-grid-toolbar .jqx-input-group-addon {
    background-color: white !important;
    border: 1px solid white !important;
    border-right: none !important; /* Remove right border so it merges with input */
}

/* If you need to target it more specifically */
.jqx-grid-toolbar .jqx-fill-state-normal.jqx-input-group-addon {
    background-color: white !important;
    border-color: white !important;
}

/* Also ensure no border/background from jqx default states */
.jqx-grid-toolbar .jqx-input-group-addon.jqx-fill-state-normal,
.jqx-grid-toolbar .jqx-input-group-addon.jqx-fill-state-hover,
.jqx-grid-toolbar .jqx-input-group-addon.jqx-fill-state-pressed {
    background-color: white !important;
    border-color: white !important;
}

  
.modal-section summary::-webkit-details-marker {
    margin-right: 8px; /* space between arrow and text */
}



.modal-title {
display: flex;
align-items: center;
cursor: pointer;
color: #940F1A; /* Title color */
font-weight: bold;
font-size: 1.2rem;
padding-bottom: 10px; /* Adds space below the title */
}

.modal-title::after {
content: "▶"; /* Closed state arrow */
margin-left: 8px; /* Space between text and arrow */
transition: transform 0.2s ease;
color: #940F1A; /* Make arrow same color as title */
}

details[open] .modal-title::after {
transform: rotate(90deg); /* Rotate arrow when open */
}

  


.main-tabs-container {
    position: sticky;
    top: 0; /* Sticks to the top of its scrollable parent */
    background: #fff; /* Ensure background covers content behind */
    z-index: 10; /* Keep it above other elements */
    padding: 10px;
    border-bottom: 1px solid #ccc;
  }
  
.change-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ff8c00;
    border-radius: 50%;
    margin-left: 6px;
    cursor: help;
    position: relative;
    vertical-align: middle;
}

.change-tooltip {
    display: none !important;
}

.change-tooltip-popup {
    position: fixed;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 999999;
    pointer-events: none;
}

.change-tooltip-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Toolbar layout using CSS Grid */
.jqx-grid-toolbar {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
    background: #031d36 !important;
    border-radius: 8px 8px 0 0;
    padding: 8px 10px !important;
    height: 65px !important;
    min-height: 65px !important;
}

/* Label goes in first column */
.jqx-grid-toolbar > div:first-child {
    grid-column: 1 !important;
    color: white !important;
    font-weight: 600;
    font-size: 16px;
}

/* Input group goes in second column */
.jqx-grid-toolbar .jqx-input-group {
    grid-column: 2 !important;
    justify-self: start !important;
}

/* Note goes in third column */
.tg-toolbar-note {
    grid-column: 3 !important;
    padding-right: 20px;
    color: #fff;
    opacity: 0.95;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Hide the tg-toolbar-left container if it exists */
.tg-toolbar-left {
    display: contents !important;
}

/* This targets the icon inside the wrapper when you hover the wrapper */
.icon-hover-container:hover .mantine-ActionIcon-root {
    transform: scale(1.15);        /* Popping effect (15% bigger) */
    filter: brightness(1.4);       /* Makes the dark blue background lighter */
}

/* Ensure the transition is smooth */
.icon-hover-container .mantine-ActionIcon-root {
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}


/* Selected text + control text */
.custom-dropdown{
    color: black !important;
}

/* Dropdown option text */
.custom-dropdown{
    color: black !important;
}

/* Placeholder text */
#sector-dropdown .Select-placeholder {
    color: black !important;
}



/* Prevent text wrapping and add proper spacing */
.custom-dropdown .Select-menu-outer div {
    line-height: 1.5 !important;
    white-space: nowrap !important;  /* Prevent wrapping */
}

/* Make the dropdown menu wider if needed */
.custom-dropdown .Select-menu-outer {
    min-width: 200px !important;  /* Adjust as needed */
}



.parent-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.parent-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background-color: #940F1A;
    color: white;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.no-parent-projects {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

/* Remove default sort icon backgrounds */
.jqx-grid-column-sorticon {
    background-image: none !important;
    background-color: transparent !important;
    width: 16px !important;
    height: 16px !important;
    margin-left: 8px !important;
    position: relative !important;
}

/* Ascending sort arrow */
.jqx-grid-column-sortascbutton::before{
    content: '▲' !important;
    color: #ffffff !important;
    font-size: 12px !important;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Descending sort arrow */
.jqx-grid-column-sortdescbutton::before {
    content: '▼' !important;
    color: #ffffff !important;
    font-size: 12px !important;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Remove background from sort button containers */
.jqx-grid-column-sortascbutton,
.jqx-grid-column-sortdescbutton {
    background-color: #031d36 !important;
    background-image: none !important;
    border: none !important;
}

/* wrapping the skills data occupational group select */
/* Turn the whole segmented control wrapper into flex */
.segmented-wrap.mantine-SegmentedControl-root {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px;
    position: relative;
}

/* EXCLUDE the indicator so it doesn't take up a flex "slot" */
.segmented-wrap .mantine-SegmentedControl-indicator {
    position: absolute !important;
    top: 0;
    left: 0;
}

/* Force EXACTLY 3 per row */
.segmented-wrap .mantine-SegmentedControl-control {
    flex: 0 0 calc(33.333% - 8px) !important;  /* 3 per row */
    max-width: calc(33.333% - 8px) !important;
    box-sizing: border-box !important;
}

/* Styling for the custom tooltip popup for the table headers */
.change-tooltip-popup {
    position: fixed;
    background: #333;
    color: #fff;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 99999;
    pointer-events: none;
    
    /* --- WRAPPING LOGIC --- */
    max-width: 300px;
    width: max-content;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.5;
}