:root {
  --duration-default: 500ms;
  --color-primary-light: rgb(50, 100, 190);
  --color-primary: rgb(30, 65, 140);
  --color-primary-dark: rgb(10, 30, 80);
  --color-secondary-light: #fdeeac;
  --color-secondary: #fde36f;
  --color-secondary-dark: #fdd835;
  --color-primary-text: #000000;
  --color-secondary-text: #f3f2fb;
  --color-primary-background: rgb(230,230,240);

  --filter-height: 29px;
  --filter-padding: 5px 8px;
  --filter-border: 1px solid #A4A4A4;
  --filter-border-radius: 2px;
  --filter-bg-color: #fff;
  --filter-focus-shadow: 0 0 2px #7799D0;
  --filter-focus-border-color: #7799D0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================== */
/* ELEMENTs */
/* ============================== */

html {
  height: 100%;
  overflow: hidden;
  color: var(--color-primary-text);
}

body {
  height: 100%;

  display: flex;
  flex-direction: column;

  font-family: Sans-serif, Verdana, Arial;
  background-color: var(--color-primary-background);

  overflow: hidden;
}

header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  align-content: center;
  flex-shrink: 0;

  white-space: nowrap;

  background-color: var(--color-primary-dark);
  color: var(--color-secondary-text);
  box-shadow: 0 7px 8px rgba(0, 0, 0, 0.4);
  z-index: 1000;

  font-size: 16px;
  min-height: 48px;
}

header > * {

}

header h1 {
  display: flex;
  align-items: center;

  padding: 8px 16px;

  overflow: hidden;
  text-overflow: ellipsis;

  font-size: 32px;
}

header nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex-grow: 1;

  overflow: hidden;
}

header nav:last-of-type {
  flex-grow: 0;
}

header nav span {
  display: none;
}

header nav a {
  display: flex;
  align-items: center;

  padding: 8px 16px;

  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;

  color: var(--color-secondary-text);
}

header nav a:hover {
  background-color: var(--color-primary);
}

header nav .active {
  color: var(--color-secondary-dark);
}

footer {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;

  /*min-height: 48px;*/
  background-color: var(--color-secondary-text);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.4);
  z-index: 900;

  /*overflow: auto;*/
  font-size: 14px;
}

footer select {
  padding: 2px;
  width: 100%;
}

main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: flex-start;
  overflow: auto;
  padding-bottom: 16px;
}

table {
  border-spacing: 0;
  /*border-bottom: 1px solid var(--color-primary-dark);*/

  text-align: left;
}

table thead {
  background-color: var(--color-secondary-dark);
  color: var(--color-primary-dark);

  font-size: 16px;
}

table thead tr {

}

table thead tr th {
  padding: 8px;
  border-bottom: 1px solid var(--color-primary-dark);
  border-right: 1px solid rgba(0,0,0,0.1);
}

table.transposed tbody tr th{
  
  background-color: var(--color-secondary-dark);
  color: var(--color-primary-dark);

  font-size: 16px;
  padding: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  border-right: 1px solid var(--color-primary-dark);
  
  white-space: nowrap; 
  width: 1px;
  
  position: sticky; 
  left: 0;
  
}


table tbody {
  font-size: 14px;
}

table tbody tr {
  min-height: 26px;
}

table tbody tr:nth-child(odd) {
}

table tbody tr:nth-child(even) {
  background-color: rgba(0,0,0,0.05);
}

/*table tbody .highlight {
  background-color: rgba(17, 19, 168, 0.25) !important;
}*/

table tbody tr.highlight
{
  background-color: rgba(17, 19, 168, 0.25);
}

table tbody tr.highlight:nth-child(2n)
{
  background-color: rgba(17, 19, 168, 0.30) ;
}

table tbody .highlight2 {
  background-color: rgba(64, 168, 17, 0.25) !important
}

/*table tbody .unfinished {
  background-color: rgba(168, 17, 17, 0.25) !important;
}*/


table tbody tr.unfinished{
  background-color: rgba(168, 17, 17, 0.25);
}

table tbody tr.unfinished:nth-child(2n){
  background-color: rgba(168, 17, 17, 0.30);
}


table tbody tr.blocked td[data-filter=StatusName]{
  background-color: rgba(17, 19, 168, 0.25);
}


table tbody tr.blocked:nth-child(2n) td[data-filter=StatusName]{
  background-color: rgba(17, 19, 168, 0.30) ;
}


