/* Colors */
.btn-primary, .btn-secondary {
    --bs-btn-color: var(--bs-white)!important;
    --bs-btn-hover-color: var(--bs-white)!important;
    --bs-btn-active-color: var(--bs-white)!important;
    --bs-btn-disabled-color: var(--bs-white)!important;
}

/* Headings */
.header {
    background-color: var(--bs-primary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.header > * {
    color: var(--bs-white)!important;
}

.header h1,
.header h2,
.header h3,
.header h4
{
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Layout */
.full-width-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: var(--bs-white);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.dp-login-card {
    max-width: 600px;
    margin: 10vh auto auto auto;
    padding: 30px;
    background-color: var(--bs-white);
}

.topbar {
    display: none;
    height: 60px;
    z-index: 1100;
    align-items: center;
    border-bottom: 0.3px solid #e1e1e1;
}

.topbar.visible {
    display: flex !important;
}

.burger-btn {
    width: 30px;
    height: 30px;
    justify-content: center;
}

.sidebar {
    width: 250px;
    background-color: rgba(var(--bs-primary-rgb), 0.7);
    position: relative;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
    border-right: 0.5px solid var(--bs-primary);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.disabled-link {
    opacity: 0.5;
    cursor: not-allowed;
}
.disabled-link:hover {
    text-decoration: none;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.sidebar-header.hidden {
    display: none;
}

.sidebar-header img {
    max-height: 38px;
}

.sidebar-footer {
    margin-top: auto;
    margin-bottom: 10vh;
}

.sidebar .nav-link {
    color: white;
    padding: 12px 20px;
    border-left: 0.7px solid transparent;
    background-color: transparent;
    transition: all 0.2s ease;
}

.sidebar .btn.btn-toggle:hover,
.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background-color: var(--bs-white)!important;
    color: var(--bs-primary)!important;
    border-left-color: white;
}

.sidebar .nav-link.disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
  }

.content-wrapper {
    margin-left: 250px;
    padding: 4.5rem 1rem 1rem 1rem;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .content-wrapper {
    margin-left: 0;
}

#topbar > div {
    padding: 0 1rem;
}

#topbarToggle {
    margin: 0 1rem 0 0;
}

.dp-container-narrow {
    max-width: 1200px;
}

.dp-container-sm {
    max-width: 600px;
    padding: 2rem;
    margin: 10vh auto auto auto;
}

/* Dropdowns */

/* 🧼 Clean Tom Select wrapper */
.ts-wrapper {
    margin: 0;
    padding: 0;
    border: none;
}

/* 🧩 Single select box style */

.ts-control {
    border-color: var(--bs-border-color)!important;
}
.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
    border-radius: 6px;
}

.ts-wrapper.single .ts-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem 0 0.75rem;
    min-height: 2.5rem;
    background-color: #fff;
    box-shadow: none;
    font-size: 1rem;
    color: #212529;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
}

/* 🖋️ Selected item */
.ts-wrapper.single .ts-control .item {
    margin: 0;
    padding: 0;
    line-height: 1.5rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 🧼 Hide extra input space and separator */
.ts-wrapper.single .ts-control input {
    display: none !important;
}

/* 🔽 Arrow caret */
.ts-wrapper.single .ts-control::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--bs-gray-200);
    pointer-events: none;
    z-index: 1;
}

/* 🎨 Focus state */
.ts-wrapper.single.input-active .ts-control {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), .25);
}

#sidebar .ts-wrapper {
    background: transparent;
}

#sidebar .ts-control {
    background-color: transparent!important;
    color: white;
    border: 1px solid white;
    font-size: 14px;
}

#sidebar .ts-control:after {
    border-top-color: white;
}

#sidebar .list-group a {
    color: var(--bs-white);
    text-decoration: none;
}

#sidebar .list-group-item {
    background-color: transparent;
    border-left-color: transparent;
    border-left-width: 1px;
    border-bottom-width: 0;
}

