﻿html, body {
    margin: 0;
    height: 100%;
    padding-top: 36px;
    font-size: 13px;
    color: navy;
    background: linear-gradient(white, #efefff, white);
    overflow-x: hidden;
}



/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

#contentarea {
    position: absolute;
    top: 123px;
    bottom: 26px;
    left: 3px;
    right: 5px;
    overflow-x: hidden;
    overflow-y: auto;

    -webkit-animation: bodyfadein 0.6s ease;
    -moz-animation: bodyfadein 0.6s ease;
    -o-animation: bodyfadein 0.6s ease;
    animation: bodyfadein 0.6s ease;
}

@keyframes bodyfadein {
    0% {
        opacity: 0.01;
    }

    100% {
        opacity: 1.0;
    }
}

@-webkit-keyframes bodyfadein {
    0% {
        opacity: 0.01;
    }

    100% {
        opacity: 1.0;
    }
}

@-moz-keyframes bodyfadein {
    0% {
        opacity: 0.01;
    }

    100% {
        opacity: 1.0;
    }
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
}


/* Field pairs*/
.fieldpair {
    margin-top: 3px;
}

.field-validation-error {
    color: red;
}

/* Used by the html field label extension for the mandatory field marker asterisk. */
.required {
    color: red;
    margin-left: 1px;
    margin-top: -2px;
    font-size: larger;
}

/* Stops the button text changing when the gridmvc row is selected. */
.dropdown-toggle {
    color: navy;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.fn {
    float: none;
}

/* Numeric columns in grid.mvc controls */
.numericcolumn {
    text-align: center;
}

/* ── DataTables grid styling ── */
table.tr-grid {
    width: 100% !important;
    border-collapse: collapse;
    font-size: 12px;
}

table.tr-grid th,
table.tr-grid td {
    border: 1px solid #c8c8d0 !important;
    padding: 3px 6px !important;
    vertical-align: middle !important;
    color: navy;
}

table.tr-grid thead th {
    background: linear-gradient(#d0d8f0, #b0bce8);
    color: navy;
    font-weight: bold;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

table.tr-grid thead th.dt-vert {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
    padding: 6px 4px !important;
    text-align: center;
    font-size: 11px;
}

table.tr-grid tbody tr:hover {
    background-color: #e8ecf8 !important;
}

table.tr-grid tbody tr.selected {
    background-color: #c0cce8 !important;
}

/* Sort indicator arrows on DataTables headers */
table.tr-grid thead th.sorting:after,
table.tr-grid thead th.sorting_asc:after,
table.tr-grid thead th.sorting_desc:after {
    margin-left: 4px;
    opacity: 0.6;
}

/* DataTables length/filter/info/paginate wrapper */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    font-size: 12px;
    color: navy;
    margin-top: 4px;
    margin-bottom: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 2px 7px;
    color: navy !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #b0bce8 !important;
    border-color: #8090c0 !important;
    color: navy !important;
    font-weight: bold;
}

@keyframes blink {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 1.0;
    }
}

@-webkit-keyframes blink {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 1.0;
    }
}

@-moz-keyframes blink {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 1.0;
    }
}

.blink {
    -webkit-animation: blink 1.2s linear infinite;
    -moz-animation: blink 1.2s linear infinite;
    -o-animation: blink 1.2s linear infinite;
    animation: blink 1.2s linear infinite;
    color: red;
}

.tablefieldlabel {
    width: 110px;
    font-weight: bold;
    text-align: right;
}

.modal-backdrop {
    background-color: navy;
}

.dlgcontainer {
    width: 600px;
    background-color: white;
    margin-top: 100px;
    border-radius: 8px;
    padding: 0;
}

.dlgtitlecontainer {
    background: linear-gradient(blue, navy);
    color: white;
    margin-top: -20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

textarea.form-control {
    max-width: 100%;
    width: 100%;
    height: 200px;
}

.piccy {
    border-radius: 5px;
    box-shadow: 10px 10px 5px #888888;
    margin: 10px;
}

#company {
    color: white;
    font-size: 62px;
    font-family: 'Tangerine', cursive;
    font-weight: 300;
    text-shadow: 2px 2px navy;
}

.navbar-inverse .navbar-nav > li > a {
    font-size: 14px;
    color: white;
    opacity: 1.0;
}