table tbody tr.new-issue td[data-filter=StatusName] {
  background-color: rgba(255, 20, 10, 0.25);
}


table tbody tr.new-issue:nth-child(2n) td[data-filter=StatusName] {
  background-color: rgba(255, 20, 10, 0.30);
}


table tbody tr.in-queue td[data-filter=StatusName] {
  background-color: rgba(255, 183, 77, 0.5);
}


table tbody tr.in-queue:nth-child(2n) td[data-filter=StatusName] {
  background-color: rgba(255, 183, 77, 0.60);
}

table tbody tr.in-progress td[data-filter=StatusName] {
  background-color: rgba(255, 183, 77, 0.75);
}


table tbody tr.in-progress:nth-child(2n) td[data-filter=StatusName] {
  background-color: rgba(255, 183, 77, 0.8);
}

table tbody tr.solved td[data-filter=StatusName] {
  background-color: rgba(144, 238, 144, 0.70);
}

table tbody tr.solved:nth-child(2n) td[data-filter=StatusName] {
  background-color: rgba(144, 238, 144, 0.85);
}

table tbody tr.closed td[data-filter=StatusName] {
  background-color: rgba(0, 100, 0, 0.3);
}

table tbody tr.closed:nth-child(2n) td[data-filter=StatusName] {
  background-color: rgba(0, 100, 0, 0.35);
}

table tbody tr.new-issue:hover td[data-filter=StatusName],
table tbody tr.in-queue:hover td[data-filter=StatusName],
table tbody tr.in-progress:hover td[data-filter=StatusName],
table tbody tr.solved:hover td[data-filter=StatusName],
table tbody tr.closed:hover td[data-filter=StatusName] {
  background-color: inherit;
}

table tbody tr.report-to-customs {
  background-color: rgba(255, 10, 10, 0.25);
}

table tbody tr.report-to-customs:nth-child(2n+1) {
  background-color: rgba(255, 50, 50, 0.25);
}

table tbody .invalid {
  color: rgba(128, 128, 128, 0.8);
}


table tbody .cameracheck-scheduled {
  background-color: rgba(0, 0, 255, 0.25) !important; /* blue */
}

table tbody .cameracheck-ok {
  background-color: rgba(0, 128, 0, 0.35) !important; /* green */
}

table tbody .cameracheck-warning {
  background-color: rgba(255, 255, 0, 0.25) !important; /* yellow */
}

table tbody .cameracheck-error {
  background-color: rgba(255, 165, 0, 0.45) !important; /* orange */
}

table tbody .cameracheck-fatality {
  background-color: rgba(255, 0, 0, 0.30) !important; /* red */
}

table tbody tr td {
  padding: 2px 8px;
  min-height: 26px;
  height: 26px;
  border-right: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

table input[type=text]:read-only {
  border: 0;
}

table input[type=text],
table input[type=password],
table input[type=email],
table input[type=tel]
{
  padding: 2px;
}

table input[type=date],
table input[type=time] {
  text-align: center;
}

table select {
  width: 100%;
  padding: 2px;
}

table select:invalid,
table input:invalid {
  border: 2px solid red;
}

input[type=submit],
input[type=button],
button {
  border: 1px solid var(--color-primary-dark);
  border-radius: 4px;

  background-color: var(--color-primary);
  color: var(--color-primary-background);

  margin: 0 2px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

input[type=button]#new-issue {
  background-color: #13862C;
  border: 1px solid black;
}

input[type=button]#new-issue:hover:not([disabled]) {
  background-color: #0E6621;
  color: white;
}

input[type=submit]:disabled,
input[type=button]:disabled,
button:disabled {
  background-color: var(--color-primary-background);
  color: var(--color-primary-dark);
  cursor: not-allowed;
}

input[type=submit]:hover:not([disabled]),
input[type=button]:hover:not([disabled]),
button:hover:not([disabled]) {
  background-color: var(--color-primary-dark);
  color: white;
}

input[type=checkbox],
input[type=radio] {
  cursor: pointer;
}

input[type=checkbox]:disabled,
input[type=radio]:disabled {
  cursor: not-allowed;
}

