﻿@font-face 
{
    font-family: 'NotoSansHebrew';
    src: url('/Style/fonts/NotoSansHebrew-VariableFont.ttf');
}

#adminScreen {
    height: 90vh;
    direction: rtl;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-family: 'NotoSansHebrew';
    direction: rtl;
    background-color: #ffffff;
}


    #contentWindow {
        background-color: white;
        height: 90%;
        width: 90%;
        margin: 5% auto;
        font-size: 0;
    }


        #contentWindow .table, #contentWindow .form, #contentWindow .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, #contentWindow 
{
    height: 100%;
}

#menuPanel 
{
    display: inline-block;
    width: 10%;
    color: black;
    background-color: #f1f1f1;
    font-size: 1rem;
    height: calc(100vh - 7rem);
    vertical-align: top;   
}

    #menuPanel a, #contentWindow #menuPanel input[type=button] 
    {
        display: block;
        color: black;
        font-size: 1rem;
        text-decoration: none;
        margin: auto;
        padding: 1rem 0;
        text-align: right;
        border: 0 ;
        border-bottom: 1px solid #005a9e;
        background-size: 1.5rem;
        background-repeat: no-repeat;
        background-position: right 1rem center;
        padding-right: 0.75rem;
        background-color: transparent ;
        width: 100% ;
        border-radius: 0 ;
    }

        #contentWindow #menuPanel input[type=button]:hover 
        {
            background-color: #33486b;
            color: white;
        }

        #mainPanel {
            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;
}

#contentWindow .table thead {
    width: calc( 100% - 1em )
}

#contentWindow .table tbody 
{
    max-height: 48vh;
    display: block ;
    overflow: auto ;
}

#contentWindow .table tr {
    padding: 2rem 0;
    border-bottom: 2px solid #f8f8f8;
    display: table;
    table-layout: fixed;
    width: 100%;
}

#contentWindow tbody tr:hover {
    background-color: #4b96cd;
    color: white;
}

#contentWindow th {
    color: #00355c;
    font-weight: bold;
    border: none;
    padding: 0.7em;
}

#contentWindow td {
    border: none;
    padding: 0.7em;
}
*/

/* Table Styles */
#mainPanel .table table {
                background-color: #ffffff;
                border: none;
                width: 100%;
                margin-top: 2rem;
                color: black;
                cursor: default;
                max-height: 70vh;
                overflow-y: auto;
            }

#mainPanel th {
    color: white;
    background-color: #a4aeb9;
    font-weight: bold;
}

#mainPanel td, #mainPanel th {
    text-align: right;
    border-bottom: 1px solid #dfe5e9;
    padding: 1rem;
}

    td img {
        height: 3rem;
    }

#contentWindow input[type="button"], #contentWindow input[type="submit"] 
{
    background-color: #4898cf;
    color: white;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 0.2rem;
    border: none;
}

#contentWindow label, #contentWindow  .label 
{
    display: inline-block;
    width: 8rem;
}

#contentWindow input[type="text"], #contentWindow input[type="date"], #contentWindow input[type="email"], #contentWindow textarea, #contentWindow 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, #contentWindow .form, #contentWindow .clientForm {
    position: fixed;
    z-index: 100;
    background-color: #f0f0ff;
    padding: 2rem;
    width: min(32rem, 92vw);
    height: auto;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

#contentWindow .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;
}

    #contentWindow .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;
}

#contentWindow .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;
}

    #contentWindow .captionBar span {
        color: black;
        cursor: pointer;
        float: left;
        vertical-align: top;
        line-height: 1.5rem;
        display: inline-block;
        height: 1.5rem;
    }

        #contentWindow .captionBar span:hover {
            background: red;
            color: white;
        }

#contentWindow .pager {
    padding: 3px;
    direction: rtl;
    text-align: center;
}

    #contentWindow .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 
{
    #menuPanel, #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;
    }