#sidebar .list-group-item.active,
#sidebar .list-group-item:hover {
    background-color: var(--bs-white)!important;
    border-left-color: var(--bs-white);
}
#sidebar .list-group-item.active a,
#sidebar .list-group-item:hover a {
    color: var(--bs-primary);
}

#sidebar li,
#sidebar button,
#sidebar li a {
    border-radius: var(--bs-border-radius-sm);
}

.dp-main-menu > li {
    margin: 0 .3rem .4rem;
}

#sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--bs-primary-rgb),0.3) transparent;
}

#sidebar .admin-tools-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--bs-light-rgb),0.3) transparent;
}

#viewAsMenu > div {
}

#viewAsMenu > div label {
    padding-bottom: 8px;
}

.sidebar-menu-block {
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
}

.form-group input.form-control.is-invalid ,
.form-group input.form-control.is-valid {
    background-position: right calc(0.375em + 2.1875rem) center;
    padding-right: 70px;
}

/* Ensure proper vertical alignment of icons in sidebar form labels */
#sidebar .form-group label.form-label .fas {
    position: relative;
    top: 0;
    transform: none;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Eva styles */

/* File Upload Components */
.eva-file-upload-container {
    margin-bottom: 1rem;
}

.eva-file-input {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    width: 100%;
    min-height: 2.5rem;
}

/* Hide the default file input */
.eva-file-input input[type="file"] {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 2.5rem;
    cursor: pointer;
    z-index: 2;
}

/* Create a custom file input button */
.eva-file-input::before {
    content: 'Choose File';
    display: inline-block;
    background-color: var(--bs-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.eva-file-input::after {
    content: 'No file selected';
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin-left: 0.5rem;
    font-style: italic;
    color: #6c757d;
}

.eva-file-input[data-file-label]::after {
    content: attr(data-file-label);
    font-style: normal;
    color: var(--bs-primary);
    font-weight: 500;
}

.eva-file-input:hover::before {
    background-color: var(--bs-secondary);
}

.eva-file-preview {
    border: 1px dashed var(--bs-gray-300);
    padding: 0.75rem;
    border-radius: 0.375rem;
    background-color: var(--bs-gray-100);
    margin-bottom: 0.75rem;
}

.eva-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--form-card-bg);
    padding: 0.625rem;
    border-radius: 0.25rem;
    border: 1px solid var(--form-card-border);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.eva-file-name {
    flex: 1 1 40%;
    margin-right: 0.5rem;
    font-weight: 500;
    word-break: break-all;
}

.eva-file-status {
    display: inline-block;
    padding: 0.25em 0.625em;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
}

.eva-file-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
}

.eva-form-container .nav-item button * {
    color: var(--bs-primary);
}

.eva-form-container .nav-link.active {
    border-top-color: var(--bs-primary)!important;
    border-left-color: var(--bs-primary)!important;
    border-right-color: var(--bs-primary)!important;
    border-bottom-color: transparent!important;
    background-color: var(--bs-white);
}

.eva-form-container h1 {
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--bs-primary);
    padding-bottom: 0.5rem;
}

.eva-form-container h4 {
    color: var(--bs-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--bs-gray-300);
}

.eva-form-container textarea,
.eva-form-container input,
.eva-form-container select {
    background-color: var(--bs-gray-100)!important;
}

.eva-switch-input {
    width: 3em;
    height: 1.5em;
    margin-right: 0.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    border: 1px solid var(--bs-gray-400);
    border-radius: 2em;
    appearance: none;
    cursor: pointer;
    transition: background-position 0.15s ease-in-out;
}

