﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('spinner/spinner.css');

@font-face {
    font-family: Montserrat;
    src: url('/fonts/Montserrat-Bold.ttf');
}

@font-face {
    font-family: Montserrat;
    src: url('/fonts/Montserrat-Regular.ttf');
}

@font-face {
    font-family: Montserrat;
    src: url('/fonts/Montserrat-SemiBold.ttf');
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
    font-size: 0.75rem;
    margin-top: 3px;
    padding-left: 8px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIz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DY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}


/*Blazored Modal*/

.simple-form {
    width: 600px;
}

.blazored-modal-container {
    z-index: 1400;
}

.blazored-modal-overlay {
    z-index: 1401;
}

.blazored-modal-focus-trap {
    z-index: 1402;
}

.blazored-modal {
    color: #495057;
    z-index: 1403;
    padding: 20px 0 0 0 !important;
    position: relative;
}

.blazored-modal-focus-trap {
    max-height: 90vh;
    max-width: 90vw;
    overflow: auto;
}

.modal-2 {
    min-width: 50vw;
    max-width: 90vw;
    min-height: 50vh;
    max-height: 90vh;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 20px 0 0 0;
}

.blazored-modal-header {
    align-items: center !important;
    padding: 0 20px 20px 20px !important;
}

.blazored-modal-content {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 20px 20px 20px;
}

.blazored-modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.form-group {
    margin-bottom: 16px;
}

.form-check {
    margin-bottom: 16px;
}

