* {
    padding: 0;
    margin: 0;
}

body {
    background-color: #F7F7F7;
    font-family: Helvetica, Arial, sans;
}

a {
    color: black;
    text-decoration: underline;
}

h1 {
    font-size: 1.4em;
    font-family: 'Consolas', 'Helvetica', 'sans';
}

h1 a {
    text-decoration: none;
}

h2 {
    font-size: 1.2em;
    color: darkgrey;
    margin-left: 15px;
}

nav {
    margin-left: 20px;
}

nav ul li {
    display: inline;
    padding: 0;
    margin: 0;
    color: black;
}

nav ul li a {
    color: #777;
    text-decoration: none;
}


nav ul li:before {
    content: ' > ';
    color: #666;
}

nav ul li:first-child:before {
    content: '';
}

p {
    padding: 5px;
}

header p {
    padding: 0;
}

#wrapper {
    max-width: 1200px;
    margin: auto;
    background-color: white;
    padding: 10px;
    border: 1px solid #F3F3F3;
}

#topbar {
    display: grid;
    padding: 10px;
    padding-top: 0;
    border-bottom: 1px solid #F3F3F3;
    grid-template-columns: max-content auto max-content;
}

.auth-label {
    padding: 3px;
    color: lightgrey;
}

.auth-button {
    margin-left: 5px;
    background-color: #F1F1F1;
    border: 1px solid #DDD;
}

#content-wrapper {
    padding: 10px;
    font-size: 1em;
    padding-top: 20px;
    min-height: 100%;
}

ul {
    margin: 5px;
}

li {
    margin-left: 20px;
    padding: 5px;
}

input, button, select {
    padding: 5px;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
    border: 1px solid #cbcbcb;/*  inner column border */
}

table caption {
    color: #000;
    font: italic 85%/1 arial, sans-serif;
    padding: 1em 0;
    text-align: center;
}

td, th{
   border-left: 1px solid #cbcbcb;/*  inner column border */
    border-width: 0 0 0 1px;
    font-size: inherit;
    margin: 0;
    overflow: visible; /*to make ths where the title is really long work*/
    padding: 0.5em 1em; /* cell padding */

    /*
    font-weight: normal;
    font-size: 1.2em;
    color: darkgrey;
    text-align: left;
    */
}

table thead {
    background-color: #e0e0e0;
    color: #000;
    text-align: left;
    vertical-align: bottom;
}

table tbody {
    padding-top: 5px;
}

table td {
    padding: 5px;
    background-color: transparent;
}

.valid {
    color: green;
}

.invalid {
    color: red;
}

.required:after {
    content: " *";
    color: red;
}

button, input, select, textarea {
    font-family: Helvetica, Arial, sans;
}

button:hover {
    cursor: pointer;
}

button:active {
    filter: brightness(0.9);
}

button[disabled="disabled"] {
    cursor: not-allowed; 
}

.button-add {
    margin: 5px;
    font-size: 0.9em;
    background-color: #DDFFDD;
    border: 1px solid lightgreen;
}

.button-remove {
    margin: 5px;
    font-size: 0.9em;
    background-color: #FFDDDD;
    border: 1px solid lightcoral;
}

.button-submit {
    margin: 5px;
    font-size: 0.9em;
    background-color: #DDDDFF;
    border: 1px solid rgb(155, 155, 240);
}

.link-as-button {
    display: inline-block;
    box-sizing: border-box;
    text-decoration: none;
    padding: 5px;
    font-size: 0.9em;
    user-drag: none; 
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.link-as-button:hover {
    cursor: pointer;
}

.link-as-button:active {
    filter: brightness(0.9);
}

.right-to-left {
    text-align: right;
}
