:root {
    --sidebar-width: 15em;
    --header-height: 4em;
}

.sidebar {
    background: #303030;
    width: var(--sidebar-width);
    height: 100vh;
}

.sidebar-header {
    margin: 4px;
    padding: 1em;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
}

.sidebar-header.logged-in {
    background: green;
}

.sidebar-header.logged-out {
    background: #202020;
}

.sidebar-navigation-text {
    color: #ffffff !important ;
}

.sidebar-item {
    color: #a0a3bd;
    border-radius: 8px;
    margin: 4px 16px;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
}


.sidebar-logout {
    width: calc(var(--sidebar-width) - 2* 16px);
    display: block;
    position: absolute;
    bottom: 2em;
}

.sidebar-login {
    width: calc(var(--sidebar-width) - 2* 16px);
    display: block;
    position: absolute;
    bottom: 2em;
}

.sidebar-login:hover {
    color: #ffffff;
    background: rgba(0, 255, 0, 0.3);
    transform: translateX(5px);
}

.sidebar-logout:hover {
    color: #ffffff;
    background: rgba(255, 0, 0, 0.3);
    transform: translateX(5px);
}

.sidebar-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.main {
    margin-left: var(--sidebar-width);
    margin-top: 4em;
    min-height: calc(100vh - var(--header-height));
    padding: 20px;
}

.main input {
    max-width: 30em;
}

.main select {
    max-width: 30em;
}

.main h2 {
    margin-bottom: 1.5em;
}

.header {
    padding: 0.5em;
    text-align: center;
    height: var(--header-height);
    min-height: var(--header-height);
    margin-left: var(--sidebar-width);
    background: #202020;
}

.flashes {
    list-style-type: none;
    margin-left: var(--sidebar-width);
    left: 0;
    right: 0;
    margin-right: 0; 
    color: black;
    line-height: 1.5em;
    vertical-align: center;
    position: absolute;
    padding: 0;
}

.flash {
    margin-bottom: 0.1em;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 1);
    border: grey;
    border-style: solid;
    border-width: 0.1em;
    border-radius: 0.3em;
}

.close-icon {
    color: red;
    margin-right: 1em;
    margin-left: 0.5em;
    font-size: 1.5em;
    padding: 0;
    text-align: center;
}


.left-of-checkbox {
    margin-right: 4em;
}

.right-of-checkbox {
    margin-left: 1em;
}

.admin-button {
    margin-top: 2em;
    margin-bottom: 2em;
}

table, th, td {
    border: 0.1em solid black;
}

tbody tr:nth-child(odd) {
    background-color: #303030;
}

.headingtr {
    background-color: #202020 !important;
}

table {
    width: calc(90% - var(--sidebar-width));
    border-collapse: collapse;
}

th, td {
    padding: 1em;
    text-align: center;
}

.borrowerreason {
    width: 100%;
    text-align: left;
}

.sinceto {
    min-width: 14em;
}

.actions {
    padding: 0;
    min-width: 9em;
}

