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

body {
    padding-top: 70px;
    padding-bottom: 20px;
    /* Margin bottom equal to or greater than footer height */
    margin-bottom: 40px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    background-color: #f5f5f5;
}

thead {
    background-color: steelblue;
}

    thead th {
        color: white;
        font-weight: bold;
    }

.textDisabled {
    color: #868e96;
}

input:disabled+label {
    color: #868e96;
}

/* Many radio buttons & fieldsets I don't want to have any special layout */
fieldset.noBorder {
    border: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.input-validation-error {
    border: 2px solid #ff006e;
}

img.uploadedPreview {
    max-width: 100%;
    max-height: 100%;
}

/*#region Jasny Bootstrap 3 OVERRIDES */
.btn-file {
    /* btn-file class idea from www.abeautifulsite.net/whipping-file-inputs-into-shape-with-bootstrap-3 */
    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;
        outline: none;
        background: white;
        cursor: inherit;
        display: block;
    }
/*#endregion*/

/*#region jqGrid, TimePicker, jQuery UI OVERRIDES ***********************************************
 * Mainly to make jQuery UI datepicker and the 3rd party timepicker look correct
 * with the Bootstrap theme "Cerulean" */

table.ui-timepicker * {
    /* Universal selector is necessary in this case */
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

a.jqGridLink {
    /* Enforce Bootstrap's link coloring instead of jQuery UI's. */
    color: #2fa4e7 !important;
}

#ui-datepicker-div {
    /* Because jqGrid 5.x with Bootstrap 5 makes a timepicker show up behind/below the jqGrid */
    z-index: 100 !important;
}

.ui-jqgrid tr.ui-search-toolbar th {
    /* The ui-jqgrid-bootstrap5.css that comes from Guriddo is just too much padding, makes the <th> stupid big */
    padding: 0px 2px !important;
}
/*#endregion*/
