/*!
 * CSS classes fjr order calculator
 */
body {
    background-color: #5a7380;
}


#order_num_cnt {
    padding: 15px;
    color: white;
}

#page_title_cnt {
    width: 1024px;
    horiz-align: center;
    text-align: center;
    padding: 1em;
    color: white;
}

#order_form_cnt {
    padding-bottom: 30px;
}

#delivery, #add_expenses, #others, #total_cost_cnt {
    margin-top: 10px;
}

label, h3 {
    margin-bottom: .1rem;
}

.inner-form-cnt {
    width: 1024px;
    /*min-height: 29.7cm;*/
    padding: 17px;
    /*margin: 1cm auto;*/
    border: 1px #D3D3D3 solid;
    border-radius: 5px;
    background: #e9ecef;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

#dlg_full_address {
    width: 30em;
}

.order-list-cnt, .inner-page-cnt {
    width: 1024px;
    padding: 17px;
    border: 1px #D3D3D3 solid;
    border-radius: 5px;
    background: whitesmoke;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.order-list {

}

.order-list table td, .order-list table th {
    padding: 0.25em;
    font-size: .9rem;
}

.order-list table tr.flag-measure-check td {
    background-color: #ffeb3b70;
}

.order-list table.table-striped tbody tr.order-measurer-salary-line:hover {
    background: rgba(0, 0, 0, .2);
}

.order-list table tr.order-measurer-salary-line.checked {
    background: rgba(255,255, 0, .2);
}

.order-list th:first-child, .order-list td:first-child {
    width: 65px;
}

.order-list th:last-child, .order-list td:last-child {
    text-align: center;
}


.order-list th.order-number, .order-list td.order-number {
    width: 65px;
    text-align: left;
}
.order-list th.client-name, .order-list td.client-name {
    text-align: left;
}
.order-list th.order-short-desc, .order-list td.order-short-desc {
    text-align: left;
}

.order-list th.fence-length { text-align: center; }
.order-list td.fence-length { text-align: right; }

.order-list th.client-price { text-align: center; }
.order-list td.client-price { text-align: right; }

.order-list th.responsible-person { text-align: center; }
.order-list td.responsible-person { text-align: right; }

.order-list th.event-datetime { text-align: center; }
.order-list td.event-datetime { text-align: center; }
.order-list td.event-datetime div.step-notice { font-size: 9pt; font-style: italic; line-height: 1.2; }

.order-list th.event-status { text-align: center; width: 2em; }
.order-list td.event-status { text-align: center; width: 2em; }

.order-list table td.list-group-date {
    text-align: left;
    padding-top: .5em;
    background-color: white;
    border-bottom: 1px solid gray;
    font: 12pt bold;
}

a.number-link {
    font-size: 9.5pt;
}

a.contract-link {
    font-size: 8pt;
}

.order-address-cnt {
    max-width: 30.4em;
}

.order-address-addition-cnt {
    max-width: 12em;
}

.ord-date-start {
    max-width: 10em;
}

.ord-date-end {
    max-width: 10em;
}

.ord-status {
    max-width: 10em;
}

.ord-search-button {
    max-width: 10em;
}

.ord-number {
    max-width: 12em;
}

.ord-number-search-button {
    max-width: 8em;
}

.dash-menu {

}

.dash-menu .col {
    margin: 10px;
}

.left-side-nav {
    position: fixed;
    z-index: 1;
    top: 1.9em;
    left: 0;
    overflow-x: hidden;
    /*padding: 5px 0 5px 15px;*/
    /*border: 1px #D3D3D3 solid;*/
    /*border-radius: 5px;*/
    /*-webkit-border-radius: 5px;*/
    /*-moz-border-radius: 5px;*/
    /*background: cornflowerblue;*/
    /*box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);*/
}

#left_side_nav {
    width: 160px;
    padding: 5px 0 5px 15px;
    border: 1px #D3D3D3 solid;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    background: #dddddd;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: black;
}

