/* в данном файле размещаются все основные настройки форм */

input, select, textarea, div.dropfield {
    width: 100%;
    border: 1px solid #d4d9dd;
    color: #24242c;
    padding: .8em;
    font-size: 1.3em;
    /*margin-bottom: 1px;*/ /*Chrome fix*/
    border-radius: 0;
    font-family: Arial, sans-serif;
    box-shadow: none;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
.fieldname:focus {
    outline: none;
}

textarea {
    resize: vertical;
    line-height: normal;
    display: block;
}

select {
    text-overflow: clip;
    white-space: nowrap;
}

select::-ms-expand {
    display: none;
}

input[type=text]:disabled, select:disabled {
    color: gray;
}

select:disabled {
    white-space: pre; /* лечит баг Хрома с расстоянием между двумя выключенными селектами */
}

input[type="checkbox"], input[type="radio"] {
    width: auto;
    margin-bottom: 0;
    vertical-align: middle;
}

.inputcheckbox {
    vertical-align: top;
    width: 1.3em;
    height: 1.3em;
    margin: 0;
}

.inputcheckbox + label {
    cursor: pointer;
    display: inline-block;
}

table.maininfotable .inputcheckbox + label {
    display: inline;
    padding: 0 0 0 3em;
}

.inputcheckbox:not(checked) {
    position: absolute;
    z-index: -1;
    opacity: 0;
    margin: 1em 0 0 2em;
    height: 1px;
}

.inputcheckbox:not(checked) + label {
    position: relative;
    padding: 0 0 0 5em;
}

div.fieldvalue > .inputcheckbox:not(checked) + label {
    margin-bottom: 1.5em;
    display: inline-block;
}

.inputcheckbox:not(checked) + label:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4em;
    height: 2em;
    border-radius: 1em;
    background: #ECECEC;
    box-shadow: inset 0 .1em .2em rgba(0, 0, 0, .2);
    transition: .2s;
}

.inputcheckbox:not(checked) + label:after {
    content: '';
    position: absolute;
    top: 0;
    left: .1em;
    width: 2em;
    height: 2em;
    border-radius: 1em;
    background: #000000;
    box-shadow: 0 .1em .2em rgba(0, 0, 0, .3);
    transition: .2s;
    opacity: .4;
}

.inputcheckbox:checked + label:before {
    background: #ECECEC;
}

.inputcheckbox:checked + label:after {
    left: 1.9em;
    opacity: .8;
}

.inputradio {
    vertical-align: top;
    width: 1.3em;
    height: 1.3em;
    margin: 0;
}

.inputradio + label {
    cursor: pointer;
}

.inputradio:not(checked) {
    position: absolute;
    z-index: -1;
    opacity: 0;
    margin: 1em 0 0 1em;
}

.inputradio:not(checked) + label {
    position: relative;
    padding: 0 0 0 3em;
}

div.fieldvalue > .inputradio:not(checked) + label {
    margin-bottom: 1em;
    display: inline-block;
}

.inputradio:not(checked) + label:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1.8em;
    height: 1.8em;
    border: 1px solid #ECECEC;
    border-radius: 50%;
    background: #ECECEC;
}

.inputradio:not(checked) + label:after {
    content: '';
    position: absolute;
    top: .5em;
    left: .5em;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background: #000000;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5);
    opacity: 0;
    transition: .2s;
}

.inputradio:checked + label:after {
    opacity: 1;
}

span.checkbox_read_green {
    color: green;
}

span.checkbox_read_red {
    color: red;
}

option[disabled] {
    color: rgb(255, 255, 255) !important;
    background-color: rgb(51, 51, 51);
}

option.option_bold {
    font-weight: bold;
}

input[type=text]:focus, input[type=password]:focus, select:focus, textarea:focus, div.dropfield.hovered {
    border-color: #969ea6;
}

div.field {
    clear: both;
    margin-bottom: 1em;
}

div.field:after {
    content: "";
    display: table;
    clear: both;
}

div.fieldname {
    float: none;
    width: auto;
    line-height: 1em;
    font-size: 1em;
    color: #8A8A8A;
    margin-bottom: .3em;
    font-weight: normal;
    text-align: left;
}

