/* Tomas Zimmerhakl - last edit 24.5.2024 V9 */
/* CSS Style for HMI web - one big file */

/* --------- VARIABLES --------------*/

:root {
	/* Global background image - path */
	--GlobalBackgroundImageURL: url("../images/bg/bg_christmas_1.jpg?v=007");
	/* Obrázek na stránce login.php */
	--LoginImage: url("../images/login_octavia_christmas.png?v=007");
	/* Hlavní stránka + všechny další dlaždice */
	--IndexTableMin-Height: 450px;
	/* Editační stránka */
	--EditTableMin-Height: 670px;
	/* Nastavení - velmi dlouhé boxy s checkboxy */
	--LongSettingsTableMin-Height: 920px;
}

/* --------- Bootstrap classes --------- */
/* Target is to get rid off Bootstrap because updates are not backward compatible with grapics */

::after, ::before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

* {
    webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
	font-size: 10px;
}

body {
	line-height: 1.42;
}


a, a:hover, a:focus {
    text-decoration: none;
}

a {
    color: #337ab7;
}

a:focus {
    outline: none;
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
}

.container::after {
    clear: both;
	display: table;
	content: " ";
}

.container::before {
	display: table;
	content: " ";
}

.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}

.col-lg-6, .col-lg-12 {
	position: relative;
	padding-right: 15px;
    padding-left: 15px;
}

.col-md-6, .col-md-12 {
	position: relative;
	padding-right: 15px;
    padding-left: 15px;
}

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.btn {
    display: inline-block;
    margin-bottom: 0;
    line-height: 1.42;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
}

.btn.disabled, .btn[disabled], fieldset[disabled] .btn {
    cursor: not-allowed;
    filter: alpha(opacity = 65);
    -webkit-box-shadow: none;
    box-shadow: none;
    opacity: .65;
}

p {
    margin: 0 0 0;
}

@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .col-md-12{
		width: 100%;
		float: left;
	}
	.col-md-6 {
		width: 50%;
		float: left;
	}
	.container {
        width: 970px;
    }
}

@media (min-width: 1200px) {
	.col-lg-6, col-lg-7 {
		float: left;
		width: 50%;
	}
	.container {
		width: 1170px;
	}
}

/* ----------------------- end of bootstrap -------------------- */
/* ------------------------------------------------------------- */

/* ----------------------- HMI Web specific -------------------- */


body{
	margin:0;
    padding:0;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight:300;
	min-height: 100%;
}

/* CUSTOM SKIN */
body::after {
  content: "";
  background: var(--GlobalBackgroundImageURL); 
  opacity: 0.7;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  /*position: absolute;*//* for seamless backgrounds */
  position:fixed;
  z-index: -1;   
}

body::-webkit-scrollbar {
    width: 0.7em;
}
body::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 10px 10px 10px rgba(255,255,255,0.8);
}
body::-webkit-scrollbar-thumb {
  background-color: rgba(0,35,102,0.7);
  
}

.tm-logo { 
	margin-bottom: 25px; 
	width: 80% !important;	
}

@media screen and (max-width:991px){
	.tm-logo { 
	margin-bottom: 25px; 
	width: 60% !important;	
	}
}

.center{
	margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 90%;
}

p {
    margin-left: 15px;
    line-height: 1.8;
}

.tm-box-center {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}


#particles-js{
	position: absolute;
	background-color: #808080;
	width: 100%;
}

#home {
    padding-top: 5.5em;
}

/* PROJECT CAR IMAGE */
.projectCarImage{
	text-align:center;
}
 
.projectCarImage img {
	max-width:93%;
	max-height: 300px;
	margin: 10px 0px 30px 0px;
}

/* LOGIN */
.loginimage {
    text-align: center;
    margin-top: 20px;
    margin-bottom: -9px;
    height: 130px;
    width: 100%;
    background-size: 93%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: var(--LoginImage);
}

.loginimage img {
	max-width:93%;
	max-height: 300px;
	margin: 10px 0px 30px 0px;
}

