:root {
	--color-red: #c00;
	--color-green: #090;
	--color-blue: #369;
	--color-white: #fff;
	--color-black: #000;
	--color-gray: #ccc;
	--color-silver: #eee;
    --color-primary: #000;
}
*::before,
*::after {
	box-sizing: border-box;
}
html {
	font-size: 10px;
	scroll-behavior: smooth;
	scroll-padding-top: 5rem; 
}
body {
	margin: 0;
	padding: 0;
	width: 100%;
	min-width: 360px;
	min-height: 100vh;
	background: var(--color-white);
	position: relative;
	font-family: Arial;
	font-size: 10px;
    background-color: var(--color-blue);	
	background-image: url(../img/bg.jpg);
	background-size: cover;
	background-position: 0 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    box-shadow: 0 0 10rem #036 inset;
}
body::-webkit-scrollbar {
    width: 2.5rem;
}
body::-webkit-scrollbar-track {
    background: var(--color-blue);
}
body::-webkit-scrollbar-thumb {
    background: var(--color-white);
    border: 0.rem solid var(--color-blue);
    border-radius: 100vw;
    cursor: ns-resize;
}
@supports (scrollbar-color: red blue) {
    body {
        scrollbar-color: var(--color-blue) var(--color-white);
        scrollbar-width: auto;
    }
}

/* login form */

#loginForm {
	position: fixed;
	inset: 0;
	margin: auto;
	padding: 1rem 2rem 2rem 2rem;
	width: 26rem;
	height: max-content; 
	border-radius: 1rem;
	background: rgba(240,240,240,0.9);
	outline: 0.5rem solid var(--color-silver);
	outline-offset: 0.5rem;
    box-shadow: 0 0 1rem var(--color-gray) inset,
				0 0 5rem var(--color-black);
	opacity: 0;
    
	-webkit-animation: loginForm 1s forwards;
    -moz-animation: loginForm 1s forwards;
    -ms-animation: loginForm 1s forwards;
    -o-animation: loginForm 1s forwards;
	animation: loginForm 1s forwards;
    
	-webkit-animation-delay: 1s;
    -moz-animation-delay: 1s;
    -ms-animation-delay: 1s;
    -o-animation-delay: 1s;
	animation-delay: 1s;
}
@-webkit-keyframes loginForm { 100% { opacity: 1; } }
@-moz-keyframes loginForm { 100% { opacity: 1; } }
@-ms-keyframes loginForm { 100% { opacity: 1; } }
@-o-keyframes loginForm { 100% { opacity: 1; } }
@keyframes loginForm { 100% { opacity: 1; } }

#loginForm h2 {
	margin: 0 0 1rem 0;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.4rem;
    color: transparent;
    background-image: url(../img/view.jpg);
    
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -ms-background-clip: text;
    -o-background-clip: text;
    background-clip: text;
    
    background-size: cover;
    background-position: 50% 50%;
}
#loginForm .form-field {
	display: block;
	margin-bottom: 1rem;
	text-align: left;
}
#loginForm .form-field input {
	display: block;
	width: 100%;
	padding: 1rem;
	background: var(--color-white);
	border: 0;
	border-radius: 0.5rem;
	font-size: 1.5rem;
}
#loginForm .form-field input:hover,
#loginForm .form-field input:focus {
	box-shadow: 0 0 1rem var(--color-gray);
}
#loginForm .form-field label {
	display: block;
	font-size: 1.2rem;
	font-weight: normal;
	margin: 1rem;
	cursor: pointer;
}
#loginForm .form-field label input {
	display: inline-block;
	width: auto;
	accent-color: var(--color-black);
}
#loginForm button {
	padding: 1rem;
	background: var(--color-white);
	color: var(--color-black);
	font-size: 1.2rem;
	border: 0;
	border-radius: 0.5rem;
}
#loginForm button:hover,
#loginForm button:focus {
	outline: 0.2rem solid var(--color-silver);
	outline-offset: -0.5rem;
	cursor: pointer;
	box-shadow: 0 0 1rem var(--color-gray);	
}

/* voice and volume */

