:root {
    --color-blue: #0081e7;
}

@media (max-width: 1599.98px) {
    :root {
        --hsize: 0.09vh;
    }
}
@media (min-width: 1600px) {
    :root {
        --hsize: 0.1111vh;
    }
}
/*
*/
body {
  margin: 0;
  /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";*/
  /*font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Droid Sans,Helvetica Neue,sans-serif;*/
  
  font-family: -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}




.container-fluid {
    min-width: 1336px;
}
.container-fluid.fluid {
    min-width: 0;
}


@media only screen and (max-width : 480px) {
    h1, .h1 {
        font-size: 1.50rem;
        margin-top: 0.25rem;
        margin-bottom: 0.75rem;
    }
}
#YLoginForm {
    margin-top: 10vh;
    width: 21rem;
}
@media only screen and (max-width: 576px) {
    #YLoginForm {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}
#YLoginForm .login-link-set {
    margin-top: 7px;
}
#YLoginForm .login-link {
    margin-top: 7px;
    color: #FF0039;
}
#YLoginForm .login-link a {
    color: #FF0039;
}

.invalid-feedback {
    line-height: 1;
}
.invalid-feedback-count,
.invalid-feedback-other,
.invalid-feedback-storage {
    font-weight: normal;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 100%;
    color: #FF0039;
}
.warning-feedback {
  color: #FF7518;
}
.warning-feedback a {
    text-decoration: underline;
}
.is-invalid.is-warning:focus,
.is-invalid.is-warning {
    border: 1px solid #ced4da;
    box-shadow: 0 0 0 0.2rem rgba(255,117,24,0.25);
}


.form-group.required label:after,
label.required:after
{
    content: '*';
    color: #ff0039;
    position: absolute;
    margin-left: 3px;
}
.pointer {
    cursor: pointer;
}

.table>tbody>tr.navigator {
    background-color: #fff;
}

table a:not(.btn), .table a:not(.btn) {
    text-decoration: none;
}
.dropdown-menu.right {
    left: auto;
    right: 0;
}

.bg-dark {
    background-color: #FF0039 !important;
}
@media only screen and (max-width: 767px) {
    .bg-dark {
        /*background-color: #222 !important;*/
    }
}
.navbar-dark .navbar-brand {
    color: rgba(255,255,255,0.8);
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8);
}

.dropdown-item {
    padding-left: 1.0rem;
    padding-right: 1.0rem;
}
.dropdown-item.active, .dropdown-item:active {
    background-color: #FF0039;
}
.dropdown-item.active-account {
    background-color: #2780E3;
    color: white;
}
.dropdown-item.active-account:focus, .dropdown-item.active-account:hover {
    background-color: #2780E3;
    color: white;
}
.dropdown-item.active .text-danger {
    color: yellow !important;
}
.dropdown-item:active .text-danger {
    color: #FF0039;
}

.dropdown-item:focus, .dropdown-item:hover {
    background-color: #eee;
    color: #16181b;
}
.dropdown-item.active:focus, .dropdown-item.active:hover {
    background-color: #FF0039;
    color: #eee;
}

.modal-header {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.modal-header.ui-draggable-handle {
    cursor: move;
}
/*
.modal-header.ui-draggable-handle {
    cursor: url(../cursors/openhand.cur) 7 5, default;
    background-color: #f5f5f5;
}
*/
/*
.modal.ui-draggable-dragging .modal-header.ui-draggable-handle {
    cursor: url(//ssl.gstatic.com/ui/v1/icons/mail/images/2/closedhand.cur) 7 5, default !important;
}
*/

.modal-nomenclature-edit .modal-dialog,
.modal-nomenclature-edit .modal-content {
    /* 80% of window height */
    /*height: 92%;*/
    /*height: 655px;*/
    max-height: calc(100vh - 60px);
}

.modal-nomenclature-edit .modal-body {
    max-height: calc(100% - 130px);
    overflow-y: scroll;
}

.modal-contragent-edit .modal-dialog,
.modal-contragent-edit .modal-content {
    height: 655px;
    max-height: calc(100vh - 60px);
}

.modal-contragent-edit .modal-body {
    overflow-y: scroll;
}

.modal-contragent-edit #contragent_address {
    height: 160px;
    flex: 1 1 auto;
    display: block;
    overflow-y: scroll;
    overflow-x: hidden;
}

.modal-contragent-edit #contragent_address tr.not-hover:hover {
    background-color: rgba(0,0,0,0);
}
.modal-contragent-edit #contragent_address tr button {
    line-height: 1;
}

#modal_nomenclature .modal-dialog,
#modal_nomenclature .modal-content {
    /* 80% of window height */
    height: 92%;
    /*height: calc(100% - 120px)*/
}


.modal-fix-edit .modal-dialog,
.modal-fix-edit .modal-content {
    height: 90vh;
    max-height: 700px;
}
/*
.modal-fix-edit .modal-dialog {
    max-height: 711px !important;
}
.modal-fix-edit .modal-content {
    max-height: 690px !important;
}
*/
.modal-fix-edit.modal-fix-edit-scroll .modal-body {
    overflow-y: auto;
}

.modal-edit-scroll .modal-body,
.modal-edit-scroll .modal-content {
    overflow-y: auto;
    max-height: 90vh;
}


/*.modal-move-goods .is_active  {*/
.form-group-checkbox {
    margin-top: 36px;
}

input:required, textarea:required, select:required {
    background: linear-gradient(to right, var(--color-blue) 2px, transparent 2px);
    background-color: #fff;
}


.form-control[name=period][readonly] {
    background-color: #fff;
}

#loader {
    display: none;
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #FF0039; /* Red */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    
    margin: auto;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
}

#loader-small {
    /*display: none;*/
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #FF0039; /* Red */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    
    margin: auto;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#contragent .table {
    /*min-width: 350px;*/
}

.danger_other {
    color: #FF0039;
    font-size: 80%;
}





.btn-group.split,
.btn.split {
    margin-left: 1rem;
}

#modal_delete .invalid-feedback,
#product_modal_delete .invalid-feedback,
#modal_catalog_delete .invalid-feedback {
    display: block;
    font-size: 15px;
}

td.move-texture {
    background: url(../images/texture.png) center left no-repeat;
    cursor: move;
}

td.move-texture-sm {
    background: url(../images/texture-sm.png) center left no-repeat;
    cursor: move;
}

.panel-placeholder {
	border: 1px dotted black;
	margin: 1em 1em 1em 1em;
	height: 50px;
}


.table {
    /*border-spacing: collapse;*/
    border-spacing: 0;
}

