/**
 * @license
 * Copyright Tyler Technologies, Inc. 
 * License: Apache-2.0
 */
@use './token-utils' as *;

@forward './token-utils';

@mixin host {
  position: relative;
  display: block;
}

@mixin base {
  position: relative;
  display: flex;
  justify-content: #{token(justify)};
  align-items: flex-end;
  box-sizing: border-box;
  overflow: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  grid-column: 2;

  &::-webkit-scrollbar {
    display: none;
  }
}

@mixin slotted-base {
  flex: #{token(stretch)};
}

@mixin slotted-selected {
  z-index: 1;
}

@mixin container {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  max-width: 100%;
  max-height: 100%;
  align-items: center;
  border-bottom: #{token(divider-thickness)} solid #{token(divider-color)};
}

@mixin container-vertical {
  grid-template-columns: none;
  grid-template-rows: auto 1fr auto;
  align-items: initial;
  border-bottom: none;
  border-right: #{token(divider-thickness)} solid #{token(divider-color)};
  height: 100%;
}

@mixin vertical {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  grid-column: auto;
  grid-row: 2;
}

@mixin vertical-scroll-button {
  justify-self: center;
}

@mixin inverted {
  border-bottom: none;
  border-top: #{variale(divider-thickness)} solid #{token(divider-color)};
}

@mixin vertical-inverted {
  border-bottom: none;
  border-top: #{token(divider-thickness)} solid #{token(divider-color)};
}
