﻿body {
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

input, textarea {
    padding: 2px 7px;
    color: black;
}

input, textarea {
    font-size: 1em;
    padding: 0.15em 0.5em;
}

input:hover {
    border-color: gray;
}

button, .button {
    background-color: #475AEF;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    padding: 16px;
    border: none;
    width: 100%;
}
button:hover, .button:hover{
    background-color:#6070ed;
}
.mb button {
    padding: 1em;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    -ms-border-radius: 4px;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    -ms-border-radius: 4px;
    border-radius: 4px;
    background: #7f7f7f;
}

.loading::after {
    content: url(/imgs/spinner.gif);
}

.centered {
    display: block;
    margin: calc(30vh - 1em) auto;
    text-align: center;
}

@-webkit-keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 0.35;
    }
}

@-moz-keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 0.35;
    }
}

@-o-keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 0.35;
    }
}

@keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 0.35;
    }
}

.shadow {
    -ms-opacity: 0.35;
    opacity: 0.35;
    background-color: black !important;
    -webkit-animation: fadeInFromNone 0.1s ease-in-out;
    -moz-animation: fadeInFromNone 0.1s ease-in-out;
    -o-animation: fadeInFromNone 0.1s ease-in-out;
    animation: fadeInFromNone 0.1s ease-in-out;
}

.validation-mess {
    color: red;
    font-size: 0.8em;
    padding-left: 1.6em;
}

.grid-header {
    border-top: 1px solid lightgray;
    border-bottom: 1px solid lightgray;
    font-style: italic;
    background-color: white;
}

.grid-record {
    /*border-bottom: 1px dotted lightgray;*/
}

.grid-record:nth-child(even):not(.selected) {
    background-color: #f8f8f8;
}

.grid-record:hover:not(.selected) {
    background-color: lightcyan;
}

.selected {
    background-color: lightblue;
}

.dialog {
    border: none;
    border-radius: 24px;
    background-color: white;
    padding: 16px 16px 10px 16px;
    text-align: center;
    width: 351px;
}
popup .dialog{
    width: 250px;
    border-radius: 6px;
}
.wf>div {
    margin-top: 20px;
}
input, .control, datepicker, dropdown, checked-list, textarea {
    display: inline-block;
    user-select: none;
    border: none;
}

input:hover, .control:hover, datepicker:hover, dropdown:hover, checked-list:hover, textarea:hover {
    border-color: gray;
}

a {
    text-decoration: none;
}

popup a {
    display: block;
    padding: 0.5em 1.5em;
}

popup .delim {
    border-top: 1px solid lightgray;
}

.title {
}

.title>div {
    /*white-space: nowrap;*/
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 20px;
    font-weight: 600;
}

.changed {
    /*background-color: bisque;*/
}

.invalid {
    border-color: red;
}

.dialog > .content {
    font-size: 16px;
    font-weight: 600;
}
.dialog button {
    margin-top: 10px;
    width: 100%;
}
.dialog button:not(.first){
    background-color: transparent;
    color: #475aef;
    font-weight: 600;
    box-shadow: none;
}
.dialog button:not(.first):hover{
    color: #6070ed;
}
.dialog label {
    display: block;
    color: #7f7f7f;
    font-weight: 400;
}

.close, .minimize {
    border: 1px solid transparent;
    -ms-border-radius: 2em;
    border-radius: 2em;
    padding: 0.1em 0.5em;
}

.close:hover, .minimize:hover {
    background-color: lightgray;
}

.close > span:after {
    content: 'x';
}

.minimize > span:after {
    content: '_';
}

.selected {
    background-color: lightgray;
    color: black;
    font-weight: bold;
}

popup grid {
    font-size: 0.9em;
}


.header {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    height: 52px;
    border-bottom: 1px solid #dadada;
    background-color: white;
}
.header a {
    margin: 16px;
    display: inline-block;
}
.header a:hover {
    color: #404040;
}
.header img {
    height: 16px;
    margin-right: 8px;
}
.header>div>img{
    height: 32px;
    float: left;
    margin: 10px;
}
.header>div:nth-child(2) {
    flex-grow: 1;
    text-align: center;
}
.header label {
    font-size: 14px;
    position: relative;
    top: 3px;
    color: #7f7f7f;
}
.header>div:first-child {
    width: 170px;
}
.mb.menu {
    position: absolute;
    width: 280px;
    height: 100%;
    transition: left 0.2s;
    background-color: white;
    display: flex;
    flex-direction: column;
}
.mb.header>div>a {
    margin: 16px 8px;
}
.mb.menu a>img {
    height: 16px;
}
.mb.menu a {
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin: 16px;
}
.mb.menu a>img{
    margin-right: 8px;
    position: relative;
    top: 3px;
}
.mb.menu>div:nth-child(2){
    flex-grow: 1;
}

