﻿:root {
    --app-toolbar-height: 48px;
    --app-toolbar-paddings: 7px;
}

html {
    height: 100%;
}

body {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;

    height: 100%;
}


h5, h6 {
    white-space: nowrap;
    text-overflow: ellipsis;
}

blockquote {
    font-style: italic;
    background: #f5f5f5;
    border-left: 3px solid #ccc;
    margin-left: 1.5em;
    padding: .5em 20px;
}

/******************************************************************************
 * Темная тема, (!) переменные CSS MudBlazor не работают!
 **/
@media (prefers-color-scheme: dark) {
    body {
        background-color: #32333d !important;
        color: #ffffffb2 !important;
    }

    blockquote {
        border-left: 3px solid #ffffffb2;
        background: rgba(255, 168, 0, 0.06);
    }
}


/******************************************************************************
 * Стили виджета ЭЦР
 **/
.eusign-container { height: 100%; overflow: hidden; }
.eusign-widget { height: 100%; }
.eusign-qr-code { display: none; }


/******************************************************************************
 * Корректировки стилей MudBlazor
 **/
.mud-appbar {
    position: initial !important;
    height: var(--app-toolbar-height);
    padding-left: var(--app-toolbar-paddings);
    padding-right: var(--app-toolbar-paddings);
}


.mud-button-label {
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mud-toolbar {
    height: var(--app-toolbar-height);
    padding: 0;
}

.mud-divider-vertical {
    margin: 0 8px !important;
}

.mud-tab {
    text-transform: none !important
}

.mud-tabs {
    height: 100%;
    overflow: hidden;
}

.mud-tabs-panels {
    height: 100%;
    overflow: hidden;
}

.mud-button {
    text-transform: none !important
}

.mud-alert-position {
    align-items: center
}

.mud-alert-message {
    overflow: auto !important
}

.mud-drawer-header {
    padding: 8px 24px!important;
}

.mud-layout {
    display: flex;
    flex-direction: column;
}

.mud-main-content {
    padding: 5px!important;
    height: 100%;
    overflow: hidden;
}


.column-header {
    font-weight: bold;
}

/******************************************************************************
 * Стили приложения
 **/

.app-main-layout {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


.app-content {
    height: 100%;
    width: 100%;
    overflow: auto;
    padding: 10px;
}

.appbar-item {
    display: flex;
    flex-direction: row;
    gap: 10px;
    border: solid 4px yellow;
}

/**
 * Заголовок
 */
@media screen and (max-width: 840px) {
    .appbar-name { display: none; }
}

.app-copyright {
    font-style: italic;
    font-size: .8em;
}
