﻿:root {
    --bg-color: #2D2D2D;
    --fg-color: #F5F5F5;
    --bg-color-highlight: #4CAF50; /* Green */
    --bg-color-highlight-emphasis: #1B5E20; /* Green.Darken4 */
    --fg-color-highlight: white;
}

html {
    font-size: 1rem;
    box-sizing: border-box;
    color: var(--fg-color);
    background-color: var(--bg-color);
    scroll-behavior: smooth;
}

h1 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 900;
}

th {
    text-align: left;
}

td {
    vertical-align: top;
}

.width-content {
    width: 100%;
    min-width: 264px;
}

@media (min-width: 640px) {
    .width-content {
        width: 640px;
    }
}

.primary-color {
    color: var(--mud-palette-primary-text);
    background-color: var(--mud-palette-primary);
}

.background-color {
    background-color: var(--mud-palette-background);
}

.background-color-grey {
    background-color: var(--mud-palette-background-grey);
}

.border-color {
    border-color: var(--mud-palette-lines-default);
}

.text-color-error {
    color: var(--mud-palette-error);
}

.color-DontWantToDo {
    color: var(--mud-palette-error);
    border-color: var(--mud-palette-error);
}

.color-WantToDo {
    color: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
}

.text-color-disabled {
    color: var(--mud-palette-text-disabled);
}

.color-highlight {
    color: var(--fg-color-highlight);
    background-color: var(--bg-color-highlight);
}

.flex-col-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

/* app */
.app-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #4caf50;
    background-color: #000000;
}

.app-logo {
    width: 12rem;
    height: 12rem;
    margin-bottom: 2rem;
}

.app-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
}

.show-in-center {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

/* List */
.list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-top-width: 1px;
    border-color: var(--mud-palette-lines-default);
}

@media (min-width: 640px) {
    .list {
        border-width: 1px;
        border-radius: 0.25rem;
    }
}

.tablist { /* List within a tab: don't show (double) line at top */
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

@media (min-width: 640px) {
    .tablist {
        border-width: 0 1px;
        border-color: var(--mud-palette-lines-default);
    }
}

.list-item {
    display: block; /* overrules Tailwind list-item styling: list-item naming conflict */
    padding: 0.5rem;
    border-bottom-width: 1px;
    border-bottom-color: var(--mud-palette-lines-default);
}

    .list-item:hover {
        color: var(--fg-color-highlight);
        background-color: var(--mud-palette-primary-hover);
    }

/* Toolbar = 48px */
/* TabToolbar = 49px */
/* BottomMenu = 57px */
.content-space {
    height: calc(100vh - 48px - 57px);
}

@media (min-width: 640px) {
    .content-space {
        height: calc(100vh - 48px);
    }
}

.content-edit-space {
    height: calc(100vh - 48px);
    overflow-y: auto;
}

.content-tab-space {
    height: calc(100vh - 48px - 49px - 57px);
    overflow-y: auto;
}

@media (min-width: 640px) {
    .content-tab-space {
        height: calc(100vh - 48px - 49px);
    }
}

table thead.sticky-header {
    position: sticky;
    top: 0;
    background-color: var(--mud-palette-background);
}

    table thead.sticky-header tr th {
        font-weight: 400;
    }

.validation-errors {
    color: var(--mud-palette-error);
}

.link-underline {
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: var(--bg-color-highlight);
}

    .link-underline:hover {
        text-decoration-thickness: 2px;
    }
