@use '@angular/material' as mat;
@use './mixins' as mixins;
@use './theme';
@use './custom-theme' as custom;

html {
  font-family: 'Open Sans', serif;
  font-size: 16px;
  color: var(--adf-theme-foreground-text-color-087);
  letter-spacing: normal;
}

body {
  @include mixins.flex-column;

  font-size: 14px;
  margin: 0;

  & > main {
    @include mixins.flex-column;
  }
}

[dir='rtl'] mat-icon {
  transform: scale(-1, 1);
}

// todo: move this to corresponding component theme files
.adf-container-full-width {
  overflow: hidden;
}

app-root,
app-shell,
app-about,
adf-layout-container,
aca-search-results,
ng-component {
  @include mixins.flex-column;
}

@media screen and (width <= 600px) {
  app-root,
  app-about,
  adf-layout-container,
  aca-search-results,
  ng-component {
    height: 100vh;
  }
}

.aca-sidebar {
  display: block;
  max-width: 368px;
  width: 368px;
  margin-bottom: 65px;
  border-top: 1px solid var(--theme-metadata-property-panel-border-color);
  border-bottom: 1px solid var(--theme-metadata-property-panel-border-color);
}

aca-files aca-page-layout .aca-page-layout-content .aca-sidebar {
  border-color: var(--adf-theme-foreground-text-color-087);
}

.aca-page-title {
  cursor: default;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.15px;
  line-height: 33px;
  margin: 0;
  color: var(--adf-theme-foreground-text-color-087);
  width: 100%;
}

.aca-header-container {
  display: flex;
  flex-direction: row;
  flex: 1;
  align-items: center;
  width: 100%;
}

.adf-notification-history-mark-as-read {
  @include mat.icon-button-overrides(
    (
      icon-color: var(--adf-theme-foreground-text-color-087)
    )
  );
}

.adf-notification-history-menu .adf-notification-history-item-list {
  .adf-notification-initiator-pic {
    background: var(--theme-accent-color);
    color: var(--adf-theme-mat-grey-color-a200);
    font-size: 16px;
  }

  .adf-notification-history-menu-date {
    color: var(--adf-theme-foreground-text-color-087);
    font-size: 12px;
  }
}
