/**
* Global styles included in `base.html` Django template.
*
* This is basically a junk drawer of existing legacy styles that
* we've been including via templates.
*
* At time of creation, this file was about 1500 lines.
* Our goal should be to shrink this file over time as we remove
* vue and semantic-ui.
*/



/**
* ----------------------------------------------------------------------
* The below styles are from removed file `indigo/static/base.css`
* <https://github.com/narmi/banking/blob/releases/v2023.5/indigo/static/base.css>
*/
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.h3 {
    color: rgb(var(--title-color));
    font-weight: 700;
}
.ui.table {
    border: rgb(var(--border-color)) !important;
}

.display-none {
    display: none!important;
}

.pulled.right {
    float: right;
}

.main-content {
    min-height: 100vh;
}

.grid.container.messages .column {
    padding-top: 0;
}

.hidden.menu {
    display: none;
}

.break-all {
  word-break: break-all;
}

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

.ui.text.menu .toc.item {
    display: none;
}

.ui.messages.flash-messages {
  margin: 0;
}

.right-spaced.column {
    padding-right: 5em;
}

.section-header {
    font-weight: 700;
    font-size: 28px;
    line-height: var(--font-lineHeight-default);
    color: #333333;
    margin-bottom: 20px;
}

.section-header-background {
    position: relative;
    margin-bottom: 40px;
}
.section-header-background:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: var(--theme-primary);
    opacity: 0.1;
}

.section {
    margin-bottom: 3em;
}

.footer.segment {
    padding: 5em 0em;
}

.ui.mobile.menu {
    display: none;
}

img#logo {
    width: auto;
    max-width: 250px;
    max-height: 44px;
}

.ui.menu .item>i.dropdown.icon {
    margin: 0 1em 0 0.5em;
}

.ui.text.menu .item a:not(.button){
  color: inherit;
}

.ui.cards.codes .content {
  padding: 1rem;
}

h3.nds-sans.semibold, h4.nds-sans.semibold {
    font-weight: 600;
}

#info {
    border-top: 2px solid #eaeced;
    border-bottom: 2px solid #eaeced;
    padding-top: 1em;
    padding-bottom: 1em;
    margin-top: 4em;
}

#info a {
    color: inherit;
}

.inline-form-input-row {
    display: flex;
}
.actions.inline-form-input-row {
    justify-content: flex-end;
}
.inline-form-inputs {
    flex-grow: 1;
    width: auto !important;
    margin-right: 1em !important;
}
.inline-form-inputs:last-child {
    margin-right: 0 !important;
}

.inline-form {
    display: inline;
}

.flash-messages .message:first-child {
    margin-top: 0.5em;
}

.ui.card.fluid>.content {
    padding: 20px;
}

div.ui.segment.semibold, p.ui.segment.semibold, span.ui.segment.semibold, div.semibold {
    font-size: var(--font-size-default);
}
.ui.menu{
    font-size: var(--font-size-default);
}

.ui.list>.item .header {
    margin-bottom: 10px;
}
.ui.button {
    font-size: 1em;
}

.ui.segment {
    font-size: 1em;
}

.ui.form {
    font-size: 1em;
}

@media only screen and (max-width: 991px) {
    .ui.fixed.menu {
        display: none !important;
    }

    .ui.text.menu {
        margin: 1em 0em 1em 0em;
    }

    .ui.text.menu .toc.item {
        display: block;
    }

    .ui.text.menu .right.menu {
        display: none;
    }

    .item.logo {
        width: 50%;
        margin: 0 auto !important;
        left: -17px;
    }

    img#logo {
        margin: 0 auto !important;
    }

    .ui.text.menu .right.item {
        display: none;
    }

    .ui.mobile.menu {
        display: block;
        position: absolute;
    }

    #login {
        display:  none;
    }

    .right-spaced {
        padding-right: 1rem;
    }

    .left-mobile-alignment {
        text-align: left!important;
    }
}

.card-controls-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 30px;
}

@media (max-width: 1280px) {
    .card-controls-container {
        display: flex;
        flex-direction: column;
    }
}


/**
* ----------------------------------------------------------------------
* The below styles are from removed file `indigo/static/style.css`
* <https://github.com/narmi/banking/blob/releases/v2023.5/indigo/static/style.css>
*/

.pull.left {
  float: left;
}

hr {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e9e9e9;
}

.deactivate-modal hr {
  width: auto;
}

h2 {
  font-weight: 700;
  font-size: 28px;
  line-height: var(--font-lineHeight-default);
  margin-bottom: 30px;
}

h3 {
  font-weight: 700;
  font-size: var(--font-size-l);
  line-height: var(--font-lineHeight-default);
}

