html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 10px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

.log-item-error {
    color: #d70000;
    font-weight: 700;
}

.log-item-warning {
    color: #ae7812;
    font-weight: 700;
}

.log-item-process {
    color: #002bd7;
    font-weight: 700;
}

.log-item-success {
    color: #339d00;
    font-weight: 700;
}

.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
    padding: 1px 5px;
}

.nav > li > a {
    padding: 15px 10px;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}
.line-through{
    text-decoration: line-through;
}
form div.required label.control-label:after {
    content:" * ";
    color:red;
}
.hints{
    color:gray;
    margin-top:-10px;
    margin-bottom: 10px;
}
.top-bordered{
    border-top: 1px solid;
    padding-top: 10px;
}

.preloader{
    width: 64px;
    height: 64px;
    background: url("loading.gif") no-repeat;
    background-size: cover;
}

.block-border{
    border:1px dotted;
    padding:10px;
    border-radius:10px;
    margin:30px 0;
}

.preload{
    display: none;
    position: fixed;
    background-color: rgba(51, 122, 183, .4);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.preload-message{
    position: absolute;
    top: 40%;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 40px;
    text-shadow: 4px 4px 2px rgba(150, 150, 150, 1);
}

.preload-message::after{
    content: '';
    display: block;
    position: absolute;
    bottom: -90px;
    left: 50%;
    width: 80px;
    height: 80px;
    margin-left: -40px;
    background: url(loading.gif) no-repeat center;
    background-size: cover;
}

.notificationAlert{
    color: #EC0300!important;
}

.notificationAlert a{
    color: #EC0300!important;
}

@media (max-width: 1600px) and (min-width: 1200px) {
    .navbar-header{
        display: none;
    }
}


.green{
    color: #5CB85C;
}


.bill-action-buttons{
    width: 50px;
    font-size: 0;
}

.bill-action-buttons a{
    display: inline-block;
    width: 50%;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 17px;
}

.billProvider-delete{
    color: #EC0300;
    font-size: 10px;
    margin-left: 5px;
}

.table > tbody > tr > td.bill-product__fill-format-container {
    border: 0;
    padding: 0 11px 5px;
}

.table-gtd {
    border-radius: 4px;
    margin-bottom: 0;
}

.table-gtd > tbody > tr > td {
    border-top: 0;
}

table.table.table-gtd tr:not(:last-child):nth-child(2n) {
    border-bottom: 1px solid #b7b7b7;
}

/* на узких экранах поставщик переносится на вторую строку, а не сжимается в ноль */
.gtd-row-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 5px
}

.gtd-row-1 .gtd-cnt,
.gtd-row-1 .gtd-country-code {
    flex: 0 0 73px;
}

.gtd-row-1 .gtd-country-name {
    flex: 1 1 90px;
    min-width: 90px;
}

.gtd-row-1 .gtd-providerId {
    flex: 1 1 110px;
    min-width: 110px;
}

.bill-product__fill-format {
    width: 238px;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    height: 39px;
}

.bill-product__fill-format.is-valid {
    color: #28a745;
}

.bill-product__fill-format.is-invalid {
    color: #dc3545;
}

.bill-product__fill-format label {
    margin: 0;
}

.bill-product__fill-format input {
    margin: 0 0 3px;
    vertical-align: bottom;
}

.ui-autocomplete {
    z-index: 10002;
}

.product-row-delivery-info{
    color: #EC0300;
    font-size: 12px;
}
.bill-provider-status {
    margin: 10px 0;
}
#dynamicModal .modal-body{
    max-height: 600px;
    overflow-y: auto;
}
.multiple-input-list  > tbody > tr:nth-of-type(2n+1) {
    background-color: #f9f9f9;
}
.required-field {
    content: " * ";
    color: red;
    display: inline-block;
    float: right;
    margin-left: 5px;
}
.required-field:before{
    content: " ";
    clear: both;
}
.required-field + .form-control {
    width: 85%;
}

.partial-quantity-input {
    margin-top: 1px;
    height: 18px;
    padding: 0 12px;
}

.partial-quantity-input:not(:last-child) {
    margin-bottom: 1px;
}

.notifications-buttons {
    display: flex;
}

.notifications-buttons .btn {
    flex: 1;
}

input[type="checkbox"].checkbox-pay-bill {
    width: 14px;
    height: 14px;
    margin: 0 5px 0 6px;
    line-height: 17px;
    vertical-align: bottom;
}

.formtitles
{
	font-weight:bold;
}

.billcodes
{
	margin-top:5px;
}

.bill-form-row {
    display: flex;
}

.bill-form-row div:first-child {
    padding-left: 0;
}

.bill-form-row div:last-child {
    padding-right: 0;
}

.popover {
    position: fixed;
    max-height: 500px;
    max-width: 400px;
}

.popover.right {
    overflow-y: auto;
}

.billProduct-providerId-label {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.billProduct-providerId {
    font-weight: 400;
}

.billProduct-unitId-label {
    margin-top: 18px;
}

.product-table-sum {
    white-space: nowrap;
}

.bill-price-table__percent-input-cell {
    vertical-align: top;
}

.bill-price-table__percent-input-container {
    width: 85px
}

.bill-price-table td {
    white-space: nowrap;
    padding-right: 10px;
    padding-bottom: 3px;
}

.bill-price-table__default-text {
    color: #EC0300;
    font-size: 12px;
}

.bill-price-table__none {
    color: #EC0300;
    white-space: nowrap;
}

.bill-price-table__row_selectable {
    cursor: pointer;
}

.bill-price-table__row_selectable:hover .bill-price-table__title,
.bill-price-table__row_selectable:hover .bill-price-table__price {
    text-decoration: underline;
}

.bill-price-table__row_active .bill-price-table__title,
.bill-price-table__row_active .bill-price-table__price {
    font-weight: 700;
}

/* height: 1px не влияет на высоту ячейки - она тянется по строке,
   но дает опору для height: 100% внутреннего блока */
.table > tbody > tr > td.billProduct-actions {
    height: 1px;
}

.billProduct-actions__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.btn-gtd-add {
    margin-top: auto;
    font-weight: 700;
}

.btn-gtd-add:active:focus,
.btn-gtd-add:active,
.btn-gtd-add:focus {
    outline: none;
}

.billProduct-pricelist {
    margin-top: 6px;
}

.billProduct-pricelist {
    white-space: nowrap;
}

.modal-dialog-product-search {
    min-width: 900px;
    max-width: 1400px;
}

.product-search-result {
    table-layout: fixed;
}

.product-search-result tr td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Пока в модалке есть найденные товары, закрыть ее можно только выбором товара */
#modal-search-product.modal-locked .modal-header .close {
    display: none;
}

.pricelist-view .btn-toolbar {
    display: flex;
    gap: 5px;
}