﻿
table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    margin: 0 auto;
}

table td:last-child {
    width: 100%;
}

td,
th {
    text-align: left;
    padding: 8px;
    white-space: nowrap;
}


td {
    /*border: 1px solid lightgray;*/
    box-shadow: inset 1px -1px lightgrey;
}

tr:nth-child(even) {
    background-color: #eee;
}

/*     .pointer.active.desc:after {
        content: "▲";
    }

    .pointer.active.asc:after {
        content: "▼";
    } */

th {
    position: sticky;
    z-index: 1;
    top: 0;
    box-shadow: inset 1px -1px lightgrey, inset 0 1px lightgrey;
    background-color: white;
}

.headerSortDown:after,
.headerSortUp:after {
    content: ' ';
    position: relative;
    left: 10px;
    right: 10px;
    border: 7px solid transparent;
}

.headerSortDown:after {
    top: 10px;
    border-top-color: silver;
}

.headerSortUp:after {
    bottom: 15px;
    border-bottom-color: silver;
}

.headerSortDown,
.headerSortUp {
    padding-left: 10px;
}

.centeredCheckbox {
    text-align: center;
    vertical-align: middle;
}

label.labelcls:before {
    content: "";
    position: absolute;
    left: 8px;
    top: 2px;
    bottom: 0;
    width: 26px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' fill='dimgrey' viewBox='0 0 25 25' fill-rule='evenodd'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'%3E%3C/path%3E%3C/svg%3E") center / contain no-repeat;
}

.labelcls {
    position: relative;
}

.inputcls {
    height: 35px;
    width: 250px;
    line-height: 35px;
    padding: 10px 40px;
    vertical-align: middle;
}

.datetime {
    height: 35px;
    line-height: 35px;
    padding: 10px 40px;
    vertical-align: middle;
    margin: 0px 0px 0px 10px;
}

button:hover {
    background-color: lightgrey;
    color: black;
}

button:disabled,
button[disabled] {
    border: 1px solid lightgrey;
    color: lightgray;
    background-color: white;
}

button {
    border: 1px solid black;
    background-color: white;
    color: black;
    border-width: 1px;
    vertical-align: middle;
    height: 35px;
    width: 100px;
    margin: 0px 0px 0px 0px;
    text-align: center;
}

.relative {
    border: 1px solid black;
    background-color: white;
    color: black;
    border-width: 1px;
    vertical-align: middle;
    width: 50px;
    height: 35px;
    margin: 0px 0px 0px 10px;
}

.paging {
    border: 1px solid black;
    background-color: white;
    color: black;
    border-width: 1px;
    vertical-align: middle;
    width: 100px;
    height: 35px;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 10px;
}

.source {
    width: 100px;
    height: 35px;
    margin: 0px 0px 0px 10px;
}

.personality {
    width: 100px;
    height: 35px;
    margin: 0px 0px 0px 10px;
}

.active {
    background-color: lightgray;
}

.inactive {
    background-color: white;
}

.serialNo, .tagHistory {
    cursor: pointer;
}

    .serialNo:hover {
        background-color: dodgerblue;
        color: white;
    }

#searchdt {
    margin-left: 10px;
    height: 35px;
    width: 35px;
    border-width: 1px;
    border-color: black;
    background-color: white;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='100' height='100' viewBox='0 0 100 100' stroke='dimgrey' stroke-linecap='round' stroke-width='6'%3E %3Cline x2='50' transform='translate%2825 25%29'/%3E %3Cline x1='19' y2='25' transform='translate%2856 25%29'/%3E %3Cline y2='17' transform='translate%2856 50%29'/%3E %3Cline x1='12' y2='8' transform='translate%2844 67%29'/%3E %3Cline y1='25' transform='translate%2844 50%29'/%3E %3Cline x1='19' y1='25' transform='translate%2825 25%29'/%3E %3C/svg%3E ");
}

.refreshbtn {
    background-color:white;
    width: 35px; height: 35px;
    align-content:center;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='100px' height='70px' fill='dimgrey' viewBox='0 0 100 100' fill-rule='evenodd'%3E%3Cpath d='M78.271,21.729C71.028,14.486,61.028,10,50,10C27.944,10,10,27.944,10,50S27.944,90,50,90S90,72.056,90,50L80,50C80,66.542,66.542,80,50,80S20,66.542,20,50S33.458,20,50,20C58.271,20,65.771,23.365,71.203,28.797L60,40L90,40L90,10L78.271,21.729Z'%3E%3C/path%3E%3C/svg%3E") center / contain no-repeat;
}

