
:root{
    --brd-color: #000;
    --brd-gray-a: rgba(51,51,51,1);
    --brd-lgray-a: rgba(80,80,80,1);
    --brd-apply-a: #8C8;
    --brd-danger-a: #EAA;
    --bg-black-a-color: #FFF;
    --shadow: 2px 2px 2px rgba(0,0,0,.25);
    --drop-hover-color: #484848;
    --drop-hover-color2: #34312e;
    --brd-figure: 10px solid transparent;
    --ln-grd-def: linear-gradient(328deg, rgba(194, 13, 44, 0.49), rgba(57, 40, 199, 0.541));
    --tab-a-sel-color: #ffe36a;
    --tab-a-sel-color2: #ceb236;
    --proj-st-blocked: #FEE;
    --proj-st-approved: #FFE;
    --proj-st-outdated: #EEE;
    --proj-st-beta: #EEF;
}

* {
    box-sizing: border-box;
}

body,html {
    padding: 0;
    margin: 0;
    font-family: "Source Sans Pro", "Open Sans", sans-serif;
    background: #e2e2e2 url(/imgs/bg.png) repeat fixed 0 0;
}

header {
    background: rgba(22,22,23,.8);
    color: #fff;
    cursor: default;
    line-height: 2em;
    padding: .5em 0;
    text-align: center;
    text-shadow: var(--shadow);
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9000;

    position: sticky;
    height: 80px;

    & > .left {
        float: left;
        margin-left: 20px;
        & img {
            height: 60px;
            filter: drop-shadow(var(--shadow))
        }
    }

    & > nav {
        padding: 10px;
        display: block;
        color: var(--bg-black-a-color);
        margin: 0 1em;
        transition: color .15s ease;

        & a {
            color: var(--bg-black-a-color);
            text-decoration: none;
            margin-right: 10px;

            &:hover, &.a-sel {
                color: var(--tab-a-sel-color);
            }
        }

        & #lang-butt {
            /*background: #000;*/
            border: none;
            position: relative;
            display: inline-block;
            padding: 0 10px;

            & #lang-dropdown {
                display: none;
            }

            &:hover #lang-dropdown {
                position: absolute;
                top: 100%;
                left: -63px;
                z-index: 9100;
                display: inline-block;

                &::after {
                    content: "";
                    display: block;
                    position: absolute;
                    border: 10px solid var(--brd-gray-a);
                    border-left: var(--brd-figure);
                    border-right: var(--brd-figure);
                    border-top: 0;
                    top: -10px;
                    left: 50%;
                    margin-left: -13px;
                }

                &::before {
                    content: "";
                    display: block;
                    position: absolute;
                    border: 10px solid var(--brd-color);
                    border-left: var(--brd-figure);
                    border-right: var(--brd-figure);
                    border-top: 0;
                    top: -10px;
                    left: 50%;
                    margin-left: -13px;
                }

                & > div {
                    width: 170px;
                    display: block;
                    margin-left: 0px;
                    border-radius: 4px;
                    border: 1px solid #333;
                    box-shadow: var(--shadow);
                    overflow: hidden;
                    background: var(--brd-gray-a);
                    backdrop-filter: saturate(180%) blur(6px);
                    text-align: left;

                    & a {
                        width: 100%;
                        display: block;
                        padding: 0 3em 0 1em;
                        font-size: 90%;
                        line-height: 2.5;
                        border-top: 1px solid hsla(0,0%,100%,.059);
                        border-bottom: 1px solid rgba(0,0,0,.07);
                        text-decoration: none;
                        color: var(--bg-black-a-color) !important;

                        &:hover {
                            border-bottom: 1px solid var(--drop-hover-color2);
                            border-top: 1px solid var(--drop-hover-color);
                            background-color: var(--drop-hover-color);
                            background-image: var(--ln-grd-def);
                        }

                        & img {
                            display: inline-block;
                            vertical-align: middle;
                            margin-right: 10px;
                            margin-top: -3px;
                            width: 16px;
                            height: 11px;
                            filter: drop-shadow(var(--shadow))
                        }

                        &.a-sel {
                            color: #888 !important;
                            & img {
                                color: #888 !important;
                                filter: brightness(0.5);
                            }
                        }

                        &:first-child { border-top: none }
                        &:last-child { border-bottom: none }

                    }
                }
            }
        }
    }
}

