﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/*
  Рамка фокуса. У кнопок и ссылок — :focus-visible, а не :focus: браузер
  ставит фокус и по нажатию мышью, и кольцо висело бы вокруг каждой
  нажатой кнопки, пока с неё не уйдут. Раньше это гасило правило темы
  «.btn:focus { box-shadow: none !important }» — вместе с рамкой от
  клавиатуры, из-за чего кабинет был непроходим табом. Правило темы
  убрано, а различать мышь и клавиатуру умеет сам браузер.

  У полей ввода оставлен :focus: там подсветка при клике — это признак
  «курсор здесь», и она нужна независимо от того, чем в поле попали.
*/
.btn:focus-visible, .btn-link.nav-link:focus-visible,
.form-control:focus, .form-check-input:focus-visible {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/*
  Бутстрап этой версии рисует рамку кнопки по :focus, то есть и после
  нажатия мышью. Гасим ровно этот случай: «фокус есть, но не от
  клавиатуры». Различает их сам браузер, и правило не трогает ни
  обход табом, ни рамку, которую кнопке рисуют стили конструктора.
*/
.btn:focus:not(:focus-visible) {
  box-shadow: none;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: rgba(255,255,255,0.7);
}
.loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #3498db;
    -webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}
.loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #e74c3c;
    -webkit-animation: spin 3s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}
.loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #f9c922;
    -webkit-animation: spin 1.5s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}
.loaderstatus {
    display: block;
    position: relative;
    top: 52%;
    font-size: 1.5rem;
    font-weight: bolder;
    text-align:center;
}
@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg); /* IE 9 */
        transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */
    }

    100% {
        -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg); /* IE 9 */
        transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */
    }
}
.autocomplete-suggestions {
    position: absolute;
    z-index: 10000;
    right: 0;
    left: 0;
    box-shadow: rgba(0,0,0,0.3) 1px 3px 4px;
    background-color:#fff;
}
.autocomplete-suggestion:hover{
    background-color:rgba(0,0,0,0.1);
    cursor:pointer;
}
.form-floating label {
    /*opacity: .65;*/
    color: #1391e5;
    font-weight:bold;
}
.row-table {
}
.row-header {
    border-bottom: 1px solid rgba(0,0,0,0.3);
    font-weight: bold;
    padding: 10px 0;
}
.row-item {

}
#actions-btn {
    position: fixed;
    justify-content: center;
    display: flex;
    bottom: -70px;
    right: 0;
    left: 0;
    z-index: 100000;
    width: 100%;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
}
    #actions-btn.slow-show {
        display: flex;
        bottom: 0;
        transition: 0.3s;
        -webkit-transition: 0.3s;
        -moz-transition: 0.3s;
    }
.actions-btn-box {
    background: #fff;
    padding: 10px 30px 10px;
    box-shadow: 0px -1px 7px rgba(0,0,0,0.5);
    border-radius: 10px 10px 0 0;
}
.dropdown-menu-center {
    margin-left: -15% !important;
    text-align: center !important;
}
.dropdown-menu-dark {
    --bs-dropdown-bg: #38b17a;
}
    .dropdown-menu-dark .dropdown-divider {
        border-color: #219b63;
    }
    .dropdown-menu-dark .dropdown-item, .dropdown-menu-dark .dropdown-item .fa.fa-trash-o {
        color: #fff;
    }
        .dropdown-menu-dark .dropdown-item:hover{
            color: #fff;
            background-color: #219b63;
        }
    .row-item.row-highlight {
        background-color: rgba(21, 163, 98, 0.1)
    }
    .row-item a {
        text-decoration: none;
        color: #212121;
    }
    .row-item:hover {
        background-color: rgba(0,0,0,0.1);
        cursor: pointer;
    }
    .row-item label {
        cursor: pointer;
    }
    .row-item.cursor-default {
        cursor: default;
    }
        .row-item.cursor-default.row-item-disabled label{
            cursor: initial;
        }