input.eva-switch-input:checked {
    background-color: var(--bs-primary)!important;
    border-color: var(--bs-primary);
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.eva-bundle-container {
    margin-bottom: 1.25rem;
    border: 1px solid var(--bs-gray-300);
    border-radius: 0.375rem;
    padding: 0.875rem;
    background-color: var(--bs-gray-100);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.eva-bundle-description {
    font-size: 0.9rem;
    color: var(--bs-secondary);
    margin-top: -0.5rem;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.nodata-message {
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    color: #666;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-style: italic;
    margin-top: 0.25rem;
    text-align: center;
    font-size: 0.9rem;
}
.nodata-active .eva-field-label {
    color: #666;
}

.eva-field-label {
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--bs-dark);
    display: block;
    font-size: 0.95rem;
}

.eva-required-indicator {
    color: var(--bs-danger);
    margin-left: 0.25rem;
}

.eva-field-container {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background-color: var(--bs-white);
    border-radius: 0.25rem;
    border: 1px solid var(--bs-gray-300);
}

.eva-field-description {
    font-size: 0.9rem;
    color: var(--bs-secondary);
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.eva-bundle-instance {
    background-color: var(--form-card-bg);
    border: 1px solid var(--form-card-border);
    border-radius: 0.25rem;
    padding: 0.875rem;
    display: none;
}

.eva-bundle-instance.active,
.tab-pane.active,
.tab-pane.show.active,
.tab-pane.active.show {
    display: block !important;
}

.eva-bundle-instance {
    background-color: var(--bs-white);
    border: 1px solid var(--bs-gray-300);
    border-radius: 0.25rem;
    padding: 0.875rem;
    margin-top: 0.75rem;
    display: none;
}

.eva-category-section {
    background-color: var(--bs-gray-100);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--bs-primary);
}

.eva-category-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.fade-out {
  opacity: 1;
  transition: opacity 1s ease-out;
}

.fade-out.hidden {
  opacity: 0;
}

.ts-dropdown .active {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

/* Assets Styles */
/* Navbar styling */
.navbar {
    background-color: var(--bs-light);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--gray-dark);
    margin-left: 20px;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--bs-primary);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar-light .navbar-nav .nav-link-bold-large {
    font-size: 24px; /* Larger font */
    font-weight: 600; /* Semi-bold */
    color: #848f8a; /* Default text color */
    text-decoration: none; /* Remove underline */
}

.navbar-light .navbar-nav .nav-link-bold-large:hover {
    color: var(--bs-primary); /* Hover color, defined by your theme or a specific value */
}

.navbar-light .navbar-nav .nav-link-bold-large:active {
    color: var(--bs-primary); /* Active color (same as hover for consistency) */
}

/* Style for navbar links on larger screens */
.navbar-bold-large {
    font-weight: bold;
    font-size: 1.3rem; /* Default size for larger screens */
    text-decoration: none; /* Remove underline by default */
    color: inherit; /* Inherit text color by default */
    transition: all 0.3s ease; /* Smooth transition for hover and active effects */
}

/* Hover effect */
.nav-link-bold-large:hover {
    text-decoration: underline !important; /* Force underline on hover */
}


/* Container styling */
.container {
    background: var(--bs-white);
    border-radius: 8px;
    flex: 1;
    padding-top: 10px;
    padding-bottom: 10px;
}

.container h2, .container h3 {
    margin-bottom: 20px;
    color: var(--bs-primary);
}

.container p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-dark);
}

/* Form control focus styling */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Logo styling */
.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 150px;
}

/* Alert styling */
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Footer styling */
.footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    background: transparent;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer p {
    margin: 0;
    color: var(--bs-primary);
    font-size: 1rem;
    font-family: var(--font-family-sans-serif);
}

.footer img {
    max-width: 150px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .logo img {
        max-width: 120px;
    }
    .container h2, .container h3 {
        font-size: 1.2rem;
    }

    .footer img {
        max-width: 100px;
    }
}

/* Multi drop down */
.drop-primary .Select--multi .Select-value {
    background-color: var(--bs-primary);
    color: var(--bs-white);
}

