/* 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;
  }

/* Subaccount create/update */
.diore-subaccounts-update-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 24px;
  align-items: start;
}

.diore-subaccounts-action-menu {
  display: grid;
  gap: 12px;
}

.diore-subaccounts-action-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 92px;
  padding: 16px 14px;
  color: #3f4f5f;
  text-align: left;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e6e9ed;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  cursor: pointer;
}

  .diore-subaccounts-action-card:hover {
    color: #3f4f5f;
    text-decoration: none;
    border-color: #d8dde3;
  }

  .diore-subaccounts-action-card .icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #2d3a7a;
    font-size: 22px;
    line-height: 1;
  }

  .diore-subaccounts-action-card .content {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  .diore-subaccounts-action-card .title {
    color: #2d3a7a;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .diore-subaccounts-action-card .description {
    color: #697789;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .diore-subaccounts-action-card.danger .icon,
  .diore-subaccounts-action-card.danger .title {
    color: #d94f5c;
  }

  .diore-subaccounts-action-card.disabled,
  .diore-subaccounts-action-card:disabled {
    cursor: default;
    opacity: .45;
    box-shadow: none;
  }

    .diore-subaccounts-action-card.disabled:hover,
    .diore-subaccounts-action-card:disabled:hover {
      border-color: #e6e9ed;
    }

@media (max-width: 768px) {
  .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-update-layout {
    grid-template-columns: 100%;
  }

    .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;
    }
}
