/* THEME VARIABLES */
:root {
    --primary-color: #00B5AD;
    --secondary-color: blue;
    --tertiary-color: blue;
    --font-color: black;
    --dark-color: gray;
    --font-basic: 'sans-serif';
    --error-red: #DB2828;
    --bright-gray: rgba(34, 36, 38, 0.15);
    --ultra-bright-gray: rgba(0, 0, 0, 0.05);
}

/* GLOBAL */
.ui.modal {
    overflow-y: auto;
    max-height: 100vh;
}
@media only screen and(min-width: 1024px) {
    .ui.modal {
        max-height: 90vh;
    }
}

@media only screen and (min-width: 1440px) {
    .ui.modal {
        width: 1280px;
        margin: 0em 0em 0em 0em;
    }
}
@media only screen and (max-width: 1024px) {
    .ui[class*="three column"].grid > .column:not(.row) {
        width: 100%;
    }
}


@media only screen and (max-width: 1440px) and (min-width: 1024px){
    .ui[class*="three column"].grid > .column:not(.row) {
        width: 50%;
    }
}

.nomargin {
    margin: 0 !important;
}

a:hover > .icon,
.ui.icon.floating.dropdown:hover > .icon {
    color: var(--font-color);
}
a:hover > svg path {
    fill: var(--font-color);
}

.ui.grid.custom-section.grid {
    margin: 0;
}

.ui.accordion .title {
    width: 100%;
}
.ui.accordion .content {
    width: 100%;
}

.ui.accordion .content .ui.styled.fluid div[data-locale] {
    margin-bottom: 0.5em;
    padding: 1.5em;
}
.ui.accordion .content .ui.styled.fluid div[data-locale]:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    margin: 0;
}

.select2-selection.select2-selection--multiple.select2-selection--multiple {
    display: flex;
}

.ui.labeled.input .ui.label {
    background: var(--bright-gray) !important;
}

/* ATOMS */

.activate-all-button {
    margin-bottom: 0.5em;
}

.ui.dividing.header {
    flex: 0 0 100%;
}

.ui.label > .icon {
    margin: 0;
}

.ui.label.ui.label,
.ui.label.ui.label.no {
    background-color: transparent !important;
    border-color: transparent !important;
}

.ui.label.ui.label {
    color: var(--primary-color) !important;
}

.ui.label.red.red,
.ui.label.ui.label.no {
     color: var(--error-red) !important;
}

/* MOLECULES */

.ui.breadcrumb.breadcrumb {
    margin-bottom: 1em;
}

.ui.buttons {
    text-align: right;
}

.ui.buttons.d-block > * {
    display: inline-block;
    min-width: 30px;
    text-align: center;
}
.ui.buttons .button {
    border-radius: 0.28571429rem !important;
    margin-right: 0.25em;
}

.ui.active.dimmer.dimmer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

