table form {
    margin-bottom: 0;
}

.table-bordered {
    border: 1px solid var(--table-border-grey);
}

.table-bordered tbody {
    border-bottom: none !important;
}

.table-bordered > thead > tr > th {
    border: 1px solid var(--table-border-grey) !important;
}

table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after {
    padding-top: 2px;
}

.dataTables_info {
    font-family: var(--mono);
    word-spacing: -4px;
}

#trade-table_filter {
    display: flex;
    align-items: center;
}

#trade-table_filter i {
    margin-right: 5px;
}

#trade-table_filter label {
    margin: 0;
}

#trade-table_filter .tooltip ul {
    padding-left: 20px;
    margin: 0;
    text-align: left;
}

#trade-table_filter .tooltip p {
    text-align: left;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    font-family: var(--mono);
    word-spacing: -4px;
}

.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover {
    background: var(--buy-blue);
    border-color: var(--buy-blue);
}

.pagination>li>a, .pagination>li>span {
    color: var(--buy-blue);
}

table.dataTable td.dataTables_empty, table.dataTable th.dataTables_empty {
    font-family: var(--sans-serif);
}

div.dataTables_wrapper div.dataTables_processing {
    border: 2px solid var(--table-border-grey);
    border-radius: 0;
}

div.dataTables_wrapper div.dataTables_length select {
    margin: 0 3px;
    width: inherit !important;
    border-radius: 0 !important;
}

.table {
    white-space: nowrap;
    border-color: var(--table-border-grey);
}

.table tbody {
    border-bottom: 1px solid var(--table-border-grey);
}

.table th,
.table td {
    padding: 0 7px 0 !important;
}

.table th.text-end.sorting,
.table th.text-end.sorting_asc,
.table th.text-end.sorting_desc,
.table th.text-end.sorting_asc_disabled,
.table th.text-end.sorting_desc_disabled {
    padding-right: 30px !important;
}

@media (max-width: 500px) {
    .table:not(.table-bordered) th,
    .table:not(.table-bordered) td {
        padding: 0 5px 0 1px !important;
    }
    .loan-form .notional-input-wrap span {
      margin-right: 6px !important;
    }
    .recent-trades.table th:first-child,
    .recent-trades.table td:first-child {
        text-align: right;
    }
}

.table th {
    font-weight: 300 !important;
}

.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th {
    background: var(--off-white);
}

.table-striped-double > tbody > tr:nth-child(4n) > td {
    background: var(--off-white);
}

.manage-addresses table {
    margin: 0 0 40px 0;
}
.manage-addresses table th,
.manage-addresses table td {
    text-align: left;
}

table:not(.table-condensed)  tr:hover:not('.no-hover') td {
    background: var(--pale-blue) !important
}


table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting:after {
    bottom: 4px !important;
}


table.dataTable thead th:not(:first-child),
table.dataTable thead td:not(:first-child) {
    text-align: right;
}

table.dataTable thead th:not(:first-child).sorting {
    padding-right: 26px !important;
}

table.table thead th,
table.table tbody td {
    font-size: 14px;
    font-weight: 400;
    line-height: 36px !important;
    text-align: right;
}
.table th:first-child,
.table td:first-child {
    text-align: left;
}

.copy-text-wrap {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.table td:not(:first-child) .copy-text-wrap {
    justify-content: flex-end;
}

.table td:first-child .copy-text-input {
    text-align: left;
    flex: 1;
}

.table th {
    border-top: 1px solid var(--table-border-grey) !important;
    border-bottom: 1px solid var(--table-border-grey) !important;
    text-align: right;
    vertical-align: middle;
}
.table .right {
    text-align: right !important;
}
.table .centre {
    text-align: center !important;
}

.table:not(.prose) td {
    font-size: 12px;
    font-family: var(--mono);
    border-top: none !important;
}

.table .qty {
    padding-left: 5px;
}

.table .action {
    text-align: center;
}

.table .executed-price {
    font-weight: 500;
}

.table .executed-price span.ccy {
    font-weight: 400;
}

.dataTable span.mono {
    text-align: right;
    float: left;
}

.table.table-bordered td,
.table.prose:not(.form) td {
    border: 1px solid var(--table-border-grey) !important;
}

.table.table-bordered tr:nth-child(odd) td {
    background: #f9f9f9;
}


.table:not(.dataTable):not(.recent-trades) th {
    font-weight: 500 !important;
}

.table.form td {
    padding-top: 5px !important;
    padding-bottom: 5px !important;

}

.table span.ccy {
    font-weight: normal;
}

.table .fas {
    font-size: 16px;
    margin-right: 10px;
}

.recent-trades .table th,
.recent-trades .table td {
    padding: 5px 8px 5px !important
}

.table td.mono,
.table span.mono {
    font-size: 10px;
    font-family: var(--mono);
}

.table .side {
    text-transform: uppercase;
}

.table .side-buy {
    color: var(--buy-blue);
}

.table .side-sell {
    color: var(--sell-red);
}

.trade-history-link {
    font-size: 14px;
}

#contract-table_wrapper .dataTables_length {
    float: left;
    margin-right: 10px;

}

