@import url('https://fonts.googleapis.com/css?family=Lato:400,700');

:root {
    --text-main-color: #333;
    --text-secondary-color: #333;
    --text-tertiary-color: #f5f5f5;
    --text-lightgrey: #999;
    --background-main-color: #c5100a;
    --background-main-color-10-percent: #ffeaea;
    --background-main-color-25-percent: #fff5f5;
    --background-secondary-color: #f2f2f2;
    --background-tertiary-color: #f5f5f5;
    --background-clocked-in: #caf9e1;
    --background-clocked-disabled: #f9e2ca;
    --background-clocked-out: #ffeaea;
    --background-clocked-neutral: #f2f2f2;
    --shadow-main-color: 0, 0, 0;
    --border-main-color: #d6d6d6;
    --border-secondary-color: #333;
    --border-clocked-in: #caf9e1;
    --border-clocked-disabled: #f9e2ca;
    --border-clocked-out: #ffeaea;
    --border-radius: 15px;
    --font-size: 18px;
    --logo-width: 8vw;
    --nav-icon-width: 30px;
}
* {
    color: var(--text-main-color);
    box-sizing: border-box;
    font-family: Lato,arial;
    font-weight: bold;
    text-align: center;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    -moz-tap-highlight-color: transparent;
    -ms-tap-highlight-color: transparent;
    font-weight: 400;
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);  
    background: rgba(0, 0, 0, 0.4); 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;

}
.body-blurred {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}
.button.primary {
    background-color: var(--background-clocked-disabled);
    color: var(--text-main-color);
}
.popup-box {
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    max-width: 350px;
    width: 90%;
    text-align: center;
}
.popup-title {
    margin-top: 0;
    margin-bottom: 15px;
}
.popup-message {
    margin-bottom: 15px;
    color: #444;
}
.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.popup-remember {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 8px; 
    margin: 12px 0;
}
html { height: 100%; width: 100%; }
body { height: 100%; width: 100%; font-size: var(--font-size); }
h2 { text-align: center; padding: 10px; }
header {
    overflow: hidden;
}
.menu {
    height: 100%;
}
.nav-header {
    display: inline-flex;
    padding: 0px;
    width: 100%;
    color: var(--text-tertiary-color);
}
.nav-no-logo {
    display: inline-flex;
    width: 100%;
    color: inherit;
    justify-content: space-between;
    background: var(--background-main-color);
    border-radius: 0 0 0 3px;
}
a { text-decoration: none; color: inherit; }
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
font { display: inline-block; color: var(--text-lightgrey); }
form { display: inline-block; width: 80%; }
.button {
    padding: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 100%;
    height: 50px;
    text-align: center;
    font-size: inherit;
    border-radius: var(--border-radius);
    color: var(--text-main-color);
    border: 0px;
    background: var(--background-secondary-color);
}
.button:hover { cursor: pointer; opacity: 0.8; }
.button:disabled {
    background: lightgrey;
}
tr { display: grid; width: 100%; }
th { padding: 0; }
input:not([type="checkbox"]) { width: 100%; text-align: left; }

.url-app-title {
    font-size: var(--font-size);
    display: grid;
    width: calc(100% - (var(--logo-width) + var(--nav-icon-width)));
    justify-content: start;
    padding-left: 5px;
    align-items: center;
}
.info-panel {
    display: inline-flex;
    flex-direction: column;
    margin: auto;
    width: 100%;
    max-width: 768px;
    background: var(--background-clocked-disabled);
    border-radius: var(--border-radius);
    padding: 5px;
    justify-items: center;
}
.info-options {
    display: inline-flex;
    grid-column-gap: 5px;
    flex-direction: row;
}
.info-options .button {
    height: 30px;
    font-size: calc(var(--font-size) - 4px);
}
.info-destroy img {
    width: 80px;
    height: 80px;
}
.loader-active img, .loader-inactive img {
    width: 80px;
    height: 80px;
}

/* Hamburger Icon */
.nav-icon {
    width: 30px;
    height: 24px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
    margin: 8px;
}

.nav-icon span {
    display: block;
    position: absolute;
    height: 4px;
    width: 51%;
    background: var(--border-main-color);
    opacity: 1;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}

