* {
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}

:root {
  --color_dark: #20282c;
  /* --color_blue: #2f8dc6; */
  --color_dark_blue: #325374;
  --color_blue: #5981a9;
  --color_light: #f5f7fb;
  --color_gray: #d9d9d9;
  --color_card: #f8f8f8;
  --color_dark2: #424a4e;
  --color_danger: #dc3545;
  --color_warning: #ffc107;
  --color_success: #19af69;
  --color_ebuilder: #cc6600;
}

html body {
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
  font-weight: 400;
  font-size: 14px;
}

a {
  text-decoration: none;
  color: #333;
}

a,
a:hover,
a:active,
a:visited,
a:focus {
  text-decoration: none;
  color: #000;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

textarea {
  font-family: inherit;
}

input[disabled] {
  cursor: not-allowed;
}

.npt {
  width: 100%;
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid var(--color_gray);
  box-sizing: border-box;
  box-shadow: 0 2px 6px 0 rgba(13, 12, 42, 0.07);
}

.npt:focus {
  outline: none;
  border: 1px solid var(--color_dark);
}

.npt_btn {
  width: calc(100% - 65px);
  padding: 10px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--color_gray);
  box-sizing: border-box;
}

.npt_btn:focus {
  outline: none;
  border: 1px solid var(--color_dark);
}

.npt_select {
  width: 100%;
  padding: 9px 7px;
  border-radius: 4px;
  border: 1px solid var(--color_gray);
  box-sizing: border-box;
}

.npt_select:focus {
  outline: none;
  border: 1px solid var(--color_dark);
}

label {
  padding-left: 15px;
  text-align: left;
}

.etf_button {
  width: 175px;
  padding: 8px 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border: none;
}

button {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: 300;
  padding: 4px;
  margin: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn {
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
  align-items: center;
}

.btn-sm {
  padding: 5px 8px;
}

.btn-lg {
  padding: 15px;
}

.btn-white {
  background-color: #fff;
  border: 1px solid #ccc;
}

.btn-white:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-default {
  background-color: var(--color_light);
  border: 1px solid var(--color_gray);
}

.btn-default:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--color_blue);
  color: var(--color_light);
  border: 1px solid var(--color_blue);
  box-shadow: 0 3px 12px 0 rgba(74, 58, 255, 0.18);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-danger {
  background-color: var(--color_danger);
  color: var(--color_light);
  border: 1px solid var(--color_danger);
}

.btn-danger:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

.dropdown-content {
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 50;
}

table .header {
  padding: 8px;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
}

.cell {
  padding: 10px 15px;
}

.cell_sm {
  padding: 5px;
  font-size: 12px;
}

.row {
  border: 1px solid var(--color_light);
  border-top: none;
}

/* for alternating striped rows*/
.row:nth-child(2n - 1) {
  background-color: var(--color_light_3);
}

.mobile_row {
  border-bottom: 1px solid #999999;
}