.notifyjs-corner {
    margin-right: 15px!important;
}
.notifyjs-bootstrap-base {
    border-radius: 0;
}

legend {
    font-size: 1.0rem;
    font-weight: 500;
}


.nav-tabs {
    margin-bottom: 15px;
}

.custom-group {
    margin-top: 8px;
}

.jumbotron {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 15px;
}
.jumbotron-footer-button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    /*padding: 1rem;*/
    /*border-top: 1px solid #e9ecef;*/
}

.form-control {
    padding: 0.375rem 0.5rem;
}

.form-control-plaintext {
    font-weight: bold;
}

table.table td,
table.table th {
    padding-top: 9px;
    padding-bottom: 9px;
}

#modal_contragent .subtable {
    min-height: 483px;
}

.subtable table td,
.subtable table th {
    padding-top: 7px;
    padding-bottom: 7px;
}

table.table-hover tbody tr.not-hover:hover {
    background-color: transparent;
}
table.table .breadcrumb {
    padding: 0;
    margin-bottom: 0;
    background-color: transparent;
}
table.table .breadcrumb-item a {
    color: #333;
    font-weight: 500;
}
table.table .breadcrumb-item a:hover {
    text-decoration: underline;
}
table.table .breadcrumb-item.active {
    color: #222;
    font-weight: bold;
}

.filter input,
.filter select {
    padding-left: 5px;
    padding-right: 5px;
}

/*@media (max-width: 768px) {*/

.table th, .table td {
    padding: 0.5rem;
}

.table.table-sm th, .table.table-sm td {
    padding: 0.3rem 0.5rem;
}

.table .navigator td {
    padding-top: 20px;
}

#nomenclature_catalog .buttons {
    margin-bottom: 5px;
}

#nomenclature_catalog {
    /*margin-top: 15px;*/
    padding-top: 5px;
    padding-bottom: 5px;
}

#nomenclature_catalog .fa-pencil-alt,
#nomenclature_catalog .fa-times {
    cursor: pointer;
    color: #666;
}
#nomenclature_catalog .fa-pencil-alt:hover {
    color: #2780E3;
}

#nomenclature_catalog .fa-times:hover {
    color: #FF0039;
}
#nomenclature button[name=report_price_tags] {
    height: 36px;
}
/*
#nomenclature button[name=report_price_tags] i {
    font-size: 24px;
}
*/
.width-20 {
    width: 20px;
    flex-shrink: 0;
}

.width-minus-20 {
    width: calc(100% - 20px);
}
.width-20 i.far.fa-image,
.width-20 i.far.fa-images {
    margin-left: 5px;
    /*float: right;*/
    /*display: contents;*/
}
/*
#photo_gallery {
    height: 140px;
}
*/

.pagination-light__title {
    margin-right: 5px;
    vertical-align: middle;
    line-height: 36px;
}

.pagination-light .btn {
    border-color: transparent;
}
.pagination-light .btn:not(:disabled):not(.disabled):hover {
    background-color: #bebfbf;
}



.navbar-dark .navbar-nav .show>.nav-link, .navbar-dark .navbar-nav .active>.nav-link, .navbar-dark .navbar-nav .nav-link.show, .navbar-dark .navbar-nav .nav-link.active {
    color: #ff0039;
    background-color: #eee;
    font-weight: 400;
}

@media only screen and (max-width: 767px) {
    .navbar-dark .navbar-nav .show>.nav-link, .navbar-dark .navbar-nav .active>.nav-link, .navbar-dark .navbar-nav .nav-link.show, .navbar-dark .navbar-nav .nav-link.active {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.modal-btn-group {
    margin-top: 10px;
}
.modal-btn-group .dropdown-menu {
    position: absolute; transform: translate3d(0px, 36px, 0px); top: 0px; left: 0px; will-change: transform;
}



.modal-product table {
    display: flex;
    flex-flow: column;
    width: 100%;
    margin-bottom: 0;
}

.modal-product thead {
    flex: 0 0 auto;
    padding-right: 17px;
}

.modal-product tbody {
    flex: 1 1 auto;
    display: block;
    /*overflow-y: auto;*/
    overflow-y: scroll;
    overflow-x: hidden;
    /*height: calc(90vh - 405px);*/
}
.modal-product tbody {
    max-height: 260px;
    /*height: 156px;*/
    height: calc(90vh - 398px);
}
#names_modal .modal-product tbody {
    height: calc(90vh - 498px);
}
.modal-product-3 tbody {
    max-height: 222px;
    /*height: 222px;*/
    /*height: 108px;*/
    height: calc(90vh - 458px);
}

.modal-product tr {
    width: 100%;
    /*display: table;*/
    table-layout: fixed;
    margin-left: 0;
    margin-right: 0;
}
.modal-product tr th,
.modal-product tr td {
    line-height: 1;
}

.modal-product .data-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.col-percent-6 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 6%;
    flex: 0 0 6%;
    max-width: 6%;
}

.col-percent-8 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 8%;
    flex: 0 0 8%;
    max-width: 8%;
}

.col-percent-10 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 10%;
    flex: 0 0 10%;
    max-width: 10%;
}

.col-percent-11 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 11%;
    flex: 0 0 11%;
    max-width: 11%;
}

.col-percent-12 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 12%;
    flex: 0 0 12%;
    max-width: 12%;
}

.col-percent-43 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 43.33%;
    flex: 0 0 43.33%;
    max-width: 43.33%;
}

.col-33px {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 33px;
    flex: 0 0 33px;
    max-width: 33px;
    width: 33px;
}
.col-40px {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 40px;
    flex: 0 0 40px;
    max-width: 40px;
    width: 40px;
}
.col-50px {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50px;
    flex: 0 0 50px;
    max-width: 50px;
    width: 50px;
}
@media (max-width: 575px) {
    .col-xs-40px {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 40px;
        flex: 0 0 40px;
        max-width: 40px;
    }
    .col-xs-55px {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 55px;
        flex: 0 0 55px;
        max-width: 55px;
    }
}
.col-75px {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 75px;
    flex: 0 0 75px;
    max-width: 75px;
}
.col-80px {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 80px;
    flex: 0 0 80px;
    max-width: 80px;
}

