/* ----------- General Styles ----------- */
.pagination {
  margin-bottom: 2rem;
  font-family: "Work Sans", sans-serif;
}

.pagination .pagination-selector {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.pagination .cdmt-table-current-page {
  background-color: #ea8f7d;
}

.pagination #historic-table-page-input {
  text-align: center;
  height: 100%;
  font-size: 0.8rem;
  font-weight: 900;
  background-color: #f7f5f3;
  color: #262e3d;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #5f5f5f54;
  border-radius: 10%;
}

/* ----------- CDMT Tools ----------- */
div[id^="chartjs-tooltip"] {
  opacity: 0;
  position: absolute;
  font-size: 12px;
  padding: 6px;
  pointer-events: none;
  z-index: 1000;
  width: auto;
  height: auto;
  background-color: #fff;
  font-family: "Work Sans", sans-serif;
  margin-left: 10px;
}

div[id^="chartjs-tooltip"] .chartjs-tooltip-key {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  opacity: 0.7;
}

/* Triangle pointing to the left */
div[id^="chartjs-tooltip"] .triangle {
  position: absolute;
  content: '';
  width: 0;
  height: 0;
  border-top: 8px solid transparent; /* Adjust size of the triangle */
  border-bottom: 8px solid transparent; /* Adjust size of the triangle */
  border-right: 8px solid #fff; /* Set border color to white */
  top: -5px; /* Align with the top of the tooltip */
  left: -5px; /* Adjust positioning to the left */
  transform: translateY(50%); /* Adjust vertical alignment */
}

#historic-tool,
#modelling-tool {
  font-family: "breve_news_book", sans-serif;
}

#historic-tool .light,
#modelling-tool .light {
  color: rgb(165, 165, 165);
}

.historic-tool-sidebar {
  height: 88px !important;
  width: 981px !important;
}

.modelling-tool-sidebar {
  height: 141px !important;
  width: 900px !important;
}

.cdmt-sidebar-text {
  margin-right: 1.275rem;
}

.decorated-text {
  font-style: italic;
  color: #b7b7b7;
}

.text-md {
  font-size: 0.7rem;
}

.error-message {
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  padding: 10px;
  border-radius: 10px;
  margin: 20px;
  z-index: 1000;
  position: fixed;
  bottom: 0;
  right: 0;
}



.cost-driver-list {
  list-style: none;
  padding: 0;
}

.cost-driver-list li::before {
  content: "\2192";
  color: #F7A89F;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  margin-right: 0.5em;
  font-weight: bold;
}

.cost-driver__filter-box {
  width: 100%;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cost-driver small {
  font-size: 0.54em;
}

.cost-driver__filter-title {
  margin-bottom: 0.7rem !important;
}

.cost-driver__filter-button {
  border-radius: 0;
  background-color: #f7f5f3;
  color: black;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

.cost-driver .currency-btn {
  color: rgb(194, 194, 194);
}

.cost-driver .currency-btn.active {
  background-color: #f7f5f3;
  color: black;
}

.cost-driver .time-period {
  font-size: 0.7rem;
  color: #262e3d;
  background-color: #f7f5f3;
  border-radius: 0;
  padding: 0.5rem 1rem;
  text-align: left;
  border: none;
  max-width: 120px;
  height: 35px;
}

.cost-driver .time-period-container {
  display: flex;
  justify-content: space-between;
}

.cost-driver .geography-select {
  height: 200px !important;
  
}

#whoarewe .select2-dropdown{
  background-color: #f7f5f3 !important;
  border-top: 1px solid #fff !important;
}

.cost-driver .chart-title {
  font-size: 0.9rem;
  font-weight: 900;
  color: #262e3d;
  margin-bottom: 2em !important;
}

.cost-driver .table-title {
  font-size: 1rem;
  font-weight: 900;
  color: #262e3d;
}

.select2-container {
  max-width: 130px !important;
  font-size: 0.8rem;
}

.select2-selection {
  background-color: #f7f5f3 !important;
  border-radius: 0 !important;
  border: none !important;
}

.select2-container .select2-selection--single {
  height: 35px !important;
  display: flex !important;
  align-items: center !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 13px !important;
}

#historic-tool #legend,
#modelling-tool #legend {
  font-size: 0.75rem;
}

#historic-tool #legend p,
#modelling-tool #legend p {
  padding-top: 0.15em;
}

#historic-tool .side-box,
#modelling-tool .side-box {
  height: 250px;
  width: 310px;
  border-top-left-radius: 10%;
  border-bottom-left-radius: 10%;

  position: absolute;
  right: calc(61% - 51.5vw) !important;
  transform: translateZ(0) scale(1);
}

#historic-tool .side-box h5,
#modelling-tool .side-box h5 {
  font-style: oblique 15deg;
}

@media (min-width: 992px) {
  .cost-driver #time-period {
    width: 80%;
  }
}

