@charset "UTF-8";
/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 * 
 * © Copyright 2024, Eviden – All rights reserved.
 * 
 * This software is the confidential and proprietary information of
 * Eviden Germany GmbH ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with Eviden Germany GmbH.
 * 
 * END OF COPYRIGHT NOTICE.
 */
/*******************************************************************************
 * Common
 *******************************************************************************/
body {
  margin: 0px;
  padding: 0px;
}

/* Set application wide foreground and background color adapted to currently used color scheme */
body {
  background-color: var(--mat-sys-surface);
  color: var(--mat-sys-on-surface);
}

/* Responsive headlines */
@media (max-width: 599.98px) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    word-break: break-all;
  }
}
.cursor-pointer {
  cursor: pointer;
}

.drag-pointer {
  cursor: move;
  color: var(--mat-sys-secondary);
}

/* The default "color-scheme" property value is "light". In dark mode, we need 
  * to set it explicitly. */
.color-scheme-dark {
  color-scheme: dark;
}

.dirx-icon-mirror {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.block {
  display: block;
}

/*******************************************************************************
 * All pages
 *******************************************************************************/
/* @deprecated Will be removed in version 3. Replaced by the "main" role styles */
.app-page-content {
  flex: 1 0 auto;
}

/* @deprecated Will be removed in version 3. Replaced by the "main" role styles */
.app-page-content-margin {
  padding: 24px 24px;
}

/* @deprecated Will be removed in version 3. Replaced by the role based content layout */
.app-panel-narrow {
  max-width: 900px;
}

/* @deprecated Will be removed in version 3. Replaced by the "main" role styles */
@media (max-width: 599.98px) {
  .app-page-content-margin {
    padding: 16px 16px;
  }
}
/* @deprecated Will be removed in version 3. Replaced by the role based content layout */
.app-panel {
  margin-bottom: 16px !important;
}

/*******************************************************************************
 * Page layouts, overriding the default max-width and spacing for different use cases
 *******************************************************************************/
/* Default layout - apply to direct children except Angular wrapper elements */
main > *:not(ng-component):not(router-outlet),
main > ng-component > * {
  max-width: 1200px; /* Default: comfortable for mixed content */
  margin-inline: auto;
  display: block;
}

/* Dashboard layout - wider for widget grids */
.dashboard-layout {
  max-width: 1200px; /* Same as default, explicit for clarity */
  margin-inline: auto;
  display: block;
}
@media (min-width: 1440px) {
  .dashboard-layout {
    max-width: 1440px; /* Allow wider on large screens */
  }
}
.dashboard-layout {
  /* Sections in dashboards don't constrain width */
}
.dashboard-layout [role=region],
.dashboard-layout section {
  max-width: none;
}

/* Mixed content layout - wider main, but articles stay narrow */
.mixed-layout {
  max-width: 1200px; /* Same as default */
  margin-inline: auto;
  display: block;
}

/* Form-optimized layout */
.form-layout {
  max-width: 900px;
  margin-inline: auto;
  display: block;
}
@media (min-width: 960px) {
  .form-layout {
    max-width: 1000px;
  }
}
.form-layout {
  /* Forms within form layouts can be full width */
}
.form-layout [role=form],
.form-layout form {
  max-width: none;
}

/* Prose/documentation layout - narrower for readability */
.prose-layout {
  max-width: 720px;
  margin-inline: auto;
  display: block;
  /* Article already handles this, but explicit for clarity */
}
.prose-layout [role=article],
.prose-layout article {
  max-width: 680px;
}

/* Full-width layout (rare, for special cases) */
.full-layout {
  max-width: none;
}

/*******************************************************************************
 * Role-based content layout limitting width and adding spacing
 *******************************************************************************/
body {
  /* Horizontal margin of the page */
  --dirx-core-main-horizontal-space: 16px;
  /* Vertical margin of the page */
  --dirx-core-main-vertical-space: 16px;
  /* Spacing rules */
  --dirx-item-space: 8px;
  --dirx-group-space: 16px;
  --dirx-section-space: 24px;
}
@media (min-width: 600px) {
  body {
    --dirx-core-main-horizontal-space: 20px;
    --dirx-core-main-vertical-space: 20px;
  }
}
@media (min-width: 960px) {
  body {
    --dirx-core-main-horizontal-space: 24px;
    --dirx-core-main-vertical-space: 24px;
  }
}

/* Main content area layout spacing */
[role=main],
main {
  flex: 1 0 auto;
  padding-inline: var(--dirx-core-main-horizontal-space);
  padding-block: var(--dirx-core-main-vertical-space);
}

/* Role-based content layout, make sense only in mixed content */
.mixed-layout,
.mixed-content {
  /* Article/prose content */
}
.mixed-layout [role=article],
.mixed-layout article,
.mixed-content [role=article],
.mixed-content article {
  max-width: 680px;
  /* Constrain line length for readability */
}
.mixed-layout [role=article] p,
.mixed-layout [role=article] ul,
.mixed-layout [role=article] ol,
.mixed-layout article p,
.mixed-layout article ul,
.mixed-layout article ol,
.mixed-content [role=article] p,
.mixed-content [role=article] ul,
.mixed-content [role=article] ol,
.mixed-content article p,
.mixed-content article ul,
.mixed-content article ol {
  max-width: 65ch;
}
.mixed-layout [role=article],
.mixed-layout article,
.mixed-content [role=article],
.mixed-content article {
  /* Titles can be slightly wider */
}
.mixed-layout [role=article] h1,
.mixed-layout [role=article] h2,
.mixed-layout [role=article] h3,
.mixed-layout [role=article] h4,
.mixed-layout [role=article] h5,
.mixed-layout [role=article] h6,
.mixed-layout article h1,
.mixed-layout article h2,
.mixed-layout article h3,
.mixed-layout article h4,
.mixed-layout article h5,
.mixed-layout article h6,
.mixed-content [role=article] h1,
.mixed-content [role=article] h2,
.mixed-content [role=article] h3,
.mixed-content [role=article] h4,
.mixed-content [role=article] h5,
.mixed-content [role=article] h6,
.mixed-content article h1,
.mixed-content article h2,
.mixed-content article h3,
.mixed-content article h4,
.mixed-content article h5,
.mixed-content article h6 {
  max-width: 75ch;
}
.mixed-layout,
.mixed-content {
  /* Forms */
}
.mixed-layout [role=form],
.mixed-layout form,
.mixed-content [role=form],
.mixed-content form {
  max-width: 900px;
}
@media (min-width: 960px) {
  .mixed-layout [role=form],
  .mixed-layout form,
  .mixed-content [role=form],
  .mixed-content form {
    max-width: 1000px;
  }
}

/* Spacing between individual items. Use it for elements that belong together but should be visually separated 
 * (for example fields in one form row, paragraphs in one card, controls in one panel). */
.item-space {
  margin-block: var(--dirx-item-space);
}
.item-space:first-child {
  margin-block-start: 0;
}
.item-space:last-child {
  margin-block-end: 0;
}

/* Related content inside the same area. Use it to separate elements that still belong together 
 * (for example fields in one form area, paragraphs in one card, controls in one panel). */
.group-space {
  margin-block: var(--dirx-group-space);
}
.group-space:first-child {
  margin-block-start: 0;
}
.group-space:last-child {
  margin-block-end: 0;
}

/* Sections/regions spacing.
 * Use it when content should feel like a new group/chapter on the page (for example between 
 * major panels or between top-level page regions). */
[role=region],
section,
.section-space {
  margin-block: var(--dirx-section-space);
}
[role=region]:first-child,
section:first-child,
.section-space:first-child {
  margin-block-start: 0;
}
[role=region]:last-child,
section:last-child,
.section-space:last-child {
  margin-block-end: 0;
}

/* Complementary content */
[role=complementary],
aside {
  max-width: 320px;
}

/* Figures with captions spacing */
[role=figure],
figure {
  margin-inline: 0;
  margin-block: var(--dirx-group-space);
}
[role=figure] img,
[role=figure] pre,
figure img,
figure pre {
  max-width: 100%;
}

/*******************************************************************************
 * Header
 *******************************************************************************/
.header {
  --dirx-core-header-height: 62px;
  --mat-toolbar-mobile-height: var(--dirx-core-header-height);
}

.header {
  height: var(--dirx-core-header-height);
  --mat-toolbar-standard-height: var(--dirx-core-header-height);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.fixed-header {
  position: sticky;
  top: 0;
  z-index: 2;
}

.main-toolbar-filler {
  flex: 1 1 auto;
}

.main-toolbar-menu,
.main-toolbar-menu:focus,
.main-toolbar-menu:hover {
  padding: 4px 4px 4px 4px;
  outline: unset;
}

.main-toolbar-logo-container {
  margin-left: 0px;
  margin-top: 0px;
}

.main-toolbar-logo-image {
  height: 56px;
}

.header-avatar {
  flex-shrink: 0;
  border-radius: 50%;
  position: relative;
  margin-right: 8px;
  width: 36px;
  height: 36px;
  background-color: black;
}

.header-text1 {
  margin-top: 12px;
  font-size: 14px;
  height: 14px;
}

.header-text2 {
  font-size: 12px;
}

.header-initials {
  margin-right: 8px;
}

@media (max-width: 599.98px) {
  .header-text1 {
    display: none;
  }
  .header-text2 {
    display: none;
  }
}
/*******************************************************************************
 * Home component
 *******************************************************************************/
.home-page-header {
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  height: 40px;
  font-size: 16px;
  display: inline-flex;
  cursor: default;
}

.home-page-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/*******************************************************************************
 * Main component - top page toolbar, side menu
 *******************************************************************************/
.main-sidenav {
  min-width: 100px;
  width: 300px;
  overflow-x: hidden;
}

.main-sidenav {
  --mat-sidenav-container-background-color: var(--mat-sys-surface-container);
  --mat-sidenav-container-text-color: var(--mat-sys-on-surface);
}

.header-user-avatar {
  background-color: var(--mat-sys-primary) !important;
  color: var(--mat-sys-on-primary);
}

/*******************************************************************************
 * Side menu component
 *******************************************************************************/
.main-drawer-header {
  height: 180px;
}

.main-menu-item-separator {
  border-top-width: 1px;
}

.main-drawer-avatar {
  flex-shrink: 0;
  border-radius: 50%;
  position: relative;
  margin-top: 32px;
  margin-left: 16px;
  width: 96px;
  height: 96px;
}

mat-icon.mat-icon.main-drawer-logo {
  position: absolute;
  margin-top: 0px;
  /* The clear space (one width of the “E” of Eviden) is the minimum margin 
   * according to the Eviden brand book. The Eviden icon has an internal margin,
   * which counts in. */
  right: 16px;
  top: 16px;
  height: 24px;
  width: fit-content;
}

.main-drawer-text1 {
  font-size: 20px;
  text-align: right;
  margin-right: 16px;
}

.main-drawer-initials-text1 {
  margin-top: 16px;
}

.main-drawer-text2 {
  position: relative;
  font-size: 12px;
  text-align: right;
  margin-right: 16px;
}

.main-drawer-initials-container {
  padding-top: 16px;
  padding-left: 16px;
}

.main-drawer-header {
  background-color: var(--mat-sys-secondary);
  color: var(--mat-sys-on-secondary);
}

.main-drawer-avatar {
  color: var(--mat-sys-on-secondary);
  background-color: var(--mat-sys-secondary);
}

/*******************************************************************************
 * Settings component
 *******************************************************************************/
.settings-languages-radio-group,
.settings-themes {
  display: flex;
  flex-direction: column;
  -ms-flex-direction: column;
}

/*******************************************************************************
 * Logout component
 *******************************************************************************/
.logout__page--bg {
  top: 0;
  left: 0;
  position: fixed;
  width: 100%;
  height: 100%;
  background: url(../img/company-background.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  flex-direction: column;
}

.logout__container--size {
  width: 350px;
  background-color: white;
  position: relative;
  padding: 40px;
  box-shadow: 1px 1px 66px 1px rgba(0, 0, 0, 0.3);
}

.logout__container--logo {
  display: inline-block;
  width: 210px;
  height: 150px;
  background: var(--mat-sys-primary);
  /* TODO:future fix path */
  /* background: url(../img/company-logo.png) no-repeat; */
}

.logout__container--logo-position {
  margin: 0 70px 10px 70px;
}

.logout__version--font {
  font-size: 10pt;
  color: white;
}

.logout__version--position {
  position: absolute;
  bottom: 10px;
}

/*******************************************************************************
 * Confirm dialog component
 *******************************************************************************/
.confirm-dialog-title {
  font-size: 24px;
  margin: 0px;
  padding: 0px;
}

.confirm-dialog-text {
  margin-top: 16px;
  margin-bottom: 16px;
}

.confirm-dialog-button-text {
  font-weight: bold;
}

/*******************************************************************************
 * Sidenav scrollbar (webkit only)
 *******************************************************************************/
.small-scrollbar ::-webkit-scrollbar {
  width: 5px;
  background: transparent;
}

.small-scrollbar ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.26);
}

/*******************************************************************************
 * Stack-able dialog
 * TODO:future Moved to @dirx/common-ui-components. To remove in version 3.
 *******************************************************************************/
.stackable-dialog-hide {
  display: none !important;
}

:root {
  --stack-offset-left: 2vw;
}

.stackable-dialog-shift-0 {
  margin-left: 0;
}

.stackable-dialog-shift-1 {
  margin-left: calc(var(--stack-offset-left) * 1);
}

.stackable-dialog-shift-2 {
  margin-left: calc(var(--stack-offset-left) * 2);
}

.stackable-dialog-shift-3 {
  margin-left: calc(var(--stack-offset-left) * 3);
}

.stackable-dialog-shift-4 {
  margin-left: calc(var(--stack-offset-left) * 4);
}

.stackable-dialog-shift-5 {
  margin-left: calc(var(--stack-offset-left) * 5);
}

.stackable-dialog-shift-6 {
  margin-left: calc(var(--stack-offset-left) * 6);
}

.stackable-dialog-shift-7 {
  margin-left: calc(var(--stack-offset-left) * 7);
}

.stackable-dialog-shift-8 {
  margin-left: calc(var(--stack-offset-left) * 8);
}

.stackable-dialog-shift-9 {
  margin-left: calc(var(--stack-offset-left) * 9);
}

.stackable-dialog-shift-10 {
  margin-left: calc(var(--stack-offset-left) * 10);
}

.stackable-dialog-shift-11 {
  margin-left: calc(var(--stack-offset-left) * 11);
}

a {
  color: var(--mat-sys-primary);
  text-decoration: none;
}

/** 
 * Underline links that do not contain any child elements (like icons or images).
 * This ensures that links with only text are underlined, while links with icons/images are not.
 */
a:not(:has(*)):hover {
  text-decoration: underline; /* Or whatever text-decoration style you want */
}

/** Outline for links without child elements **/
a:not(:has(*)):focus {
  outline: 2px solid var(--mat-sys-primary);
  outline-offset: 0.2em;
  border-radius: 1em;
}