.drop-primary .VirtualizedSelectFocusedOption {
    background-color: var(--bs-primary);
}

.drop-secondary .Select--multi .Select-value {
    background-color: var(--secondary);
    color: var(--bs-white);
}

.drop-secondary .VirtualizedSelectFocusedOption {
    background-color: var(--secondary);
}

.drop-warning .Select--multi .Select-value {
    background-color: var(--warning);
    color: var(--white);
}

.drop-warning .VirtualizedSelectFocusedOption {
    background-color: var(--warning);
}

/* Date range picker styling */
.date-range-primary .CalendarDay__selected_span {
    background: var(--bs-primary);
    border: var(--bs-primary);
}

.date-range-primary .CalendarDay__selected {
    background: var(--bs-primary);
    border: var(--bs-primary);
}

.date-range-success .CalendarDay__selected_span {
    background: var(--success);
    border: var(--success);
}

.date-range-success .CalendarDay__selected {
    background: var(--success);
    border: var(--success);
}

.date-range-warning .CalendarDay__selected_span {
    background: var(--warning);
    border: var(--warning);
}

.date-range-warning .CalendarDay__selected {
    background: var(--bs-warning);
    border: var(--bs-warning);
}

/* AG Grid styling */
.ag-row:nth-child(odd) {
    background-color: var(--bs-white);
}

.ag-row:nth-child(even) {
    background-color: #F6F7FC;
}

.ag-row:hover {
    background-color: rgba(var(--bs-primary-rgb), .2);
}

.ag-header {
    background-color: var(--bs-primary) !important;
    height: auto !important;
    display: flex;
    align-items: stretch;
}

.ag-header-cell {
    background-color: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    text-align: center;
    display: flex;
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
    flex-grow: 1
}
.ag-custom-header {
    font-size: 16px; /* Adjust font size */
    white-space: nowrap; /* Optional: Prevent text wrapping */
    text-align: center; /* Ensure the text is centered */
    align-items: center; /* Vertically center text */
    justify-content: center; /* Horizontally center text */
}
.header-secondary {
    background-color: var(--bs-light); /* Use your secondary color */
    color: var(--dark); /* Text color */
    text-align: center; /* Ensure the text is centered */
    align-items: center; /* Vertically center text */
    justify-content: center; /* Horizontally center text */
    font-size: 16px; /* Adjust font size */
    white-space: normal; /* Optional: Prevent text wrapping */
}
.ag-header-wrap {
    background-color: var(--bs-primary) !important;
    color: var(--bs-white);
    text-align: center;
    display: flex;
    height: auto !important;
    align-items: center; /* Vertically center text */
    justify-content: center; /* Ensure text stays centered */
    white-space: normal; /* Optional: allow text wrapping */
}

.ag-header-wrap:hover, .ag-header-cell:hover {
    background-color: #F6F7FC !important;
    color: var(--bs-primary) !important;
}
.ag-cell.text-success {
    color: var(--green);
    font-weight: 600;
}
.ag-cell.text-warning {
    color: var(--orange);
    font-weight: 600;
}
.ag-cell.text-muted {
    color: var(--secondary);
    font-weight: 600;
}

.ag-cell {
    padding-left: 4px !important;
    padding-right: 4px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
}

/* Center content in AG Grid headers */
.ag-header-cell-label {
    display: flex; /* Enable flexbox for alignment */
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    text-align: center; /* Fallback for legacy layouts */
    height: 100%; /* Ensures label stretches to full header height */
}

/* Ensure parent wrappers align correctly */
.ag-header-cell-comp-wrapper,
.ag-cell-label-container {
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
}

/* dcc Slider custom style */
.rc-slider-track {
    background-color: var(--bs-primary);
}

.rc-slider-dot-active {
    border-color: var(--bs-primary);
    border: solid 2px var(--bs-primary);
}