.content {
    padding-right: 0px;
    padding-left: 0px;
}
.content-item {
    padding-right: 5%;
    padding-left: 5%;
    min-height: var(--IndexTableMin-Height) !important;
}
.content-item-middle {
    padding-right: 5%;
    padding-left: 5%;
    min-height: var(--EditTableMin-Height);
}
.content-item-long-settings {
    padding-right: 5%;
    padding-left: 5%;
    min-height: var(--LongSettingsTableMin-Height);
}
.content-item-pass-change {
    padding-right: 5%;
    padding-left: 5%;
    min-height: 380px !important;
}
.content-item-pass-create {
    padding-right: 5%;
    padding-left: 5%;
    min-height: 420px  !important;
}
.content-item p:last-child {
    margin-bottom: 0;
}
.background.content-item-1 {
    padding: 0px 65px;
	padding-bottom: 20px;
}


.tm-content-box {
    padding: 55px 45px;
}

.tm-content-box-filters{
    display: flex;
    flex-wrap: wrap;
    align-content: space-around;
}

.tm-content-box-filters div{
    margin-inline: 10px;
    margin-block: 5px;
    flex: 0 0 25%;
}

.header{
	background-color: rgba(0,0,0, 0.7);
	padding: 20px 65px;
	color: white;
	
}

.header_user{
	margin: 0px !important;
	font-size: 28px;
	max-width: 600px;
}

.main-title {    
    font-weight: 300;
    font-size: 34px;
    line-height: 1.4;
    margin-top: 20px;
    margin-bottom: 10px;
}

.change-title {
	font-weight: 300;
    font-size: 15px;
    line-height: 1.4;
    margin-top: 0px;
    margin-bottom: 15px;
	opacity: 0.8;
}
	
.user-edit-log{
	margin-top: 8px;
}

.last-db-value{
	padding-top: 11px;
	visibility: hidden;
	width: 0px;
}

