.main-title {
    font-weight: normal;
    margin-left: 5px
}

.app-navbar {
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.navbar-brand-abs {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: white !important;
    font-size: 18px;
}

.app-navbar .nav-link {
    color: white !important;
}

.app-navbar .nav-link.active {
    color: orange !important;
}

.filters-title {
    font-size: 20px;
    font-weight: 500;
    color: #4F5053;
    line-height: 20px;
    letter-spacing: 0.1px;
}

.filters-label {
    font-size: 14px;
    font-weight: 500;
    color: #4F5053;
    line-height: 20px;
    letter-spacing: 0.1px;
}

.filters-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filters-select {
    font-size: 14px;
    color: #4F5053;
    font-weight: 500;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
}

.filters-divider {
    border-color: #E2E8F0;
    margin: 0;
}

.filters-date-picker {
    width: 100%;
}

.filters-date-picker .DateInput {
    width: 100%;
}

.filters-date-picker .DateInput_input {
    font-size: 14px;
    color: #4F5053;
    font-weight: 500;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    box-shadow: none;
    width: 100%;
}

.filters-date-picker .SingleDatePickerInput {
    border: none;
    background: transparent;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.filters-date-picker .SingleDatePicker {
    width: 100%;
}

.filters-date-picker .SingleDatePickerInput::after {
    content: "\F214";
    font-family: "bootstrap-icons";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #003781;
    font-size: 16px;
    pointer-events: none;
}

.filters-date-picker .DateInput_input {
    padding-right: 36px;
}

.filters-date-picker .SingleDatePicker_picker {
    z-index: 1000 !important;
}

.filters-section {
    position: relative;
    z-index: 1;
}


.main-content {
    display: flex;
    position: relative;
    min-height: calc(100vh - var(--header-height));
}

.filters-sidebar {
    width: 236px;
    min-width: 236px;
    height: calc(100vh - var(--header-height));
    position: sticky;
    top: var(--header-height);
    background-color: #FFF;
    box-shadow: 3.5px 3.5px 5.5px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: margin-left 0.3s ease, opacity 0.3s ease;
    overflow: visible;
    z-index: 10;
}

.filters-inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filters-bottom {
    padding: 24px;
}

.filters-generate-btn {
    width: 100%;
    background-color: #007AB3;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
}

.filters-generate-btn:hover {
    background-color: #006699;
}

.filters-sidebar.collapsed {
    margin-left: -236px;
    opacity: 0;
    overflow: hidden;
}

.toggle-filters-btn {
    position: absolute;
    left: 224px;
    top: 8px;
    z-index: 10;
    background: #F3F8FB;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: left 0.3s ease;
    padding: 0;
    color: #003781;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.15);
    font-size: 12px;
}

.toggle-filters-btn.collapsed {
    left: 0;
}

.toggle-filters-btn.collapsed i::before {
    content: "\F285";
}

.tab-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #F3F8FB;
}

.charts-content {
    padding-top: 32px;
}

.bg-grey{
  background-color: #FFF;
}

:root {
  --header-height: 50px; /* Will be dynamically updated by JavaScript */
}

body {
  background-color: #F3F8FB;
  color: #4F5053;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Roboto, sans-serif;
}


.my-custom-select {
    font-size: 14px;
    color: #4F5053;
    font-weight: 500;
    margin-top: 16px;
}

.my-custom-select option {
    color: #333;
}

.DateInput_input {
    font-size: 14px;
    color: #4F5053; /* blue text */
    font-weight: 400;
    border: 1px solid #dbdbdb;
    box-shadow: none;
    border-radius: 8px;
}

.DateRangePickerInput__withBorder {
    border-radius: 8px;
    border: none;
}


.country-div {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    padding-left: 12px;
}

.badge-div {
    display: flex;
    padding-left: 12px;
}

.steering-badge-div {
    display: flex;
    margin-top: 24px;
    margin-left: 24px;
}

.show-new-result-button {
    background-color: #003781;
    color: white;
    border: 1px solid #003781;
    text-align: center;
    font-size: 14px;
    font-weight: 500
}

.show-new-result-button-div {
    margin-top: 24px;
    margin-right: 24px;
}

.show-new-result-div {
  display: flex;
  justify-content: space-between;
  width: 100%; /* Ensure full width */
}

#automation-rate-title {
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center
}

