﻿/* ==========================================================================
  DOCUMENT MODULE
   ========================================================================== */

/* =====================
  SEARCH INPUT
   ===================== */

.documentSearch {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: solid 1px #ccc;
    text-align: right;
}

    .documentSearch label {
        font-weight: normal;
        font-size: 1em;
        display: inline-block;
    }

    .documentSearch input[type="text"] {
        height: 40px;
        line-height: 40px;
        padding: 0 3px;
        display: inline-block;
    }

    .documentSearch input[type="submit"] {
        height: 40px;
        line-height: 40px;
        padding: 0 7px;
        margin: 0;
        margin-left: 2px;
        display: inline-block;
        vertical-align: top;
    }

/* =====================
  SEARCH TREE
   ===================== */

.treeContainer {
    width: 35%;
    padding: 20px;
    background: #efefef;
    border: solid 1px #ccc;
    float: left;
}

.RadTreeView > ul {
    margin-left: 0 !important;
}

    .treeContainer * ul {
        white-space: normal !important;
        line-height: 1.2;
    }

    .treeContainer li.rtLI > div {
        padding-top: 3px !important;
        padding-bottom: 3px !important;
    }

    .treeContainer .rtIn {
        margin: 0 !important;
        padding: 2px !important;
        border: none !important;
        background-image: none !important;
        display: inline-block;
    }

        .treeContainer .rtIn:hover,
        .treeContainer .rtIn:active,
        .treeContainer .rtIn:focus {
            background: #eee;
            border: solid 1px #ccc;
        }

/* =====================
  SEARCH RESULTS
   ===================== */

.resultsContainer {
    width: 65%;
    padding-left: 40px;
    float: right;
}

.noTree .resultsContainer {
    width: 100%;
    float: none;
    padding-left: 0;
}

.gridDiv {
    width: 100% !important;
}

.resultsTable, .detailsTable {
    border: none !important;
    width: 100%;
}

.attachmentsTable {
    width: 100%;
}


    .resultsTable, .resultsTable .titlerow td, .resultsTable td {
        border: none !important;
    }

        .resultsTable > tbody > tr {
            border-bottom: solid 1px #999;
        }

            .resultsTable > tbody > tr > td > table > tbody > tr > td {
                padding: 3px 6px;
                font-size: .9em;
            }
                .resultsTable > tbody > tr > td > table > tbody > tr > td:first-child {
                    padding-left: 0;
                }

.docDetailsTable {
    width: 100%;
}

				
.docDetailsTable .documentLinks a {
    display: block;
    text-align: right;
    font-weight: bold;
}

.docDetailsTable .documentLinks .viewDocumentLink {
    margin-bottom: 10px;
}

/* =====================
  DOCUMENT DETAILS
   ===================== */

.documentDetailsContainer {
    width: 65%;
    padding-left: 40px;
    float: right;
}

.noTree .documentDetailsContainer {
    width: 100%;
    float: none;
    padding-left: 0;
}

.documentDetailsContainer .detailsTable td {
    padding: 5px 0;   
    padding-right: 5px;
}

    .documentDetailsContainer .attachmentsTable td {
        padding: 3px;
        font-size: .9em;
    }

    .documentDetailsContainer .attachmentsTable .DataGridHeaderStyle td {
        padding: 10px 3px;
        font-size: 1em;
    }

h3.borderBottomHeader {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: solid 1px #ccc;
}

/* =====================
  PAGER
   ===================== */

.documentsPager {
    text-align: right;
}

    .documentsPager input, .documentsPager span {
        display: inline-block;
    }

.pagerbuttons {
    margin-bottom: 10px;
}

.pagerItems label, .pagerItems select {
    display: inline-block;
    width: auto;
}

.pagerItems select {
    margin: 0 5px;
}

.pagerItems, .itemsTotal {
    display: inline-block;
}


@media only screen and (max-width : 991px) {
    .treeContainer {
        width: 40%;
    }

    .resultsContainer {
        width: 60%;
    }
}

@media only screen and (max-width : 767px) {

    .documentSearch {
        text-align: left;
    }

    .resultsContainer, .treeContainer, .documentDetailsContainer {
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
    }

        .documentSearch input[type="text"] {
        display: inline-block;
    }

    .documentSearch input[type="submit"] {
        display: inline-block;
        width: auto;
    }

    .documentDetailsContainer .detailsTable {
        font-size: .9em;
    }
}

@media only screen and (max-width : 640px) {

    .documentSearch label {
        display: block;
    }
}

@media only screen and (max-width : 480px) {

    .docDetailsTable,
    .docDetailsTable > tbody,
    .docDetailsTable > tbody > tr,
    .docDetailsTable > tbody > th,
    .docDetailsTable > tbody > tr > td {
        display: block !important;
        padding: 0 !important;
    }

    .docDetailsTable {
        position: relative !important;
        padding-bottom: 50px !important;
    }

        .docDetailsTable .documentLinks {
            position: absolute;
            bottom: 5px;
            left: 0;
            height: 40px;
            width: 100% !important;
        }

            .docDetailsTable .documentLinks a {
                display: block;
                width: 49%;
                height: 40px;
                line-height: 40px;
                text-align: center;
                font-weight: bold;
                color: #fff;
                background: #666;
                margin: 0;
                float: left;
            }

            .docDetailsTable .documentLinks .viewDocumentLink {
                margin-right: 1%;
            }

            .docDetailsTable .documentLinks .addDetailsLinks {
                margin-left: 1%;
            }

    .documentsPager {
        text-align: center;
    }
}
