/* You can add global styles to this file, and also import other style files */

@use '@angular/material' as mat;
@use './styles/theme';
@use './styles/tokens';

@include mat.core();

html {
  @include mat.all-component-themes(theme.$teamwallet-theme);
  @include mat.typography-hierarchy(theme.$teamwallet-theme);
}

html, body { height: 100%; overflow: hidden; }
body { margin: 0; font-family: Inter, Roboto, "Helvetica Neue", sans-serif; background-color: var(--tw-surface-bg); }

app-root {
  height: 100%;
  overflow: hidden;
  display: block;
}

.table-row {
  cursor: pointer;
  background-color: white !important;
  transition: background-color 0.4s ease-in-out;

  &:hover {
    background-color: rgb(245, 245, 245) !important;
  }
}

/* custom scrollbar */
::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #d6dee1;
  border-radius: 20px;
  border: 6px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #a8bbbf;
}

.toolbar {
  display: flex;
  justify-content: space-between;
}

.card {
  padding: var(--tw-space-3);
  box-shadow: var(--tw-elevation-1);
  margin: var(--tw-space-1);
  background-color: var(--tw-surface-card);
  border-radius: var(--tw-radius-md);

  &.flat {
    background-color: transparent;
    box-shadow: none;
    outline: #ddd solid 1px;
  }
}

.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row !important;
}

.snackbar_error > .mdc-snackbar__surface {
  background-color: var(--tw-balance-negative) !important;

  .mat-mdc-snack-bar-label {
    color: white !important;
  }
}

.splitted_form {
  display: flex;
}

.first {
  margin-right: 4px;
}

.last {
  margin-left: 4px;
}

.middle {
  margin-left: 4px;
  margin-right: 4px;
}

.spinner_container {
  position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(50, 50, 50, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

h1 {
  font-size: 2rem !important;
}