#contract-table_wrapper .custom-controls-injected {
    margin-right: 20px;
    margin-top: 3px;
    float: right;
}

#contract-table_filter {
    float: right;
    margin-left: 10px;
    margin-bottom: 20px;
}

.table-slim {
    font-size: 12px;
}
.table-rates {
  width: 100%;
}
.table-rates .active td {
  font-weight: 500;
  color: var(--buy-blue);
}
.rate-page .table-slim {
  width: calc(100% + 1px);
}
.single-balances-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
}


.loan-form h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 -1px;
  padding: 4px;
  display: flex;
  justify-content: space-between;
}
.loan-form h3 a {
  font-weight: normal;
  font-size: 12px !important;
  line-height: 16px;
}
.rates-page-schedule .table-slim {
  width: 100%;
}
.transfer-ledger .table-slim,
.verbose-balances .table-slim {
  width: 100%;
}


.table-slim tbody:first-of-type {
    border-top: none;
}

.table-slim tbody {
   border-top: 2px solid #888;
}

.table-slim tbody tr:nth-child(even) {
   background: #f5f5f5;
}

.table-slim th {
    text-transform: uppercase;
    font-weight: 500;
    line-height: 15px;
    white-space: nowrap;
}

.table-slim th:first-child,
.table-slim td:first-child {
    text-align: left;
    padding-left: 4px;
}

.rate-page .table-slim th,
.rate-page .table-slim td {
      padding: 0px 4px 0px 5px;
}
.rate-page .table-slim th{
      padding-bottom: 5px;
}

.table-slim th,
.table-slim td {
    text-align: right;
    padding: 2px 4px 2px 15px;
}

.table-slim td {
    border: 1px solid var(--cell-borders);
    font-weight: 400;
    font-family: var(--mono);
    padding-left: 10px;
    white-space: nowrap;
    line-height: 25px !important;
}

.small-balances {
  border: none;
  display: flex;
  padding: 2px 8px;
  background: #f9f9f9;
  justify-content: space-evenly;
  margin-bottom: 2px;
}

.loan-balances-heading-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
  margin-bottom: 15px;
}

.loan-balances-heading-row p {
  margin-bottom: 0
}

.loan-balances table {
  width: 100%;
  font-size: 12px;
  font-weight: 400;
}

.loan-balances th {
  font-weight: 500;
  text-transform: uppercase;
  text-align: right !important;
}

.loan-balances td {
  text-align: right !important;
  font-family: var(--mono);
  padding: 0 2px;
  border-color: #efefef;
}

.small-balances > * {
  width: 25%;
  text-align: right;
}

.small-balances p {
  margin: 0;
}

.small-balances p strong {
  font-weight: 400;
}

.small-balances p span {
  font-family: var(--mono);
  font-weight: 400;
  padding-left: 10px;
}

.small-balances h3 {
  text-transform: uppercase;
  font-weight: normal;
  margin: 0 !important;
  line-height: 23px;
  font-size: 13px;
  /* justify-self: flex-start; */
}

.danger {
  color: var(--sell-red);
}

.table-wrap-balances  {
    background: #efefef;
    padding: 2px 15px !important;
    width: 100%;
    margin-bottom: 10px;
}

.table-wrap-balances a {
  text-decoration: underline;
}
.table-wrap-balances td  {

  padding: 2px 0;
  border: none;
}
.table-wrap-balances th  {
  font-weight: 500;
  border: none;
}

.table-wrap-balances td {
  text-align: left;

}
.table-wrap-balances th:first-child {
  /* border: none; */
  /* padding-right: 190px; */
  vertical-align: middle;
}
.table-wrap-balances td:last-child {
  border: none;
  padding-left: 14px;
  text-align: right;
}


.positive {
    color: #2d66bd;
}

.negative {
    color: #bd2d2d;
}
.table-verbose-balances .loading {
    margin: 10px;
}
.table-verbose-balances th:first-child,
.table-verbose-balances td:first-child {
    width: 32px !important;
    padding-right: 4px;
}
.table-verbose-balances .icon {
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    text-align: center;
    font-family: var(--mono);
}
.table-verbose-balances .icon img {
    opacity: 0.75;
}

.table-verbose-balances th:last-child,
.table-verbose-balances td:last-child {
    width: 32px !important;
    padding-left: 4px;
}

.table-verbose-balances tr.selected td {
    background: var(--pale-blue);
}

table .left {
    text-align: left !important;
}