.modal {
  position: fixed;
  z-index: 1002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.panel {
  background-color: #fff;
  width: 300px;
  max-width: 95%;
  box-shadow: 0 5px 10px 5px rgba(0, 0, 0, 0.1);
  margin: 125px auto 0 auto;
  z-index: 1003;
}

.panel_md {
  background-color: #fff;
  width: 700px;
  max-width: 95%;
  box-shadow: 0 5px 10px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 125px auto 0 auto;
  z-index: 1003;
}

.panel_lg {
  background-color: #fff;
  width: 800px;
  max-width: 95%;
  box-shadow: 0 5px 10px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 125px auto 0 auto;
  z-index: 1003;
}

.panel_xl {
  background-color: #fff;
  width: 1000px;
  box-shadow: 0 5px 10px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 75px auto 0 auto;
  z-index: 1003;
}

.panel_header {
  padding: 5px 15px;
  border-bottom: 1px solid var(--color_dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel_content {
  padding: 15px;
}

/**
 * Tooltip Styles
 */

.tooltip:before {
  content: attr(data-tooltip); /* here's the magic */
  position: absolute;
  pointer-events: none;
  /* vertically center on top of element */
  transform: translate(-15%, -110%);

  /* basic styles */
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  background: var(--color_dark);
  color: var(--color_light);
  text-align: center;
  z-index: 999999999;
  white-space: wrap;
  display: none; /* hide by default */
  max-width: 200px;
  line-height: 1.5;
}

.tooltip:hover:before {
  display: block;
}

.tooltip.top:before {
  transform: translate(-0%, -160%);
  margin-left: 5px; /*and add a small left margin */
}

.tooltip.right:before {
  transform: translate(50%, -25%);
  margin-left: 5px; /*and add a small left margin */
}

.tooltip.bottom:before {
  transform: translate(-50%, 20px);
  margin-left: 5px; /*and add a small left margin */
}

.custom.solid-select-container {
  color: #000;
}

.custom .solid-select-input {
  font-size: 14px;
  padding: 2.5px;
}

.custom .solid-select-control {
  width: 100%;
  padding: 0.25rem 15px !important;
  border-radius: 18px;
  border: 1px solid var(--color_light_2);
  box-shadow: 0 2px 6px 0 rgba(13, 12, 42, 0.07);
}

.custom .solid-select-list {
  background: #fff;
  border: 1px solid var(--color_light_2);
  z-index: 999999;
}

.custom .solid-select-option {
  padding: 5px;
  margin: 0;
  font-size: 14px;
}

.custom .solid-select-single-value {
  font-size: 14px;
  margin-top: 3px;
}

.custom .solid-select-placeholder {
  padding-top: 3px;
}

.custom .solid-select-multi-value-remove {
  border: none;
}

.danger_border > .solid-select-control {
  border: 1px solid var(--color_danger);
}

.air-datepicker-global-container {
  z-index: 999999;
}

.error_text {
  position: absolute;
  font-size: 11px;
  color: var(--color_danger);
  bottom: -14px;
  left: 5px;
}

.error {
  font-size: 12px;
  color: var(--color_danger);
}

.link_text {
  color: var(--color_blue);
}

.ebuilder-text {
  color: var(--color_ebuilder);
}

.loading-spinner {
  animation-name: spin;
  animation-duration: 1.5s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.highlight {
  background-color: #ffffc5;
}

.highlight_dependency {
  background-color: #d6ffff;
}

.dependency {
  color: var(--color_blue);
}

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

.frozen_column {
  border-right: 2px solid #999 !important;
}

.draft {
  background-color: #ccc;
}

.deleted {
  background-color: #ffffc5;
  text-decoration: line-through;
}

.deleted input[type='text'] {
  text-decoration: line-through;
}

.card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 2px 6px 0 rgba(13, 12, 42, 0.07);
  border: 1px solid rgba(13, 12, 42, 0.07);
  min-height: 180px;
  width: 100%;
  height: 100%;
}

.overflow-card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 16px;
  padding: 16px;
  overflow: auto;
  box-shadow: 0 2px 6px 0 rgba(13, 12, 42, 0.07);
  border: 1px solid rgba(13, 12, 42, 0.07);
  min-height: 180px;
  width: 100%;
  height: 100%;
}

.card_title {
  font-size: 18px;
  font-weight: 600;
  padding: 5px 15px 5px 15px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color_gray);
}

p {
  font-size: 11pt;
  margin: 0px;
  font-weight: 300;
}

.table-header {
  font-size: 13pt;
  margin: 0px;
  font-weight: 300;
}

.scrollable {
  overflow-y: auto;
  scrollbar-width: none;
}

.scrollable-horizontal {
  overflow-x: auto;
  scrollbar-width: none;
}

.flex-grow-1 {
  flex-grow: 1;
}

.flex-grow-2 {
  flex-grow: 2;
}

.flex-grow-3 {
  flex-grow: 2;
}

.span-column-2 {
  grid-column: span 2;
}

.span-row-2 {
  grid-row: span 2;
}

.grid-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.grid-container:after {
  content: '';
  display: table;
  clear: both;
}

.flex {
  display: 'flex';
}

.flex-grid-0 {
  width: 0%;
  display: none;
}

.flex-grid-1 {
  width: 8.33%;
}

.flex-grid-2 {
  width: 16.66%;
}

.flex-grid-3 {
  width: 25%;
}

.flex-grid-4 {
  width: 33.33%;
}

.flex-grid-5 {
  width: 41.66%;
}

.flex-grid-6 {
  width: 50%;
}

.flex-grid-7 {
  width: 58.33%;
}

.flex-grid-8 {
  width: 66.6%;
}

.flex-grid-9 {
  width: 75%;
}

.flex-grid-10 {
  width: 83.3%;
}

.flex-grid-11 {
  width: 91.66%;
}

.flex-grid-12 {
  width: 100%;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: end;
}

.justify-start {
  justify-content: start;
}

.radio-container {
  display: flex;
  justify-content: space-around;
}

.radio-label {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.radio-input {
  margin-right: 5px;
}

.clickable {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.readonly {
  padding: 8px;
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.ebuilder-input {
  padding: 8px;
  background-color: #f5f5f5;
  border: 1px solid var(--color_ebuilder);
  cursor: not-allowed;
}

/* VIS TIMELINE STYLING */
.vis-timeline {
  border: none;
  font-family: inherit;
  overflow-x: auto !important;
  cursor: default !important;
}

.vis-panel.vis-left {
  width: 200px !important;
}

.vis-panel.vis-center {
  left: 200px !important;
  cursor: default !important;
}

.vis-panel.vis-content {
  cursor: default !important;
}

.vis-labelset .vis-label {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 8px;
  font-size: 12px;
  color: #4b5563;
}

.vis-item {
  font-size: 12px;
  cursor: pointer !important;
}

.vis-time-axis .vis-text {
  font-size: 12px;
  color: #4b5563;
}

.vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor {
  border-color: #f3f4f6;
}

.vis-panel.vis-background.vis-horizontal .vis-grid.vis-major {
  border-color: #e5e7eb;
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color_gray);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--color_blue);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--color_blue);
}

/* Disabled state */
.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Extra small toggle variant */
.toggle-switch.toggle-xs {
  width: 28px;
  height: 16px;
}

.toggle-switch.toggle-xs .toggle-slider:before {
  height: 10px;
  width: 10px;
  left: 3px;
  bottom: 3px;
}

.toggle-switch.toggle-xs input:checked + .toggle-slider:before {
  transform: translateX(12px);
}

/* Small toggle variant */
.toggle-switch.toggle-sm {
  width: 40px;
  height: 20px;
}

.toggle-switch.toggle-sm .toggle-slider:before {
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
}

.toggle-switch.toggle-sm input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Large toggle variant */
.toggle-switch.toggle-lg {
  width: 60px;
  height: 30px;
}

.toggle-switch.toggle-lg .toggle-slider:before {
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
}

.toggle-switch.toggle-lg input:checked + .toggle-slider:before {
  transform: translateX(30px);
}

/* Toggle with label */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-label {
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: var(--color_dark);
}

.toggle-switch input:disabled ~ .toggle-label {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Ensure toggle background is fully visible */
.toggle-switch .toggle-slider {
  overflow: visible;
  min-width: 100%;
}

.toggle-switch .toggle-slider:before {
  overflow: visible;
}

/* Prevent toggle clipping in tight spaces */
.toggle-switch {
  min-width: fit-content;
  flex-shrink: 0;
}