#voices {
	display: none;
}
#volume {
	position: fixed;
	z-index: 999;
	top: 1rem;
	right: -10rem;
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	background: rgba(255,255,255,0.8);
    
	-webkit-animation: volume 1s forwards;
    -moz-animation: volume 1s forwards;
    -ms-animation: volume 1s forwards;
    -o-animation: volume 1s forwards;
	animation: volume 1s forwards;
    
	-webkit-animation-delay: 1s;
    -moz-animation-delay: 1s;
    -ms-animation-delay: 1s;
    -o-animation-delay: 1s;
	animation-delay: 1s;
}
@-webkit-keyframes volume { 100% { right: 1rem; } }
@-moz-keyframes volume { 100% { right: 1rem; } }
@-ms-keyframes volume { 100% { right: 1rem; } }
@-o-keyframes volume { 100% { right: 1rem; } }
@keyframes volume { 100% { right: 1rem; } }
#volume:hover {
	background: var(--color-white);
}
#volume .on, #volume .off {
	display: block;
	padding: 1rem;
	font-size: 1.5rem;
	line-height: 0;
	border-radius: 50%;
}
#volume .on {
	color: var(--color-blue);
}
#volume .off {
	color: var(--color-red);
}
#volume .on:hover {
	color: var(--color-blue);
	outline: 0.2rem solid var(--color-blue);
	outline-offset: -0.1rem;
	cursor: pointer;
}
#volume .off:hover {
	color: var(--color-red);
	outline: 0.2rem solid var(--color-red);
	outline-offset: -0.1rem;
	cursor: pointer;	
}

/* top */

#top {
    position: fixed;
    z-index: 990;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 4rem;
    background: rgba(255,255,255,0.9);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    padding: 1rem;
}
#top ul.menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
#top ul.menu li {
	display: inline-block;
	padding: 0;
}
#top ul.menu li a {
	position: relative;
	display: block;
	font-size: 1.4rem;
	line-height: 2rem;
	color: var(--color-black);
	padding: 0 1rem;
}
#top ul.menu li a:hover,
#top ul.menu li a:focus {
	color: var(--color-blue);
	text-decoration: none;
}
#top ul.menu li a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1.1rem;
    width: 100%;
    height: 0.5rem;
	background: var(--color-blue);
	transform: scaleX(0);
    
	-webkit-transition: transform 0.5s easy-in;
    -moz-transition: transform 0.5s easy-in;
    -ms-transition: transform 0.5s easy-in;
    -o-transition: transform 0.5s easy-in;
	transition: transform 0.5s easy-in;
    
	-webkit-transition-duration: 0.5s;
    -moz-transition-duration: 0.5s;
    -ms-transition-duration: 0.5s;
    -o-transition-duration: 0.5s;
	transition-duration: 0.5s;
}
#top ul.menu li.active a::after {
	background: var(--color-red);
}
#top ul.menu li a:hover::after {
	transform: scaleX(0.7);
}