.dark-blue-text { color: #4169E1; }

.btn {
    border-radius:0px;
    padding: 10px 25px;
    margin-top: 20px;
    margin-right: 15px;
    font-size: 20px;
    font-weight: 300;
    transition:all 0.3s;
	min-width: 150px;
    -webkit-transition:all 0.3s;
}
.btn:last-child { margin-right: 0; }
.btn-big {
    padding: 10px 40px;
    min-width: 176px;
}
.btn-contact {
    font-size: 2rem;
    padding: 0px 35px;
    font-weight: 300;
    margin-top: 0;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.btn-contact:hover,
.btn-contact:focus {
    background-color: rgba(47,47,47,0.5);
}

a.btn-contact {
	padding: 5px 35px;
}

.btn-left-margin {
	margin-left: 15px;
}

.btn-mini {
	min-width: 0px;
	margin-right: 0;
}

.form-control {
    box-shadow: none;
    font-size: 18px;
    height: auto;
    padding: 11px 17px;
	border-radius: 0px;
	
}
.form-group {
    margin-bottom: 0px;
	display: flex;
	height: 40px;
}

.old-version{
	color: rgba(0,0,0,0.4);
	margin-left: 10px;
	margin-bottom: 8px;
}

.old-version-black{
	color: rgba(255,255,255,0.4);
	margin-left: 10px;
	margin-bottom: 8px;
	max-height: 46px;
}

.contact-form {
    overflow: hidden;
    margin-left: -15px;
    margin-right: -15px;
}
.content-item input, .content-item textarea {
    border-radius:0px;
	border: 0px;
}
.contact-field {
    padding-left: 0;
    padding-right: 0;
}
.footer {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 400;
    padding: 48px 0;
}
.footer a {
	color: #fff;
}

.margin-b-0 { margin-bottom: 0; }
.tm-white-text { color: white; }
.tm-white-bg { background-color: white; }
.tm-white-translucent-bg { background-color: rgba(255,255,255, 0.9); }
.tm-black-translucent-bg { background-color: rgba(127,0,0,0.7); } /* CHRISTMAS SKIN */
.tm-black-translucent-bg > * {
    color: white;
}

h1 { font-size: 54px; }

@media screen and (max-width:1199px){
	 h1 { font-size: 49px; }
}

@media screen and (max-width:420px){
	 h1 { font-size: 40px; }
}

.tm-btn-primary { 
    background-color: #2D499D; 
    color: white;
    border: 1px solid transparent;
}

.tm-btn-primary:hover,
.tm-btn-primary:focus {
    background-color: #3454b4;
    color: white;
}

.form-control:focus {
    border-color: rgba(45, 73, 157, 1);
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(45, 73, 157, 0.075), 0 0 8px rgba(45, 73, 157, 0.6);
}

.tm-border-box { display: inline-block; }

.tm-logo-box {
    text-align: center;
	min-height: 170px;    
}

@media screen and (max-width:991px){
	.tm-logo-box {
		padding-top: 40px;
	}
}

@media screen and (max-width:1199px){
    .content-item { min-height: var(--IndexTableMin-Height) !important; }
    .btn { margin-top: 0px; }    
    textarea#message { height: 125px; }
}

@media screen and (max-width: 1199px) and (min-width: 992px) {    
    .background.content-item-1 { padding: 0 3% 2% 3%; }
    .btn { margin-top: 0px; }
    .btn-contact { margin-top: 0; }
    .form-control { font-size: 0.9em; }
}

@media screen and (max-width:991px){
    .content-item {
        min-height: inherit !important;
        padding-top: 10%;
        padding-bottom: 10%;
        width: 100%;        
    }
    
    .background p { line-height: 27px; }
    .background p { font-size: 16px; }
    .background h2 {
        margin-bottom: 10px;
        margin-top: 0;
    }

    .btn { margin-top: 0px; }
    
    textarea#message { height: inherit; }

    .main-title { margin-top: 0; }	

    .background.content-item-1 {
        padding: 4%;
    }

    .tm-section-3 > .content-item { display: none; }

    .tm-section-3-header { margin-top: 0; }
}

@media screen and (max-width:767px){
    
    #home { padding-top: 62px; }
    .main-title { margin-bottom: 30px; }
}

@media screen and (max-width:500px) {
    .btn { margin-top: 0px; }
}

@media screen and (max-width: 480px) {
    .background.content-item-1 { padding: 5%; }
}

@media screen and (max-width: 420px) {
    .background { padding: 40px 35px; }
    .background.content-item-1 { padding: 4%; }
}

/* HISTORY.php */
#lin{
	width: 30px;
	height: 30px;
	/* background-color: red; */
	position: absolute;
	left: 0;
	top: 0;
}

.z5{
	color: white !important;
	margin-top: 20px !important;
}

/*--------------------MQB--------------------*/


table.MQBTable {
  background-color: #555555;
  max-width: 900px;
  width: 100%;
  /*height: 200px;*/
  text-align: left;
  border-collapse: collapse;
  margin: auto;
}

table.MQBTable td, table.MQBTable th {
  border: 1px solid rgb(150,150,150,0.7);
  padding: 8px 10px;
  width: 201px;
}
table.MQBTable tbody td {
  font-size: 18px;
  color: #FFFFFF;
}

table.BigTable tbody td {
  font-size: 12px;
}

table.MQBTable td:nth-child(even) {
  background: #2d499d;
}
table.MQBTable thead {
  background: #2d499d;
}
table.MQBTable thead th {
  font-size: 15px;
  font-weight: bold;
  color: #FFFFFF;
  text-align: center;
}
table.MQBTable tfoot td {
  font-size: 13px;
}
table.MQBTable tfoot .links {
  text-align: right;
}
table.MQBTable tfoot .links a{
  display: inline-block;
  background: #FFFFFF;
  color: #2d499d;
  padding: 2px 8px;
  border-radius: 5px;
}

table.HistoryTable{
	max-height: 554px !important;
	height: auto !important;
	overflow: auto;
	display: block !important;
    max-width: fit-content;	
}

/*--------------------BurgerMenu--------------------*/

#menuToggle
{
  display: block;
  position: absolute;
  top: 35px;
  right: 35px;
  
  z-index: 1;
  
  -webkit-user-select: none;
  user-select: none;
}

@media screen and (max-width:991px){
	#menuToggle{		 
		top: 23px;
	}
}

@media screen and (max-width:420px){
	#menuToggle{		 
		top: 42px;
	}
}

#menuToggle input{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  
  background: #cdcdcd;
  border-radius: 3px;
  
  z-index: 1;
  
  transform-origin: 4px 0px;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #232323;
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
 /* header.php */
#menu
{
  position: absolute;
  width: 300px;
  margin: -62px 0 0 -232px;
  padding: 50px;
  padding-top: 125px;
  
  background: #ededed;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  
  transform-origin: 100% 100%;
  transform: scaleX(0);
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

@media screen and (max-width:991px){
	#menu{		 
		margin: -50px 0 0 -232px;
	}
}

