:root{
    --pagination-h: 30px;
    --toolbar-h: 60px;
    --bg-color: var(--c1);
    --pop-row-h: 60px;
}

.block-utilities.block-search .searchresult.tablelist .infolist .field-item {
    background-color: var(--csecondary) !important;
    color: var(--text-icolor) !important;
}

.block-utilities .prof-list .maincontent .items .field-header {
    display: flex !important;
    flex-direction: row;

    color: white;
}

.block-utilities .prof-list .maincontent .items .field-header .fieldheader:first-child {
    display: none !important;
}

.block-utilities .prof-list .maincontent .items .field-header .fieldheader {
    display: flex;
}

.block-utilities .prof-list .maincontent .items .field-header > * {
    flex: 1;
}

.block-utilities .prof-list .maincontent .items .gallery-item {
    display: flex;
    flex-direction: column;
}

.block-utilities .prof-list .maincontent .items .gallery-item .subgroup {
    height: 100%;
}

.block-utilities .prof-list .maincontent .items .gallery-item .subgroup .fieldvalue {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.block-utilities .prof-list .maincontent .items .gallery-item .selected-item,
.block-utilities .prof-list .maincontent .items .gallery-item .selected-item {
    height: 30px;
    
    padding: 0;
}

.block-utilities .prof-list .maincontent .items .gallery-item .infolist {
    display: flex !important;
    flex-direction: row !important;
}

.block-utilities .prof-list {
    /* height: calc(100% - var(--pagination-h) - var(--toolbar-h)); */
    width: 100%;
    max-height: calc(100% - var(--pagination-h) - var(--toolbar-h));
    
    box-sizing: border-box;
}

.block-utilities .prof-list .maincontent {
    height: 100%;
    width: 100%;
    min-height: 0;
    max-height: none;

    background-color: var(--bg-color);
}

.block-utilities .pagination {
    height: var(--pagination-h);
    width: 100%;

    background-color: var(--bg-color);
}

.block-utilities .toolbar {
    display: flex;
    flex-direction: row;

    align-items: center;
    gap: 10px;
    
    height: var(--toolbar-h);
    min-height: 0;
    max-height: none;
    
    width: 100%;
    
    background-color: var(--bg-color);
    
    box-sizing: border-box;
}

.block-utilities .toolbar > * {
    background-color: var(--cbutton);
    border: 1px solid black;
}

.block-utilities .toolbar > button:hover {
    background-color: #bbb;
    color: #333;
}

.block-utilities .toolbar > .bdel {
    background-color: rgba(255,0,0,0.4);
}

.block-utilities .toolbar > .bdel:hover {
    background-color: rgba(255,0,0,0.8);
}

.block-utilities .gallery-item .imgtools {
    position: absolute;
    right: 0;

    display: none;
}

.block-utilities .gallery-item:hover .imgtools {
    height: 100%;
    
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.block-utilities .gallery-item:hover .imgtools > * {
    background-color: var(--c0) !important;
    color: var(--text-color) !important;
}

.popup .profile-form {
    display: flex;
    flex-direction: column;

    padding: 15px !important;
}

.popup .profile-form .tabs {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    /* box-shadow: 0px 0px 2px black; */
}

.popup .profile-form .tabs .tab-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* color: var(--text-bcolor); */
    /* background-color: var(--color-button) !important; */

    color: var(--text-color) !important;
    background-color: var(--text-icolor) !important;
    
    padding: 5px;
    box-sizing: border-box;
    
    border: 0;
    border-left: 0px solid black;
    border-bottom: 0px solid black;
    
    box-shadow: 0px 0px 2px black;
}

.popup .profile-form > .tabs .tab-item.selected {
    /* color: var(--text-color) !important; */
    background-color: var(--text-color) !important;
    color: var(--text-icolor) !important;
    /* color: var(--text-icolor) !important; */
}

.popup .profile-form .tabs .tab-item.selected {
    /* background-color: #fff; */
    background-color: var(--text-icolor);
    
    color: var(--text-important);
    
    border: 1px solid black;
    border-bottom: 1px solid transparent;
    
    box-shadow: none;
}

.popup .profile-form .tab-content {
    display: none;
    flex-direction: column;
    
    width: 100%;
    max-height: 100%;
    height: 100%;
    
    box-sizing: border-box;
    
    color: black;
    background-color: #fff;

    border: 1px solid black;
    border-top: 0;
    
    padding: 5px;
    overflow: auto;
}

.popup .profile-form .tab-content.selected {
    display: flex;
}

.popup .profile-form .tab-content label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* width: 100%; */
    /* flex: 1; */
    height: fit-content;
    
    max-height: 100%;
    
    box-sizing: border-box;
}

