.mte-form-panel {
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 10px; /*чтобы кнопки внизу не налезали на границу. см. вкладку для док-тов без документов*/
}

.mte-form-panel legend {
    color: #428bca;
    line-height: 30px;
    margin: 0;
    border: none;
}

.mte-form-panel fieldset > fieldset {
    border-bottom: 1px solid #dddddd;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.mte-form-panel fieldset fieldset:last-of-type {
    border: none;
}

.mte-form-panel .request-signature {
    display: none;
}

.button-wrapper .btn {
    margin-right: 10px;
}

.mte-form-panel .button-wrapper {
    padding: 10px 15px;
}

.mte-form-panel .button-wrapper:last-child {
    position: absolute;
    bottom: -45px;
    left: 0;
    padding: 0;
    margin: 0;
}

.mte-form-panel .top-button-wrapper {
    position: absolute;
    z-index: 2;
    right: 10px;
    padding: 0 10px 0 0;
    min-width: 300px;
    text-align: right;
}

.mte-form-panel .control-label {
    text-align: left !important;
}
span.right-label {
    float: right;
}
span.right-label + input{
    width: 92%;
}

.mte-form-panel {
    word-wrap: break-word;
}

.mte-form-panel .mte-grid-table .upload-filename, .mte-form-panel .mte-grid-table .formInfo {
    max-width:500px;
}

.mte-form-panel .mte-grid-table .col-sm-12 .upload-filename {
    max-width:250px;
}

.mte-form-panel .mte-form-hidden {
    /*margin: 0;*/
    /*height: 0;*/
    /*border: none;*/
    /*visibility: hidden;*/
    display: none;
}

.mte-form-panel .mte-form-hidden-exception {
    height: auto;
    visibility: visible !important;
}

.mte-form-panel .mteForm-signature-signedData ul.text-danger {
    margin-left: 33.33%;
    visibility: visible;
    width: 66.66%;
}

ul.text-danger {
    list-style: none;
    padding: 0;
}

.panel-accordion .panel-heading {
    padding: 0;
}

.panel-accordion .panel-heading a {
    padding: 10px 15px;
    display: block;
}

.mte-grid-standard {
    margin-bottom: 10px;
}


.mte-grid-standard .form-group {
    margin-left: 0;
    margin-right: 0;
}

.form-control-static .checkbox {
    padding-left: 0;
}

.form-control-error {
    clear: both;
}

.mte-form-panel .cursor-pointer {
    cursor: pointer;
}

.mte-advanced-search-simple a {
    margin-top: 5px;
}

.form-group {
    margin-bottom: 5px;
}

form .col-sm-8 input[type="checkbox"]{
    margin-top:8px;
}

form .col-sm-8 label input[type="checkbox"]{
    margin-top:2px;
}

.mte-form-panel .collection-grid .file {
    width: 30%;
}

.mte-multiline {
    white-space: pre;
}

.mte-form-inline-fieldset .form-group {
    margin-left: 0;
    margin-right: 0;
}

.mte-form-inline-fieldset .mte-form-before, .mte-form-inline-fieldset .mte-form-after {
    margin: 0 10px;
}

fieldset fieldset.mte-form-subfieldset {
    padding: 0;
    margin: 0;
    border: 0;
}

fieldset fieldset.mte-form-subfieldset>legend {
    color: #004477;
    font-size: 13px;
}

/* begin of form fix - при длинном содержимом элементов формы fieldset выходит за границы родительского контейнера
 фикс необходим, чтобы исключить эту ситуацию */
.mte-form-panel fieldset {
    min-width:0;
}
@-moz-document url-prefix() {
    .mte-form-panel fieldset {
        display: table-cell;
    }
}
/* end of activity form fix */
/* MteFromToWrapper Element*/
.mte-form span.mteFromToWrapper input.hasDatepicker {width: 100px !important; float: left;}

.mte-form .search-block .mteFromToWrapper {width: 450px;}
.mte-form span.mteFromToWrapper input {margin-right: 5px;}
.mte-form span.mteFromToWrapper .from, span.mteFromToWrapper .to, .mteFromToWrapper input { display: block; float: left;}
.mte-form span.mteFromToWrapper .from, span.mteFromToWrapper .to { margin-right:8px;  padding-top: 8px;}

.mte-form span.mteFromToWrapper div.from {margin-top: 2px; width: 10px; float: left;}

.mte-form span.mteFromToWrapper div.to { margin-top: 2px; margin-left: 10px; width: 18px; float: left;}


.mte-form input.hasDatepicker {
    width: 142px !important;
    margin-right: 4px;
    display: inline-block !important;
    float: left;
}
img.ui-datepicker-trigger {
    margin-top: 1px;
    float: left;
    width: 18px;
    height:18px;
    background: transparent url(images/mte-form/calendar.gif) no-repeat 0 0;
}
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; }
.ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }

.ui-timepicker-rtl{ direction: rtl; }
.ui-timepicker-rtl dl { text-align: right; }
.ui-timepicker-rtl dl dd { margin: 0 65px 10px 10px; }
.mte-form .mteFile-upload {
    width: 62%;
}

.mteFile-upload .btn {
    margin-right: 10px;
}

.mte-form .mteFile-upload input[type=file] {
    height: 20px;
    max-width: 300px;
}

.mte-form .title, .mte-form .file {
    width: 50%;
}

.mte-form .file-append-button,
.mte-form .file-cancel-button,
.mte-form .file-delete-button,
.mte-form .file-upload-abort {
    margin-right: 5px;
    display: inline-block;
}

.mte-form .upload-filename {
    padding-top: 5px;
    width: 100%;
    overflow: hidden;
}

.mte-form .upload-progress {
    width: 100%;
}