hr.extended {
  margin-left: -2rem;
  width: calc(100% + 2rem);
}

.main-content.card-wrapper-page .ui.inverted.dimmer,
.main-content.card-wrapper-page .ui.dimmer {
  background-color: transparent;
}

.main-content.enrollment-page {
  padding-top: 0;
  padding-bottom: 0;
}

.main-content.login-flow-page {
  padding-top: 0;
}

#info {
  margin-top: 0;
  border-top: none;
  background: #fff;
}

.ui.border-bottom.fluid.button{
  border-radius: 0 !important;
  border-bottom: 1px solid #e9e9e9;
}

.ui.popup .content ul {
  margin-top: 0;
}
.ui.popup .ui.multiple.search.selection.dropdown {
  margin-right: 44px;
}

.ui.wireframe.placeholder {
  width: 100%;
  min-height: 85px;
  overflow-x: hidden;
  background-image: url("/static/images/dummy_paragraph.bbab5e977293.png");
  background-repeat: round;
}

@media screen and (max-width: 768px) {
  .footer-logo {
    margin-bottom: 1rem;
  }
}

div[data-tab="external"] .ui.button.labeled {
  min-width: 206px;
  margin-bottom: 20px;
}

.accounts.row .button {
    margin-bottom: 0.5em;
}

.accounts.row .dropdown {
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.transfer.menu {
    border: none;
    box-shadow: none;
    flex-flow: column;
}

.transfer.menu .item {
    margin: 0 0.5em 0.5em 0;
    padding: .78571429em 1.5em .78571429em;
}
.transfer.menu .item.active {
    box-shadow: 0 0 0 1px rgba(34,36,38,.15) inset;
    border-radius: .28571429rem !important;
}

.ui.breadcrumb a .icon {
  color: #000;
}

.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  flex-grow: 1;
}
.row .break {
  flex-basis: 100%;
}
.row .space {
  width: 20px;
  height: 0;
}
.form .field {
  display: flex;
  flex-direction: column;
  min-width: 210px;
  margin-bottom: 20px !important;
  flex-grow: 1;
}
/* "n wide" fields specify their own width */
.form .field.wide {
  min-width: unset;
}

.form .field label {
  font-weight: 700;
  font-size: var(--font-size-default);
  line-height: var(--font-lineHeight-default);
}

.form input[type="text"] {
  padding: 12px;
  border: 2px solid rgb(var(--border-color));
  box-sizing: border-box;
  border-radius: 4px;
}
.form input[type="text"].error {
  border: 2px solid var(--color-errorDark);
}
.form .actionbar {
  position: relative;
}
.form .actionbar .error-message {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  bottom: 35px;
  width: 150px;
  left: -15px;
}
.form .actionbar .error-message .text {
  background-color: rgb(var(--tooltip-color));
  border-radius: 4px;
  padding: 12px;
  color: white;
  text-align: center;
}
.form .actionbar .error-message .carat {
  content: " ";
  height: 0;
  width: 0;
  border: 6px solid transparent;
  border-top: 6px solid rgb(var(--tooltip-color));
}

.tooltip {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  bottom: 35px;
  width: 150px;
  left: -15px;
}
.tooltip .text {
  background-color: rgb(var(--tooltip-color));
  border-radius: 4px;
  padding: 12px;
  color: white;
  text-align: center;
}
.tooltip .carat {
  content: " ";
  height: 0;
  width: 0;
  border: 6px solid transparent;
  border-top: 6px solid rgb(var(--tooltip-color));
}

.ui.top.center.popup {
  background-color: rgb(var(--tooltip-color));
  color: white;
  padding: 0.4rem;
  max-width: 180px;
}
.ui.top.center.popup:before {
  background-color: rgb(var(--tooltip-color));
}

/* notifications should be 60px from the top, but .ui.text.menu includes 15px margin */
.ui.text.menu #notifications-container {
  top: 45px;
}

.broken-wordwrap {
    word-wrap: break-word;
}

.category {
    margin: 0 0 0.25em 0;
    min-width: 7.5em;
}

.display-none {
  display: none;
}

.ui.inverted.button.btn--active:hover {
    box-shadow: 0 0 0 2px #FFF inset!important;
    background: 0 0;
    color: #FFF;
}

.cursor-none {
    cursor: inherit;
}

.cursor-none:hover {
    cursor: inherit;
}

.ui.basic.button.borderless, .ui.basic.button.borderless:hover {
    border: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
    box-shadow: none;
    background-color: transparent !important;
}

.ui.button.left {
    text-align: left;
}
.ui.centered.segment {
    text-align: center;
}
.ui.bordered.segment {
  border: 1px solid rgba(34,36,38,.15);
  border-radius: 0;
}

