﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
    margin: 0px;
    width:100%;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 1200px) {
    /*.container {
        width: 100% !important;
    }*/
}
.no-padding {
    padding: 0 !important;
}


/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    _max-width: 280px;
    _max-width: 100%;
}

/* styles for validation helpers */
.field-validation-error {
    color: #b94a48;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}

/* Sortable Portlet Overides */
.column {
    width: 100% !important;
}

.portlet {
    margin: 0px !important;
}

@media print {
    .noprint {
        display: none;
    }
}

.ajax-update-fail {
    background-color: lightpink;
}

.ajax-update-success {
    background-color: lightgreen !important;
}


#display-console {
    background-color: whitesmoke;
    _background: rgb(54, 25, 25); /* Fall-back for browsers that don't support rgba */
    _background: rgba(54, 25, 25, .5);
    padding: 5px;
    z-index: 1;
    position: fixed;
    bottom: 0;
    left: 0;
    _border: 1px solid black;
    font-size: small;
    height: 40px;
    width: 500px;
    margin-left: 10px;
    overflow: hidden;
    opacity: 90%;
}

    #display-console .panel-heading {
        height: 5px;
    }

    #display-console .panel {
        border: 1px solid black;
    }

    #display-console:hover {
        height: 250px;
    }

.PB-Inner {
    background-color: black;
    height: 5px;
}



.PB-Outer {
    overflow: hidden;
}

.PB-Inner-overflow {
    background-color: red;
    height: 5px;
}

.pb-overlay-container {
    position: relative;
}

.pb-overlay {
    background-color: lightgreen;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    opacity: 0.2;
}

.tick-box {
    width: 20px;
    height: 20px;
    border: 1px solid #000;
    display: inline-block;
    vertical-align: middle;
}






/* Modal Image Display
    ----------------------------------------------------------*/



/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation */
.modal-content, #caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}



@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}


/* The Close Button */
.close {
    position: absolute;
    top: 150px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 99;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}



/* Gallery
    ----------------------------------------------------------*/



.target {
    border: solid 1px #aaa;
    min-height: 200px;
    min-width: 200px;
    margin-top: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: 300ms all;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center {
    flex: 0 0 120px;
}

.contain {
    background-size: cover;
    position: relative;
    z-index: 10;
    top: 0px;
    left: 0px;
}

textarea {
    background-color: white;
}

.active {
    box-shadow: 0px 0px 10px 10px rgba(0,0,255,.4);
}


.img-as-bg {
    width: 200px;
    height: 200px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    display: inline-block;
}


.square {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden;
    display: inline-block;
    border: 2px solid black;
    padding: 10px;
}

    .square img {
        position: absolute;
        max-width: 100%;
        width: 100%;
        height: auto;
        top: 50%;
        left: 50%;
        transform: translate( -50%, -50%);
    }

        .square img.landscape {
            height: 100%;
            width: auto;
        }

/*        .square:hover {
            -webkit-transform: scale(2,2);
            z-index: 99;
        }*/



#transactions .autocomplete-amount {
    width: 100px;
}

#transactions .autocomplete-dateadded {
    width: 160px;
}

#transactions .autocomplete-transactiontype {
    width: 100px;
}

#transactions td {
    padding: 5px;
    margin: 0;
    border: 1px solid black;
    _border-collapse: collapse;
}

#transactions input[type=text], input[type=datetime] {
    background-color: transparent;
    border: 0px solid;
}

.filter-item td {
    background-color: yellow !important;
    padding: 5px;
}

.new-item td {
    background-color: greenyellow !important;
    padding: 5px;
}


#transactions .new-item {
    background-color: lightgreen;
}

#transactions .filter-item {
    background-color: lightblue;
}

#edit-item .description, #edit-item .materials {
    height: 100px;
}

.lazy {
    display: none !important;
}

#form-buttons {
    display: table;
    table-layout: fixed;
    background-color: silver;
    padding: 5px;
    border-radius: 5px;
    width: 100%;
}

    #form-buttons div {
        display: table-cell;
        text-align: center;
    }





.autocomplete-amount {
    text-align: right;
}

.start-overdue {
    width: 20px;
}



/*.board {
    border: 4px solid green;
}*/

/*.board .panel {
    border: 4px solid blue;
}*/

/*.column {
    border: 4px solid darkorange;
}*/

/*.list-content {
    border: 4px solid yellow;
}*/

/*.row{
    border: 5px solid firebrick;
}*/


/*[class*="col-"] {
    border: 4px solid aqua;
}*/


