* {
    font-family: ProductSans;
}

html {
    height: 99%;
}

body {
    min-height: 99%;
    padding-bottom: 15px;
}
body.index-body{
    background-image: url(../img/loginBack.png);
    background-position: center;
}
input#username::placeholder,input#password::placeholder {
    color: #e6e7e8;
}
button.login-button{
    width: 100%;
    color: #fff;
    background-color: #313A52;
    border-color: #313A52;
}
a:visited {
    color: inherit;
}
a.back-home-url,a.back-home-url:hover,a.back-home-url:visited{
    color: black;
}
section.homepage-login {
    margin-top: 3rem;
}

.logo {
    display: flex;
    justify-content: space-between;
    height: 3cm;
}

.results-header {
    padding: 3px 7px 3px 7px;
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background: #f4f2f2;
}

img.add-product-sign {
    max-width: 15px;
    margin-right: 5px;
}

p.id-header {
    width: 25%;
    margin-bottom: 0 !important;
}

p.name-header {
    margin-bottom: 0 !important;
}

.search-box .result {
    border-radius: 5px;
    border: 1px solid lightgrey;
    border-top: none;
}

.search-product-id {
    width: 25%;
}

.search-box .result a {
    padding: 3px 7px 3px 7px;
    border-bottom: 1px solid lightgray;
}

.search-box .result a:first-child {
    padding-top: 5px;
    border-bottom: 1px solid lightgray;
}

.view-product-actions.landscape {
    width: 29.7cm;
    transition: width .15s linear;
}

.search-box .result a:last-child {
    border-bottom: none;
}

.search-box .result a:hover {
    background: #dee2e6;
    text-decoration: none;
}

.back-home {
    display: flex;
}

.back-home img {
    width: auto;
    height: 15px;
    margin-top: 2px;
    margin-right: 5px;
}

.back-home a {
    text-decoration: none;
}

.view-product-actions {
    width: 210mm;
    margin: 0 auto;
    display: flex;
    padding: 5px 0;
    transition: width .15s linear;
}

.edit-print-btn {
    display: flex;
    align-self: center;
}

.product-view-change {
    max-width: 50px;
    width: 50px;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-between;
}

button.print-btn, .delete-btn {
    color: white;
    border-style: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;

}

.delete-btn {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.edit-btn {
    background-color: #e2e6ea;
    border-color: #dae0e5;
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    margin-right: 5px;
}

button.print-btn.hide {
    display: none;
}

button.print-btn {
    background-color: #0069d9;
    border-color: #0062cc;
    margin-right: 5px;
}

.portrait-mode, .landscape-mode {
    width: calc(50% - 2px);
    cursor: pointer;
}

.portrait-mode.active svg#Page_Portrait g path, .landscape-mode.active svg#Page_Landscape g path {
    fill: black !important;
}

.landscape-mode svg#Page_Landscape {
    width: 25px;
    height: 25px;
}

.landscape-mode svg#Page_Landscape g path {
    fill: #dee2e6 !important;
}

div#print-content {
    border: 1px solid lightgrey;
    width: 21cm;
    height: 29.7cm;
    margin: 0 auto;
}

div#print-content-landscape {
    border: 1px solid lightgrey;
    width: 29.7cm;
    height: 21cm;
    margin: 0 auto;
}

div#print-content-landscape .product-details-content {
    display: flex;
    justify-content: space-between;
}

div#print-content-landscape .product-details-content .product-name {
    margin: 0;
}

div#print-content-landscape .product-details-content .logo {
    text-align: right;
    order: 1;
    align-self: center;
}

div#print-content-landscape .description-oldprice {
    display: flex;
    margin-top: 1.41cm;
}

section.product-print-page-section.landscape .product-warranty {
    top: 1.65cm;
}

section.product-print-page-section.landscape .old-price-container {
    height: 2.71cm;
    top: 1.9cm;
}

div#print-content-landscape .product-description {
    margin-bottom: 0;
    max-width: 65%;
}

div#print-content-landscape .product-description p {
    text-align: left;
}

div#print-content-landscape .old-price-container {
    margin-bottom: 0;
    display: flex;
    align-self: flex-end;
}

.product-name {
    margin-top: 1.05cm;
    margin-bottom: 1.05cm;
    height: 3.81cm;
    overflow: hidden;
}

.product-name h1 {
    margin: 0;
    font-size: 1.69cm;
    line-height: 1.9cm;
}

.product-description {
    margin-right: auto;
    margin-left: 0;
    margin-bottom: 1cm;
    height: 6cm;
    max-width: 100%;
    overflow: hidden;
}

.product-description ul li {
    font-size: 0.56cm;
    line-height: 0.70cm;
    margin-bottom: 0.1cm;
    white-space: nowrap;
}

.product-description ul li:last-child {
margin-bottom: 0;
}

div#print-content .old-price-container {
height: 2.15cm;
}

section.product-print-page-section {
padding: 1.5cm 1.5cm 0 1.5cm;
page-break-after: auto;
}

.bottom-text {
margin-top: 1.5cm;
}

section.product-print-page-section.landscape {
padding: 1.5cm 1.5cm 0 1.5cm;
page-break-after: auto;
}

.sale-price-container {
display: flex;
justify-content: space-between;
height: 4.4cm;
margin-top: -0.5cm;
}

section.product-print-page-section.landscape .sale-price-container {
margin-top: 0;
}

.sales-price-container, .sales-price-delimiter-decimals {
display: flex;
}

