﻿/* MtA time table settings */
div#phonebook {
    width: 100% !important;
}

.tablesorter-default-phoneBook {
    width: 100%;
    font: 12px/18px Arial, Sans-serif;
    color: #333;
    background-color: #fff;
    border-spacing: 0;
    margin: 10px 0 15px;
    text-align: left;
}

    /* header */
    .tablesorter-default-phoneBook th,
    .tablesorter-default-phoneBook thead td {
        font-weight: bold;
        color: #000;
        background: #EBE7E4;
        border-collapse: collapse;
        border-bottom: #ccc 2px solid;
        padding: 0;
        line-height:2em;
    }

    .tablesorter-default-phoneBook tfoot th,
    .tablesorter-default-phoneBook tfoot td {
        border: 0;
    }

    .tablesorter-default-phoneBook .header,
    .tablesorter-default-phoneBook .tablesorter-header {
        background-image: url("/Content/images/black-unsorted-small.gif");
        background-position: 90% 50%;
        background-repeat: no-repeat;
        cursor: pointer;
        white-space: normal;
        padding: 4px 4px 4px 4px;
    }

    .tablesorter-default-phoneBook thead .headerSortUp,
    .tablesorter-default-phoneBook thead .tablesorter-headerSortUp,
    .tablesorter-default-phoneBook thead .tablesorter-headerAsc {
        background-image: url("/Content/images/black-asc-small.gif");
        border-bottom: #000 2px solid;
    }

    .tablesorter-default-phoneBook thead .headerSortDown,
    .tablesorter-default-phoneBook thead .tablesorter-headerSortDown,
    .tablesorter-default-phoneBook thead .tablesorter-headerDesc {
        background-image: url("/Content/images/black-desc-small.gif");
        border-bottom: #000 2px solid;
    }

    .tablesorter-default-phoneBook thead .sorter-false {
        background-image: none;
        cursor: default;
        padding: 4px;
    }

    /* tfoot */
    .tablesorter-default-phoneBook tfoot .tablesorter-headerSortUp,
    .tablesorter-default-phoneBook tfoot .tablesorter-headerSortDown,
    .tablesorter-default-phoneBook tfoot .tablesorter-headerAsc,
    .tablesorter-default-phoneBook tfoot .tablesorter-headerDesc {
        border-top: #000 2px solid;
    }

    /* tbody */
    .tablesorter-default-phoneBook td {
        background-color: #fff;
        border-bottom: #ccc 1px solid;
        padding: 4px;
        vertical-align: top;
    }

    /* hovered row colors */
    .tablesorter-default-phoneBook tbody > tr.hover > td,
    .tablesorter-default-phoneBook tbody > tr:hover > td,
    .tablesorter-default-phoneBook tbody > tr.even:hover > td,
    .tablesorter-default-phoneBook tbody > tr.odd:hover > td {
        background-color: #fff;
        color: #000;
    }

    /* table processing indicator */
    .tablesorter-default-phoneBook .tablesorter-processing {
        background-position: center center !important;
        background-repeat: no-repeat !important;
        /* background-image: url(images/loading.gif) !important; */
        background-image: url("/Content/images/loading.gif") !important;
    }

    /* Zebra Widget - row alternating colors */
    .tablesorter-default-phoneBook tr.odd > td {
        background-color: #dfdfdf;
    }

    .tablesorter-default-phoneBook tr.even > td {
        background-color: #efefef;
    }

    /* Column Widget - column sort colors */
    .tablesorter-default-phoneBook tr.odd td.primary {
        background-color: #bfbfbf;
    }

    .tablesorter-default-phoneBook td.primary,
    .tablesorter-default-phoneBook tr.even td.primary {
        background-color: #d9d9d9;
    }

    .tablesorter-default-phoneBook tr.odd td.secondary {
        background-color: #d9d9d9;
    }

    .tablesorter-default-phoneBook td.secondary,
    .tablesorter-default-phoneBook tr.even td.secondary {
        background-color: #e6e6e6;
    }

    .tablesorter-default-phoneBook tr.odd td.tertiary {
        background-color: #e6e6e6;
    }

    .tablesorter-default-phoneBook td.tertiary,
    .tablesorter-default-phoneBook tr.even td.tertiary {
        background-color: #f2f2f2;
    }

/* caption */
caption {
    background-color: #fff;
}

