/* table layout */

#mainContent table.form-type2 td.num {
    text-align: right;
}

#mainContent table.form-type2 td span.input-value {
    display: inline-block;
    line-height: 28px;
    min-height: 28px;
}

#mainContent table.form-type2 tr.subsection td {
    padding-top: 10px;
}

#mainContent table.form-type2 tr:first-child td {
    padding-top: 0;
}

#mainContent table.form-type2 tr td.subhead,
#internalAssignmentsEditorModal table.form-type2 tr td.subhead {
    font-size: 110%;
    font-weight: bold;
    white-space: nowrap;
}

table.form-type2 > tr > td:first-child > span:not(.ckb),
table.form-type2 > tr > td:first-child > label:not(.ckb),
table.form-type2 > tbody > tr > td:first-child > span:not(.ckb),
table.form-type2 > tbody > tr > td:first-child > label:not(.ckb) {
    display: block;
    border-bottom: dotted 2px #f5f5f5;
    padding-right: 5px;
    margin-right: 5px;
}

table.form-type2.key-val > tbody > tr > td:nth-child(2),
table.form-type2 > tbody > tr > td.val > span:not(.ckb),
table.form-type2 > tbody > tr > td.user-val > span:not(.ckb) {
    font-weight: 700;
}

table.form-type2 > tr > td.wide-input-container:first-child > span:not(.ckb),
table.form-type2 > tr > td.wide-input-container:first-child > label:not(.ckb),
table.form-type2 > tbody > tr > td.wide-input-container:first-child > span:not(.ckb),
table.form-type2 > tbody > tr > td.wide-input-container:first-child > label:not(.ckb) {
    border-bottom: none;
    margin-bottom: 2px;
}

#mainContent table.form-type2 > tr.tall td:first-child,
#mainContent table.form-type2 > tbody > tr.tall td:first-child,
#mainContent .playground table.form-type2 > tbody > tr.tall td:first-child,
body table.form-type2 > tr.tall td:first-child,
body table.form-type2 > tbody > tr.tall td:first-child {
    padding-top: 12px;
    vertical-align: top;
}

table.form-type2 td,
#mainContent table.form-type2 td {
    padding: 2px 0;
    vertical-align: middle;
}

    table.form-type2 td input.wide {
        width: 230px;
    }

    table.form-type2 td .error {
        /*display: block; EM: don't make it to be block - or it creates margins */
    }

    table.form-type2 td:first-child input[type=checkbox] + span, table.form-type2 td:first-child input[type=checkbox] + label {
        display: inline;
        border-bottom: none;
    }

    table.form-type2.comfortable td,
    #mainContent table.form-type2.comfortable td{
        padding: var(--half-margin) 0;
    }

    #mainContent section.form .ckb label, #mainContent .form .ckb label,
    #mainContent .form input[type=checkbox] + label {
        color: #000;
    }

#mainContent table.form.form-type2 tr td:first-child label {
    margin-top: 0;
    margin-bottom: 0;
}

/* div layout */

div.form.form-type2 {
}

    div.form.form-type2 .row:not(:last-child) {
        /*margin-bottom: 10px; Evgeny: we don't need this on the franchisee detail page */
        padding: 1px 0;
    }

    div.form.form-type2 .row label {
        display: inline-block;
        margin-top: 5px;
    }

        div.form.form-type2 .row label:first-child {
            border-bottom: dotted 2px #f5f5f5;
            padding-right: 5px;
            margin-right: 5px;
            width: 130px;
            vertical-align: middle;
        }

    div.form.form-type2 .row.wide-input label:first-child {
        border: none;
        margin-bottom: 2px;
    }

    div.form.form-type2 .row .row-note {
        color: #7a7a7a;
        font-size: 85%;
        margin-top: 3px;
        display: block;
    }

    div.form.form-type2 .row.tall label:first-child,
    #mainContent table.form-type2 td.row.tall {
        vertical-align: top;
    }
#mainContent table.form-type2 td.row.tall.input-control {
    padding-top: 6px;
}

    div.form.form-type2 .row input,
    div.form.form-type2 .row select,
    div.form.form-type2 .row textarea {
        vertical-align: top;
    }

    div.form.form-type2 .row .value {
        display: inline-block;
        margin-top: 5px;
        vertical-align: middle;
    }

    div.form.form-type2 .wide-input-container label:first-child {
        display: block;
        border-bottom: none;
        margin-bottom: 3px;
    }

/*#mainContent .playground .form tbody:not(:first-child) tr:first-child td {
    padding-top: 10px;
}*/
