﻿.linked-form {
    width: 100%;
}

    /* small blue text
    to do: make separate block for this type of lable*/
    .linked-form .field-container[data-label-position='Top'] .control-label,
    .linked-form__top_label {
        font-size: 10px;
        line-height: 1;
        margin-bottom: 3px;
        white-space: nowrap;
        color: #428bca;
    }

.linked-form_striped .data-row {
    padding: 0 8px;
}

    .linked-form_striped .data-row:not(:first-child) {
        border-top: solid 1px #F3F3F3;
    }
    /* 
        We need to make strips
        Choose every  visible( :not(.new-row-template)) odd data-row and make it grey
    */
    .linked-form_striped .data-row:not(.new-row-template):nth-child(odd) {
        background-color: #f9f9f9;
    }


.linked-form_flex .data-row {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    padding-right: 20px;
    /*padding-bottom: 20px;*/
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-content: flex-start;
    -ms-flex-line-pack: start;
    align-content: flex-start;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

.linked-form_flex .data-row .box {
    border-right: 1px solid #ddd;
    padding-left: 6px;
    margin-right: 10px;
    margin-top: -1px;
}

.linked-form_flex .data-row .no-box {
    flex: 1; 
    display: flex; 
    flex-wrap: wrap;
}

.linked-form_flex .linked-form__field {
    margin-right: 15px;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.linked-form_flex .field-container {
   /*DEFAULTS. Should be overridden by specific rules*/
    min-width: 100px;
}

.linked-form_flex  .datepicker-control-input-group {
    width: 120px
}

.linked-form_flex .field-container[data-field-type="FieldTypeValidValues"] {
    width: 245px;
}


.linked-form_flex__delete-control {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 35px;
    padding-top: 7px;
    border-left: solid 1px #f3f3f3;
}

    .linked-form_flex__delete-control .checkbox-control {
        padding-left: 8px;
    }

    .linked-form_flex__delete-control .linked-form__top_label {
        font-weight: bold;
        margin-left: -5px;
        padding-bottom: 4px;
    }

.linked-form_flex .fancy-checkbox input[type='checkbox'] + span {
    /*making checkboxes on the the same vertical level*/
    margin-top: -11px;
}

/*TOTALS*/
.linked-form-totals {
    padding-bottom: 10px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.linked-form-totals__total {
    margin-right: 20px;
}

    .linked-form-totals__total:last-child {
        margin-right: 40px;
    }

.linked-form-totals__total_header {
    font-weight: bold;
}
