:root {
    --anyx-accent: #619FF5;
}
body {
    background-color: #000;
    color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100%;
    height: auto;
    font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
}
img {
    border: medium none;
    max-width: 100%;
    height: auto;
}
a {
    color: #6598b8;
    text-decoration: none;
}
a:hover {
    color: #ff9933;
}

h1, h2, h3, h4, h5, h6 {
    color: #619FF5;
    font-family: Verdana, sans-serif;
}

hr {
    margin: 0;
    padding: 0;
    border-color: #333;
}

div#data {
    position: relative;
    padding: 15px;
    flex: 1;
}

div#page {
    background-color: #071834;
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
    min-height: 100dvh;
    border-left: 1px solid #7c99b9;
    border-right: 1px solid #7c99b9;
    display: flex;
    flex-direction: column;
}

div#header {
    background: #000;
}

div#formdiv {
    display: none;
    background-color: #0a1e3d;
    position: fixed;
    padding: 20px;
    margin: 0;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #7c99b9;
    border-radius: 8px;
    z-index: 9999;
}

div.mainbody {
    position: relative;
    padding: 0;
    margin: 0;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

table td {
    vertical-align: top;
    font-size: 14px;
}

div#page_loading {
    display: none;
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    opacity: 0.6;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* menu bar */
#nav {
    position: sticky;
    top: 0;
    z-index: 400;
    background: url('/app/images/navbar.jpg') repeat-x center;
    background-size: auto 100%;
    margin: 0;
    padding: 0;
    height: 30px;
}

#nav h2, #nav hr {
    display: none;
}

ul.menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.menu > li {
    position: relative;
}

ul.menu > li > a {
    display: block;
    padding: 6px 14px;
    color: #fff;
    text-decoration: none;
    font-size: 8pt;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-family: 'Trebuchet MS', Arial, sans-serif;
}

ul.menu > li > a:hover {
    color: #6598b8;
}
ul.menu > li > a.active {
    color: #619FF5;
}

/* profile icon stays left, nav items push right */
li.menu-right {
    margin-left: 0;
    order: -1;
}
li.menu-right .submenu-right {
    left: 0;
    right: auto;
}
ul.menu > li:not(.menu-right) {
    margin-left: auto;
}
ul.menu > li:not(.menu-right) ~ li:not(.menu-right) {
    margin-left: 0;
}

/* submenus */
.submenu, .subsubmenu, .subsubsubmenu {
    display: none;
    position: absolute;
    left: 0;
    z-index: 100;
    list-style: none;
    padding: 4px 0;
    margin: 0;
    min-width: 160px;
    background-color: #071834;
    border: 1px solid #7c99b9;
    border-top: none;
}

ul.menu > li:hover > .submenu,
ul.menu > li:hover > .submenu-right,
.submenu li:hover > .subsubmenu,
.subsubmenu li:hover > .subsubsubmenu {
    display: block;
}

.submenu-right {
    right: 0;
    left: auto;
}

.menu-divider {
    border-top: 1px solid #333;
    margin: 4px 0;
}

.subsubmenu, .subsubsubmenu {
    position: absolute;
    left: 100%;
    top: 0;
}

.submenu li, .subsubmenu li, .subsubsubmenu li {
    display: block;
    position: relative;
}

.submenu a, .subsubmenu a, .subsubsubmenu a {
    display: block;
    padding: 6px 16px;
    color: #6598b8;
    text-decoration: none;
    font-size: 12px;
    font-weight: normal;
    text-transform: none;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    white-space: nowrap;
}

.submenu a:hover, .subsubmenu a:hover, .subsubsubmenu a:hover,
.submenu a.active, .subsubmenu a.active, .subsubsubmenu a.active {
    color: #fff;
    background-color: #0a2040;
}

div#footer {
    width: 100%;
    height: 30px;
    line-height: 30px;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
    background: url('/app/images/navfoot.jpg') repeat-x center;
    background-size: auto 100%;
    color: #bbb;
    font-size: 11px;
}

div#footer a {
    color: #bbb;
    text-decoration: none;
}

div#footer a:hover {
    color: #fff;
}

/* forms */
input {
    color: #fff;
    background: #0a1e3d;
    border: 1px solid #7c99b9;
    border-radius: 4px;
    padding: 6px 10px;
}

textarea {
    color: #fff;
    background: #0a1e3d;
    border: 1px solid #7c99b9;
    border-radius: 4px;
    padding: 8px 10px;
}

select {
    color: #fff;
    background: #0a1e3d;
    border: 1px solid #7c99b9;
    border-radius: 4px;
    padding: 6px 10px;
}

.button {
    background-color: #0a1e3d;
    color: #6598b8;
    border-radius: 6px;
    border: 1px solid #7c99b9;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

.button:hover {
    color: #fff;
    background-color: #0d2a50;
}

.button-close {
    background-color: #0a1e3d;
    color: #7c99b9;
    border-radius: 6px;
    border: 1px solid #7c99b9;
    padding: 6px 10px;
    cursor: pointer;
}
.button-close:hover {
    color: #fff;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 30px;
    z-index: 100;
    background: #071834;
    padding: 2px 15px;
    margin: 0 -15px;
    border-bottom: 1px solid #7c99b9;
}

/* mobile breakpoint */
@media (max-width: 640px) {
    div#page {
        border-left: none;
        border-right: none;
    }
    ul.menu > li > a {
        padding: 8px 10px;
        font-size: 12px;
    }
    div#data {
        padding: 10px;
    }
}
