* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    box-sizing: border-box;
}

body {
    background-image: url("../images/back.gif");
    background-repeat: repeat-y;
    line-height: 1.5;
}

h1 {
    font-weight: normal;
    text-align: center;
}

a {
    color: black;
}

h1 sup {
    font-size: 14px;
    color: #3875d7;
    vertical-align: super;
}

h1 sup:hover {
    color: gold;
}

select, input, textarea {
    width: 100%;
    padding: 5px;
    border: 0px;
    font-size: 16px;
    border-bottom: 1px solid #313559;
}

input.mandatory {
    border-bottom: 3px double #65c3ff;
}

/* Submit button */

input[type=submit]{
    border-bottom: 0px;
    height: 40px;
    border-radius: 8px;
    color: white;
    background-image: linear-gradient(to top right, #313559, steelblue);
    box-shadow: 0px 5px 5px gray;

}
input[type=submit]:hover {
    color: gold;
    background-image: linear-gradient(steelblue, #313559);

}

/* Checkbox */

input[type="checkbox"] {
    height:30px;
    width: 30px;
    -webkit-appearance: none;
    box-shadow:
            -2px -2px 3px rgba(255,255,255,0.5),
            2px  2px 3px rgba(255,0,0,0.12);
    border-radius: 50%;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0px;
}

input[type="checkbox"]:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: '\f00d';
    color: red;
    font-size: 20px;
}

input[type="checkbox"]:checked {
    box-shadow:
            -2px -2px 3px rgba(255,255,255,0.5),
            2px  2px 3px rgba(101,195,255,0.12),
            inset -2px -2px 3px rgba(255,255,255,0.5),
            inset 2px  2px 3px rgba(70,70,70,0.12);
}

input[type="checkbox"]:checked:after {
    content: '\f00c';
    color: #65c3ff;
}

/* Grid */

.col-half {width: 4.16%;}
.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}


/* Main menu & navigation bar */

#navbar {
    position: fixed;
    color: white;
    padding: 5px;
    background-image: linear-gradient(to top right, #313559, steelblue);
    box-shadow: 0px 10px 10px gray;
    border-bottom: 1px solid gold;
    height: 61px;
    width: 100%;
    z-index: 2;
}

#menu {
    display: block;
    box-shadow: 0px 8px 8px gray;
    width: 250px;
    overflow: hidden;
    position: fixed;
    top: 61px;
    z-index: 2;
}

#logo {
    display: inline-block;
    padding-left: 5px;
    padding-top: 10px;
}

#userinfo {
    float: right;
    text-align: right;
    padding-right: 10px;
}

#userinfo a {
    color: gold;
}

#userinfo a:hover {
    color: #c0c0c0;
}

/* main block */

#main {
    margin-left: 250px;
    padding: 78px 20px 20px 20px;
    background: #ffffff;
}

/* cellphone menu */

#mobile {
    display: inline-block;
    font-size: 25px;
    padding-left: 10px;
    display: none;
}

#mobile a {
    color: white;
}


#AddNew a {
    text-align: center;
    width: 100%;
    display: block;
    color: #f0f0f0;
    padding: 10px;

    -webkit-transition: color 0.5s;
    -moz-transition: color 0.5s;
    -o-transition: color 0.5s;
    transition: color 0.5s;
}

#AddNew a:hover {
    color: #606060;
}

#AddNewInput {
    padding-top: 20px;
    opacity: 0;
    transition: all .5s ease-in-out;
}

#AddNewInput:hover, #AddNewInput:focus-within {
    opacity: 1;
    transition: all .5s ease-in-out;
}

/* db search */

#dbSearch {
    border: 1px dotted  #65c3ff;
    margin: 2px;
    text-align: left;
    font-size: 14px;
    width: 40%;
    max-width: 200px;
    height: 22px;
    background-color: #f8f8f8;
}

#dbSearch::placeholder {
    font-family: "Font Awesome 5 Free", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-weight: 600;
}

/* fulltext search  */

#tabSearch {
    border: 1px dotted  #65c3ff;
    margin: 2px;
    text-align: left;
    font-size: 14px;
    width: 80%;
    max-width: 400px;
    height: 22px;
    background-color: #f8f8f8;
}