.rc-slider-handle {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.rc-slider-handle:hover {
    border-color: var(--bs-primary);
}

.rc-slider-handle-active:active {
    border-color: var(--bs-primary);
}


/* Border radius class */
.border-radius-10 {
    border-radius: 10px;
}

.border-radius-15 {
    border-radius: 15px;
}

/* Smaller typography */
.font-50, font-50 {
    font-size: 50%;
    font-weight: 300;
}

.font-80, font-80 {
    font-size: 80%;
    font-weight: 300;
}

/* AG Grid centered headers */
.center-aligned-header .ag-header-cell-label {
    align-items: center !important; /* Vertically center */
    justify-content: center !important; /* Horizontally center */
    text-align: center !important; /* Ensure text is centered */
}

.center-aligned-cell {
    text-align: center;
}

/* Apply cursor change to cells with colId equal to "download_pdf" */
.ag-cell.cursor-pointer:hover {
    cursor: pointer;
}

/* Custom tooltip styling */
.tooltip-inner {
    background-color: var(--bs-light) !important;  /* Gray background */
    border: 1px solid var(--bs-secondary);
    border-radius: .25rem;
    color: var(--bs-primary) !important;  /* Green text */
    padding: 5px 10px;
}

.tooltip .arrow::before {
    border-top-color: #d3d3d3 !important;  /* Gray background for the arrow */
}

.dash-date-picker .DateInput_input {
    font-family: 'Roboto', sans-serif !important;
}

.dash-dropdown .Select--multi .Select-value {
    background-color: var(--bs-primary) !important;
    border: 1px solid var(--bs-primary) !important;
    color: white !important;
    border-radius: .25rem !important;
}

.dash-dropdown .Select--multi .Select-value-icon {
    fill: white !important;
}

.dash-dropdown .Select--multi .Select-value-label {
    color: white !important;
}

.dash-dropdown .Select--multi .Select-option.is-selected {
    background-color: var(--bs-primary) !important;
    color: white !important;
}


/* Date Picker styling */
.custom-date-picker .DateInput {
    height: 34px;  /* Match the height of the dropdowns */
    font-family: 'Roboto', sans-serif;  /* Apply Roboto font */
}

/* Ensure the entire date picker container is displayed inline */
.custom-date-picker .DateRangePicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;  /* Let the container auto-adjust based on the content */
    padding: 0;  /* Remove any internal padding */
}

/* Reduce the width, font size, and padding of the date input fields */
.custom-date-picker .DateInput_input {
    width: 90px;  /* Set the width of individual inputs */
    font-size: 14px;  /* Set font size for input */
    padding: 4px 6px;  /* Adjust padding for a compact design */
    text-align: center;  /* Align text in the center of the input */
    font-family: 'Roboto', sans-serif;  /* Apply Roboto font */
}

/* Adjust the size of the arrow */
.custom-date-picker .DateRangePickerInput_arrow_svg {
    width: 12px;  /* Adjust the width of the arrow */
    height: 14px;  /* Adjust the height of the arrow */
    stroke: var(--bs-primary);  /* Optionally change the color of the arrow */
    vertical-align: middle;  /* Align the arrow vertically with the text */
}

/* Reduce the margin around the arrow */
.custom-date-picker .DateRangePickerInput_arrow {
    margin-left: 5px;  /* Adjust the gap before the arrow */
    margin-right: 5px;  /* Adjust the gap after the arrow */
    display: inline-flex;
    align-items: center;  /* Ensure the arrow is vertically aligned */
}

/* Ensure the inputs are aligned horizontally */
.custom-date-picker .DateRangePickerInput {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
}



/* Styling the calendar dropdown to match the Roboto font */
.custom-date-picker .DayPicker {
    font-family: 'Roboto', sans-serif; /* Apply Roboto font */
}

.custom-date-picker .CalendarMonth_caption {
    font-family: 'Roboto', sans-serif; /* Apply Roboto font */
    font-size: 16px; /* Adjust font size as needed */
    font-weight: 500; /* Adjust font weight if needed */
}

