html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 100px; /* footer height + margin */
    overflow-y: scroll;
}

.long {
    color: var(--magenta);
}

.short {
    color: var(--purple);
}

.close {
    font-weight: 300;
}

code {
    font-family: var(--mono);
    color: var(--buy-blue);
    background: var(--pale-blue);
}

.content-container {
    /* Ensure 4 tickets can sit in each row on the streaming prices page */
    max-width: 1703px;
    clear: both;
}

.alert.dismissable-alert a {
    text-decoration: underline;
}

.alert-dismissable {
    display: none;
}

.alert .alert-dismiss {
    float: right;
    cursor: pointer;
}

.alert .alert-dismiss:hover {
    opacity: .5;
}

h1 {
    font-size: 21px;
    line-height: 27px;
    padding-bottom: 0;
    margin-bottom: 0;
}

h2 {
    font-size: 1.1rem;
    padding-bottom: 0;
}

h2 + p,
h4 + ul {
    margin-bottom: 20px;
}

.mono {
    font-family: var(--mono);
}

a {
    cursor: pointer;
}


h2 .subtext {
    font-size: 15px;
    line-height: inherit;
    line-height: 1.1;
    display: block;
    margin-top: 10px;
    font-weight: 400;
}

h4 .subtext {
    font-size: 15px;
    font-weight: 400;
}

h3 {
    font-size: 16px;
}

strong {
    font-weight: 500;
}

.panel-heading {
    padding: 0;
}

.panel-body {
    padding: 10px 0;
}

.panel-inverse > .panel-heading {
    background: none;
    color: #262628;
    border-radius: 0px;
    border: none;
}

.panel-group .panel {
    border-radius: 0px;
    box-shadow: none;
}

.panel-title {
    font-size: 16px;
}

.accordion-toggle .fas:before {
    content: '\f062' !important;
}

.accordion-toggle.collapsed .fas:before {
    content: '\f063' !important;
}

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

.footer {
    background: var(--footer-bg);
    color: var(--text-inverse);
    margin: 0;
    padding: 20px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    min-height: 60px;
}

.footer p {
    font-size: 14px;
    margin: 0;
}

.footer a {
    color: var(--off-white);
    margin-left: 20px;
}

.footer a:hover {
    color: var(--grey);
    text-decoration: underline;
}

.btn-icon {
    font-size: 16px !important;
}

.btn-icon.btn.btn-success:hover,
.btn-icon.btn.btn-success {
    padding: 20px;
    background: none !important;
}

.btn-success {
    background: #86035095;
}

.btn-circle {
    height: 20px !important;
    width: 20px !important;
    padding: 2px !important;
}

.btn-circle i {
    font-size: 14px !important;
}

#accordion h2 {
    margin-top: 20px;
}

.buy-sell-radios {
    text-align: center;
    clear: both;
    overflow: hidden;
}

.buy-sell-radios label {
    padding: 7px 10px !important;
    color: var(--buy-blue);
    border: 1px solid var(--buy-blue);
    text-align: center;
    cursor: pointer;
    width: 48%;
    float: right;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.buy-sell-radios input {
    margin-left: 5px;
    border: 2px solid white;
}

.buy-sell-radios label:first-child {
    float: left;
    margin-right: 0px;
    border-color: var(--sell-red);
    color: var(--sell-red);
    margin-bottom: 0;
}

.btn.btn-success {
    background: #86035095 !important;
    color: white;
    border-color: #86035095 !important;
}

.btn.btn-success:hover {
    background: rgba(51, 39, 95, 0.9) !important;
    color: white;
    border-color: rgba(51, 39, 95, 0.9) !important;
}

.btn.btn-danger {
    background: #dfdede !important;
    color: black !important;
    border-color: #dfdede !important;
}

.refresh-recent-trades {
    cursor: pointer;
    font-size: 16px;
}



.currency-select option {
    text-align: right;
}

input.warning,
select.warning {
    border-color: var(--sell-red) !important;
    color: var(--sell-red);
}

.quote-column .checkbox {
    padding-top: 0;
    font-size: 14px;
}

#trade-quantity-swal-input {
    text-align: center;
    width: 100%;
}

.swal2-modal .swal2-buttonswrapper.swal2-loading :not(.swal2-styled).swal2-confirm::after {
    margin-left: 8px;
    vertical-align: -2px;
    border: 3px solid #fff;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-right-color: transparent;
}

.form-control {
    font-family: var(--sans-serif) !important;
}

#login-form {
    padding: 5px 0px 0px 0px;
    border-radius: 5px;
}

.sign-in-div {
    display:flex;
    justify-content: center;
    margin: 0px 0px 13px 0px;
}

.sign-in-div .sign-in-title {
    font-size: 26px;
    font-family: var(--sans-serif);
    font-weight: 500;
    letter-spacing: -0.5px;
}

#recaptcha-div {
    margin-top: 20px;
}

.icon-link {
    color: #656464;
}

