/* =========================
   CSS CUSTOM PROPERTIES
   ========================= */
:root {
  --primary-blue: #3d80c0;
  --primary-green: #21c771;
  --error-red: #ff0000;
  --navbar-blue: #13b7dd;
  --text-dark: #2c3e50;
  --text-gray: #8599a6;
  --text-light-gray: #374858;
  --border-light: #e8eff4;
  --bg-light: #ebf2f9;
  --bg-gray: #f2f2f2;
  --shadow: 0px 3px 3.8px 0.2px rgba(0, 0, 0, 0.21);
  --transition: all 0.4s ease-in-out;
  --font-bold: 'SF UI Display Bold';
}

/* =========================
   NAVBAR STYLES
   ========================= */
.content-navbar-tray {
  background-color: var(--navbar-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  margin-top: -15px;
}

/* Invoice table margin utility */
.invoice-table-margin {
  margin-top: 32px;
  margin-bottom: 32px;
}

.content-navbar-tray ul {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  float: left;
}

.content-navbar li {
  float: left;
}

.content-nav-item {
  font-size: 12px;
  text-transform: uppercase;
  color: #ffffff;
  padding: 20px;
  opacity: 0.8;
  margin: 0 15px;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.content-nav-item::before {
  content: '';
  display: block;
  position: absolute;
  background: #ffffff;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 50;
  transition: var(--transition);
  transform: scaleX(0);
}

.content-navbar li.active::before {
  transform: scaleX(1);
}

.content-nav-item.active,
.content-nav-item:hover {
  background: transparent;
  opacity: 1;
  color: #fff;
}

/* =========================
   CARD STYLES
   ========================= */
#supplierCapital .card {
  padding: 0 15px;
}

.card.capital-widget {
  margin-top: 15px;
  min-height: 200px;
  position: relative;
  display: flex;
  flex-direction: column;
}

#scDetailsCard.card {
  padding: 0;
}

#scDetailsCard.card .sc_flex_body {
  padding: 0 15px;
}

/* Card specific heights */
#supplierCapital .capital-graph-card {
  min-height: 496px !important;
}

#supplierCapital .sc-details-card {
  min-height: 320px !important;
}

#supplierCapital .sc-repayment-card {
  min-height: 194px !important;
}

/* Card headers */
.sc_card_header-row-border {
  border-bottom: 1px solid var(--border-light) !important;
  display: flex;
  flex-direction: row;
  padding: 10px 0;
}

.card.capital-widget.capital-widget-repayable-amount .sc_card_header-row-border {
  padding: 0 20px;
}

/* =========================
   TYPOGRAPHY SYSTEM
   ========================= */
/* Headers */
.sc_h1-light-blue {
  font-size: 22px;
  line-height: 35px;
  color: var(--primary-blue);
  font-weight: normal;
  font-family: var(--font-bold);
}

.sc_h2-semibold-blue,
.sc_h2-green {
  font-size: 22px;
  line-height: 24px;
  font-weight: normal;
  font-family: var(--font-bold);
}

.sc_h2-semibold-blue {
  color: var(--primary-blue);
}

.sc_h2-green {
  color: var(--primary-green);
}

.sc_h3-semibold-black,
.sc_h3-semibold-blue,
.sc_h3-blue {
  font-size: 18px;
  font-weight: normal;
  font-family: var(--font-bold);
  line-height: 22px;
}

.sc_h3-semibold-black {
  color: var(--text-dark);
}

.sc_h3-semibold-blue {
  color: var(--primary-blue);
}

.sc_h3-blue {
  color: var(--primary-blue);
  font-weight: 400;
  line-height: 24px;
}

.sc_h4-allcaps-bold-grey,
.h4-allcaps-bold-black {
  font-size: 14px;
  line-height: 22px;
  font-weight: normal;
  font-family: var(--font-bold);
  text-transform: uppercase;
}

.sc_h4-allcaps-bold-grey {
  color: var(--text-gray);
}

.h4-allcaps-bold-black {
  color: var(--text-dark);
}

/* Body text */
.sc_large-body-semibold-grey,
.sc_large-body-grey,
.sc_large-body-blue,
.sc_large-body-black,
.sc_large-body-semibold-black,
.sc_large-body-semibold-blue {
  font-size: 16px;
  line-height: 24px;
}

.sc_large-body-semibold-grey,
.sc_large-body-semibold-black,
.sc_large-body-semibold-blue {
  font-weight: normal;
  font-family: var(--font-bold);
}

.sc_large-body-grey,
.sc_large-body_blue,
.sc_large-body-black {
  font-weight: 400;
}

.sc_large-body-semibold-grey {
  color: var(--text-gray);
}