.popup .profile-form .tab-content .bshowcols {
    cursor: pointer;
    text-decoration: underline;
}

.popup .profile-form .tab-content > label > * {
    width: 100%;
    max-width: 100%;
    height: calc(var(--pop-row-h) / 2);

    margin-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
}

.popup .profile-form .tab-content > label > span {
    display: flex;
    align-items: center;
    
    text-transform: capitalize;
    font-weight: bold;
    background-color: #eee;
}

.popup .profile-form .tab-content label > textarea {
    
}

.popup .profile-form .tab-content .db-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    
    /* align-items: center; */
    
    /* height: calc(var(--pop-row-h) / 2); */
}

.popup .profile-form .tab-content .db-item .title:hover {
    background-color: #ddd;
}

.popup .profile-form .tab-content .db-item .title {
    display: flex;
    width: 100%;
}

.popup .profile-form .tab-content .db-item .title > label {
    display: flex;
    flex-direction: row;
    
    align-items: center;
    justify-content: flex-start;
}

.popup .profile-form .tab-content .db-item .title > label > * {
    height: initial;
    margin: 0;
    padding: 0px 5px;
    
    background-color: transparent;
    font-weight: initial;
    text-transform: initial;
}

.popup .profile-form .tab-content .db-item input {
    width: auto;
    
    
    
    /* height: 100%; */
    
    /* display: flex; */
    /* flex-direction: row; */
    /* align-items: center; */
}

.popup .profile-form .tab-content .db-item .cols {
    max-height: 0px;
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    
    overflow: hidden;
    background-color: #eee;
    box-sizing: border-box;
}

.popup .profile-form .tab-content .db-item .cols input {
    margin-right: 5px;
}

.popup .profile-form .tab-content .db-item .cols.selected {
    max-height: 400px;
    height: 400px;

    padding: 5px;

    box-shadow: 0px 0px 1px black inset;
    
    overflow: auto;
}

