@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic);

/* semantic-ui colors */
:root {
    --semantic-red: #db2828;
    --semantic-orange: #f2711c;
    --semantic-yellow: #fbbd08;
    --semantic-olive: #b5cc18;
    --semantic-green: #21ba45;
    --semantic-teal: #00b5ad;
    --semantic-blue: #2185d0;
    --semantic-violet: #6435c9;
    --semantic-purple: #a333c8;
    --semantic-pink: #e03997;
    --semantic-brown: #a5673f;
    --semantic-grey: #767676;
    --semantic-black: #1b1c1d;

    --semantic-subtleTransparentBlack: rgba(0, 0, 0, 0.03);
    --semantic-transparentBlack: rgba(0, 0, 0, 0.05);
    --semantic-strongTransparentBlack: rgba(0, 0, 0, 0.1);
    --semantic-veryStrongTransparentBlack: rgba(0, 0, 0, 0.15);

    --semantic-subtleTransparentWhite: rgba(255, 255, 255, 0.02);
    --semantic-transparentWhite: rgba(255, 255, 255, 0.08);
    --semantic-strongTransparentWhite: rgba(255, 255, 255, 0.15);
}

/* Missing icons from new FontAwesome version */
i.icon.shopify {
    font-family: "Font Awesome 6 Brands";
}
i.icon.shopify::before {
    content: "\e057";
}
/* END Missing icons from new FontAwesome version */

.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

html,
body {
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: "open-sans", sans-serif;
    overflow: hidden;
}

#mainHeader {
    display: flex;
    height: 64px;
    background: #1e4169;
    color: white;
}
#mainHeader .logo {
    border-right: 1px solid transparent;
    position: relative;
}
#mainHeader .logo img {
    margin: 6px 1em;
    height: 52px;
}
#mainHeader .fullWidth {
    display: none;
    align-items: center;
    padding: 0.75em;
    border-left: 1px solid #ffffff80;
}
.panelBreadcrumbs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 64px;
    font-size: 1.05rem;
    flex-grow: 1;
}
.panelBreadcrumbs li {
    padding-left: 1em;
    padding-right: 0.75em;
    border-right: 1px solid transparent;
    position: relative;
    cursor: pointer;
}
#mainHeader .logo::after,
.panelBreadcrumbs li::after {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    top: 0;
    right: -1px;
    border-right: 1px solid;
    opacity: 0.5;
}
.panelBreadcrumbs li.active {
    font-weight: 600;
}
.panelBreadcrumbs li i.icon {
    margin: 0 0 0 0.5em;
}

#panelWrapper {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    height: 100%;
    box-sizing: border-box;
    padding-top: 64px;
    margin-top: -64px;
}

.panel {
    flex: 1 1 auto;
    display: none;
    min-width: 300px;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}
.panel.active {
    display: block;
    width: 100%;
}

.panel.secondary {
    border-left: 1px solid #ddd;
}
.menu.panel {
    flex: 0 0 auto;
    width: 300px;
    background: #f8f8f8;
    border-right: 1px solid #ddd;
    padding-left: 0;
    margin-left: 0;
}
@media only screen and (min-width: 1300px) {
    #mainHeader .logo {
        width: 300px;
    }
    #mainHeader .fullWidth {
        display: flex;
    }
    .menu.panel {
        display: block;
    }
    body.fullWidth #mainHeader .logo {
        width: auto;
    }
    body.fullWidth .menu.panel {
        display: none;
    }
    body.fullWidth .menu.panel.active {
        display: block;
    }
}
.panel header {
    display: none;
    background: #2d6aae;
    color: white;
    height: 23px;
    padding: 2px;
    box-sizing: border-box;
    text-align: right;
}
.panelBody {
    height: 100%;
    box-sizing: border-box;
    /*padding-top: 23px;
	margin-top: -23px;*/
    overflow: hidden;
}

.panelBody > .scrollBox {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}
.scrollBox > .panelContent {
    padding: 1em;
    max-width: 1000px;
    margin: 0 auto;
}

.scrollBox > .panelContent.fullWidth {
    max-width: none;
}

.scrollBox > .panelContent.fixedHeight {
    height: 100%;
}

.panel .closeBtn {
    display: inline-block;
    height: 16px;
    width: 16px;
    line-height: 16px;
    text-align: center;
    vertical-align: top;
    font-size: 12px;
    font-weight: bold;
}
.panel .closeBtn::before {
    content: "X";
}
.limited-width {
    max-width: 600px;
}

/* component */
.component {
    margin-bottom: 12px;
}

.connectedSortable {
    padding-bottom: 2em;
    min-height: 35px;
}

.priceGroups,
.choices {
    margin: 1em 0;
}

/* priceGroups */
.priceGroup .header {
    background: #2d6aae;
    color: white;
    height: 20px;
    padding: 2px;
    box-sizing: border-box;
}