#tabSearch::placeholder {
    font-family: "Font Awesome 5 Free", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-weight: 600;
}

#pinSearch {
    width: 50px;
    height: 20px;
    position: relative;
    padding: 0px 5px 0px 5px;
    font-size: 11px;
    left: -52px;
    top: -2px;
    display:none;
    color: white;
}

#export {
    color: #65c3ff;
    cursor: pointer;
}

#export:hover{
    color: #ff0000;
}

#exportcsv {
    display: inline-block;
    vertical-align: bottom;
    background: url('images/csv-ex.png');
    width: 18px;
    height: 25px;
}

#exportcsv:hover {
    background: url('images/csv-ex-over.png');
}

#exportcsvxls {
    display: inline-block;
    vertical-align: bottom;
    background: url('images/csv-xls-ex.png');
    width: 18px;
    height: 25px;
}

#exportcsvxls:hover {
    background: url('images/csv-xls-ex-over.png');
}

#exportxml {
    display: inline-block;
    vertical-align: bottom;
    background: url('images/xml-ex.png');
    width: 18px;
    height: 25px;
}

#exportxml:hover {
    background: url('images/xml-ex-over.png');
}

#exportxls {
    display: inline-block;
    vertical-align: bottom;
    background: url('images/xls-ex.png');
    width: 18px;
    height: 25px;
}

#exportxls:hover {
    background: url('images/xls-ex-over.png');
}

/* No items in table error */

.error {
    text-align: center;
    color: red;
}

.datetime {
    width: 8em;
    font-size: 12px;
    border-bottom: none;
    background-color: #dddddd;
    padding: 1px;
    padding-left: 5px;
    color: red;
}

.cellfilter {
    width: 100%;
}


/* Mobile resolution */

@media screen and (max-width: 640px),
       screen and (max-height: 719px)  {
    body {
        background-image: none;
    }

    #navbar {
        position: absolute;
    }


    #mobile {
        display: inline;
    }

    #mobile img {
        padding-top: 10px;
    }

    #menu {
        display: none;
        position: absolute;
    }

    #main {
        margin-left: 0px;
    }

    #logo img {
        display: none;
    }

    .rTableCell {
        max-width: 16em;
    }

    .hidemobile {
        display: none;
    }
}

/* Main menu items */

.item {
    border-top: 1px solid #404575;
    overflow: hidden;
}

.btn {
    display: block;
    box-shadow: 0px 8px 8px gray;
    padding: 16px 20px;
    background: #313559;
    color: white;
    position: relative;
}

.btn::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    background: #313559;
    box-shadow: 6px 6px 8px gray;
    left: 20px;
    bottom: -7px;
    transform: rotate(45deg);
}

.btn:hover {
    color: gold;
    transition: .4s;
}

.btn i {
    margin-right: 10px;
}

.smenu {
    background: #f0f0f0;
    overflow: hidden;
    transition: max-height 0.3s;
    max-height: 0;
}

.smenu a {
    display: block;
    padding: 10px 50px;
    color: black;
    margin: 0;
    position: relative;
    border-bottom: 1px solid #c0c0c0;
    border-right: 1px solid #313559;
}

.smenu a::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 100%;
    background: #313559;
    left: 0;
    top: 0;
    transition: .5s;
    opacity: 0;
}

.smenu a:hover::before {
    opacity: 1;
}

.item:target .smenu {
    max-height: 40em;
}

/* Table */

.lisTable {
    text-align: center;
}

.newTable {
    max-width: 650px;
    margin: auto;
    margin-top: 20px;
    padding: 20px;
    background: #f0f0f0;
    border: 1px solid #313559;
    border-radius: 16px 0px 16px;
}

.rTable {
    text-align: left;
    display: table;
    margin: auto;
}

.logTable .rTable, .lisTable .rTable {
    border-bottom: 1px solid gold;
}

.rHead    {
    display: table-header-group;
    text-align: center;
    vertical-align: middle;
    background-color: #313559;
    color: white;
}

.rHead a, .rHead a:visited, .rHead a:active {
    color: white;
}

.rHead a:hover{
    color: gold;
}