form > .buttons.buttons.buttons.ui.buttons {
    position: fixed;
    bottom: 0;
    left: 260px;
    right: 0;
    display: block;
    z-index: 10;
    background: white;
    border: black thin;
    padding: 1rem 2rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.sidebar.uncover:not(.visible) ~ .pusher form > .buttons.buttons.buttons.ui.buttons {
    left: 0px;
}

/* PRICING MODAL */

div[id*=productVariantPricing] .ui.accordion.segment>.required.field label.required:first-child {
    display: none;
}
td div.price-table {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

div.price-table .field {
    max-width: 200px;
}

div.price-table .field label {
    display: block;
}

div.price-table .ui.action.input input[type="text"] {
    max-width: 80px;
    border-right-color: var(--bright-gray) !important;
}

.ui.action.input:not([class*="left action"]) > input {
    border-right-color: var(--bright-gray) !important;
}

div[id*=productVariantPricing] .sales-price {
    padding: 0.5rem 0;
}

div[id*=productVariantPricing] .sales-price input {
   margin-right: 0.5rem;
}

div[id*=productVariantPricing] table.channel-option {
    padding: 1em 0;
}
.custom-modal-content {
    outline: 1px solid transparent;
}

/* REST */
.sylius-grid-nav__bulk form {
    display: inline-block;
}
.d-flex {
    display: flex;
}
.d-none {
    display: none;
}

.sylius-product-index .sylius-table-column-actions {
  min-width: 120px;
}

.sylius-table-column-isAvailableForDelivery, .sylius-table-column-isAvailableForTakeaway, .sylius-table-column-isAvailableForIndining, .sylius-table-column-isAvailableForUberEats {
  word-break: break-all;
  white-space: pre-wrap !important;
}

.sylius-product-index .ui.celled.table tr td, .sylius-product-index .ui.celled.table tr th {
  width: 60px;
}

th.sylius-table-column-channels {
    min-width: 200px;

}

.sylius-product-index table td .ui.list {
  font-size: 10px;
}

.sylius-product-index table td .ui.buttons {
  flex-direction: column;
}


.sylius-product-index table td .ui.buttons .button {
  border-radius: 4px;
  margin-bottom: 0.2em;
}

.sylius-product-index table td .ui.buttons .ui.red.labeled.button {
  border-radius: 4px !important;
}


/* two fields filters */

.two.fields > .sylius-filters__group {
  display: flex;
  width: 50%;
}

.two.fields {
  align-items: baseline;
}

.two.fields.two.fields > div {
    margin-right: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
}

.sylius-filters__group .disabled.field{
  width: 38px;
}

label[for="criteria_total_greaterThan"],
label[for="criteria_total_lessThan"] {
  font-size: 0 !important;
  line-height: 0 !important;
}

label[for="criteria_total_greaterThan"]:before {
  content: "Betrag von";
  font-size: 14px;
  line-height: 1.4;
}

label[for="criteria_total_lessThan"]:before {
  content: "Betrag bis";
  font-size: 14px;
  line-height: 1.4;
}

.sylius-tree__title span.description {
  display: block;
  color: gray !important;
  font-size: 0.85rem;
}

.wrapper1{
    width: 100%;
    overflow-x: scroll;
    overflow-y:hidden;
    height: 20px;
}

.wrapper-div1 {
    width: 100%;
    height: 20px;
}
.taxonsCheckboxTree:hover {
    background-color: grey !important;
}
i.icon.custom-checkmark:before {
    position: absolute;
    width: 20px;
    padding-right: 10px;
}

td {
    /* display: inline-flex; */
}

.ui.floating.dropdown > .menu {
    left: auto;
    right: 0;
}

.no-div-button.no-div-button.no-div-button {
    background: none;
    color: #1abb9c;
}


#sylius_save_changes_button, #sylius_cancel_changes_button{
    float: left !important;
    margin-left: 5px;
}

.d-block.d-block.d-block {
    display: block;
}

.d-inline.d-inline.d-inline {
    display: inline;
}

.ml-1.ml-1.ml-1 {
    margin-left: 5px;
}

.no-button.no-button.no-button {
    background: none;
    color: #1abb9c;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: inherit;
}

#sylius_cancel_changes_button {
    float: right;
}

.ui.visible.left.sidebar ~ .pusher.pusher.pusher {
    transform: none;
    padding-right: 0;
    margin-left: 260px;
}
.ui.visible.right.sidebar ~ .pusher {
    transform: none;
    padding-right: 0;
    margin-left: 0;
}

.channelSelector > div {
    width: 100%;
}

.actionTable > tr > td {
    padding-top: 5px;
    padding-bottom: 5px;
}

.select2-container.select2-container.select2-container {
    width: 100% !important;
}

.custom-container.custom-container.custom-container {
    background-color: whitesmoke;
}

.custom-section.custom-section.custom-section {
    background-color: white;
    margin-bottom: 30px;
}

.active.section {
    color: #5FEBAB !important;
}

.brand-enabled.brand-enabled.brand-enabled.brand-enabled {
    background-color: #5FEBAB;
}

:root {
    accent-color: #5FEBAB !important;
}

.ui.accordion:not(.styled) .title ~ .content:not(.ui), .ui.accordion:not(.styled) .accordion .title ~ .content:not(.ui) {
    padding: 0;
}

.ui.modal .content .icon {
    display: inline;
}

.ui.modal .scrolling.content {
    max-height: calc(100% - 65px) !important;
    overflow: visible !important;
}

.brand-title.active h4,
.brand-option .title.active h4{
    color: var(--primary-color);
}

.brand-title.active .collapser-icon {
    color: var(--primary-color);
}

div[id*=productVariantPricing] table.channel-option {
    border-radius: 5px;
    padding: 0.75rem;
    margin: 0.75rem 0;
    border: 1px solid var(--bright-gray);
}

