body.light-mode {
    --bg: #fff;
    --text: #000;
    --input-bg: #e7f0ff;
    --input-bg-hover: #eee;
    --input-border-br: #bcd4e2;
    --input-border-tl: #bde6ff;
    --input-focus: #0010ff;
    --shadow: #e3e5f6;
}
body.dark-mode {
    --bg: #000;
    --text: #fff;
    --input-bg: #132749;
    --input-bg-hover: #081324;
    --input-border-br: #1d3e51;
    --input-border-tl: #253741;
    --input-focus: #545eff;
    --shadow: #272b58;
}
body {
    margin: 0;
    font-family: sans-serif;
    font-size: 14px;
    background-color: var(--bg);
    color: var(--text);
}
body.dark-mode a {
    color: #7b92a7;
}
body.dark-mode a:visited {
    color: #3563d1;
}
ul {
    padding: 0;
    margin: 0;
}
li {
    list-style-type: none;
    padding: 5px;
}
ul.ul_stripe li:nth-of-type(2n + 1) {
    background-color: var(--input-bg-hover);
}
#top_bar {
    border-style: solid;
    border-width: 0px 0px 1px 0px;
    border-color: var(--input-bg);
    margin: 0px 0px 25px 0px;
    padding: 8px;
    box-shadow: 0px 5px 5px 0px var(--shadow);
}
#top_bar_links a {
    margin-left: 3px
}
#logo img {
    vertical-align: middle;
    width: 35px;
    margin-right: 5px;
}
#logo {
    color: var(--text);
    text-decoration: none;
    display: inline-block;
    height: 100%;
    font-size: 17px;
}
#menu_username {
    top: 10px;
    right: 45px;
    position: absolute;
    text-align: right;
    font-size: 13px;
}
#user_menu {
    top: 8px;
    right: 8px;
    width: 170px;
}
#user_menu_button {
    background-image: url('/static/se/icon-user.svg');
}
#conf_menu {
    top: 48px;
    right: 8px;
    width: 170px;
}
#conf_menu_button {
    background-image: url('/static/se/icon-cog.svg');
}
#clear_button {
    background-image: url('/static/se/icon-clear.svg');
}
#search_button {
    background-image: url('/static/se/icon-search.svg');
}
#id_q {
    padding: 11px;
    min-width: 30%;
    height: 16px;
}
#id_q:hover + #clear_button {
    background-color: var(--input-bg-hover);
}
#id_q:focus + #clear_button {
    outline: 0px;
    border-color: #0010ff;
}

.menu {
    position: absolute;
    text-align: right;
}
.panel {
    padding: 4px 4px 4px 4px;
    border-color: #cfcbcb;
    border-style: solid;
    border-width: 1px;
    background-color: var(--bg);
    position: relative;
    z-index: 999;
    display: none;
}
.menu_links {
    text-align: center;
    padding: 5px;
}
.links {
    display: block;
    font-size: 16px;
    text-decoration: none;
    color: var(--text);
}
.links:hover {
    background-color: var(--input-bg);
}
.img_button {
    background-size: 15px 15px;
    background-repeat:  no-repeat;
    background-position: center;
    width: 35px;
    height: 35px;
    margin-bottom: 7px;
}
button,input,select,textarea {
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text);
    border-right: 1px solid var(--input-border-br);
    border-bottom: 1px solid var(--input-border-br);
    border-top: 1px solid var(--input-border-tl);
    border-left: 1px solid var(--input-border-tl);
    padding: 5px;
}
select {
    margin-bottom: 5px;
}
button:focus,input:focus,select:focus {
    outline: 0px;
    border-style: solid;
    border-bottom-width: 1px;
    border-color: #0010ff;
}
button:hover,input:hover,select:hover {
    background-color: var(--input-bg-hover);
    cursor: pointer;
}
.a_button {
    color: var(--text);
    text-decoration: none;
    background-color: var(--input-bg);
    padding: 10px;
    margin: 2px 0px 2px 0px;
    border-right: 1px solid var(--input-border-br);
    border-bottom: 1px solid var(--input-border-br);
    border-top: 1px solid var(--input-border-tl);
    border-left: 1px solid var(--input-border-tl);
}
.a_button:hover {
    background-color: var(--input-bg-hover);
}
.a_button_disabled {
    background-color: var(--input-bg-hover);
    color: #737373;
}
.pagination {
    padding: 20px 0px 20px 0px;
    text-align: center;
}

.field-_url > a {
    display: inline-block;
    width: 500px;
    overflow: hidden;
    text-overflow: "…";
    white-space: nowrap;
}

.cache_links {
  display: block;
}

.cache_links * {
  display: inline;
}

.tab_link {
  margin: 0px 2px 25px 3px;
  padding: 8px;
  color: black;
  border-style: solid;
  border-color: var(--input-border-br);
  text-decoration: none;

  border-width: 0px 0px 1px 0px;
  box-shadow: 0px 0px 3px 3px var(--shadow);
}

.tab_link:hover {
  box-shadow: 0px 0px 5px 5px var(--shadow);
}

#tab_selected {
  border-width: 1px;
  box-shadow: none;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}
.loader {
    animation: rotate 1s linear infinite;
}