.navbar {
    border: 1px #D3D3D3 solid;
    max-width: 58px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    background: #e9ecef;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.navbar-toggler {
    padding: 1px 1px !important;
}

.navbar-toggler-icon {
    width: 20px !important;
    height: 10px !important;;
}

li.nav-item .nav-link {
    display: block;
    padding: .3rem .1rem;
}

li.nav-item .nav-link.active, li.nav-item .nav-link:hover {
    font-weight: bolder;
}

li.nav-item ul {
    display: block;
    padding: 0 0 0 1.5em;
}

.fc-gate-cnt {
    padding-top: 5px;
}

.common-fence-cnt, .fc-decking-cnt, .fc-picket-cnt, .fc-steel-web-cnt, .fc-section-cnt, .fc-3d-fence-cnt {
    margin-top: 15px;
}

#delivery {
    border-top: 1px solid lightgray;
}

.common-fence-cnt {
    border-top: 1px solid lightgray;
}

.common-gate-cnt, .common-sliding-gate-cnt, .common-wicket-cnt {
    padding: 5px;
    margin: 5px;
    border: 1px #D3D3D3 solid;
    background-color: #dae0e5;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.accounting-order {
    margin-top: 1em;
    background-color: white;
}

.gate-list, .wicket-list {
    margin-left: 3em;
}

.fence-list-control, .opening-list-control {
    padding: 0 5px 0 5px;
    margin-top: 5px;
}

.fence-list-control > BUTTON, .opening-list-control > BUTTON {
    width: 180px;
}

.col.fc-total-length { max-width: 8em; }
.col.fc-height { max-width: 8em; }
.col.fc-pillar-info {
    min-width: 18em;
    font-size: small;
    /*border: 1px solid silver;*/
    /*background-color: #5897fb;*/
}
.col.fc-sheathing-price { max-width: 8em; text-align: right; }
.col.fc-sheathing-type { max-width: 25em; }

.fence-pillar-variant {
    /*max-width: 200px;*/
    max-width: 12em;
}

.fence-recess { max-width: 7.2em; }
.fence-ramming { max-width: 8em; }
.fence-client-pillar { max-width: 9.7em; }
.fence-lags { max-width: 5.7em; }
.fence-p-plank { max-width: 7.2em; }
.fence-slope { max-width: 6.2em; }
.fence-no-sheathing { max-width: 10.2em; }
.fence-painting { max-width: 11.4em; }

.col.fc-decking-type { max-width: 7em; }
.col.fc-decking-cover { max-width: 11em; }
.col.fc-decking-thickness { max-width: 8em; }
.col.mt-decking { max-width: 26em; }
.col.decking-color-cnt { max-width: 17em; }
.col.featured-decking-ral { max-width: 9em; }

.col.fc-picket-type { max-width: 10em; }
.col.fc-picket-cover { max-width: 11em; }
.col.fc-picket-thickness { max-width: 8em; }
.col.mt-picket { max-width: 28.5em; }
.col.fc-picket-gap { max-width: 10em; }
.col.fc-picketing-variant { max-width: 11em; }
.col.picket-color-cnt { max-width: 17em; }
.col.featured-picket-ral { max-width: 9em; }


.col.fc-panel-rod-thickness { max-width: 10em; }
.col.fc-panel-is-galvanized { max-width: fit-content; padding-left: 2em; padding-top: 1.8em; }
.col.panel-color-cnt { max-width: 17em; }
.col.featured-panel-ral { max-width: 9em; }
.col.featured-panel-ral label { font-size: .8rem; }

span.fence-mat-notice {
    color: darkred;
    font-size: 10pt;
}

.color-box {
    width: 35px;
    height: 31px;
    border: 2px solid gray;
    cursor: pointer;
    display: inline-block;
    border-radius: .25rem;
}

.color-box:hover {
    opacity: 0.5;
    cursor: pointer;
}

