* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Roboto, Helvetica, sans-serif;
    --xovis-red: rgb(219, 0, 47);
    --xovis-green: rgb(22, 160, 133);
    --button-color: #595959;
    --button-hover-color: #4d4d4d;
}

a, a:active, a:focus {
    outline: none;
    cursor: pointer;
}

/* page layouts */
.menu_page {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    grid-template-columns: 300px 1fr;
    height: 100vh;
}

.topnav {
    background-color: white;
    grid-column-start: 1;
    grid-row-start: 1;
    grid-column-end: 3;
    grid-row-end: 2;
}

.sidenav {
    grid-column-start: 1;
    grid-row-start: 2;
    grid-column-end: 2;
    grid-row-end: 4;
    overflow-y: auto;
}

.content {
    grid-column-start: 2;
    grid-row-start: 2;
    grid-column-end: 3;
    grid-row-end: 3;
    margin: 5px;
    overflow-y: auto;
}

.info {
    border-top: 1px solid #b3b8bd;
    padding: 5px 10px;
    grid-column-start: 2;
    grid-row-start: 3;
    grid-column-end: 3;
    grid-row-end: 4;
}
#filter_text{
    float: right;
    width: 250px;
}


.footer {
    padding-left: 10px;
    font-size: 0.9em;
    background-color: #4d4d4d;
    color: white;
    grid-column-start: 1;
    grid-row-start: 4;
    grid-column-end: 3;
    grid-row-end: 5;
}

.navbar {
    display: grid;
    grid-template-rows: 3em;
    grid-template-columns: 1fr 1fr 1fr;

    border-width: 6px 0 1px 0;
    border-style: solid;
    border-top-color: #f03e3e;
    border-bottom-color: #b3b8bd;
    height: 97px;

    font-size: 36px;
    font-weight: 300;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;

    position: relative;
    z-index: 8;
}

.navbar_left {
    height: 84px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 0 6px 0;
}

#logo_xovis {
    height: 28px;
    padding: 0 0 0 36px;
}

.appname {
    color: var(--xovis-red);
    padding-left: 36px;
    white-space: nowrap;
}

#info {
    text-align: right;
    position: absolute;
    right: 36px;
}

#version {
    font-size: 14px;
}

#disclaimer {
    padding-top: 15px;
    font-size: 10px;
}

#disclaimer a {
    color: inherit;
    text-decoration: none;
}

/*****************/
/* Dropdown Menu */
/*****************/
.dropbtn {
    float: left;
    color: black;
    padding: 0 16px;
    text-decoration: none;
    line-height: 3em;
    text-align: center;
    height: 100%;
}

/***************/
/* Folder Tree */
/***************/
#folder_tree {
    padding: 5px;
    background-color: #2C3136;
    color: #C2C8CF;
    font-size: 14px;
}

#folder_tree .entry {
    padding: 8px 0;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 40px;
}

#folder_tree span {
    overflow: hidden;
    text-overflow: ellipsis;
}

#folder_tree .dots {
    visibility: hidden;
}

#folder_tree .entry:hover {
    background-color: #181D22;
}

#folder_tree .entry:hover .dots,
#folder_tree .entry.selected .dots {
    visibility: visible;
}

#folder_tree .selected {
    background-color: #03030C;
    font-weight: bold;
    color: #FFF;
}

#folder_tree .drop {
    font-style: italic;
    background-color: white;
    color: #595959;
}

#folder_tree .expandable::before {
    font-size: 12px;
    content: '\25B6';
    display: inline-block;
    margin-right: 6px;
}

#folder_tree .expanded::before {
    transform: rotate(90deg);
}

#folder_tree .hide_subfolder + .subfolder {
    display: none;
}

/*******************/
/* Folder Dropdown */
/*******************/
.overlay_dropdown {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9;
}

#overlay_dropdown_content {
    position: absolute;
    padding: 5px;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, .2), 0 4px 5px 0 rgba(0, 0, 0, .14), 0 1px 10px 0 rgba(0, 0, 0, .12);
    border-radius: 4px;
    background-color: #FFF;
    z-index: 10;
}