.col-drag-drop {
    border: 2px solid gray;
}

/*    #percentage-done-as-bar {
    width: 100%;
}*/




#list1 table {
    width: 100%;
}



#list1 td {
    _border: 1px solid red;
}

#list1 #col-no {
    width: 50px;
}

#list1 #col-Id {
    width: 75px;
}

/*#list1 #col-parent, #list1 #col-priority, #list1 #col-estimate, #list1 #col-expended, #list1 #col-status {
    width: 100px;
}*/

    #list1 #find table td:nth-child(7) {
        text-align: right;
    }

    #list1 #find table td:nth-child(5) {
        text-align: left;
    }

#list1 span .title {
    font-weight: bold;
}




/* Gant Chart*/

.gant-container .gant-container {
    _max-width: 1200px;
    width: 2500px;
    min-width: 650px;
    margin: 0 auto;
    padding: 50px;
}

    .gant-container .chart {
        display: grid;
        border: 2px solid #000;
        position: relative; 
        overflow: hidden;
    }

.gant-container .chart-row {
    display: grid;
    grid-template-columns: 50px 1fr;
    background-color: #DCDCDC;
}

.gant-container .chart-row:nth-child(odd) {
    background-color: #C0C0C0;
}

.gant-container .chart-period {
    color: #fff;
    background-color: #708090 !important;
    border-bottom: 2px solid #000;
    grid-template-columns: 50px repeat(30, 1fr);
}

.gant-container chart-lines {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: transparent;
    grid-template-columns: 50px repeat(30, 1fr);
}

.gant-container .chart-period > span {
    text-align: center;
    font-size: 13px;
    align-self: center;
    font-weight: bold;
    padding: 15px 0;
}

.gant-container .chart-lines > span {
    display: block;
    border-right: 1px solid rgba(0, 0, 0, 0.3);
}

.gant-container .chart-row-item {
    background-color: #808080;
    border: 1px solid #000;
    border-top: 0;
    border-left: 0;
    padding: 20px 0;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}

.gant-container .chart-row-bars {
    list-style: none;
    display: grid;
    padding: 15px 0;
    margin: 0;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 10px 0;
    border-bottom: 1px solid #000;
}

.gant-container li {
    font-weight: 450;
    text-align: left;
    font-size: 15px;
    min-height: 15px;
    background-color: #708090;
    padding: 5px 15px;
    color: #fff;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-radius: 15px;
}

.gant-container ul .chart-li-one {
    grid-column: 1/6;
    background-color: #588BAE;
}

.gant-container ul .chart-li-two {
    grid-column: 2/2;
    background-color: #0080FF;
}

.gant-container ul .chart-li-two-a {
    grid-column: 2/2;
    background-color: #0080FF;
}

.gant-container ul .chart-li-two-b {
    grid-column: 2/4;
    background-color: #4682B4;
}

.gant-container ul .chart-li-three {
    grid-column: 3/5;
    background-color: #57A0D3;
}

.gant-container ul .chart-li-four {
    grid-column: 3/9;
    background-color: #0E4D92;
}

.gant-container ul .chart-li-five {
    grid-column: 7/10;
    background-color: #4F97A3;
}

.gant-container ul .chart-li-six {
    grid-column: 10/12;
    background-color: #73C2FB;
}

.gant-container ul .chart-li-seven {
    grid-column: 12/12;
    background-color: #0080FF;
}




table {
    border: 1px solid #ccc;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    width: 100%;
    table-layout: fixed;
}

    table caption {
        font-size: 1.5em;
        margin: .5em 0 .75em;
    }

    table tr {
        background-color: #f8f8f8;
        border: 1px solid #ddd;
        padding: .35em;
    }

    table th,
    table td {
        padding: .625em;
        text-align: center;
    }

    table th {
        font-size: .85em;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

@media screen and (max-width: 300px) {
    table {
        border: 0;
    }

        table caption {
            font-size: 1.3em;
        }

        table thead {
            border: none;
            clip: rect(0 0 0 0);
            height: 1px;
            margin: -1px;
            overflow: hidden;
            padding: 0;
            position: absolute;
            width: 1px;
        }

        table tr {
            border-bottom: 3px solid #ddd;
            display: block;
            margin-bottom: .625em;
        }

        table td {
            border-bottom: 1px solid #ddd;
            display: block;
            font-size: .8em;
            text-align: right;
        }

            table td::before {
                /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
                content: attr(data-label);
                float: left;
                font-weight: bold;
                text-transform: uppercase;
            }

            table td:last-child {
                border-bottom: 0;
            }
}