﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

body {
    padding-top: 70px;
}

div.controlsearch {
    position: fixed;
    /*padding-top: 8px;*/
    padding: 10px;
    top: 40px;
    width: 100%;
    z-index: 1020;
    /*background-color: white;*/
    background-color:  rgba(var(--bs-info-rgb)); /*bg-info-subtle*/
    /*color: black;*/
    font-weight: 700;
    margin: 10px 0px 10px 0px;
}

.mwdate {
    max-width: 120px !important;
}

.mwstore {
    max-width: 180px !important;
}

.mwint {
    max-width: 80px !important;
}

.mwyear {
    max-width: 100px !important;
}

div.controltable {
    padding-top: 55px;
}

div.controltable th {
    /*color: black;*/
    font-weight: 700;
}

.btn-c {
    margin-right: 20px;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

tr.grey {
    background-color: grey;
}

@media print {
    tbody > tr.grey > td {
        background-color: grey !important;
        -webkit-print-color-adjust: exact;
    }
}

.color0 {
    background-color: orange;
}

.color1 {
    background-color: deepskyblue;
}

.color2 {
    background-color: rosybrown;
}

.color3 {
    background-color: beige;
}

.color4 {
    background-color: greenyellow;
}

.color5 {
    background-color: gold;
}

/*.input-group > input {
    margin: 10px 10px 10px 10px;
}
*/
tr.filter > th {
    font-size: 1.2rem;
}

.dropdown.bootstrap-select.form-control {
    min-width: 150px;
    margin: 10px 10px 10px 10px;
}

.overlay {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.8);
    position: absolute;
    z-index: 1025;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.loader {
    border: 16px solid rgba(243,243,243,0.8);
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.totalcolor {
    background-color: khaki;
}

.sticky > tr > th {
    background-color: rgba(var(--bs-success-rgb));
    position: sticky;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

.sticky > th {
    /*background: #1abc9c;*/
    background-color: rgba(var(--bs-success-rgb));
    position: sticky;
    top: 125px;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

.prodname {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 40%;
}

.notPriced {
    background-color: orange;
}

.dropItem {
    text-decoration: line-through;
    color: red;
}

/* Zvýšení ceny */
tr.price-increase-small td {
    background-color: #e2f0d9;
}
/* Velmi světle zelená */
tr.price-increase-medium td {
    background-color: #c5e0b4;
}
/* Světle zelená */
tr.price-increase-large td {
    background-color: #a9d08e;
}
/* Zelená */
tr.price-increase-xlarge td {
    background-color: #70ad47;
    color: white;
}
/* Tmavě zelená */

/* Snížení ceny */
tr.price-decrease-small td {
    background-color: #fff0f1;
}
/* Velmi světle červená */
tr.price-decrease-medium td {
    background-color: #ffddde;
}
/* Světle červená */
tr.price-decrease-large td {
    background-color: #ffb9bd;
}
/* Červená */
tr.price-decrease-xlarge td {
    background-color: #ff8086;
    color: white;
}
/* Tmavě červená */


/* Styl pro samotnou vyskakovací bublinu */
#customPopup {
    position: absolute; /* Nebo 'fixed' pro pozicování vůči viewportu */
    background-color: #333; /* Tmavé pozadí */
    color: white; /* Bílý text */
    padding: 10px 15px; /* Vnitřní odsazení */
    border-radius: 6px; /* Zakulacené rohy */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Jemný stín */
    z-index: 1000; /* Aby byla bublina nad ostatními prvky */
    font-size: 14px; /* Velikost písma */
    max-width: 300px; /* Maximální šířka bubliny */
    /* display: none; je nastaveno v JS nebo přímo v HTML na začátku */
}