.col-90px {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 90px;
    flex: 0 0 90px;
    max-width: 90px;
}
.col-100px {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100px;
    flex: 0 0 100px;
    max-width: 100px;
}
.col-105px {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 105px;
    flex: 0 0 105px;
    max-width: 105px;
}
.col-110px {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 110px;
    flex: 0 0 110px;
    max-width: 110px;
}
.col-120px {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 120px;
    flex: 0 0 120px;
    max-width: 120px;
}
.col-150px {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 150px;
    flex: 0 0 150px;
    max-width: 150px;
}
.col-190px {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 190px;
    flex: 0 0 190px;
    max-width: 190px;
}
.col-240px {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 240px;
    flex: 0 0 240px;
    max-width: 240px;
}
.color-holiday input,
.color-holiday {
    color: #FF0039;
}
.color-celebration input,
.color-celebration {
    background-color: hotpink;
    color: white;
    font-weight: normal;
}

.table-hover tbody tr.not-hover:hover {
    background-color: white;
}
/*
.modal-backdrop {
   background-color: red;
}
*/
/*
#product_modal_edit .modal-content {
    background-color: #f3f3f3;
}
#product_modal_edit .modal-body {
    background-color: #fff;
}
#product_modal_edit .modal-footer {
    background-color: #fff;
}
*/
.modal-header,
.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    background-color: #f3f3f3;
}

#product_modal_edit small[name=nomenclature_code] {
    position: absolute;
    margin-top: -16px;
}
#modal_edit small[name=discount_card_code_description],
#payment_modal_edit small[name=discount_card_code_description] {
    position: absolute;
    margin-top: 0;
    color: #2e83ff !important;
}

#product_modal_edit .form-group-info {
    margin-top: 35px;
}
#product_modal_edit .form-group-info.hidden {
    display: none;
}

#modal_nomenclature {
    height: 100%;
}
#modal_nomenclature .modal-body {
    height: calc(100% - 45px);
    padding-top: 0;
    padding-bottom: 0;
}
#modal_nomenclature_list {
    height: 100%;
    overflow-y: auto;
    padding-top: 10px;
}
#modal_nomenclature_list .row.data {
    cursor: pointer;
}

#modal_nomenclature h1 {
    display: inline-block;
    font-size: 1.7rem;
}
/*
#modal_nomenclature .pagination-light {
    display: inline-block;
}
*/
#modal_nomenclature_list p {
    display: inline-block;
}
/*
#modal_nomenclature  {
    height: auto;
}
*/
#modal_nomenclature_catalog {
    height: 100%;
    overflow: auto;
    /*width: 304px;*/
    padding-top: 5px;
    padding-bottom: 5px;
    
    border-right: 4px solid lightgray;
    
}
#modal_nomenclature .breadcrumb {
    font-weight: 500;
}
#modal_nomenclature .catalog_name {
    font-weight: 500;
}

/*
.splitter_panel .right_panel {
    width: 100% !important;
}
*/
/* text-nowrap */
.text-crop {
    white-space: nowrap; overflow: hidden; 
    /*margin:0 auto;*/
}

.text-clip { text-overflow: clip; white-space: nowrap; overflow: hidden; }

.text-ellipsis { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }

.text-word { text-overflow: ellipsis-word; white-space: nowrap; overflow: hidden; }

.form-group.form-group-recommended {
    background-color: #f3f3f3;
    padding-bottom: 5px;
}

.modal-product__serials {
    color: #999;
}

.popover {
    /*max-width: 0;*/
    max-width: 384px !important;
}

.btn-black {
    color: #444;
}
.btn-black:hover {
    color: #222;
}

.btn-blue {
    color: #2780E3;
}
.btn-blue:hover {
    color: #1a6dca;
}

.btn-link-lg {
    font-size: 1.171875rem;
    /*padding: 0.175rem 0.75rem;*/
}

.report h2 {
    display: none;
}
.report .parameters-first {
    display: none;
}
.report thead tr {
    page-break-before: always;
}
.report .report-result {
    margin-top: 10px;
}
/*
.reportForm [role=exec] {
    margin-top: 30px;
}
.reportForm [role=print] {
    margin-top: 30px;
}
*/
.report h2 {
    margin: 0;
    padding-bottom: 10px;
    text-align: center;
    /*display: block;*/
    font-size: 14pt;
    line-height: 1.2;
}
.report .prev-info {
    margin: 0;
    padding-bottom: 10px;
    text-align: center;
    display: block;
    font-size: 12pt;
    font-weight: 300;
}
/* https://habr.com/ru/company/ruvds/blog/317776/ */
@media print {
    * {
        font-family: verdana, arial, sans-serif;
        font-size: 12pt;
        color:#000000; 
    }
    .table thead th {
        font-weight: 600;
    }
    a:link, a:visited, a {
    background: transparent;
    color: #520;
    font-weight: bold;
    text-decoration: underline;
    text-align: left;
    }

    a {
        page-break-inside:avoid
    }
    .report h1 {
        text-align: center;
        margin: 0;
        font-size: 24pt;
    }
    .report h2 {
        margin: 0;
        padding-bottom: 10px;
        text-align: center;
        display: block;
        font-size: 14pt;
    }
    .report .parameters-first {
        display: block;
        font-weight: bold;
        text-align: center;
        font-size: 14pt;
    }
    .report .reportForm {
        display: none;
    }
    .report .report-result {
        /*margin-top: 0px;*/
    }
}


.report .w125px {
    width: 125px;
    min-width: 125px;
}
.report .w300px {
    width: 300px;
    min-width: 300px;
}
.report .w400px {
    width: 400px;
    min-width: 400px;
}
.report .w70px {
    width: 70px;
    min-width: 70px;
}
.report .w80px {
    width: 80px;
    min-width: 80px;
}
.report .w85px {
    width: 85px;
    min-width: 85px;
}
.report .w95px {
    width: 95px;
    min-width: 95px;
}
.report .mw95px {
    min-width: 195px;
}
.report .w65px {
    width: 65px;
    min-width: 65px;
}
.report .w155px {
    width: 155px;
    min-width: 155px;
}
#saldo_of_goods.report tbody .w155px:last-child {
    width: 135px;
    min-width: 135px;
}
.report .w160px {
    width: 160px;
    min-width: 160px;
}
.report .w625px {
    width: 625px;
    min-width: 625px;
}
.report .w750px {
    width: 750px;
    min-width: 750px;
}
.report .w845px {
    width: 845px;
    min-width: 845px;
}
.report .mt-29px {
    margin-top: 29px;
}
.report .table-fix-height {
    /*height: calc(100vh - 259px);*/
}
.report .table-fix-height .table {
    /*max-width: 100%;*/
    margin-bottom: 0;
    /*width: auto;*/
}

.report .table-fix-height tbody {
    display:block;
    overflow:auto;
}

.report .period-group .btn {
    padding-top: 0;
    padding-bottom: 0;
}