a:has(span.issue-id.solved)
{
  background-color: rgba(144, 238, 144, 0.70);
  padding: 2px 4px;
  border-radius: 4px;
  color: black;
  display: inline-block;
  white-space: normal;


}
a:has(span.issue-id.unsolved)
{
  background-color: rgba(255, 183, 77, 0.75);
  padding: 2px 4px;
  border-radius: 4px;
  color: black;
  display: inline-block;
  white-space: normal;

}
a:has(span.issue-id.unsolved.new)
{
  background-color: rgba(255, 0, 0, 0.2);
  /* background-color: rgba(255, 20, 10, 0.25); */
  padding: 2px 4px;
  border-radius: 4px;
  color: black;
  display: inline-block;
  white-space: normal;

}


/* ============================== */
/* IDs */
/* ============================== */

#notify-box {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  height: 90%;
  flex-flow: column;
  width: 450px;
  pointer-events: none;
  z-index: 9999;
  color: var(--color-secondary-text);
}

#notify-box .notify-item {
  min-height: 30px;
  padding: 5px 5px 5px 30px;
  background: #8080804d;
  margin: 5px 10px;
  text-align: left;
  line-height: 30px;
  border-radius: 5px;
  pointer-events: all;
  cursor: pointer;
}

#notify-box .notify-error {
  background: url('/obrazky/chyba.png') 5px center no-repeat, #930000eb;
  background-size: 22px;
}

#notify-box .notify-warning {
  background: url('/obrazky/varovani.png') 5px center no-repeat, #cb8000;
  background-size: 20px;
}

#notify-box .notify-success {
  background: url('/obrazky/notify-success.svg') 7px center no-repeat, #008100ed;
  background-size: 17px;
}

#login{
  display: flex;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#login > div:first-child{
  color: var(--color-secondary-text);
  overflow-y: auto;
}

#login div:first-child > div:first-child{
  font-size: xx-large;
  color: var(--color-secondary-text);
  font-weight: bold;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

#login div:first-child > div:first-child span:first-of-type,
#login div:first-child > div:first-child span:last-of-type{
  width: 20%;
  height: 50px;
  background-color: var(--color-primary-dark);
}

#login .title{
  display: flex;
  flex-grow: 1;
  justify-content: center;
  background-color: var(--color-primary-light);
  padding: 20px 0px;
}

#login div:first-child > div:last-child{
  background-color: var(--color-primary-dark);
}

#login form{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  min-width: 400px;
}

#login input:focus,
#login input:active{
  outline: none;
}

#login .mainIcon{
  padding: 15px;
  border: 5px solid var(--color-secondary-text);
  ;
  color: var(--color-secondary-text);
  font-size: 700%;
  border-radius: 100px;
  margin: 20px;
  margin-top: 0px;
}

#login .inputContainer{
  width: 80%;
}

#login .inputContainer div{
  display: flex;
  align-items: stretch;
  border-radius: 15px;
  background-color: var(--color-primary);
  overflow: hidden;
  margin-bottom: 15px;
}

#login .inputContainer div i{
  padding: 5px;
  border-right: 1px solid var(--color-secondary-text);
  margin: 10px;
  margin-right: 0px; /* Shitty Opera fix */
}

#login .inputContainer div input{
  display: flex;
  flex-grow: 1;
  background-color: var(--color-primary);
  color: var(--color-secondary-text);
  font-size: large;
}

/* Shitty Opera & Firefox fix */
input:autofill,
input:-moz-autofill,
input:-moz-autofill-preview,
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  background-color: var(--color-primary) !important;
  color: var(--color-secondary-text) !important;
  filter: none !important;
}

textarea:invalid {
  border: 2px solid red;
}

#login .inputContainer div input::placeholder{
  color: rgb(175, 175, 175);
}

#login .inputContainer div input,
#login input[type=submit]{
  margin: 0px;
  border: 0px;
  padding: 0px;
  padding-left: 10px; /* Shitty Opera fix */
  display: flex;
  flex-grow: 1;
  /*background-color: var(--color-primary);*/
}

#login input[type=submit]{
  background-color: var(--color-primary-light);
  color: var(--color-secondary-text);
  width: 80%;
  min-height: 54px;
  border-radius: 15px;
  font-size: x-large;
  font-weight: bold;
  cursor: pointer;
  justify-content: center;
}

#login input[type=submit]:hover{
  background-color: var(--color-primary);
}

/* ============================== */
/* CLASSes */
/* ============================== */

