@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

body{
    font-family: 'Montserrat', 'Open-Sans', sans-serif;
    font-weight: 300;
    padding: 30px;
    padding-top:10px
}

.horizontal-menu-toggle {
    display: none;
    font-size:20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed black;
    margin-bottom: 1em;
    cursor: pointer;
}

ul.horizontal-menu{
    list-style: none;
    margin-bottom: 30px;
    font-size:20px;
    padding-bottom: 10px;
    padding-left: 0px;
    border-bottom: 1px dashed black;
}

ul.horizontal-menu li{
    border-right: 1px solid black;
    display: inline-block;
    padding: 8px;
}
ul.horizontal-menu li:last-child{
    border-right: none;
}
ul.horizontal-menu li a{
    text-decoration: none;
    color: black;
}
ul.horizontal-menu li:hover{
    background-color: #99CCFF;
}

ul.horizontal-menu li.error-menu{
    background-color: red;
}

@media only screen and (max-width: 600px) {
    ul.horizontal-menu li {
        display: block;
    }
    ul.horizontal-menu {
        display: none;
        margin: 0px;
        padding: 0px;
        margin-bottom: 2em;
    }
    ul.horizontal-menu.open {
        display: block;
    }
    .horizontal-menu-toggle {
        display: block;
    }

    body{
        padding: 10px;
    }
}

#menu-space{
    height: 40px;
}

form{
    margin: 0px;
    padding: 0px;
}
form input, form textarea{
    border: 1px solid black;
    padding: 4px;
    font-family: sans-serif;
}
form textarea{
    height:150px;
    width:400px;
}
form textarea.large{
    height:400px;
    width:800px;
}
form textarea.markdown{
    font-family: monospace;
}
.default-button-handler{
    display: none;
}

.table-button-bar {
    margin-top: 10px;
    margin-bottom: 10px;
}

form button{
    padding: 4px;
    font-family: sans-serif;
}
table.form{
    width: 100%;
}

table.fixed {
    table-layout: fixed;
}

table.form > * > * > th {
    background: #5f9be3;
    color:#fff;
    font-weight:bold;
    padding:5px;
    box-sizing: border-box;
}

table.form.vertical > * > * > th {
    width: 150px;
}

table.form > * > * > td{
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}
.long-value{
    width:100%;
    box-sizing: border-box;
}
.error, .flash, .info{
    border: 1px solid black;
    margin-top:10px;
    margin-bottom:10px;
    padding:10px;
    margin-left: 40px;
    margin-right: 40px;
}
div.error{
    background-color: #FF4D4D;
}
div.flash{
    background-color: #FFFF66;
}
div.info{
    background-color: lightblue;
}

table.listing{
    border-collapse: collapse;
    width: 100%;
}
table.listing th{
    border-bottom: 1px solid black;
    padding-bottom: 5px;
    box-sizing: border-box;
}

table.listing th input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid black;
    padding: 4px;
    font-family: sans-serif;
}

input.w-small {
    width: 70px;
}

input.price {
    text-align: right;
}

table tr.row-red{
    background-color: #FFDDDD;
}

table tr.row-green{
    background-color: #DDFFDD;
}

table.listing tr:hover{
    background-color: #E8E8F6;
}
table.listing td{
    border-left: 1px solid gray;
    border-right: 1px solid gray;
    padding: 6px;
    box-sizing: border-box;
}
table.listing td:first-child{
    border-left: none;
}
table.listing td:last-child{
    border-right: none;
}

table.with-extdata td{
    border-bottom: 1px dotted grey;
}

table tr.extdata td{
    text-align: left;
    border-bottom: 1px solid black;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 0.5em;
    padding-left: 1em;
    padding-right: 1em;
}

table tr.extdata:hover{
    background-color: inherit;
}
table td.numeric, table th.numeric{
    text-align: right;
}

table td.numeric input {
    text-align: right;
}

table tr.canceled {
    text-decoration: line-through;
}