.nav-icon span:nth-child(even) {
    left: 50%;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.nav-icon span:nth-child(odd) {
    left:0px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.nav-icon span:nth-child(1), .nav-icon span:nth-child(2) {
    top: 0px;
}

.nav-icon span:nth-child(3), .nav-icon span:nth-child(4) {
    top: 10px;
}

.nav-icon span:nth-child(5), .nav-icon span:nth-child(6) {
    top: 20px;
}

.nav-icon.open span:nth-child(1),.nav-icon.open span:nth-child(6) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.nav-icon.open span:nth-child(2),.nav-icon.open span:nth-child(5) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.nav-icon.open span:nth-child(1) {
    left: 3px;
    top: 7px;
}

.nav-icon.open span:nth-child(2) {
    left: calc(50% - 3px);
    top: 7px;
}

.nav-icon.open span:nth-child(3) {
    left: -50%;
    opacity: 0;
}

.nav-icon.open span:nth-child(4) {
    left: 100%;
    opacity: 0;
}

.nav-icon.open span:nth-child(5) {
    left: 3px;
    top: 17px;
}

.nav-icon.open span:nth-child(6) {
    left: calc(50% - 3px);
    top: 17px;
}
.nav-hyperlink {
    cursor: pointer;
    position: fixed;
    bottom: 0;
    text-align: right;
    width: 100vw;
}
.nav-hyperlink .nav-menu .button {
    margin: 5px;
    height: 30px;
}

/* Filter info */
.filter-info {
    display: flex;
    justify-content: space-between;
}

/* Filter details */
.filter-details {
    display: flex;
    padding: 8px;
    font-size: calc(var(--font-size) - 6px);
    align-items: center;
}

/* Meatball icon */
.filter-icon {
    float: right;
    width: 30px;
    height: 24px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
    margin: 8px;
}
.filter-icon div {
    margin: auto;
}

.filter-icon div span {
    display: block;
    height: 5px;
    width: 5px;
    margin: 3px auto;
    background: var(--border-secondary-color);
    opacity: 1;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
    border-radius: 100%;
}

.filter-icon span:nth-child(1) {
    top: 0px;
}

.filter-icon span:nth-child(2) {
    top: 10px;
}

.filter-icon span:nth-child(3) {
    top: 20px;
}

/* Main Content Styles */
.logo {
    width: 30%;
}
.login-content {
    display: inline-grid;
    margin: auto;
    padding: 10px;
    height: 100vh;
    width: 100%;
    align-items: center;
    align-content: center;
}
.login-content > div {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
}
.nav-content {
    position: fixed;
    right: 0;
}
.nav-content nav {
    display: none;
    height: 100vh;
    max-width: 50vw;
    min-width: 33.3vw;
    background: white;
    position: relative;
    z-index: 1;
}
.overlay-nav-content {
    display: none;
    background: black;
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0;
    opacity: 0.2;
}
.filter-content {
    position: fixed;
    right: 0;
}
.nav-menu {
    display: flex;
    color: var(--text-secondary-color);
}
.nav-menu:hover {
    background: var(--background-main-color-25-percent);
}
.nav-menu a {
    padding: 5px;
    width: 100%;
    color: inherit;
    text-align: left;
    text-decoration: inherit;
}
.content {
    display: block;
    width: 100%;
}
.table-content {
    display: block;
    color: var(--text-secondary-color);
    margin: auto;
    position: relative;
}
.table-content > .list {
    display: grid;
    row-gap: 1px;
    width: 50%;
    padding: 10px;
    height: 20vh;
    min-height: 180px;
}
.table-filters {
    display: none;
    border-spacing: 0;
    height: 100vh;
    max-width: 50vw;
    width: 33.3vw;
    background: white;
    position: relative;
    z-index: 1;
}
.overlay-filters {
    display: none;
    background: black;
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0;
    opacity: 0.2;
}
.form { min-width: 50%; }
.form-section {
    display: flex;
    width: 100%;
    margin-bottom: 0.5em;
    flex-direction: column;
}
.form-field {
    margin: auto;
    padding: 5px;
    width: 100%;
    font-size: inherit;
    color: var(--text-secondary-color);
}
.form-error { display: none; }
.checkbox-label {
    display: block;
    font-size: 14px;
}

.list {
    float: left;
    grid-template-rows: 2fr 1fr;
}
.list label {
    display: grid;
    gap: 15px 15px;
    width: 100%;
    cursor: inherit;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    color: var(--text-main-color);
}
.list span {
    padding: 5px;
    display: block;
    font-size: calc(var(--font-size) - 6px);
    color: inherit;
}
.list label div { color: inherit; padding: 5px; }
.list-button {
    width: 50%;
    display: block;
    float: inline-end;
}
.out-of-reach {
    width: 100%;
    height: 100%;
    float: left;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    border: 1px solid var(--border-clocked-disabled);
    background-color: var(--background-clocked-disabled);
    cursor: no-drop;
    transition: all .5s ease;
}
.clock-buttons {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    column-gap: 1px;
    transition: all .5s ease;
}
.clock-buttons button {
    word-break: break-word;
}
.clock-buttons button:not(.out-of-reach) {
    width: 100%;
    cursor: pointer;
}
.clock-buttons button:hover:not(.out-of-reach) {
    opacity: 0.8;
}
.label-clock-in {
    background-color: var(--background-clocked-in);
}
.label-clock-out {
    background-color: var(--background-clocked-out);
}
.label-clock-neutral {
    background-color: var(--background-clocked-neutral);
}
.clock-in {
    float: left;
    border-radius: 0 0 0 var(--border-radius);
    border: 1px solid var(--border-clocked-in);
    background-color: var(--background-clocked-in);
}
.clock-out {
    float: right;
    border-radius: 0 0 var(--border-radius) 0;
    border: 1px solid var(--border-clocked-out);
    background-color: var(--background-clocked-out);
}
.clicked { opacity: 0.5; }
.clock-time { display: none; word-wrap: break-word; }
.main-error { display: none; color: var(--text-main-color); }
.hidden { display: none; }
.employee {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}
.employee p {
    display: flex;
    justify-content: space-around;
}
.employee-name {
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}
.employee-img { float: right; width: 50%; }
.employee-img img { max-width: 100%; max-height: 100%; border: solid 2px var(--background-tertiary-color) }
.div-hd-logo {
    background: white;
    display: grid;
    align-items: center;
}
.div-hd-logo a {
    position: relative;
    top: 1px;
}
.div-hd-logo img {
    display: grid;
    padding: 0 5px;
}
.search-box {
    display: block;
}

/* Form Input Style */
.form-label {
    display: inline-block;
    padding: 5px;
    width: 100%;
}
.form-label input {
    border: none;
    font-size: calc(var(--font-size) - 2px);
}
.form-label input:focus-visible {
    outline: none;
}
.form-label .placeholder {
    position: absolute;
    left: var(--field-padding);
    width: calc(100% - (var(--field-padding) * 2));
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    top: 22px;
    line-height: 100%;
    transform: translateY(-50%);
    color: #aaa;
    transition:
        top 0.3s ease,
        color 0.3s ease,
        font-size 0.3s ease;
}
.form-label input + .placeholder {
    left: 8px;
    padding: 0 5px;
}
.form-label input.dirty,
.form-label input:not(:placeholder-shown),
.form-label input:focus {
    border-color: var(--text-secondary-color);
    transition-delay: 0.1s;
}
.form-label input.dirty + .placeholder,
.form-label input:not(:placeholder-shown) + .placeholder,
.form-label input:focus + .placeholder {
    top: 0;
    font-size: 12px;
    color: var(--text-secondary-color);
    background: var(--background-secondary-color);
    width: auto;
}
.form-label select {
    border: 1px solid var(--border-main-color);
    border-radius: var(--border-radius);
    font-size: calc(var(--font-size) - 2px);
    padding: 5px;
    width: 100%;
}

@media(max-width: 320px) {
    html {
        overflow-x: hidden;
    }
    ::-webkit-scrollbar {
        width: 0;
        background: transparent;
    }
    body {
        font-size: calc(var(--font-size) - 6px);
    }
    .info-panel {
        width: 100%;
    }
    .info-options {
        flex-direction: column;
    }
    .table-filters {
        width: 100vw;
        max-width: 100vw;
    }
    .nav-content nav {
        width: 100vw;
        max-width: 100vw;
    }
    .table-content > .list {
        width: 100%;
    }
    .nav-no-logo {
        display: block;
        float: left;
    }
    .nav-icon {
        display: block;
        float: right;
    }
}

@media(min-width: 481px) {
    .nav-hyperlink {
        max-width: 33.3vw;
    }
}

@media(min-width: 321px) and (max-width: 480px) {
    body {
        font-size: calc(var(--font-size) - 4px);
    }
    .info-panel {
        width: 100%;
    }
    .table-filters {
        width: 100vw;
        max-width: 100vw;
    }
    .nav-content nav {
        width: 100vw;
        max-width: 100vw;
    }
}

@media(min-width: 481px) and (max-width: 768px)  {
    body {
        font-size: calc(var(--font-size) - 2px);
    }
    .info-panel {
        width: 100%;
    }
}

@media(min-width:769px) {
    .table-content > .list {
        width: 33.3%;
    }
    .login-content {
        min-width: 768px;
        max-width: 50%;
    }
    .info-panel {
        flex-direction: row;
    }
    .info-panel h5 {
        width: 50%;
    }
    .info-options {
        width: 100%
    }
    .table-content {
        min-width: 768px;
        width: 80%;
    }
}