@media (max-width: 992px) {
  .cost-driver {
    font-size: 1.1em !important;
  }

  .cost-driver__filter-container {
    width: 100%;
    height: 190px !important;
  }

  .cost-driver__filter-container:first-child {
    border-bottom: 1px solid #e9ecef;
  }

  .cost-driver__filter-container p {
    font-size: 1.2rem;
  }

  .cost-driver__filter-box {
    display: flex;
    align-items: center;
    text-align: center;
  }

  .cost-driver .cost-driver-input label {
    width: 50px;
  }

  .cost-driver .cost-driver-input input {
    width: 140px;
    text-align: center;
  }
}

#historic-table-body tr td {
  font-family: auto !important;
}

#historic-table-body tr td:first-child {
  width: auto;
}

#historic-table-body tr td:nth-child(n + 4) {
  font-family: auto !important;
  font-size: 1.1rem;
}

.cdmt-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.cdmt-table th,
.cdmt-table td {
  width: calc(100% / 11);
}

.cdmt-table th:nth-child(2),
.cdmt-table td:nth-child(2) {
  width: calc(100% / 17);
}

.cdmt-table th {
  font-weight: bold;
  text-transform: uppercase;
  text-align: left;
  padding: 10px;
  font-family: "Work Sans", sans-serif;
  color: #262e3d;
  font-size: 0.7rem;
  vertical-align: top;
}

.cdmt-table tbody tr td {
  height: 65px;
  text-align: left;
  padding: 10px;
  border-top: 1px solid #f2f2f2;
  vertical-align: middle;
}

#modelling-tool .table,
#historic-tool .table {
  --bs-table-hover-bg: #e2e2e27d;
}

.cdmt-table tbody tr td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.cdmt-table tbody tr td:nth-child(-n + 11) {
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
  .cdmt-table th {
    font-size: 0.8rem !important;
  }
}

/* ----------- Modelling Tool Styles ----------- */

#modelling-tool {
  padding-bottom: 5rem;
}

#modelling-tool .side-box-legend {
  height: 100px;
}

#modelling-tool .side-box-legend #adjustable-drivers-legend {
  background: #ea8f7d;
}

#modelling-tool .side-box-legend #impacted-drivers-legend {
  background: #f8d7da;
}

#modelling-tool .side-box-legend .drivers-legend {
  border-radius: 50%;
  height: 10px;
  width: 10px;
  margin-right: 10px;
}

#modelling-tool .side-box-legend .drivers-label {
  font-size: 0.7rem;
}

#modelling-tool .actual-modelled-difference {
  font-size: 0.8rem;
  font-family: "Work Sans", sans-serif;
}

#modelling-tool .modelled-arrow::before {
  display: inline-block;
}

#modelling-tool .modelled-arrow.up::before {
  color: green;
  content: "▲";
}

#modelling-tool .modelled-arrow.down::before {
  color: red;
  content: "▼";
}

#modelling-tool .chart-title {
  margin-bottom: 0 !important;
}

.actualSellingPrice,
.modelledSellingPrice {
  font-family: gt_sectra_italic;
}

.number-font {
  font-family: gt_sectra_italic;
}

.table-slider-container {
  width: 100%;
}

.geography-selector {
  width: 140px;
}

.geography-selector:first-child {
  margin-right: 10px;
}

.cdmt-table thead {
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.cdmt-table #modelling-table-body tr {
  position: relative;
  z-index: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

#modelling-table-body tr td {
  border-bottom: none;
}

.cdmt-table #modelling-table-body tr td:nth-child(-n + 11) {
  border-top: none;
}

.cdmt-table #modelling-table-body tr:nth-child(1) td:first-child::before,
.cdmt-table #modelling-table-body tr:nth-child(4) td:first-child::before,
.cdmt-table #modelling-table-body tr:nth-child(5) td:first-child::before,
.cdmt-table #modelling-table-body tr:nth-child(n + 7) td:first-child::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: -16px;
  width: 8px;
  height: 100%;
  background-color: #f8d7da;
  z-index: 1;
}

.cdmt-table #modelling-table-body tr:nth-child(2) td:first-child::before,
.cdmt-table #modelling-table-body tr:nth-child(3) td:first-child::before,
.cdmt-table #modelling-table-body tr:nth-child(6) td:first-child::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: -16px;
  width: 8px;
  height: 100%;
  background-color: #ea8f7d;
}

#modelling-table-body tr td:nth-child(2),
#modelling-table-body tr td:nth-child(3) {
  font-family: auto !important;
  font-size: 1rem;
}

#modelling-table-body .modelling-table-numbering {
  color: rgb(104, 104, 104);
}

#modelling-table-body .modelling-table-hideable-row {
  display: none;
}

#modelling-table-toggle {
  cursor: pointer;
}

#modelling-tool .table-responsive {
  overflow-x: visible;
}

#modelling-tool .editableSliderField {
  border: 1px solid #c0c0c0a5;
  border-radius: 5%;
  width: 140px;
  padding: 5px;
}

.modelling-chart {
  padding-left: 4rem;
}

#CombinedModellingChartContainer {
  height: 400px !important;
}

@media (max-width: 1200px) {
  .modelling-chart {
    padding-left: 0rem;
  }
}

@media (max-width: 768px) {
  #modelling-tool #ModellingActualChart,
  #modelling-tool #ModellingModelledChart {
    margin-bottom: 50px;
  }
}