.transfer-ledger-row td:first-child span {
    text-indent: 27px;
    display: inline-block;
    float: none;
}

.transfer-ledger-row td:first-child .icon ~ span {
    text-indent: 0;
}

.transfer-ledger-row td:first-child .icon {
    display: inline-block;
    margin-right: 10px;
    min-width: 20px;
    text-align: center;
    font-weight: 500;
    font-size: 19px;
    opacity: 0.8;
    /* display: none; */
    color: black;
}

.transfer-ledger-row td:nth-child(3),
.transfer-ledger-row td:nth-child(4) {
    text-transform: capitalize;
}

.btn-borrow {
    background: #fff;
    color: var(--magenta);
    border-color:var(--magenta);
}

.btn-deposit:focus,
.btn-deposit {
    background: #fff;
    color: var(--purple);
    border-color:var(--purple);
}


.btn-borrow:active:focus,
.btn-deposit:hover {
    outline: none;
    color: white;
    background: var(--magenta);
    border-color: var(--magenta);
}


.btn-borrow:focus,
.btn-borrow:active,
.btn-borrow:hover {
    background: var(--purple);
    border-color: var(--purple);
    outline: none;
}


thead.with-notes th {
    vertical-align: top !important;
    padding: 0 5px 0 0 !important;
}

thead.with-notes th .main {
    line-height: 1.4;
    margin: 2px;
    text-transform: none;
}

 h2 .note {
     font-size: 12px;
     font-weight: 200;
     box-shadow: 5px 5px 5px white;
     font-family: var(--mono);
     display: block;
 }

 .blur {
   filter: blur(3px);
   transition: all 0.5s ease-in-out;
 }

 .blur-minor {
    filter: blur(1px);
    transition: all 0.5s ease-in-out;
  }


.table-horiz {
  font-size: 12px;
  text-align: right;
  border: 1px solid var(--cell-borders);
  margin-top: 10px;
  margin: 10px auto;
}

.rates-page-schedule .table-horiz {
  margin: 10px 0;

  width: 100% !important;
}

 .table-horiz th,
 .table-horiz td {
     padding: 3px 5px;
     border-bottom: 1px solid var(--cell-borders);
 }

 .table-horiz th {
     text-align: left;
     font-weight: 500;
     border-right: 1px solid var(--cell-borders);
 }


.table-terms  #reportrange {
    padding: 0 5px;
    line-height: 1.8
   }

  .table-terms  th:last-child,
  .table-terms  td:last-child {
      text-align: center;
      white-space: nowrap;
  }

  .expiry-wrap {
      display: flex;
      margin-top: 18px;
  }
  .expiry-wrap .alert {
    flex: 1;
  }
  .expiry-wrap a {
      text-decoration: underline;
  }

  .loan-form .alert:first-child {
      margin-top: 0px !important;
  }

  .expiry-wrap .alert {
      margin-top: 0px !important;
      margin-bottom: 10px !important;
      border: none !important;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      background: var(--off-white);
      padding: 5px 0 10px 0px;
  }

  .expiry-wrap .progress {
      margin-bottom: 5px;
      height: 2px;
      background: var(--pale-blue);
  }
  .expiry-wrap .progress-bar {
      height: 2px;
      background: var(--buy-blue);
  }
  .loan-form > div {
      margin-bottom: 20px;
  }
  .loan-form .notional-wrap {
      white-space: nowrap;
      display: flex;
      align-items: center;
      margin-top: -5px;
      margin-bottom: 15px;
      justify-content: space-between;
      padding-bottom: 10px;
  }
  .loan-form .radio-grid-wrap {
    margin-bottom: 0;
  }

  .loan-form .interest-frequency-wrap {
      margin-bottom: 25px;
      display: flex;
      justify-content: space-between;
  }

  .loan-form > div:first-child  {
      margin-bottom: 10px;
      border-bottom: 1px solid var(--table-odd-rows);
  }

  .loan-form label  {
      margin: 0;
  }

  .loan-form .notional-input-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .loan-form .notional-input-wrap input {
    margin-top: 18px;
  }

  .loan-form .notional-input-wrap span {
    margin-right: 13px;
    font-size: 11px;
    font-weight: 500;
    font-family: var(--mono);
    color: #8a8a8a;
    line-height: 17px;
  }

  .calendar-row {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
  }
  .collateral-row {
    border: 1px solid #efefef;
    padding: 10px;
    transition: height .2s ease-out, opacity .5s ease-out;
    margin-bottom: 0 !important;
  }
  .collateral-row h3 {
    margin: 0;
    text-transform: uppercase;
    font-size: 13px;
    padding: 0 0 5px;
  }
  .collateral-row input {
    width: 120px;
  }

  .loan-form label {
      margin-right: 3px;
  }

  .collateral-row div {
    display: flex;
    align-items: center;
  }

  .day-count input {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
  }

  .loan-form input[type=number]  {
      flex: 1;
      max-width: 120px;
      padding: 0 0 0 4px;
      text-align: right;
      text-indent: 10px;
  }