.acceptance-rate-title {
    font-size: 12px;
    /*margin-top: 10px;*/
    /*margin-bottom: 10px;*/
    /*text-align: center*/
}

#automation-rate {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background-color: #F3F8FB;
    color: #007AB3;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    user-select: none;
    margin: auto;
}

#flag-div {
    font-size: 20px;
    font-weight: 500
}

#ar-body {
    padding: 0
}

#ar-card {
    height: 130px
}

.precision-title {
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.gauge-height {
    height: 70px
}

.figure-padding {
    padding: 0
}

.figure-height {
    height: 130px
}

.ag-grid-options {
    margin-top: 12px;
    margin-bottom: 24px;
    width: 100%
}

.performance-ag-grid {
    background-color: white;
    padding-right: 13px;
    border-radius: 8px;
    padding-top: 12px;
    padding-bottom: 2px;
    margin: 40px 13px 30px;
}

.ab-test-ag-grid {
    background-color: white;
    padding-right: 13px;
    border-radius: 8px;
    padding-top: 12px;
    padding-bottom: 2px;
    margin-left: 13px;
    margin-right: 13px;
}

.authority-levels-ag-grid {
    background-color: white;
    padding-right: 13px;
    border-radius: 8px;
    padding-top: 12px;
    padding-bottom: 2px;
    margin-left: 13px;
    margin-right: 13px;
    margin-top: 24px;
}

.badge {
    --bs-badge-color: #4F5053 !important;
    --bs-badge-font-weight: 500
}

.card {
    --bs-card-border-width: 0;
}

.DateRangePickerInput_arrow {
    fill: transparent !important;
}

.DateRangePickerInput_arrow_svg {
    fill: transparent !important;
}

.custom-tab-container .nav-link {
    color: #6c757d; /* Gray inactive */
}

.multi-color-dropdown .VirtualizedSelectOption:nth-child(1) {
    color: #64D3A4 !important;
    background-color: #E8F8F1;
}
.multi-color-dropdown .VirtualizedSelectOption:nth-child(2) {
    color: #F4C95D !important;
    background-color: #FDF7E7;
}
.multi-color-dropdown .VirtualizedSelectOption:nth-child(3) {
    color: #DF5253 !important;
    background-color: #FAE5E5;
}
.multi-color-dropdown .VirtualizedSelectOption:nth-child(4) {
    color: #646568 !important;
    background-color: #E2E8F0;
}

.arrow-icon {
    font-size: 0.8rem;  /* smaller than default */
}

.multi-color-dropdown.selected-permissive .Select-value-label {
    color: #64D3A4 !important;
    /*background-color: #E8F8F1;*/
}

.multi-color-dropdown.selected-standard .Select-value-label {
    color: #F4C95D !important;
    /*background-color: #FDF7E7;*/
}

.multi-color-dropdown.selected-conservative .Select-value-label {
    color: #DF5253 !important;
    /*background-color: #FAE5E5;*/
}

.multi-color-dropdown.selected-disarmed .Select-value-label {
    color: #646568 !important;
    /*background-color: #E2E8F0;*/
}

.custom-icon-background {
    font-size: 1.5rem;
    color: #4F5053;
    background-color: #F3F8FB;
    padding: 0.75rem;  /* Bigger square padding */
    width: 2.5rem;  /* Fixed square width */
    height: 2.5rem;  /* Fixed square height */
    line-height: 1.5rem;  /* Centers icon vertically */
    border-radius: 0.375rem;  /* Rounded corners (optional) */
    display: inline-flex;  /* Flex for perfect centering */
    align-items: center;
    justify-content: center;
}

.advanced_settings_button {  /* Your className */
    background-color: transparent !important;
    border-color: transparent !important;
    color: #003781 !important;
    transition: all 0.2s ease;  /* Smooth transition */
}

.advanced_settings_button:hover {
    background-color: white !important;     /* White background on hover */
    border: 1px solid #e0e0e0 !important;  /* Subtle border */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;  /* Hover shadow */
    color: #003781 !important;
}

.advanced_settings_button:active {  /* ← Explicit active state OVERRIDES hover */
    background-color: transparent !important;  /* Back to transparent */
    border-color: transparent !important;
    box-shadow: none !important;
    transform: translateY(1px);  /* Subtle press effect */
    color: #003781 !important;
}

.save-changes-button {
    background-color: #F3F8FB !important;
    border-color: transparent !important;
    color: #003781 !important;
    transition: all 0.2s ease-in-out;
}

.save-changes-button:hover {
    background-color: #E8EFF5 !important;  /* Slightly darker gray */
    border-color: #C0D0E0 !important;      /* Subtle border */
    box-shadow: 0 2px 6px rgba(0,55,129,0.15) !important;  /* Hover shadow */
    transform: translateY(-1px);           /* Lift effect */
}

.save-changes-button:active {
    background-color: #DDE5EF !important;  /* Pressed darker */
    box-shadow: 0 1px 3px rgba(0,55,129,0.2) inset !important;  /* Inset shadow */
    transform: translateY(0);              /* Press down */
}

/* Grid matches bar spacing */
/*.buttons-grid {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(9, 1fr);  !* same number as bars *!*/
/*    padding-left: 60px;   !* same as figure margin.l *!*/
/*    padding-right: 60px;  !* same as margin.r *!*/
/*    margin-top: -15px;*/
/*}*/

/*!* Container holding + and − *!*/
/*.grade-control {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    gap: 8px;*/
/*}*/

/*!* Square buttons *!*/
/*.grade-btn {*/
/*    width: 34px;*/
/*    height: 34px;*/
/*    border-radius: 6px;*/
/*    border: none;*/
/*    font-size: 20px;*/
/*    font-weight: bold;*/
/*    cursor: pointer;*/
/*}*/

/*!* Colors like your mockup *!*/
/*.minus {*/
/*    background: #0b3d91;*/
/*    color: white;*/
/*}*/

/*.plus {*/
/*    background: #0b3d91;*/
/*    color: white;*/
/*}*/

/*.grade-btn:active {*/
/*    transform: scale(0.92);*/
/*}*/

.graph-wrapper {
    position: relative;
}

/* Position buttons INSIDE graph area */
.buttons-grid {
    position: absolute;
    bottom: -10px;            /* distance from bottom of graph */
    left: 80px;              /* aligns with plot area start */
    right: 48px;             /* aligns with plot area end */

    display: grid;
    grid-template-columns: repeat(9, 1fr);
    pointer-events: auto;
}

/* Position buttons INSIDE graph area */
.policy-buttons-grid {
    position: absolute;
    bottom: -10px;            /* distance from bottom of graph */
    left: 80px;              /* aligns with plot area start */
    right: 48px;             /* aligns with plot area end */

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    pointer-events: auto;
}

/* Each +/- pair */
.grade-control {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Button style */
.grade-btn {
    width: 30px;
    height: 26px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

.minus { background: #003781; color: white; }
.plus  { background: #003781; color: white; }

.green-policy { background: #64D3A4; color: white; }
.yellow-policy  { background: #F4C95D; color: white; }
.orange-policy { background: #FF9E57; color: white; }
.red-policy  { background: #DF5253; color: white; }

.grade-btn:active {
    transform: scale(0.9);
}

.delta {
    font-size: 14px;
    font-weight: 700;
    line-height: 140%;
}

#validation_error_alert {
    font-size: 12px;
}