/* Add selection CSS to tables */
.table tbody tr.selected:hover td,
.table tbody tr.selected td {
    background-color: #b1c441;
    color: white;
}

/* Add link cursors to link table rows */
.linked-rows tr:hover td {
    cursor: pointer;
    background-color: #EEEEEE;
}

/* Add padding for fixed navbar at top */
body {
    padding-top: 50px;
}

/*
custom css for drawing file input form elements.
extends the bootstrap .btn-* namespace.
*/
.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    background: red;
    cursor: inherit;
    display: block;
}

.obsolete {
    text-decoration: line-through;
}

/* Add padding to footer */
.main {
    padding-bottom: 20px;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    padding-right: 15px;
    padding-left: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* -------- web2py specific items ---------- */
/* Fix auth navbar */
#navbar {
    white-space: nowrap;
    padding-top: 10px;
    color: #999;
}

#navbar>span>a {
    color: #999;
}

div.flash {
    font-weight: bold;
    display: none;
    position: fixed;
    padding: 10px;
    top: 48px;
    right: 50px;
    min-width: 280px;
    opacity: 0.85;
    margin: 0px 0px 10px 10px;
    color: #fff;
    vertical-align: middle;
    cursor: pointer;
    background: #000;
    border: 2px solid #fff;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    z-index: 2000;
}

div.error_wrapper {
    display: block
}

div.error {
    background-color: red;
    color: white;
    padding: 3px;
    display: inline-block;
}

#auth_user_remember__row label {
    display: inline;
}

#logo {
    margin-left: 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 100;
}

.panel-default>.panel-heading:hover {
    background-image: unset;
    background-color: #ebebeb;
}

.entry_header {
    background-repeat: no-repeat;
    background-size: auto 32px;
    padding-left: 50px;
}

.entry_header.audio {
    background-image: url(/static/images/icon_audio.svg);
}

.entry_header.text {
    background-image: url(/static/images/icon_text.svg);
}

.entry_header.paratextZipResource {
    background-image: url(/static/images/icon_text.svg);
}

.entry_header.print {
    background-image: url(/static/images/icon_print.svg);
}

.entry_header.video {
    background-image: url(/static/images/icon_video.svg);
}

.entry_header.braille {
    background-image: url(/static/fontawesome/svgs/regular/braille.svg);
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (max-width : 480px) {

    .paratext_name {
        display: none;
    }

}

/* Admin area */

#orgs-orgsHead {
    padding-bottom: 20px;
}

/* Limit org list to scroll independently */
#orgs-orgs {
    overflow: hidden;
}

#orgs-list {
    height: 400px;
    overflow-y: scroll;
}

/* Add print support to modal dialogs. */
@media print {

    /* remove the support button from the print result */
    [class^="freshwidget-"] {
        display: none;
    }

    body.modal-open {
        padding: 0 !important;
        width: 100%;
    }

    body.modal-open .navbar,
    body.modal-open .navbar *,
    body.modal-open .container,
    body.modal-open .container *,
    body.modal-open .modal-backdrop {
        width: 0;
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }

    body.modal-open * {
        margin: 0;
        border-width: 0;
    }

    body.modal-open .modal {
        overflow-y: visible;
        display: block;
    }

    #modal,
    .modal,
    .modal-dialog,
    .modal-content,
    .modal-lg,
    .modal-sm,
    .modal-body {
        height: inherit;
        width: inherit;
    }

    #modal,
    .modal,
    .modal-dialog,
    .modal-content,
    .modal-body,
    .modal-body * {
        position: relative;
        min-height: 100%;
    }

    body.modal-open .modal .modal-dialog .modal-content .modal-header,
    body.modal-open .modal .modal-dialog .modal-content .modal-footer {
        padding: 0;
        display: none;
        visibility: hidden;
    }

    body.modal-open .modal .modal-dialog .modal-content .modal-body {
        padding: 0 2.5cm 0 0;
        margin: 1cm 0 0 1cm;
        overflow-x: hidden;
        overflow-y: visible;
        display: block;
    }

    body.modal-open .modal .modal-dialog .modal-content .modal-body * {
        visibility: visible;
        line-height: 150%;
    }
}