footer {
    height: 20px;
    margin-top: 10px;
    text-align: center;
    display: block;
    font-size: 10px;
}

main {
    padding: 0 20px;
    min-height: calc(100vh - 150px);
}

.two-cols {
    min-width: 500px;
    border: solid 1px black;
    border-collapse: collapse;
    margin-bottom: 10px;
    & td {
        padding: 10px;
        & input:not([type=button],[type=submit],[type=checkbox],[type=radio]) { width: 100%; }
    }
    & td:nth-child(1), & th {
        text-align: right;
    }
}

section {
    background: #fff;
    border: 1px solid rgba(192, 185, 196, .568);
    border-radius: 4px;
    box-shadow: rgba(28, 26, 40, .122) 0 4px 4px -2px;
    margin: 2em auto;
    width: 910px;
    padding: 2em;
    text-align: justify;
    color: #333;

    &.table {
        min-width: 910px;
        width: 100%;
    }
}

form em {
    color: red;
}

.errors {
    padding: 10px;

    & > div {
        background-color: rgb(255, 141, 141);
        color: rgb(126, 0, 0);
        border-radius: 10px;
        padding: 10px;
        margin: 10px;
    }
}

a.btn, input:where([type=button], [type=submit], [type=file]), button {

    font-size: 0.7em;
    background-color: #f2efef94;
    font-weight: normal;
    border-radius: 2px;
    box-shadow: inset 0 1px #fff;
    border: 1px solid #c0b9c4ba;
    outline: none;
    display: inline-block !important;
    margin: 2px 0;
    padding: 2px 9px;
    text-decoration: none;
    align-items: center;
    color: #464646;
    cursor: pointer;
    font-family: "Source Sans Pro", "Open Sans", sans-serif;

    &:hover, &.a-sel {
        background: #fdf4c9 !important;
        transition: background 1s ease;
    }

    &.danger {
        background-color: var(--brd-danger-a);
    }

    &.success {
        background-color: var(--brd-apply-a);
    }

    & img {
        max-height: 14px;
        vertical-align: middle;
    }
}

.avatar-full {
    float: right;
    display: block;
    margin: 5px;
    width: 220px;
    padding: 10px;

    & label {
        display: block;
        font-weight: bold;
        text-align: right;
    }

    & img {
        width: 200px;
        height: 200px;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        clip-path: circle(50%);
    }

    & .txt-avatar{
        border: 1px solid black;
        border-radius: 100px;
        text-align: center;
        display: inline-block;
        vertical-align: middle;
        font-weight: bold;
    }
}

.avatar, .avatar-mini{
    display:inline-block;
    vertical-align: middle;
    & img {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        clip-path: circle(50%);
        vertical-align: middle;
    }
    & .txt-avatar{
        border: 1px solid black;
        border-radius: 25px;
        text-align: center;
        padding: 5px;
        display: inline-block;
        vertical-align: middle;
        font-weight: bold;
    }
}

.avatar{
    & img {
        width: 100px;
        height: 100px;
    }
    & .txt-avatar {
        width: 90px;
        height: 90px;
        border-radius: 50px;
        margin-right: 10px;
        &>span{
            width: 80px;
            height: 70px;
            font-size: 40px;
            display: table-cell;
            vertical-align: middle;
        }
    }
    & a {
        display: inline-block;
        max-width: 140px;
    }
}