.block-item {
    border: 1px solid #1391e5;
    border-radius: 5px;
    padding: 10px 20px;
    background: #1391e50a;
    box-shadow: 3px 2px 5px rgba(0,0,0,0.1);
}
.form-href a{
    font-weight:bold;
}
.partialContents > svg.loading {
    width: 100px;
    margin: auto;
    display: block;
}
/* my-menu */
.my-menu {
    border-right: 1px solid rgba(0,0,0,0.3);
    margin-top: 15px;
    padding: 5px 10px;
}
.my-menu h2{
    font-size:20px;
}
.my-menu .menu-item {
    line-height: 18px;
    margin-bottom: 10px;
}
@media (prefers-reduced-motion: reduce) {
    #app-nav-main .collapsing {
        transition-property: height, visibility;
        transition-duration: 0.35s;
    }
}
.nav-link.submenu-toggle[aria-expanded="true"] .nav-link-text, .nav-link.submenu-toggle.active .nav-link-text {
    font-weight: bold;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}
.nav-link.submenu-toggle.collapsed .nav-link-text {
    font-weight: normal;
}
.app-sidebar__heading {
    text-transform: uppercase;
    font-size: .8rem;
    margin: .5rem 0 0;
    font-weight: 700;
    color: #1391e5;
    white-space: nowrap;
    position: relative;
}
.app-nav .nav-link {
/*    padding: .2rem 1rem .5rem;
*/}
.modal.show {
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-backdrop.show {
    opacity: 0.1;
}
.form-floating textarea.form-control {
    height: 120px;
}
.form-floating > .form-control.paddingbottom3, .form-floating > .form-control.paddingbottom3:not(:placeholder-shown) {
    padding-top: 3.2rem;
}
.app-card-orders-table .table td.cell.file-download, .app-card-orders-table .table td.cell-sign.cell-sign-btn {
    /*text-align:center;*/
    height: 1px;
    padding: 0;
}
    .app-card-orders-table .table td.cell.file-download a, .app-card-orders-table .table td.cell-sign.cell-sign-btn a {
        height: 100%;
        width: 100%;
        padding: 10px;
        display: flex;
        align-items: center;
    }
    .app-card-orders-table .table td.cell.file-download:hover, .app-card-orders-table .table td.cell-sign.cell-sign-btn:hover {
        background: #1391e5;
    }
        .app-card-orders-table .table td.cell.file-download:hover > a, .app-card-orders-table .table td.cell-sign.cell-sign-btn:hover > a {
            color: #fff;
        }
.bttn-items .btn-link {
    color: #1391e5;
    font-weight:bold;
    text-decoration:none;
}
.app-nav .submenu-link {
    line-height: 15px;
    padding: .3rem 1rem;
}
.block-box {
    border: 1px solid rgb(185, 185, 185);
    border-radius: 5px;
    padding: 10px 20px;
    background: rgba(185, 185, 185, 0.1);
    box-shadow: 3px 2px 5px rgba(0,0,0,0.1);
    margin-bottom:10px;
}
.btn-add-new{
    margin:0 0 0 20px;
}
.info {
    color: #1391e5;
    font-size: 15px;
    font-style: italic;
}
.info-error, .error-text{
    color:red;
}
.error-cell {
    background-color: rgba(255, 0, 0,0.2)!important;
}
.modal-body .row-header {
    line-height:14px;
}
.search-modal
{
    margin:0 10px;
}
.search-modal .fa-times {
    color: red;
}
.search-modal .fa {
    font-size: 22px;
}
    .search-modal a {
        margin-left: 5px;
    }


.app-nav.app-nav-footer {
    background: #fff;
    padding: 50px 0;
}
.fa.fa-trash-o {
    color: #d26d69;
}
.ui-datepicker-trigger {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    border: none;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: .25rem 0 0 .25rem;
    padding: 0 10px;
}
.ui-datepicker-trigger img{
    width:20px;
}
.datepicker {
    padding-left: 50px !important;
}
.datepicker-l {
    padding-left: 60px!important;
}
/* dwg editor */
.empty-data {
    color: #8f8f8f !important;
}

.empty-data-box {
    border: 1px dashed #8f8f8f;
    background: rgba(255,255,255,0.1);
}

.recipe__ingredients {
    float: left;
}

.recipe-table {
    position: relative;
    padding: 1em;
    border: 1px solid #DDD;
    box-shadow: 0 15px 10px -10px rgba(31, 31, 31, 0.5);
    z-index: 10;
}

.recipe-table__cell {
    vertical-align: top;
    padding: 3px 5px;
}

.recipe__text-field {
    margin: 0;
    padding: .45em 0.92em;
    font-size: 1em;
    line-height: 1.4;
    color: #000;
    background-color: #FFF;
    background-image: none;
    border: 1px solid #CCC;
    border-left: 1px solid #CCC;
}

    .recipe__text-field::placeholder {
        color: #ccc;
    }

.recipe-table__add-row {
    margin-top: 0;
    position: relative;
    border-top: 1px solid #EEE;
    z-index: 8;
}

.recipe-table__add-row-btn {
    display: block;
    cursor: pointer;
    position: absolute;
    right: 0;
    left: 0;
    width: 4em;
    margin: 0 auto;
    -webkit-transition: all .2s easy-in;
    transition: all .2s easy-in;
    text-align: center;
    opacity: 0.5;
    color: #fff;
    border: 1px solid #16A085;
    border-bottom-right-radius: 1em;
    border-bottom-left-radius: 1em;
    background: #16A085;
    height: 1.5em;
    line-height: 1.5em;
}

    .recipe-table__add-row-btn:hover {
        opacity: 1;
    }

.recipe-table__del-row-btn {
    cursor: pointer;
    display: inline-block;
    padding: .45em 0.92em;
    font-size: 1em;
    line-height: 1.4;
    border: 1px solid #F39C12;
    color: #F39C12;
    text-decoration: none;
    transition: all .3s;
    text-align: center;
    background-color: #fff;
}

    .recipe-table__del-row-btn:hover {
        background: #F39C12;
        color: #fff;
    }


.drag-handler {
    width: 1.4em;
    position: relative;
    background-color: #E4E6EB;
    background-image: linear-gradient(45deg, #E4E6EB, #E4E6EB 2px, #fff 2px, #fff 4px, #E4E6EB 4px, #E4E6EB 9px, #fff 9px, #fff 11px, #E4E6EB 11px, #E4E6EB 16px, #fff 16px, #fff 18px, #E4E6EB 18px, #E4E6EB 22px);
    background-size: 10px 20px;
    cursor: move;
    border-top: 2px solid #FFF;
    border-bottom: 2px solid #FFF;
}

    .drag-handler:active {
        background-image: linear-gradient(45deg, #bab86c, #bab86c 2px, #fff 2px, #fff 4px, #bab86c 4px, #bab86c 9px, #fff 9px, #fff 11px, #bab86c 11px, #bab86c 16px, #fff 16px, #fff 18px, #bab86c 18px, #bab86c 22px);
        background-size: 10px 20px;
    }

.page-canvas canvas {
    width: 100%;
    border: 1px solid #000;
}

.page-canvas.cursorMove canvas {
    cursor: move;
}

.page-canvas.cursorGrab canvas {
    cursor: grab;
}

.page-canvas.cursorGrabbing canvas {
    cursor: grabbing;
}

.page-canvas.cursorNeswResize canvas {
    cursor: nesw-resize;
}

.page-canvas.cursorNwseResize canvas {
    cursor: nwse-resize;
}

.add-images {
    display: none;
    background-color: #fff;
    padding: 5px 10px;
    position: absolute;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.2);
    top: 0;
    left: 0;
    border-radius: 5px;
    z-index: 10000;
}

    .add-images.add-images-show {
        display: block;
    }

.add-images-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.2);
    z-index: 1000;
}

    .add-images-overlay.add-images-show {
        display: block;
    }