.modal-button-group {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-button-group > button {
    margin: 0 10px;
}

/*Panel*/
.toolbar {
    width: 100%;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 1rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.toolbar .button.button-success-reverse {
    margin-right: auto;
}

.toolbar-search {
    font-size: 16px;
    background: #ffffff;
    border: 1px solid #ced4da;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
    border-radius: 3px;
    color: #495057;
    min-width: 175px;
    height: 37px;
    padding: 0 10px 0 10px;
}

.toolbar-search:hover {
    border-color: #ffc107;
}

.toolbar-search:active {
    outline: 5px solid #ffc107;
    opacity: 0.5;
    transition-delay: 0.2s;
}

.toolbar-search:focus {
    outline: 3px solid rgba(255, 193, 7, 0.5);
    transition-delay: 0.2s;
}

.panel {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    font-size: 1rem;
}

.panel__header {
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.panel-title {
    font-weight: 600;
    color: #495057;
}

.panel__main-table {
}

.panel__main-table thead tr {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border: none;
    border-bottom: 1px solid #dee2e6;
}

.panel__main-table th {
    text-align: center;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.panel__main-table td {
    text-align: center;
    border: none;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.panel__main-table th:last-child, .panel__main-table td:last-child {
    border-right: none;
}

.table > :not(:last-child) > :last-child > * {
    border-color: #dee2e6;
}

.panel__toolbar {
    border: none;
    margin: 0;
    border-bottom: 1px solid #dee2e6;
}

/*Buttons*/

/*mud-button-root mud-button mud-button-filled mud-button-filled-success mud-button-filled-size-medium mud-ripple*/

.button {
    min-height: 39px;
    position: relative;
    margin: 0;
    user-select: none;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    font-weight: 400;
    border: none;
    background: black;
    border: 1px solid black;
}

.button-primary {
    color: #FFC107;
    background: none;
    border: 1px solid #FFC107;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}

.button-success {
    color: #689F38;
    background: none;
    border: 1px solid #689F38;
}

.button-clear {
    color: #ffc107;
    background: none;
    border: 1px solid #ffc107;
}

.button-primary-reverse {
    color: #212529;
    background: #FFC107;
    border: 1px solid #FFC107;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}

.button-success-reverse {
    color: #fff;
    background: #689F38;
    border: 1px solid #689F38;
}

.button-clear-reverse {
    color: #ffc107;
    background: none;
    border: 1px solid #ffc107;
}


.mud-table-td-actions .mud-button-root {
    background-color: rgb(151, 167, 181);
}

.mud-table-td-actions .mud-button-root svg {
    fill: rgb(242, 242, 242);
}

.mud-icon-button-label .mud-icon-root {
    fill: rgb(118, 129, 155);
}

.icons-button {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    border: 1px solid grey;
    padding: 8px;
    cursor: pointer;
}

.icons-button-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 4px;
    left: 125%;
    background-color: #363636;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    z-index: 1;
    font-weight: 100;
}

.icons-button-tooltip::after {
    content: "";
    position: absolute;
    top: 40%;
    left: 0%;
    margin-left: -13px;
    border: 6px solid transparent;
    border-right: 7px solid #363636;
}

.icons-button:hover .icons-button-tooltip {
    visibility: visible;
}

.mud-icon-color-white .mud-icon-root {
    fill: rgb(242,242,242);
}

/* Barcode Scaner */
.zxing-container {
    overflow: hidden;
}

/* MudTable */
.mud-table-td-actions {
    text-align: center !important;
    justify-content: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
}

.mud-icon-button-rounded-circle {
    border-radius: 50% !important;
    height: 40px;
    width: 40px;
}



/* MudMenu on table ( circle button ) */
.mud-menu-rounded-circle button {
    border-radius: 50% !important;
    height: 40px;
    width: 40px;
}

/* MudDialog */
.mud-dialog {
    max-height: 800px;
    overflow-y: auto;
}

/* Postamat Access Keys */
.access-keys-form {
    min-width: 320px;
}

.access-keys-table {
    max-height: 760px;
    overflow-y: scroll;
}

/* Postamat Printers */
.printers-min-height {
    min-height: 128px;
    min-width: 320px;
}

/*Postamat cells*/
.cells-table {
    max-height: 760px;
    min-width: 320px;
    overflow-y: scroll;
}

.allowed-table {
    max-height: 1000px;
    min-width: 800px;
    overflow-y: scroll;
}

.cells-muddialog {
    min-width: 1000px;
}

/* Template cell modal */
.template-cell {
    background-color: #757575;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.form-input-number {
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-input-number input {
    width: 100px;
}

.template-cell-img {
    width: inherit;
    height: inherit;
    background-color: inherit;
    position: absolute;
}

.template-cell-title {
    width: inherit;
    text-align: center;
    background-color: #757575;
    color: white;
    padding: 0 4px;
}

.template-form-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 20px 0;
}

.add-section-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.add-section-form__preview {
    min-width: 100px;
    flex-grow: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 20px 0;
}

.add-section-form__list {
    min-width: 150px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.add-section-form__list-container {
    display: flex;
    flex-direction: column;
    border: 1px solid #ced4da;
    border-radius: 3px;
    padding: 5px 0;
    min-height: 150px;
}

.add-section-form__list-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    cursor: pointer;
}

.add-section-form__list-item:hover {
    color: #495057;
    background: #e9ecef
}

.add-section-form__list-item.selected {
    color: #495057;
    background: #FFF3E0;
}

.add-section-form__buttons {
    display: flex;
    align-items: center;
    flex-grow: 1;
    flex-direction: column;
    gap: 5px;
}

/* Menu */
.mud-drawer-content {
    flex-direction: row !important;
}

/* Mudblazor custom toolbar */
.custom-responsive-toolbar {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
}

/* InputPhoneCode */
.iti {
    height: 56px !important;
    width: 100% !important;
}

.iti input {
    height: inherit !important;
    width: inherit !important;
    padding: 18.5px 14px;
}

.iti input:focus {
    outline: 0;
}

.iti__country-list {
    max-height: inherit;
    overflow-y: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    margin: 0;
    padding: 0;
    position: relative;
    list-style: none;
}

.iti__country {
    width: 100%;
    display: flex;
    position: relative;
    box-sizing: border-box;
    text-align: start;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
    justify-content: flex-start;
    text-decoration: none;
}

.iti__country:hover {
    background-color: var(--mud-palette-primary-hover) !important;
    color: var(--mud-palette-primary) !important;
}

.iti__active {
    color: inherit;
    border: 0;
    cursor: pointer;
    margin: 0;
    outline: 0;
    user-select: none;
    border-radius: 0;
    vertical-align: middle;
    background-color: transparent;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 150ms cubic-bezier(.4, 0, .2, 1) 0ms;
}

.iti--allow-dropdown {
    width: inherit;

}


@media only screen and (max-width: 600px) {
    .mud-toolbar {
        height: 100%;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .custom-responsive-toolbar {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Перенос  чекбокса */
    .table-multi-selection .mud-table-container .mud-table-root .mud-table-body .mud-table-row{
        position: relative !important;
    }
    .table-multi-selection .mud-table-container .mud-table-root .mud-table-body .mud-table-row .mud-table-cell {
        margin-left: 58px!important;
        text-align: right!important;
    }
    .table-multi-selection .mud-table-container .mud-table-root .mud-table-body .mud-table-row .mud-table-cell:first-child {
        position: absolute !important;
        display: flex !important;
        height: -webkit-fill-available !important;
        border: none !important;
        margin-left: 0!important;
    }

    .mud-table-bordered .mud-table-container .mud-table-root .mud-table-body .mud-table-row .mud-table-cell:last-child {
        border-right: 1px solid var(--mud-palette-table-lines);
    }
}

/* Navbar Styles */
.mud-nav-item .mud-nav-link .mud-icon-root svg path {
    fill: rgb(241, 90, 36);
}

.mud-nav-group .mud-nav-link .mud-icon-root svg path {
    fill: rgb(241, 90, 36);
}

.mud-icon-size-medium {
    font-size: 1.3rem;
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background: linear-gradient(rgb(235, 98, 24) 0%, rgb(233, 78, 31) 30%, rgb(231, 62, 31) 67%, rgb(230, 51, 35) 89%, rgb(230, 45, 65) 100%);
    /*box-shadow: inset 0 -3em 3em rgb(0 0 0 / 10%), 0 0 0 2px rgb(255 255 255), 0.3em 0.3em 1em rgb(0 0 0 / 30%);*/
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled):after {
    z-index: 0;
    position: absolute;
    content: "";
    bottom: 85%;
    width: 100%;
    top: -100%;
    right: -5px;
    left: 25%;
    max-width: 50vw;
    background: rgb(189, 22, 34);
    transform: rotate(3deg);
    -webkit-transform: rotate(3deg);
    -moz-transform: rotate(3deg);
    -o-transform: rotate(3deg);
    -ms-transform: rotate(3deg);
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-text {
    color: white;
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-icon-root svg path {
    fill: white;
}

.mud-appbar {
    background: linear-gradient(rgb(235, 98, 24) 0%, rgb(233, 78, 31) 30%, rgb(231, 62, 31) 67%, rgb(230, 51, 35) 89%, rgb(230, 45, 65) 100%);
}

.mud-appbar:after {
    z-index: -1;
    position: absolute;
    content: "";
    bottom: 95%;
    width: 100%;
    top: -100%;
    right: 0;
    left: auto;
    max-width: 100vw;
    background: rgb(189, 22, 34);
    transform: rotate(1deg);
    -webkit-transform: rotate(1deg);
    -moz-transform: rotate(1deg);
    -o-transform: rotate(1deg);
    -ms-transform: rotate(1deg);
}

.mud-primary-hover {
    background-color: rgb(242, 242, 242) !important;
}

.mud-primary-text {
    color: rgb(102, 102, 102) !important;
}


.mud-tab-active {
    color: var(--tab-color)!important;
    font-weight: 700;
}

.mud-tabs-toolbar {
    background-color: var(--tab-bg-color)!important;
    color: var(--tab-color)!important;
}

.mud-tab-slider {
    background: var(--tab-slider-color)!important;
}

/*Tabs для таблиц с 2умя вкладками*/
.mud-tabs-2-tables .mud-tabs-toolbar{
    max-width: 410px!important;
}
.mud-tabs-2-tables .mud-tab {
    min-width: 180px!important;
}

/* Фикс стилей обновления mudblazor */
.mud-divider-fullwidth {
    flex-grow: 0;
}

.mud-table-dense * .mud-table-row .mud-table-cell .mud-table-cell-checkbox {
    margin-left: 6px;
}

.mud-toolbar {
    --mud-internal-toolbar-height: 100% !important;
}

.order-placed-list-item {
    border: 1px rgba(108, 117, 125, 0.2) solid;
    border-radius: 8px;
}

.order-placed-list-item .mud-list-item-text p p {
    margin: 0;
}

.big-gradient-button {
    background: linear-gradient(rgb(235, 98, 24) 0%, rgb(233, 78, 31) 30%, rgb(231, 62, 31) 67%, rgb(230, 51, 35) 89%, rgb(230, 45, 65) 100%);
    color: white !important;
    width: 100%;
}

.list-item-with-actions .mud-list-item-text .mud-typography {
    width: 100%;
}

.list-item-with-actions .mud-list-item-text .mud-typography div{
    display: flex;
    justify-content: space-between;
    flex-direction: row;    
    align-items: center;
}

.list-item-with-actions .mud-list-item-text .mud-typography div p{
    margin: 0;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    text-align: center;
    gap: 8px;
}

    .qr-container img {
        max-width: 66.67%;
        max-height: 60vh;
        height: auto;
        display: block;
    }

:root {
    --mud-palette-success: rgb(118, 129, 155) !important;
    --mud-palette-success-darken: rgb(151, 167, 181) !important;
    --mud-palette-success-text: rgb(255, 255, 255) !important;

    --mud-palette-primary: rgb(242, 242, 242) !important;
    --mud-palette-primary-darken: rgb(118, 129, 155) !important;
    --mud-palette-primary-text: rgb(102, 102, 102) !important;

    --mud-palette-info: rgb(151, 167, 181) !important;
    --mud-palette-info-darken: rgb(118, 129, 155) !important;
    --mud-palette-info-text: rgb(255, 255, 255) !important;
    --mud-palette-info-lighten: rgba(151, 167, 181, 50) !important;

    --mud-palette-error: rgb(241, 90, 36) !important;
    --mud-palette-error-darken: rgb(189, 22, 34) !important;
    --mud-palette-error-text: rgb(255, 255, 255) !important;
    
    --tab-bg-color: rgb(255, 255, 255);;
    --tab-color: rgb(102, 102, 102);
    --tab-slider-color: linear-gradient(rgb(235, 98, 24) 0%, rgb(233, 78, 31) 30%, rgb(231, 62, 31) 67%, rgb(230, 51, 35) 89%, rgb(230, 45, 65) 100%);
}