#saldo_of_goods.report .table-fix-height tbody {
    height: calc(100vh - 380px);
}


/* із повідомленням в 1 рядок */
#saldo_of_goods.report .table-fix-height.header_message tbody {
    height: calc(100vh - 364px);
}

#saldo_of_goods.report .table td,
#saldo_of_goods.report .table th {
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
}
/*
#saldo_of_goods.report .table th.w65px:last-child {
    width: 82px;
    min-width: 82px;
    padding-right: 22px;
}
*/
/*
#saldo_of_goods.report .table th.w80px:last-child {
    width: 97px;
    min-width: 97px;
    padding-right: 22px;
}
*/
#saldo_of_goods.report .table th.w85px:last-child {
    width: 102px;
    min-width: 102px;
    padding-right: 22px;
}
/*
#saldo_of_goods.report .table th.w155px:last-child {
    width: 172px;
    min-width: 172px;
    padding-right: 22px;
}
*/
#saldo_of_goods.report .table th.w160px:last-child {
    width: 177px;
    min-width: 177px;
    padding-right: 22px;
}

@media print {
    #saldo_of_goods.report .table-fix-height tbody {
        height: auto;
    }
}
.report .table-fix-height thead, 
.report .table-fix-height tbody tr {
    display:table;
    /*width:100%;*/
    table-layout:fixed;
}

.report .table-fix-height tbody tr.data-group {
    /*width:100%;*/
}

.report a i.fas.fa-link {
    color: #444;
}

@media print {
    .report .table-fix-height {
        height: auto;
        overflow-x: visible;
    }
    .report .table-fix-height .table {
        max-width: none;
    }
    .report .table-fix-height thead, 
    .report .table-fix-height tbody tr
    {
        width:100%;
    }
    
    .report a i.fas.fa-link {
        display: none;
    }
}

ul.nav.second-title .nav-link {
    padding-top: 0.2rem;
    padding-bottom: 0.8rem;
    /*
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    white-space: nowrap;
    */
}

span.nav.second-title {
    position: absolute;
    top: 1.2rem;
    right: 26px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    word-wrap: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 250px;
}
.dropdown.show span.nav.second-title {
    color: rgba(255,0,57,0.5);
    font-weight: 600;
}
@media only screen and (max-width: 767px) {
    span.nav.second-title {
        left: 0;
        right: initial;
        max-width: 100%;
    }
    .dropdown.show span.nav.second-title {
        left: 8px;
    }
}

.custom-control.custom-checkbox.custom-checkbox-right{padding-left: 0;}

label.custom-control-label.custom-control-label-right {
  position: relative;
  padding-right: 1.5rem;
}

label.custom-control-label.custom-control-label-right::before, label.custom-control-label.custom-control-label-right::after{
  right: 0;
  left: auto;
}
/*
.invoices-subscribe,
.invoices-subscribe {
    padding: 15px;
}
*/
.invoices__subscribe {
    padding-bottom: 25px;
}

.invoices-history .table thead th,
.invoices-subscribe .table thead th {
    border-top-width: 0;
}
@media screen and (min-width: 992px) {
    .invoices-subscribe .table td {
        /*font-size: 18px;*/
    }
}

.invoices-subscribe tbody tr.active td,
.invoices-subscribe tbody tr.active th {
    background-color: #e8f0ff !important;
}

.invoices-subscribe .payment-block {
    font-size: 1.33rem;
    font-weight: 600;
}
.invoices-subscribe .payment-sum {
    font-size: 1.75rem;
}
.invoices-subscribe .payment-sum-full {
    font-size: 1.5rem;
    font-weight: 400;
    text-decoration: line-through;
}
@media screen and (max-width: 575px) {
    .invoices-subscribe .payment-block {
        font-size: 1.0rem;
    }
    .invoices-subscribe .payment-sum {
        font-size: 1.33rem;
    }
    .invoices-subscribe .payment-sum-full {
        font-size: 1.1rem;
    }
}

.invoices-subscribe .badge-yellow {
    font-size: 100%;
    font-weight: normal;
    color: #000;
    background-color: #f5f500;
}

/*
a.badge-yellow:hover, a.badge-yellow:focus {
  color: #222;
  background-color: #f3f300;
}
a.badge-yellow:focus, a.badge-yellow.focus {
  outline: 0;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(153, 84, 187, 0.5);
          box-shadow: 0 0 0 0.2rem rgba(153, 84, 187, 0.5);
}
*/

.was-validated .form-control:invalid, .form-control.is-invalid {
    border-color: #FF0039;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23FF0039' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23FF0039' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/*.was-validated .form-control:invalid, */
.form-control.is-invalid.is-warning {
    border-color: #FF7518;
/*    padding-right: calc(1.5em + 0.75rem);*/
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23FF7518' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23FF7518' stroke='none'/%3e%3c/svg%3e");
/*    background-repeat: no-repeat;*/
/*    background-position: right calc(0.375em + 0.1875rem) center;*/
/*    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);*/
}

body.not-mobile {
    min-width: 1200px;
}

@media only screen and (min-width: 768px) {
    .nav.navbar-nav.second-title {
        max-width: 285px;
    }
}

.header-message {
    width: 100%;
    background-color: #fff9c4;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    padding: 15px 20px;
}

.payment-method {
    margin-bottom: 25px;
}
.payment-method h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}
.payment-method button {
    padding-top: 6px;
    padding-bottom: 5px;
    height: 46px;
    width: 250px;
}
.payment-method button img {
    height: 30px;
}
.payment-method button div {
    padding-top: 5px;
    padding-bottom: 4px;
    font-size: 14px;
    font-weight: 400;
    vertical-align: middle;
}
.payment-method button i {
    font-size: 20px;
    vertical-align: middle;
}

.invoices legend {
    margin-bottom: 0;
}

@media only screen and (min-width: 768px) {
    .payment-method button.payment-method_card {
        margin-right: 10px;
    }
}

@media only screen and (max-width: 576px) {
    .payment-method button {
        width: 160px;
        padding-left: 5px;
        padding-right: 5px;
    }
}

.form-inline .form-control {
    display: inline-block;
    width: auto;
    vertical-align: middle;
}

.col-form-label-sm {
    padding-bottom: 0;
}

.card.col-todo-item {
    width: 325px;
    border-width: 0;
}
@media only screen and (min-width : 320px) and (max-width : 480px) {
    .card.col-todo-item {
        width: 100%;
    }
}