.cb.dt {
    background-color: #f1f1f1;
    border-radius: 24px;
    border: none;
    width: 383px;
    padding: 16px;
    margin: calc(50vh - 244px) 0 0 calc(30vw - 190px);
    position: absolute;
}
.cb h1, .cnt h1 {
    font-size: 20px;
}
.cb>input, .cb>textarea, .cb>dropdown {
    width: 100%;
    border-radius: 8px;
    padding: 16px;
    margin: 8px 0;
    font-size: 16px;
}
.cb > dropdown{
    background-color: white;
    height: 50px;
    color: gray;
    padding: 14px 6px;
}
.cb.dt > a {
  float: right;
}
.cb textarea{
    height: 7em;
}
.cb.mb, .cnt.mb, .ndc.mb, .ld.mb {
    background-color: #f1f1f1;
    padding: 12px;
    margin: 0 auto;
    overflow-y: auto;
    width: 370px;
    overflow-x: hidden;
    height: calc(var(--vh, 1vh) * 100 - 55px);
}
.cb.mb > a, .cnt.mb > a, .dc.mb > a, .ndc.mb > a, .ld.mb > a {
    float: left;
    background-color: white;
    border-radius: 1em;
    width: 32px;
    text-align: center;
    margin-right: 12px;
    height: 32px;
}
.dc.mb > a {
    margin-top: 12px;
}
.cb.mb > a > img, .cnt.mb > a > img, .dc.mb > a > img, .ndc.mb > a > img, .ld.mb > a > img {
    height: 12px;
    margin-top: 10px;
}
.cnt > div {
    background: white;
    box-shadow: 0px 1px 0px #DADADA;
    border-radius: 8px;
    margin: 12px auto;
    padding:10px;
    font-size: 14px;
}
.cnt.dt{
    width:720px;
    margin: 10px auto;
    overflow:auto;
    height: calc(100vh - 75px);
}
.cnt.dt>div{

}
.cnt label{
    font-weight: 600;
    display: inline-block;
    width: 50%;
    vertical-align: top;
    padding-right: 25px;
}
.cnt>div>div{
    padding: 8px 4px;
}
.cnt>div>img{
    width:100%;
}
.cnt span{
    display: inline-block;
    width: 50%;
}
.cs h1{
    font-size:20px;
    font-weight: 600;
    text-align: center;
}
.cs h2, .empty h2 {
    font-size: 14px;
    color: #7f7f7f;
    text-align: center;
    font-weight: 400;
}
.cs .filter>button {
    width: 50%;
    padding:10px;
    font-size: 14px;
    margin: 24px 0 10px 0;
    border-radius: 8px;
}
.cs {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 12px;
}
.cs .dclist {
    flex-grow: 1;
    overflow: auto;
    height: 1vh;
    margin-right: -20px;
    padding-right: 10px;
    margin-bottom: 10px;
}
.cs .filter>button:not(.sel) {
    background-color: white;
    color: #7f7f7f;
}
.empty > img {
    background-color: white;
    padding: 15px;
    box-shadow: 0px 1px 0px #dadada;
    border-radius: 16px;
    margin: 16vh auto 16px auto;
    display: block;
}
.empty {
    padding: 0 10px;
}
.empty>h1 {
    font-size: 16px;
    font-weight: 600;
}
.cs .dclist>div:not(.empty) {
    display: block;
    background-color: white;
    box-shadow: 0px 1px 0px #DADADA;
    border-radius: 12px;
    margin: 12px 0;
    padding: 8px 12px;
    font-size: 14px;
    color: black;
    border: 1px solid transparent;
}
.cs .dclist .number {
    font-size: 16px;
    font-weight: 600;
}
.cs .dclist .date {
    color: #7f7f7f;
    display: block;
}
.cs .dclist .place {
    display: block;
    margin: 8px 0;
}
.cs .dclist .state {
    float: right;
    display: inline-block;
    border-radius: 16px;
    padding: 2px 12px;
}
.cs a.button, .empty a.button {
    border-radius: 32px;
    text-align: center;
}
.cs .dclist a {
    float: right;
    border: 1px solid #BDBDBD;
    border-radius: 4px;
    padding: 2px 8px;
}
.cs .dclist a:hover{
    background-color: white;
}
.cs .dclist .st0 {
    background-color: #f1f1f1;
    color: #7f7f7f;
}
.cs .dclist .st1 {
    background-color: #f9f3ed;
    color: #ff0101;
}
.cs .dclist .st2 {
    background-color: #ff8a00;
    color: #ff0101;
}
.cs .dclist .st3 {
    background-color: #f9f3ed;
    color: #ff0101;
}
.cs .dclist .st4 {
    background-color: #e3f2e8;
    color: #009026;
}
.cs .dclist .st5 {
    background-color: #f1f1f1;
    color: #7f7f7f;
}
.header+div{
    display: flex;
    flex-grow: 1;
}
.mb.header + div {
    flex-direction: column;
}
dropdown .dialog {
    border-radius: 4px;
    box-shadow: 0px 1px 0px #DADADA;
    border: 1px solid #e4e4e4;
}
claims {
    width: 364px;
    background-color: #f1f1f1;
    margin: 0 auto;
}
.cs.dt .dclist {
    margin-right: -5px;
}
claims + div {
    flex-grow: 25000;
}
.dt.empty {
    padding: 64px 120px;
    width: 720px;
    margin: calc(50vh - 150px) auto 0 auto;
    background: #FFFFFF;
    box-shadow: 0px 1px 0px #DADADA;
    border-radius: 12px;
    text-align: center;
}
.dt.empty a.button{
    display: inline-block;
    width: 351px;
    margin: 24px auto 0 auto;
}
.cs.dt .dclist > div.sel {
    border-color: #475AEF;
    background-color: #E7EAF9;
}
.cs.dt .dclist > div {
    cursor: pointer;
}
.dc {
    margin: 5px;
    overflow-y: auto;
    height: calc(100vh - 80px);
}
.ld {
    margin: 5px;
    overflow-y: auto;
}
.dc > h1, .ndc > h1 {
    width: 720px;
    font-size: 20px;
    font-weight: 600;
    margin: 14px auto;
}
.ld > h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 14px auto;
}
.dc.mb > h1, .ndc.mb > h1, .ld.mb > h1 {
    margin: auto;
    width: 350px;
}
.dc > h2 {
    width: 720px;
    font-size: 18px;
    font-weight: 600;
    margin: 14px auto;
}
.ld > h2 {
    font-size: 14px;
}
.dc.mb > h2, .ld.mb > h2 {
    width: 200px;
    margin-left: 45px;
}
.dc > div, .ld.dt .doci>div {
    width: 720px;
    background: #FFFFFF;
    box-shadow: 0px 1px 0px #DADADA;
    border-radius: 8px;
    font-size: 14px;
    margin: 0 auto;
}
.ld.dt .doci > div {
    margin: 4px;
    width: 540px;
}
.dc.mb > div, .ld.mb > div {
    width: 350px;
    margin: 0 auto 8px auto;
}
.ndc.mb > div, .ld.mb > div {
    padding: 12px 0 8px 12px;
    width: 351px;
    margin: 12px auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0px 1px 0px #dadada;
}
.ndc.mb > div > h2 {
    font-size: 18px;
    font-weight: 600;
}
.ndc.mb > div > h3 {
    font-size: 14px;
    font-weight: 400;
    color: #7f7f7f;
}
.dc > div > div:not(:first-child) {
    border-top: 1px solid #f1f1f1;
}
.dc label {
    display: inline-block;
    width: 225px;
    margin: 12px 0 10px 20px;
    font-weight: 600;
    flex-grow: 1;
}
.dc .ndoc label {
    width: 145px;
    cursor: pointer;
}
.dc.mb > div > div {
    padding: 15px 0;
}
.dc.mb label {
    width: 115px;
    margin: 0 15px;
    vertical-align: top;
}
.dc > div.doci {
    margin-bottom: 12px;
    cursor: pointer;
}
.doci > div {
    display: flex;
    /*padding: 8px 0;*/
}
.doci {
    border: 1px solid transparent;
    clear: both;
}
.doci:hover {
    border-color: #475aef;
}
.doci label{
    cursor: pointer;
    flex-grow: 1;
}
.doci span {
    display: inline-block;
    border-radius: 4px;
    background-color: #ededed;
    padding: 2px 6px;
    margin: 8px auto;
}
.doci span+img { 
    transform: rotate(180deg);
    width: 16px;
    margin: auto 16px;
    height: 24px;
}
.doci.err{
    border-color: red;
}
.dc > div.docs, .ld.mb > div.docs, .home.docs {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    width: 562px;
    transition: right 0.2s;
    transition: left 0.2s;
    background-color: #f1f1f1;
    padding-bottom: 10px;
}
.home.docs {
    width: 688px;
    overflow: auto;
}
.ld.mb > div.docs {
    top: 40px;
    padding: 0;
    width: 380px;
}
.dc.mb > div.docs > div {
    padding: 0;
}
.docs.mb > div:first-child {
    /*background-color: white;*/
    margin: -15px 0 -30px 0;
}
.home.docs>div:first-child {
    background-color: white;
    font-size: 16px;
    border-radius: 0;
    text-align: right;
    margin:0;
}
.home.docs>div:first-child>button {
    width: 175px;
    margin: 10px;
}
.home.docs>div:first-child>h1 {
    float: left;
}
.home.docs > div:first-child>*{
    display: inline-block;
    padding: 8px 17px;
}
.docs h1 {
    font-size: 20px;
    margin: 16px 0 0 4px;
}
.docs h2 {
    font-size: 14px;
    font-weight: 400;
    color: #7f7f7f;
    margin: 0 20px;
}
.docs > div > span {
    border-radius: 55px;
    background-color: white;
    margin: 16px;
    float: left;
    width: 32px;
    height: 32px;
    background-image: url('/img/ugr.png');
    background-repeat: no-repeat;
    background-position: center center;
    box-shadow: 0px 1px 0px #DADADA;
    background-size: 8px;
    cursor: pointer;
}
.docs>div+div {
    flex-grow: 1;
    padding: 5px;
    margin: 0 6px 8px 6px;
    overflow: auto;
}
.home.docs > div {
    background-color: white;
    box-shadow: 0px 1px 0px #DADADA;
    border-radius: 12px;
    margin: 12px 8px 0 10px;
    overflow: visible;
}
.docs img {
    width: 165px;
    max-height: 144px;
    border-radius: 8px;
    /*border: 1px solid black;*/
    margin: 2px 4px;
    /*box-shadow: 0px 1px 0px #DADADA;*/
}
.ndc.mb>div>div {
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    margin: 12px 12px 0 0;
}
.ndc.mb label {
    font-weight: 400;
    font-size: 14px;
    color: #151522;
    margin: 12px 0 0 12px;
    display: block;
}
.ndc.mb formfield {
    border: none;
    display: block;
    margin: 0 8px 12px 8px;
    font-weight: 600;
    font-size: 16px;
}
.dc.mb button, .ndc.mb button {
    border-radius: 32px;
    width: 350px;
    display: block;
    margin: auto;
}
.dc.mb > div.docs {
    width: 380px;
    top: 52px;
    margin-left: calc(50vw - 180px);
    height: calc(100% - 52px);
}
.ndoc {
    color: #475aef;
    font-size: 14px;
    text-align: center;
    border-radius: 12px;
    background-color: white;
    border: 1px dashed #475aef;
    display: inline-block;
    width: 172px;
    height: 144px;
    cursor: pointer;
    margin-left: 5px;
    overflow: hidden;
}
.ndoc>img {
    height: 15px;
    width: 15px;
    display: block;
    margin:  5px auto;
    border: none;
    border-radius: 0;
}
uploader > div.empty > img, uploader > div.empty > span, uploader > div.img .ins {
    display: none;
}
.docs uploader label {
    display: inline-block;
    padding-top: 5px;
}
.docs uploader label::before {
    width: 15px;
    height: 15px;
    content: '';
    display: block;
    margin: 10px auto;
    background-image: url('/img/clip.png');
    background-repeat: no-repeat;
    background-size: 15px 15px;
}
uploader .del>a {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background-image: url('/img/krb.png');
    background-repeat: no-repeat;
    background-size: 15px 15px;
    display: inline-block;
    background-size: 8px;
    background-position: center;
    background-color: white;
    opacity: 0.85;
}
uploader .img {
    display: flex;
}
uploader .del {
    position: relative;
    left: -50px;
    top: 10px;
}
.home.docs h2 {
    font-size: 18px;
    font-weight: 600;
    color: black;
}
.home.docs h3 {
    font-size: 14px;
    color: #7f7f7f;
    margin-left: 20px;
}
.home.docs>div>div {
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    display: inline-block;
    width: 310px;
    margin: 6px 12px 6px 0;
    padding: 6px 12px;
}
.home.docs formfield {
    display: block;
    font-weight: 600;
    font-size: 16px;
}
.home.docs label {
    font-size: 14px;
    color: #151522;
}
.home.docs a {
    color: #475aef;
    font-weight: 600;
}
.docs > div > a {
    /*float:left;*/
}
.ld.dt > label {
    color: red;
    padding: 10px 100px;
    margin: 0;
    width: 100%;
}
.ld.dt > button {
    width: 210px;
    float: right;
    margin: 5px;
}
.ld.dt > a {
    float: right;
    display: inline-block;
    margin: 20px 10px;
    color: #475AEF;
}
.ld.dt > h1 {
    display: inline-block;
    margin: 15px;
}
.ld.dt > h2 {
    clear: both;
}
.ld.mb>button {
    float: right;
    width: 110px;
}
.docs span.himg {
    width: 172px;
    height: 144px;
    background-image: none;
    padding: 15px;
    border-radius: 12px;
    margin: 2px;
}
.group-help {
  display: block;
  text-align: center;
  margin: 16px auto;
  color: #475aef;
  width: 290px;
}
img.qr{
    width: 300px;
    height: 300px;
}
h5.qr{
    color: gray;
    font-weight: normal;
}