.color-box.active {
    border: 2px solid blue;
}

.color-box.gray {
    background-color: gray;
}
.color-box.red-brown {
    background-color: brown;
}
.color-box.brown {
    background-color: saddlebrown;
}
.color-box.green {
    background-color: darkgreen;
}
.color-box.burgundy {
    background-color: darkred;
}
.color-box.graphite {
    background-color: #454950;
}

.color-box.RAL7004 {
    background-color: #A9A9A9;
}
.color-box.RAL8017 {
    background-color: #431402;
}
.color-box.RAL6005 {
    background-color: #003425;
}
.color-box.RAL3005 {
    background-color: #751C00;
}
.color-box.RAL5005 {
    background-color: #3B3F80;
}
.color-box.RAL7024 {
    background-color: #454950;
}

.btn.btn-secondary.fc-sheathing-type-label.active {
    background: #FF5050;
}

.common-order-line-cnt {
    border-top: 1px #D3D3D3 solid;
    margin-top: .3em;
    background-color: #dae0e5;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    padding-right: 15px;
    padding-left: 15px;
}

.common-order-line-cnt {
    margin-left: 1.5em;
    padding-left: 1.2em;
    padding-bottom: .2em;
}

.common-order-line-cnt .col {
    padding: .3em .3em 0 0;
}

.order-line-name {
    max-width: 18em;
}

.order-line-amount {
    max-width: 4.2em;
}

.order-line-units {
    max-width: 6em;
}

.order-line-price {
    max-width: 7em;
}

.order-line-total {
    max-width: 7em;
}

.order-line-client-show {
    max-width: 18em;
    padding-top: .5em;
}

.order-line-net-price, .order-line-assembly-price {
    max-width: 9em;
    margin-top: -.2rem;
}

.order-line-net-price label, .order-line-assembly-price label {
    font-size: .8rem;
    margin-top: -0.5rem;
}

.delivery-direction {
    max-width: 15em;
}

.mkad-distance {
    max-width: 8em;
}

.delivery-count {
    max-width: 6.3em;
}

.manual-entered-price {
    max-width: 15em;
}

.discount {
    max-width: 14em;
}

.deposit {
    max-width: 14em;
}

/* Распашные ворота */
.gt-width { max-width: 10em; }
.gt-buckle { max-width: 10em; }
.gt-opening-direction { max-width: 10em; }
.gt-checks-cnt { max-width: 15em; padding-top: .5em; }
.wc-embed-spacer { min-width: 30em; }
.wc-wing-side { max-width: 10em; }

/* Откатные ворота */
.gt-height { max-width: 10em; }
.gt-base { max-width: 10em; }
.gt-automatics { max-width: 10em; }
.gt-sl-checks-cnt { max-width: 23em; padding-top: .1em; }
.gt-slide-direction { max-width: 10em; }

/* Калитка */
.wc-width { max-width: 10em; }
.wc-buckle { max-width: 10em; }
.wc-gate-close { max-width: 10em; }
.wc-lock-type { max-width: 10em; }
.wc-opening-direction { max-width: 10em; }
.wc-hinge-side { max-width: 10em; }
.wc-is-framed { max-width: 15em; padding-top: .2em; }

/* Картинки и фото к заказу */
#order_image_list {
    margin-top: .2em;
}

#order_image_list img {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border: 1px solid gray;
    overflow: hidden;
}

#order_image_list img:hover {
    opacity: 0.5;
    cursor: pointer;
}

/* Комментарии к заказам */
div.comment-item-cnt {
    padding: .2em;
    margin-bottom: .3em;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border: 1px solid gray;
    background-color: floralwhite;
    text-align: left;
}

div.comment-item-cnt .title {
    margin-top: -.5em;
    color: #1c94c4;
    font-size: 8pt;
}

div.comment-item-cnt .text {
    color: gray;
    font-size: 10pt;
}

/* Напоминалки к заказам */

