/* NOTE:
*  Mantine theme variables can be found here:
*  https://mantine.dev/styles/css-variables/
*/


/* CUSTOM VARIABLES */
:root {
  --navbar-height: 85px;
  --color-brand-navy: #1E222C;
  --color-brand-dark-blue: #323849;
}

.mantine-AppShell-main {
  overflow-y: auto;
}


/* LAYOUT */
.navbar {
  height: var(--navbar-height);
  padding: var(--mantine-spacing-lg);
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-brand-navy);
}

.page-links-container {
  flex-direction: row;
  gap: var(--mantine-spacing-md);
}

.navbar-divider {
  align-self: stretch;
}

.main-content {
  margin-top: var(--navbar-height);
  width: 100%;
  padding: var(--mantine-spacing-lg);
  justify-content: "start";
  align-items: "center";
  flex-direction: column;
  height: calc(95vh - var(--navbar-height));
}


.filter-bar {
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  gap: var(--mantine-spacing-lg);
  padding: var(--mantine-spacing-lg);
  padding-top: 0;
  padding-bottom: var(--mantine-spacing-md);
  padding-left: var(--mantine-spacing-md);
  padding-right: var(--mantine-spacing-md);
  flex-wrap: wrap;
}

/* COMPONENTS */

/* TODO: refactor page-link and page-link-active to reduce duplication*/
.page-link {
  width: max-content;
  border-radius: 6%;
  color: white;

  &:hover {
    background-color: var(--color-brand-dark-blue);
  }
}


.page-link-active {
  font-weight: var(--mantine-h6-font-weight);
  width: max-content;
  border-radius: 6%;
  color: white;
}

.page-filter {
  min-width: 210px;
}


/* MISC */
.version-text {
  color: var(--mantine-color-gray-5);
  font-size: var(--mantine-font-size-sm);
}

.corner-logo {
  max-height: 45px;
}


.logo {
  height: 100%;
  width: 230px;
}

.inz-logo {
  height: 100%;
}

.logo-link {
  height: 110%;
  padding-left: var(--mantine-spacing-md);
}

.login-content {
  height: calc(100vh - 1.5rem);
  width: 100%;
  background-image: url("qrious-background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #09002B;
  overflow-y: hidden;
}

.stacked-margin+.stacked-margin {
  margin-top: 0.5rem;
}

.bordered {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--color-brand-navy);
  padding: 1rem;
  width: max-content;
  box-sizing: border-box;
  border-radius: 8px;
  background-color: #fff
}

.l-container {
  padding-right: .25rem;
  width: calc(100% - (375px + 1rem));
}

.r-container {
  padding-left: .25rem;
  width: calc(100% - (375px + 1rem));
}

.m-container {
  width: calc(100% - (100px + 1rem));
}

.graph-wrapper {
  flex: 1;
}

.graph-wrapper>div,
.graph-wrapper>div {
  width: 100%;
}

.map-graph-wrapper {
  flex: 1;
}

Í .map-graph-wrapper>div,
.map-graph-wrapper>div {
  width: 100%;
  height: 100%;
}

.column-margin {
  margin-top: .5rem;
  margin-bottom: .5rem;
}

.quad>div {
  width: 100%
}

.quad-container {
  margin: .5rem 0
}

.quad-container .bordered {
  margin: .25rem;
  width: calc(50% - .5rem)
}


.paginated-table-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}


.graph-container {
    position: relative;
}

.export-button {
    position: absolute;
    /* Put in the top right of the graph */
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10; /* Ensure it's above the graph */
}