.add-images-b {
    cursor: pointer;
    border: 1px solid #e7e9ed;
    padding: 5px 5px;
    border-radius: 7px;
}
    .add-images-b:hover {
        border-color: #1391e5;
    }
.add-images-h {
    color: #1391e5;
    text-align: center;
    display: block;
    font-size: 15px;
    letter-spacing: -1px;
    font-weight: bold;
}

.add-images-d {
    text-align: center;
    display: block;
}

.form-floating.font-15 label{
    font-size:14px
}
th.cell {
    position: relative;
    text-align: center;
    line-height: 14px;
    padding-right: 10px;
}
th.cell a i{
    position: absolute;
    right: 0px;
    top: 40%;
}
.docx-preview {
    background: white;
    width: 21cm; /* height: 29.7cm; */
    display: block;
    margin: 0 auto;
    margin-bottom: 0.5cm;
    box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
    padding:20px;
}
.file-upload.no-upload input[type='file'] {
    display: none;
}
.form-href.sign-in-prog {
    background: #f1d24a;
}
    .form-href.sign-in-prog:hover {
        background: #c4a51d;
    }
    .form-href.sign-declined {
        background: red;
    }
.form-href.sign-completed {
    background: #219b63;
}
.form-href.sign-in-prog {
    background: #f1d24a;
}

    .form-href.sign-in-prog:hover {
        background: #c4a51d;
    }
