
.app.sqreem {
    height:100%;
    width:100%;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: 8mm auto;
    grid-template-areas: 
    "head" 
    "body";
    margin: 0px;
    overflow: auto;
}

div[xmlns\3Asqreem]:not([class]) { display: none }

.app.sqreem button {
    cursor: pointer
}

.app.sqreem button:focus,
.app.sqreem input:focus {
    outline: 0
}

.app.sqreem input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px whitesmoke inset;
}

.app.sqreem:before {
    content: '';
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/login_bg.jpg');
    transition: all 1s cubic-bezier(0.22, 0.61, 0.36, 1);
    visibility: hidden;
    z-index: 1000
}
.app.sqreem:not([auth=true]):before {
    opacity: 1;
    visibility: visible;
}

.app.sqreem > div[name=bar]{
    position: relative;
    display: grid;
    opacity: 1;
    grid-area: head;
    grid-template-columns: 10mm 20% auto;
    grid-template-rows: auto;
    grid-template-areas: "img label user";
    z-index: 999;
    background-color: #f4f4f4;
    box-shadow: 0px 1px 2px rgba(33,33,33,0.4);
    transition: all 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.app.sqreem:not([auth=true]) > div[name=bar] { opacity: 0; visibility: hidden }
.app.sqreem > div[name=bar] [name=appimg] {grid-area: img;align-self: center;justify-self: center;height: 65%;}
.app.sqreem > div[name=bar] [name=apptitle] {grid-area: label;justify-content: center;align-self: center;font-weight: bold;}

.app.sqreem > div[name=bar] button {
    background-color: transparent;
    border: none;
}

.app.sqreem > div[name=bar] .user {
    grid-area: user;
    position: relative;
    width: 50mm;
    height: 100%;
    padding: 0 4mm;
    justify-self: right;
    text-align: right;
}

.app.sqreem > div[name=bar] .user [name=userbtn] {
    height: 100%;
    max-width: 100%;
    text-align: right;
}

.app.sqreem > div[name=bar] .user [name=userbtn] > span {
    margin-left: 7mm;
    margin-right: 2mm;
    height: 100%;
}

.app.sqreem > div[name=bar] .user [name=userbtn] > img {
    position: absolute;
    top: 0;
    width: 4mm;
    margin: 2mm auto;
}

.app.sqreem>div[name=bar] .user [name=userbtn]:before {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.45);
    position: absolute;
    top: 50%;
    right: 0.1em;
    transform: translate(-50%, -50%) rotate(180deg);
}

.app.sqreem > div[name=bar] .user .useropt { display: none }
.app.sqreem.options>div[name=bar] .user .useropt {
    display: block;
    position: absolute;
    top: 9mm;
    right: 1mm;
    width: 50mm;
    padding-top: 2mm;
    border: 1px solid rgba(0, 0, 0, 0.29);
    border-radius: 4px;
    background-color: #f4f4f4;
    -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
    background-clip: padding-box;
}

.app.sqreem.options>div[name=bar] .user .useropt:after {
    content: '';
    display: inline-block;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #b9b9b9;
    /* box-shadow: 1px 1px 0 0 #919191; */
    position: absolute;
    top: -7px;
    right: 15px;
}

.app.sqreem.options>div[name=bar] .user .useropt > span {
    display: inline-block;
    font-size: 3.3mm;
    text-transform: uppercase;
    vertical-align: top;
    margin: 2.6mm 3mm;
}

.app.sqreem.options>div[name=bar] .user .useropt > label {
    display: inline-block;
    font-weight: 600;
    margin: 2mm 0;
    width: calc(100% - 25mm);
    white-space: nowrap;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
}

.app.sqreem.options>div[name=bar] .user .useropt button {
    width: 100%;
    padding: 2mm 4mm;
    padding-left: 7mm;
}

.app.sqreem.options>div[name=bar] .user .useropt button img {
    position: absolute;
    left: 5mm;
    width: 4mm;
}

.app.sqreem.options>div[name=bar] .user .useropt button:hover {
    background-color: #c2c2c2;
}

.app.sqreem.options>div[name=bar] .user .useropt button[name=logout] {
    border-top: 1px solid #bdbdbd;
    margin: 2mm 0;
}

.app.sqreem:not([auth=true]) > div[name=bar] { display: none }
.app.sqreem:not([auth=true]) > div[template=body]{ display: none }
.app.sqreem > .login.sq { display: none }

.app.sqreem > div[template=body] {
    grid-area: body;
    overflow: auto
}
.app.sqreem[auth=false] > .login.sq {
    display: grid;
    grid-area: body;
    align-self: center;
}

.app.sqreem .sq.modal[name=changepassmdl] [name=content] form> span {
    display: inline-block;
    width: 40mm;
}

.app.sqreem .sq.modal[name=changepassmdl] input {
    padding: 2mm;
    margin: 2mm;
}

/* hide report a bug option */
.app.sqreem .useropt [name=support] {
    display: none
}

@media(max-width: 400px){
    .app.sqreem:before {
        background-image: none !important;
        background-color: whitesmoke;
    }
}