html, * {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Noto Sans', sans-serif;
    font-size: 18px;
    color: #444;
    position: relative;
    height: 100%;
    display: flex;
    padding-top: 90px;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #4b026b;
}

header nav {
    width: 100%;
    max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
}

header > nav > div {
    flex: 1;
}

header h1 {
    margin: auto;
    padding: 0 20px;
    display: inline-block;
}

header h1 a {
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 80px;
    font-weight: 700;
    text-decoration: none;
}

header ul {
    margin: 0 10px 0 0;
}

header ul li {
    display: inline-block;
}

header ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 0 10px;
}

main {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

section {
    width: 100%;
}

label, h3 {
    display: block;
    width: 100%;
    margin-bottom: .5rem;
    font-weight: 700;
    font-size: 1rem;
}

input {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border: 2px solid #4b026b;
    border-radius: 5px;
}

input[type="password"] {
    text-align: center;
    letter-spacing: 10px;
    font-weight: 700;
}

input[type="datetime-local"] {
    background-color: #ffffff;
}

input:focus {
    outline: none;
    border-color: #8700c1;
}

select {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border: 2px solid #4b026b;
    background-color: #ffffff;
    border-radius: 5px;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"] + label {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border: 2px solid #4b026b;
    border-radius: 5px;
    cursor: pointer;
    background-color: #ffffff;
    text-align: center;
}

input[type="checkbox"]:checked + label {
    color: #ffffff;
    background-color: #8700c1;
    border-color: #8700c1;
}

.button {
    color: #ffffff;
    background-color: #4b026b;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border: 2px solid #4b026b;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.button:active, .button:hover, .button:focus {
    border-color: #8700c1;
    background-color: #8700c1;
}

.button:disabled {
    background-color: #ddd;
    color: #fff;
    border-color: #ddd;
    cursor: initial;
}

.acts, .counts {
    display: none;
}

h2 {
    text-align: center;
    font-size: 2rem;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1rem;
    height: 300px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

thead th {
    position: sticky;
    top: -2px;
    padding: 1rem;
}

table, th, td {
    border: 1px solid #ddd;
    font-size: .8rem;
}

td {
    padding: 1rem;
}

section#done td:first-of-type, thead th {
    background-color: #f6e1ff;
}

p.error {
    color: #ff0000;
}