div.fieldname.selected {
    font-weight: bold;
}

/*div.field_group_separator {
    border-top: 1px dashed rgb(218, 225, 232);
    width: 100%;
    height: 1px;
    clear: both;
    margin: 1em 0 3em;
}*/
div.field_group_separator {
    width: 100%;
    height: 10px;
    background-color: #ebeef1;
    box-shadow: inset 2px 2px 3px rgb(0 0 0 / 10%);
    margin: 1.5em 0 3em;
    border-radius: 5px;
}

input[type=text].mustbe, input[type=password].mustbe, textarea.mustbe {
    padding-right: 1.5em;
    background: url(asterix.svg) right .5em center no-repeat rgb(255, 255, 255);
    background-size: .5em;
}

textarea.mustbe {
}

textarea.wysihtml5-editor.mustbe {
    background-color: transparent;
    padding-right: 0;
}

div.dropfield, section {
    background: rgb(255, 255, 255);
}

div.dropfield.mustbe, section.mustbe {
    background: url(asterix.svg) right .5em center no-repeat rgb(255, 255, 255);
    background-size: .5em;
    padding-right: 1.5em;
}

select, .select2-selection {
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: .01px;
    text-overflow: '';
    background: url(arrow-orange-down.svg) right .5em center no-repeat rgb(255, 255, 255);
    background-size: 1em;
    padding-right: 2em;
}

select.mustbe, .select2-selection.mustbe {
    background: url(arrow-asterix.svg) right .5em center no-repeat rgb(255, 255, 255);
    background-size: 1.5em;
    padding-right: 2.5em;
}

table.maininfotable, table.menutable, div.cardtable_card {
    width: 100%;
}

form > div.cardtable_card {
    margin-top: 2em;
    padding: 1em;
    border: 1px solid #edf2f4;
}

form > div.cardtable_card:first-of-type {
    margin-top: 0;
}

table.maininfotable td, table.maininfotable th, table.menutable td, table.menutable th {
    padding: 1em;
    vertical-align: middle;
}

table.maininfotable td {
    vertical-align: middle;
    text-align: center;
}

table.maininfotable td button {
    margin-top: 0;
}

table.maininfotable td span.jq-checkbox {
    float: none;
}

table.maininfotable tr.menu, table.menutable tr.menu {
    font-weight: bold;
    background-color: #edf2f4;
    color: #7e858b;
    text-align: left;
    font-size: 130%;
}

table.maininfotable tr.menu a, table.menutable tr.menu a {
    color: #7e858b;
    text-decoration: none;
    font-weight: bold;
    padding-right: 1em;
}

table.maininfotable tr.menu a:hover, table.menutable tr.menu a:hover {
    border-bottom: 0;
    color: #24242c;
}

table.maininfotable td.small {
    width: 3%;
}

table.maininfotable td.small img {
    width: 100%;
    height: 1%;
}

table.menutable tr.string1, table.maininfotable tr.string2, div.cardtable_card {
    background-color: #ffffff;
}

table.menutable tr.string2, table.maininfotable tr.string1, div.cardtable_card.cardtable_new {
    background-color: #edf2f4;
}

table.maininfotable td.type1delete {
    vertical-align: middle;
}

table.maininfotable td.type1num {
    font-size: 130%;
    vertical-align: middle;
    font-weight: bold;
}

div.cardtable_card div.cardtable_card_num {
    font-size: 130%;
    vertical-align: middle;
    font-weight: bold;
    background-color: #edf2f4;
}

div.cardtable_card div.cardtable_card_num span.cardtable_card_num_name {
    margin-left: .5em;
}

div.cardtable_card + div.control_buttons {
    margin-top: 2em;
}

div.cardtable_card.cardtable_new div.control_buttons {
    margin: 1em 0 2em 0;
}

span.sup {
    font-size: 70%;
    vertical-align: top;
}

div.fieldname.red {
    font-weight: bold;
}

