/* .popup .block-import { */
/*     width: auto !important; */
/* } */

.popup .block-import {
    /* background-color: white; */
    /* color: black; */
}

.popup .block-import .models .modelcontent .row > * {
    flex: 1 !important;
}

.popup .block-import .models .modelcontent .row[data-tabpos="1"] {
    background-color: black !important;
    color: white !important;
}

.popup .block-import .models .modelcontent .row[data-tabpos="0"] {
    background-color: white !important;
    color: black !important;
}

.popup .content.models {
    display: flex;
    flex-direction: row;
}

.popup .content.models > form {
    /* flex: 1; */
    width: 200px;
    margin-right: 20px;
}

.popup .content.models > form .choosetbname_form > * {
    width: 100%;
}

.popup .content.models form label {
    flex-direction: column;
}

.popup .content.models > .block-import {
    height: 100%;
    width: calc(100% - 200px - 20px) !important;
    border-radius: 3px;
}

.popup .block-import .models .toolbar > * {
    flex: 1;
}

.popup .block-import .modelcontent {
    padding: 0;
    margin: 0;
}

.popup .block-import .modelcontent .fields {
    height: 100%;
}

.popup .block-import .modelcontent .fields .tabs {
    height: 70px;
    display: flex;
    flex-direction: row;
}

.popup .block-import .modelcontent .fields .tabs > * {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 1px solid white; */
    padding: 0 15px;
    margin: 15px;

    background-color: rgba(255,255,255,0.4);
    color: black;
}

.popup .block-import .modelcontent .fields .tabs .tab-item.selected {
    border-bottom: 1px solid black;
    font-weight: bold;
    background-color: #eee;
}

.popup .block-import .modelcontent .fields .tab-content {
    display: none;
}

.popup .block-import .modelcontent .fields .tab-content.selected {
    height: calc(100% - 70px);
    
    display: flex;
    flex-direction: column;

    overflow: auto;
}

.popup .block-import .modelcontent .fields .tab-content.selected .field-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.popup .block-import .modelcontent .fields .tab-content.selected .field-item > .name {
    width: 100%;
    height: 30px;
    display: flex;
    flex-direction: row;
    /* background-color: #ddd; */
    padding: 0px 5px;
    /* color: black; */
}

.popup .block-import .modelcontent .fields .tab-content.selected .field-item > .name > span {
    display: flex;
    align-items: center;
    text-transform: capitalize;
    font-weight: bold;
    /* text-shadow: 0 0 black; */
}

.popup .block-import .modelcontent .fields .tab-content.selected .field-item > .values {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.popup .block-import .modelcontent .fields .tab-content.selected .field-item > .values > * {
    padding: 10px;
    padding-right: 15px;
}

.popup .block-import .modelcontent .fields .tab-content.selected .field-item > .hgroup,
.popup .block-import .modelcontent .fields .tab-content.selected .field-item > .value {
    width: 100%;
    /* height: 45px; */
}

.popup .block-import .modelcontent .fields .tab-content.selected .field-item > .text,
.popup .block-import .text {
    position: relative;
    border: 0;
    padding: 0;
    margin: 0;

    max-width: none;
    max-height: none;

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    
    background-color: white;
    color: black;
}

.popup .block-import .modelcontent .fields .tab-content.selected .field-item > .hgroup > * {
    width: 100%;
    height: 45px;
    margin: 0;
    
    min-width: 100%;
    font-style: italic;
    padding: 0px 5px;
}

.popup .block-import .modelcontent .fields .tab-content.selected .field-item > .hgroup input[type="checkbox"] {
    display: none;
}

.popup .block-import .modelcontent .fields .field-item > button {
    position: absolute;
    right: 0;

    background-color: var(--cimportant);
    color: var(--text-important);
}

.popup.reportage .models > .block-import {
    width: 100% !important;
}