.sc_large-body-grey {
  color: var(--text-gray);
}

.sc_large-body-blue {
  color: var(--primary-blue);
  line-height: 22px;
}

.sc_large-body-black {
  color: var(--text-dark);
}

.sc_large-body-semibold-black {
  color: var(--text-dark);
}

.sc_large-body-semibold-blue {
  color: var(--primary-blue);
}

/* Small text */
.sc_body-small,
.sc_body-small-semibold {
  font-size: 12px;
  line-height: 22px;
  color: var(--text-gray);
}

.sc_body-small {
  font-weight: 400;
}

.sc_body-small-semibold {
  font-weight: normal;
  font-family: var(--font-bold);
}

/* =========================
   CAPITAL WIDGET STYLES
   ========================= */
.capital-receive-wrapper {
  position: relative;
  max-width: 340px;
  left: 0;
  margin: 65px 0 15px;
}

.capital-receive-wrapper .green-tick-circle {
  display: block;
  width: 42px;
  height: 42px;
  position: absolute;
  background-color: var(--primary-green);
  left: 35%;
  top: -55px;
  z-index: 10;
  border-radius: 25px;
}

.capital-receive-wrapper .green-tick-circle img {
  position: relative;
  top: 12px;
  left: 9px;
}

.sc-header-desc {
  display: flex;
  flex: 1;
  justify-content: flex-start;
  padding: 20px 0;
}

#scRepaymentCard .sc-header-desc {
  padding-left: 20px;
}

#scDetailsCard .sc-header-desc {
  padding: 20px;
}

.sc-header-icon {
  padding-right: 0;
  padding-top: 9px;
  padding-bottom: 13px;
}

.sc-header-icon.leaf-icon,
.sc-header-icon.cal-icon {
  padding-top: 12px;
}

/* =========================
   MODAL STYLES
   ========================= */

  .sc-capitalview-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 20px;
}

.sc-capitalview-centered .capital-view-inner {
  width: 100%;
  max-width: 900px;
}

.sc-capitalview-centered .splash_message {
  text-align: left;
}

.modal-container,
.capital-popup-container {
  text-align: left;
  display: block;
  position: absolute;
  background-color: #fff;
  left: 5px;
  right: 5px;
  margin-bottom: 5px;
}

.capital-popup-header {
  display: block;
  float: left;
  width: 100%;
  position: relative;
  padding: 19px 20px 14px;
  border-bottom: 1px solid var(--border-light);
  z-index: 10;
  background-color: white;
}

.modal_close {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  padding: 1rem 0;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.8;
  z-index: 11;
}

.modal_close:hover {
  opacity: 1;
}

.modal_close span {
  display: block;
  position: relative;
  width: 30px;
  height: 30px;
  transform: rotate(45deg);
}

.modal_close span::before,
.modal_close span::after {
  content: '';
  display: block;
  position: absolute;
  background: #94a9be;
}

.modal_close span::before {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  margin-left: -1px;
}

.modal_close span::after {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  margin-top: -1px;
}

/* =========================
   SLIDER STYLES
   ========================= */
.slider-section {
  display: block;
  float: left;
  width: 100%;
  padding: 0;
  border: solid 2px var(--border-light);
  border-radius: 5px;
  user-select: none;
}

.slider {
  background-color: var(--bg-light);
  width: 100%;
  height: 5px;
  display: block;
  position: relative;
  border-radius: 6px;
}

.slider-progress-bar {
  background-color: var(--primary-blue);
  width: auto;
  padding-left: 5px;
  height: 5px;
  display: block;
  padding-right: 15px;
  position: absolute;
  border-radius: 7px;
}

.slider-btn {
  display: block;
  position: absolute;
  right: -5px;
  top: -9px;
  height: 22px;
  width: 22px;
  background-color: var(--primary-blue);
  border-radius: 25px;
  cursor: pointer;
  border: 0.88px solid #ffffff;
  box-shadow: var(--shadow);
}

/* =========================
   FORM ELEMENTS
   ========================= */
.checkbox-wrapper {
  display: block;
  height: 27px;
  width: 100%;
  position: relative;
  margin: 4px 0;
  border: 1px solid transparent;
}

.check_capital .capital_check {
  position: relative;
  display: block;
  margin: 3px;
  border: 0.889px solid var(--text-gray);
  width: 20px;
  height: 19px;
  z-index: 0;
  border-radius: 2px;
}

.check_capital input[type=checkbox]:checked~.capital_check {
  background-color: var(--primary-blue);
}

