.ap_form input[type="text"],
.ap_form input[type="password"],
.ap_form input[type="datetime"],
.ap_form input[type="datetime-local"],
.ap_form input[type="date"],
.ap_form input[type="month"],
.ap_form input[type="time"],
.ap_form input[type="week"],
.ap_form input[type="number"],
.ap_form input[type="email"],
.ap_form input[type="url"],
.ap_form input[type="search"],
.ap_form input[type="tel"],
.ap_form input[type="color"],
.ap_form select,
.ap_form textarea {
    margin-right:       2px;
    background:         #FFF;
    box-sizing:         border-box;
    height: auto;
    line-height: 120%;

    -moz-border-radius:		4px !important;
    -webkit-border-radius:	4px !important;
    border-radius:			4px !important;

    width:100%;
    font-size: 12px;
}

.ap_form select {
    height: 25px !important;
    padding: 3px 10px;
}

@media only screen and (max-width: 640px) {
    .ap_form input[type="text"],
    .ap_form input[type="password"],
    .ap_form input[type="datetime"],
    .ap_form input[type="datetime-local"],
    .ap_form input[type="date"],
    .ap_form input[type="month"],
    .ap_form input[type="time"],
    .ap_form input[type="week"],
    .ap_form input[type="number"],
    .ap_form input[type="email"],
    .ap_form input[type="url"],
    .ap_form input[type="search"],
    .ap_form input[type="tel"],
    .ap_form input[type="color"],
    .ap_form select,
    .ap_form textarea {
        font-size: 14px;
    }
}


.ap_form input::-webkit-input-placeholder {
    color: #AAA;
    font-size: 11px;
}
.ap_form input:-moz-placeholder {
    color: #AAA;
    font-size: 11px;
}

.ap_form  {
    width:100%;
}

.ap_form td, .ap_form th {
    vertical-align: top;
}

.ap_form td.ap_fbl_line {
    padding: 0;
    height: 0;
    border-bottom:#DDD solid 1px;
}

.ap_form tr.ap_fbl_start:hover {
    background: none;
}

.ap_form tr.ap_fbl_start td {
    padding-top: 20px;
    padding-bottom: 2px;
    border-bottom:#DDD solid 1px;
}

.ap_form tr.ap_fbl_start td div.ap_fbl_title {
    font-weight: bold;
    font-size: 1em;
    color: #666;
}

.ap_form tr.ap_fbl_start td div.ap_fbl_descr {
    padding: 2px 0 5px 0;
    font-size: 0.9em;
    color: #666;
}

table.table > tbody > tr > td > div > h4 {
    font-size: 13px;
    color: #333;
    opacity: 1;
    font-weight: normal;
    font-family: Arial, sans-serif;
    padding: 3px 0px;
}

table.table > tbody > tr > td > div > h4 a {
    margin-left: 5px;
}

img.ap_form_logo {
    float: left;
    margin-right: 20px;
    margin-bottom: 5px;
}

div.ap_form_title{
    line-height: 36px;
    font-size: 22px;
    margin-bottom: 5px;
    width: 100%;
}

div.ap_form_descr{
    color: #777;
    padding: 0 5px 0 5px;
    margin-bottom: 15px;
    margin-left: 10px;
}

div.ap_f_errdiv {
    margin:5px 0 5px 0;
    padding:7px 10px 7px 10px;

    background: #FBE1B3;

    line-height:24px;
    font-size:110%;

    border: 1px solid #EC9;
    border-right: 4px #DD4B39;
    border-left: 4px #DD4B39;

    -moz-border-radius:       2px;
    -webkit-border-radius:    2px;
    border-radius:            2px;
}

div.ap_f_sucdiv {
    margin:5px 0 5px 0;
    padding:7px 10px 7px 10px;

    background: #CBE2B4;

    line-height:24px;
    font-size:110%;

    border: 1px solid #AED28A;
    border-right: 4px #85B94A;
    border-left: 4px #85B94A;

    -moz-border-radius:        2px;
    -webkit-border-radius:    2px;
    border-radius:            2px;
}

div.ap_f_errdiv > img.ap_f_msgimg, div.ap_f_sucdiv > img.ap_f_msgimg {
    float:left;
    position:relative;
    margin: 0 10px 3px 0;
}

.ap_form > tbody > tr > td {
    padding:10px;
    border-bottom:#F8F8F8 solid 1px;
}

.ap_form > tbody > tr:hover {
    background:#F7F7F7;
}

.ap_form td.ap_fc1{
    width:2%;
    min-width:130px;
    white-space:nowrap;
    color:#666;
    padding-left:20px;
    text-align: right;
}

.ap_form td.ap_fc2{
    text-align:left;
    padding-top:8px;
    padding-bottom:8px;
    min-width:210px;
    width: 300px;
    color: #333;
}

.ap_form td.ap_fc3{
    text-align:left;
    width:48%;
    color:#777;
    padding-left:15px;
    min-width:200px;
    font-size: 11px;
}

.ap_form div.respLabel{
    display: none;
}

.ap_form div.respComment{
    display: none;
}

.ap_form tr.ap_ftrbtn input.btn {
    margin-bottom: 10px;
}