.icon-link:active,
.icon-link:hover {
    text-decoration: none !important;
}


.select-wrap {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.select-wrap i {
    display: block;
    position: absolute;
    top: 1px;
    right: 2px;
    border-left: 1px solid #ccc;
    padding: 8px 10px 9px 10px;
    font-size: 15px;
    cursor: pointer;
    z-index: -1;
}

.download-link {
    text-decoration: underline;
}

.swal-row .icon-link {
    display: inline;
}

.unauthenticated {
    text-align: center;
}

.settlement-form select,
.settlement-form input {
    font-family: var(--mono);
    font-weight: 400;
}

.input-group-text{
    font-size: 14px;
}

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

.numeric {
    font-family: var(--mono);
}

.warn {
    color: var(--sell-red);
    font-weight: 500;
}


.transfer-arrow {
    margin: 0 55px 0 55px;
    font-size: 25px;
    line-height: 0;
}

.transfer-amount label {
    margin-bottom: 0;
}

.btn-tertiary {
    border: 1px solid var(--teal);
    background: var(--pale-blue);
    color: var(--teal);
}

.btn-tertiary:hover {
    background: var(--teal);
    color: white;
}

.btn-edge {
    border: 1px solid #bbbbbb;
    background: #eef1f5;
    box-shadow: 1px 1px 5px #efefef;
}

.btn-edge:focus {
    outline: none;
}

.transfer-available {
    margin-left: 10px;
}
.transfer-amount > div {
    display: flex;
    align-items: center;
}

.capitalise {
    text-transform: capitalize;
}

.inst-wrap {
    margin-bottom: 40px;
}

.inst-header-wrap {
    display: flex;
}

.inst-header-wrap strong,
.inst-column-wrap p {
    padding: 2px 4px;
}

.inst-header-wrap strong {
  min-width: 70px;
  margin-left: -1px;
}

.inst-column {
    font-weight: 300;
    border-top: 1px solid lightgrey;
    margin-left: -1px;
}

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

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


.inst-column-wrap {
    display: flex;
}

.inst-column-wrap p {
    width: 70px;
    margin: 0;
    border: 1px solid var(--cell-borders-light);
    border-width: 0 1px 1px 1px;
}

.funding-rebate-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.nav-action-icon-wrap:hover {
    background: var(--bs-light-bg);
}

.nav-details .verbose-balances .refresh {
    padding-right: 0 !important;
}

.nav-details:hover .refresh {
    border-right-color: transparent;
}

.nav-action-icon-wrap {
    display: flex;
    height: 100%;
    border-right: 1px solid var(--bs-border-color);
}

.nav-action-icon-wrap i {
    width: 15px !important;
    height: 15px;
}

.nav-details:hover {
    cursor: default;
}

.nav-details_list {
    display: flex;
    /* height: 100%; */
    padding: 1px 0 0 0;
    align-content: center;
}

.nav-details_list.highlighted {
    background: #ffffff35;
}

.nav-details_balance {
    list-style: none;
    margin: 3px 0;
    padding-right: 4px;
    padding-left: 16px
}

.nav-details_item {
    text-align: right;
    margin: 2px 10px 0 15px;
    white-space: normal;
    color: white;
}

.nav-details_item:first-child {
    margin-left: 10px;
}

.nav-details_item-label {
    font-size: 12px;
    margin-bottom: -3px;
    line-height: 13px;
    font-weight: 200;
    white-space: nowrap;
}

.nav-details_number {
    font-weight: 600;
    font-family: var(--mono);
    font-size: 12px;
    margin-bottom: 0;
    white-space: nowrap;
}

.nav-details_list-items:hover .nav-details_desc  {
    text-overflow: unset;
    white-space: normal;
    visibility: visible;
    padding-bottom: 13px;
    height: auto;
}

.nav-details_desc {
    font-weight: 200;
    font-size: 12px;
    line-height: 14px;
    white-space: break-spaces;
    display: none;
}

.nav-details_label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0 8px;
    align-self: center;
    font-family: var(--mono);

}


.verbose-balances-toggle .card {
    position: absolute;
    right: 0;
    top: 54px;
}


.funding-rate-chart svg g:last-child path {
    cursor: pointer;
}

.funding-rate-chart-info {
    display: flex;
    justify-content: space-between;
}

.funding-rate-chart-info p {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 20px;
}

.funding-rate-chart-info div:last-child {
    text-align: right;
}

.funding-rate-chart-heading span {
    font-weight: 300;
}

.funding-rate-chart-wrap {
    border: var(--off-white) 1px solid;
    margin-bottom: -1px;
    padding: 0 10px;
    position: relative;
}

.funding-rate-chart-heading {
    margin-bottom: 10px;
    margin-top: 10px;
}
.funding-rate-download-row {
    display: flex;
    justify-content: space-between;
}

.funding-rate-download-row a,
.funding-rate-download-row span {
    display: block;
}