table tr.selected {
    background-color: #ace6b3;
}

table.filtered th {
    border-bottom: none;
}

table.filtered .column-filters th {
    border-bottom: 1px solid black;
}

.image-link{
    display: inline-block;
}
button.image-link{
    border: none;
    background: none;
}
.image-link:hover img{
    opacity: 0.5;
}
/* This rule is used when the image is transparent by itself and no opacity is needed */
.image-link.transparent:hover img{
    opacity: 1 !important;
}
.image-link:hover{
    text-decoration: none;
    background-color: #5f9be3;
}
.image-link img{
    border: 0px none;
    vertical-align: middle;
}

pagination{
    display:block;
}
.pagination li, .pagination a{
    display:inline-block;
    padding: 5px;
    margin: 2px;
}
.pagination li{
    font-weight: bold;
}

.variant-photo-selector {
    position: relative;
}

.variant-photo-selector img {
    height: 20px;
}

.variant-photo-selector img:hover {
    position: absolute;
    width: 100px;
    height: auto;
}

.editable-photo{
    display: inline-block;
    position: relative;
}

.editable-photo > a > img {
    /* Allow space to display popup */
    min-width: 40px;
}

.editable-photo.hidden-photo > a > img{
    opacity: 0.3;
}
.editable-photo .popup{
    display: none;
}
.editable-photo:hover .popup{
    display: block;
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: rgba(255,255,255,0.5);
    z-order: 10;
}
.editable-photo .popup img{
    display: block;
}
.editable-photo .popup img:hover{
    background-color: #5f9be3;
    cursor: pointer;
}
.editable-photo:first-child .popup img:nth-child(2){
    visibility: hidden;
}
.editable-photo:last-child .popup img:nth-child(1){
    visibility: hidden;
}

.editable-photo.drag-active {
    border-left: 2px solid black !important;
}

.toggle-variant{
    display: none !important;
}

.warning{
    background-color: orange;
}

.light-warning{
    background-color: #ffe3b3;
}

.popup-note-icon {
    vertical-align: middle;
}
.popup-note-icon.empty {
    opacity: 0.5;
}
.popup-note textarea{
    display:block;
}
.popup-note button {
    display:block;
    width: 100%;
}
.popup-note {
    background-color: white;
    border: 2px solid black;
}

.columns {
    display:flex;
    flex-direction: row;
}
.columns > div {
    padding-left: 10px;
    padding-right: 10px;
}

.link-button {
    display: inline-flex;
    flex-direction: row;
    background-color: #b88a00;
    color: white;
    font-family: sans-serif;
    text-decoration: none;
    padding: 5px;
    margin: 1px;
}

.link-button::after {
    content: url('link_white.svg');
    width: 16px;
    height: 16px;
    fill: white;
    align-self: center;
    margin-left: 5px;
}

.link-button:hover {
    background-color: #e0a800
}

ul.compact {
    margin: 0px;
    padding-left: 20px;
}

tr.a-highlight {
    background-color: lightblue;
}

.code {
    font-family: monospace;
}

/************************* Mobile forms *******************/

form.mobile .field {
    margin-top: 10px;
    margin-bottom: 10px;
}

form.mobile .field > label {
    display: block;
    font-family: 'sans-serif';
}

form.mobile .field > input, form.mobile .field > select {
    display: block;
    width: 100%;
}