.overlay_dropdown_entry {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.overlay_dropdown_entry svg {
    height: 24px;
    width: 24px;
    margin-right: 10px;
}

.overlay_dropdown_entry span {
    height: 24px;
    text-align: center;
}

.overlay_dropdown_entry:hover {
    background: rgba(0, 0, 0, .04);
}

/*********/
/* Table */
/*********/
table {
    border-collapse: collapse;
    width: 100%;
}

thead {
    text-align: left;
    background-color: #f03e3e;
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
    border-top: none;
}

thead tr {
    display: block;
}

th {
    border-style: none;
    padding: 8px;
    white-space: nowrap;
}

tbody {
    display: block;
    width: 100%;
}

tbody tr {
    vertical-align: middle;
}

td {
    border-width: 1px 0;
    border-style: solid;
    border-color: #ddd;
    padding: 8px;
    white-space: nowrap;
}

td:nth-child(1),
th:nth-child(1) {
    min-width: 65px;
    max-width: 65px;
}

td:nth-child(2),
th:nth-child(2) {
    min-width: 160px;
    max-width: 160px;
}

td:nth-child(3),
th:nth-child(3),
td:nth-child(4),
th:nth-child(4),
td:nth-child(7),
th:nth-child(7) {
    min-width: 250px;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}

td:nth-child(5),
th:nth-child(5) {
    max-width: 160px;
    min-width: 160px;
}

td:nth-child(6),
th:nth-child(6) {
    min-width: 140px;
    max-width: 140px;
}

td:nth-child(8),
th:nth-child(8) {
    width: 100vw;
}

tbody tr:hover {
    background-color: #ddd;
}

tbody tr.selected {
    background-color: rgb(163, 190, 204);
}

.folder_assignment {
    text-decoration: underline dotted;
    text-decoration-thickness: 1px;
}

.full_path {
    font-size: 0.75em;
    display: block;
    position: absolute;
}

table a {
    text-decoration: none;
    color: #fff;
    background-color: #2c5b72;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
    cursor: pointer;
    outline: none;
    border: none;
    padding: 0 16px;
    border-radius: 4px;
    height: 22px;
    line-height: 22px;
    display: inline-block;
    margin-left: 5px;
}

table a:hover {
    color: #2c5b72;
    background-color: #fff;
}

table a.disabled {
    color: #fff;
    background-color: grey;
    pointer-events: none;
}

.order {
    cursor: pointer;
}

.order:hover {
    text-decoration: underline;
}

.desc:after {
    padding-left: 5px;
    display: inline-block;
    text-decoration: none;
    content: '   \2191';
}

.asc:after {
    padding-left: 5px;
    display: inline-block;
    text-decoration: none;
    content: '   \2193';
}

.copy_icon {
    position: absolute;
    color: #2c5b72;
}

.copy_icon::after {
    font-size: 0.75em;
    content: "Copy";
    font-weight: bold;
    cursor: pointer;
    position: relative;
    left: 0;
    top: -17px;
}

.copy_selected {
    color: white;
    background-color: black;
}

/*************/
/* Indicator */
/*************/
.checkmark {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-color: green;
    border-radius: 50%;
    transform: rotate(45deg);
    margin-bottom: -5px;
}

.checkmark:before {
    content: "";
    position: absolute;
    width: 3px;
    height: 9px;
    background-color: #fff;
    left: 11px;
    top: 6px;
}

.checkmark:after {
    content: "";
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: #fff;
    left: 8px;
    top: 12px;
}

.cross {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-color: var(--xovis-red);
    border-radius: 50%;
    transform: rotate(45deg);
    margin-bottom: -5px;
}

.cross:before {
    content: "";
    position: absolute;
    width: 3px;
    height: 12px;
    background-color: #fff;
    left: 9.5px;
    top: 5px;
}

.cross:after {
    content: "";
    position: absolute;
    width: 12px;
    height: 3px;
    background-color: #fff;
    left: 5px;
    top: 9.5px;
}

/************/
/* Messages */
/************/
#message_container {
    list-style-type: none;
    position: fixed;
    z-index: 200;
    top: 50px;
    left: 50px;
}

.error_message {
    color: black;
    border-radius: 8px;
    border: 4px solid black;
    background-color: white;
    font-size: 1.25em;
    padding: 5px;
    margin: 5px 0;
    max-width: 750px;
}

.info_message {
    color: #FF0000;
    border-radius: 8px;
    border: 4px solid #FF0000;
    background-color: #FFD5D5;
    font-size: 1.25em;
    padding: 5px;
    margin: 5px 0;
    max-width: 750px;
}