.mte-form .upload-filename .wait {
    color: #999;
}

.mte-form .progress-success {
    color: green;
}

.mte-form .progress-fail {
    color: #e74c3c;
}

.mte-form .external-selector {
    height: 25px;
}

.mte-form .external-selector input {
    float: left;
}
.mte-form .external-selector img {
    margin-left: 10px;
    margin-top: 5px;
    float: left;
    cursor: pointer;
}
/** mte-form hiddenFormElement */
.mte-form .hiddenFormElement {
    width: auto !important;
    height: auto !important;
    margin: 0px !important;
    padding: 0px !important;
    border-style: none;
    border-width: 0px;

}
.mte-form .hiddenObject object {width: 0px;height: 0px;}

div.mteSignatureCheck .error {
    color:#a94442;
}
.search-input-multi-select {
    margin-bottom: 5px;
    padding-left: 0px;
    padding-right: 0px;
}
.buttons-multi-select {
    padding-top: 35px;
    padding-left: 15px;
    padding-right: 15px;
}
.unselected-multi-select {
    padding-left: 0px;
    padding-right: 0px;
}
.selected-multi-select {
    padding-left: 0px;
    padding-right: 0px;
}
.tt-hint {
    height: 34px;
    padding: 6px 12px;
    margin: -1px !important;
    color: #ccc;
    background-color: transparent !important;
}
.tt-query[disabled] {
    cursor: not-allowed;
    background-color: #eeeeee !important;
}
.tt-dropdown-menu {
    width: 100%;
    background-color: #fff;
    border: 1px solid #bdc3c7;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
}
.tt-suggestion {
    display: block;
    padding: 6px 12px;
}
.tt-suggestion.tt-is-under-cursor {
    min-width: 200px;
    color: #fff;
    background: #0081c2;
    background: linear-gradient(to bottom, #0088cc, #0077b3);
}
.tt-suggestion p {
    min-width: 200px;
    margin: 0;
}
.twitter-typeahead .tt-suggestion-description {
    float: right;
}
.twitter-typeahead, .twitter-typeahead input[type="text"] {
    width: 100%;
}

.mte-form-designatedFilters ul {
    list-style: none;
    margin: 0;
    padding: 5px 0;
    display: block;
}
.mte-form-designatedFilters ul:after {
    display: block;
    content: ' ';
    clear: both;
}
.mte-form-designatedFilters ul li {
    width: 33%;
    float: left;
}
.mte-form-designatedFilters  .value {
    display: inline-block;
    width: 58%;
    vertical-align: top;
    word-wrap: break-word;
}
.mte-form-designatedFilters .label-designated {
    display: inline-block;
    width: 40%;
    padding: 0 15px;
    vertical-align: top;
}
.mteAdvancedSearchForm .catalog-search-simple, .mteAdvancedSearchForm .catalog-search {
    border: 1px solid #bdc3c7;
    padding: 20px;
    background-color: #e3f2f9;
    border-radius: 3px;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.mteAdvancedSearchForm .catalog-search-simple h2 {font-weight: normal;color: #2980b9;font-family: "Trebuchet MS", Arial, serif;margin-bottom: 10px;}
.mteAdvancedSearchForm .catalog-search-simple .search-query {width: 60%; padding: 5px; font-size: 1.2em;margin-right: 10px;}

.mteAdvancedSearchForm .catalog-search-simple .placeholder {font-style: italic;color: #999;}

.mteAdvancedSearchForm .catalog-search-simple .open-full-search, .mteAdvancedSearchForm .close-full-search {
    margin-left: 25px;
    border-bottom: 1px dashed;
    cursor: pointer;
    color: #2980b9;
    float: right;
}
.mteAdvancedSearchForm .catalog-search-simple .search-button {font-size: 1.2em;}

.mteAdvancedSearchForm .catalog-search h2 {font-weight: normal;color: #2980b9;font-family: "Trebuchet MS", Arial, serif;}

.mteAdvancedSearchForm .mte-form {
    font-size: 1em;
}

.mteAdvancedSearchForm .mte-form dt, .mteAdvancedSearchForm .mte-form dd {
    padding: 0;
    margin: 0 0 5px 0;
}
.treeview, .treeview ul { 
	padding: 0;
	margin: 0;
	list-style: none !important;
}
.treeview li{
    list-style: none !important;
}
.treeview ul {
	margin-top: 4px;
}

.treeview .hitarea {
	background: url(images/mte-form/treeview/treeview-default.gif) -64px -25px no-repeat;
	height: 16px;
	width: 16px;
	margin-left: -16px;
	float: left;
	cursor: pointer;
    margin-top: 4px;
}
/* fix for IE6 */
* html .hitarea {
	display: inline;
	float:none;
}

.treeview li { 
	margin: 0;
	padding: 3px 0pt 3px 16px;
}

.treeview a.selected {
	background-color: #eee;
}

#treecontrol { margin: 1em 0; display: none; }

.treeview .hover {  }

.treeview li { background: url(images/mte-form/treeview/treeview-default-line.gif) 0 0 no-repeat; }
.treeview li.collapsable, .treeview li.expandable { background: url(images/mte-form/treeview/treeview-default-line-2.gif) 0 -176px repeat-y; }

.treeview .expandable-hitarea { background-position: -80px -3px; }

.treeview li.last { background-position: 0 -1989px }
.treeview li.lastCollapsable, .treeview li.lastExpandable { background: url(images/mte-form/treeview/treeview-default.gif) no-repeat; }
.treeview li.lastCollapsable { background-position: 0 -111px }
.treeview li.lastExpandable { background-position: -32px -67px }

.treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea { background-position: 0; }