.btn-active {
    border-color: var(--buy-blue);
    color: var(--buy-blue);
    cursor: default;
}
.btn-inactive {
    border-color: var(--text);
    color: var(--text);
    cursor: default;
}

.btn-outline span {
    padding: 0 2px;
}

.instruments-table tbody .streaming-price {
    font-weight: 400;
}

.instruments-table .ticket_price_value_text {
    padding-top: 0;
    padding-bottom: 0;
}

.instruments-table tbody a.rate-link {
    text-decoration: underline;
}

.instruments-table tbody .sell > a.rate-link {
    color: var(--sell-red);
}

.instruments-table tbody tr a.rate-link:hover {
    text-decoration: none;
}

.instruments-table tbody tr.instrument-disabled {
    opacity: 0.7;
}

.instruments-table tbody tr td:first-child .icon {
    font-size: 18px;
    font-weight: 400;
}

.instruments-table tbody tr td button {
    font-size: 12px;
}

.instruments-table .instruments-table-info {
    border: none !important;
}

.instruments-table .sales-info {
    margin: 0;
    text-align: center;
    font-size: 14px;
    font-family: 'Rubik', monospace;
    color: var(--border-grey);
}
.copy-text-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.copy-text-input {
    border: 0;
    max-width: 285px;
    background: transparent;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
    font-size: 10px;
}

.copy-text-input:focus {
    outline: none;
}

.copy-text-button {
    border: 0;
    background: transparent;
    padding-right: 0;
    width: 16px;
    padding-left: 0;
}

.copy-text-button i.fas {
    margin-right: 0 !important;
    color: #7b7a7a;
}

.copy-text-button i.fas.fa-copy:hover {
    color: var(--text);
}

.copy-text-button .fas.fa-check {
    color: var(--buy-blue);
}

.loan-axes-table tr td:nth-child(2), .loan-rates-table tr td:nth-child(3) {
    text-align: left;
}

.loan-axes-table tr td:nth-child(n+3):nth-child(-n+6)::after {
    content: '%';
    padding-left: 4px;
}

.loan-axes-table .icon, .loan-rates-table .icon {
    opacity: 0.9;
    font-size: initial;
    margin-left: 5px;
}

/* (i) information icons */
.loan-axes-table th svg, .loan-rates-table th svg {
    margin-right: 5px;
}

.loan-axes-table .icon i, .loan-rates-table .icon i {
    margin-top: 4px;
    display: block;
}

.loan-rates-table tr td span.percent::after, .instruments-table tr td span.percent::after {
    content: '%';
    padding-left: 4px;
}

.loan-rates-table th.align-right {
    text-align: right;
}


.loan-rates-table thead tr:nth-child(2) th.lend-borrow {
    font-weight: normal !important;
    width: 75px;
}

.loan-rates-table .borrow {
    text-align: right;
}

.loan-rates-table .spacer-col {
    padding-left: 25px !important;
    padding-right: 25px !important;
}

.loan-rates-table a, .loan-axes-table a {
    color: inherit;
}

.loan-rates-table tr:hover a, .loan-axes-table tr:hover a {
    text-decoration: underline;
}

.loan-rates-table td:first-child {
    width: 20px;
}

.loan-rates-table thead tr th:first-child {
    width: 32px;
}

.loan-rates-table thead tr th:nth-child(2) {
    width: 65px;
}

.loan-rates-table thead tr th:nth-child(3) {
    width: 370px;
}

.loan-rates-table .favourite::before {
    content: '☆';
    font-family: arial, sans-serif;
    position: relative;
    top: 0px;
    font-size: 18px;
    opacity: 0.7;
    cursor: pointer;
}

.loan-rates-table .favourite.is-favourite::before {
    content: '★';
}

.loan-rates-table .favourite-icon-sentence {
    font-size: 24px;
}

.loan-rates-table .favourites-empty-component {
    font-family: var(--sans-serif);
}

.recent-trades-wrapper .refresh {
    margin-left: 10px;
}

.recent-trades-wrapper .refreshing {
    opacity: 0.6;
    cursor: default;
}

.terminate-loan {
    margin-right: 5px;
}

.b2c2-swal .schedule-title, .schedule-title {
    text-align: left;
    margin: 20px 0 0;
}

#equityMarginReactContainer svg {
    margin: 2px 5px 5px 0;
}

.last-updated-warning {
    color: var(--sell-red) !important;
    font-weight: 500 !important;
}

.collateral-min-max {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    line-height: 1;
    padding-top: 1px;
    align-items: unset !important;
    font-weight: 500;
    font-family: var(--mono);
    color: #8a8a8a;
}

.collateral-min {
    margin-bottom: 1px;
}

.collateral-min, .collateral-max {
    display: flex;
    justify-content: space-between;
}

.collateral-min span, .collateral-max span {
    margin-left: 2px;
}

.accordion h3 {
    cursor: pointer;
}

.accordion h3:hover a {
    text-decoration: underline;
}

.btn-group-lg > .btn, .btn-lg{
    --bs-btn-font-size: 18px;
}

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

