﻿html, body, form {
    height: 90vh;
    direction: rtl;
    padding: 0;
}

body {
    background-color: #4dc4db;
    font-family: Arial;
}

#contentWindow {
    background-color: white;
    height: 90%;
    width: 90%;
    margin: 1% auto;
    font-size: 0;
}


.table, .form .clientForm {
    max-height: 90%;
    width: 90%;
    margin: 2rem auto;
}

#captionBar {
    border-bottom: 2px solid #e4e4e4;
    height: 10%;
    background: #c6e5ea;
}

#logoDiv {
    width: 15%;
    height: 100%;
    display: inline-block;
    text-align: center;
}

    #logoDiv img {
        width: 100%;
        height: 100%;
        margin: 0;
    }

#otherCaptionDiv {
    display: inline-block;
    font-size: 2rem;
    vertical-align: top;
    line-height: 4rem;
    padding-right: 2%;
    width: 65%;
    height: 100%;
}

#reportingManagerHours {
    font-size: 1rem;
    /* position: absolute;*/
    top: 8%;
    width: auto;
}

#contentArea {
    height: 100%;
}

#menuDiv {
    overflow: auto;
    width: 15%;
    background-color: #00355c;
    height: 100%;
    display: inline-block;
    color: white;
    font-size: 1.3rem;
    vertical-align: top;
}

    #menuDiv a {
        margin: 0.5rem;
        display: block;
        text-decoration: none;
        color: white;
    }

        #menuDiv a:hover {
            background-color: white;
            color: #00355c;
        }

#contentDiv {
    background-color: #f8f8f8;
    display: inline-block;
    font-size: 1rem;
    width: 85%;
    height: 100%;
    vertical-align: top;
}

    #contentDiv img {
        vertical-align: middle;
    }

    #contentDiv select {
        width: 9rem;
        vertical-align: middle;
    }

.table table {
    width: 100%;
    margin: 0;
    padding: 0;
    margin-top: 1rem;
    background-color: white;
    cursor: default;
    color: #808080;
    border: none;
    border-collapse: collapse;
}

.table thead {
    width: calc( 100% - 1em )
}

.table tbody {
    max-height: 50vh;
    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: 1em;
}

td {
    border: none;
    padding: 1em;
}

input[type="button"], input[type="submit"] {
    background-color: #4898cf;
    color: white;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 0.2rem;
    border: none;
    margin-bottom: 3rem;
}


label, .label 
{
    display: inline-block;
    width: 8rem;
}

.checkBoxDropDownPopup label
{
    width: 100% ;
}

input[type="text"], input[type="password"], input[type="date"], input[type="email"], textarea, select, .checkBoxDropDownWithLabel, #formDiv .formColumn .error:valid {
    display: inline-block;
    width: 15rem;
    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 .formColumn .error:invalid {
    border-color: red;
}

#formDiv .formColumn label .textError, #formDiv label .textError {
    color: red;
    display: inline-block;
    padding-right: 3%;
}

#formDiv, .form {
    position: fixed;
    background-color: #f0f0ff;
    padding: 2rem;
    width: 24rem;
    height: auto;
    max-height: 30rem;
    overflow-y: auto;
    left: 50%;
    top: 20%;
    margin-left: -12rem;
    padding: 2rem;
}

/* טופס פרויקט — wide two-column layout for the statuses/tasks sub-grids.
   The class is set by the script ProjectsTable.GetFormAsync appends.
   Legacy admin/Project.aspx page styles. */
#formDiv.projectForm {
    width: 60%;
    right: 20%;
    left: auto;
    margin-left: 0;
    top: 5%;
    height: 77vh;
    max-height: 80vh;
    min-height: 75vh;
}

#formDiv fieldset {
    width: 44%;
    display: inline-block;
    vertical-align: top;
    font-size: 0.8rem;
    max-height: 50vh;
}

    #formDiv fieldset:nth-of-type(1), #formDiv fieldset:nth-of-type(2) {
        min-height: 13.3rem;
    }

    #formDiv fieldset input[type="button"] {
        margin: 0;
        width: auto;
    }

    #formDiv fieldset .table {
        height: auto;
        width: 100%;
        margin: 0;
    }

        #formDiv fieldset .table tbody {
            height: 34vh;
        }

@media screen and (max-width: 900px) {
    #formDiv.projectForm {
        width: 100%;
        margin: 0;
        top: 0;
        right: 0;
    }

    #formDiv fieldset {
        width: 90%;
    }

        #formDiv fieldset:nth-of-type(1), #formDiv fieldset:nth-of-type(2) {
            min-height: 0;
        }

        #formDiv fieldset .table tbody {
            height: auto;
            max-height: 34vh;
        }
}

.clientForm {
    background-color: #f0f0ff;
    padding: 2rem;
    margin: 2rem;
}

.popupPanel {
    position: fixed;
    background-color: white;
    padding: 2rem;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    color: #19398a;
    width: 25rem;
    height: 5rem;
    left: 50%;
    top: 40%;
    margin-left: -8rem;
    margin-top: -4rem;
}

    .popupPanel input {
        font-size: 1.4rem;
        width: 4rem;
        height: 3rem;
        line-height: 3rem;
        font-size: 1.4rem;
        line-height: 1.4rem;
        margin: 0.3rem;
    }

.overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: 0.5;
    background-color: black;
}

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: 10rem;
    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;
        }

#importDiv {
    top: 10%;
    width: 300px;
    height: 320px;
    background-color: white;
    left: calc(50% - 150px);
    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;
        }

.formColumn {
    width: 48%;
    display: inline-block;
}

.checkBoxDropDownPopup {
    width: 350px;
    height: 300px;
    background-color: white;
    position: absolute;
    overflow: auto;
    z-index: 300;
}

#formDiv .checkBoxDropDownPopup input[type="button"]
{
    width: 48%;
    margin: 1%;
    padding: 0;
    font-size: 1rem;
    height: 1.2rem;
}

    .checkBoxDropDownPopup input[type="checkbox"] {
        margin: 0 1em;
    }

    .checkBoxDropDownPopup label {
        display: inline;
    }

.summaryLine {
    font-weight: bold;
    margin-top: 0.7rem;
}

.withSummary table:first-of-type tbody {
    max-height: 40vh;
}

.withSummary table:last-of-type tbody {
    max-height: 18vh;
}

@media print {
    #menuDiv, #logoDiv, #captionBar, .toolbar, 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: 13rem;
    }
