@import 'reset';
@import 'variables';
@import 'abstracts/colors';
@import 'base/fonts', 'base/icon', 'base/root', 'base/text', 'base/background', 'base/link';
@import 'layout/positions', 'layout/layouts';

@import 'controls/mat-icon', 
        'controls/mat-menu';

@import
  'components/toolbar',
  'components/card',
  'components/resizable',
  'components/loader',
  'components/scrollbar',
  'components/list-view',
  'components/tree',
  'components/dropdown-menu',
  'components/nav-bar',
  'components/arrow-button',
  'components/dialog',
  'components/tab-controls',
  'components/table',
  'components/select',
  'components/sidebar-list-content',
  'components/vertical-menu',
  'components/journals';

@import 'themes/pilot-theming';

@import 'utils/utils', 'utils/flex', 'utils/spacing';



@media (max-width: $tablet-max-width) {
  .hidden-phone {
    display: none;
  }
}

@media (max-width: $xs-max-width) {
  .user-profile__logout .mdc-button__label {
    display: none;
  }

  .user-profile__logout > mat-icon {
    margin-right: 0 !important;
  }
}

.error-image {
  width: 100px;
  height: 100px;
}

.pointer {
  cursor: pointer;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  /*-khtml-user-select: none;  Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Firefox */
  touch-action: none;
}

.spinner-grow {
  color: #007bff;
}

.invisible {
  visibility: hidden;
}

.width-fill-available {
  width: -webkit-fill-available;
}

button[disabled] svg * {
  fill: var(--plt-button-disabled) !important;
}

.separator-item {
  background-color: var(--plt-toolbar-border);
  height: 100%;
}

/* profile icon avatar rotate instead ::ng-deep (deprecated) */
.offline-is-inactive,
.online-is-inactive {
  svg {
    transform: rotate(45deg);
    opacity: 0.5;
  }
}

.offline-has-status,
.online-has-status {
  svg {
    transform: rotate(45deg);
  }
}

.cdk-overlay-pane:has(> .select-max-width) {
  width: auto !important;
}

.select-auto-width {
  width: auto !important;

  > * {
    gap: $plt-margin-sm;
  }
}

.date-picker.no-floating-label .mdc-notched-outline__notch:has(.mdc-floating-label--float-above) {
  display: none;
}

/* Column resizer */
.column-resizer {
  position: absolute;
  right: -7px;
  top: 0;
  bottom: 0;
  width: 14px;
  cursor: ew-resize;
  z-index: 10;
}

.mat-mdc-select-disabled .mat-mdc-select-value {
  color: var(--plt-text-secondary) !important;
}

.color-danger,
.color-danger * {
  color: var(--plt-text-danger) !important;
}

.hidden {
  display: none !important;
}

.upload-button-input {
  display: none;
}