/* filter widget */
.tablesorter-default-phoneBook .tablesorter-filter-row {
    background-color: #eee;
}

    .tablesorter-default-phoneBook .tablesorter-filter-row td {
        background-color: #eee;
        border-bottom: #ccc 1px solid;
        line-height: normal;
        text-align: center; /* center the input */
        -webkit-transition: line-height 0.1s ease;
        -moz-transition: line-height 0.1s ease;
        -o-transition: line-height 0.1s ease;
        transition: line-height 0.1s ease;
    }
    /* optional disabled input styling */
    .tablesorter-default-phoneBook .tablesorter-filter-row .disabled {
        opacity: 0.5;
        filter: opacity(50%);
        cursor: not-allowed;
    }
    /* hidden filter row */
    .tablesorter-default-phoneBook .tablesorter-filter-row.hideme td {
        /*** *********************************************** ***/
        /*** change this padding to modify the thickness     ***/
        /*** of the closed filter row (height = padding x 2) ***/
        padding: 2px;
        /*** *********************************************** ***/
        margin: 0;
        line-height: 0;
        cursor: pointer;
    }

    .tablesorter-default-phoneBook .tablesorter-filter-row.hideme * {
        height: 1px;
        min-height: 0;
        border: 0;
        padding: 0;
        margin: 0;
        /* don't use visibility: hidden because it disables tabbing */
        opacity: 0;
        filter: opacity(50%);
    }
/* filters */
.tablesorter-default-phoneBook input.tablesorter-filter,
.tablesorter-default-phoneBook select.tablesorter-filter {
    width: 95%;
    height: auto;
    margin: 4px auto;
    padding: 4px;
    background-color: #fff;
    border: 1px solid #bbb;
    color: #333;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: height 0.1s ease;
    -moz-transition: height 0.1s ease;
    -o-transition: height 0.1s ease;
    transition: height 0.1s ease;
}
/* rows hidden by filtering (needed for child rows) */
.tablesorter-default-phoneBook .filtered {
    display: none;
}

/* ajax error row */
.tablesorter-default-phoneBook .tablesorter-errorRow td {
    text-align: center;
    cursor: pointer;
    background-color: #e6bf99;
}

.tablesorter-default-phoneBook tbody tr.normal-row td {
    background: #EBE7E4;
}

.tablesorter-default-phoneBook tbody tr.alt-row td {
    background: #FFFFFF;

}

/* formatting for mobile styles */
/* full row in mobile responsive view, extends from left sie of view to right */


.tablesorter-default-phoneBook tbody tr td span.resp_tt_left_title {
    float: left !important;
    margin-left: 0px !important;
    text-align: left;
    font-weight: normal;
    font-size: 1.0em;
    overflow: hidden;
}
/* the width differs */
/* LEFT */
.tablesorter-default-phoneBook tbody tr td span.resp_tt_left {
    width: 100% !important;
}

.tablesorter-default-phoneBook tbody tr td span.resp_tt_left_narrow {
    width: 100% !important;
}

/*all other values are the same*/
.tablesorter-default-phoneBook tbody tr td span.resp_tt_left,
.tablesorter-default-phoneBook tbody tr td span.resp_tt_left_narrow {
    float: left !important;
    margin-left: 0px !important;
    text-align: left;
    font-weight: normal;
    font-size: small;
    overflow: hidden;
}


/*hide four leading columns they are for */
/*380px width and smaller view ports */
.tablesorter-default-phoneBook > thead > tr > th:nth-of-type(1) {
    display: none;
}

.tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(1) {
    display: none;
}

.tablesorter-default-phoneBook > thead > tr > th:nth-of-type(2) {
    display: none;
}

.tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(2) {
    display: none;
}

.tablesorter-default-phoneBook > thead > tr > th:nth-of-type(3) {
    display: none;
}

.tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(3) {
    display: none;
}

.tablesorter-default-phoneBook > thead > tr > th:nth-of-type(4) {
    display: none;
}

.tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(4) {
    display: none;
}
/* desktop view*/
.tablesorter-default-phoneBook > thead > tr > th:nth-of-type(5) {
    width: 20%;
}

.tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(5) {
    width: 20%;
}

.tablesorter-default-phoneBook > thead > tr > th:nth-of-type(6) {
    width: 10%;
}

.tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(6) {
    width: 10%;
}

.tablesorter-default-phoneBook > thead > tr > th:nth-of-type(7) {
    width: 10%;
}

.tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(7) {
    width: 10%;
}

.tablesorter-default-phoneBook > thead > tr > th:nth-of-type(8) {
    width: 10%;
}

.tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(8) {
    width: 10%;
}
/*bold imp. data fields syn, subject, course, section*/

.tablesorter-default-phoneBook > thead > tr > th:nth-of-type(9) {
    width: 20%;
}

.tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(9) {
    width: 20%;
}

.tablesorter-default-phoneBook > thead > tr > th:nth-of-type(10) {
    width: 10%;
}

.tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(10) {
    width: 10%;
}


/* hide the trailing column it`s only for tablet view ports */
.tablesorter-default-phoneBook > thead > tr > th:nth-of-type(11) {
    display: none;
}

.tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(11) {
    display: none;
}

#phonebook_reset {
    display: none;
}


@media only screen and (max-width: 767px), (min-device-width: 640px) and (max-device-width: 767px) {
    #phonebook_reset {
        display: block;
    }
}

@media only screen and (max-width: 639px), (min-device-width: 300px) and (max-device-width: 639px) {

    #phonebook_reset{
        display:block;
    }

    .tablesorter-default-phoneBook {
        font-family: 'Open Sans', sans-serif; /* this a google open font that will be downloaded. It has a minimal load time*/
        font-size: 0.8em;
        line-height: 1.3em;
         border-style: none;
    }

        .tablesorter-default-phoneBook,
        .tablesorter-default-phoneBook > thead,
        .tablesorter-default-phoneBook > tbody,
        .tablesorter-default-phoneBook th,
        .tablesorter-default-phoneBook td {
            display: block;
            margin: 0px;
        }

       .tablesorter-default-phoneBook > tbody > tr {
            display: inline-block;
            width: 100%;
            margin-top: 0px;
        }

       .tablesorter-default-phoneBook > tbody > tr > td,
       .tablesorter-default-phoneBook td {
           position: relative;
           text-align: left;
           margin-top: 0px;
           margin-bottom: 0px;
           border-style: none !important;
       }

        .tablesorter-default-phoneBook > thead,
        .tablesorter-default-phoneBook > thead > tr,
        .tablesorter-default-phoneBook > thead > tr > th {
          margin-top: 0px;
          margin-bottom: 0px;
          line-height: 1em;
        }

        .resp_tt_right{
            margin-right:0.5em;
        }

            .tablesorter-default-phoneBook > tbody > tr > td.mobPh-col1 {
                margin-top: 0.0em !important;
            }

            .tablesorter-default-phoneBook > tbody > tr > td.mobPh-col4 {
                margin-bottom: 0.5em !important;
                padding-bottom: 0.8em !important;
            }

            /* header*/
            .tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(5) {
                display: none;
            }

            .tablesorter-default-phoneBook > thead > tr > th:nth-of-type(5) {
                display: none;
            }
            .tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(6) {
                display: none;
            }

            .tablesorter-default-phoneBook > thead > tr > th:nth-of-type(6) {
                display: none;
            }
            .tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(7) {
                display: none;
            }

            .tablesorter-default-phoneBook > thead > tr > th:nth-of-type(7) {
                display: none;
            }
            .tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(8) {
                display: none;
            }

            .tablesorter-default-phoneBook > thead > tr > th:nth-of-type(8) {
                display: none;
            }
            .tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(9) {
                display: none;
            }

            .tablesorter-default-phoneBook > thead > tr > th:nth-of-type(9) {
                display: none;
            }
            .tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(10) {
                display: none;
            }

            .tablesorter-default-phoneBook > thead > tr > th:nth-of-type(10) {
                display: none;
            }

            .tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(11) {
                display: none;
            }

            .tablesorter-default-phoneBook > thead > tr > th:nth-of-type(11) {
                display: none;
            }

            .tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(1) {
                display: block;
                clear: both;
                font-weight: bolder;
                font-size: larger;
                width: 100%;
                float: left;
                padding: 0;
                text-align: left;
            }

            .tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(2) {
                display: block;
                clear: both;
                font-weight: lighter;
                width: 100%;
                float: left;
                padding: 0;
                text-align: left;
            }

            .tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(3) {
                display: block;
                clear: both;
                font-weight: lighter;
                width: 100%;
                float: left;
                padding: 0;
                text-align: left;
            }

            .tablesorter-default-phoneBook > tbody > tr > td:nth-of-type(4) {
                display: block;
                clear: both;
                font-weight: lighter;
                width: 100%;
                float: left;
                padding: 0;
                text-align: left;
            }

    #searchNameInput {
        width: 100%; /* Full-width */
    }

    /* end of media query */
}

#searchNameInput {
    background-image: url("/Content/images/search.png"); /* Add a search icon to input */
    background-position: 0.4em 0.4em; /* Position the search icon */
    background-repeat: no-repeat; /* Do not repeat the icon image */
    width: 50%;
    height: 2.4em;
    margin: 0;
    padding: 0.5em 0.5em 0.5em 3em;
    border: 1px solid #cdccc9;
    border-radius: 0.25em;
    font-size: 1.333em; /* 16 - any smaller will cause iPhone to zoom on focus */
}