.avatar-mini {
    & img {
        width: 32px;
        height: 32px;
    }
    & .txt-avatar {
        width: 32px;
        height: 32px;
    }
}

div.center {
    text-align: center;
}

table.list {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    & tr {
        vertical-align: middle;

        & :where(td, th) {
            vertical-align: middle;
            padding: 1em;
            border-bottom: 1px solid #000;
        }

        & td {
            border-left: 1px dotted #999;
            &:nth-child(1) {
                border-left: none;
            }
        }
    }
}

table.projects {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;

    & .icon{
        text-align: center;
        & img { height: 32px }
    }

    & th{
        padding: 5px;
        border-bottom: 1px solid black;
    }

    & tbody tr:nth-child(even){
        background-color: #F8F8F8;
    }
}


.pages-menu{
    margin-top: 10px;
    text-align: right;
}

nav.tabs {
    display: block;
    & a {
        margin-right: 10px;
        text-decoration: none;
        color: blue;
        &.a-sel {
            font-weight: bold;
            color: var(--tab-a-sel-color2);
        }
    }
}

.lang-tabs {
    margin-top: 5px;
    display: block;
    user-select: none;

    & .tab-btns{
        user-select: none;
    }

    & label{
        display: inline-block;
        border: 1px solid black;
        padding: 5px;
        border-radius: 5px 5px 0 0;
        border-bottom: none;
        background-color: #EEE;
    }
    & .langpanel{
        display: none;
        border: 1px solid black;
        padding: 10px;
        border-radius: 0 10px 10px 10px;

        & .two-cols{
            border: none;
        }

        & > div:nth-child(1) {
            text-align: right;
        }
    }
    & :checked+.langpanel{
        display: block;
    }
}

span.beta {
    border: 1px solid #888;
    color: #888;
    font-size: 8px;
    font-weight: bold;
    border-radius: .25em;
    padding: .25em;
    vertical-align: middle;

    &.yellow{
        color: orange;
        border-color: orange;
    }

    &.red {
        color: red;
        border-color: red;
    }
}


.bread-crumbs img{
    max-height: 20px;
    vertical-align: middle;
}

.projects-breadcrumbs .bread-crumbs img{
    max-height: 12px;
}

.images-table div {
    display: inline-block;
    margin: 5px;
    text-align: center;
    & img {
        max-width: 300px;
        max-height: 200px;
    }
}

.log-change {
    border: 1px solid black;
    border-radius: 10px;
    padding: 10px;
    background-color: #F0F0F0;
}

.table-flex{
    display: inline-flex;
    width: 620px;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    align-content: flex-start;
    user-select: none;

    &.-col-3{
        width: 860px;
        &>div{
            width: 275px;
        }
    }

    &>div{
        border: 1px solid black;
        border-radius: 10px;
        padding: 10px;
        margin: 5px;
        width: 300px;

        & .caption{
            text-align: center;
            margin-bottom: 5px;
            & img {
                max-width: 32px;
                max-height: 32px;
                vertical-align: middle;
            }
            &+img{
                margin-bottom: 5px;
            }
        }
        & img.pic {
            max-width: 300px;
        }
        & .avatar-mini{
            & img, & .txt-avatar { vertical-align: top; }
            a { font-size: small; margin:0}
        }
    }
}

.proj-caption img{
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
}

.categories-tree {
    display: inline-block;
    width: 210px;
    vertical-align: top;
    & li {
        list-style: none;
    }
    &>ul{
        margin: 0;
        padding: 0;
    }
}

.projects-breadcrumbs{
    text-align: right;
    font-size: x-small;
    margin-bottom: 5px;
}

.check-panel-hide{
    display: none;
}
.check-view:checked+.check-panel-hide {
    display: unset;
}

.panel {
    border: solid 1px black;
    background-color: #f0f0f0;
    padding: 10px;
    margin: 5px;
}

.flag-act {
    border: gold 3px solid;
    vertical-align: middle;
}
