﻿body {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

.navbar a {
    color: #ddd !important;
}

    .navbar a:hover {
        color: #fff !important;
    }

.navbar-toggle {
    border: none !important;
    background-color: transparent !important;
}

    .navbar-toggle .icon-bar {
        background-color: #ddd !important;
    }

    .navbar-toggle:hover .icon-bar {
        background-color: #fff !important;
    }

.navbar-brand {
    font-size: 80%;
    line-height: initial;
}

.toast-content {
    top: 50px;
}

.navbar-toggle {
    float: left;
    margin-right: 0;
}

.navbar-right {
    position: absolute !important;
    top: 0;
    right: 0;
    margin-right: 0 !important;
}

    .navbar-right .navbar-nav {
        margin: 0 !important;
    }
    .navbar-right > ul,
    .navbar-right > ul > li,
    .navbar-right > ul > li > a {
        display: inline-block !important;
    }
        .navbar-right > ul > li > a {
            padding-top: 15px !important;
            padding-bottom: 15px !important;
        }

.navbar a:hover,
.navbar a:focus,
.navbar .dropdown-menu {
    background-color: rgba(120, 16, 16, 1) !important;
}

    .navbar .dropdown-menu > li > a {
        line-height: 2em;
    }

.begin-group {
    border-top: 1px solid #cc9d9d;
}

.profile {
    position: absolute;
    padding: 0;
    width: 300px;
    background-color: #fff;
    right: 0;
    color: #000;
    border: 1px solid #9c1010;
    box-shadow: 0 1px 3px #9c1010;
}

    .profile > ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

        .profile > ul > li {
            padding: 10px;
            border-top: 1px solid #ccc;
            cursor: pointer;
        }

            .profile > ul > li:hover {
                background-color: #eee;
                color: #333;
            }

    .profile li > a,
    .profile li > a:hover,
    .profile li > a:focus,
    .profile > section > a,
    .profile > section > a:hover {
        background-color: transparent !important;
        color: inherit !important;
        text-decoration: none;
    }

        .profile li > a,
        .profile li > a:hover {
            display: block;
        }

            .profile li > a > .fa {
                margin-right: 10px;
            }

    .profile > section {
        text-align: center;
        position: relative;
    }

    .profile h4,
    .profile h5 {
        margin: 0;
        padding: 20px 0;
    }

    .profile h4 {
        font-weight: 600;
        font-size: 16px;
        padding-bottom: 70px;
    }

    .profile > section > .avatar {
        width: 100px;
        height: 100px;
        margin-top: -50px;
        border: 3px solid #fff;
        border-radius: 50%;
        margin-left: auto;
        margin-right: auto;
    }

    .profile > section > .actions {
        position: absolute;
        top: 75px;
        right: 20px;
    }

    .profile .actions > a {
        color: #eee !important;
        padding: 10px;
    }

        .profile .actions > a:hover {
            color: #fff !important;
            border-radius: 50%;
            background-color: rgba(120, 16, 16, 1) !important;
        }


.search-form > input {
    width: calc(100% - 30px);
    outline: none;
    border: none;
    float: right;
}

.search-form > button {
    border: none;
    background-color: transparent;
    color: #999;
}

.search-form {
    margin-top: 0px;
    padding: 5px;
    border: 1px solid #f80;
    border-radius: 20px;
    margin: 20px;
}

.page-header {
    margin: 0;
    font-size: 0.8em;
}

.table .row {
    margin-left: 10px;
    margin-right: 10px;
    cursor: pointer;
    padding: 10px;
}
.table .row:nth-child(2n) {
    background-color: whitesmoke;
}

.table .row a {
    text-decoration: none;
    color: #666;
}

    .table .row a:hover {
        color: rgb(0, 140, 253);
    }

.grid table {
    table-layout: fixed;
    width: 100%;
}

    .grid-header td,
    .grid-header th {
        border: none;
    }
    .grid-header th {
        background-color: #9d7beb;
        color: #fff;
    }
    .grid-body > tr {
        background-color: #eee;
    }
    .grid-body > tr:nth-child(2n+1) {
        background-color: whitesmoke;
    }

    table .actions {
        text-align: right !important;
    }
    table .actions a {
        color: #333;
        opacity: 0.5;
        transition: all 0.3s;
        margin-right: 8px;
    }
    td.actions a:hover {
        opacity: 1;
    }
th {
    white-space: nowrap;
}

    th > .icon {
        margin: 0 5px;
    }

    th > div {
        position: absolute;
        background-color: white;
        border: 1px solid #ccc;
        border-radius: 6px;
        box-shadow: 1px 1px 2px 2px #eee;
        min-width: 150px;
        text-align: left;
        padding: 10px;

        display: none;
    }

    th.open > div {
        height: auto;
        display: block;
    }

    th > div > span {
        display: block;
        padding: 5px 10px;
        font-weight: 400;
        color: #111;
    }

        th > div > span.begin-group {
            border-top: 1px solid lavender;
        }

        th > div > span:hover {
            background-color: lavender;
        }

.scroll-viewer {
    min-height: 400px;
    max-height: 400px;
    overflow: auto;
}

.page-selector {
    line-height: 1.43;
    padding: 10px;
    background-color: whitesmoke;
    border-bottom: 1px solid #eee;
    text-align: center;
}
    .page-selector > span {
        padding: 2px 6px;
        opacity: 0.75;
    }
        .page-selector > span.active {
            font-weight: 600;
            opacity: 1;
        }
        .page-selector > span:hover {
            opacity: 0.95;
            cursor: pointer;
            color: #fff;
            background-color: #333;
            border-radius: 3px;
        }

#view-option .check-box {
    display: inline-block;
    margin-left: 5px;
}