div.fieldname.red + div.fieldvalue input,
div.fieldname.red + div.fieldvalue textarea,
div.fieldname.red + div.fieldvalue select,
div.fieldname.red + div.fieldvalue .select2-selection,
div.fieldname.red + div.fieldvalue div.dropfield,
div.fieldname.red + div.help + div.fieldvalue input,
div.fieldname.red + div.help + div.fieldvalue textarea,
div.fieldname.red + div.help + div.fieldvalue select,
div.fieldname.red + div.help + div.fieldvalue div.dropfield,
div.fieldname.red + div.fieldvalue iframe {
    border-color: #e42a2a !important;
}

.maininfotable tr.red, .cardtable_card.red {
    background-color: #e42a2a;
}

.maininfotable tr.red td * {
    background-color: white;
}

.maininfotable tr.red img {
    background: none;
}

div.help {
    font-size: 100%;
    font-weight: normal;
    text-align: justify;
    display: none;
    position: absolute;
    background-color: #555b60;
    color: #b5b8bc;
    padding: .2em .3em;
    z-index: 1;
}

div.help a {
    text-decoration: underline;
    color: white;
}

div.help.shown + div.fieldvalue > input, div.help.shown + div.fieldvalue > select, div.help.shown + div.fieldvalue > textarea, div.help.shown + div.fieldvalue > div.dropfield, div.help.shown + div.fieldvalue.read {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

div.fixed_help {
    position: absolute;
    display: inline-block;
    text-align: right;
    font-size: .8em;
    right: 0;
    margin-top: -1.3em;
    z-index: 1;
}

div.fieldvalue {
}

div.fieldvalue.read {
    font-size: 1.3em;
    line-height: normal;
    -ms-word-break: break-all;
    overflow-wrap: break-word;
}

div.fieldvalue font {
    display: inline-block;
}

div.fieldvalue ol, div.fieldvalue ul {
    margin-left: 1em;
}

div.fieldvalue .wysihtml5-toolbar a.toolbar_button[data-wysihtml5-command]:after, div.fieldvalue .wysihtml5-toolbar a.toolbar_button[data-wysihtml5-action]:after {
    content: "";
    background-size: contain;
    width: 1.5em;
    height: 1.5em;
    position: absolute;
    left: .75em;
    top: .15em;
    margin: 0;
}

div.fieldvalue .wysihtml5-toolbar div[data-wysihtml5-dialog] a {
    vertical-align: initial;
}

div.fieldvalue .wysihtml5-toolbar button, div.fieldvalue .wysihtml5-toolbar button:hover {
    padding: .5em !important;
    border-radius: unset !important;
    border: none !important;
}

div.placeholder {
    color: #999999;
    position: absolute;
    display: block;
    margin-left: 5px;
    font-size: 130%;
}

div.dropfield {
    cursor: pointer;
    border: 1px solid rgb(231, 231, 231);
    text-align: left;
    padding: 0 .8em;
}

div.dropfield div:not(.options):not(.clear) {
    padding: .8em 0;
}

div.dropfield.focus {
    border-color: #3d7c9f;
}

div.dropfield div.options {
    padding: calc(.6em - 1px) 1em;
    margin: .2em .3em .2em 0;
    font-size: 1em;
    cursor: default;
    display: inline-block;
    background-color: #dce1e4;
}

div.dropfield div.options a[rel] {
    display: inline-block;
    font: normal normal normal 1em FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: .4;
    margin-left: .3em;
}

div.dropfield div.options a[rel]:before {
    content: "\f00d";
}

div.dropfield div.options:hover a[rel] {
    opacity: 1;
    border-bottom: 0;
}

div.dropfield2 {
    display: none;
    border: 1px solid #d4d9dd;
    border-top: 0;
    vertical-align: bottom;
    text-align: left;
    padding: 0;
    overflow: hidden;
    height: 0;
    font-size: 130%;
    margin-top: -0.1em; /*Chrome fix*/
    width: 100% !important;
    position: absolute;
    background-color: #f1f3f4;
    z-index: 2; /* чтобы перекрывать какие-то пункты с z-index 1, но дальше по тексту */
    top: auto !important;
}

div.dropfield2 div.dropfield2_container {
    overflow: auto;
    width: 100%;
    height: 100%;
    padding: .5em;
}

div.fieldvalue div.dropfield2 {
    top: auto !important;
    box-shadow: 0 0 1.5em rgba(0, 0, 0, 0.1);
}

table.maininfotable div.dropfield2 {
    position: relative;
}

div.dropfield2 div {
    vertical-align: middle;
}

div.dropfield2 .inputcheckbox:not(checked) + label {
    padding: 0 0 0 2em;
    display: inline;
}

div.dropfield2 .inputcheckbox + label:before, div.dropfield2 .inputcheckbox + label:after {
    font-size: .5em;
    margin-top: .5em;
}

div.dropfield2 .inputradio:not(checked) + label {
    padding: 0 0 0 1.5em;
}

div.dropfield2 .inputradio + label:before {
    font-size: .5em;
}

div.dropfield2 .inputradio + label:after {
    font-size: .5em;
}

div.dropfield2 img {
    vertical-align: middle;
    margin-right: .5em;
}

div.dropfield2_search {
    margin-bottom: .3em;
}

div.dropfield2_search input, div.maincontent_data.autocreated .ui-widget div.dropfield2_search input {
    font-size: .8em !important;
}

div.dropfield2_search a.create {
    font-size: .9em;
    position: absolute;
    right: 1em;
    top: .3em;
    display: none;
    z-index: 2000;
}

div.dropfield2 div.dropfield2_field input[type="checkbox"][name$="empty_value]"], div.dropfield2 div.dropfield2_field input[type="checkbox"][name$="empty_value]"] + span, div.dropfield2 div.dropfield2_field input[type="checkbox"][name$="empty_value]"] + span + label {
    display: none !important;
}

div.dropfield2 div.dropfield2_select_all, div.dropfield2 div.dropfield2_deselect_all {
    float: right;
    z-index: 1;
    margin-left: 1em;
}

div.dropfield2 div.dropfield2_select_all a, div.dropfield2 div.dropfield2_deselect_all a {
    cursor: pointer;
    color: #848b90;
    background-color: #dce1e4;
    padding: .4em;
    border-radius: .3em;
    display: inline-block;
    font-size: .8em;
}

div.dropfield2 div.dropfield2_select_all a:hover, div.dropfield2 div.dropfield2_deselect_all a:hover {
    color: inherit;
    background-color: #d3d9dc;
}

div.dropfield2 .ui-resizable-s {
    height: .5em;
    line-height: .5em;
    bottom: 0;
    border-top: 1px solid rgb(218, 225, 232);
    border-bottom: 1px solid rgb(218, 225, 232);
    background-color: rgb(240, 240, 240);
    font-size: inherit;
    background-size: 1em 1em;
    background-repeat: no-repeat;
    background-image: linear-gradient(to bottom, rgb(150, 150, 150) .1em, transparent .1em, transparent);
    background-position: center .1em;
    z-index: 1 !important;
    margin-bottom: 0 !important;
}

a.ctrlink, a.ctrlink:link, a.ctrlink:visited {
    font-size: 1.3em;
    font-weight: bold;
    float: left;
    margin-right: .3em;
    background-color: white;
    padding: .5em;
    border-radius: .5em .5em 0 0;
}

a.ctrlink:hover {
    text-decoration: none;
}

a.ctrlink span.fa {
    vertical-align: middle;
    margin-right: .3em;
}

ol, ul {
    padding-left: 2em;
    text-align: left;
}

ol li > span.fa:first-of-type, ul li > span.fa:first-of-type {
    margin-right: .5em;
}

.ollist, .ullist {
    margin-left: 0;
    list-style: none;
    clear: both;
    font-size: 1.2rem;
}

.ollist li {
    padding: .5em 0 0 1.5em;
}

ul.ollist > li {
    padding-left: .5em;
    padding-top: .5em;
}

.ullist li {
    padding: .2em 0 0 3em;
}

.ollist li.ullist {
    padding: .2em 0 0 1.5em;
}

button {
    margin-top: 1%;
}

button.main, input.main {
    background: #ffcd5b !important;
    color: black !important;
    border: .15em #ffcd5b solid !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    -moz-transition: 0.5s linear;
    -webkit-transition: 0.5s linear;
    transition: 0.5s linear;
    -moz-transition-property: border, background;
    -webkit-transition-property: border, background;
    transition-property: border, background;
    will-change: border, background;
    margin: 0;
}

button.main:hover:not(.ui-button-disabled), input.main:hover {
    background: #fcbb28 !important;
    border: .15em #fcbb28 solid !important;
}

button.careful, input.careful, button.close, button.careful2, input.careful2 {
    background: #555b60 !important;
    color: white !important;
    border: .15em #555b60 solid !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    -moz-transition: 0.5s linear;
    -webkit-transition: 0.5s linear;
    transition: 0.5s linear;
    -moz-transition-property: color, border, background;
    -webkit-transition-property: color, border, background;
    transition-property: color, border, background;
    will-change: color, border, background;
    margin: 0;
}

button.careful:hover:not(.ui-button-disabled), input.careful:hover, button.careful2:hover, input.careful2:hover, button.close:hover {
    background: #404448 !important;
    border: .15em #404448 solid !important;
    color: white !important;
}

button.nonimportant, input.nonimportant {
    background: #e1e2e6 !important;
    color: black !important;
    border: .15em #e1e2e6 solid !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    -moz-transition: 0.5s linear;
    -webkit-transition: 0.5s linear;
    transition: 0.5s linear;
    -moz-transition-property: border, background;
    -webkit-transition-property: border, background;
    transition-property: border, background;
    will-change: border, background;
    margin: 0;
}

button.nonimportant:hover:not(.ui-button-disabled), input.nonimportant:hover {
    background: #cecfd4 !important;
    border: .15em #cecfd4 solid !important;
}

.trash {
    border: none;
    cursor: pointer;
    display: inline-block;
    outline: none;
    padding: 0;
    position: relative;
    min-width: 1.1em;
    height: 1.3em;
    vertical-align: top;
    background: url('icon-trash.svg') 0 0 no-repeat;
    background-size: contain;
}

.trash > span {
    margin-left: 1.5em;
    font-weight: normal;
    vertical-align: middle;
}

a.trash:hover {
    border: 0;
}

div.clear {
    clear: both;
}

div.maincontent_wrapper {
    display: flex;
    flex-wrap: wrap;
}

div.maincontent_data {
}

div.maincontent_data.autocreated {
}

div.maincontent_data.with_indexer {
    flex: 1;
    min-width: 63%;
    max-width: 100%;
    width: 100%;
}

div.maincontent_data.autocreated form, div.maincontent_data.autocreated form div.cardtable_card {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
}

div.maincontent_data.autocreated form div.field, div.maincontent_data.autocreated form div.cardtable_card_num, div.maincontent_data.autocreated form div.cardtable_card_delete {
    flex: 1;
    width: 48%;
    max-width: 48%;
    min-width: 48%;
    margin-bottom: 1.5em;
}

div.maincontent_data.autocreated form h1.data_h1 {
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    margin-bottom: 1em;
}

div.maincontent_data.autocreated form div.cardtable_card div.field {
    width: 23%;
    max-width: 23%;
    min-width: 23%;
}

div.maincontent_data form button.main {
}

div.maincontent_data form button.nonimportant.add_group {
    margin-bottom: 1em;
}

div.maincontent_data table td.alert {
    width: 2%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

div.colorSelector {
    float: left;
    width: 4%;
    height: 100%;
    border: 1px solid black;
    cursor: pointer;
}

input.cpkr {
    width: 95% !important;
    margin-left: 1%;
}

/* фильтры indexer */
div.indexer {
    font-size: .9em;
    height: 100%;
    background-color: white;
    padding: .5em;
    vertical-align: top;
    border: 1px solid rgb(218, 225, 232);
    border-left: 0;
    display: none;
    flex: 1;
    width: 21em;
    max-width: 21em;
    min-width: 21em;
}

div.indexer.shown {
    display: block;
}

div.indexer_toggle {
    float: right;
    cursor: pointer;
    font-size: 130%;
    z-index: 1;
}

div.indexer_toggle.indexer_shown {
    margin-right: 1em;
}

div.indexer_toggle span.indexer_toggle_text {
    margin-right: .3em;
    font-size: 90%;
}

div.indexer_toggle.indexer_shown span.indexer_toggle_text {
    display: none;
}

div.open_part div.indexer {
    width: 22em;
}

div.indexer.white {
    background-color: rgb(255, 255, 255);
    padding: 0;
}

div.indexer input, div.indexer select, div.indexer textarea, div.indexer div.dropfield, div.indexer div.dropfield2 {
    font-size: .9rem !important;
}

div.indexer form > .inputcheckbox:not(checked) + label,
div.indexer form > div.dropfield2 .inputcheckbox:not(checked) + label {
    padding: 0 0 0 2em;
    display: inline;
}

div.indexer form > .inputcheckbox + label:before, div.indexer form > .inputcheckbox + label:after, div.indexer form > div.dropfield2 .inputcheckbox + label:before, div.indexer form > div.dropfield2 .inputcheckbox + label:after {
    font-size: .5em;
    margin-top: .5em;
}

div.indexer form > .inputradio:not(checked) + label {
    padding: 0 0 0 1.5em;
}

div.indexer form > .inputradio + label:before, div.indexer form > .inputradio + label:after {
    font-size: .5em;
    margin-top: .5em;
}

div.indexer button {
    padding: .8em !important;
    border-radius: 0 !important;
}

div.indexer button.main {
    float: left;
    margin-left: 0 !important;
}

div.indexer button.main.full_width {
    /*width: 100%;*/
}

div.indexer button.nonimportant {
    float: right;
}

div.indexer button.floaty {
    position: fixed;
    bottom: 0;
    z-index: 10000;
}

div.indexer button.floaty.nonimportant {
    margin-left: 7.5em;
}

div.indexer div.block {
    margin-bottom: 2%;
}

div.indexer div.block_gray {
    margin-bottom: 5%;
    padding: 8% 3%;
    background-color: rgb(241, 241, 241);
    line-height: 95%;
}

div.indexer div.block_name {
    font-weight: bold;
    background-color: rgb(222, 229, 235);
    padding: 1% 3%;
}

div.indexer a.block_all {
    float: right;
    font-weight: normal;
}

div.indexer div.block_header {
    background-color: rgb(241, 241, 241);
    padding: 1% 3%;
}

div.indexer div.block_data {
    padding: 3%;
}

div.indexer div.block_data.nopadding {
    padding: 0 0 3% 0;
}

div.indexer div.ui-resizable-w {
    border-left: 1px solid rgb(218, 225, 232);
    border-right: 1px solid rgb(218, 225, 232);
    background-color: rgb(240, 240, 240);
    width: .5em;
    left: -0.5em;
    font-size: inherit;
    background-size: 1em 1em;
    background-repeat: no-repeat;
    background-image: linear-gradient(to right, rgb(150, 150, 150) .1em, transparent .1em, transparent), linear-gradient(to right, rgb(150, 150, 150) .1em, transparent .1em, transparent);
    background-position: 0 center, .3em center;
    z-index: 1 !important;
}

div.indexer input.inputnum {
    width: 60%;
}

div.copy_filters_link {
    text-align: center;
    margin: 3em 0 -1em 0;
}

/* пагинатор */
div.pagecounter {
    display: flex;
    margin: 4em auto 2em auto;
    width: max-content;
    min-width: max-content;
    max-width: max-content;
    flex-wrap: wrap;
    align-items: center;
}

div.pagecounter div {
    display: flex;
    width: max-content;
    min-width: max-content;
    max-width: max-content;
    align-items: center;
    flex: 1;
}

div.pagecounter div.pagecounter_buttons, div.pagecounter div.pagecounter_text {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    justify-content: center;
}

div.pagecounter a {
    display: inline-flex;
    border-radius: .7em;
    border: 1px solid #000000;
    color: #000000;
    width: 3em;
    height: 3em;
    align-items: center;
    justify-content: center;
    margin-right: .5em;
}

div.pagecounter div a:last-of-type, div.pagecounter div.pagecounter_nums a:last-of-type {
    margin-right: 0;
}

div.pagecounter a.disabled {
    cursor: initial;
    opacity: .5;
}

div.pagecounter div.pagecounter_nums a {
    margin-right: 1.2em;
    border: 1px solid #000000;
    background-color: #000000;
    color: #ffffff;
}

div.pagecounter div.pagecounter_nums a.selected {
    cursor: initial;
    color: #000000;
    background-color: #dce1e4;
    border: 1px solid #dce1e4;
}

div.pagecounter div.pagecounter_prevs {
    margin-right: 2em;
}

div.pagecounter div.pagecounter_prevs a, div.pagecounter div.pagecounter_nexts a {
    width: 2.5em;
    height: 2.5em;
    background: center center no-repeat;
    background-size: auto .8em;
    vertical-align: bottom;
}

div.pagecounter div.pagecounter_prevs a.prev {
    background-image: url(arrow-orange-left.svg);
}

div.pagecounter div.pagecounter_prevs a.first {
    background-image: url(arrow-orange-double-left.svg);
}

div.pagecounter div.pagecounter_nexts {
    margin-left: 2em;
}

div.pagecounter div.pagecounter_nexts a.next {
    background-image: url(arrow-orange-right.svg);
}

div.pagecounter div.pagecounter_nexts a.last {
    background-image: url(arrow-orange-double-right.svg);
}

div.pagecounter div.pagecounter_text {
    color: #979797;
    margin-top: 1.8em;
}

div.pagecounter div.pagecounter_text span {
    color: #000000;
    margin: 0 .3em;
}

/* адаптативная верстка */
@media only screen and (min-width: 1300px) {
    div.maincontent {
        padding: 2.5rem 8%;
    }
}

/* мобильная верстка */
@media only screen and (max-device-width: 767px) {
    div.maincontent_data form {
        font-size: .8em;
    }

    div.maincontent_data.autocreated form div.field, div.maincontent_data.autocreated form div.cardtable_card div.field {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
    }

    div.fieldname {
        font-size: 1.5em;
    }

    div.fieldvalue {
        font-size: 1.5em;
    }

    div.fieldvalue.read {
        font-size: 1.95em;
    }

    div.maincontent_data h1.data_h1 {
        font-size: 2em;
    }

    a.edit_file, div.uploaded_file a.trash {
        display: block;
    }

    div.fieldvalue div.uploaded_file a.edit_file, div.fieldvalue div.uploaded_file a.trash {
        display: inline-block;
    }

    /* перестраиваем автоматические таблицы под удобный для работы формат */
    table.maininfotable {
        width: 100%;
    }

    table.maininfotable tr {
        width: 100%;
        display: inline-block;
    }

    table.maininfotable tr.menu {
        font-size: inherit;
    }

    table.maininfotable tr.menu td {
        font-size: 1.3rem;
    }

    table.maininfotable td {
        display: inline-block;
        text-align: left;
        padding: 0 !important;
        margin: 1% !important;
    }

    table.maininfotable td.small, table.maininfotable td.type1delete, table.maininfotable td.type1num {
        width: 3% !important;
        min-width: 3% !important;
        margin: 1% 0 1% 1% !important;
    }

    table.maininfotable tr.menu td:nth-of-type(3) {
        font-size: 1.6rem;
    }

    table.maininfotable tr td:nth-of-type(3) {
        width: 90% !important;
        min-width: 90% !important;
    }

    table.maininfotable tr td:nth-of-type(4n) {
        margin-left: 9% !important;
    }

    table.maininfotable td {
        width: 21% !important;
        min-width: 21% !important;
    }

    table.maininfotable tr.menu td[colspan] {
        width: 100% !important;
        margin: 1% 0 !important;
    }

    div.indexer_toggle {
        position: absolute;
        right: 0;
        float: none;
    }

    div.indexer_toggle.indexer_shown {
        margin-right: 0;
    }

    div.indexer {
        flex: 1;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        order: 1;
        height: 15em;
        overflow-y: auto;
        margin-bottom: 2em;
        font-size: 1.5rem;
    }

    div.maincontent_data.with_indexer {
        order: 2;
    }

    div.indexer input, div.indexer select, div.indexer textarea, div.indexer div.dropfield, div.indexer div.dropfield2 {
        font-size: inherit !important;
    }

    div.indexer button.floaty {
        position: inherit;
        bottom: auto;
        z-index: inherit;
    }

    a.ctrlink, a.ctrlink:link, a.ctrlink:visited {
        float: none;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid #E6E6E6;
        margin: 0;
    }
}


.field.select, .field.list_search {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}