.priceGroup .articles {
    list-style-type: none;
    padding: 0 5px;
}

.priceGroup .articles .article {
    padding: 2px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
}

.ui-sortable-handle {
    cursor: move;
    background-color: white;
}
body > .ui-sortable-helper {
    cursor: move;
    background-color: white;
    list-style-type: none;
    border-top: 1px solid #ccc;
    padding: 1em;
}

.crop {
    overflow: hidden;
}

.crop img {
    max-height: 52px;
    overflow: hidden;
}

.imageRow.crop img {
    max-height: 8pc !important;
    overflow: hidden;
}

.ui.centered.image {
    max-height: 400px;
    max-width: 572px;
}

.CodeMirror,
.CodeMirror-scroll {
    min-height: 100px !important;
}

.imageRow {
    height: 5pc;
}

.imageCell {
    width: 5pc;
}

.imageContainer {
    background-color: transparent;
}

.block .header:after,
.block .content:after {
    content: "";
    display: table;
    clear: both;
}

.collapseBlocks .block .content {
    display: none;
}
.block .header.ui-sortable-handle {
    cursor: default;
}
.collapseBlocks .block .header.ui-sortable-handle {
    cursor: move;
}

/*.ui.grid>.row{
	padding-top: 0.5rem !important;
	padding-bottom: 0.5rem !important;
}*/
.ui.grid > .row + .row {
    padding-top: 0;
}

.ui.grid > .row.nopadding {
    padding: 0em !important;
}

.sideBySideEditor {
    display: flex;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding-top: 140px;
    margin-top: -140px;
}
.sbsPreview iframe {
    border: 1px solid rgba(34, 36, 38, 0.15);
    border-radius: 0.29rem;
    width: 100%;
    height: 100%;
    flex: 0 0;
}
.sbsSpacer {
    width: 16px;
    cursor: col-resize;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sbsIndicator {
    height: 80px;
    width: 0px;
    border-left: 4px double #aaa;
}
.sbsEditor {
    flex: 1 0;
    overflow: hidden auto;
    padding-right: 5px;
}

/* wiki */

.wikiContent p {
    line-height: 1.6em;
}

.wikiContent table {
    border-collapse: collapse;
    border: 1px solid;
    margin: 1em 0;
}

.wikiContent table td,
.wikiContent table th {
    border: 1px solid;
    padding: 0.5em;
}

.wikiContent img,
.mde-preview-content img {
    max-width: 100%;
}

.wikiContent .mde-preview-content table {
    border: 0;
}

.wikiContent figure {
    display: inline-block;
    border: 1px solid #ccc;
    background-color: #eee;
    margin: 0.4em;
    float: right;
    clear: right;
    max-width: 290px;
}
.wikiContent figure img {
    max-width: 270px;
    margin: 0.5em;
}
.wikiContent figure figcaption {
    text-align: left;
    font-size: 1em;
    padding: 0 0.5em 0.5em 0.5em;
}
.wikiContent a[target="_blank"]::after {
    content: "\f35d";
    font-family: "Icons";
    margin-left: 6px;
    font-size: 0.9em;
    vertical-align: bottom;
}
.wikiContent code {
    background: var(--semantic-transparentBlack);
    padding: 0.1em 0.3em;
    border-radius: 0.3em;
    font-size: 0.9em;
}
.wikiContent pre {
    background: var(--semantic-subtleTransparentBlack);
    padding: 1em;
    border-radius: 0.5em;
    font-size: 0.9em;
}
.wikiContent pre > code {
    /* reset inline code-element styles, if already styled by parent pre-element */
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.copyToClipboard i.copy.link.icon {
    opacity: 0;
}
.copyToClipboard:hover i.copy.link.icon {
    opacity: 0.8;
}

.ui.header i.chevron.icon {
    font-size: 1em;
    vertical-align: top;
}

/*Temporary fix for all reactGrid stickyLeftColumns => Remove if fixed in a few weeks
bugReport: https://github.com/silevis/reactgrid/issues/229
 */

.rg-pane.rg-pane-left {
    z-index: 1;
}

.rg-pane.rg-pane-top {
    z-index: 2 !important;
}

.rg-pane.rg-pane-right.rg-pane-top {
    z-index: 3 !important;
}

.rg-pane.rg-pane-left.rg-pane-top {
    z-index: 3 !important;
}

.reactgrid-content .rg-pane .rg-cell.rg-dropdown-cell .rg-dropdown-option.selected::before {
    content: none !important;
}
.reactgrid-content .rg-pane .rg-cell.rg-dropdown-cell .rg-dropdown-option.selected {
    /*background-color: #2185d0 !important;
    color: white !important;*/
    font-weight: bold;
}
.reactgrid-content .rg-pane .rg-cell.rg-dropdown-cell .rg-dropdown-option.disabled {
    color: #808080;
}