.noSelect{
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.material-icons {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.SumoSelect {
  width: 300px;
}

.loading-cursor,
.loading-cursor * {
  cursor: wait !important;
}

.tl {
  text-align: left;
}

.tc {
  text-align: center;
}

.tr {
  text-align: right;
}

.tb {
  font-weight: bold;
}

.nw {
  white-space: nowrap;
}

.w100 {
  width: 100%;
}

.error {
  color: red;
}

.warning {
  color: orange;
}

.notice {
  color: yellow;
}

.success {
  color: green;
}

.unimportant {
  color: rgba(0,0,0,0.25);
}

.sortable th:hover {
  cursor: pointer;
  background-color: var(--color-secondary);
}

.sortable th > .tableHeaderSortContainer {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  align-items: center;
}

.sortable .tl > .tableHeaderSortContainer {
  justify-content: flex-start;
}

.sortable .tc > .tableHeaderSortContainer {
  justify-content: center;
}

.sortable .tr > .tableHeaderSortContainer {
  justify-content: flex-end;
}

.sortable th > .tableHeaderSortContainer > .tableHeaderSortIcon {
  display: none;

  margin-right: 4px;
}

.sortable .sortUP .tableHeaderSortIconUP,
.sortable .sortDOWN .tableHeaderSortIconDOWN {
  display: initial!important;
}

.materialIconContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.materialIconContainer i {
  padding-right: 4px;
}

.pointer > tbody > tr:hover {
  background-color: var(--color-secondary-light)!important;
}

.permission_none {
  color: red;
}

.permission_readonly {
  color: blue;
}

.permission_edit {
  color: green;
}

.permission_select {
  width: 100px;
  color: white;
  padding: 2px;
}

.permission_select option {
  color: white;
}

.permission_select .permission_none {
  background-color: red;
}

.permission_select .permission_readonly {
  background-color: blue;
}

.permission_select .permission_edit {
  background-color: green;
}

.multi_submit {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.fullInput input[type=text],
.fullInput input[type=date] {
  width: 100%;
  border: 0 solid rgba(0,0,0,0);
  background-color: rgba(0,0,0,0);
  cursor: text;
}

.flex-evenly {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
}

.attachements{
  width: 100%;
  margin-top: 4px;
  margin-bottom: 4px;
  padding-top: 4px;
  border-top: 1px solid gray;
}

.comment-user-infobutton{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.clickable-text{
  text-decoration: underline;
  cursor: pointer;
}

.system-checkbox-label{
  display: block;
  cursor: pointer;
  margin-top: 4px;
  margin-bottom: 4px;
  width: fit-content;
}
.system-checkbox{
  width: 20px;
  height: 20px;
  vertical-align: middle;
}


/* ============================== */
/* in-line FLEX */
/* ============================== */

.flex-row-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.flex-row-nw {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* ============================== */
/* FILTERs */
/* ============================== */

.filter_item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  flex-grow: 1;

  padding: 8px 16px;
  border-right: 2px solid var(--color-primary-background);
}

.filter_item > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  flex-grow: 1;
}

.filter_item > div > input[type=text],
.filter_item > div > input[type=checkbox],
.filter_item > div > input[type=date],
.filter_item > div > select {
  display: flex;
  flex-grow: 1;

  height: var(--filter-height);
  padding: var(--filter-padding);
  border: var(--filter-border);
  border-radius: var(--filter-border-radius);
  background-color: var(--filter-bg-color);
}

.filter_item > div > input[type=checkbox] {
  width: var(--filter-height);
}

.filter_item > div > i {
  padding-right: 8px;
}

.filter_item > div > span {
  padding-right: 8px;
  font-weight: bold;
}

.filter_search {
  flex-direction: column;
  align-items: flex-start;
}

.filter_search input[type=text] {
  width: 200px;
}

.filter_search .filter_search_result {
  width: 100%;
}

.filter_search .filter_search_result span {
  font-weight: normal;
}

.filter_button {
  height: 100%;
}

.filter_button input[type=button] {
  height: 100%;
  padding: 8px;
}

.filter_button input[type=button]:hover {
}

.filter_buttons_cal {
  margin-left: 5px;
}

.cal_button {
  font-size: 16px;
  font-weight: bold;
}

.SumoSelect > .CaptionCont {
  padding: var(--filter-padding);
  border: var(--filter-border);
  border-radius: var(--filter-border-radius);
  background-color: var(--filter-bg-color);
}

.filter_item > div > input[type="text"]:focus,
.filter_item > div > input[type="text"]:hover,
.filter_item > div > input[type="date"]:focus,
.filter_item > div > input[type="date"]:hover,
.filter_item > div > select:focus,
.filter_item > div > select:hover,
.SumoSelect.open > .CaptionCont,
.SumoSelect:focus > .CaptionCont,
.SumoSelect:hover > .CaptionCont {
  box-shadow: var(--filter-focus-shadow);
  border-color: var(--filter-focus-border-color);
  outline: 0;
}

.chosen-drop {
  font-weight: normal;
}

.chosen-drop .group-result {
  font-size: 15px;
  padding-left: 20px !important;
  background-color: #D2D2D2;
}

.chosen-container .chosen-results {
  max-height: 300px !important;
}

ul.chosen-results li.neaktivni,
ul.options li.neaktivni {
  background-color: rgba(128,128,128,0.1);
  color: rgba(0,0,0,0.7);
}

ul.options>li.group>label {
  background-color: lightgray
}

.SumoSelect{
  width: 100%!important;
}

.isHistory {
  font-size: 80%;
  color: gray;
}

.block-container {
  display: flex;
  margin: 16px;
  min-width: 520px;
  flex-flow: wrap;
}
.block-container .subwindow-html {
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  box-shadow: 2px 4px 16px 0px rgba(0,0,0,0.5);
  margin: 8px;
}
.block-container .subwindow-head {
  color: var(--color-primary-dark);
  background-color: var(--color-secondary);
  border-bottom: 1px solid var(--color-primary);
  cursor: default;
  max-height: 32px;
}

.forms-container table > tfoot td button, .forms-container table > tfoot td input {
  margin: 8px;
}

.forms-container>table {
  border-bottom: 1px solid black;
}

.forms-container table td:first-child {
  width: 20%;
  white-space: nowrap;
}

.logged-in-user
{
  font-size: 70%;
  white-space: nowrap;
}

.relation-option-title{
  font-weight: bold;
  display: block;
}

table.AccountRequestComment{
  margin-top:8px;
  border: 1px solid silver;
}
table.AccountRequestComment caption{
  text-align: left;
  margin: 6px 10px;
  font-weight: bold;
}
div.comment{
  max-height: 1440px;
  overflow-y: auto;
}
div.comment-device{
  max-height: 256px;
  overflow-y: auto;
}

div.lb-thumbnail{
  background-color: #ccc;
  width: 128px;
  height: 128px;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin:5px 0;
}

div.editable{
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px;
  resize: vertical;
  overflow: auto;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  white-space: pre-wrap;
  background-color: #fff;
  min-height: 56px;
}

div.hidden{
  display: none;
  opacity: 0;
}

span.hidden{
  display: none;
  opacity: 0;
}

textarea.comment-edit {
  padding: 4px;
  width: 100%;
  resize: vertical;
  min-height: 56px;
  font-family: sans-serif, Verdana, Arial;
  font-size: 14px;
  height: auto;
}


.td-detail{
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
  color: navy;


}

.th-sticky{
  width: 150px;
  position: sticky;
  right: 0;
  background-color: var(--color-secondary-dark);
  white-space: nowrap;
}

tr.marker,
tr:nth-child(2n).marker,
tr:nth-child(2n+1).marker,
table tbody tr.report-to-customs.marker
{
  background-color: navajowhite;
}

.to-filter{
  text-decoration: underline;
  cursor: pointer;
}
.to-filter:hover{
  color: var(--color-primary-light);
}
.to-filter:empty{
  cursor: default;
}

table tbody tr.warranty td[data-filter=ZARUKA_DO] {
  color: rgba(0, 150, 0, 0.8);
}

select:required + p.SelectBox[title="-- Vyberte --"],
select:required + p.SelectBox[title=" -- Vyberte --"]
{
  border: 2px solid red;
}

.subwindow-html {
  width: unset;
  min-width: 600px;
}

.print-only {
  display: none;
}

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

#button-filter {
  display: none;
}

#button-menu {
  display: none;
}

.mobile-menu-button {
  display: none;
}


/* ============================== */
/* PAGINATION                     */
/* ============================== */

nav.pagination {
  background-color: var(--color-secondary-light);
  border: 1px solid rgba(0,0,0,0.4);
  padding: 6px;
  white-space: nowrap;
  position: sticky;
  left: 0;
}
ul.pagination {
  margin: 0 24px;
  display: inline-block;
}
ul.pagination > li.page-item {
  display: inline-block;
}
ul.pagination > li.page-item > a.page-link {
  color: var(--color-primary-text);
  /* text-decoration: none; */
  /* text-shadow: 0 0 6px rgba(0,0,0,0.6); */
  padding: 4px;
}
ul.pagination > li.page-item > a.page-link:hover {
  color: var(--color-primary-light);
}
ul.pagination > li.page-item > a.page-link.page-control {
  font-size: 130%;
  line-height: 12px
}
ul.pagination > li.page-item.active > a.page-link {
  color: var(--color-primary-text);
  text-decoration: none;
  opacity: 0.3;
  font-weight: bold;
  cursor: default;
}
ul.pagination > li.page-item.disable > a.page-link {
  display: none;
}
nav.pagination div.page-size {
  display: inline-block;
  font-size: 70%;
}
nav.pagination > div.page-size > input.page-size,
nav.pagination > div.page-size > select.page-index {
  display: inline-block;
  min-width: 40px;
  max-width: 60px;
  text-align: center;
  margin: 0 6px;
}
nav.pagination > div.page-size > select.page-index {
  border: 1px solid gray;
  border-radius: 0;
}
nav.pagination > div.page-size > select.page-index option {
  background-color: var(--filter-bg-color);
}
nav.pagination > div.page-size > select.page-index option:checked {
  background-color: var(--color-secondary-light);
}


/* ============================== */
/* MEDIA */
/* ============================== */

@media(min-width: 501px){

  footer {
    flex-direction: row;
  }

  footer .filter_item {
    justify-content: center;
    flex-grow: 0;
  }

}

@media(min-width: 601px){

  header nav span {
    display: block;
  }

  header nav .material-icons {
    /*display: none;*/
  }

}

@media(min-width: 801px){

  header nav .material-icons {
    display: inline-block;
    padding-right: 8px;
  }

}

@media(max-width: 480px) {

  #notify-box {
    width: 100%;
  }

  .notify-item {
    margin: 1px;
  }
}