#internal--user-profile-label {
    margin-left: 1em;
    bottom: 0.33em;
}

pre.statement::first-line {
    line-height: 1em;
}

pre.statement.two-line {
    line-height: 0.5em;
}

pre.statement {
    clear: both;
    overflow: auto;
}

dl {
  padding: 0.5em;
}
dt {
  float: left;
  clear: left;
  text-align: right;
  font-weight: bold;
  margin-right: 0.5em;
}
dt:after {
  content: ": ";
}


@media only screen and (min-width: 768px) {
   .ui.transfer.menu {
      flex-flow: row;
   }

   .accounts.row .dropdown {
       width: 40px;
       border-left: 1px solid var(--bgColor-cloudGrey);
       padding: 0;
   }

}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    /* Fix https://github.com/Semantic-Org/Semantic-UI/issues/4342. */
    .computer.only {
      display: none !important;
    }
}

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

    .category {
        display: none;
    }

}

.g-recaptcha > div {
  margin-right: auto;
  margin-left: auto;
}

.step-links > .ui.button:first-of-type {
  margin-right: 10px;
}

.step-links > .ui.button:last-of-type {
  margin-left: 10px;
}

.inputWithIcon {
  position: relative;
}
.inputWithIcon > input {
  padding-left: 28px;
  border: none;
}
.inputWithIcon > input:focus {
  border: none;
  box-shadow: none;
  outline: none;
}
.inputWithIcon svg {
  position: absolute;
  top: 6px;
  left: 8px;
  color: rgb(var(--input-grey-color));
}

.nds-input-style-override input::placeholder {
  color: rgb(var(--input-grey-color)) !important;
  font-weight: 400;
}
.nds-input-style-override input {
  line-height: normal;
  text-rendering: geometricPrecision;
}

.inputBox.search .nds-input-icon.narmi-icon-search {
  font-size: 1em;
}
.inputBox.search input[type="text"] {
  font-weight: 400;
  padding: 2px 0;
  color: rgba(var(--text-color));
}

.mobileListContents {
  padding: 20px 0;
  font-size: var(--font-size-s);
  line-height: var(--font-lineHeight-default);
  border-bottom: 1px solid rgb(var(--border-color));
}
.mobileListContents .titleLine {
  display: flex;
}
.mobileListContents .name {
  font-weight: 700;
  font-size: var(--font-size-default);
  flex-grow: 1;
}
.mobileListContents .tag {
  font-weight: 700;
  font-size: var(--font-size-s);
}
.checkbox {
  color: rgb(var(--border-color));
  cursor: pointer;
}
.checkbox:hover, .checkbox.checked {
  color: var(--color-black);
}

/*
 *
 * Semantic-UI-React Transforms
 *
 */

/* Checkbox/Toggle */
.ui.checkbox.toggle label:before {
  /* the toggle background */
  background: var(--color-lightGrey);
}

.ui.checkbox.toggle.large label:before {
  /* the toggle background */
  width: 66px;
  height: 31px;
}
.ui.checkbox.toggle.large label:after{
  /* the toggle knob */
  width: 28px;
  height: 28px;
  top: 1.5px;
  left: 1.5px;
}

/**
* ----------------------------------------------------------------------
* The below styles are from removed scss file `indigo/static/base.scss`,
* converted to basic CSS and prettified (`npx node-sass base.scs` -> prettier)
* <https://github.com/narmi/banking/blob/releases/v2023.5/indigo/static/base.scss>
*/
.nds-typography th {
  color: var(--nds-black);
}
.main-content {
  background-color: rgba(0, 0, 0, 0.02);
  padding-bottom: 4rem;
  padding-top: 7rem;
}

.main-content.responsive-top-padding {
  padding-top: 0;
}

@media (min-width: 1280px) {
  .main-content.responsive-top-padding {
    padding-top: 18px;
  }
}

