/* ----------- 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 .ipc-table-current-page {
  background-color: #b7dde3;
}

.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%;
}

.ipc-frame.active::after {
  content: none;
}

/* ----------- IPC 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 */
}

#ipc-phase-module {
  font-family: "breve_news_book", sans-serif;
  margin-bottom: 125px;
}

#ipc-phase-module .light {
  color: rgb(165, 165, 165);
}

#ipc-phase-module-tabs {
  font-family: breve_title, serif;
  font-variant-ligatures: none;
  font-weight: 500;
}

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

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

.ipc-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;
}

.ipc-list {
  list-style: none;
  padding: 0;
}

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

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

.ipc small {
  font-size: 0.54em;
}

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

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

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

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

.ipc .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;
}

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

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

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

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

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

.select2-container {
  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;
}

.ipc-phase-option {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#geography input[type="radio"]:after {
  cursor: pointer;
  width: 15px;
  height: 15px;
  border-radius: 15px;
  top: -2px;
  left: -1px;
  position: relative;
  background-color: #f5f3f0;
  content: "";
  display: inline-block;
  visibility: visible;
}

#geography input[type="radio"] + label {
  color: #9897a0;
  cursor: pointer;
}

#geography input[type="radio"]:checked:after {
  cursor: pointer;
  width: 15px;
  height: 15px;
  border-radius: 15px;
  top: -2px;
  left: -1px;
  position: relative;
  background-color: #122c44;
  content: "";
  display: inline-block;
  visibility: visible;
  border: 4px solid #f5f3f0;
}

#geography input[type="radio"]:checked + label {
  color: #122c44;
  cursor: pointer;
}

#ipc_phase_map,
#historic-trends {
  margin-bottom: 125px;
}

#ipc_phase_map #legend,
#ipc_historical_trend #legend {
  font-size: 0.75rem;
}

#ipc_phase_map #legend p,
#ipc_historical_trend #legend p {
  padding-top: 0.15em;
}

#ipc_phase_map .side-box,
#ipc_historical_trend .side-box {
  height: 385px;
  width: 500px;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;

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

  font-family: breve_title, serif;
}

#ipc_phase_map .side-box .grey {
  color: #8e8c96;
}

#ipc_phase_map .side-box .period {
  font-weight: 600;
}

#ipc_phase_map .side-box .chart-title {
  margin-bottom: 1em !important;
}

#ipc_phase_map .side-box .headline {
  color: #a8a7af;
  font-size: 3.25rem;
  font-family: gt_sectra_italic;
  text-transform: uppercase;
  font-variant: lining-nums;
}

#ipc_phase_map .side-box h5,
#ipc_historical_trend .side-box h5 {
  font-style: oblique 15deg;
}

#sidebox-admin-area {
  font-family: breve_title_black, serif;
}

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

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

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

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

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

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

  .ipc .ipc-input label {
    width: 50px;
  }

  .ipc .ipc-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;
}

.ipc-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 125px;;
}

#ipc-table div.table-responsive {
  max-height: 44rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #6c6c71 #fff;
}

#ipc-table th {
  background-color: #F6F5F3;
  position: sticky;
  top: 0;
}

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

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

.ipc-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;
}

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

#ipc_historical_trend .table,
#ipc_phase_map .table {
  --bs-table-hover-bg: #e2e2e27d;
}

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

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

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

/* ----------- Historical Trend Styles ----------- */

#ipc_historical_trend {
  padding-bottom: 5rem;
}

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

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

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

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

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

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

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

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

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

#ipc_historical_trend .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;
}

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

.ipc-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;
}

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

.ipc-table #modelling-table-body tr:nth-child(1) td:first-child::before,
.ipc-table #modelling-table-body tr:nth-child(4) td:first-child::before,
.ipc-table #modelling-table-body tr:nth-child(5) td:first-child::before,
.ipc-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;
}

.ipc-table #modelling-table-body tr:nth-child(2) td:first-child::before,
.ipc-table #modelling-table-body tr:nth-child(3) td:first-child::before,
.ipc-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;
}

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

#ipc_historical_trend .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) {
  #ipc_historical_trend #ModellingActualChart,
  #ipc_historical_trend #ModellingModelledChart {
    margin-bottom: 50px;
  }
}

/* ----------- IPC Component Styles ----------- */

.ipc-phase-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* ----------- IPC Phase Classification Styles ----------- */

#ipc-phase-classification {
  margin-bottom: 125px;
}

@media screen and (min-width: 992px) {
  #ipc-classification-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
  }
}

#ipc-classification-grid > div {
  padding: 2rem 1rem;
  border-bottom: solid 1px #a8a7af;
}

#ipc-classification-grid > div:nth-child(-n + 2) {
  border-top: solid 1px #a8a7af;
}

.ipc-classification-number {
  font-size: 3rem;
  font-weight: 900;
}

/* ----------- IPC Table Styles ----------- */

#ipc-table {
  margin-bottom: 125px;
}

#ipc-table tr {
  border-bottom: solid 1px #a8a7af;
}

#ipc-table td,
#ipc-table th {
  padding: 1rem 0;
}

#ipc-table td.number {
  font-style: italic;
}

#ipc-table tbody {
  border: none;
}
