﻿/* -- MudBlazor overrides -- */

/* add a little extra bold to headers in a table */
.mud-table-root .mud-table-head .mud-table-cell {
    font-weight: 600;
}

/* disable dialog animation (open/close) for a quicker user experience */
.mud-dialog {
    animation: none !important;
    -webkit-animation: none !important;
}

/* override some styling in a disabled expand panel so we can add hyperlink items within expand menu's */
.ignore-mud-disabled .mud-disabled .mud-expand-panel-header {
    color: var(--mud-palette-text-primary);
    pointer-events: auto;
    cursor: pointer;
    border-color: var(--mud-palette-divider);
    background-color: var(--mud-palette-surface);
    opacity: 1;
}

    /* override default icon color (gray) in a disabled expand panel */
    .ignore-mud-disabled .mud-disabled .mud-expand-panel-header .mud-icon-root {
        color: var(--mud-palette-text-primary);
    }

/* override default color (--mud-palette-background-gray) for the sticky column */
.mud-data-grid .mud-table-cell.sticky-left,
.mud-data-grid .mud-table-cell.sticky-right {
    background-color: var(--mud-palette-secondary) !important;
}

/* -- Custom NAK styling classes -- */

.nak-dialog-background-title {
    color: var(--mud-palette-white);
}

/* show pointer when hovering over text */
.nak-clickable-div input[type="text"] {
    cursor: pointer;
}

/* element won’t react to clicks */
.nak-no-click {
    pointer-events: none;
}

    /* child elements will work again */
    .nak-no-click .nak-clickable {
        pointer-events: auto;
    }

/* lighter background color */
.nak-primary-lighten {
    background: var(--mud-palette-primary-lighten);
    color: var(--mud-palette-primary);
}

/* custom styling for the custom tile visual element */
.nak-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 120px);
    gap: 12px;
    justify-content: start;
}

/* custom styling for the custom tile/description visual element */
.nak-tiles-grid-with-description {
    display: grid;
    /* fixed tile column + flexible description column */
    grid-template-columns: 120px 1fr;
    gap: 12px;
    /* keep extra space on the right side */
    justify-content: start;
    /* every row is 120px tall */
    grid-auto-rows: 120px;
    /* make items fill the row height */
    align-items: stretch;
}

    .nak-tiles-grid-with-description > * {
        /* prevent horizontal overflow in the description column */
        min-width: 0;
        /* allow the inner overflow to work */
        min-height: 0;
    }

/* custom styling for the tile button in a tiles grid (square with rounded corners) */
.nak-tile-button {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

/* custom styling for the contents of the custom tile (text, size, alignment) */
.nak-tile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    overflow: hidden;
}

/* custom styling for the icon of the custom tile (hard-set size) - font size also sets image size */
.nak-tile-icon {
    font-size: 80px;
    line-height: 1;
}

/* ensures a button never shrinks below certain width because of viewport size */
.nak-min-button-width {
    min-width: 140px;
}

/* hard-set to fill width of containing element */
.nak-w-100 {
    width: 100%;
}

/* image needs a separate class because containing item already has nak-w-100 and the same
    css class can't be applied twice */
.nak-news-item-image {
    width: 100%;
}

/* custom styling for news item display on various viewport widths */
@media (max-width: 599.98px) {
    .nak-news-item-image {
        height: 150px;
    }

    .nak-news-item-text {
        min-height: 120px;
        padding-left: 4px;
        padding-bottom: 4px;
    }
}

@media (min-width: 600px) and (max-width: 959.98px) {
    .nak-news-item-image {
        min-height: 120px;
        max-height: 150px;
    }

    .nak-news-item-text {
        height: 100%;
    }
}

@media (min-width: 960px) {
    .nak-news-item-image {
        height: 150px;
    }

    .nak-news-item-text {
        min-height: 140px;
        padding-left: 8px;
        padding-bottom: 4px;
    }
}

/* Removes padding on SizeEdits for a slightly denser look */
.nak-no-min-height {
    min-height: 0px !important;
}

/* Elevation shadow is rendered below an item -- add a small line to the top of the bottom bar.
   This is so the tiles on the theme page don't visually blend into the bottom bar */
.nak-bottom-bar {
    border-top: 2px solid rgba(0,0,0,0.12);
}

.nak-sticky-header {
    position: sticky;
    top: var(--mud-appbar-height);
    z-index: 10;
    background-color: var(--mud-palette-background);
}