:root {
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-family-monospace: Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background-color: #eee;
}

* {
    box-sizing: border-box;
}

body {
    box-sizing: border-box;
    background-color: #eee;
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #222;
    font-size: 14px;
    margin: 0 auto;
    padding: 0;
    max-width: 960px;
    width: 100%;
}

#app {
    background-color: #fff;
    border: 1px solid #ccc;
    margin: 5px;
    border-radius: 10px;
    padding: 20px;
}

h1,h2,h3,h4,h5 { margin: 0; font-weight: normal;}
h1{ font-size: 24px; }
h2{ font-size: 22px; }
h3{ font-size: 20px; }
h4{ font-size: 18px; }
h5{ font-size: 16px; }

.w100 { width: 100%; }
.w, .wide { width: 100%; }
.l { text-align: left; }
.r { text-align: right; }
.j { text-align: justify; }
.c { text-align: center; }

.xs { font-size: .8em; }
.small { font-size: .9em; }
.normal { font-size: 1em; }
.xl, .big { font-size: 1.2em; }
.xxl, .bigger { font-size: 1.4em; }
.xxxl, .huge { font-size: 1.8em; }

.amargin { margin: auto; }

.max240 { max-width: 240px;}
.max360 { max-width: 360px;}
.max480 { max-width: 480px;}
.max720 { max-width: 720px;}
.max960 { max-width: 960px;}

.flex { display: flex; }
.flex.col { flex-direction: column; }
.flex.colr { flex-direction: column-reverse; }
.flex.row { flex-direction: row; }
.flex.rowr { flex-direction: row-reverse; }
.flex.gap, .flex.gap1 { gap: 0.5rem; }
.flex.gap2 { gap: 1rem; }
.flex.gap3 { gap: 2rem; }
.flex .grow, .flex-grow { flex-grow: 1; }
.flex.wrap { flex-wrap: wrap; }
.flex.wrapr { flex-wrap: wrap-reverse; }
.flex.ac { align-items: center; }
.flex.afs { align-items: flex-start; }
.flex.afe { align-items: flex-end; }
.flex.jc {justify-content: center; }
.flex.jfs {justify-content: flex-start; }
.flex.jfe {justify-content: flex-end; }
.flex.jsa {justify-content: space-around; }
.flex.jsb {justify-content: space-between; }
.flex.jse {justify-content: space-evenly; }

.flex h1, .flex h2, .flex h3, .flex h4, .flex h5 {
    margin: 0; padding: 0;
}