.check_capital input[type=checkbox]:checked~.capital_check::after {
  background-image: url('https://s3-eu-west-1.amazonaws.com/zapgroup.zapper.qa/merchantPortal/web/icons/tick.png');
  background-repeat: no-repeat;
  background-size: 100%;
  position: absolute;
  content: '';
  height: 10px;
  width: 12px;
  z-index: 10;
  top: 4px;
  left: 2px;
  color: #fff;
  text-indent: 0;
}

/* =========================
   UTILITY CLASSES
   ========================= */
.text-align-center {
  text-align: center;
}

.text-align-right {
  text-align: right;
}

.to-uppercase {
  text-transform: uppercase;
}

.no-wrap-span {
  white-space: nowrap;
}

/* Flex utilities */
.sc_flex_header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.sc_flex_body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

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

.sc_card_flex_row {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  justify-items: center;
  text-align: center;
}

/* =========================
   CHARTS & TABLES
   ========================= */
#scCartWrapper .ct-chart-line {
  width: 850px;
  height: 400px;
}

#previousContractsTable {
  position: relative;
}

#previousContractsTable thead {
  background: var(--border-light);
  color: var(--primary-blue);
  border-bottom: 26px solid #fff;
}

#previousContractsTable thead::after {
  background: #fff;
  height: 26px;
  content: " ";
  width: 100%;
  position: absolute;
  border-bottom: 1px solid #ddd;
}

#previousContractsTable thead th {
  border: none;
  font-size: 12px;
  line-height: 16px;
  padding: 9px 8px 14px;
}

#previousContractsTable .previous-contracts-table-cell {
  padding: 16px;
  color: var(--text-gray);
  font-size: 12px;
  line-height: 16px;
}

.status-complete {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.info-icon-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  vertical-align: middle;
  margin-right: 4px;
}

.info-icon-tooltip .info-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.info-tooltip-text {
  visibility: hidden;
  width: 220px;
  background: #333;
  color: #fff;
  text-align: left;
  border-radius: 4px;
  padding: 6px 10px;
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 120%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 12px;
  pointer-events: none;
}

.info-icon-tooltip:hover .info-tooltip-text,
.info-icon-tooltip:focus .info-tooltip-text {
  visibility: visible;
  opacity: 1;
}

#invoiceDownloadSpinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.contract-details-padding {
  padding: 15px;
}

.contract-tab-tooltip-style {
  margin: 20px 0;
  text-align: center;
  overflow: visible;
}

.contract-tab-tooltip-text {
  color: #8599a6;
  background: #ebf2f9;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
  /* keep on one line */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Make the inline link look clickable and accessible */
.contract-tab-tooltip-text a {
  color: var(--primary-blue);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  margin: 0 4px;
  display: inline-block;
}

.contract-tab-tooltip-text a:hover,
.contract-tab-tooltip-text a:focus {
  text-decoration: none;
  background: rgba(61,128,192,0.06);
  box-shadow: 0 0 0 3px rgba(61,128,192,0.12);
  border-radius: 4px;
  outline: none;
}

.previous-contracts-padding {
  padding: 15px;
}

.invoices-widget-padding {
  padding: 15px;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  body div#contentNavbarTray {
    margin-top: 40px;
  }
}

@media only screen and (max-width: 768px) {

  .txt-center,
  .txt-right {
    text-align: left;
  }

  #previousContractsTable .spacer,
  #previousContractsTable .no-icon {
    display: none !important;
  }

  #scTopupContentWrapper .row {
    display: block;
  }

  #scTopupContentWrapper .row .pull-right {
    float: none !important;
  }

  #scTopupContentWrapper .row .col-md-3 {
    text-align: center;
  }

  #previousContractsTable thead {
    display: none;
  }

  #previousContractsTable tbody,
  #previousContractsTable tfoot {
    border: none;
  }

  #previousContractsTable tbody td {
    width: 100%;
    display: block;
    border: none !important;
  }

  #previousContractsTable tbody tr {
    border: 1px solid #ddd;
    box-sizing: border-box;
    padding: 10px;
    display: block;
    margin: 0 0 10px;
  }

  #previousContractsTable tbody tr::before {
    display: table;
    content: " ";
    clear: both;
  }

  #previousContractsTable tbody tr::after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }

  .responsive-header {
    display: inline;
    width: 65%;
    font-weight: normal;
    font-family: var(--font-bold);
  }

  #previousContractsTable .responsive-body {
    width: 35%;
    display: flex;
  }

  #previousContractsTable .responsive-header,
  #previousContractsTable .responsive-body {
    float: left;
    font-size: 14px;
    padding: 0 0 6px;
  }

  #supplierCapital .content-navbar li {
    padding: 20px 2px;
  }
}