/*#loader {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    border: 16px solid #000000;
    border-radius: 50%;
    border-top: 16px solid #FFD700;
    border-bottom: 16px solid #FFD700;
    -webkit-animation: spin 2s linear infinite;
}*/

#loader {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 10;
    width: 70px;
    height: 70px;
    margin: -35px 0 0 -35px;
    border-radius: 50%;
    -webkit-animation: spin 2s linear infinite;
    background: repeating-conic-gradient(#e8bb3d,#ffed6a 32%,#b28300 80%,#e8bb3d);
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 10px),#fff 0);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Button used to open the contact form - fixed at the bottom of the page */
.open-button {
    background-color: #555;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    position: fixed;
    bottom: 23px;
    right: 28px;
    width: 280px;
}

/* The popup form - hidden by default */
.form-popup {
    display: none;
    position: absolute;
    top: calc(50% - 320px);
    left: calc(50% - 170px);
    border: 3px solid #f1f1f1;
    z-index: 9;
}

/* Add styles to the form container */
.form-container {
    max-width: 340px;
    max-height: 640px;
    padding: 20px;
    background-color: white;
}

/* Full-width input fields */
.form-container input[type=time], .form-container input[type=number], .form-container select {
    height: 40px;
    width: 100%;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
}

/* Full-width input fields */
.form-container input[type=checkbox] {
    margin: 5px 0 22px 20px;
    border: none;
    background: #f1f1f1;
}

/* When the inputs get focus, do something */
.form-container input[type=time]:focus, .form-container input[type=time]:focus, .form-container input[type=number]:focus,
.form-container input[type=checkbox] {
    background-color: #fff;
    outline: none;
}

/* Set a style for the submit/login button */
.form-container .btn {
    background-color: #04AA6D;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 50px;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
    background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
    opacity: 1;
}

.scrollable {
    height: calc(100vh - 240px);
    overflow-x: scroll;
    overflow-y: scroll;
    /*border: 1px solid lightgray;*/
    margin: 0px;
}

.left {
    margin-left: 0px;
    margin-right: auto;
}

.right {
    margin-left: auto;
    margin-right: 0px;
}

/* The popup form - hidden by default */
.admin-form-popup {
    display: none;
    position: absolute;
    top: calc(50% - 270px);
    left: calc(50% - 250px);
    border: 3px solid #f1f1f1;
    z-index: 9;
}

/* Add styles to the admin form container */
.admin-form-container {
    width: 500px;
    height: 540px;
    padding: 20px;
    background-color: white;
}

/* Set a style for the admin buttons */
.admin-form-container .adminbtn {
    background-color: #04AA6D;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 50px;
    margin-bottom: 10px;
    opacity: 0.8;
    text-align: center;
    display: grid;
    align-items: center;
    font-size: 18px;
}



/* The popup form - hidden by default */
.adminadduser-form-popup {
    display: none;
    position: absolute;
    top: calc(50% - 165px);
    left: calc(50% - 200px);
    border: 3px solid #f1f1f1;
    z-index: 9;
}

/* Add styles to the admin form container */
.adminadduser-form-container {
    width: 400px;
    height: 330px;
    padding: 20px;
    background-color: white;
    font-size: 18px;
}

/* Set a style for the admin buttons */
.adminadduser-form-container .adminbtn {
    background-color: #04AA6D;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 50px;
    margin-bottom: 10px;
    opacity: 0.8;
    text-align: center;
    display: grid;
    align-items: center;
    font-size: 18px;
}

/* Add a red background color to the cancel button */
.adminadduser-form-container .cancel {
    background-color: red;
}

.adminadduser-form-container input[type=text] {
    height: 40px;
    width: 100%;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
}

.adminadduser-form-container input[type=checkbox] {
    margin: 5px 0 22px 20px;
    border: none;
}




/* The popup form - hidden by default */
.admindeleteuser-form-popup {
    display: none;
    position: absolute;
    top: calc(50% - 150px);
    left: calc(50% - 200px);
    border: 3px solid #f1f1f1;
    z-index: 9;
}

/* Add styles to the admin form container */
.admindeleteuser-form-container {
    width: 400px;
    height: 296px;
    padding: 20px;
    background-color: white;
    font-size: 18px;
}

/* Set a style for the admin buttons */
.admindeleteuser-form-container .adminbtn {
    background-color: #04AA6D;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 50px;
    margin-bottom: 10px;
    opacity: 0.8;
    text-align: center;
    display: grid;
    align-items: center;
    font-size: 18px;
}

/* Add a red background color to the cancel button */
.admindeleteuser-form-container .cancel {
    background-color: red;
}

.admindeleteuser-form-container input[type=text] {
    height: 40px;
    width: 100%;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
}