.sales-price-container, .old-price-container {
justify-content: end;
}

section.product-print-page-section.landscape .product-id {
align-self: flex-end;
display: block;
}

section.product-print-page-section.landscape .product-id p {
margin-bottom: 0;
}

.product-warranty {
width: 5.1cm;
display: flex;
justify-content: center;
position: relative;
top: -1.7cm;
height: 1.64cm;
}

.product-id {
align-self: end;
position: relative;
top: 0;
}

.product-id p {
font-size: 0.5cm;
}

.product-warranty p {
align-self: center;
margin: 0;
}

.product-warranty p.warranty-number {
font-size: 1.34cm;
margin-right: 0.3cm;
}

.warranty-period {
align-self: center;
}

.warranty-period p {
text-transform: uppercase;
}

.bottom-offer-text {
border-top: 1px solid #000000;
display: block;
}

.bottom-offer-text p {
text-align: center;
display: block;
font-size: 0.6cm;
font-weight: 700;
margin: 0.42cm 0 0 0;
}

.sales-price-container p.sale-price {
font-size: 4cm;
margin: 0;
font-weight: 700;
}

p.sale-price.delimiter, p.sale-price.decimals {
font-size: 2.84cm;
margin: 0;
}

p.sale-price.symbol {
font-size: 2.64cm;
margin: 0;
text-align: center;
}

img.view-product-logo {
width: 2.46cm;
height: auto;
}

img.slogan {
width: 5.6cm;
}

.old-price-container {
position: relative;
}

.old-price-container, .old-price-delimiter-decimals {
display: flex;
}

p.old-price {
font-size: 2.25cm;
font-weight: 700;
margin: 0;
}

p.old-price.decimals, p.old-price.delimiter {
font-style: normal;
font-weight: 700;
font-size: 1.65cm;

}

.sale-price-symbol {
display: flex;
}

p.old-price.symbol {
font-style: normal;
font-weight: 700;
font-size: 1.65cm;
}

.old-line {
position: absolute;
width: 55%;
height: 0px;
border: 4px solid #000000;
transform: rotate(-17.76deg);
background: #000000;
top: 1cm;
right: 0.5cm;
}

section.product-print-page-section.landscape img.view-product-logo {
width: 2.89cm;
}

section.product-print-page-section.landscape img.slogan {
display: none;
}

section.product-print-page-section.landscape .bottom-text {
margin-top: 1cm;
}

@media print {
html, body {
    height: auto;
}

@page {
    size: portrait;
}

body {
    /*writing-mode: tb-rl;*/
    }

    section.product-print-page-section {
        padding: 1.5cm 1.5cm 0 1.5cm;
        page-break-after: auto;
    }
    .product-view-change, .view-product-actions {
        display: none !important;
    }

    div#print-content {
        width: 21cm;
        height: 29.7cm;
        margin: 0 auto;
    }

    div#print-content-landscape {
        width: 29.7cm;
        height: 21cm;
        margin: 0 auto;
    }

    section.product-print-page-section.landscape {
        width: 29.7cm;
        height: 21cm;
    }

    section.product-print-page-section.landscape img.view-product-logo {
        width: 2.89cm;
    }

    section.product-print-page-section.landscape .product-details-content {
        display: flex;
        justify-content: space-between;
    }

    section.product-print-page-section.landscape .product-details-content .product-name {
        margin: 0;
    }

    section.product-print-page-section.landscape .product-details-content .logo {
        text-align: right;
        order: 1;
    }

    section.product-print-page-section.landscape .description-oldprice {
        display: flex;
    }

    section.product-print-page-section.landscape .product-description {
        margin-bottom: 0;
    }

    section.product-print-page-section.landscape .product-description p {
        text-align: left;
    }

    section.product-print-page-section.landscape .old-price-container {
        margin-bottom: 0;
        display: flex;
        align-self: flex-end;
    }

    section.product-print-page-section.landscape .sale-price-container {
        display: flex;
        justify-content: space-between;
    }

    section.product-print-page-section.landscape .product-id {
        align-self: flex-end;
        display: block;
    }

    section.product-print-page-section.landscape .bottom-offer-text {
        border-top: 1px solid #000000;
        display: block;
    }

    section.product-print-page-section.landscape .bottom-offer-text p {
        text-align: center;
        display: block;
    }

    th.product-action {
        display: none;
    }

    img.view-product-logo {
        width: 3.31cm;
        height: auto;
    }

    section.product-print-page-section.landscape .description-oldprice {
        display: flex;
        margin-top: 1.41cm;
    }

    section.product-print-page-section.landscape .product-id p {
        margin: 0;
    }

    section.product-print-page-section.landscape .product-id p {
        margin: 0;
    }

    section.product-print-page-section.landscape .bottom-offer-text p {
        text-align: center;
        display: block;
        font-size: 0.77cm;
        font-weight: 700;
    }

    .product-warranty {
        width: 5.1cm;
        display: flex;
        justify-content: center;
        position: relative;
        top: -2.25cm;
    }
    .old-price-container {
        height: 2.15cm !important;
    }
}

@media print and (orientation: landscape) {
    html, body {
        height: 99%;
    }

    section.product-print-page-section.landscape {
        padding: 2.25cm 2cm 0 2cm;
        page-break-after: auto;
    }

    section.product-print-page-section.landscape .bottom-text {
        margin-top: 1.6cm;
    }

    section.product-print-page-section.landscape .bottom-offer-text p {
        margin: 17px 0 0 0;
    }

}