@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@1,661&family=Exo:ital,wght@1,710&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@1,661&family=Exo:ital,wght@1,710&family=Inter:wght@300&family=Roboto&display=swap');

body {
  overflow-x: hidden;
  /* font-family: 'Roboto', sans-serif; */
}

a:hover {
  text-decoration: none;  
}

button:focus {
  outline: none;
}

.custom-checkbox{
  margin-left: 10px;
}

.sidebar-item:hover{
  background-color: rgba(9, 30, 66, 0.08) !important;
}

.init-portfolio-card-hover:hover {
  background-color: rgba(9, 30, 66, 0.08) !important;
}

#stocks-dropdown > .Select > .Select-control > .Select-multi-value-wrapper > div.Select-placeholder {
  color: #212121;
}

.main-nav-dropdown-header {
  font-size: 12px;
  line-height: 18px;
  border-bottom: 1px solid rgba(9, 30, 66, 0.05);
  color:gray;
  font-weight: 400;
}

.navbar-dark .navbar-nav .nav-link  {
  color: #d3d3d3;
}

.navbar-dark .navbar-nav .nav-link {
  color: #d3d3d3;
}

.btn {
  font-weight: 500 !important;
}

.btn-outline-primary {
  border:none !important;
  color: #0a2540;
  background-color: #f3f3f3 !important;
}

.data-dropdown {
  border:1px solid gray;
  color: gray;
  border-radius: 0.25rem;
  margin-right: 6px;
}

.data-dropdown > button {
  color: gray !important;
}

.data-dropdown-init-card {
  border:1px solid gray;
  color: gray;
  border-radius: 0.25rem;
  margin-right: 6px;
}

.data-dropdown-init-card  .Select-control {
  border: None;
  height: 28px;
}

.data-dropdown-init-card  .Select-control .Select-value {
  height: 28px;
}

.data-dropdown-init-card .dropdown-menu {
  width: 100%;
}

.data-dropdown-init-card > button {
  color: gray !important;
  width: 100%;
  text-align: inherit;
  margin-right: 10px;
}


.btn-outline-primary.disabled, .btn-outline-primary:disabled{
  border-color: #0a2540;
  color: #0a2540;
}

.btn-outline-primary:hover {
  border-color: #0a2540;
  color: #0a2540;
  background-color: #fff;
  opacity: 0.74;
}

.btn-outline-primary:not(:disabled):not(.disabled).active, .btn-outline-primary:not(:disabled):not(.disabled):active, .show>.btn-outline-primary.dropdown-toggle {
  border-color: #0a2540;
  color: #0a2540;
  background-color: #fff;
}

.btn-outline-primary.focus, .btn-outline-primary:focus {
  box-shadow: 0 0 0 0;
}

.btn.focus, .btn:focus {
  box-shadow: 0 0 0 0;
}

.btn-primary {
  color: #fff;
  background-color:#0a2540;
  border: 1px solid #0a2540;
}

.btn-primary:hover {
  color: #fff;
  background-color:#0a2540;
  border:none;
  opacity: 0.88;
}

.btn-primary.disabled, .btn-primary:disabled {
  color: #fff;
  background-color:#0a2540;
  border:1px solid #0a2540;
}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
  color: #fff;
  background-color:#0a2540;
  border:1;
}

.btn-primary.focus, .btn-primary:focus {
  color: #fff;
  background-color:#0a2540;
  border:#0a2540 1px solid;
  box-shadow: 0 0 0 0;
}

.btn-primary:focus-visible {
  color: #fff;
  background-color:#0a2540;
  border:#0a2540 1px solid;
  box-shadow: 0 0 0 0 !important;
  outline: none !important;
}

.btn-outline-primary:focus-visible{
  outline: none !important;
}

.btn-textbox {
  height: 29px !important;
  border-radius: 0.25rem 0px 0px 0.25rem;
}

.title-dropdown-btn > button, .title-dropdown-btn > button:hover, .title-dropdown-btn > button:focus, .title-dropdown-btn > button:active {
  border-radius: 0px 0.25rem 0.25rem 0px !important;
  background-color: #f3f3f3;
  border: 1px solid #f3f3f3;
  color: #0a2540;
  border-left: none;
}

.show>.btn-primary.dropdown-toggle {
  border-color: #0a2540;
  outline: none !important;
}

.w-30{
  width: 30%;
}

#optimiser-pulldown-btn > button{
  border-radius: 0px 0.25rem 0.25rem 0px !important;
  border-left: 1px solid #fff;
}

