* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: sans-serif;
    background: #F7F8F9;
    color: #000;

    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #000; /*#42B830;*/
}

form label,
form label input,
form label select {
    display: block;
}

form label * + select {
    margin-top: 0.5rem;
}

form label {
    margin-bottom: 0.75rem;
}

.msg-box {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.msg-box.error {
    background: #F99;
}

.msg-box.success {
    background: #9F9;
}

.text-button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: inherit;
    line-height: 1;
}

a:link, a:visited, .text-button {
    color: #349126;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0 1rem;
}

nav,
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 0;
    padding: 0;
}

nav {
    background: #42B830;
    position: sticky;
    top: 0;
}

nav * {
    line-height: 0;
}

nav h1 {
    margin: 0;
}

nav a {
    display: block;
}

nav h1 a,
footer p:first-child {
    padding: 0.5rem 1rem;
}

nav h1 img {
    height: 2rem;
}

nav ul,
footer ul {
    list-style-type: none;
    display: flex;

    margin: 0;
    padding: 0;
}

nav ul li a,
nav ul li .text-button,
footer p,
footer ul li a {
    margin: 0;
    padding: 1rem 0.5rem;
    line-height: 1rem;
}

nav ul li:last-child .text-button,
footer ul li:last-child a {
    padding-right: 1rem;
}


nav ul li a:link,
nav ul li a:visited,
nav ul li .text-button {
    color: #000;
}

nav ul li a:hover,
nav ul li .text-button:hover {
    background: #F7F8F9;
}

footer {
    border-top: 1px dashed #AAA;
}

footer .operator {
    color: #777;
}

main {
    margin: 0;
    padding: 1rem;
    min-height: calc(100vh - 0.5rem - 3rem - 3rem - 1px);
}

table {
    border: 0;
    border-collapse: collapse;
}

table thead th {
    text-align: left;
}

table td, table th {
    border: 1px solid #777;
    padding: 0.5rem;
}

table th {
    background: #B7B8B9;
}

table tr:nth-child(2n-1) {
    background: #E7E8E9;
}

main section {
    margin-top: 2.5rem;
}

.clipboard-bubble {
    background: #42B830;
    color: #FFF;
    border: 1px solid #99FF99;
    padding: 0.5rem;
    margin: 0.5rem 0;
}

#app-group-list > ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#app-group-list > ul > li > * {
    margin: 0;
}

#app-authorize {
    display: flex;
}

#app-authorize input[type="submit"],
.form-terminate input[type="submit"] {
    background: #FFF;
    padding: 0.5rem;
    margin-right: 1rem;

    cursor: pointer;
}

#app-authorize #form-cancel input[type="submit"],
.form-terminate input[type="submit"] {
    border: 2px solid #F44;
}

#app-authorize #form-cancel input[type="submit"]:hover,
.form-terminate input[type="submit"]:hover {
    background: #FEE;
}

#app-authorize #form-authorize input[type="submit"] {
    border: 2px solid #42B830;
}

#app-authorize #form-authorize input[type="submit"]:hover {
    background: #EFE;
}

#app-authorize #form-authorize label {
    display: inline-block;
}

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

.logout-timestamp {
    color: #F44;
}

#token-created textarea {
    display: block;
    min-width: 33vw;
    height: 4.5rem;

    font-family: monospace;
}

#token-created .clipboard-bubble {
    display: block;
    width: fit-content;
}