.col-todo-item .card-header {
    padding: 0.50rem 0.5rem 0rem 0.5rem;
    border-bottom-width: 0;
    font-weight: 500;
}
.col-todo-item .card-body {
    padding: 0.50rem;
    background-color: rgba(0,0,0,0.03);
}
.col-todo-item .card-body p {
    margin-bottom: 0.25rem;
    color: #555;
}

.col-todo-item .btn-sm, 
.col-todo-item .btn-group-sm>.btn {
    padding: 0.125rem 0.25rem 0rem 0.25rem;
}
/*
.col-todo-item .btn-success.btn-sm, 
.col-todo-item .btn-success.btn-group-sm>.btn {
    padding-left: 0.25rem;
}
*/
.col-todo-item_point {
    background-color: #fff;
    border: 1px solid #eee;
    border-bottom-color: #ccc;
    padding: 0.5rem 0.5rem;
    margin-bottom: 0.5rem;
}

.input-text-warning {
    color: #FF7518 !important;
    padding: 8px;
}

.demo-img {
    border: 2px solid #007f7f;
    margin-bottom: 15px;
}
.demo-info {
    padding: 40px 25px 50px;
    max-width: 890px;
    text-align: center;
}
.demo-info_title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #007f7f;
}
.demo-info_description {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 10px;
}
/*
.sale-abc__check-canvas {
    background-image: url(../images/paper.jpg); background-position-y: 0; background-size: cover;
}
.sale-abc .check {
    height: calc(100vh - 190px);
    overflow-x: hidden;
    
}
.sale-abc .check_num {
    font-weight: bolder;
    font-size: larger;
    padding-top: 9px;
    padding-bottom: 9px;
}
.sale-abc .check_count {
    padding-left: 0;
    padding-right: 0;
}
.sale-abc .check_count input {
    width: 100%;
    border-width: 0;
    padding: 0;
    text-align: center;
    background-color: transparent;
}

.sale-abc .check_setting {
    margin-top: 5px;
}
.sale-abc .check_back-link {
    margin-top: 5px;
}

.sale-abc .check-total {
    margin-top: 25px;
}
.sale-abc .check-total_sum-title {
    line-height: 1;
}
.sale-abc .check-total_sum {
    font-weight: bolder;
}
.sale-abc .check-total_sum span {
    font-size: larger;
}

.sale-abc .btn-round {
    border-radius: 50%;
}
.sale-abc .btn-minus,
.sale-abc .btn-plus {
    padding: 0;
    color: lightgrey;
}


.sale-abc__nomenclature-top {
    margin: 15px 0 5px 0;
}

.sale-abc__nomenclature-catalog {
    overflow-y: auto;
    margin-right: 5px;
}


.sale-abc__nomenclature-catalog .btn-outline-secondary {
    border: 1px solid #ced4da;
    background-color: #e9ecef;
}
.sale-abc__nomenclature-catalog .btn-outline-secondary i {
    color: #666;
}

.sale-abc__nomenclature-top .input-group-text {
    padding: 0.375rem 0.375rem;
    font-size: 1.3rem;
}

.sale-abc__nomenclature-list {
    height: calc(100vh - 127px);
    margin-bottom: 0px;
    overflow-x: hidden;
}

.sale-abc__nomenclature-list tr.catalog td {
    font-weight: 500;
    color: #666;
}
.sale-abc__nomenclature-list #nomenclature_body td {
    cursor: pointer;
}

.sale-abc__nomenclature_view_type i {
    font-size: 16px;
}

.sale-abc__square_catalog + .sale-abc__square_product {
    border-top: 1px solid #dee2e6;
    margin-top: 7px;
    padding-top: 7px;
}
.sale-abc__square_item {
    overflow: hidden;
}
.sale-abc__square_catalog,
.sale-abc__square_product {
    margin-left: -20px;
    margin-right: -20px;
}

.sale-abc__square .card {
    border: 5px solid lightblue;
    overflow: hidden;
    padding: 0;
    
    
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
}
.sale-abc__square .card:before {
    content: '';
    width: 1px;
    padding-bottom: 66.666667%;
    display: block;
}

.sale-abc__square .card span {
    margin: 0;
    position: absolute;
    top: calc(50% - 15px);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    text-align: center;
    font-size: 76px;
    font-weight: 300;
    margin: 0 auto;
    left: 0;
    right: 0;
    color: #eee;
    word-wrap: break-word;
}
.sale-abc__square .card_title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 5px;
    background-color: white;
    line-height: 20px;
    max-height: 48px;
    color: #222;
    font-weight: 400;
    font-size: 14px;
    overflow: hidden;
}
.sale-abc__square_catalog .card_title_name {
    width: 100%;
}
.sale-abc__square_product .card_title_name {
    display: inline-block;
    width: calc(100% - 45px);
}
.sale-abc__square_product .card_title_price {
    display: inline-block;
    width: 40px;
    text-align: right;
    font-size: 12px;
    color: #bbb;
    vertical-align: top;
}
*/

#payment_modal_edit .custom-control-label.first::before {
    border-width: 0 !important;
}

#payment_modal_edit .rounding_info {
    padding-top: 34px;
    font-size: 90%;
}


.report.dashboard .nav-link {
    padding: 15px 14px;
}

.report.dashboard .nav-link .dashboard__tab-name {
    /*color: rgba(0,0,0,0.54);*/
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: 14px;
    line-height: 1;
    /*font: 400 14px/10px 'Roboto',sans-serif;*/
    color: #5f6368;
}
.report.dashboard .nav-link .dashboard__tab-value {
    /*color: rgba(0,0,0,0.87);*/
    /*font-size: 26px;*/
    /*font-weight: 300;*/
    letter-spacing: 0;
    line-height: 1;
    
    color: #202124;
    font: 300 26px/20px 'Roboto',sans-serif;
}
.report.dashboard .nav-link .dashboard__tab-value currency {
    font-size: 80%;
}


.report.dashboard .nav-link.active .dashboard__tab-name {
    /*color: rgba(0,0,0,0.87);*/
    color: #202124;
    font-size: 14px;
    font-weight: 500;
}
.report.dashboard .nav-link.active .dashboard__tab-value {
    color: rgba(0,0,0,0.87);
    font-size: 26px;
    font-weight: 400;
}

.report.dashboard .nav-link.active .dashboard__tab-value span {
}

.report.dashboard .dashboard__sub-param {
    letter-spacing: 0;
    margin-bottom: 25px;
    line-height: 1;
    padding: 0 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: space-between;
}
.report.dashboard .dashboard__sub-param_item {
    -ms-flex-preferred-size: 0;
    /*flex-basis: 0;*/
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
}
.report.dashboard .dashboard__sub-param-name {
    margin-bottom: 5px;
    font-weight: 400;
    font-size: 14px;
    color: #999;
}
.report.dashboard .dashboard__sub-param-value {
    font-weight: 400;
    color: rgba(0,0,0,0.87);
    font-size: 22px;
}
.report.dashboard .dashboard__sub-param-value currency {
    font-size: 80%;
}


