.client-header {
    background-color: #E0E0E0;
    border-bottom: #f37026 3px solid;
    padding: 0.2em 1em;
}

.client-header .font-icon {
    display: block;
}

.client-header-title {
    font-size: 24px;
    font-weight: 500;
    padding-left: 10px;
}

.client-header .c4-logo {
    height: 32px;
}

c4-view-stack#content-primary + c4-view-stack#content-secondary {
    border-left: #5B5B5B solid 1px;
}

.c4-dialog-popup .previewDynamic {
    max-width: 1200px;
}

.font-icon {
    display: inline-block;
    font: normal normal normal 16px/1 "Font Awesome 5 Free";
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-icon.d-icon {
    /* width: 1em; */
    display: flex;
    justify-content: center;
}

.font-icon-c4 {
    display: inline-block;
    font: normal normal normal 14px/1 FontC4;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    color: #5B5B5B;
}

.font-icon-action {
    font-size: 22px;
    width: 26px;
    height: 26px;
    text-align: center;
}

/* @deprecated since version 5.1.4 because Font Awesome library has same css class. Will be removed in next "major release"  */
.fa-1x {
    font-size: 1em;
}

.fa-25x {
    font-size: 2.5em;
}

.c4-search  div.dijitInputField:before,
.color-ui-hint {
    color: #BEBEBE;
}

.color-button {
    color: #5B5B5B;
}

.color-negative {
    color: #C54747;
}

.color-positive {
    color: #7BBB97;
}

.color-info {
    color: #0b6dc4;
}

.color-selected {
    color: #428BCA !important;
}

.color-myselection {
    color: #C31414 !important;
}

.color-myworkspace {
    color: #4CAF50 !important;
}

.color-background-myselection {
    background-color: #C31414;
}

.color-unknown {
    color: #C54747 !important;
    padding: 4px 0.5em;
}

.d-selected .color-unknown {
    color: #da8b8b !important;
}

.c4-field-mandatory,
.color-mandatory {
    color: #fa8517;
}

.iconGallery:before,
.iconThumbnails:before {
    font-weight: 900;
    content: "\f00a";
}

.iconPreviews:before {
    font-weight: 900;
    content: "\f03a";
}

.iconTable:before {
    font-weight: 900;
    content: "\f0ce";
}

.c4-loading {
    background: transparent url('images/ui/loading.svg') center no-repeat;
    background-size: 32px 32px !important;
    min-width: 48px;
    min-height: 48px;
}

.discoBlue:hover {
    color:whitesmoke;
}

.discoBlue > .c4-disco-element-background:hover {
    background-image: none !important;
    background-color: #0d85ef !important;
}

.discoGreen:hover {
    color:whitesmoke;
}

.discoGreen > .c4-disco-element-background:hover {
    background-image: none !important;
    background-color: #089007 !important;
}

.iconBasketBig {
    background: transparent url('images/componenttypes/basketbig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconBasketMini {
    background: transparent url('images/componenttypes/basketmini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconBasketList {
    background: transparent url('images/componenttypes/basketlist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconChannelBig {
    background: transparent url('images/componenttypes/channelbig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconChannelMini {
    background: transparent url('images/componenttypes/channelmini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconChannelList {
    background: transparent url('images/componenttypes/channellist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconChrDefBig {
    background: transparent url('images/componenttypes/chrdefbig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconChrDefMini {
    background: transparent url('images/componenttypes/chrdefmini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconChrDefList {
    background: transparent url('images/componenttypes/chrdeflist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconChrListBig {
    background: transparent url('images/componenttypes/chrlistbig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconChrListMini {
    background: transparent url('images/componenttypes/chrlistmini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconChrListList {
    background: transparent url('images/componenttypes/chrlistlist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconConfigurationBig {
    background: transparent url('images/componenttypes/configurationbig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconConfigurationMini {
    background: transparent url('images/componenttypes/configurationmini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconConfigurationList {
    background: transparent url('images/componenttypes/configurationlist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconDocumentBig {
    background: transparent url('images/componenttypes/Documentbig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconDocumentMini {
    background: transparent url('images/componenttypes/documentmini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconDocumentList {
    background: transparent url('images/componenttypes/documentlist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconNotificationBig {
    background: transparent url('images/componenttypes/notificationbig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconNotificationMini {
    background: transparent url('images/componenttypes/notificationmini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconNotificationList {
    background: transparent url('images/componenttypes/notificationlist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconTableBig {
    background: transparent url('images/componenttypes/tablebig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconTableMini {
    background: transparent url('images/componenttypes/tablemini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconTableList {
    background: transparent url('images/componenttypes/tablelist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconEps {
    background: transparent url('images/filetypes/image.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconEpub,
.iconTxt{
    background: transparent url('images/filetypes/text.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconExcel {
    background: transparent url('images/filetypes/excel.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconFilterBig {
    background: transparent url('images/componenttypes/filterbig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconFilterMini {
    background: transparent url('images/componenttypes/filtermini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconFilterList {
    background: transparent url('images/componenttypes/filterlist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconImageBig > img {
    background: transparent url('images/componenttypes/imagebig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconImageMini > img {
    background: transparent url('images/componenttypes/imagemini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconFreeBackground {
    background: transparent center no-repeat !important;
}

.iconImageDownloadOriginal {
    background: transparent url('images/actions/imagedownloadoriginal.png') center no-repeat;
    width: 32px;
    height: 32px;
    font-size: 32px;
}

.iconImageDownloadPress {
    background: transparent url('images/actions/imagedownloadpress.png') center no-repeat;
    width: 32px;
    height: 32px;
    font-size: 32px;
}

.iconImageDownloadScreen {
    background: transparent url('images/actions/imagedownloadscreen.png') center no-repeat;
    width: 32px;
    height: 32px;
    font-size: 32px;
}

.iconImageDownloadWeb {
    background: transparent url('images/actions/imagedownloadweb.png') center no-repeat;
    width: 32px;
    height: 32px;
    font-size: 32px;
}

.iconImageList {
    background: transparent url('images/componenttypes/imagelist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconIndd {
    background: transparent url('images/filetypes/indd.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconJpg {
    background: transparent url('images/filetypes/image.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconItemBig {
    background: transparent url('images/componenttypes/itembig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconItemMini {
    background: transparent url('images/componenttypes/itemmini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconItemList {
    background: transparent url('images/componenttypes/itemlist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconOutputTemplateBig {
    background: transparent url('images/componenttypes/outputtemplatebig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconOutputTemplateMini {
    background: transparent url('images/componenttypes/outputtemplatemini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconOutputTemplateList {
    background: transparent url('images/componenttypes/outputtemplatelist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconPdf {
    background: transparent url('images/filetypes/pdf.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconPng {
    background: transparent url('images/filetypes/image.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconProductBig {
    background: transparent url('images/componenttypes/productbig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconProductMini {
    background: transparent url('images/componenttypes/productmini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconProductList {
    background: transparent url('images/componenttypes/productlist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconSelectSelected {
    background: transparent url('images/views/selectselected.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconSMDBig {
    background: transparent url('images/componenttypes/smdbig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconSMDMini {
    background: transparent url('images/componenttypes/smdmini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconSMDList {
    background: transparent url('images/componenttypes/smdlist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconStructureBig {
    background: transparent url('images/componenttypes/structurebig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconStructureMini {
    background: transparent url('images/componenttypes/structuremini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconStructureList {
    background: transparent url('images/componenttypes/structurelist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconTextsectionBig {
    background: transparent url('images/componenttypes/textsectionbig.png') center no-repeat;
    width: 130px;
    height: 130px;
}

.iconTextsectionMini {
    background: transparent url('images/componenttypes/textsectionmini.png') center no-repeat;
    width: 32px;
    height: 32px;
}

.iconTextsectionList {
    background: transparent url('images/componenttypes/textsectionlist.png') center no-repeat;
    width: 16px;
    height: 16px;
}

.iconLanguage {
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    display: inline-block;
}

.iconSMD {
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    display: inline-block;
}

.iconBULGARIAN {
    background-image: url('images/languages/bg24.png');
}

.iconCHINESE {
    background-image: url('images/languages/cn24.png');
}

.iconCROATIAN {
    background-image: url('images/languages/hr24.png');
}

.iconCZECH {
    background-image: url('images/languages/cz24.png');
}

.iconDANISH {
    background-image: url('images/languages/dk24.png');
}

.iconDUTCH {
    background-image: url('images/languages/nl24.png');
}

.iconENGLISH {
    background-image: url('images/languages/uk24.png');
}

.iconENGLISHAU {
    background-image: url('images/languages/au24.png');
}

.iconENGLISHUK {
    background-image: url('images/languages/uk24.png');
}

.iconENGLISHUS {
    background-image: url('images/languages/us24.png');
}

.iconESTONIAN {
    background-image: url('images/languages/ee24.png');
}

.iconFINNISH {
    background-image: url('images/languages/fi24.png');
}

.iconFRENCH {
    background-image: url('images/languages/fr24.png');
}

.iconGERMAN {
    background-image: url('images/languages/de24.png');
}

.iconGREEK {
    background-image: url('images/languages/gr24.png');
}

.iconHUNGARIAN {
    background-image: url('images/languages/hu24.png');
}

.iconITALIAN {
    background-image: url('images/languages/it24.png');
}

.iconJAPANESE {
    background-image: url('images/languages/jp24.png');
}

.iconKOREAN {
    background-image: url('images/languages/kr24.png');
}

.iconNORWEGIAN {
    background-image: url('images/languages/no24.png');
}

.iconPOLISH {
    background-image: url('images/languages/pl24.png');
}

.iconPORTUGUESE {
    background-image: url('images/languages/pt24.png');
}

.iconROMANIAN {
    background-image: url('images/languages/ro24.png');
}

.iconRUSSIAN {
    background-image: url('images/languages/ru24.png');
}

.iconSLOVAK {
    background-image: url('images/languages/sk24.png');
}

.iconSPANISH {
    background-image: url('images/languages/es24.png');
}

.iconSWEDISH {
    background-image: url('images/languages/se24.png');
}

.panel {
    padding: 1em 1em 1em 64px;
    margin: 5px 0;
    min-height: 52px;

    -webkit-border-radius:5px;
    -moz-border-radius:5px;
    border-radius: 5px;

    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;

    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.panel > div:first-child::before {
    font: normal normal normal 14px/1 "Font Awesome 5 Free";
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 2em;

    position: absolute;
    left: -44px;
    top: -4px;
}

.panel div+div {
    margin-top: 0.5em;
}

.panelWarning {
    background-color: rgb(228, 102, 102);
    color:white;
}

.panelWarning > div:first-child::before {
    content: '\f071';
    color: white;
}

.panelInfo {
    border: #0b6dc4 solid 1px;
}

.panelInfo > div:first-child::before {
    content: '\f05a';
    color: #0b6dc4;
}

.previewDynamic {
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

.previewDynamic > * + * {
    margin-left: 2em;
}

@media (max-width:1532px) {
    .previewDynamic {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        -webkit-box-orient: vertical;
        -moz-box-orient: vertical;
        flex-direction: column;

        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;

        min-height: 605px; /*needed by iPad, otherwise scrolling does not work when content is only lsightly bigger than scroller*/
    }

    .previewDynamic > * + * {
        margin-top: 1em;
        margin-left: 0;
        max-width: 100%;
    }
}


.tdHeader {
    padding: 4px 1em;
    vertical-align: text-top;
}

.tdValue {
    padding: 4px 0;
    vertical-align: top;
}

.c4-selection .c4-field-container-status[target=selection] {
    visibility: hidden;
    display: none;
}

img[src=""] { /* Needed for empty icons (src="") in combobox in IE */
    display: none;
}

.c4-component-editor-changed {
    text-align: right;
    font-weight: 300;
    color: #aaa;
    margin-top: 2em;
    margin-right: 0.75em;
}

.c4-workspace-filter-popup {
    padding: 1em;
    width: 100%;
}

.c4-workspace-filter-popup .c4-control-combobox,
.c4-workspace-filter-popup .c4-control-textbox {
    width: 100%;
}

.c4-control-relation-toolbar {
    float: right;
    align-items: center;
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
}

/* Override switch state when used in c4-relation-field where clicking label not trigging correct state */
.c4-control-switch.d-checked > input.-d-switch-input + div.-d-switch-push {
    margin-left: -30px;
}
.c4-control-switch > input.-d-switch-input + div.-d-switch-push {
    margin-left: 0px;
}

.c4-comparer-diff {
    padding: 1em;
    border-bottom: gray solid 1px;
}

.c4-comparer-diff > pre > span {
   white-space: normal; 
}

/* Remove margin from p tags in compare versions */
.field-valuePrev > div > p {
    margin: 0;
}
.field-valueLater > div > p {
    margin: 0;
}

.c4-control-gridselect > div {
    max-height: 700px;
    overflow-y: auto;
}

.c4-control-gridselect .dgrid-cell {
    vertical-align: middle;
    padding: 3px;
    border-left-style: none;
    border-right-style: none;
}

.c4-control-gridselect > div::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	border-radius: 10px;
	background-color: #F5F5F5;
}

.c4-control-gridselect > div::-webkit-scrollbar
{
	width: 12px;
	background-color: #F5F5F5;
}

.c4-control-gridselect > div::-webkit-scrollbar-thumb
{
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	background-color: #efefef;
}

.c4-control-gridselect-wrapper {
    display: flex;
    flex-direction: column;
    padding: 1em;
}

.c4-control-gridselect .dgrid:not(.faded) {
    opacity: 1;
    transition: opacity 2s ease-out;
    
}
.c4-control-gridselect .dgrid.faded {
    opacity: 0;
}

.characteristicspage.editor-wrapper .c4-panel {
    display: flex;
    flex-direction: column;
    animation: charactersiticspage-panel-fading 0.8s ease-out;
}

@keyframes charactersiticspage-panel-fading {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* fixes for rightclick menu to work in IE */
.c4-tooltip .c4-action-button .d-linear-layout,
.d-popup>*>.c4-action-button .d-linear-layout {
	flex: 0 0 auto;
	max-width:100%;
}
.c4-tooltip .c4-action-button-tooltip,
.d-popup>*>.c4-action-button .c4-action-button-tooltip {
	position: relative;
    margin-right: 60px;
	max-width:100%;
}
.c4-tooltip .c4-action-button>.d-linear-layout>*:first-child,
.d-popup>*>.c4-action-button>.d-linear-layout>*:first-child {
	min-width:32px;
}
body>iframe:last-child { /* this iframe appears when downloading a file. */
	top:-20px;
}

/* paging css */
.dgrid-pagination {
    width: 100%;
    padding-bottom: 20px;
 }
 /* c4-view-stack#content .dgrid-footer { */
 c4-component-list .dgrid-footer {
    display: flex;
    justify-content: space-between;
    flex-flow: wrap-reverse;
    align-items: center;
 }
  
 /*
 * c4-component-list .dgrid-footer display selector overrides display of dgrids own dgrid-footer-hidden
 * This makes the dgrid-footer-hidden class take presence once again in the c4-component-list element
 */
 c4-component-list .dgrid-footer-hidden {
     display: none;
 }

 .c4-component-list .dgrid-content .dgrid-cell,
 .c4-control-relation .dgrid-content .dgrid-cell,
 .c4-selection .dgrid-content .dgrid-cell {
     padding: 0.65em;
 }

 .c4-vue-mapping-builder {
     min-width: 80vw;
 }


 /** view - TEMPLATE STYLE ***/
.template-view-wrapper {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.parent-wrapper {
    padding: 2em;
}
.component-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 2em;
    overflow-y: auto;
}
.data-wrapper {
    display: flex;
    flex-direction: column;
    padding-right: 1em;
}
.base-data-wrapper {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
}
.base-data-wrapper-data {
    display: flex;
    min-width: 350px;
    flex-direction: column;
    flex: 1;
}

.base-data-wrapper-data-header {
    display: flex;
    flex-direction: column;
    padding-left: 1em;
}

.base-data-wrapper-data-table {
    border: 0px none;
    padding: 0px;
    margin-top: 1em;
    width: 100%
}

.base-data-wrapper-thumbnail {
    padding-left: 2em;
    padding-bottom: 1em;
}

.other-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.other-wrapper-panel .c4-panel-titlebar {
    padding-left: 1em;
}

.control-relation-table {
	max-height: 300px;
	overflow: auto;
}

.c4-chart-filter-template {
    display: inherit;
    width: 50%;
    column-gap: 1em;
    padding-right: 2em;
}

.c4-chart-container {
    height: 60vh;
    width: 100%;
    padding: 1em;
}
/*'sm': '640px' */
/* @media (min-width: 640px) { ... } */

/* 'md': '768px', */
@media (min-width: 1280px) {
    .base-data-wrapper {
        flex-direction: row;
        justify-content: center;
    }

    .base-data-wrapper-thumbnail {
        padding-bottom: 0;
    }
}

/* 'lg': '1024px', */
@media (min-width: 1800px) {
    /*  */
    .data-wrapper {
        flex: 1;
    }
    /* .base-data-wrapper {
        flex-direction: column;
    } */
    .component-wrapper {
        flex-direction: row;
    }
    .other-wrapper {
        flex-direction: column;
    }
}

/* 'xl': '1280px', */
/* Dont think we need this... */
@media (min-width: 2400px) {

    .other-wrapper {
        flex-direction: row;
        flex: 2;
    }
 }

 /* Chrome, Safari, Edge, Opera */
.c4-searchpart-advanced-value-double input::-webkit-outer-spin-button,
.c4-searchpart-advanced-value-double input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.c4-searchpart-advanced-value-double input[type=number] {
  -moz-appearance: textfield;
}
