* {
    outline: none;
}

body {
    color: #212121;
    margin: 0;
    min-height: 100vh;
    font-family: Roboto, sans-serif;
    text-rendering: optimizeLegibility;
    background: #fafafa;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

table {
    border-collapse: collapse;
    margin: 16px 0;
    width: 100%;
}

td {
    padding: 4px;
}

tr:first-child td {
    padding-top: 0;
}

tr:last-child td {
    padding-bottom: 0;
}

td:first-child {
    padding-left: 0;
}

.form td:first-child {
    width: 128px;
}

td:last-child {
    padding-right: 0;
}

pre {
    display: inline;
}

a {
    color: #2196f3;
    text-decoration: none;
}

a img {
    border: none;
}

a.inline:hover {
    text-decoration: underline;
}

.menu {
    background: #212121;
    width: 256px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    color: #fff;
    overflow-y: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    transition: 0.3s left;
}

header {
    text-align: center;
    border-bottom: 1px solid #424242;
    flex: none;
}

header img {
    display: block;
    padding: 32px 40px;
    width: 100%;
    height: 96px;
    box-sizing: border-box;
}

nav {
            flex: 1 0 auto;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 16px 0;
}

nav ul li {
    -webkit-transition: 0.3s background-color;
    transition: 0.3s background-color;
}

nav ul li:hover {
    background: #424242;
}

.active {
    box-shadow: 8px 0 #2196f3 inset;
}

nav ul li a {
    display: block;
    line-height: 48px;
    padding: 0 24px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

h1, h2, h3, h4, h5, h6 {
    color: #2196f3;
    font-weight: normal;
}

h1 {
    font-size: 40px;
    line-height: 96px;
    margin: 0;
    color: #fff;
    background: #2196f3;
    padding: 0 64px;
    position: fixed;
    top: 0;
    right: 0;
    left: 256px;
    z-index: 3;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: 0.3s left, 0.3s right;
}

h2 {
    font-size: 32px;
    margin: 32px 0 24px 0;
}

h3 {
    font-size: 24px;
    margin: 24px 0 16px 0;
}

.main {
    padding: 96px 0 0 256px;
    overflow: hidden;
    position: relative;
    transition: 0.3s left, 0.3s padding-left;
    left: 0;
}

.block {
    border-bottom: 1px solid rgba(0,0,0,0.12);
    margin: 64px 64px;
    padding-bottom: 64px;
}

.block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.helix {
    
    vertical-align: middle;
    margin: 4px 0;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset;
}

input.helix {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    font-family: Roboto, sans-serif;
    box-sizing: border-box;
    font-size: 16px;
}

input.helix.text {
    background: #fff;
    border: 1px #e0e0e0 solid;
    box-sizing: border-box;
    padding: 8px;
    color: #212121;
    height: 40px;
    width: 100%;
    max-width: 256px;
}

.helix.file {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.helix.file_label {
    padding: 10px 16px;
    background: #2196f3;
    box-sizing: border-box;
    display: inline-block;
    line-height: 20px;
    /*! margin-right: 8px; */
    color: #fff;
    cursor: pointer;
    -webkit-transition: 0.3s background-color;
    transition: 0.3s background-color;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
}

.helix.file_label:hover {
    background: #1976d2;
}

button.helix, a.button {
    font-family: Roboto, sans-serif;
    display: inline-block;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 20px;
    padding: 10px 16px;
    background: #2196f3;
    color: #fff;
    border: 0;
    cursor: pointer;
    -webkit-transition: 0.3s background-color;
    transition: 0.3s background-color;
    margin-right: 8px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0
}

button .fa, .button .fa, .file_label .fa{
    width: 1em;
    text-align: center;
    margin-right: 8px;
}

.move {
    padding: 0 !important;
    margin: 4px !important;
    width: 40px;
    text-align: center;
}

.move i {
    margin: 0 !important;
}

a.button {
    height: auto;
    padding: 0 16px;
    line-height: 40px;
    margin: 4px;
}

td.right {
    padding: 12px !important;
} 

button.helix:last-child {
    margin-right: 0;
}

button.helix:hover, a.button:hover {
    background: #1976d2;
}

.helix.delete, a.button.delete {
    background: #f44336;
}

.helix.delete {
    text-align: left;
}

.helix.delete:hover, a.button.delete:hover {
    background: #d32f2f;
}

.helix:disabled, a.button:disabled,
.helix[disabled], a.button[disabled],
input[type="button"]:disabled, .disabled,
.helix:disabled:hover, a.button:disabled:hover,
.helix[disabled]:hover, a.button[disabled]:hover,
input[type="button"]:disabled:hover, .disabled:hover {
    background-color: #9e9e9e !important;
    cursor: default;
}

.helix.checkbox {
	display: none;
}

.helix.checkbox + label {
        box-sizing: border-box;
	background-color: #fff;
	border: 1px solid #e0e0e0;
	width: 24px;
        height: 24px;
	display: inline-block;
	position: relative;
        vertical-align: middle;
}

.helix.checkbox:checked + label:after {
	content: '\2714';
	font-size: 16px;
        line-height: 24px;
        width: 24px;
        text-align: center;
	position: absolute;
	top: 0;
	left: 0;
	color: #2196f3;
}

textarea.helix {
    max-width: 100%;
    width: 320px;
    background: #fff;
    border: 1px #e0e0e0 solid;
    padding: 8px;
    color: #212121;
    font-size: 16px;
    font-family: Roboto, sans-serif;
}

select.helix {
    background: #fff;
    font-size: 16px;
    height: 40px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    width: 100%;
    max-width: 256px;
}

.small {
    width: auto !important;
}

.m_top_16 {
    margin-top: 16px;
}

.w_100 {
    width: 100%;
}

.anchor {
    position: relative;
    top: -128px;
    visibility: hidden;
}

.date {
    color: #9e9e9e;
}

.list {
    width: 100%;
    margin: 16px 0 0 0;
}

.list tr:last-child td, .list tr:first-child td {
    padding: 16px;
}

.list td {
    padding: 16px;
}

.list tr {
    border-bottom: 1px solid #e0e0e0;
    -webkit-transition: 0.3s background-color;
    transition: 0.3s background-color;
}

.list tr:last-child {
    border-bottom: none;
}

.list tr:hover {
    background: #eee;
}

.right {
    text-align: right;
}

.toggle_list {
    width: 32px;
    padding: 8px 0;
    text-align: center;
    margin: 0 0 0 -8px
}

.admin_list {
    margin: 0 0 -4px 0;
    padding:0;
    list-style-type: none;
}

.admin_list ul {
    padding: 0 0 0 40px;
    border-left: 1px dotted #e0e0e0;
}

.admin_list li {
    border: 1px solid #e0e0e0;
    -webkit-transition: 0.3s background-color;
    transition: 0.3s background-color;
    padding: 16px;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    background: #fff;
}

.admin_list li:hover {
    background: #eee;
}

.flex_left {
    flex: 1 1 auto;
    padding: 0 16px 0 0;
}

.flex_right {
    flex: none;
    text-align: right;
    margin: -4px;
}

.list_subpages {
    display: none;
}

.current_img {
    width: 256px;
    display: block;
    margin: 4px 0;
}

.photo_thumbnail {
    display: inline-block;
    margin: 0 16px 16px 0;
    max-width: 256px;
}

.photo_thumbnail img {
    display: block;
}

.photo_thumbnail a.button {
    width: 100%;
    text-align: center;
    margin: 0;
    display: block;
}

.message {
    min-height: 40px;
    background: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 16px 0;
}

.message.red span {
    border-width: 1px 1px 1px 0;
    border-style: solid;
    border-color: #ef9a9a;
    background: #ffebee;
    display: block;
}

.message.green span {
    border-width: 1px 1px 1px 0;
    border-style: solid;
    border-color: #a5d6a7;
    background: #e8f5e9;
    display: block;
}

.message.blue span {
    border-width: 1px 1px 1px 0;
    border-style: solid;
    border-color: #90caf9;
    background: #e3f2fd;
    display: block;
}

.icon {
    color: #fff;
    font-size: 24px;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 40px;
            flex: 0 0 40px;
    -ms-flex-item-align: stretch;
        align-self: stretch;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.icon.red {
    background: #f44336;
}

.icon.green {
    background: #4caf50;
}

.icon.blue {
    background: #2196f3;
}

.message span {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    padding: 9px 16px;
    line-height: 20px;
}

.developer
{
    border-top: 1px solid #424242;
    text-align: center;
    padding: 24px 16px;
    color: rgba(255,255,255,0.5);
    font-family: Arial, Helvetica, Sans Serif;
    box-sizing: border-box;
    flex: none;
}

.developer_logo {
    display: inline-block;
    margin-bottom: 8px;
}

.developer img
{
    margin: auto;
    width: 64px;
}

.developer a
{
    color: rgba(255,255,255,0.5);
    -webkit-transition: 0.3s color;
    transition: 0.3s color;
}

.developer a:hover
{
    color: rgba(255,255,255,1);
    text-decoration: none;
}

.login_container {
    flex: none;
    width: 320px;
    max-width: 100%;
}

.login_container header {
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

.login_form {
    margin: 24px;
}

.login_form input, .login_form table {
    width: 100%;
}

.login_container .developer {
    border-top: 1px solid rgba(0,0,0,0.12);
    color: #bdbdbd;
}

.login_container .developer a
{
    color: #bdbdbd;
    -webkit-transition: 0.3s color;
    transition: 0.3s color;
}

.login_container .developer a:hover
{
    color: #9e9e9e;
    text-decoration: none;
}

.flex_container_wrapper {
    display: flex;
    flex-direction: column;
}

.flex_container {
    padding: 16px;
    background: #eee;
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    z-index: 2;
    display: none;
    transition: 0.3s left, 0.3s right;
}

.toggle_menu {
    background: #2196F3;
    border-right: 1px solid #64b5f6;
    line-height: 56px;
    width: 56px;
    font-size: 24px;
    position: fixed;
    left: 256px;
    color: #fff;
    text-align: center;
    top: 0;
    z-index: 10;
    visibility: hidden;
    cursor: pointer;
    -webkit-transition: 0.3s background-color, 0.3s left;
    transition: 0.3s background-color, 0.3s left;
}

.toggle_menu:hover {
    background: #1976D2;
}

@media only screen and (max-width: 1023px)
{
    .collapsable {
        padding: 0 !important;
        margin: 4px !important;
        width: 40px;
        text-align: center;
    }
    
    .collapsable i {
        margin: 0 !important;
    }
    
    .collapsable span {
        display: none;
    }
    
    .photo_thumbnail .collapsable {
        padding: 0 !important;
        margin: 0 !important;
        width: 50% !important;
        display: inline-block !important;
        text-align: center;
    }
    
    .photo_thumbnail img {
        width: 100px;
    }
    
    .flex_right {
        flex: 0 0 96px;
    }
}

@media only screen and (max-width: 768px)
{
    .menu {
        left: -256px;
    }
    
    .toggle_menu {
        visibility: visible;
        left: 0;
    }
    
    h1 {
        left: 0;
        height: 56px;
        line-height: 56px;
        font-size: 24px;
        padding: 0 16px 0 72px;
    }
    
    h2 {
        font-size: 20px;
        margin: 24px 0 16px 0;
    }
    
    h3 {
       font-size: 16px;
       margin: 24px 0 16px 0;
    }
    
    .main {
        padding: 56px 0 0 0;
    }
    
    .block {
        margin: 16px;
        padding-bottom: 24px;
    }
    
    .block:last-child {
        padding-bottom: 0;
    }
    
    .admin_list ul {
        padding: 0 0 0 24px;
    }
}

@media only screen and (max-width: 460px)
{
    .flex_right {
        flex: 0 0 48px;
    }
}

@media only screen and (max-width: 312px)
{
    .menu {
        max-width: calc(100vw - 56px);
    }
}