.period-selector {
    width: 250px; 
    z-index: 1111; 
    border: 1px solid #ced4da;
    background-color: white;
}

@media only screen and (max-width: 399px) {
    .period-selector {
        width: calc(100% - 30px); 
    }
}

.description-alert {
    position: absolute;
    line-height: 1;
    width: 100%;
    margin-top: 0.43rem;
    font-size: 90%;
    color: #444;
}

#employees_tab.tab-content {
    max-height: 410px;
    height: calc(90vh - 301px);
}

#names_modal_edit .modal-content {
    height: auto;
}
/*
#nomenclature_import ol {
    font-size: 24px;
    font-weight: 600;
}
#nomenclature_import ol li {
    font-weight: normal;
}
*/
#nomenclature_import ol {
  list-style: none;
  counter-reset: my-awesome-counter;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
#nomenclature_import ol li {
  counter-increment: my-awesome-counter;
  display: flex;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}
#nomenclature_import ol li::before {
  content: "0" counter(my-awesome-counter);
  font-weight: 500;
  font-size: 2rem;
  margin-right: 0.5rem;
  color: #3FB618;
  /*font-family: 'Abril Fatface', serif;*/
  line-height: 1;
}
#nomenclature_import ol.ol-2 li .nomenclature_import__li {
    margin-left: 44px;
}
#nomenclature_import ol.ol-2 li::before {
    display: none;
}
.nomenclature_import__li {
    display: block;
    position: relative;
}

.progress-bar.indeterminate {
  position: relative;
  animation: progress-indeterminate 2s linear infinite;
}

@keyframes progress-indeterminate {
   from { left: -50%; width: 50%; }
   to { left: 100%; width: 50%;}
}

#nomenclature_import .badge {
    font-size: 100%;
}

.custom-control-input:disabled ~ .custom-control-label {
    color: #373a3c;
}
/*
.custom-control-input:disabled ~ .custom-control-label::before {
    background-color: #f8f8f8;
}
*/

@media only print {
    #abc, #abc_buyer {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.timesheet-modal-edit .data {
    padding-left: 5px;
    padding-right: 5px;
    /*width: 100%;*/
    /*
    flex: 1 1 auto;
    display: inline-block;
    */
    /* overflow-y: auto; */
    overflow-x: scroll;
    overflow-y: hidden;
}
.timesheet-modal-edit .data .data-frame {
    width: 1240px;
}
.timesheet-modal-edit .data .form-group {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 35px;
    flex: 0 0 35px;
    max-width: 35px;
    text-align: center;
    margin-right: 5px;
}
.timesheet-modal-edit .data .col-form-label {
    font-weight: bold;
}
.timesheet-modal-edit .data .form-group input {
    padding: 2px 5px;
    height: calc(1.5rem + 2px);
    /*
    padding-left: 5px;
    padding-right: 5px;
    */
    text-align: center;
}
.timesheet-modal-edit .data .form-group input.data-day {
    margin-bottom: 5px;
}
/*.timesheet-modal-edit .color-light i {*/
.timesheet-modal-edit .btn-clone {
    cursor: pointer;
}
.timesheet-modal-edit .btn-clone i {
    color: #ccc;
}
.timesheet-modal-edit .btn-clone.active i {
    color: #3FB618;
}
.timesheet-modal-edit .btn-clone:hover i {
    color: #2780E3;
}
tr.height-one-title-row div {
    max-height: 28px;
    overflow: hidden;
    line-height: 1;
}

.abc__table,
.abc_buyer__table,
.cash_flow__table {
    min-width: 650px;
    overflow-x: auto;
    overflow-y: hidden;
}
.money_account_flow__table {
    min-width: 1200px;
    overflow-x: auto;
    overflow-y: hidden;
}
.movement_of_goods__table {
    min-width: 900px;
    overflow-x: auto;
    overflow-y: hidden;
}
.form_keeping_goods__table {
    min-width: 1200px;
    overflow-x: auto;
    overflow-y: hidden;
}
#cash_register_table {
    min-width: 800px;
    overflow-x: auto;
    overflow-y: hidden;
    caret-color: transparent;
}
#cash_shifts_table {
    min-width: 1200px;
    overflow-x: auto;
    overflow-y: hidden;
}

.report-arrow-right {
    position: absolute;
    right: 2px;
    margin-top: 11px;
}

.image-close {
    cursor: pointer;
    display: block;
    position: absolute;
    right: 15px;
    top: 15px;
}


.report-work-result #header {
  height: 40px;
}

.report-work-result #data-work-result {
  border: 1px solid #b7b7b7;
  margin-top: 40px;
  width: 250px;
}

.report-work-result .label {
  border-top: 1px solid #b7b7b7;
  font-family: Arial;
  font-size: 13px;
  text-align: right;
  padding-left: 8px;
  padding-right: 8px;
  height: 41px !important;
  line-height: 41px !important;
}
.report-work-result .label:first-child {
    height: 40px !important;
    line-height: 40px !important;
}

.report-work-result .label:first-child {
  border: none;
}

.report-work-result .label:nth-child(even) {
	background-color: #e6e6e6;
}

.report-work-result .label:nth-child(odd) {
	background-color: #ffffff;
}

.report-work-result .scroll {
  width: calc(100vw - 280px);
  overflow-x: auto;
  margin-left: -3px;
}

.report-work-result .inline {
  display: inline-block;
  vertical-align: top;
}

.report-work-result .nowrap {
  white-space: nowrap;
}

.rotate-90 {
    transform: rotate(-90deg);
    /* Legacy vendor prefixes that you probably don't need... */
    /* Safari */
    -webkit-transform: rotate(-90deg);
    /* Firefox */
    -moz-transform: rotate(-90deg);
    /* IE */
    -ms-transform: rotate(-90deg);
    /* Opera */
    -o-transform: rotate(-90deg);
    /* Internet Explorer */
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
    white-space: nowrap;
}
select.bg-calc,
input.bg-calc {
    background: url(../images/bg-calc.png) right 5px center no-repeat;
}
.custom-control-input.bg-calc:checked ~ .custom-control-label::before {
    border-color: #f0dcfa;
    background-color: #f0dcfa;
}
select.bg-calc:required,
input.bg-calc:required {
    background: url(../images/bg-calc.png) right 5px center no-repeat, url(../images/bg-required.png) left top repeat-y;
}

