﻿body.design .bluecover {
    display: none;
    position: absolute;
    content: "";
    background-color: rgba(0, 139, 139, 0.3);
    z-index: 11000;
    pointer-events: none;
    cursor: pointer;
    border: dotted 1px #888;
}

body.design .bluecover.on {
    display: block;
}

body.design .bluecover.selected {
    background-color: rgba(255, 140, 0, 0.5);
    pointer-events: auto;
}

body.design .bluecover .blackbox {
    position: absolute;
    background-color: black;
    color: white;
    font-size: 12px;
    font-family: monospace;
    padding: 6px 9px;
    line-height: 14px;
    white-space: pre;
    opacity: 0.7;
    bottom: 100%;
    pointer-events: all;
    border: none;
}

body.design .bluecover .blackbox::selection {
    background-color: rgba(255, 140, 0, 0.5);
}

body.design [collection] {
    position: relative;
    cursor: pointer;
}

body.design [collection]:before {
    display: block;
    position: absolute;
    z-index: 10;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    line-height: 30px;
    border-radius: 0px;
    font-family: arial;
    font-size: 22px;
    font-weight: bold;
    background: rgba(245, 245, 245, 0.3);
    border: dotted 1px rgba(204, 204, 204, 0.5);
    color: white;
    content: "";
    box-sizing: border-box;
    text-align: center;
    pointer-events: none;
}

body.design [collection].on:before,
body.design [collection]:hover:before {
    background-color: rgba(0, 139, 139, 0.3);
    border: dotted 1px #888;
}

body.design .news-list li {
    overflow: inherit;
}

.floated {
    display: none;
    position: absolute;
    z-index: 15;
    padding: 0;
    margin-top: -1px;
    right: 0;
    box-shadow: 3px 3px 4px 1px #ccc;
    width: 400px;
    user-select: none;
}

.on .floated {
    display: block;
}

.floated-content {
    background: #000;
    padding: 10px;
}

.floated-content ::selection {
    background-color: rgba(255, 140, 0, 0.5);
}

.system,
.system * {
    box-sizing: border-box;
}

.system {
    position: fixed;
    top: 50%;
    margin-top: -200px;
    left: 0px;
    min-width: 350px;
    min-height: 350px;
    z-index: 12000;
    transition: 0.1s;
    opacity: 0.9;
    display: flex;
    border-top: solid 1px #d8d8d8;
    border-right: solid 1px #eee;
}

.system.compact {
    flex-direction: column;
    min-height: inherit;
    min-width: inherit;
    border-bottom: solid 1px #d8d8d8;
}

.system:hover {
    opacity: 1;
}

.system ul.tab-links {
    flex: 0 0 100px;
    align-self: flex-start;
}

.system ul.tab-links > li {
    padding: 3px 8px;
    background: #f8f8f8;
    cursor: pointer;
    user-select: none;
}

.system ul.tab-links > li:hover {
    background: #eee;
}

.system ul.tab-links > li.active {
    background: #fff;
}

.system .tabs {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    border-bottom: solid 1px #d8d8d8;
}

.floated .floated-footer {
    background: #888;
    padding: 5px 10px;
}

.system .tabs .footer {
    background: #f8f8f8;
    padding: 5px 15px;
}

.system.compact .tabs .footer {
    border-top: solid 1px #eee;
}

.floated button,
.system button {
    padding: 5px 13px;
    padding-top: 6px;
}

.system .tab {
    padding: 15px 15px;
    background: #fff;
    display: none;
    flex: 1 0 0;
}

.system .tab.active {
    display: block;
}

.system.compact .tab {
    display: none;
}

input[type=text], textarea, select {
    border: solid 1px #ccc;
    font-size: 16px;
    padding: 5px;
    width: 100%;
}

.floated input[type=text], .floated textarea, .floated select {
    background: #333;
    border: solid 1px #555;
    color: #eee;
    font-size: 14px;
}

.floated input[type=text]::-webkit-input-placeholder {
    font: inherit;
    color: #888;
}

.system input[type=text]::-webkit-input-placeholder {
    font: inherit;
    color: #ccc;
}

.system .lang {
    width: 60px;
    text-align: center;
    padding-top: 4px;
}

.system hr {
    margin: .5em 0;
    border: none;
    border-top: solid 1px #ddd;
}

.floated .field {
    position: relative;
    margin-bottom: 3px;
}

.floated .field a.absolute {
    position: absolute;
    display: block;
    right: 6px;
    top: 0;
    color: #66ccf5;
    font-family: monospace;
    font-size: 14px;
    text-decoration: underline;
}

.floated .field a.absolute:hover {
    text-decoration: none;
}

.system .field {
    margin-bottom: 5px;
}

.floated .field.row,
.system .field.row {
    display: flex;
}

.absolute {
    position: absolute;
}

.system .code {
    font-family: monospace;
    width: 450px;
    height: 100%;
    resize: none;
    font-size: 12px;
    white-space: pre;
    overflow-x: auto;
}

.upload-form,
.upload-box {
    display: none;
}

.system .files {
    font-size: 14px;
    line-height: 16px;
    font-family: arial;
    overflow-y: auto;
    user-select: none;
}

.system .translations .controls {
    margin-top: 10px;
}

.system .translations a {
    font-family: monospace;
    font-size: 14px;
    font-weight: normal;
}

.system .translations a:hover {
    text-decoration: underline;
}

.system .translations a.current {
    color: #6ca76c;
    text-decoration: none;
}

.system .files a {
    display: block;
    position: relative;
}

.system .files a.file {
    padding-left: 4px;
}

.system .files a.dir.off {
    color: #888888;
}

.system .files a.dir.selected,
.system .files a.file.selected {
    background-color: rgba(255, 140, 0, 0.5);
}

.system .files a.dir:before {
    display: inline;
    content: "[+]";
    font-family: monospace;
    font-size: 13px;
    padding-right: 4px;
}

.system .files input.rename {
    font-size: 14px;
    line-height: 16px;
    font-family: arial;
    padding: 0 3px;
    margin: 1px;
    padding-bottom: 2px;
}

.system .files a.dir.on:before,
.system .files a.dir.off:before {
    content: "[-]";
}

.system .files a:hover {
    background-color: #eee;    
}

.system .files a.off {
    background-color: inherit;
}

.system .files ul.dir {
    position: relative;
    padding-left: 15px;
    display: none;
}

.system .files ul.dir:before {
    position: absolute;
    display: block;
    content: "";
    left: 10px;
    top: 0;
    bottom: 7px;
    width: 0px;
    border-left: dotted 1px #888;
}

.system .files ul.dir.on {
    display: block;
}

.system .files ul.dir > li {
    position: relative;
}

.system .files ul.dir > li:before {
    position: absolute;
    display: block;
    content: "";
    left: -4px;
    width: 5px;
    top: 9px;
    bottom: 7px;
    height: 0px;
    border-top: dotted 1px #888;
}

.system .context-menu {
    position: fixed;
    display: none;
    font-size: 14px;
    font-family: arial;
    line-height: 16px;
    background: white;
    border: solid 1px #eee;
    z-index: 5000;
}

.system .context-menu.on {
    display: block;
}

.system .context-menu > li {
    padding: 6px 10px;
    user-select: none;
}

.system .context-menu > li:hover {
    background: #f5f5f5;
}