@media only screen and (max-width: 720px) {
    .ap_form td.ap_fc1{
        width:2%;
        min-width:130px;
        white-space:nowrap;
        color:#444;
        padding-left:20px;
        text-align: right;
    }

    .ap_form td.ap_fc3{
        display: none;
    }

    .ap_form div.respComment{
        display: block;
    }
}

@media only screen and (max-width: 640px) {
    .ap_form td.ap_fc1{
        display: none;
    }

    .ap_form div.respLabel{
        display: block;
        padding-bottom: 7px;
        color: #888;
        font-weight: bold;
        font-size: 11px;
    }
}

.ap_form td.ap_fc2 div.ap_fcmnt {
    color:#777;
    padding-top:7px;
    font-size: 11px;
}

.ap_form td.ap_fc2 select {
    width: auto;
}

.ap_form label {
    width:170px;
    padding:5px 4px 5px 4px;
    margin-bottom:2px;
    margin-right:10px;
    display:block;
    float:left;
    line-height: 100%;
}

.ap_form label:hover {
    background:#FBFBFB;
    padding:4px 3px 4px 3px;
    border:#E5E5E5 solid 1px;

    -moz-border-radius:		4px !important;
    -webkit-border-radius:	4px !important;
    border-radius:			4px !important;
}

.ap_form label input {
    float:left;
    margin-right:5px;
}

.ap_form label.ap_f_one_label {
    width:auto;
}

.ap_form label.ap_f_one_label input {
    margin-right:0;
}


.ap_form tr.ap_ftrbtn td {
    border: 0;
    padding: 12px;
}

.ap_form tr.ap_ftrbtn td:first-child {
    width: 2%;
}

.ap_form tr.ap_ftrbtn td:last-child {
    width: 85%;
}

.ap_form tr.ap_ftrbtn td div.ap_btns_box{
}

.ap_form > tbody > tr.ap_ftrbtn:hover {
    background:inherit;
}

.ap_form tr.ap_error_tr{
    background:#FCF6CF;
    border-left:#DD4B39 solid 2px;
    border-right:#DD4B39 solid 2px;
}

.ap_form > tbody > tr.ap_error_tr > td {
    border-bottom:#F9E8B7 solid 1px;
}

.ap_form > tbody > tr.ap_error_tr:hover {
    background:#FFEEBB;
}

.ap_form div.ap_error_node{
    clear:both;
    padding-top:5px;
    color:#DD4B39;
}

input.ap_error_input, select.ap_error_input, textarea.ap_error_input{
    border:#DD4B39 solid 1px;
}

div.ap_error_tinymce_div > span.mceEditor > table.mceLayout {
    border:0;
}

div.ap_error_tinymce_div > span.mceEditor > table.mceLayout > tbody > tr.mceFirst > td {
    border-color:#C76;
}

div.ap_error_tinymce_div > span.mceEditor > table.mceLayout > tbody > tr.mceLast > td {
    border-bottom-color: #C76;
    border-left-color:	 #C76;
    border-right-color:	 #C76;
}

/* ligths table */
.ap_form_ligths{
    width:100%;
}

.ap_form_ligths td{
    padding:0 7px 0 0;
    border:0;
    white-space:nowrap;
    line-height:28px;
    color:#444;
    vertical-align: top;
}

.ap_form_ligths td input,
.ap_form_ligths td select{
    width: auto;
}

.ap_form_ligths td:last-child{
    padding-right: 0;
}


/*
@media only screen and (min-width: 0px) {
    .form_filter_block {clear: none; width: 100%}
    .form_filter_block0, .form_filter_block1, .form_filter_block2, .form_filter_block3, .form_filter_block4, .form_filter_block5, .form_filter_block6, .form_filter_block7, .form_filter_block8, .form_filter_block9, .form_filter_block10, .form_filter_block11,{
        clear: both;
    }
}
*/

.ap_form div.form_filter_block.ap_error_tr  input[type=text].ap_error_input {
    background: #efcfcf;
}

@media only screen and (min-width: 0px/*600px*/) {
    .form_filter_block {clear: none; width: 50%}
    .form_filter_block0, .form_filter_block2, .form_filter_block4, .form_filter_block6, .form_filter_block8, .form_filter_block10{
        clear: both;
    }
}

@media only screen and (min-width: 1200px) {
    .form_filter_block {clear: none; width: 33%}
    .form_filter_block0, .form_filter_block3, .form_filter_block6, .form_filter_block9{
        clear: both;
    }
}

@media only screen and (min-width: 1600px) {
    .form_filter_block {clear: none; width: 25%}
    .form_filter_block0, .form_filter_block4, .form_filter_block8{
        clear: both;
    }
}

.ap_form .form_filter_block input[type=text],
.ap_form .form_filter_block input[type=password],
.ap_form .form_filter_block input[type=number],
.ap_form .form_filter_block input[type=file],
.ap_form .form_filter_block select,
.ap_form .form_filter_block textarea {
    -moz-border-radius:		0 !important;
    -webkit-border-radius:	0 !important;
    border-radius:			0 !important;

    min-height: 32px;
}

.ap_form .form_filter_block .select2-choices input[type=text] {
    min-height: 28px;
}

.smart-style-3 input, .smart-style-3 textarea, .bootstrap-tagsinput {
    border-top-color: #ccc !important;
    border-left-color: #ccc !important;
}