.mymaincontainer {
    margin-bottom: 3em;
}

.corner-text {
    right: 10px;
    bottom: 20px;
    text-align: right;
    z-index: 1;
    position: fixed;
}

footer {
    color: #666;
    background: #222;
    padding: 17px 0 18px 0;
    border-top: 1px solid #000;
}

footer a {
    color: #999;
}

footer a:hover {
    color: #efefef;
}


h2 {
    padding-top: 10px;
    font-size: 12pt;
    font-weight: bold;
}


div.media {
}

img.media-object {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


div.navigace-tlacitka {
    padding-top: 10px;
    padding-bottom: 20px;
}

.r {
    text-align: right;
}

.container-fluid {
    padding: 15px 30px;
}

nav .container-fluid {
    padding: 0px 15px;
}

/* upravy datagrid */
/* zrušení zakulacených tlačítek */

.container-fluid .datagrid .btn-xs, .container-fluid .datagrid .btn-group-xs > .btn {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 0;
}

/* zruseni odsazeni datagridu */
.container-fluid .datagrid {
    background: none;
    padding: 0;
}

/* odsazeni zalozek a obsahu */
ul.nav-tabs {
    margin-bottom: 1em;
}

/* oprava bootstrap s datagridem - filtr na datum chybny padding */
.datagrid .input-group-addon {
    padding: 0px 10px;
}

/* tlacitka pred datagridem */
.grid-actions {
}

.blink_me {
  -webkit-animation-name: blinker;
  -webkit-animation-duration: 1s;
  -webkit-animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;

  -moz-animation-name: blinker;
  -moz-animation-duration: 1s;
  -moz-animation-timing-function: linear;
  -moz-animation-iteration-count: infinite;

  animation-name: blinker;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.blink_me_nofade {
  -webkit-animation-name: blinker_nofade;
  -webkit-animation-duration: 1s;
  -webkit-animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;

  -moz-animation-name: blinker_nofade;
  -moz-animation-duration: 1s;
  -moz-animation-timing-function: linear;
  -moz-animation-iteration-count: infinite;

  animation-name: blinker_nofade;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@-moz-keyframes blinker_nofade {
  0% {
      opacity: 1.0;
  }
  50% {
      opacity: 0.6;
  }
  100% {
      opacity: 1.0;
  }
}

@-webkit-keyframes blinker_nofade {
  0% {
      opacity: 1.0;
  }
  50% {
      opacity: 0.6;
  }
  100% {
      opacity: 1.0;
  }
}

@keyframes blinker_nofade {
  0% {
      opacity: 1.0;
  }
  50% {
      opacity: 0.6;
  }
  100% {
      opacity: 1.0;
  }
}

@-moz-keyframes blinker {
  0% {
      opacity: 1.0;
  }
  50% {
      opacity: 0.0;
  }
  100% {
      opacity: 1.0;
  }
}

@-webkit-keyframes blinker {
  0% {
      opacity: 1.0;
  }
  50% {
      opacity: 0.0;
  }
  100% {
      opacity: 1.0;
  }
}

@keyframes blinker {
  0% {
      opacity: 1.0;
  }
  50% {
      opacity: 0.0;
  }
  100% {
      opacity: 1.0;
  }
}


:required {
  background: url(/imgs/asterisk-small.png) no-repeat;
  background-position: right top;
  /* pro grid - inline edit/add */
  background-color: #fff;
}

:required:invalid {
  border-color: pink;;
  /* pro grid - inline edit+add */
  background-color: #fff;
}

:required:invalid:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem #fad9de;
}

:required + button {
  background: url(/imgs/asterisk-small.png) no-repeat;
  background-position: right top;
}

:required:invalid + button {
  border-color: pink;
}

:required + .dropdown-toggle.bs-placeholder:focus {
  border-color: pink;
  outline: 0;
  box-shadow: 0 0 0 0.2rem #fad9de;
}

:required + button + .dropdown-menu.show > .bs-searchbox > input:focus {
  border-color: pink;
  outline: 0;
  box-shadow: 0 0 0 0.2rem #fad9de;
}


/* Select2 */
input:required ~ .select2-container .select2-selection--single {
    background: url(/imgs/asterisk-small.png) no-repeat;
    background-position: right top;
    background-color: #fff !important;
}

input:required:invalid ~ .select2-container .select2-selection--single {
    border-color: pink !important;
    background-color: #fff;
}

.select2-container--focus .select2-selection--single {
    border-color: #80bdff;
    box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25);
}

.tall-select2-dropdown .select2-results__options {
    max-height: 500px !important; /* Remove fixed limit */
    overflow-y: auto;
}

/* Make Select2 match Bootstrap .form-control */
.select2-container--default .select2-selection--single {
    border-radius: 0px;
}

/*inline add tohle nepotrebuje, formulare jo*/
.form-control-select2 ~ .select2-container .select2-selection--single {
    height: calc(1.5em + .75rem + 2px) !important;
    /*padding: .375rem .75rem;*/
    font-size: .9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0;
    background-color: #fff;
    display: flex;
    align-items: center;
}

/*sipecka*/
.form-control-select2 ~ .select2-container .select2-selection--single .select2-selection__arrow {
    height: 34px;
    top: 1px;
    right: 1px;
}


/* upravy bootstrap 4 */

.btn-group-xs > .btn, .btn-xs {
    padding: .25rem .4rem;
    afont-size: .875rem;
    line-height: .5;
    aborder-radius: .05rem;
}

label {
    font-weight: bold;
}

form h1 {
    font-size: 14pt;
    font-weight: bold;
    /*border-bottom: 1px solid #ddd;*/
}

form label {
    margin-bottom: 0;
}

h1 {
    padding-top: 10px;
    font-size: 14pt;
    font-weight: bold;
    /*aborder-bottom: 1px solid #ddd;*/
}

.badge-secondary {
    color: #fff;
    background-color: #676a6c;
}

.btn-secondary {
    color: #fff;
    background-color: #676a6c;
    border-color: #676a6c;
}

.badge-dark {
    color: #fff;
    background-color: #272a2c;
}

.btn-dark {
    color: #fff;
    background-color: #272a2c;
    border-color: #272a2c;
}

.badge-purple {
    color: #fff;
    background-color: purple;
}

.btn-dark {
    color: #fff;
    background-color: purple;
    border-color: purple;
}


.badge-button {
  color: #fff;
}

.badge-button:hover {
  color: #fff;
  text-decoration: none;
}

div.fake-form-group div {
  border: 1px solid #ced4da;
  padding: 6px;
  min-height: calc(1.5em + 0.75rem + 2px);
  background-color: rgb(248, 248, 248);
}

div.fake-form-group label {
  margin-bottom: 0px;
}

tr.strike td {
  text-decoration: line-through;
}

/* odsazeni zarazek např. v detailu zakazky */
td ul {
  padding-left: 20px;
}

.badge-yellow {
    color: #ffffff;
    background-color: #ffc90e;
}

a.badge-yellow:hover, a.badge-yellow:focus {
    color: #fff;
    background-color: #d3a60c;
}

div.container-fluid .table-hover > tbody > tr:hover > * {
    background-color: rgba(0, 166, 240, 0.2);
}

ul.errors {
    list-style-type: none;
    background-color: red;
    padding: 10px;
    color: white;
}


.col-sharepoint-prilohy-checkbox {
    width: 5%;
}

.col-sharepoint-prilohy-nazev {
    width: 30%;
}

.col-sharepoint-prilohy-typ {
    width: 5%;
}

.col-sharepoint-prilohy-upravil {
    width: 20%;
}

.col-sharepoint-prilohy-zmena {
    width: 20%;
}

.col-sharepoint-prilohy-zdroj {
    width: 5%;
}

.col-sharepoint-prilohy-action {
    width: 20%;
}

/*Plati pro: SupisSurovehoMaterialu.latte a VyberSurovehoMaterialu.latte */

.col-zadanka-tabulka-hlavni-article_no {
    width: 7%;
}

.col-zadanka-tabulka-hlavni-nazev {
    width: 25%;
}

.col-zadanka-tabulka-hlavni-typ_materialu {
    width: 13%;
}

.col-zadanka-tabulka-hlavni-destinace {
    width: 10%;
}

.col-zadanka-tabulka-hlavni-pozadovano {
    width: 10%;
}

.col-zadanka-tabulka-hlavni-chybi {
    width: 10%;
}

.col-zadanka-tabulka-hlavni-stav {
    width: 10%;
}

.col-zadanka-tabulka-hlavni-akce {
    width: 15%;
}

.col-zadanka-tabulka-vnorena-sklad {
    width: 10%;
}

.col-zadanka-tabulka-vnorena-pozice {
    width: 10%;
}

.col-zadanka-tabulka-vnorena-cislo_prijemky {
    width: 10%;
}

.col-zadanka-tabulka-vnorena-prijato {
    width: 10%;
}

.col-zadanka-tabulka-vnorena-popis {
    width: 20%;
}

.col-zadanka-tabulka-vnorena-pocet {
    width: 10%;
}

.col-zadanka-tabulka-vnorena-dostupne {
    width: 10%;
}

.col-zadanka-tabulka-vnorena-blokovano {
    width: 20%;
}

/* choices */

.choices .choices__inner {
  min-height: 0px;
  padding: 3.5px 3.5px 1px 10px;
  /* border-radius: 0px; */
  font-weight: normal;
  background-color: #fff;
}

.choices .choices__list--multiple .choices__item {
  background-color: #2780e3;
  border: #2780e3;
}

.choices .choices__inner .choices__input {
  background-color: #fff;
  padding: 0px;
}

.choices[data-type*="select-one"] .choices__inner {
  apadding: 0px;
}

.choices .choices__list--single {
  padding: 0px;
}

/* minimální šířka rozbaleného seznamu - kvůli datagridu */
.choices .is-active.choices__list--dropdown, .choices .is-active.choices__list[aria-expanded] {
  visibility: visible;
  min-width: 250px;
}

/* zmenšení písma, normální tučnost (v datagridu je v tabulce, kde je tučné písmo) */
.choices .choices__list--dropdown .choices__item, .choices .choices__list[aria-expanded] .choices__item {
  font-size: 14px;
  padding: 5px;
  font-weight: normal;
}

/* choices v inline formuláři */
form.form-inline .choices {
  margin-bottom: 0px;
  margin-right: 10px;
}

form.form-inline .choices .choices__list--single {
  min-width: 100px; /* minimální šířka pro inline formulář */
}

.choices__inner:has(select[required]:empty) {
  border-color: pink;
  /*outline: 0;*/
  box-shadow: 0 0 0 0.2rem #fad9de;
  background: url(/imgs/asterisk-small.png) no-repeat;
  background-position: right top;
  background-color: #fff;
}


/*override na datagrid.css, selectpicker nepasoval*/
.datagrid table tbody tr .datagrid-inline-edit .form-control {
  margin: unset !important;
  padding-bottom: unset !important;
  padding-top: unset !important;
  /*height: unset!important;*/
}

/*sirsi sloupce*/
@media (min-width: 1800px) {
  .col-xxxl {
    flex: 1 0 0%;
  }
  .row-cols-xxxl-auto > * {
    flex: 0 0 auto;
    width: auto;
  }
  .row-cols-xxxl-1 > * {
    flex: 0 0 auto;
    width: 100%;
  }
  .row-cols-xxxl-2 > * {
    flex: 0 0 auto;
    width: 50%;
  }
  .row-cols-xxxl-3 > * {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
  .row-cols-xxxl-4 > * {
    flex: 0 0 auto;
    width: 25%;
  }
  .row-cols-xxxl-5 > * {
    flex: 0 0 auto;
    width: 20%;
  }
  .row-cols-xxxl-6 > * {
    flex: 0 0 auto;
    width: 16.66666667%;
  }
  .col-xxxl-auto {
    flex: 0 0 auto;
    width: auto;
  }
  .col-xxxl-1 {
    flex: 0 0 auto;
    width: 8.33333333%;
  }
  .col-xxxl-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }
  .col-xxxl-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  .col-xxxl-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
  .col-xxxl-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }
  .col-xxxl-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  .col-xxxl-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
  .col-xxxl-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
  .col-xxxl-9 {
    flex: 0 0 auto;
    width: 75%;
  }
  .col-xxxl-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
  .col-xxxl-11 {
    flex: 0 0 auto;
    width: 91.66666667%;
  }
  .col-xxxl-12 {
    flex: 0 0 auto;
    width: 100%;
  }
  .offset-xxxl-0 {
    margin-left: 0;
  }
  .offset-xxxl-1 {
    margin-left: 8.33333333%;
  }
  .offset-xxxl-2 {
    margin-left: 16.66666667%;
  }
  .offset-xxxl-3 {
    margin-left: 25%;
  }
  .offset-xxxl-4 {
    margin-left: 33.33333333%;
  }
  .offset-xxxl-5 {
    margin-left: 41.66666667%;
  }
  .offset-xxxl-6 {
    margin-left: 50%;
  }
  .offset-xxxl-7 {
    margin-left: 58.33333333%;
  }
  .offset-xxxl-8 {
    margin-left: 66.66666667%;
  }
  .offset-xxxl-9 {
    margin-left: 75%;
  }
  .offset-xxxl-10 {
    margin-left: 83.33333333%;
  }
  .offset-xxxl-11 {
    margin-left: 91.66666667%;
  }
  .g-xxxl-0,
  .gx-xxxl-0 {
    --bs-gutter-x: 0;
  }
  .g-xxxl-0,
  .gy-xxxl-0 {
    --bs-gutter-y: 0;
  }
  .g-xxxl-1,
  .gx-xxxl-1 {
    --bs-gutter-x: 0.25rem;
  }
  .g-xxxl-1,
  .gy-xxxl-1 {
    --bs-gutter-y: 0.25rem;
  }
  .g-xxxl-2,
  .gx-xxxl-2 {
    --bs-gutter-x: 0.5rem;
  }
  .g-xxxl-2,
  .gy-xxxl-2 {
    --bs-gutter-y: 0.5rem;
  }
  .g-xxxl-3,
  .gx-xxxl-3 {
    --bs-gutter-x: 1rem;
  }
  .g-xxxl-3,
  .gy-xxxl-3 {
    --bs-gutter-y: 1rem;
  }
  .g-xxxl-4,
  .gx-xxxl-4 {
    --bs-gutter-x: 1.5rem;
  }
  .g-xxxl-4,
  .gy-xxxl-4 {
    --bs-gutter-y: 1.5rem;
  }
  .g-xxxl-5,
  .gx-xxxl-5 {
    --bs-gutter-x: 3rem;
  }
  .g-xxxl-5,
  .gy-xxxl-5 {
    --bs-gutter-y: 3rem;
  }
}

p.datagrid_no_item_found {
  margin-bottom: 0px;
}

.stopky-button {
  float: right;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: .5;
  background-color: transparent;
  border:0;
  padding: 0.2rem 0.8rem;
}
.stopky-button:hover {
  color: #000;
  text-decoration: none;
  opacity: .75;
}

#prod-warning-overlay::before,
#prod-warning-overlay::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 140vw;
  height: 8px;
  background-color: rgba(255, 0, 0, 0.7);
  pointer-events: none;
  transform-origin: center;
  z-index: 10000;
  animation: prod-warning-blink 5s infinite;
}

#prod-warning-overlay::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#prod-warning-overlay::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@keyframes prod-warning-blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
  .sticky-top2 {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    /*z-index: 1020;*/
  }
}