#top ul.menu li img {
    display: inline-block;
    max-height: 2rem;
    margin-left: 0.5rem;
    margin-top: -0.4rem;
}
#top ul.menu li.active a,
#top ul.menu li.active a:hover,
#top ul.menu li.active a:focus {
	color: var(--color-red);
}
#top ul.menu2 {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* page */
#blank {
    width: 100%;
    height: 6rem;
}
.page {
    position: relative;
    width: calc( 100% - 4rem );
	margin: 0rem 2rem 5rem 2rem;
	border-radius: 1rem;
	background: rgba(240,240,240,0.9);
    accent-color: var(--color-blue);
}
.page.page-transparent {
    background: transparent;
}
.page .pageHead {
    padding: 1rem 2rem;
    background: linear-gradient( 90deg, var(--color-blue), #337ab7 );
    border-radius: 1rem;
    font-size: 1.5rem;
    color: var(--color-white);
}
.page .pageHead span {
    margin-right: 1rem;
}
.page .pageBody {
    padding: 2rem;
    font-size: 1.4rem;
}
.page .alert {
    padding: 1rem 1.5rem 1rem 1.5rem;
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
}
.page .help-block { 
    font-size: 1.2rem;
}
.page fieldset {
    border: 0.1rem solid var(--color-blue);
    border-radius: 1rem;
    padding: 2rem 2rem 1rem 2rem;
    margin: 1rem;
    font-size: 14px;
}
.page fieldset legend {
    display: inline-block;
    background: linear-gradient( 90deg, var(--color-blue), #337ab7 );
    color: #fff;
    width: max-content;
    padding: 0.3rem 1.5rem;
    font-size: 1.2rem;
    margin: 0;
    border-radius: 0.5rem;
}
.page fieldset label {
    font-weight: normal;
    cursor: pointer;
}
.page fieldset label:nth-child(1) {
    font-weight: bold;
    cursor: default;
}
.page input[type=checkbox] {
    accent-color: var(--color-red);
    transform: scale(1.5);
    outline: 0.2rem solid var(--color-red);
    outline-offset: -0.2rem;
    cursor: pointer;
}
.page input[type=checkbox]:checked {
    accent-color: var(--color-green);
    outline: none;
}
.page .checkbox {
    margin: 1rem 0.5rem;
}
.page .checkbox::after {
    content: 'nie';
    font-size: 1.1rem;
    position: absolute;
    left: 2rem;
    color: var(--color-red);
}
.page .checkbox:checked::after {
    content: 'tak';
    color: var(--color-green);
}
.page .checkbox2 {
    margin: 0 0.5rem;
}
.page .checkbox2::after {
    content: attr(title);
    width: 100%;
}
.page .checkbox2:checked::after {
    content: attr(title);
    width: 100%;
}
.page .checkbox2bold::after {
    font-weight: bold;
    color: var(--color-black);
}
.page .checkbox2bold:checked::after {
    font-weight: bold;
    color: var(--color-black);
}
.page .checkblack {
    outline: 0.2rem solid var(--color-black) !important;
}
.page .checkblack:checked {
    outline: none !important;
}
.page label.simple {
    margin-left: 1rem;
    font-weight: normal;
    cursor: pointer;
}

.page .btn-box {
    width: 100%;
    height: max-content;
    border-radius: 2rem;
    background: rgba(255,255,255,0.8);
    color: var(--color-black);
    font-size: 2.4rem;
    padding: 2rem;
    margin-bottom: 25px;
}
.page .btn-box span {
    display: block;
    margin: 1rem auto;
    font-size: 4rem;
}
.page .btn-box:hover {
    color: var(--color-blue);
}

input:required,
select:required {
    background-image: url(../img/star.png);
    background-repeat: no-repeat;
    background-position: calc(100% - 0.5rem) 0.5rem;
}

.sticky thead {
    position: -webkit-sticky;
    position: sticky;
    top: 0px;
    z-index: 999;
}
.sticky40 thead {
    top: 40px;
}
.sticky-white thead {
    background: rgba(255,255,255,0.8);
}

.sort {
    display: inline-block;
    margin-left: 5px;
    vertical-align: top;
    color: #999;
    cursor: pointer;
}
.sort-rotate {
    transform: rotate(180deg);
}
.sort:hover {
    color: #369;
}
.sort-active {
    color: #000;
}

/* rest */

.success {
	display: block;
	color: var(--color-green);
	font-size: 1.25rem;
	padding: 0.5rem 1rem;
}
.error {
	display: block;
	color: var(--color-red);
	font-size: 1.25rem;
	padding: 0.5rem 1rem;
}
.mt1r {
    margin-top: 1rem;
}
.mt2r {
    margin-top: 2rem;
}
.mb1r {
    margin-bottom: 1rem;
}
.mb2r {
    margin-bottom: 2rem;
}
.fs12 {
    font-size: 1.2rem;
}
input.manualRange {
    float: right;
    font-size: 1.4rem;
    text-align: center;
    border-radius: 0.5rem;
    border: 0.1rem solid var(--color-gray);
}
.width25proc {
    display: inline-table;
    width: 23%;
    margin-right: 2%;
}
.width25proc:last-child {
    margin-right: 0;
}
.width50px {
    width: 50px;
}
.width100px {
    width: 100px;
}
.width150px {
    width: 150px;
}
.width200px {
    width: 200px;
}
.bg-red {
    background: var(--color-red);
    color: var(--color-white);
}
.bg-green {
    background: var(--color-green);
    color: var(--color-white);
}
.bg-blue {
    background: var(--color-blue);
    color: var(--color-white);
}
.toast-message {
    font-size: 1.4rem;
}
.page .pagination {
    margin: 0;
}
.alert-dismissable .close,
.alert-dismissible .close {
    right: -5px;
}
.pager {
    margin: 0;
}
#pager {
    margin: 0 0.5rem;
    padding: 0.2rem 0.5rem;
    border: 0.4rem solid var(--color-white);
    border-radius: 1.5rem;
    text-align: center;
    outline: 0.1rem solid var(--color-gray);
    cursor: pointer;
}
#limiter {
    margin: 0 0.5rem;
    padding: 0.2rem 0.5rem;
    border: 0.4rem solid var(--color-white);
    border-radius: 1.5rem;
    text-align: center;
    outline: 0.1rem solid var(--color-gray);
    cursor: pointer;
}
#filter {
    width: 300px;
    margin-bottom: 1rem;
    position: relative;
}
#filter input {
    border-radius: 2rem 0 0 2rem;
}
#filter button {
    border-radius: 0 2rem 2rem 0;
}
#filter .clear {
    position: absolute;
    z-index: 9;
    top: 5%;
    left: 65%;
    padding: 0.3rem;
    font-weight: bold;
    font-size: 1.8rem;
    color: var(--color-gray);
    cursor: pointer;
}
#filter .clear:hover {
    color: var(--color-black);
}
#only {
    float: right;
    width: 300px;
    text-align: right;
}
#filters {
    float: right;
    text-align: right;
}
#filters select {
    display: inline-block;
    margin-left: 1rem;
    width: max-content;
    padding: 0.3rem 1rem;
    border-radius: 1.5rem;
    text-align: left;
    outline: 0.1rem solid var(--color-gray);
    cursor: pointer;    
}
#filters input[type=date] {
    border-radius: 1.5rem;
    outline: 0.1rem solid var(--color-gray);
}
.zoom {
    position: relative;
}
.zoom img.mini {
    max-width: 100px;
}
.zoom img.over {
    position: absolute;
    display: none;
    z-index: 9;
    top: -25px;
    left: -5px;
    max-height: 300px;
}
.zoom:hover img.over {
    display: block;
}
img.preview {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}
.table-responsive {
    overflow-x: unset;
}
.dropzone {
    min-height: 200px;
}
.img-preview {
    display: inline-block;
    width: 32%;
    margin: 5px 1% 0 0;
    background: #ccc;
    padding: 5px;
    border-radius: 5px;
}
.img-preview img {
    max-width: 100%;
    margin-bottom: 5px;
}
.img-preview .btn {
    float: right;
}
@media (max-width: 767px) {
    .table-responsive {
        overflow-x: auto;
    }
    .zoom:hover img.over {
        display: none;                  
    }
}
.btn-default {
    --color-primary: #ccc;
}
.btn-primary {
    --color-primary: #2e6da4;
}
.btn-success {
    --color-primary: #4cae4c;
}
.btn-info {
    --color-primary: #46b8da;
}
.btn-warning {
    --color-primary: #eea236;
}
.btn-danger {
    --color-primary: #d43f3a;
}
.btn:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 1px;
    box-shadow: none;
}
input[type=date]:focus,
select:focus {
    outline: 3px solid var(--color-blue) !important;
    outline-offset: 1px !important;
}
input[type=checkbox]:focus {
    box-shadow: 0 0 0px 2px #000;
}
#carousel-preview {
    background: #fff;
    aspect-ratio: 1 / 0.75;
}
#carousel-preview a.carousel-control {
    background: none;
    text-shadow: none;
    color: #000;
    width: 10%;
}
#carousel-preview .carousel-caption {
    color: #000;
    padding: 5px 15px;
    background: rgba(255,255,255,0.75);
    width: max-content;
    bottom: 30px;
    margin: 0 auto;
    border: 1px solid #999;
    border-radius: 5px;
    text-shadow: none;
}
#carousel-preview .carousel-caption small {
    color: #999;
}
#carousel-preview .carousel-indicators {
    bottom: -8px;
}
#carousel-preview .carousel-indicators li {
    width: 13px;
    height: 13px;
    margin: 0px 5px;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid #333;
    border-radius: 13px;
}
#carousel-preview .carousel-indicators .active {
    width: 13px;
    height: 13px;
    margin: 0 5px;
    background-color: rgba(0,0,0,0.8);
    border: 1px solid #000;
}
#carousel-preview .carousel-inner {
    height: 100%;
}
#carousel-preview .carousel-inner>.item {
    height: 100%;
}
#carousel-preview .carousel-inner>.item>a>img, 
#carousel-preview .carousel-inner>.item>img {
    margin: auto;
    outline: 0.1rem solid #ccc;
    outline-offset: -1px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
}
#productList {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 3.2rem;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ccc;
    padding: 0.5rem;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    max-height: 20rem;
    overflow-y: auto;
}
#productList span {
    display: block;
    padding: 0.3rem 1rem;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
}
#productList span:hover {
    color: #369;
    background-color: #f9f9f9;
}
.sortable-highlight {
    height: 10rem;
    background-color: #9cf;
}
button.position {
    cursor: move;
}
.grid {
    background-color: #fff;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 25px;
}
.grid td {
    background: rgba(255,255,255,0.7);
    text-align: center;
    vertical-align: center;
}
.grid.grid-h td {
    width: 60px;
    height: 45px;
}
.grid.grid-v td {
    width: 45px;
    height: 60px;
}
.grid td input {
    display: none;
}
.grid td label {
    display: block;
    margin: 0;
    background-image: url(../img/mark.png);
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
    opacity: 0;
}
.grid td label:hover {
    opacity: 0.2;
}
.grid.grid-h td label {
    width: 60px;
    height: 45px;
}
.grid.grid-v td label {
    width: 45px;
    height: 60px;
}
.grid td input:checked + label {
    opacity: 1;
}
.rows {
    background: #fff;
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 25px;
}
.rows td {
    background: rgba(255,255,255,0.7);
    text-align: center;
}
.rows.rows-h td,
.rows.rows-h td label {
    width: 180px;
    height: 45px;
}
.rows.rows-v td,
.rows.rows-v td label {
    width: 60px;
    height: 135px;
}
.rows td input {
    display: none;
}
.rows td label {
    display: block;
    margin: 0;
    cursor: pointer;
    opacity: 0.2;
}
.rows td label span {
    color: #000;
    font-size: 24px;
}
.rows td label:hover {
    opacity: 0.5;
}
.rows td input:checked + label {
    opacity: 1;
}
.rows.rows-h.cols-v td,
.rows.rows-h.cols-v td label {
    width: 60px;
    height: 135px;
}
.rows.rows-h.cols-v td label span {
    line-height: 135px;
}
.rows.rows-v.cols-h td,
.rows.rows-v.cols-h td label {
    width: 180px;
    height: 45px;
}
.rows.rows-v.cols-h td label span {
    line-height: 45px
}

div.serv {
    display: inline-block;
    margin-left: 0.5rem;
}
div.serv label {
    margin: 0 1rem 0 0.5rem;
    font-weight: normal;
    cursor: pointer;
}
.table-stats {
    max-height: 50rem;
    overflow-y: auto;
}
.table-stats th,
.table-stats td {
    font-size: 1.2rem;
}
.btn-black {
    background: #000;
    border-color: #000;
    animation: blink-animation 1s steps(5, start) infinite;
    -webkit-animation: blink-animation 1s steps(5, start) infinite;
}
.btn-black:hover {
    background: #333;
}
@keyframes blink-animation {
    to {
      visibility: hidden;
    }
}
@-webkit-keyframes blink-animation {
    to {
      visibility: hidden;
    }
}