@media(max-width: 500px) {

  .SumoSelect {
    display: flex;
    flex-grow: 1;
  }

  .SumoSelect > .CaptionCont {
    width: 100%;
  }

}

@media(max-width: 600px){

  #login{
    justify-content: stretch;
    align-items: stretch;
    overflow-x: hidden;
  }

  #login > div:first-child {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  #login div:first-child > div:first-child span:first-of-type,
  #login div:first-child > div:first-child span:last-of-type {
    display: none;
  }

  #login div:first-child > div:last-child {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    align-items: flex-start;
  }

  #login form {
    min-width: inherit;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    width: 100%;
  }

  #login input[type=submit]:active {
    padding: 2px 0px 0px 2px;
    color: red;
  }

  .subwindow-html {
    width: 100%;
    min-width: unset;
  }
}

@media(max-width: 500px) {

  /* PAGINATION pro úzkou stránku  */
  nav.pagination div.page-size span.txt-ttl {
    display:none;
  }
  ul.pagination > li.page-item {
    display:none;
  }
  ul.pagination > li.page-item.active,
  ul.pagination > li.page-item:nth-child(-n+2),
  ul.pagination > li.page-item:nth-last-child(-n+2) {
    display:inline;
  }
  ul.pagination > li.page-item > a.page-link {  
    padding: 4px 8px;
  }
  
}

@media(max-height: 460px) {

  #login {
    background-color: var(--color-primary-dark);
  }

  #login div:first-child > div:first-child {
    display: none;
  }

}

@media(max-height: 600px){

  #logOutContainer {
    height: auto;
  }

  #logOutContainer a {
    margin: 0px;
  }

}

@media(max-height: 640px) {

  #login .mainIcon {
    display: none;
  }

}

@media print {

  * {
    background-color: white;
    color: black;
  }

  input, button, img, header {
    display: none;
  }

  html, body, div.comment, div.comment-device {
    overflow: visible;
    height: auto;
    max-height: none;
  }

  div.lb-thumbnail {
    display: none;
  }

  #notify-box {
    display: none;
  }

  .isHistory {
    display: none!important;
  }

  .print-only {
    display: revert;
  }

  .no-print {
    display: none!important;
  }

}