form.mobile > button.submit {
    display: block;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

/************************* Markdown *******************/
@font-face {
    font-family: 'shoptet';
    src:  url("/static/shoptet.woff2") format('woff2');
  }

.markdown-actions{
    float: right;
}
.preview-result{
    border: 1px solid black;
    padding: 1em;
}

.preview-result {
    color: black;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    width: 1138px;
    text-align: justify;
    line-height: 1.7;
}

.preview-result img {
    max-width: 100%;
}

.preview-result iframe, .preview-result img {
    margin-top: 15px;
    margin-bottom: 20px;
}

.preview-result a {
    color: #2c9bdd;
    text-decoration: none;
}

.preview-result h1, .preview-result h2, .preview-result h3,
.preview-result h4, .preview-result h5, .preview-result h6{
    line-height: normal;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 10px;
}

.preview-result h1::after, .preview-result h2::after, .preview-result h3::after,
.preview-result h4::after, .preview-result h5::after, .preview-result h6::after {
    color: #cb0000;
    content: ".";
}

.preview-result li {
    list-style-type: none;
}

.preview-result li::before {
    content: "\e910";
    font-family: "shoptet";
    font-size: 14px;
    margin: -2px 4px 0 -18px;
}

.preview-result h1{font-size: 34px;}
.preview-result h2{font-size: 24px;}
.preview-result h3{font-size: 20px;}
.preview-result h4{font-size: 18px;}
.preview-result h5{font-size: 16px; }

.preview-result p{
    margin: 0 0 22px;
    margin-bottom: 15px;
}

.preview-result table{
    border: none;
    border-collapse:collapse;
}
.preview-result thead{
    color: white;
    background-color: rgb(51, 51, 51);
}
.preview-result th{
    padding: 0.55556rem;
}
.preview-result td{
    padding: 0.25rem;
}
.preview-result th, .preview-result td{
    padding-left: 1em;
    padding-right: 1em;
}
label.disabled{
    color: grey;
}
data{
    display: none;
}

/******************* Timeline *******************/

.timeline-table{
    margin-top: 1em;
}
.timeline-table td{
    padding-left: 10px;
    padding-right: 10px;
}

.timeline-axis{
    position: relative;
}

.timeline-axis > span{
    height: 10px;
    background-color: green;
    display: block;
    position: absolute;
}

.timeline-axis > span:hover {
    background-color: #5f9be3 !important;
}

.timeline-axis > span.tick{
    height: 10px;
    width: 1px;
    background-color: black;
    display: block;
    position: absolute;
}

.timeline-axis .tooltip{
    visibility: hidden;
    position: absolute;
    z-index: 1;
    width: 300px;
    padding: 5px 10px;
    border-radius: 6px;
    background-color: #5f9be3;
    color: #fff;
    top: -30px;
    left: -150px;
    text-align: center;
}

.timeline-axis > span:hover > .tooltip{
    visibility: visible;
}

.timeline-axis span.vstate-ok{
    background-color: green;
}

.timeline-axis span.vstate-sold_out, .timeline-axis span.vstate-does_not_exist{
    background-color: red;
}

.order-state-choice {
    display: flex;
    margin-bottom: 1em;
}

.order-state-choice a {
    padding: 10px;
    background-color: lightblue;
    margin-left: 5px;
    margin-right: 5px;
    text-decoration: none;
    font-family: sans;
    color: black;
}

.order-state-choice a.selected {
    color: white;
    background-color: blue;
}

/************************** Flexilog export *****************************/

.extra-inflight .popup{
    display: none;
    background: white;
    position: absolute;
    border: 1px solid black;
    border-radius: 5px;
    padding: 10px;
}

/************************** Edit product **********************************/

.perspective-suppliers {
    display: none;
}

.attribute-editor .attribute-value {
    margin-right: 1em;
}

.attribute-editor .percentage {
    width: 50px;
}

.ui-autocomplete {
        max-height: 500px;
        overflow-y: scroll;
}

/* Manufacture */

.product-template {
    display: none;
}

.manufacture-split-screen {
    display: flex;
    flex-direction: row;
}

.manufacture-split-screen .side:nth-child(2) {
    margin-left: 3em;
}

.manufacture-split-screen .amount input {
    width: 40px;
}

@keyframes rotation {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(359deg);
    }
  }

.photo-drag-target.uploading {
    animation: rotation 2s infinite linear;
}

.supplier {
    height: 30px;
}

.supplier button {
    padding: 1px;
}