.popup .profile-form .tab-content .db-item .cols label {
    width: auto;
    flex: none;

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

/* .popup .profile-form .tab-content .db-item */

.popup .profile-form .tab-content .db-item .cols .inner-tabs {
    max-width: 15%;
    flex: 1;
    
    display: flex;
    flex-direction: column;
    
    align-items: center;
    justify-content: flex-start;
}

.popup .profile-form .tab-content .db-item .cols .inner-tabs .inner-tabs-item {
    width: 100%;

    font-weight: bold;
    padding: 0 5;
    box-sizing: border-box;
}

/* .popup .profile-form .tab-content .db-item .cols .inner-tabs .inner-tabs-item:before { */
/*     content: "> "; */
/* } */

.popup .profile-form .tab-content .db-item .cols .inner-tabs .inner-tabs-item.selected {
    background-color: #333;
    color: white;    
}

.popup .profile-form .tab-content .db-item .cols .inner-tabs-contents {
    flex: 1;
    max-width: 85%;
    height: 100%;

    overflow: auto;
}

.popup .profile-form .tab-content .db-item .cols .inner-tab-content {
    display: none;
}

.popup .profile-form .tab-content .db-item .cols .inner-tab-content.selected {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;

    height: 100%;
    width: 100%;

    overflow: auto;
}

.popup .profile-form .tab-content .db-item .cols .inner-toolbar {
    display: flex;
    flex-direction: row;

    margin: 5px 0;
}

.popup .profile-form .tab-content .db-item .cols .inner-toolbar > * {
    border: 1px solid black;
    padding: 2px;
    box-shadow: 0px 0px 2px black;
    margin: 0 5;
    
    background-color: white;

    box-sizing: border-box;
}

.popup .profile-form .tab-content .db-item .cols .inner-toolbar > div > * {
    width: 24px;
}

.popup .profile-form .tab-content .db-item .cols .breadonly,
.popup .profile-form .tab-content .db-item .cols .bforbid {
    width: 24px;
    
    margin-right: 5px;
}

.popup .profile-form .formatcols {
    display: flex;
    flex-direction: row;
    
    align-items: center;
    justify-content: center;
    
    margin-top: 10px;
    margin-bottom: 20px;
}

.popup .profile-form .db-item > label {
    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: space-between;
    
    background-color: #eee;
    font-weight: bold;

    padding: 0 5px;
}

.popup .profile-form .formatcols .format-item {
    display: flex;
    flex-direction: row;
    
    align-items: center;
}

.popup .profile-form .formatcols .format-item > * {
    margin: 0 5;
}

.popup .profile-form .functions {
    flex-direction: row;
    display: flex;
    flex-wrap: wrap;
}

.popup .profile-form .functions > * {
    margin: 10px 0;
}

.popup .profile-form .functions .function-item {
    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: flex-start;
    
    width: 100%;
}

.popup .profile-form .functions .function-item > input {
    width: max-content;
    margin-right: 5px;
}

.popup .profile-form .functions .function-item span {
    font-weight: bold;
}

.popup .profile-form .functions .vgroup {
    width: calc(50% - 10px);
    background-color: #EEE;
    margin: 5;
    box-sizing: border-box;
    padding: 5;
}

.popup .profile-form .functions .description {
    font-style: italic;
}

.popup .profile-form .toolbar {
    width: 100%;
}

.popup .profile-form .form-account {
    display: none;
}

/* client preferences */

.popup .databases {
    height: 200px;
    
    width: 100%;
    display: flex;
    flex-direction: column;

    flex-wrap: wrap;
}

.popup .databases .database-item {
    display: flex;
    flex-direciton: row;
}

.popup .databases-list .toolbar {
    width: 100%;
    
    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}

.popup .databases-list .toolbar button {
    width: auto;
}

.popup .databases-list .toolbar select {
    width: 100%;
}

.popup .databases-list .databases .database-item > label {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    /* width: 100%; */
    flex: 1;
    height: fit-content;
    max-height: 100%;
    box-sizing: border-box;
}

.popup .databases-list .databases .database-item label > input {
    width: 24px;
}

.popup .profile-form .header {
    width: 100%;
}

.popup .profile-form .content {
    height: 100%;
    max-height: 100%;
}

.popup .profile-form .content .maincontent {
    height: 100%;
}

/* .popup .profile-form .block-account .maincontent .choices .choice-item-content.selected { */
/*     height: 300px !important; */
/* } */

.popup .profile-form .block-account .maincontent .choices .choice-item-content {
    overflow: inherit !important;
    /* flex-wrap: nowrap; */
}

.popup .profile-form .block-account .maincontent .choices .col-all .col-item {
    list-style-type: none;
}

.popup .profile-form .block-account .maincontent .choices .tab-col-content {
    flex-wrap: nowrap;
}

.popup .profile-form .block-account .toolbar {
    position: fixed;
    
    width: calc(80% - 83px);
}

.popup .profile-form .block-account .choices > p {
    margin-top: 30px;
}

.popup .profile-form .block-account .maincontent .choices .choice-item-content.selected {
    max-height: max-content;
}

/* .profile-form .noselect button { */
/*     color: var(--text-icolor); */
/* } */

.profile-form .block-account .maincontent {
    color: var(--text-color);
}