.pill-card {
  background-color: transparent;
  color: grey;
  border: 1px solid grey;
  border-radius: 20px;
  margin-right: 6px;
  padding: 2px 4px;
  margin-bottom: 12px;
}

.pill-card span{
  margin-left: 6px;
  margin-right: 6px;
}

.pill-card:hover {
  background-color: #f3f3f3;
}

.red {
  color: #A50E0E;
}

.green {
  color: #137333;
}

.summary-card-title {
  font-size: 15px;
  font-weight: bold;
}

.summary-card-title-area {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 30px;
}

.main-nav-menu {
  display:flex;
}

.navbar-brand { 
  font-family: 'Exo 2', sans-serif;
  font-size: 18px;
  padding-top: 0px;
  padding-bottom: 0px;
}


.chart-controlers > button {
  color: gray;
}

.table-controllers > button {
  color: gray;
}

textarea{
  -webkit-appearance: none;
  border: none;
  outline: none;
  resize: none;
  padding-top: 0;
  padding-bottom: 0;
  margin-left: auto;
  max-width: 100px;
  text-align:center;
  cursor: pointer;
}

textarea:focus{
  background-color:	#E4F0F6;
}

.btn-more-dropdown > button{
  background-color: transparent;
  color: gray;
  border: none;
  width: 100%;
  text-align:left;
}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
  background-color: #fff;
  color: #0a2540;
}

.DateInput_input {
  background-color: transparent;
  font-size: 12px;
  padding: 0;
  font-weight:400;
  text-align:center;
  font-style: normal;
  border: none !important;
  line-height: 1.25;
  color: gray;
  cursor: pointer;
}

.DateInput {
  background-color: transparent;
  border:none;
  width: 74px;
  color:gray;
}

.SingleDatePickerInput__withBorder {
  border: none;
}

.SingleDatePickerInput__withBorder {
  background-color: transparent;
}

.DayPickerKeyboardShortcuts_show__bottomRight::before {
  border-right: 33px solid #0079BF;
}

.DayPickerKeyboardShortcuts_show__bottomRight:hover::before {
  border-right: 33px solid #0079BF;
}

.CalendarDay__selected {
  background-color: #0079BF;
  border: none;
}

.CalendarDay__selected, .CalendarDay__selected:active, .CalendarDay__selected:hover {
  background-color: #0079BF;
  border: none;
  opacity: 0.76;
}

.dropdown-item:focus, .dropdown-item:hover {
  background-color: none;
}

.dropdown-item.active, .dropdown-item:active {
  background-color: #fff;
}

.form-group {
  margin-bottom: 0px;
}

.fa-pen {
  visibility: hidden;
  margin-left: 4px;
}

.btn-textbox:hover > .fa-pen {
  visibility: visible;
}

#base-portfolio-title .fa-pen {
  visibility: hidden;
}

.confirm h1 {
  text-align: center;
  font-size: 14px;
  margin: 0.5rem 1rem 0.5rem;
  font-weight: 400;
}

.confirm button {
  background: #0a2540;
  border: none;
  color: #fff;
  height: 3rem;
  font-size: 1rem;
  width: 50%;
  position: absolute;
  bottom: 0;
  cursor: pointer;
}
.confirm button:nth-of-type(1) {
  border-top: 1px solid #B4B4B4;
  border-right: 1px solid #B4B4B4;
  left: 0;
}
.confirm button:nth-of-type(2) {
  border-top: 1px solid #B4B4B4;
  right: 0;
}
.confirm button:focus,
.confirm button:hover {
  font-weight: bold;
  opacity: 0.66;
}
.confirm button:active {
  opacity: 0.66;
}

.confirm input{
  border: 1px solid gray;
  text-align: center;
  display: flex;
  margin: 14px auto;
  padding: 4.5px;
  width: 192px;
  color: gray;
  border: none;
  border: 1px solid gray;
  border-radius: 25px !important;
}

#confirm-warning-modal {
  background: #0a2540;
  border: none;
  color: #fff;
  height: 3rem;
  font-size: 1rem;
  width: 100%;
  position: absolute;
  bottom: 0;
  cursor: pointer;
}

.confirmation-modal > .modal-content {
  height:140px;
  width: 240px;
  transform: translateX(130px);
}

.confirmation-modal-backtest > .modal-content {
  height:140px;
  width: 240px;
  /* transform: translateX(130px); */
}