@media screen and (max-width:411px){
	#menu{		
		width: 290px;
		margin: -69px 0 0 -222px;
	}
}

#menu li
{
  padding: 10px 0;
  font-size: 22px;
  text-align: right;
  color: #4169E1;
  transition: 0.3s;
}

#menu li:hover
{
  color: rgba(0,0,0,0.4);
  transition: 0.3s;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul
{
  transform: none;
}

/*--------------------PopupWithVersions--------------------*/

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 70px auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 100%;
  position: relative;
  transition: all 5s ease-in-out;
  overflow-x: auto;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
}
.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.popup .close:hover {
  color: #06D85F;
}
.popup .content {
  max-height: 30%;
  overflow: auto;
}

/*--------------------InputDD--------------------*/

/*the container must be positioned relative:*/
.custom-select {
  position: relative;
  margin-left: 15px;
  margin-right: 15px;
}

.custom-select select {
  display: none; /*hide original SELECT element:*/
}

.select-selected {
  background-color: rgba(230,230,230, 1);  
}

/*style the arrow inside the select element:*/
.select-selected:after {
  position: absolute;
  content: "";
  top: 16px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #555 transparent transparent transparent;
}

/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #555 transparent;
  top: 7px;
}

/*style the items (options), including the selected item:*/
.select-items div,.select-selected {
  color: #555;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
  line-height: 1.42857143;
  background-color: #fff;
  background-image: none;
  user-select: none;
}

/*style items (options):*/
.select-items {
  position: absolute;
  background-color: rgba(230,230,230, 1);
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

/*hide the items when the select box is closed:*/
.select-hide {
  display: none;
}

.select-items div:hover, .same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}

/*--------------------InputCheckbox--------------------*/
.control {
    display: flex;
    position: relative;
    padding-left: 30px;
    margin-bottom: 5px;
    padding-top: 1px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}
    .control input {
        position: absolute;
        z-index: -1;
        opacity: 0;
    }
.control_indicator {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background: #fdfbfb;
    border: 2px solid #dfdfdf;
    border-radius: 0px;
}
.control:hover input ~ .control_indicator,
.control input:focus ~ .control_indicator {
    background: #fdfbfb;
}

.control input:checked ~ .control_indicator {
    background: #fbfdfd;
}
.control:hover input:not([disabled]):checked ~ .control_indicator,
.control input:checked:focus ~ .control_indicator {
    background: #a6dae7;
}
.control input:disabled ~ .control_indicator {
    background: #e6e6e6;
    opacity: 0.6;
    pointer-events: none;
}
.control_indicator:after {
    box-sizing: unset;
    content: '';
    position: absolute;
    display: none;
}
.control input:checked ~ .control_indicator:after {
    display: block;
}
.control-checkbox .control_indicator:after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #702a2f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.control-checkbox input:disabled ~ .control_indicator:after {
    border-color: #7b7b7b;
}
.control-checkbox .control_indicator::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 4.5rem;
    height: 4.5rem;
    margin-left: -1.3rem;
    margin-top: -1.3rem;
    background: #2aa1c0;
    border-radius: 3rem;
    opacity: 0.6;
    z-index: 99999;
    transform: scale(0);
}
@keyframes s-ripple {
    0% {
        transform: scale(0);
    }
    20% {
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}
@keyframes s-ripple-dup {
    0% {
       transform: scale(0);
    }
    30% {
        transform: scale(1);
    }
    60% {
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}
.control-checkbox input + .control_indicator::before {
    animation: s-ripple 250ms ease-out;
}
.control-checkbox input:checked + .control_indicator::before {
    animation-name: s-ripple-dup;
}

/* TOM 29.1.2020 */
/* deliveries.php, settings.php, administration.php */
.user-warning{
	color: lime;
}
.user-warning2{
	color: red;
}

/* TOM 19.6.2020 */
/* history.php a index.php */
#message-box{
	position: fixed;
	margin-top: 20px;
	width: 576px;
	left: 50%;
	margin-left: -288px;
	padding: 10px 30px;
	text-align: center;
	
	
	background: #3f5887;
	color: white;
	z-index: 2;
	opacity: 0;
	transition: opacity 1s;
}

/* newTest.php */
.form-container{
    max-width: 640px;
    margin: 0 auto;
}

/* deliveries.php */
.delivery-form{
    margin-top:15px
}