.heavy { font-weight: 500; color: #000; }
.light { font-weight: 400; color: #888; }
.red { color: #e22; };
.green { color: #282; };
.blue { color: #26a; };

.pad5 { padding: .5em; }
.pad10 { padding: 1em; }

.scroll { overflow-y: auto; }
.nowrap { white-space: nowrap; }
.xhide { overflow-x: hidden; }
.yhide { overflow-y: hidden; }

.point, .pointer { cursor: pointer; }

.popup-wrapper {
    background-color: #00000066;
    position: fixed;
    left: 0;
    top: 0;
    /* right: 0;
    bottom: 0; */
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}

.popup-window {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px #00000088;
}
.popup-window h1 {
    border-bottom: 1px solid #ccc;
}

.flex-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tag {
    background-color: #ddd;
    color: #222;
    padding: 1px 4px;
    border-radius: 3px;
    box-shadow: 1px 1px 0 #22222288;
    font-size: 0.95em;
    cursor: pointer;
}
.tag.red    { background-color: #f88; color: #a22; box-shadow: 1px 1px 1px #aa2222aa; }
.tag.orange { background-color: #fb6; color: #c60; box-shadow: 1px 1px 1px #aa4400aa; }
.tag.yellow { background-color: #fe2; color: #a80; box-shadow: 1px 1px 1px #aa8800aa; }
.tag.lime   { background-color: #cf2; color: #682; box-shadow: 1px 1px 1px #668822aa; }
.tag.green  { background-color: #2d2; color: #282; box-shadow: 1px 1px 1px #228822aa; }
.tag.cyan   { background-color: #2cc; color: #266; box-shadow: 1px 1px 1px #226666aa; }
.tag.blue   { background-color: #4bf; color: #26a; box-shadow: 1px 1px 1px #2266aaaa; }
.tag.purple { background-color: #e8f; color: #84a; box-shadow: 1px 1px 1px #8844aaaa; }

table.pretty {
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    background-color: #fff;
    border-spacing: 0;
    box-shadow: 0 0 .25em #00000022;
}

table.pretty tr td, table.pretty tr th {
    font-size: 13px;
    font-weight: normal;
    border-bottom: 1px solid #ccc;
    padding: 0.5em;
    text-align: inherit;
    vertical-align: inherit;
}

table.pretty tr th {
    background-color: #eee;
    border-top: 1px solid #ccc;
    color: #000;
    height: 2.5em;
}

table.pretty tr.b td, table.pretty tr.b th { font-weight: bold; }
table.pretty td.r, table.pretty th.r { text-align: right; }
table.pretty td.l, table.pretty th.l { text-align: left; }
table.pretty td.c, table.pretty th.c { text-align: center; }

.flex { display: flex; }
.flex-stretch { display: flex; flex-direction: row; gap: 10px; }
.flex-stretch * { flex-grow: 1; }

/* Information blocks */
div.infobox {
    padding: 0.5em;
    border-radius: .5em;
    background-color: #0ac;
    color: #fff;
    vertical-align: middle;
}
div.infobox.success { background-color: #292; color: #fff; }
div.infobox.notice  { background-color: #db0; color: #fff; }
div.infobox.warning { background-color: #e80; color: #fff; }
div.infobox.error   { background-color: #e44; color: #fff; }

div.infobox::before {
    content: "\f05a";
    font-family: "Font Awesome 6 Free";
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
    font-weight: 900;
    top: -2px;
    margin-right: .33em;
}

div.infobox.success::before { content: "\f058"; }
div.infobox.notice::before  { content: "\f06a"; }
div.infobox.warning::before { content: "\f071"; }
div.infobox.error::before   { content: "\f057"; }

/* Tip quotes */
div.infotip {
    padding: 0.7em;
    background-color: #cef;
    border-left: 4px solid #0ac;
    color: #268;
}
div.infotip.mint    { border-color: #0aa; background-color: #cfe; color: #286; }
div.infotip.success { border-color: #292; background-color: #cfc; color: #282; }
div.infotip.notice  { border-color: #db0; background-color: #ffc; color: #882; }
div.infotip.warning { border-color: #e80; background-color: #fec; color: #862; }
div.infotip.error   { border-color: #e44; background-color: #fee; color: #822; }

hr { border: none; border-top: 1px solid #ccc; }

#mainmenu {
    position: fixed;
    top: 0px;
    left: 0px;
    height: 100vh;
    width: 180px;
    background-color: #555;
    color: #ddd;
    display: flex;
    flex-direction: column;
}

#mainmenu a {
    text-decoration: none;
    color: #eee;
    text-shadow: 1px 1px 0 #222;
    height: 42px;
    line-height: 42px;
    overflow: hidden;
    display: flex;
    justify-items: center;
    align-items: center;
    padding: 0 .5em;
    gap: .33em;
}

#mainmenu a:hover {
    background-color: #666;
    color: #fff;
}

#mainmenu a:active, #mainmenu a.active {
    background-color: #555;
    color: #fc0;
}

#mainmenu .item_icon {
    display: flex;
    justify-items: center;
    align-items: center;
    align-content: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

#mainmenu .item_label {
    flex-grow: 1;
    overflow: hidden;
}

.toolstrip {
    margin: 10px 0;
    display: flex;
    flex-direction: row;
    gap: .5em;
    flex-wrap: wrap;
}

.menuitem_counter {
    border-radius: 0.8em;
    min-width: 1.6em;
    height: 1.6em;
    text-align: center;
    vertical-align: middle;
    line-height: 1.6em;
    background-color: #c00;
    color: #fff;
    padding: 0 0.3em;
}