.rHeadCell, .rLogHeadCell {
    display: table-cell;
    padding: 10px;
    border-left: 1px solid #404575;
}

.rTableCell a:hover {
    text-shadow: 1px 2px #c0c0c0;
}

.rTableRow, .rTableFilRow {
    display: table-row;
}

.logTable .rTableRow:nth-child(odd), .lisTable .rTableRow:nth-child(odd) {
    background: #f0f0f0;
}

.logTable .rTableRow:nth-child(even), .lisTable .rTableRow:nth-child(even) {
    background: #ffffff;
}

.logTable .rTableRow:hover, .lisTable .rTableRow:hover {
    background: #e0e0e0;
}

.rTableCell {
    /* background-color: #f0f0f0; */
    display: table-cell;
    padding: 10px;
}

.rTableFilCell {
    background-color: #313559;
    border-left: 1px solid #404575;
    padding: 1px;
    text-align: center;
}

.rTableFilCell .select2-container--default .select2-selection--single .select2-selection__rendered, .filtertextbox {
    color: white;
    background-color: #313559;
    font-size: 10px;
}

.filtertextbox {
    border-color: #aaa;
    border-style: solid;
    border-width: 1px 1px 0px 1px;
    border-radius: 4px;
}

.logTable .rTable, .lisTable .rTableCell {
    border-bottom: 1px solid #c0c0c0;
}

.rTableFoot {
    background: red;
    color: blue;
}

.submitButton {
    padding-top: 20px;
    text-align: center;
}

.ilb {
    display: inline-block;
}

/* Selector menu levels */

.level0 {
    font-weight: bold;
    font-style: italic;
    color: #404575;
}

.level1 {
    font-weight: bold;
    padding-left: 0.5em;
}

.level2 {
    padding-left: 1em;
    font-style: italic;
}

.level3 {
    padding-left: 1.5em;
}

.level4 {
    padding-left: 2em;
    font-style: italic;
}


/* on/offButton in list */

.onButton, .offButton {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.onButton {
    color: #65c3ff;
    box-shadow:
            -2px -2px 3px rgba(255,255,255,0.5),
            2px  2px 3px rgba(101,195,255,0.12),
            inset -2px -2px 3px rgba(255,255,255,0.5),
            inset 2px  2px 3px rgba(70,70,70,0.12);
}

.offButton {
    color: red;
    box-shadow:
            -2px -2px 3px rgba(255,255,255,0.5),
            2px  2px 3px rgba(255,0,0,0.12);
}

/* Info MODAL */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    text-align: center;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 444px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {scale(0.7); opacity:0}
    to {scale(1); opacity:1}
}

@keyframes animatetop {
    from {scale(0.7); opacity:0}
    to {scale(1); opacity:1}
}

/* The Close Button */
.close {
    color: white;
    text-align: center;
}

.close:hover,
.close:focus {
    color: gold;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 2px 16px;
    background-color: #404575;
    color: white;
}

.modal-body {
    padding: 25px 16px;
}

.modal-footer {
    padding: 5px 16px;
    /* background-color: #404575; */
    color: white;
}

.modal-footer input {
    width: 5em;
}

/* Show/hide columns menu */

.optmenu {
    font-size: 10px;
    text-align: left;
    text-align: center;
}

.optbox {
    display: inline-block;
}

.optmenu span {
    padding-left: 10px;
    padding-right: 15px;
}

.optmenu input[type="checkbox"] {
    height:12px;
    width: 12px;
    float: left;
    margin-top: 3px;
}

.optmenu input[type="checkbox"]:after {
    font-size: 8px;
}

/* Pager (next / previous page etc) */