.filter-dialog h4 {
    margin: 0;
    font-size: 90%;
}
.filter-dialog section:first-child {
    margin: 2em;
}

.SoTT {
    text-align: right;
    width: 1cm;
    background-color: #666 !important;
    color: rgb(0, 140, 253) !important;
}
h3.table-caption {
    padding: 10px;
    background-color: lavender;
    margin: 0;
    margin-top: -14px;
}

.HoTen {
    width: 5cm;
}

.Email {
    width: 5cm;
}

.SoDT {
    width: 3cm;
}
td.Email {
    overflow: hidden;
    text-overflow: ellipsis;
}


.proc-content {
    transition: all 0.3s;
}

.proc-content .card {
    padding: 10px;
    padding-top: 0;
    margin-bottom: 15px;
}

   .proc-content .card > header {
        padding: 10px 0;
        margin-bottom: 20px;
        border-bottom: 1px solid #ccc;
    }

   .card table th,
   .card table td {
       border: none !important;
    }

   .proc-content .card > footer {
        margin-top: 20px;
        font-size: 90%;
    }

   .proc-content .card a {
        text-decoration: none;
        margin-right: 30px;
    }

   .proc-content .actions {
       float: right;
   }
   .proc-content .actions > a {
       margin-right: 8px;
       color: #999;
   }
   .proc-content .actions > a:hover {
       color: #333;
   }


.tabs .nav-tabs > li.active > a,
.tabs-content {
    background-color: whitesmoke !important;
}

.form-comment {
    color: #080;
    font-size: 0.85em;
}

i.comment {
    color: #666;
}

.alphabet-table {
    list-style: none;
    position: fixed;
    right: 0;
    top: 0;
    padding: 0 0.5em;
    background-color: rgba(196, 196, 196, 0.8);
    font-size: 0.8em;
    min-height: 100%;
    z-index: 99;
}

    .alphabet-table > li {
        padding: 0.4em;
        cursor: pointer;
        color: #999;
        font-weight: 600;
        font-size: 1.1em;
    }

        .alphabet-table > li:hover {
            color: #111;
        }


@media (min-width:768px) {
    .container {
        width: 100%;
    }

    .tmp.col-sm-6 {
        width: calc(50% - 10px);
        margin: 5px;
    }
}


.contact {
    position: relative;
    font-size: 0.85em;
    padding: 0.5em;
    border-bottom: 1px solid #ccc;
}
.tmp label {
    font-weight: 400;
}
.tmp label:nth-child(2n+1) {
    min-width: 50%;
}
.tmp .line > span {
    margin-right: 1em;
}

.contact .user {
    font-weight: 600;
}
.contact .book {
    color: #999;
}
    .contact .phone {
        color: darkgreen;
    }
    .contact .home {
        color: rgb(0, 140, 253);
    }
    .contact .bus {
        color: orange;
    }