@font-face {
  font-family: "evlo";
  src: url("../fonts/evlo.woff2") format("woff2"), url("../fonts/evlo.ttf") format("truetype"), url("../fonts/evlo.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.e-icon, .e-icon:before, [class^="e-icon-"], [class*=" e-icon-"] {
  /* Use !important to prevent extensions from overriding this font. */
  font-family: "evlo" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.e-icon-chevron-left:before {
  content: "\f009";
}

.e-icon-chevron-right:before {
  content: "\f008";
}

.e-icon-truck-think:before {
  content: "\f007";
}

.e-icon-chart-line:before {
  content: "\f004";
}

.e-icon-gear:before {
  content: "\f005";
}

.e-icon-table:before {
  content: "\f006";
}

.e-icon-list:before {
  content: "\f000";
}

.e-icon-bars:before {
  content: "\f001";
}

.e-icon-cart-shopping:before {
  content: "\f002";
}

.e-icon-users:before {
  content: "\f003";
}

/* Navigation */
.block-account-navigation .diore-account a::before {
  font-family: "evlo" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  content: "\f007";
}

.block-account-navigation a {
  line-height: 20px;
}

/* Master account overview page */
.diore-master-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.diore-master-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 150px;
  padding: 18px 16px;
  background: #f1f1f1;
}

  .diore-master-link .icon {
    color: #3f4f5f;
    font-size: 24px;
    text-align: center;
    margin-right: 10px;
  }

  .diore-master-link .information {
    text-align: left;
  }

  .diore-master-link .title {
    margin: 0 0 6px;
    color: #3f4f5f;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
  }

  .diore-master-link .description {
    margin: 0;
    color: #526273;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .diore-master-link .button-1 {
    white-space: nowrap;
    min-width: 150px;
    margin-left: auto;
    text-align: center;
    padding: 10px 20px;
    margin-top: auto;
    height: 40px
  }

  .diore-master-link .content {
    width: 100%;
    display: flex;
  }

/* Subaccounts list */
.diore-subaccounts-search {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

  .diore-subaccounts-search-input {
    width: 100%;
    min-width: 320px;
  }

  .diore-subaccounts-search-button,
  .diore-subaccounts-create-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-weight: 600;
    max-width: 175px;
    min-width: 100px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

.diore-subaccounts-list {
  width: 100%;
  border: 1px solid #d8dde3;
  background: #fff;
}

.diore-subaccounts-list-header,
.diore-subaccounts-list-row {
  display: grid;
  grid-template-columns: minmax(0, 20%) minmax(0, 45%) minmax(0, 20%) minmax(0, 15%);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.diore-subaccounts-list-header {
  color: #3f4f5f;
  font-weight: 700;
  background: #f1f1f1;
}

  .diore-subaccounts-list-header div {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

.diore-subaccounts-list-row {
  color: #526273;
  border-top: 1px solid #e6e9ed;
  text-decoration: none;
}

  .diore-subaccounts-list-row:hover {
    color: #3f4f5f;
    background: #f8f9fa;
    text-decoration: none;
  }

  .diore-subaccounts-list-row span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .diore-subaccounts-list-row .status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .diore-subaccounts-list-row .arrow {
    flex: 0 0 auto;
    color: #3f4f5f;
    font-size: 20px;
    text-align: right;
  }

.diore-subaccounts-list-empty {
  padding: 16px 14px;
  color: #526273;
  border-top: 1px solid #e6e9ed;
}

.diore-subaccounts-create-form .buttons,
.diore-subaccounts-form .buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.diore-subaccounts-amount-input-container
{
  margin-bottom: 6px;
}

.html-account-page .page-body .diore-subaccounts-amount-input-container div.diore-subaccounts-amount-input {
  display: flex;
  align-items: center;
  vertical-align: middle;
  width: 100%;
  flex-direction: row;
}

  .diore-subaccounts-amount-input input {
    flex: 1 1 auto;
    width: auto;
    margin: 0;
  }

  .diore-subaccounts-amount-postfix {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 12px;
    color: #526273;
    border: 1px solid #ddd;
    border-left: 0;
    background: #f8f9fa;
  }

.diore-subaccounts-checkbox-input {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 8px;
  margin-bottom: 6px;
}

  .diore-subaccounts-checkbox-input input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 4px;
  }

  .diore-subaccounts-checkbox-input label {
    width: auto;
    margin: 0;
    text-align: left;
  }

  .diore-subaccounts-checkbox-input span {
    flex-basis: 100%;
  }

  .diore-subaccounts-create-submit-button,
  .diore-subaccounts-create-cancel-button,
  .diore-subaccounts-submit-button,
  .diore-subaccounts-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    max-width: 175px;
    min-width: 100px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

.diore-subaccounts-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 10px;
}

  .diore-subaccounts-pagination::before {
    content: "";
    order: 2;
    width: 1px;
    height: 24px;
    background-color: #d8dde3;
  }

  .diore-subaccounts-pagination-button:first-child {
    order: 1;
  }

  .diore-subaccounts-pagination-button:last-child {
    order: 3;
  }

  .diore-subaccounts-pagination-button:disabled {
    cursor: default;
    opacity: .5;
  }

@media (max-width: 768px) {
  .diore-master-links {
    grid-template-columns: 1fr;
  }

  .diore-master-link {
    grid-template-columns: 32px minmax(0, 1fr);
  }

    .diore-master-link .button-1 {
      grid-column: 2;
      justify-self: start;
      margin-top: 4px;
    }

  .diore-subaccounts-list-header {
    display: none;
  }

  .diore-subaccounts-list-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px 12px;
  }

  .diore-subaccounts-search {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

    .diore-subaccounts-search-input {
      grid-column: 1 / -1;
      min-width: 0;
      width: 100%;
    }

    .diore-subaccounts-search-button,
    .diore-subaccounts-create-button {
      max-width: none;
      width: 100%;
    }

  .diore-subaccounts-create-form .buttons,
  .diore-subaccounts-form .buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

    .diore-subaccounts-create-submit-button,
    .diore-subaccounts-create-cancel-button,
    .diore-subaccounts-submit-button,
    .diore-subaccounts-cancel-button {
      max-width: none;
      width: 100%;
    }

    .diore-subaccounts-list-row span {
      grid-column: 1;
    }

    .diore-subaccounts-list-row .status {
      grid-column: 1;
      justify-content: center;
    }

    .diore-subaccounts-list-row .arrow {
      display: none;
    }

}
