/*
/* Layout 
*/
#logo {
    font-size: 0;
    height: 45px;
    background: url('../img/logo.svg') no-repeat;
    background-color: var(--red2);
}
#container {
    display: flex;
    align-items: stretch;
    min-height: 100%;
}
#header {
    width: 200px;
    background: var(--grey5);
    color: white;
}
#content {
    padding: var(--default-spacing);
    box-sizing: border-box;
    flex-grow: 2;
}
#loading {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    padding-left: 27px;
    background: url('../img/loading.svg') no-repeat left center;
    background-size: 25px;
}

/*
/* Navigation left
*/
#nav {
    width: 200px;
    box-sizing: border-box;
}
#nav li {
    line-height: 30px;
}
#nav li a {
    font-size: 0.9em;
    padding-left: var(--alt-spacing);
    display: block;
}
#nav li:hover {
    background: var(--grey4);
}
#nav li.active {
    background: white;
}
#nav li:hover a {
    color: var(--grey1);
}
#nav li.active a {
    color: black;
}
#nav hr {
    border-top: 1px solid #000;
    height: 1px;
}


/*
/* Menu burger
*/
#menu_button {
    position: absolute;
    top: var(--default-spacing);
    right: var(--default-spacing);
    width: 20px;
    height: 20px;
    background: url('../img/menu_black.svg') no-repeat;
    background-size: 100%;
    opacity: 0.5;
    cursor: pointer;
}
#search_button {
    position: absolute;
    top: var(--default-spacing);
    right: 55px;
    width: 20px;
    height: 20px;
    background: url('../img/search.svg') no-repeat;
    background-size: 100%;
    opacity: 0.5;
    cursor: pointer;
}
#menu_button:hover {
    opacity: 0.8;
}
body.menu_expanded #menu_button {
    background: url('../img/close_black.svg') no-repeat center center;
    background-size: 60%;
}
#menu {
    position: absolute;
    z-index: 100;
    top: 30px;
    right: 50px;
    display: none;
    background: white;
    border: 1px solid var(--grey3);
    padding: 10px 0;
    box-sizing: border-box;
    font-size: 0.9em;
    width: 200px;
    border-radius: 4px;
}
#menu a {
    color: black;
    display: block;
    padding: 5px;
    opacity: 0.7;
}
#menu a.username {
    padding-left: 35px;
    background: url('../img/user_black.svg') no-repeat 10px center;
    background-size: 15px;
}
#menu a.website {
    padding-left: 35px;
    background: url('../img/eye_black.svg') no-repeat 10px center;
    background-size: 15px;
}
#menu a.logout {
    padding-left: 35px;
    background: url('../img/logout_black.svg') no-repeat 12px center;
    background-size: 12px;
}
#menu a:hover {
    background-color: var(--grey4);
    opacity: 0.7;
}
body.menu_expanded #menu {
    display: block;
}


/*
/* Tabs 
*/
#tabs {
    border-bottom: 1px solid var(--grey3);
    margin-bottom: var(--default-spacing);
}
#tabs .tab {
    display: inline-block;
    padding: 10px 15px 10px 15px;
    
}
#tabs .tab h2 {
    display: inline-block;
    white-space: nowrap;
    padding-bottom: 0;
    overflow: hidden;
    position: relative;
}
#tabs .tab.select h2 {
    background: url('../img/check.svg') no-repeat;
    background-size: 12px;
    padding-left: var(--default-spacing);
}
#tabs .tab.index h2 {
}
#tabs .tab .close {
    float: none !important;
    line-height: 1em !important;
    vertical-align: middle;
    margin-left: 5px;
    width: 10px;
    height: 10px;
    display: inline-block;
    background: url('../img/close_black.svg') no-repeat;
    background-size: 100%;
    font-size: 0;
}
#tabs .tab.active {
    border-top: 1px solid var(--grey3);
    border-left: 1px solid var(--grey3);
    border-right: 1px solid var(--grey3);
    border-radius: 3px 3px 0 0;
    background: white;
    position: relative;
    bottom: -1px;
    z-index: 10;
}


/* Login */
#login form {
    padding-top: 2em;
    width: 25em;
    margin: auto;
}
#login form > p {
    margin-bottom: 1em;
}