.btn-xs, .btn-group-xs.btn {
    padding: 0.125rem 0.5rem;
    font-size: 0.8203125rem;
    line-height: 1.0;
    border-radius: 0;
}

.paper {
    background: url(../images/bg-paper-2.jpg) left top repeat;
    width: 100%;
    min-height: 300px;
    margin-top: 15px;
    padding: 5px;
    font-size: 12px;
    line-height: 1.2;
}
.paper p {
    margin-bottom: 5px;
}

/*
#address_modal_edit label,
#address_modal_edit input {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
*/

.scrollable-menu {
    height: auto;
    max-height: calc(100vh - 70px);
    overflow-x: hidden;
}

.modal-statement-edit .modal-dialog,
.modal-statement-edit .modal-content {
    height: 655px;
    max-height: calc(100vh - 60px);
}

.modal-statement-edit .modal-body {
    overflow-y: scroll;
}

.modal-statement-edit #statement_salary_payment_employees {
    height: 160px;
    flex: 1 1 auto;
    display: block;
    overflow-y: scroll;
    overflow-x: hidden;
}

.modal-statement-edit #statement_salary_payment_employees tr.not-hover:hover {
    background-color: rgba(0,0,0,0);
}
.modal-statement-edit #statement_salary_payment_employees tr button {
    line-height: 1;
}

#landing_settings .view-image {
    width: 102px;
    height: 102px;
    margin: 3px;
    border: solid 1px lightgray;
    background-color: #f8f8f8;
    position: relative;
}
#landing_settings .view-image img {
    vertical-align: middle;
    border-style: none;
    max-width: 100px;
    max-height: 100px;
    cursor: move;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: default;
}

.modal-osbb_water table td input {
    height: 30px;
    padding-top: 0;
    padding-bottom: 0;
}
.modal-osbb_water .water-sum {
    font-weight: bold;
}
time {
    font-size: 11px;
    font-weight: 400;
    color: #666;
    
    line-height: 11px;
}

.profit__display {
    padding-top: 15px;
    padding-bottom: 5px;
    background-color: #f8f9f9;
}
.profit__display_item_title {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    /*margin-bottom: 5px;*/
    line-height: 1.2!important;
    color: #5f6368;
    word-wrap: break-word;
}
@media only screen and (max-width: 767px) {
    .profit__display_item_title {
        font-weight: 300;
        font-size: 13px;
    }
}
.profit__display_item_value {
    letter-spacing: 0;
    line-height: 1.2!important;
    color: #202124;
    font: 300 26px 'Roboto',sans-serif;
}
@media only screen and (max-width: 767px) {
    .profit__display_item_value {
        font-size: 22px;
        font-weight: 400;
        color: #444;
    }
}

.profit__chart-frame {
    width: 100%; 
    height: 400px; 
    overflow-y: auto; 
    overflow-x: hidden
}
/*
.bold-green-font {
    font-weight: bold;
    color: green;
  }

  .bold-font {
    font-weight: bold;
  }

  .right-text {
    text-align: right;
  }

  .large-font {
    font-size: 15px;
  }

  .italic-darkblue-font {
    font-style: italic;
    color: darkblue;
  }

  .italic-purple-font {
    font-style: italic;
    color: purple;
  }

  .underline-blue-font {
    text-decoration: underline;
    color: blue;
  }

  .gold-border {
    border: 3px solid gold;
  }

  .deeppink-border {
    border: 3px solid deeppink;
  }

  .orange-background {
    background-color: orange;
  }

  .orchid-background {
    background-color: orchid;
  }

  .beige-background {
    background-color: beige;
  }
  */
/*
.input-group-append {
    cursor: pointer;
}
*/

/************  google-visualization-orgchart  ********/
.google-visualization-orgchart-linenode {
    border-color: #999999 !important;
}
.google-visualization-orgchart-node {
    vertical-align: middle;
    font-family: -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    border: 2px solid #b5d9ea;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    background: #ffffff !important;
    border: 1px solid #999999 !important;
    /*line-height: 1.5;*/
}
.google-visualization-orgchart-node a {
    color: #f70000;
    font-weight: 400;
}

.modal_edit_payment {
    display: inline-block;
    vertical-align: super;
}
.modal_edit_create {
    display: inline-block;
}
.modal_edit_create .name {
    font-size: 80%;
    font-weight: 500;
    line-height: 1.2;
    color: #999;
    overflow: hidden;
    white-space: nowrap;
    max-width: 250px;
}
.modal_edit_create .date {
    font-weight: 400;
    font-size: 75%;
    line-height: 1.2;
    color: #aaa;
}
.modal_edit_report {
    display: inline-block;
}

.form_keeping_goods__table td.row,
.form_keeping_goods__table td .row {
    height: 100%;
}

.table.table-sm.form_keeping_goods__table th, 
.table.table-sm.form_keeping_goods__table td {
    padding: 0 0.5rem;
}

.form_keeping_goods__table .border-left {
    border-left: 1px solid #dee2e6;
}
.form_keeping_goods__table .border-top {
    border-top: 1px solid #dee2e6;
}

.form_keeping_goods__table tr th .row div,
.form_keeping_goods__table tr td .row div {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

#x_report .x_report,
#z_report .z_report,
#receipt .receipt {
/*#receipt .receipt pre {*/
    border-collapse: separate;
    text-indent: initial;
    white-space: pre;
    font-size: initial;
    font-family: monospace;
    tab-size: 4;
    border-spacing: 0px;
    
    overflow: auto;
    max-height: 65vh;
}
#receipt .receipt {
    text-align: left;
}
#report-text-small .report {
    border-collapse: separate;
    font-size: initial;
    font-family: monospace;
    tab-size: 4;
    border-spacing: 0px;
    
    overflow-wrap: break-word;
    font-family: inherit;
    font-size: 14px;
    
    overflow: auto;
    max-height: 65vh;
}

@media (min-width: 992px) {
    .modal-64 {
        max-width: 390px;
    }
}

#receipt .receipt pre {
    margin-bottom: 0;
}
#receipt .receipt img {
    width: 263px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.small_fiscal_code {
    font-size: 11px;
    font-weight: 400;
    color: #666;
    line-height: 11px;
}

.excise-group {
    /*background-color: #d9eeee;*/
    padding-left: 5px;
    padding-right: 5px;
}

.word-wrap-anywhere {
    word-wrap: anywhere;
}
.report td .highlight {
    background-color: #ffff00;
}

