html * {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
html {
    padding: 0;
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    color: #333;
    font-size: 16px;
    touch-action: pan-y;
}

.container {
    display: flex;
    max-width: 100%;
}

.main {
    flex: 1;
    max-width: 100%;
}

.pre-login {
    display: flex;
    flex-direction: column;
    background: #f7fbff;
    border: 1px solid #1f97ff33;
    padding: 2rem;
    width: 30rem;
    align-self: flex-start;
    margin: 3rem auto;
    max-width: 90%;
}

.input-row {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.input-row label {
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 1rem;
    display: block;
}

.input {
    background-color: #fff;
    border: 0;
    height: 3rem;
    border: 1px solid #1f97ff33;
    border-radius: .3rem;
    padding: 1rem;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: 0;
}

.employee-add:focus,
.pre-login .input:focus {
    border: 1px solid #1f95ff;
}

.edit button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.employee-add,
.confirm button,
.edit button,
.pre-login button {
    transition: opacity .3s ease;
    height: 3rem;
    color: #fff;
    border-radius: .3rem;
    padding: 1rem;
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
    background: linear-gradient(45deg, #1f95ff 50%, #39bbff 100%);
    font-size: 1rem;
    border: 0;
    outline: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 25rem;
    background: #f7fbff;
    border-right: 1px solid #1f97ff33;
    padding: 2rem;
    box-shadow: 0px 0px 17px 0px rgb(0 0 0 / 2%);
    position: sticky;
    top: 0;
    align-self: flex-start;
}

h1 {
    margin: 0;
    padding: 0;
    margin-bottom: 2rem;
}

.time-input-row {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.password-input-row label,
.time-input-row label {
    width: 48%;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.date-input-row {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.km-input-row {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

input#km {
    transition: all .3s ease;
}

input#hours:disabled,
input#minutes:disabled,
input#km:disabled {
    opacity: .3;
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.time-input {
    background-color: #fff;
    border: 0;
    height: 3rem;
    border: 1px solid #1f97ff33;
    border-radius: .3rem;
    padding: 1rem;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
}

.input:focus,
.primary-button:focus,
.time-input:focus {
    outline: none;
    border: 1px solid #1f95ff;
}

.picker__holder {
    margin-top: .5rem;
    border-radius: .15rem;
    border: 1px solid #0089ec;
}

.picker__day--infocus:hover,
.picker__day--outfocus:hover {
    background-color: #1f97ff33;
    border-radius: .15rem;
}

.picker__nav--prev:hover,
.picker__nav--next:hover {
    background-color: transparent;
}

.picker__day {
    margin: 1px;
}

.picker__footer {
    display: none;
}

.picker__day--selected,
.picker__day--selected:hover,
.picker--focused .picker__day--selected {
    background-color: #0089ec;
    border-color: #0089ec;
    border-radius: .15rem;
}

.picker__day--disabled {
    border-radius: .3rem;
}

.primary-button {
    border: 0;
    height: 3rem;
    color: #fff;
    border-radius: .3rem;
    padding: 1rem;
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
    background: linear-gradient(45deg, #1f95ff 50%, #39bbff 100%);
    font-size: 1rem;
}

.entries {
    display: flex;
    flex-direction: column;
    padding: 0 2rem;
}

.entry-row {
    display: flex;
}

.entry-row.body {
    cursor: pointer;
    line-height: 3rem;
    background-color: #f7fbff;
    margin: .4rem 0;
}

.employer-entries .entries .entry-row.body {
    cursor: default;
}

.employer-entries .entries {
    margin: .5rem 0 1rem 1rem;
    display: none;
    padding: 0;
    border-left: 5px solid #1f97ff33;
}

.employer-entries .entries .entry-row.inactive:hover {
    opacity: .5;
}

.employer-entries .entries .entry-row.body:last-child {
    margin-bottom: 0;
}

.period {
    background-color: #f7fbff;
    padding: 1rem;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 2;
    border-bottom: 1px solid #1f97ff33;
    box-shadow: 0px 0px 17px 0px rgb(0 0 0 / 2%);
}

.period a {
    text-decoration: none;
    color: inherit;
    transform: scaleX(70%);
    font-size: 1.5rem;
    position: relative;
    top: -1px;
}

.period-dates {
    display: flex;
    align-items: center;
}

.nav-link.disabled {
    pointer-events: none;
    opacity: .2;
}

.period .period-total {
    margin-left: auto;
}

.period span {
    margin: 0 1rem;
}

.entry-row.head {
    border-bottom: 1px solid #1f97ff33;
    padding-bottom: .3rem;
    font-weight: bold;
    transition: opacity .3s ease;
}

.entry-row.inactive {
    opacity: .5;
}

.entry-row.inactive:hover {
    opacity: 1;
}

.entry-column {
    padding: 0 0 0 1rem;
}

.entry-column.day {
    width: 12rem;
}

.entry-column.date {
    width: 12rem;
}

.entry-column.time {
    width: 14rem;
}

.entry-column.employee {
    width: 20rem;
}

.entry-column.sick_days {
    width: 10rem;
}

.entry-column.work_days {
    width: 10rem;
}

.entry-column.vacation_days {
    width: 10rem;
}

.entry-column.km {
    width: 10rem;
}

.sep {
    position: relative;
    bottom: -1.4rem;
    font-size: 2rem;
}

.sidebar .user {
    margin-top: auto;
    text-align: center;
    color: #1f95ff;
}

.edit-user-link,
.sidebar .user a {
    color: inherit;
    text-decoration: none;
}

.edit-user-link:hover,
.sidebar .user a:hover {
    border-bottom: 1px solid;
}

.notice-wrapper {
    position: fixed;
    z-index: 9;
    right: 3rem;
    bottom: 2rem;
}

.notice-wrapper:empty {
    display: none;
}

.notice {
    padding: 1rem;
    background: #f7fbff;
    border: 1px solid #1f97ff33;
    margin-bottom: .5rem;
    font-weight: bold;
    min-width: 300px;
}

.notice.notice-type-error {
    background: #f9eeee;
    border: 1px solid #b87b7a;
}

.delete {
    color: inherit;
    text-decoration: none;
    opacity: .6;
    transition: opacity .3s ease;
}

.delete:hover {
    opacity: 1;
}

.popup {
    position: fixed;
    left: 0;
    top: 0;
    background: #f7fbffec;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-inner {
    max-height: 95vh;
    max-width: 95%;
    overflow: auto;
    width: 40rem;
    padding: 2rem;
    background-color: #fff;
    border: 1px solid #1f97ff33;
    opacity: 0;
    transform: translateY(-80px);
    transition: all .15s ease;
}

.popup-inner.open {
    opacity: 1;
    transform: translateY(0);
}

.close-row {
    text-align: center;
    margin-top: .7rem;
}

.close {
    color: #000;
    opacity: .4;
    text-decoration: none;
}

.close:hover {
    border-bottom: 1px solid;
}

.confirm .confirm-background {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #f7fbffec;
    top: 0;
    left: 0;
}

.confirm .confirm-inner {
    background: white;
    position: fixed;
    width: auto;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: .3rem;
    border: 1px solid #1f97ff33;
}

.confirm h3 {
    margin: 0;
    padding: 1rem 1rem 0 1rem;
}

.confirm button {
    width: fit-content;
    padding: 0;
    height: 40px;
    width: 100px;
    display: inline-block;
}

.confirm .confirm-message {
    padding: 0 1rem 1rem 1rem;
}

.confirm .confirm-buttons {
    text-align: right;
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid #1f97ff33;
}

.confirm .confirm-no {
    background: #fff;
    border: 1px solid #1f95ff;
    color: #1f95ff;
}

.confirm .confirm-yes {
    margin-left: 5px;
}

.radio-input-flex input {
    display: none;
}

.radio-input-flex>div {
    margin-right: 1.5rem;
}

.radio-input-flex {
    display: flex;
}

.radio-input-flex input+label:before {
    content: '';
    display: block;
    width: 1rem;
    height: 1rem;
    background: #fff;
    border-radius: 100%;
    border: 1px solid #1f97ff33;
    margin-right: .5rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.radio-input-flex label {
    padding-left: 1.5rem;
    position: relative;
    cursor: pointer;
}

.radio-input-flex input:checked+label:after {
    content: '';
    background: linear-gradient(45deg, #1f95ff 50%, #39bbff 100%);
    display: block;
    width: .7rem;
    height: .7rem;
    position: absolute;
    border-radius: 100%;
    left: .57rem;
    top: 50%;
    transform: translate(-50%, -50%);
}

.employee-item {
    background-color: #fff;
    padding: 1rem;
    border: 1px solid #1f97ff33;
    margin-bottom: .6rem;
}

.employee-controls a {
    color: #1f95ff;
    font-size: .8rem;
    text-decoration: none;
    margin-right: .4rem;
}

.employee-controls a:hover {
    border-bottom: 1px solid;
}

.login-links {
    text-align: center;
    margin-top: .3rem;
    font-size: .9rem;
}

.login-links a {
    opacity: .4;
    color: #000;
    text-decoration: none;
}

.login-links a:hover {
    border-bottom: 1px solid;
}

input[readonly]:not(#date):focus,
input[readonly]:not(#date) {
    outline: none !important;
    opacity: .5;
}

@media (max-width: 768px) {
    .period {
        position: fixed;
        display: block;
        text-align: center;
        margin-bottom: .5rem;
    }

    .period-dates {
        justify-content: space-between;
        width: 100%;
    }

    .period-total {
        width: 100%;
        margin: 0;
    }

    .sidebar,
    .main {
        position: relative;
        min-height: 0;
        height: auto;
        width: 100%;
    }

    .sidebar {
        margin-bottom: 1rem;
        padding: 2rem 1rem;
    }

    .role-employer .container {
        padding-top: 4rem;
    }

    .role-employee .container {
        padding-top: 6rem;
    }

    .pre-login {
        margin: 0 auto;
    }

    .container {
        flex-direction: column;
    }

    .entries {
        width: 100%;
        padding: 0;
    }

    .entry-row.head {
        display: none;
    }

    .entry-row.body {
        flex-direction: column;
        margin: 0 0 .5rem 0;
        line-height: 1.5;
        padding: 1rem 0;
    }

    .entry-row.body .entry-column {
        width: 100%;
    }

    .entry-column.employee {
        font-weight: bold;
    }

    .entry-column.sick_days:before {
        content: 'Sygedage: ';
        font-weight: bold;
    }

    .entry-column.work_days:before {
        content: 'Arbejdsdage: ';
        font-weight: bold;
    }

    .entry-column.km:before {
        content: 'Kilometer: ';
        font-weight: bold;
    }

    .entry-column.time:before {
        content: 'Registreret tid: ';
        font-weight: bold;
    }

    .entry-column.day:before {
        content: 'Dag: ';
        font-weight: bold;
    }

    .entry-column.date:before {
        content: 'Dato: ';
        font-weight: bold;
    }

    .entry-column.type:before {
        content: 'Type: ';
        font-weight: bold;
    }

    .sidebar .user {
        margin-top: 1rem;
    }

    .confirm .confirm-inner {
        width: 95%;
    }

    .notice-wrapper {
        position: fixed;
        bottom: auto;
        right: auto;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 99;
        padding: 1rem;
    }

    .password-input-row {
        flex-direction: column;
    }

    .password-input-row label {
        width: 100%;
    }
}