﻿html, body, form 
{
    height: 90vh;
    direction: rtl;
    padding: 0;
    overflow: hidden;
}

body 
{
    background-color: #4dc4db;
    font-family: Arial;
}

form { font-size: 0 ;}

#contentWindow 
{
    background-color: white;
    height: 90%;
    width: 90%;
    margin: 5% auto;
    font-size: 0;    
}


.table, .form  .clientForm
{
    max-height: 90%;
    width: 90% ;
    margin: 2rem auto ;      
}

#captionBar 
{
        border-bottom: 2px solid #e4e4e4;
        height: 10%;
}

#logoDiv 
{
    background-color: #4898cf;
    width: 15%;
    height: 100%;
    display: inline-block;
    text-align: center;
}

#logoDiv img 
{
    width: 100%;
    height: 100%;
    margin: 0 ;
}

#otherCaptionDiv 
{
    display: inline-block;
}

#contentArea 
{
    height: 100%;
}

#menuDiv 
{
    width: 15%;
    background-color: #00355c;
    height: 100%;
    display: inline-block;
    color: white;
    font-size: 1.3rem;
    vertical-align: top;
}

#menuDiv a 
{
    height: 3rem;
    line-height: 3rem;
    margin: 0 2rem;
    display: block;
    text-decoration: none ;
    color: white ;
}

#contentDiv 
{
    background-color: #f8f8f8;
    display: inline-block;
    font-size: 1rem;
    width: 80%;
    height: 100%;
    vertical-align: top;
    overflow: auto ;
    padding: 1% ;
}

.table table {
    width: 100%;
    margin: 0;
    padding: 0;
    margin-top: 1rem;
    background-color: white;
    cursor: default;
    color: #808080;
    border: none;
    border-collapse: collapse;
    font-size: 0.9rem ;
}

.table thead 
{
    width: calc( 100% - 1em )
}

.table tbody 
{
    max-height: 48vh;
    display: block ;
    overflow: auto ;
}


.table tr 
{
    padding: 2rem 0;
    border-bottom: 2px solid #f8f8f8;
    display: table;
    table-layout: fixed;
    width: 100% ;
}

tbody tr:hover 
{
    background-color: #4b96cd;
    color: white;
}

th 
{
    color: #00355c ;
    font-weight: bold ;
    border: none ;
    padding: 0.7em ;
}

td
{
    border: none ;
    padding: 0.7em ;
}

input[type="button"], input[type="submit"] 
{
    background-color: #4898cf;
    color: white;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 0.2rem;
    border: none;
}

label, .label
{
    display: inline-block ;
    width: 8rem ;
}

input[type="text"], input[type="date"], input[type="email"], textarea, select
{
    display: inline-block;
    width: 10rem;
    font-size: 1.1rem;
    padding: 0.4rem;
    background-color: white;
    border: 1px solid #a8a8a8;
    border-radius: 0.2rem;
    margin-bottom: 0.2rem;
    box-sizing: border-box;
    vertical-align: middle;
}

#formDiv, .form, .clientForm 
{
    position: fixed;
    z-index: 100;
    background-color: #f0f0ff;
    padding: 2rem;
    width: 24rem;
    height: auto;
    left: 50%;
    top: 20%;
    margin-left: -12rem;
    padding: 2rem;
    
}

.popupPanel {
    position: fixed;
    z-index: 100;
    background-color: white;
    padding: 2rem;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    color: #19398a;
    width: 16rem;
    height: 8rem;
    left: 50%;
    top: 40%;
    margin-left: -8rem;
    margin-top: -4rem;
}

.popupPanel input
{
    margin: 1.5rem auto;
    font-size: 1.4rem;
    width: 8rem;
    height: 3rem;
    line-height: 3rem;
    display: block;
    margin: 1.5rem auto;    
    font-size: 1.4rem;
    line-height: 1.4rem ;
}

.overlay
{
    position: fixed ;
    left: 0;
    top: 0 ;
    right: 0;
    bottom: 0 ;
    opacity: 0.5 ;
    background-color: black;
    z-index: 2 ;
}

th { background-repeat: no-repeat; background-position: right;}
th.sort_asc  { background-image: url(../images/sort_asc.png);}
th.sort_desc { background-image: url(../images/sort_desc.png);}
th.sort_both { background-image: url(../images/sort_both.png);}

.table svg {vertical-align: middle;}

#toolbar
{
    position: absolute;
    top: 40px;
    width: 8rem ;
    background-color: #E0E0E0;
}

#toolbar div
{
    height: 2rem ;
    line-height: 2rem ;
    padding: 0.2rem;
    color: #707070;
    font-size: 1.2rem ;
    cursor: pointer;
}

#toolbar div:hover
{
    color: blue;
}


#uploadDiv {
    top: 10%;
    width: 380px;
    height: 380px;
    background-color: white;
    left: calc(50% - 190px);
    padding: 0;
}

.captionBar {
    background: white;
    text-align: right;
    font-size: 1.5rem;
    line-height: 1.5rem;
    height: 1.5rem;
    font-weight: normal;
    font-family: Arial, Verdana, sans-serif;
}

    .captionBar span {
        color: black;
        cursor: pointer;
        float: left;
        vertical-align: top;
        line-height: 1.5rem;
        display: inline-block;
        height: 1.5rem;
    }

        .captionBar span:hover {
            background: red;
            color: white;
        }






.pager 
{
    padding: 3px;
    direction: rtl;
    text-align: center;
}

    .pager span {
        display: inline-block;
        background-color: #4898cf;
        color: white;
        font-weight: bold;
        width: 4rem;
        font-size: 1.2em;
        cursor: pointer;
        border-radius: 0.2rem;
    }

.pager span:nth-child(3) {
    width: 8rem;
    background-color: white;
    cursor: default;
    color: black;
    direction: ltr;
}

.pager span input {
    width: 1.5rem;
    vertical-align: middle;
}



@media print {
    #menuDiv, #logoDiv, #captionBar, svg, .addButton {
        display: none;
    }

    .table thead {
        width: 100%;
    }

    .table tbody {
        max-height: initial;
        display: table-row-group;
        overflow: visible;
    }

    .table tr {
        display: table-row;
        table-layout: initial;
    }
}

.ImageField 
{
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 0.3rem ;
}

.ImageField, .ImageField img {
    width: 10rem;
}