div.reminder-item-cnt {
    padding: .2em;
    margin-bottom: .3em;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border: 2px solid gray;
    background-color: floralwhite;
    text-align: left;
}

div.reminder-item-cnt.revision {
    border-color: #FFC107;
}

div.reminder-item-cnt.problem {
    border-color: #DC3545;
}

div.reminder-item-cnt .title {
    float: left;
    margin-top: -.5em;
    color: #1c94c4;
    font-size: 8pt;
}

div.reminder-item-cnt .info {
    float: right;
    margin-top: -.5em;
    color: darkslategray;
    font-size: 8pt;
}

div.reminder-item-cnt .text {
    color: gray;
    font-size: 10pt;
}

div.reminder-item-cnt .btn-toolbar {
    max-width: fit-content;
}

div.reminder-item-cnt .btn-toolbar button {
    height: fit-content;
}

div.reminder-item-cnt .btn-toolbar button {
    padding: 0.05rem 0.2rem;
}

tr.reminder-row td.revision {
    color: #FFC107;
}

tr.reminder-row td.problem {
    color: #DC3545;
}

/* заработная плата */
.salary-block {

}
.salary-block table {
    width: 100%;
}
.salary-block table td:nth-child(2) {
    text-align: right;
}
.salary-block table td:last-child {
    text-align: right;
}
.salary-block .salary-head {
    border-bottom: 1px solid #9e9e9e;
}
.salary-block .salary-foot {
    border-top: 1px solid gray;
    background-color: beige;
}

/* Список дней для назначения */
.assign_day_list {
    padding-top: 3px;
    margin-top: 3px;
    border-top: 1px solid #dee2e6;
}

.assign_day_list div.row {
    margin: 2px;
    padding: 2px;
}

.assign_day_list div.row:hover {
    opacity: 0.5;
    cursor: pointer;
}

.assign_day_list div.row.active {
    border: 2px solid blue;
    margin: 0;
}

.assign_day_list div.row:nth-of-type(odd) {
    background-color: rgba(0,0,0,.05);
}

.assign_day_list div.row div.col:first-child {
    max-width: 2em;
}

/* Order details */
.measurer-selector {
    max-width: 15em;
}

.adjuster-selector {
    max-width: 15em;
}

.work-day-count {

}

/* Calculation table */
.calculation_table {
    width: 100%;
    border: 1px solid black;
    padding: 10px;
    border-collapse: collapse;
}

.calculation_table tr th {
    border: 1px solid black;
    padding: 3px;
    border-collapse: collapse;
    background-color: lightgray;
    text-align: center;
}

.calculation_table th:first-child {
    width: 25px;
}

.calculation_table tr td {
    border: 1px solid black;
    padding: 3px;
    border-collapse: collapse;
    text-align: center;
}

.calculation_table tr td:first-child {
    text-align: right;
}

.calculation_table tr td:nth-child(2) {
    text-align: left;
}

.calculation_table tr th:nth-child(3) {
    width: 4em;
}

.calculation_table tr th:nth-child(4) {
    width: 4.5em;
}

@media only screen and (max-width: 1200px) {
    body {
        background-color: lightblue;
    }
    .order-list-cnt, .inner-page-cnt {
        width: 100%;
        max-width: 1200px;
        min-width: 800px;
    }
}


/* Order status images */
i.fas.fa-phone {
    color: darkblue;
}

i.far.fa-eye {
    color: #007BFF;
}

i.fas.fa-cog.production {
    color: black;
}

i.fas.fa-cog.assembly {
    color: #FFC107;
}

i.fas.ord-status.fa-lightbulb {
    color: #FF9800;
}

i.fas.fa-cogs {
    color: darkblue;
}

i.fas.fa-check-circle {
    color: #FFC107;
}

i.fas.fa-plus-circle {
    color: #28A745;
}

i.fas.fa-minus-circle {
    color: #DC3545;
}

i.far.fa-file-alt {
    color: darkblue;
}