.fa-sort {
  margin-left: 8px;  
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th:hover [class^='column-header--']:not(.disabled), .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th:hover [class^='dash-filter--']:not(.disabled) {
  color: lightgray !important;
}

#holdings-area-table .column-0 > .dash-cell-value{
  color: #0a2540 !important;
  background-color: #E4F0F6;
  padding: 4px 6px !important;
  font-weight: 400;
  text-align: right !important;
  cursor: pointer;
  border-radius: 1.25rem;
}

.portfolio-list-table .column-0 > .dash-cell-value {
  font-weight: 500;
  color: #0a2540 !important;
}

#holdings-area-table .column-0 > .dash-cell-value:hover {
  background-color: #e4f0f6a6;
}

.column-0 {
  text-align: left !important;
}

.previous-next-container {
  margin-top: 10px;
}

.previous-next-container > button {
  background-color: transparent;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner [class^='column-header--'], .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner [class^='dash-filter--'] {
  float: right !important;
}

.card {
  border-radius: 1.25rem;
}

.MuiDrawer-paper {
  height: 95% !important;
  border-top : 1px solid rgba(0, 0, 0, 0.12);
}

.table thead th {
  border: none !important;
  vertical-align: bottom;
}

#stock-plot-dropdown > button {
  color: #0a2540 !important;
}

#stock-plot-dropdown> div.dropdown-menu {
  max-height: 300px !important;
  overflow-y: auto !important;
  min-width: 222px;
}

.custom-checkbox {
  margin-top: 8px !important;
}

.custom-checkbox:first-of-type {
  margin-top: 12px;
}

.custom-checkbox:last-of-type {
  margin-bottom: 12px;
}

.container-fa-times{
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.container-fa-times:hover {
  background-color: #f3f3f3;
}

.card-icons > .fas{
  border-radius: 50%;
}

.card-icons > .fas:hover {
  opacity: 0.45;
}

.container-fa-times> .fa-times {
  transform:translate(5px, 3px);
}

.dropdown:hover {
  background-color: #f3f3f3 !important;
  border-radius: 5px;
}

.dropdown-nav-bar {
  position: relative;
}
.dropdown-nav-bar:hover {
  background-color: #13395e !important;
  border-radius: 5px;
  }

.cell--selected {
  background: transparent !important;
  border-bottom: 1px solid rgb(211, 211, 211) !important;
  border-top: none !important;
}

.factor-close-icon {
  position: absolute;
  right: 16px;
  top: -52px;
  z-index: 1000;
}

#holdings-area-table .dash-spreadsheet-container .dash-spreadsheet-inner .dt-table-container__row-1 .cell-1-1 {
  min-height: 350px;
}

#base-title {
  cursor: default;
}

#base-portfolio-title:hover {
  opacity: 1;
}

#custom-asset-selector-dropdown {
  border: none;
  width: 550px;
}

#custom-asset-selector-dropdown:hover {
  background-color: red;
}



/* Target only the checkbox header cell in the second row */
#holdings-area-table .dt-table-container__row .dash-fixed-row table tbody tr:nth-of-type(2) .dash-select-header::before {
  content: "Exclude";       /* Set label for the checkbox column in the lower header row */
  display: block;          /* Ensures content is displayed above the checkbox */
  text-align: left;      /* Center the text for better alignment */
  color: #212121;          /* Font color */
  font-weight: bold;       /* Make font bold to match other headers */
  padding-bottom: 8px;     /* Space between label and checkbox */
  font-size: 12px;         /* Match font size of headers */
}

/* Adjust alignment if needed */
#holdings-area-table .dt-table-container__row .dash-fixed-row table tbody tr:nth-of-type(2) .dash-select-header {
  vertical-align: bottom;  /* Align cell content to the bottom */
  padding-top: 16px;       /* Adjust padding to create space for label */
  text-align: left;        /* Align header text to the left */
}

.dash-select-header,
.dash-select-cell {
    width: auto;             /* Adjusts width to content size */
    min-width: 70px !important;        /* Minimum width set to auto to prevent any constraints */
    max-width: none;         /* No maximum width, allowing the header to expand as needed */
    padding-left: 10px;      /* Left padding for better spacing (adjust if needed) */
    padding-right: 10px;     /* Right padding for symmetry */
    box-sizing: border-box;  /* Ensures padding is included in width calculation */
    text-align: left !important;        /* Align content to the left */
}

.dash-header {
  min-width: 50px !important;         /* Ensures the minimum width is also auto for column headers */
}