.form-href.sign-unactive {
    background: #E4E6EB;
}

    .form-href.sign-unactive:hover {
        background: #E4E6EB;
        color: black!important;
        cursor:initial;
    }
.bell-ring {
    -webkit-animation-name: bellring;
    -webkit-animation-duration: 1s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    -webkit-animation-delay: -1.5s;
    -webkit-animation-direction: alternate;
    -webkit-transform-origin: 50%;
    animation-name: bellring;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-delay: -1.5s;
    animation-direction: alternate;
    transform-origin: 50%;
    -moz-animation: none;
}
@-webkit-keyframes bellring {
    0% {
        -webkit-transform: rotate(27deg);
    }

    100% {
        -webkit-transform: rotate(-27deg);
    }
}

@keyframes bellring {
    0% {
        transform: rotate(27deg);
    }

    100% {
        transform: rotate(-27deg);
    }
}


.dialogContent {
    height: 370px !important;
    overflow-y: scroll;
    overflow-x: inherit;
    clear: both;
}
#keys-list .cert-item-box {
    margin-right: 15px;

}
    #keys-list .cert-item-box .cert-item b {
        display:block;
    }
    #keys-list .cert-item-box .cert-item {
        float: left;
        margin-bottom: 10px;
        background: #ecffeb;
        color: #211212;
        border: 3px solid green;
        width: 100%;
        line-height: 16px;
        padding: 2px 10px 5px 25px;
        border-radius: 5px;
        line-height: 20px;
    }
        #keys-list .cert-item-box .cert-item.unactive {
            display: none;
            background: #ffefef;
            color: #211212;
            border: 3px solid red;
        }
            #keys-list .cert-item-box .cert-item.unactive.show {
                display: block;
            }
.cryptoinfo {
    line-height: 17px;
    font-size: 14px;
}
#certs-loading, .keys-loading {
    text-align: center;
}
#certs-loading img, .keys-loading img {
    width:100px;
}
.cert-bttn {
    border: solid 2px;
    padding: 2px 20px;
    border-radius: 5px;
    font-size: 15px;
    line-height: 16px;
    display: block;
}
.step-status {
    font-size: 30px;
    line-height: 30px;
    text-align: center;
}
.step-status .fa-check-circle {
    color: green;
}
    .step-status .fa-exclamation-triangle {
        color: #e0be00;
    }
.info_field{
    margin:0;
}
.accordion-button {
    padding: 5px !important;
    color: #0e570e;
    background-color: #e3ffe1;
}
    .accordion-button:not(.collapsed) {
        color: #0e570e;
        background-color: #e3ffe1;
    }
        .accordion-button:not(.collapsed)::after {
            color: #0e570e;
        }
.accordion-body {
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 0 0 5px 5px;
}
.row-item.cursor-init .cell {
    cursor: initial;
}
.indent-0 {
}

    .indent-0::before, .indent-1::before, .indent-2::before {
        content: ' - ';
        float: left;
        padding: 0 10px;
    }

.indent-1 {
    margin-left: 30px;
}

.indent-2 {
    margin-left: 60px;
}

.sitemap a {
/*    color: #2f9111;
*/    font-size: 17px;
}

.sitemap .stmp-item {
    font-size: 17px;
}

.sitemap-item {
    margin-bottom: 10px
}

.card .btn.btn-outline-danger, .card .btn.btn-outline-secondary, .card .btn.btn-outline-primary {
    background: #fff;
}
.card .btn.btn-outline-secondary:hover {
    color: #000;
}
/* Белый фон выше перебивал фон выбранной кнопки переключателя (btn-check):
   белый текст на белом. Выбранная кнопка закрашивается, как задумано Bootstrap. */
.card .btn-check:checked + .btn.btn-outline-secondary,
.card .btn-check:checked + .btn.btn-outline-primary,
.card .btn-check:checked + .btn.btn-outline-danger {
    background: var(--bs-btn-active-bg);
    color: var(--bs-btn-active-color);
}
.card .btn.btn-outline-primary:hover {
    background: #1391e5;
}
.card .btn.btn-outline-danger:hover {
    color: red;
}
.form-block {
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 5px;
    background: rgba(0,0,0,.05);
    margin-bottom: 10px;
}
    .form-block .form-block-inner {
        padding-bottom: 10px;
    }