.custom-date-picker .DayPicker_weekHeader {
    font-family: 'Roboto', sans-serif; /* Apply Roboto font */
    font-size: 12px; /* Adjust font size as needed */
    font-weight: 400; /* Adjust font weight if needed */
}

.custom-date-picker .CalendarDay {
    font-family: 'Roboto', sans-serif; /* Apply Roboto font */
    font-size: 14px; /* Adjust font size as needed */
}


/* Custom switch */
.custom-switch .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Rounded corners for containers */
.rounded-container {
    border-radius: 15px;
}

/* Form check input */
.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Wrap label */
.wrap-label {
    white-space: pre-wrap; /* CSS3 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
    text-align: center; /* Center align the text */
}

/* Responsive Tabs Styling */
.dash-tabs .nav-item {
    flex: 1 1 auto; /* Allow the tabs to shrink if necessary */
    text-align: center;
    white-space: nowrap; /* Prevent text from wrapping */
}

/* Adjust tab label size and padding on small screens */
@media (max-width: 576px) {
    .dash-tabs .nav {
        flex-direction: column; /* Stack tabs vertically */
    }
    .dash-tabs .nav-item {
        width: 75%; /* Make each tab full-width */
        text-align: center;
    }
    .dash-tabs .nav-link {
        padding: 0.75rem 1rem; /* Adjust padding for easier tap targets */
        font-size: 0.8rem;
    }
}

/* Responsive cards styling*/
/* Base styles for the icon font */
.icon-font {
    font-size: 0.9em;  /* Default size */
    color: white;
    object-fit: contain;
}

