﻿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;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #32333d !important;
    }
}


/******************************************************************************
 * Корректировки стилей MudBlazor
 **/
.mud-appbar {
    position: initial !important;
    height: var(--app-toolbar-height);
    padding-left: var(--app-toolbar-paddings);
    padding-right: var(--app-toolbar-paddings);

    border-bottom: 2px solid #114b5f;
}


.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-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: 10px!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;
    align-items: center;
    gap: 10px;
    width: calc(100%/3);
}

.appbar-item-left {
    justify-content: flex-start;
}
.appbar-item-center {
    justify-content: space-between;
}
.appbar-item-right {
    justify-content: flex-end;
}

.app-logo {
    white-space: nowrap;
}

/* Форма по центру */
.app-form-center {

    margin: 50px auto;
    width: 70%;

}

/******************************************************************************
 * Стили панели с прокруткой
 **/

.app-scroll-panel {
    height: 100%;
    width: 100%;

    min-height: 0;    
}

/******************************************************************************
 * Стили каталога товаров приложения
 **/

/* Стили выпадающего меню каталога товаров */
.app-catalog-menu-wrapper {
    height: 500px;
    overflow: hidden;
    flex: 300px 1;
}
.app-catalog-menu-root {
    height: 100%;
    overflow: auto;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 300px;
    padding-right: 10px;
}
.app-catalog-menu-subgroups {
    height: 100%;
    overflow: auto;
    flex-grow: 1;
    width: max-content;
}

/* Поле поиска товаров */
.app-goods-search {
    
    background-color: var(--mud-palette-background);
    color: var(--mud-palette-text-primary)!important;

    padding: 5px 10px;
    width: 600px!important;
    border-radius:5px;
}

/* Список товаров/услуг */
.app-goods-panel {
    height: 100%;
    width: 100%;

    min-height: 0;
}
.app-goods-panel-filters {
    border: solid 1px red;
    width: 350px
}
.app-goods-panel-list {
    height: 100%;
    width: 100%;
}
.app-goods-panel-list-toolbar {
    border-bottom: solid 1px #f5f5f5;
    width: 100%;
}
.app-goods-panel-list-toolbar-item {
}

.app-goods-wrapper {
    
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.app-goods-panel-list-content {
    height: 100%;
    display: flex;
    padding: 10px;

    flex-direction: row;
    flex-wrap: wrap;

    overflow-x: hidden;
    overflow-y: auto;
}

/******************************************************************************
 * Стили плитки товара
 **/

.app-goods-item-tile {
    border: dotted 1px #eee;
    height: 450px;
}
.app-goods-item-tile:hover {
    box-shadow: var(--mud-elevation-4)
}
.app-goods-item-tile .mud-card-header,
.app-goods-item-tile .mud-card-content,
.app-goods-item-tile .mud-card-actions {
    padding: 8px!important;
}

/* Картинка плитки товара */
.app-goods-item-tile-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.app-goods-item-tile-image img {
    max-width: 100%;
    max-height: 100%;
}
.app-goods-item-tile .mud-card-actions {
}
.app-goods-item-tile-title-wrapper {
    line-height: 2;
    overflow: hidden;
}
.app-goods-item-tile-title {
    text-overflow: ellipsis;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/******************************************************************************
 * Стили строки товара
 **/

.app-goods-item-row {
    height: 260px;
    width: 100%;
}
/* Блок картинка строки товара */
.app-goods-item-row-image {
    flex-shrink: 0;
}
.app-goods-item-row-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%!important;
    height: 100%!important;
}
.app-goods-item-row-image a img {
    max-width: 100%;
    max-height: 100%;
}
.app-goods-item-row-descr
{
    flex-grow: 1;
    text-overflow: ellipsis;
    text-align: justify;
    overflow: hidden;
}

/******************************************************************************
 * Стили страницы товара/услуги
 **/
/*
.app-goods-view {
    height: 100%;
    overflow: hidden;
}

.app-goods-view-image {
    width: 40%;
    max-height: 400px;
}
    */

/******************************************************************************
 * Стили блоков приложения
 **/

.app-blocks {
    height: 250px;
}
.app-blocks-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
}
.app-blocks-container img {
    max-width: 100%;
    max-height: 100%;
}
