:root {
    --color-brand-primary: #1B73E8;
    --color-brand-secondary: #e3f2fd;
}

* {
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    margin: 0;
}

.hidden {
    visibility: hidden;
    position: absolute;
    height: 0;
    width: 0;
    top: 0;
    left: 0;
    z-index: -1;
}

#app {
    width: 100%;
    min-height: 100vh;
    font-family: Montserrat;
    display: grid;
    grid-template-rows: 1fr auto;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* justify-content: space-between; */
    justify-items: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(5px);
}

header .logo {
    height: 24px;
    margin: 0 20px;
}

header .icon {
    font-size: 26px;
    height: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: #777;
    border-radius: 50%;
}

header .icon:focus, header .icon:active {
    background-color: rgba(0, 0, 0, 0.1);
}

header .icon.active {
    color: var(--color-brand-primary);
    /* background-color: var(--color-brand-secondary); */
    border-radius: 12px;
}

main {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-gap: 20px;
    grid-auto-flow: row;
    align-content: start;
    padding: 70px 20px 20px;
}

main .title {
    margin-bottom: 20px;
}

main .title h1 {
    font-size: 1.5rem;
}

main .title h1 {
    font-family: Montserrat;
    margin: 0 0 10px;
}

main>*:not(.modal-overlay) {
    animation: a-slide-up 0.4s ease
}

@keyframes a-slide-up {
    0% {
        opacity: 0;
        transform: translateY(4px)
    }
    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

footer {
    display: grid;
    grid-gap: 20px;
    grid-auto-flow: row;
    align-content: start;
    padding: 20px 10px;
}

footer:empty {
    padding: 0 0 80px;
}

#bottom_nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
    border-top: 1px solid #eee;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(5px);
}

#bottom_nav>div {
    height: 100%;
    width: 100%;
    display: grid;
    place-items: center;
    align-content: center;
}

#bottom_nav>div span {
    font-size: 26px;
    filter: invert(48%) sepia(1%) saturate(268%) hue-rotate(8deg) brightness(96%) contrast(95%);
}

#bottom_nav>div.active span {
    filter: invert(32%) sepia(64%) saturate(3116%) hue-rotate(204deg) brightness(97%) contrast(88%);
}

#bottom_nav>div label {
    font-size: 12px;
    font-weight: 700;
    color: #777;
}

#bottom_nav>div.active label {
    color: var(--color-brand-primary);
}

#bottom_nav>div:focus, #bottom_nav>div:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.frgt-pwd {
    width: 100%;
    text-align: center;
    font-size: .9rem;
}

.timbrature {
    display: grid;
}

.timbrature>h5 {
    margin: 0 0 8px;
}

.timbratura {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 0 12px;
    padding: 8px 0;
}

.timbratura>.icon {
    grid-column: 1;
    grid-row: 1/3;
    display: grid;
    place-items: center;
    align-self: center;
    aspect-ratio: 1;
    width: 44px;
    border-radius: 50%;
    background-color: white;
}

.timbratura.presenza.in>.icon {
    background-color: #A5D6A7;
    color: #219653;
}

.timbratura.presenza.out>.icon {
    background-color: #EF9A9A;
    color: #EB5757;
}

.timbratura.presenza.out {
    margin-bottom: 30px;
}

.timbratura.attivita>.icon {
    background-color: #90CAF9;
    color: #0f47a1;
    aspect-ratio: 2/1;
    border-radius: 6px;
}

.timbratura>.icon>span {
    font-size: 22px;
}

.timbratura>.primary {
    grid-column: 2;
    grid-row: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}

.timbratura>.secondary {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.8rem;
    color: #555;
}

/* Input */

.inp {
    position: relative;
    /*margin: auto;*/
    width: 100%;
    border-radius: 3px;
    overflow: hidden;
    font-family: Montserrat;
}

.inp .label {
    position: absolute;
    top: 20px;
    left: 12px;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
    transform-origin: 0 0;
    transform: translate3d(0, 0, 0);
    transition: all 0.2s ease;
    pointer-events: none;
}

.inp .focus-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
}

.inp input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    border: 0;
    font-family: inherit;
    padding: 16px 12px 0 12px;
    height: 56px;
    font-size: 16px;
    font-weight: 400;
    background: rgba(0, 0, 0, 0.02);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    color: #000;
    transition: all 0.15s ease;
}