/* Page-level "nav nav-pills" action toolbars (Create New / Edit / Details / Delete
   etc.) appear on ~80 Index/Details views, built as plain <li><a>...</a></li> with
   no .nav-item/.nav-link classes -- Bootstrap 3 styled any <a> inside .nav-pills > li
   via a plain descendant selector, but Bootstrap 5's padding/spacing lives on the
   .nav-link class specifically. Rather than touching every view, restore the same
   descendant-selector styling BS3 gave for free, using BS5's own spacing variables
   so it stays in sync with the rest of the design system. */
/* Bootstrap 5 dropped .nav-stacked entirely (no CSS for it at all) -- its whole
   job was forcing the .nav flex container to stack vertically instead of BS5's
   flex-row default. Used by 4 sidebar sub-menus (LayoutAdmin/LayoutBlog/
   LayoutBusiness/BusClients Index); each already carries its own inline
   .nav-stacked > li > a padding override, only the stacking itself was missing. */
.nav-stacked {
    flex-direction: column;
}

.nav-pills > li > a {
    display: block;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    text-decoration: none;
    border-radius: var(--bs-nav-pills-border-radius, var(--bs-border-radius));
}

/*.navbar-inverse .navbar-nav > li > a:hover {
                color: yellow;
            }*/

.navselected {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-top: 1px solid white;
    background-color: navy;
    background-color: RGBA(0, 0, 255, 0.2);
    color: red;
}

a.navselected:visited a.navselected:hover a.navselected:link {
    color: red;
}

#titlebar {
    margin-top: 0;
    color: white;
    text-shadow: 0 -1px 0 rgba(0,0,0,.25);
}

#title {
    font-size: 38px;
    font-weight: bold;
    color: lightgrey;
}

#subtitle {
    font-size: 28px;
    text-shadow: 2px 2px black;
}

/*.wrapper {
            min-height: 100%;
            height: auto !important;
            height: 100%;
            margin: 0 auto -9px; /* the bottom margin is the negative value of the footer's height
        }*/

footer, .push {
    height: 25px; /* '.push' must be the same height as 'footer' */
}

.multilinetext {
    white-space: pre-line;
}

.postitnote {
    display: inline-block;
    width: 300px;
    margin: 20px;
    padding: 10px;
    /*background-color: yellow;*/
    background: #f1f3a2;
    background: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(247,247,210,1)), to(rgba(240,242,155,1)));
    background: -moz-linear-gradient(top, rgba(247,247,210,1), rgba(240,242,155,1));
    box-shadow: 5px 5px 5px lightgray;
    -ms-transform: rotate(-1deg);
    -webkit-transform: rotate(-1deg);
    -moz-transform: rotate(-1deg);
    -o-transform: rotate(-1deg);
    transform: rotate(-1deg);
}

    .postitnote .notetextdiv {
        border-top: 1px solid lightgray;
        margin-top: 10px;
        height: 150px;
        overflow-y: auto;
    }

#navbar {
    /* Bootstrap 5's .navbar is display:flex by default, which turns this custom
       navbar's direct children (logo overlay, company name, toggle, collapse menu,
       <br>, titlebar) into a row of flex items instead of the stacked block layout
       this custom multi-row banner design was built around under Bootstrap 3's
       plain-block .navbar. #navbar's ID specificity overrides .navbar's class rule. */
    display: block;
    /* Bootstrap 5's .navbar also carries a default padding (0.5rem top/bottom)
       that Bootstrap 3's .navbar didn't have -- zero it out to match. */
    padding-top: 0;
    background-image: url("/Images/narrow.png");
    background-size: cover;
    background-position: center top;
    padding-bottom: 0;
    height: 113px;
    border-bottom: 1px solid Blue;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 24px 4px;
    margin-bottom: 10px;
}

.blogtag {
    border-radius: 6px;
    background-color: lightgray;
    margin: 0 5px 0 5px;
    padding: 3px 6px 3px 6px;
}

/*Correction to stop some hamburger dropdown menus (in gridmvc tables) being draw white text a white background! */
.dropdown-menu a {
         color: navy !important;
     }

.badge.red {
    background-color: red;
    color: white;
}

.badge.green {
    background-color: lime;
    color: black;
}


.dl-horizontal dt {
    margin-top: 4px;
    margin-bottom: 0;
}

.dl-horizontal dd {
    max-width: 1000px;
    margin-left: 20px;
}