.loan-form input[type=number]::-webkit-inner-spin-button,
.loan-form input[type=number]::-webkit-outer-spin-button {
   margin-left: 5px;
   opacity: 1;
}

.loan-form .radio-grid {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
  gap: 3px 3px;
}

.radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px 2px;
}

.radio-grid-wrap label {
    display: flex;
    align-items: center;
    padding: 4px 0px 4px 10px;
    cursor: pointer;
    background: #efefef5c;
    margin-bottom: 0;
    margin-right: 0;
}

.radio-grid-wrap label.custom-term {
    margin-top: 2px;
}

.radio-grid-wrap .date-picker {
    margin: 0 0 0 10px;
    min-width: auto;
}

.date-picker {
    min-width: auto;
    background: white;
    padding: 2px 10px;

    cursor: pointer;
    font-weight: 400;
}
.date-picker:hover {
    border-color: var(--text);
    color: var(--buy-blue);
}

.ndf-date-picker {
    border: 1px solid var(--cell-borders);
}

.radio-grid-wrap label:hover {
    background: #efefef9e;
}

.radio-grid-wrap label.active {
    color: var(--buy-blue);
    font-weight: 500;
    background: #ececec;
}

.terms-form .summary:first-of-type {
  margin-top: 20px;
}

.terms-form .summary {
  margin: 0 0 0;
  display: flex;
  align-items: center;
  font-size: 13px;
  align-content: center;
  justify-content: space-between;
}

.terms-form .summary:last-child {
    margin-bottom: 20px;
}

.term-arrow {
    margin: 0 5px 0 5px;
    font-size: 16px;
    line-height: 0;
}

.terms-form .summary strong {
    margin-right: 5px;
    min-width: 43px;
}

.terms-form .summary span:first-child {
    min-width: 60px;
    display: inline-block;
    font-weight: 400;
}

.terms-form .summary span:last-child {
    font-family: var(--mono);
    font-weight: 400;
    display: block;
}

.radio-grid-wrap input {
    margin: 0 10px 0 0;

}

.radio-grid-wrap label span {
    margin: 0 0 -2px 5px;
    font-weight: 400;
    font-size: 12px;
    text-transform: none;
    color: grey;
}

.loans-schedule-table {
    width: 100%;
    border-spacing: 0;
    border-bottom: 1px solid;
}

.loans-schedule-table thead {
    border-bottom: 1px solid;
}

.loans-schedule-table thead, .loans-schedule-table tbody, .loans-schedule-table tr, .loans-schedule-table th, .loans-schedule-table td {
    display: block;
}

.loans-schedule-table thead tr {
    /* fallback */
    width: 97%;
    /* minus scroll bar width */
    width:         calc(100% - 16px);
}

.loans-schedule-table tr:after {  /* clearing float */
    content: ' ';
    display: block;
    visibility: hidden;
    clear: both;
}

.loans-schedule-table tbody {
    height: 96px;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 11px;
}

.loans-schedule-table tbody tr td:first-child, .loans-schedule-table thead tr th:first-child {
    width: 45%;
    float: left;
}

.loans-schedule-table tbody tr td:nth-child(2), .loans-schedule-table thead tr th:nth-child(2) {
    width: 35%;
    float: left;
}

.loans-schedule-table tbody tr td:nth-child(3), .loans-schedule-table thead tr th:nth-child(3) {
    width: 20%;
    float: left;
}

.swal2-content .loans-schedule-table {
    font-size: 10px;
}

.swal2-content .loans-schedule-table tbody tr td:first-child, .swal2-content .loans-schedule-table thead tr th:first-child {
    width: 36%;
}

.swal2-content .loans-schedule-table tbody tr td:nth-child(2), .swal2-content .loans-schedule-table thead tr th:nth-child(2) {
    width: 25%;
}

.swal2-content .loans-schedule-table tbody tr td:nth-child(3), .swal2-content .loans-schedule-table thead tr th:nth-child(3) {
    width: 20%;
}

.swal2-content .loans-schedule-table tbody tr td:nth-child(4), .swal2-content .loans-schedule-table thead tr th:nth-child(4) {
    width: 19%;
    float: left;
}

.recent-trades-wrapper .last-updated {
    font-size: 11px;
    color: var(--text-unimportant);
    margin: 0 20px 0 0;
    font-weight: normal;
    font-family: var(--mono);
}

.recent-records-table tr td {
    vertical-align: middle !important;
}

.table-date {
    margin-bottom: 4px;
    line-height: 1;
    font-size: 12px;
}

.table-time {
    margin-bottom: 0;
    line-height: 1;
    font-size: 10px;
}