#loading-container .nds-loadingShim {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 999;
}
.narmi-grid, .narmi-grid-container .narmi-grid-content {
  width: 1300px;
}
@media (max-width: 1439px) {
  .narmi-grid, .narmi-grid-container .narmi-grid-content {
      width: 1156px;
 }
}
@media (max-width: 1279px) {
  .narmi-grid, .narmi-grid-container .narmi-grid-content {
      width: 706px;
 }
}
@media (max-width: 767px) {
  .narmi-grid, .narmi-grid-container .narmi-grid-content {
      width: 355px;
 }
}
.narmi-grid-container {
  display: flex;
  justify-content: center;
}
.card-table {
  display: block;
 /* .row-items-column is used to wrap all the cells of the row that should be displayed in the same "column" when in mobile/tablet view. this has no effect on desktop view. */
}
.card-table .row-item-header {
  display: none;
}
.card-table .row-wrapper {
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  border-top: var(--border-size-s) solid RGB(var(--border-color));
  padding: var(--space-s) 0;
}
.card-table .row-wrapper:first-of-type, .card-table .row-wrapper:nth-of-type(2) {
  border-top: none;
  padding-top: 0;
}
.card-table .row-items-column {
  display: flex;
  flex-direction: column;
}
.card-table .row-items-column.reverse {
  flex-direction: column-reverse;
}
.card-table .row-items-column:first-of-type > .row-item {
  text-align: left;
}
.card-table .row-item {
  text-align: right;
}
.card-table .row-item.number {
  white-space: nowrap;
}
@media (min-width: 1280px) {
  .main-content {
      padding-top: 2.5rem;
 }
  .card-table {
      display: grid;
      gap: 0;
 }
  .card-table .row-wrapper {
      display: contents;
 }
  .card-table .row-items-column {
      display: contents;
 }
  .card-table .row-item-header {
      display: block;
      text-transform: uppercase;
      padding: var(--space-s) var(--space-l) var(--space-s) 0;
      font-weight: var(--font-weight-bold);
      color: RGB(var(--title-color));
      font-size: var(--font-size-xs);
      line-height: 1rem;
      font-family: var(--nds-font-family);
      text-align: left;
      border-top: 1px solid RGB(var(--border-color));
 }
  .card-table .row-item-header.align-right {
      text-align: right;
 }
  .card-table .row-item-header:last-of-type {
      padding-right: 0;
 }
  .card-table .row-item {
      text-align: left;
      padding: var(--space-s) var(--space-l) var(--space-s) 0px;
      line-height: 1.25rem;
      font-size: var(--font-size-m);
      border-top: 1px solid RGB(var(--border-color));
      display: flex;
      flex-direction: column;
      justify-content: center;
 }
  .card-table .row-item:last-of-type {
      padding-right: 0;
 }
  .card-table .row-item.align-right {
      text-align: right;
 }
  .card-table.four {
      grid-template-columns: minmax(48%, 3fr) minmax(21%, 1fr) minmax(15%, 1fr) minmax(16%, 1fr);
 }
  .card-table.four.kebab {
      grid-template-columns: minmax(48%, 3fr) minmax(21%, 1fr) minmax(15%, 1fr) minmax(min-content, 0);
 }
  .card-table.four .row-item-header:nth-child(4n), .card-table.four .row-item:nth-child(4n) {
      text-align: right;
 }
  .card-table.three {
      grid-template-columns: minmax(69%, 3fr) minmax(15%, 1fr) minmax(16%, 1fr);
 }
  .card-table.three.sparse {
      grid-template-columns: minmax(53%, 3fr) minmax(31%, 2fr) minmax(16%, 1fr);
 }
  .card-table.three .row-item-header:nth-child(3n), .card-table.three .row-item:nth-child(3n) {
      text-align: right;
 }
  .card-table.transactionTable {
     /** * For transactions, the description should max out at 3fr. * Currency amounts could be any size, so those columns should be * _at least_ the width of `min-content`. Any remaining space in those * columns should grow to fit within a constraint of 15% of total row width. */
      grid-template-columns: 3fr minmax(min-content, 15%) minmax(min-content, 15%);
 }
  .card-table.transactionTable.sparse {
      grid-template-columns: minmax(53%, 3fr) minmax(31%, 2fr) minmax(16%, 1fr);
 }
  .card-table.transactionTable.three.kebab {
      grid-template-columns: 3fr minmax(min-content, 15%) minmax(min-content, 0);
 }
  .card-table.transactionTable .row-item-header:nth-child(3n), .card-table.transactionTable .row-item:nth-child(3n) {
      text-align: right;
      white-space: nowrap;
 }
  .no-table-top-border .row-item-header {
      border-top: 0;
 }
}
.clickable {
  cursor: pointer;
}

@media (max-width: 767px) {
  #access-manager-wrapper {
    margin: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 20px;
  }

  #access-manager-container {
      padding: 0;
      max-width: 355px;
  }
}



/**
* ----------------------------------------------------------------------
* Global styles moved from inline style tags in templates
*/
#skipLink {
  background: var(--theme-primary);
  color: var(--color-white);
  font-weight: bold;
  padding: var(--space-s);
  position: absolute;
  z-index: 999;
  top: 0;
  left: 0;
  transform: translateY(-100%);
}

#skipLink:focus {
  transform: translateY(0%);
}