/* Base styles for the icon container */
.icon-container {
    background-color: var(--bs-primary) ;  /* Adjust color if needed */
    width: clamp(35px, 1vw, 40px);  /* Responsive width that adjusts with viewport */
    height: clamp(35px, 1vw, 40px); /* Responsive height */
    aspect-ratio: 1;  /* Keeps the container square */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Base styles for H5 and H6 */
.kpi-value {
    color: #848f8a;  /* Adjust grey color */
    font-size: 1.1rem  /* Responsive font size for larger screens clamp(1rem, 1vw, 1.5rem); */
}

.kpi-description {
    color: #848f8a;
    font-size: 0.9rem; /*clamp(0.8rem, 1vw, 1.2rem);*/
}
@media (min-width: 992px) and (max-width: 1155px) {
    .kpi-value {
        font-size: 1rem; /* Adjust font size for this screen range */
    }
    .kpi-description {
        font-size: 0.8rem; /* Adjust font size for this screen range */
        padding-bottom: 8px; /* Optional: add bottom padding */
    }
}
@media (max-width: 330px) {
    .kpi-value {
        font-size: 1rem; /* Adjust font size for this screen range */
    }
    .kpi-description {
        font-size: 0.8rem; /* Adjust font size for this screen range */
        padding-bottom: 8px; /* Optional: add bottom padding */
    }
}


/* Bundle tabs styling*/
.bundle-tab-content {
    border-radius: 15px; /* Rounded corners */
    background-color: #f9f9f9; /* Light gray background */
    border: 1px solid #ddd; /* Optional border for better visibility */
    padding: 4px; /* Optional padding inside the content */
    margin: 2px; /* Optional margin around the content */
}


/* invalid input */
.invalid-input {
    border: 1px solid green;
    border-radius: .25rem;
}


/* Center the navbar-toggler button */
.navbar-toggler {
    padding: .5rem 1.5rem; /* Increase padding for better clickable area */
    font-size: 1.5rem;      /* Adjust the icon size */
    line-height: 1;         /* Adjust the line-height for alignment */
    background-color: transparent;
    border: 1px solid #ccc; /* Light border color */
    border-radius: .25rem;  /* Rounded corners */
    width: 100% ;
    flex: 1;

}

/* Hover and focus effects for the toggler button */
.navbar-toggler:hover, .navbar-toggler:focus {
    text-decoration: none;  /* Remove underline */
    background-color: var(--bs-light); /* Blue color on hover */
    border-color: var(--bs-gray-500);     /* Darken border on hover/focus */
    color: var(--bs-gray-500);              /* Change icon color to white */
}

/* Full width navbar-toggler on small screens */
@media (max-width: 767.98px) {
    .navbar-toggler {
        width: 100%;  /* Expand the toggler button to full width */
    }

    .navbar-collapse {
        width: 100%;
        display: block; /* Ensures the navbar collapses fully */
        text-align: center;  /* Center the navbar items when collapsed */
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .navbar-nav .nav-item {
        text-align: center;
        width: 100%;
    }
}



/* Style for larger screens */
.vw01 {
    font-size: 1vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
    .vw01 {
        font-size: 26px; /* or set to a specific size like 16px */
    }
}

/* Style for larger screens */
.vw07 {
    font-size: 0.7vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
    .vw07 {
        font-size: 14px; /* Set to a specific size for xs screens */
    }
}

/* Style for larger screens */
.vw08 {
    font-size: 0.8vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
    .vw08 {
        font-size: 16px; /* Set to a specific size, such as 14px, for xs screens */
    }
}

/* Style for larger screens */
.vw12 {
    font-size: 1vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
    .vw12 {
        font-size: 22px; /* or set to a specific size like 16px */
    }
}

/* Style for larger screens */
.vw15 {
    font-size: 1.5vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
    .vw15 {
        font-size: 20px; /* Set to a specific size, such as 20px, for xs screens */
    }
}


/* Style for larger screens */
.vw16 {
    font-size: 1.6vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
    .vw16 {
        font-size: 30px; /* Set to a specific size for xs screens */
    }
}

/* Style for larger screens */
.vw18 {
    font-size: 1.8vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
    .vw18 {
        font-size: 30px; /* Set to a specific size for xs screens */
    }
}


/* Style for larger screens */
.vw20 {
    font-size: 2vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
    .vw20 {
        font-size: 40px; /* Set to a specific size for xs screens */
    }
}

/* Default style for small, medium, and extra-small screens */
.img-responsive {
    height: auto; /* Maintain original aspect ratio */
    width: auto; /* Keep width proportional */
    max-height: 15.85vw; /* Constrain max height */
    margin-right: 1vw;
    margin-left: 1vw;

}

/* Override for large and extra-large screens */
@media (min-width: 992px) {
    .img-responsive {
        height: auto; /* Maintain original aspect ratio */
        max-height: 5vw; /* Constrain max height for larger screens */
        width: auto; /* Keep width proportional */
        margin-right: 0.1vw; /* Add consistent spacing */
        margin-left: 0vw;
    }
}

.no-style-link {
    all: unset; /* Resets all styles of the <a> tag */
    display: inline-block; /* Ensure the link behaves like an inline element */
}

/* Default style for small, medium, and extra-small screens */
.responsive-card {
    width: 100%;  /* Full width on small screens */
}

/* Override for large and extra-large screens */
@media (min-width: 992px) {
    .responsive-card {
        width: 50%;  /* 50% width on large screens */
    }
}



/* Style for larger screens */
.vw15 {
    font-size: 1.5vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
    .vw15 {
        font-size: 20px; /* Set to a specific size for xs screens */
    }
}


/* Style for larger screens */
.vw1 {
    font-size: 1.5vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
    .vw1 {
        font-size: 16px; /* Set to a specific size for xs screens */
    }
}




/* Height utility classes:
   These classes allow for flexible and reusable height management
   for dcc.Graph components. Each class corresponds to a specific height
   (in rem), increasing in steps of 5rem from 10rem to 40rem.
   Usage example: Apply class `height-25` to set a graph's height to 25rem.
*/

.height-10 {
    height: 10rem;
}

.height-15 {
    height: 15rem;
}

.height-20 {
    height: 20rem;
}

.height-25 {
    height: 25rem;
}

.height-30 {
    height: 100%;
}

.height-35 {
    height: 35rem;
}

.height-40 {
    height: 40rem;
}

/* Border width utility classes:
   These classes allow for flexible and reusable border width styling.
   Each class corresponds to a specific border width (in pixels),
   ranging from 1px to 5px.
   Usage example: Apply class `border-width-3` to set a border width of 3px.
*/

.border-width-1 {
    border-width: 1px;
}

.border-width-2 {
    border-width: 2px;
}

.border-width-3 {
    border-width: 3px;
}


/* Utility class for vertical scrolling */
.overflow-y-auto {
    overflow-y: auto !important;
}

/* Width utility clases */

.container-fluid, .container-lg, .container-md, .container-sm, .container-xl {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}


/* Bayer */

.custompadding {
    padding: 15px
}

/* to hide the map attribution */
.maplibregl-control-container {
    display: none
}

.icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.icon img {
    max-width: 30px;
}

.iconlarge {
    display: flex;
    justify-content: center;
}

.iconlarge img {
    max-width: 50px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.form-range-wrap {
    position: relative;
    width: 300px;
}
.form-range {
    width: 100%;
    height: 10px;
    border-radius: 50px;
    background: linear-gradient(to right, #007c7a 0%, #007c7a 50%, #a0d6b4 50%, #a0d6b4 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.form-range::-webkit-slider-thumb,
.form-range::-moz-range-thumb {
    height: 22px;
    width: 22px;
    background: white;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 2;
}
.pct-tooltip {
    position: absolute;
    top: -35px;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ccc;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    pointer-events: none;
}
.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6c757d;
    width: 300px;
    margin-top: 0.3rem;
}
.center-tick {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
}

.dp-metric-card h2 {
    color: var(--bs-dark);
    font-weight: 500!important;
}

.form-range {
    width: 100%;
    height: 10px;
    border-radius: 50px;
    background: linear-gradient(to right, #007c7a 0%, #007c7a 50%, #a0d6b4 50%, #a0d6b4 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.sdg-icon {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

input[type="checkbox"]:checked + .sdg-icon {
    opacity: 1;
}

.form-check-input:checked {
    background-color: var(--bs-primary);
}

#sidebar .form-check-input:checked {
    background-color: var(--bs-dark);
}

/** Embellishments */
.collapsed i.fas.fa-chevron-down {
    transform: rotate(0deg);
}

i.fas.fa-chevron-down {
    transform: rotate(180deg);
    transition: transform .3s ease-in-out;
}

#sidebar img {
    transition: all .3s ease-in;
}

/*
#sidebar img:hover {
    filter: brightness(1) invert(0) drop-shadow(0 0 4px #ffffff);
}

#sidebar:not(.collapsed) + div#contentWrapper {
    padding-top: 1rem;
}
 */

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    margin-bottom: 1rem;
}

.eva-form-container h1,
.eva-form-container h2,
.eva-form-container h3,
.eva-form-container h4,
.eva-form-container h5 {
    color: var(--bs-primary);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: .75rem 0;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #e9ecef;
    border-radius: .25rem;
}

.breadcrumb-item {
    display: flex;
}

.breadcrumb-item+.breadcrumb-item::before {
    display: inline-block;
    padding-right: .5rem;
    color: #848f8a;
    content: "/";
}

.breadcrumb-item+.breadcrumb-item {
    padding-left: .5rem;
}

.dp-plain-container {
    margin: 2rem;
}

.dp-show-password {
    color: var(--bs-secondary);
    position: absolute;
    right: 10px;
    top: 75%;
    transform: translateY(-50%);
    cursor: pointer;
}