#contragent_analysis .card-header div {
    line-height: 1;
}
#contragent_analysis .card-body-footer {
    padding: 0.25rem 0;
}
#contragent_analysis .card-body {
    padding: 0.5rem 1.25rem;
}
#contragent_analysis .card-body h4 {
    margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
    #contragent_analysis .form-row.accordion {
        margin-left: -20px;
        margin-right: -20px;
    }
    #contragent_analysis .card-header {
        padding: 0.75rem 0.5rem;
    }
    #contragent_analysis .card-body {
        /*padding: 0.5rem 0.5rem;*/
    }
}

@media only screen and (max-width: 767px) {
    .mobile-width {
        max-width: calc(100vw - 30px);
    }
}

@media only screen and (max-width: 767px) {
    .table.table-sm th, 
    .table.table-sm td {
        padding: 0.3rem 0.25rem;
    }
}


#report-pdf .modal-content {
    height: 92vh
}
#report-pdf .modal-body {
    height: 100%;
}
#report-pdf .modal-body form {
    height: 100%;
}

#report-pdf #iframe_report {
    height: 100%;
    width: 100%;
}

#report-pdf .modal-footer > div {
    min-height: 60px;
}

.seo__letters-counter {
    position: absolute;
    bottom: -17px;
    right: 0;
    padding-right: 15px;
    color: #333;
    font-size: 12px;
}
.seo__letters-counter span {
    font-weight: bold;
}

.invoices legend {
    font-size: 0.85rem;
}
.invoices .balance {
    line-height: 2.5rem;
    font-size: 2rem;
    letter-spacing: 0;
}
@media only screen and (max-width: 767px) {
    .invoices .alert-dismissible {
        padding-right: 1.25rem;
    }
}

.invoices table tr td {
    vertical-align: middle !important;
}
.invoices big {
    font-weight: 500;
}
.invoices small {
    line-height: normal;
}
@media only screen and (max-width: 767px) {
    .invoices big {
        font-size: 0.85rem;
    }
    .invoices .comment {
        font-size: 12px;
        font-weight: 400;
        line-height: normal;
    }
}
.invoices table {
    min-width: 550px;
    overflow-x: auto;
    overflow-y: hidden;
}
.invoices table td strong {
    line-height: 1.5rem;
    font-size: 1rem;
    letter-spacing: .00625em;
    font-weight: 500;
}
@media only screen and (max-width: 767px) {
    .invoices table td strong {
        font-size: 0.85rem;
    }
    .invoices .btn, .btn-group>.btn {
        /*padding: 0.25rem 0;*/
        font-size: 0.8203125rem;
        line-height: 1.5;
        border-radius: 0;
    }
}


.invoices .table-border {
    border: 1px solid #dee2e6;
}

#modal_payment .custom-control {
    padding-top: 9px;
}

#account_payment_2 + #modal_payment button[name=btn_payment] {
    padding: 0;
}

input[name=liqpay_start],
input[name=liqpay_text] {
    /*background-color: transparent;*/
    background-color: #2780E3;
    border-width: 0;
    color: white;
    text-align: center;
    cursor: pointer;
    /*padding: 0;*/
    padding: 0.375rem 0.75rem;
}

#modal_view .total,
#modal_tariff .total {
    font-size: 1.2rem;
}
@media only screen and (max-width: 767px) {
    #modal_tariff .total {
        font-size: 1.0rem;
        font-weight: 500;
    }
}

#modal_view h3 {
    font-weight: 500;
    font-size: 1.0rem;
}

.modal-taxes-edit .bg-primary {
    background-color: #c3dbf7!important;
}
.modal-taxes-edit .bg-warning {
    background-color: #ffd8be!important;
}
.modal-taxes-edit input {
    background-color: white;
}

.icon-csv-24 {
    height: 24px;
}
.icon-csv-20 {
    height: 20px;
}
.icon-csv-18 {
    height: 18px;
}
.icon-csv-16 {
    height: 16px;
}
.icon-csv-14 {
    height: 14px;
}

#modal_catalog_edit select[name=parent_id] option:disabled {
    color: #aaa;
}

.filter .filter-sort {
    position: relative;
}
.filter .filter-sort-btn {
    position: absolute;
    /*content: url('../images/sort-icon.png');*/
    top: 9px;
    bottom: 9px;
    right: 10px;
    cursor: pointer;
    width: 15px;
    height: 21px;
}
.filter select + .filter-sort-btn {
    /*right: 20px;*/
}
.filter .filter-sort-btn[data-v=none] {
    /*background: url(../images/sort-icon.png) no-repeat 0 0;*/
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='silver' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-size: 0.8rem 0.8rem;
    background-repeat: no-repeat;
    background-position-y: center;
}
.filter .filter-sort-btn[data-v=asc] {
    /*background: url(../images/sort-icon-asc.png) no-repeat 0 0;*/
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='black' d='M2 0L0 2h4zm0'/%3E%3C/svg%3E");
    background-size: 0.8rem 0.8rem;
    background-repeat: no-repeat;
    background-position-y: center;
}
.filter .filter-sort-btn[data-v=desc] {
    /*background: url(../images/sort-icon-desc.png) no-repeat 0 0;*/
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='black' d='M2 5L0 3h4z'/%3E%3C/svg%3E");
    background-size: 0.8rem 0.8rem;
    background-repeat: no-repeat;
    background-position-y: center;
}

.filter .filter-sort select.custom-select {
    /*
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='black' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-image: url("data:image/svg+xml,%3cs-imagevg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='black' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
    */
    background-image: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIGZpbGw9J25vbmUnIHZpZXdCb3g9JzAgMCAyMCAyMCc+PHBhdGggc3Ryb2tlPScjNmI3MjgwJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnIHN0cm9rZS13aWR0aD0nMS41JyBkPSdtNiA4IDQgNCA0LTQnLz48L3N2Zz4=);
    background-size: 2em 2em;
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

#sms .modal-body {
    min-height: 300px;
}
#sms .item .modal-content {
    height: 68px;
}

@media (min-width: 768px) {
    #sms-fly .modal-dialog {
        margin-top: 3rem;
    }
}
@media (max-width: 767.98px) {
    #sms-fly .modal-dialog {
        margin-top: 2.0rem;
    }
}

.fast-payment {
    margin: 0!important;
    display: flex;
    gap: 3px;
}
.fast-payment button {
    max-width: 115px;
    padding-left: 7px;
    padding-right: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-primary.btn-outline-primary {
    background-color: transparent;
}

.btn-danger.btn-outline-danger {
    background-color: transparent;
}

