/*
    Created on : Mar 18, 2016, 8:26:44 PM
    Author     : Vladimir A. Pshenkin <vladimir at pshenkin.net>
*/

.DC2_Form input[type="text"] {
    width:100%;
    padding: .2em;
    font-size: 1.1em;
}

.DC2_Form textarea {
    width:100%;
    padding: .3em;
    font-size: 1.3em;
    min-height:5em;
}

/*
span.DC2Required:after {
    color: #dc143c;
    content: "*";
    font-weight: bold;
    padding-left: 0.2em;
    position: relative;
    text-align: right;
    top: -0.4em;
    font-size: 110%;
}
 */

.DC2_Form select {
    margin: 3px 5px 3px 0;
    width: 100%;
}

.DC2_Form input[type="button"],
.DC2_Form input[type="submit"],
.DC2_Form input[type="reset"],
.DC2_Form select,
.DC2_Form input[type="checkbox"],
.DC2_Form input[type="file"]
{
    font-size: 1.1em;
}

.DC2_Form input[type="file"]
{
    font-size: 1em;
}


.centered {
    text-align:center;
}

.DC2FormsDialogTable {
    width:100%;
    margin:2rem 0;
}

.DC2FormsHidden {
    display: none!important;
}
.DC2FormsInline {
    display: block;
}

.DC2FormsFieldSet {
    margin: 0;
    width:100%;
    padding: 7px;
}

.DC2FormsFieldSet:nth-child(odd) {background: #f7f7f7;}
/* .DC2FormsFieldSet:nth-child(even) {background: #ffffff;} */

.DC2FormsFieldSet:hover { background-color: #e8e8e8; }

.DC2FormsLabelColumn {
    width: 15%;
    padding: 0 1rem 0 0;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.DC2FormsDataColumn {
    width: 85%;
    padding: 0;
    margin: 0;
    display: inline-flex;
    vertical-align: middle;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
}

.DC2FormsDataColumn span.dc2input,
.DC2FormsDataColumn span.dc2input:hover,
.DC2FormsDataColumn li,
.DC2FormsDataColumn li:hover{
    /*padding: 0 5px 0 0;
    margin: 3px 0;*/
    height: unset;
    border: 1px solid transparent;
    background-color: inherit;
    color: inherit;
    list-style: none;
}

.DC2FormFieldHeader {
    margin-bottom: .5rem;
}

.DC2FormFieldFooter {
    margin-top: .5rem;
}

.DC2FormsSubmitControls {
    padding: 1em 0;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-flow: row wrap;
}

.DC2_DateBox {
    display: inline-block;
}

.DC2FormsSubmitControls input {
    margin: 0 .5em;
}

.DC2Forms_ErrorField{
    border: 1px solid crimson;  
}

.DC2Forms_ErrorBox {
    padding: 7px;
    margin: -9px 7px 0 7px;
    width: 100%;
    border: 3px solid crimson;
    border-radius: 0 0 7px 7px;
    background-color: #fff;
}


.DC2FormsControlsColumn {
    width: 5%;
}

.DC2FormsAddRow {
    text-align: left;
}

.DC2FormsRemoveRow {
    text-align: center;
}

.DC2FormsDataColumn table {
    border-collapse: collapse;
    width:100%;

}

.DC2FormsDataColumn table th{
    text-align: left;
}

.DC2FormsDataColumn table td,
.DC2FormsDataColumn table th
{
    padding: .3em;
}

.TextButtonPlus{
    color: #00A000 !important;
    font-size: 1.3em !important;
    font-weight: bold !important;
    content: '+';
}

.TextButtonMinus{
    color: crimson !important;
    font-size: 1.3em !important;
    font-weight: bold !important;
    content: '-';
}


.Tokenize ul.TokensContainer li.Token span span.TokenDescription {
    display:none;
}


.dc2grid,
.tbl {
    display: table;
    width: 100%;
}

.tr {
    display: table-row;
}
.td {
    display: table-cell;
    padding: .2em;
    vertical-align: top;
}
.th {
    text-align: center;
    font-weight: bold;
    padding: .2em;
    vertical-align: top;
}

.feildname {
    display:none;
}

.dc2grid .tr:first-child {
    display: table-row;
}

.dc2grid .title {
    display:none;
}


.DC2FormsSubmitControls .g-recaptcha {
    flex-basis: 25%;
}

.DC2FormsSubmitControls input {
    flex-basis: 25%;
}

@media screen and (max-width:760px) {
    .DC2FormsFieldSet {
        display: block;
    }

    .DC2FormsLabelColumn {
        width: 100%!important;
        padding: 0 0 .3em 0;
    }

    .DC2FormsDataColumn {
        width: 100%!important;
        float: none;
        padding:  0;
    }

    .DC2FormsSubmitControls .g-recaptcha {
        flex-basis: 100%!important;
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
    }

    .DC2FormsSubmitControls input {
        flex-basis: 45%;
        margin:.5em;
    }

    .feildname {
        display:block;
    }

    .dc2grid .tr:first-child {
        display: none;
    }

    .dc2grid .title,
    .dc2grid .td,
    .dc2grid .th
    {
        display:block;
    }
}