div[id*=productInventory] .ui.styled.accordion {
    width: 100%;
}

.ui.styled.accordion input[type="number"],
.custom-modal-content input[type="number"] {
    font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
    margin: 0em;
    outline: none;
    -webkit-appearance: none;
    tap-highlight-color: rgba(255, 255, 255, 0);
    line-height: 1.21428571em;
    padding: 0.67857143em 1em;
    font-size: 1em;
    background: #FFFFFF;
    border: 1px solid rgba(34, 36, 38, 0.15);
    color: rgba(0, 0, 0, 0.87);
    border-radius: 0.28571429rem;
    box-shadow: 0em 0em 0em 0em transparent inset;
    transition: color 0.1s ease, border-color 0.1s ease;
}

label[for*="_onHand"] {
    margin-right: 0.5em;
}

div[id*="promotion_actions"] table.channel-option {
    margin-bottom: 1rem;
}

div[id*="promotion_actions"] .ui.action.input {
    display: block;
    text-align: right;
}

div[id*="promotion_actions"] .content.active  {
    height: auto !important;
}

div[id*="promotion_actions"] .ui.action.input input[type="text"] {
    width: 120px;
}

div[id*="promotion_actions"] .channel-option td {
    width: 50%;
}

@media screen and (max-width: 1680px) {
    div[id*="promotion_actions"] .channel-option td {
        width: 100%;
        display: block;
    }
}

/* break actions and rules earlies */

@media screen and (max-width: 1440px) {
    form[name="sylius_promotion"] .column#actions,
    form[name="sylius_promotion"] .column#rules
    {
        width: 100%;
    }
}

.label.label.label {
    white-space: nowrap;
}

.buttons.buttons.buttons {
    white-space: nowrap;
}

form > .buttons.buttons.buttons.ui.buttons a[data-requires-confirmation] {
   background: var(--error-red) !important;
}

.sylius-tree.sylius-tree.sylius-tree {
    min-width: 150px;
}

.mb-1 {
    margin-bottom: 1rem;
}

@media only screen and (max-width: 1120px) and (min-width: 750px) {
    .sylius-product-index.sylius-product-index.sylius-product-index {
        float: right;
        padding-left: 40px !important;
    }
}
@media only screen and (max-width: 730px) {
    .sylius-tree.sylius-tree.sylius-tree {
        min-width: auto;
    }
}

@media screen and (max-width: 1439px) {
    .ui.grid > .row > [class*="thirteen wide"].column, .ui.grid > .column.row > [class*="thirteen wide"].column, .ui.grid > [class*="thirteen wide"].column, .ui.column.grid > [class*="thirteen wide"].column {
        width: 100% !important;
    }
    .ui.column.grid>[class*="sixteen wide tablet"].column, .ui.grid>.column.row>[class*="sixteen wide tablet"].column, .ui.grid>.row>[class*="sixteen wide tablet"].column, .ui.grid>[class*="sixteen wide tablet"].column {
        width: 100% !important;
    }
    .ui.grid > .row > [class*="three wide"].column, .ui.grid > .column.row > [class*="three wide"].column, .ui.grid > [class*="three wide"].column, .ui.column.grid > [class*="three wide"].column {
        width: 100% !important;
    }
}
.custom-max-width {
    width: 100%;
}
@media screen and (min-width: 750px) {
    .custom-max-width {
        width: 200px;
        float: left;
    }
}

/* menu extension */

.menu-products .img-placeholder {
    width: 50px;
    height: 50px;
    background: #eee;
}
.menu-products {
    table-layout: fixed;
}

.menu-variants-table {
    background: #eee;
    border-radius: 4px;
    line-height: 1;
}
.menu-variants-table tr td {
    border-left: none !important;
}

.menu-switcher {
    width: 40%;
    text-align: left;
    float: right;
    display: flex;
    align-items: center;
    max-width: 360px;
}
.menu-switcher .switcher-label {
    width: 150px;
}

/* sticky fluid vertical menus  */
@media (min-width: 1440px) {
    .ui.large.fluid.vertical.menu {
        top: 5rem;
        position: sticky;
    }

    .pusher.pusher.pusher {
        overflow: unset;
    }
}

/* availabilities */

div [data-controller="availabilities"] {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f8f8;
}