.inp input:hover {
    background: rgba(0, 0, 0, 0.04);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.inp input:not(:-moz-placeholder-shown)+.label {
    color: rgba(0, 0, 0, 0.5);
    transform: translate3d(0, -12px, 0) scale(0.75);
}

.inp input:not(:-ms-input-placeholder)+.label {
    color: rgba(0, 0, 0, 0.5);
    transform: translate3d(0, -12px, 0) scale(0.75);
}

.inp input:not(:placeholder-shown)+.label {
    color: rgba(0, 0, 0, 0.5);
    transform: translate3d(0, -12px, 0) scale(0.75);
}

.inp input:focus {
    background: rgba(0, 0, 0, 0.05);
    outline: none;
    box-shadow: inset 0 -2px 0 var(--color-brand-primary);
}

.inp input:focus+.label {
    color: var(--color-brand-primary);
    transform: translate3d(0, -12px, 0) scale(0.75);
}

.inp input:focus+.label+.focus-bg {
    transform: scaleX(1);
    transition: all 0.1s ease;
}

/* Simple button */

.simple-button {
    font-family: Montserrat, sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
    font-weight: 600;
    /*letter-spacing: 0.1rem;*/
    text-decoration: none;
    height: 48px;
    width: 100%;
    padding: 0 20px;
    cursor: pointer;
    border-radius: 6px;
    display: inline-grid;
    grid-auto-flow: column;
    gap: 5px;
    position: relative;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    vertical-align: middle;
    border: none;
    outline: none;
    user-select: none;
    -webkit-appearance: none;
    overflow: hidden;
    transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--color-brand-secondary);
    color: var(--color-brand-primary);
}

.simple-button>.material-icons-round {
    font-size: 1.2rem;
}

.simple-button:hover {
    box-shadow: 0px 3px 1px -2px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%), 0px 1px 5px 0px rgb(0 0 0 / 12%);
}

.simple-button:active {
    box-shadow: 0px 2px 4px -1px rgb(0 0 0 / 20%), 0px 4px 5px 0px rgb(0 0 0 / 14%), 0px 1px 10px 0px rgb(0 0 0 / 12%);
}

/* Floating button */

.floating-button {
    font-family: Montserrat, sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-size: 0.8rem;
    letter-spacing: 0.04rem;
    font-weight: 600;
    text-decoration: none;
    height: 52px;
    padding: 0 18px;
    cursor: pointer;
    border-radius: 26px;
    bottom: 64px;
    right: 8px;
    display: inline-grid;
    grid-auto-flow: column;
    gap: 5px;
    position: fixed;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    vertical-align: middle;
    border: none;
    outline: none;
    user-select: none;
    -webkit-appearance: none;
    overflow: hidden;
    box-shadow: 0px 3px 1px -2px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%), 0px 1px 5px 0px rgb(0 0 0 / 12%);
    background-color: var(--color-brand-primary);
    color: white;
}

.floating-button>.material-icons-round {
    font-size: 1.2rem;
}

/* Checkbox */

.pure-material-checkbox {
    z-index: 0;
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 1.5;
}

.pure-material-checkbox>input {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    z-index: -1;
    position: absolute;
    left: -10px;
    top: -8px;
    display: block;
    margin: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: none;
    outline: none;
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.2s;
}

.pure-material-checkbox>span {
    display: inline-block;
    width: 100%;
    cursor: pointer;
    padding-left: 32px;
}

.pure-material-checkbox>span::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    box-sizing: border-box;
    margin: 3px 11px 3px 1px;
    border: solid 2px;
    /* Safari */
    border-color: rgba(0, 0, 0, 0.6);
    border-radius: 2px;
    width: 18px;
    height: 18px;
    vertical-align: top;
    transition: border-color 0.2s, background-color 0.2s;
}

.pure-material-checkbox>span::after {
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    left: 1px;
    width: 10px;
    height: 5px;
    border: solid 2px transparent;
    border-right: none;
    border-top: none;
    transform: translate(3px, 4px) rotate(-45deg);
}

.pure-material-checkbox>input:checked, .pure-material-checkbox>input:indeterminate {
    background-color: var(--color-brand-primary);
}

.pure-material-checkbox>input:checked+span::before, .pure-material-checkbox>input:indeterminate+span::before {
    border-color: var(--color-brand-primary);
    background-color: var(--color-brand-primary);
}

.pure-material-checkbox>input:checked+span::after, .pure-material-checkbox>input:indeterminate+span::after {
    border-color: white;
}

.pure-material-checkbox>input:indeterminate+span::after {
    border-left: none;
    transform: translate(4px, 3px);
}

.pure-material-checkbox:hover>input {
    opacity: 0.04;
}

.pure-material-checkbox>input:focus {
    opacity: 0.12;
}

.pure-material-checkbox:hover>input:focus {
    opacity: 0.16;
}

.pure-material-checkbox>input:active {
    opacity: 1;
    transform: scale(0);
    transition: transform 0s, opacity 0s;
}

.pure-material-checkbox>input:active+span::before {
    border-color: var(--color-brand-primary);
}

.pure-material-checkbox>input:checked:active+span::before {
    border-color: transparent;
    background-color: rgba(0, 0, 0, 0.6);
}

.pure-material-checkbox>input:disabled {
    opacity: 0;
}

.pure-material-checkbox>input:disabled+span {
    color: rgba(0, 0, 0, 0.38);
    cursor: initial;
}

.pure-material-checkbox>input:disabled+span::before {
    border-color: currentColor;
}

.pure-material-checkbox>input:checked:disabled+span::before, .pure-material-checkbox>input:indeterminate:disabled+span::before {
    border-color: transparent;
    background-color: currentColor;
}