.pager select {
    width: 4em;
    border: 1px solid #c0c0c0;
    padding: 0px;
    color: white;
    background: #313559;
    background-image: linear-gradient(to top right, #313559, steelblue);

}

.pager button{
    border-bottom: 0px;
    height: 20px;
    width: 30px;
    border-radius: 8px;
    color: white;
    background-image: linear-gradient(to top right, #313559, steelblue);
    box-shadow: 0px 2px 2px gray;

}
.pager button:hover {
    color: gold;
    background-image: linear-gradient(steelblue, #313559);

}

/* Tabs */

.nav-area {
    border: 1px solid #d0d0d0;
}

.nav-tab {
    display: inline-block;
    color: #888888;
    margin-bottom: -1px;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    border-top: 1px solid #d0d0d0;
    border-radius: 10px 10px 0px 0px;
    padding: 8px;
    width: 250px;
    background-color: #e0e0e0;
    cursor: pointer;
}

.nav-tab-active {
    background-color: #ffffff;
    color: black;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.filterset {
    text-align: center;
}

.filterset a:hover {
    color: gold;
}

.hr-text, .hr-text-white {
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1em;
    position: relative;
    outline: 0;
    border: 0;
    color: black;
    text-align: center;
    height: 1.5em;
    opacity: .5;
}
.hr-text:before, .hr-text-white:before {
    content: '';
    background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(#818078), to(transparent));
    background: linear-gradient(to right, transparent, #818078, transparent);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}
.hr-text:after, .hr-text-white:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    color: black;
    padding: 0 .5em;
    line-height: 1.5em;
    background-color: #f0f0f0;
}

.hr-text-white:after {
    background-color: #fff;
}


/* Product adding table */

.add-row, input[type=button] {
    border-bottom: 0px;
    padding: 0px 15px 0px 15px;
    width: auto;
    height: 28px;
    border-radius: 5px;
    color: white;
    background-image: linear-gradient(to top right, #313559, steelblue);
    vertical-align: middle;

}
.add-row:hover {
    color: gold;
    background-image: linear-gradient(steelblue, #313559);
}

input[type=button]:disabled {
    color: red;
}

#sort {
    padding-top: 20px;
}

#sort th {
    font-weight: normal;
}

#sort tr:nth-child(odd), .lisTable .rTableRow:nth-child(odd) {
    background: #f0f0f0;
}

#sort tr:nth-child(even), .lisTable .rTableRow:nth-child(even) {
    background: #ffffff;
}

#sort tr:first-child td {
    border: 1px solid #65c3ff;
}

#sort tbody tr:hover, .lisTable .rTableRow:hover {
    background: #e0e0e0;
}

#sort tr:th {
    background: #f0f0f0;
}

#sort td {
    /* background-color: #f0f0f0; */
    display: table-cell;
    border: 1px solid #a0a0a0;
    padding: 10px;
}

#sort {
    border-bottom: 1px solid #c0c0c0;
}


/* Slide to delete */

.slider {
    width: 100%;
}

.slideToUnlock {
    position:relative;
    text-align: center;
    height: 38px;
    line-height: 40px;
    border-radius: 8px;
    box-shadow: 2px 2px grey;
}

.progressBar {
    position: absolute;
    left:0;
    top:0;
    width: 0;
    height: 100%;
    border-radius: 8px;
}
.text {
    position: absolute;
    left:0;
    top:0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color:transparent;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.drag {
    position: absolute;
    width:50px;
    height: 36px;
    left: 1px;
    top: 1px;
    display: inline-block;
    line-height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #cccccc;
    background: #fff;
    color: #404575;
    text-align: center;
}

.locked {
    color: #fff;
    font-size: 16px;
    font-family: 'Microsoft Yahei', serif;
    background-color: #404575;
    background-image: linear-gradient(to top right, #313559, steelblue);
}

.unlocked {
    background-color:rgb(252, 20, 20);
    background-image: linear-gradient(to top right, #d83831, #8805bf)
}

.list li {
    list-style: circle;
    margin-left: 15%;
}

.malinke {
   font-size: 12px;
}

.malinke a {
   color: #313559;
}

.malinke a:hover {
   color: #ffd700;
}



/* Page loader */
#loading {
    position: absolute;
    padding-top: 300px;
    width: 99vw;
    height: 100vh;
    text-align: center;
    top: 0;
    left: 0;
    opacity: 0.7;
    background-color: #fff;
    z-index: 0;
}

#loading-image {
    z-index: 100;
    opacity: unset;
}

/* Format vypisu produktov */

.rowzostatok {
    line-height: 12px;
    vertical-align: bottom;
    text-align: center;
}

.rowzostatok small {
    font-size: 9px;
}
