﻿/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 400px;
}

td.centered {
    text-align: center;
    vertical-align: middle;
    align-content: center;
}

th.centered {
    text-align: center;
    vertical-align: middle !important;
    align-content: center;
}

/* For sorting service types and health systems */
#sortable {
    list-style-type: none;
    max-width: 600px;
    width: 100%;
    display: table;
    margin-left: -42px;
}

    #sortable > li {
        margin: 0 3px 3px 3px;
        padding: .4em;
        padding-left: 1.5em;
        font-size: 1.4em;
        cursor: pointer;
        width: 600px;
    }

        #sortable > li > span.ui-icon {
            margin-left: -1.3em;
        }

/* Font Awesome */
a.fa,
a.fas,
span.fa,
span.fas {
    cursor: pointer;
    font-size: x-large;
}

.fa-times {
    color: darkred;
}

/* Override default jQuery UI stuff */
.ui-icon {
    display: inline-block !important;
}

/* Inactive items in a table */
tr.inactive-header {
    background-color: grey;
}

tr.inactive-table-body {
    background-color: lightgray;
}

/* Used for tables of non-deleted items */
tr.active-header {
    background-color: #006b99;
    color: #fff;
    text-shadow: 1px 1px #004766;
}

/* Show validation results in red */
.field-validation-error {
    color: red;
}
/* Change background color of invalid text inputs to light red */
input[type="text"].input-validation-error {
    background-color: #fcc;
}

/* Disable chrome's datepicker and substitute our own */
input[type=date]::-webkit-calendar-picker-indicator {
    -webkit-appearance: none;
    display: none;
}

input[type=date]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    display: none;
}

input[type="date"]::-webkit-input-placeholder {
    visibility: hidden !important;
}

/* Style ChosenJS plugin */
.chosen-container {
    height: 39px;
}

.chosen-single {
    height: 39px;
}

/* Used for EditServiceType */
#sortable > li.old-subservice, #sortable > li.new-subservice {
    max-width: 400px;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sub-service text div */
div.subService-text {
    width: 280px;
    height: 1.3em;
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

li.disabled-subservice {
    background: white;
    border: 1px solid #e6e6e6;
    color: #cccccc;
}

/* Clients with no Administrator */
tr.noAdmin {
    background-color: hsl(35, 100%, 77%);
}

/* Buttons */
.btn-create {
    color: #fff;
    background-color: #006b99;
    border-color: #006a98;
}

.btn-outline-create {
    color: #006b99;
    border: 1px solid #006b99;
    border-radius: 0.5rem;
}

.btn-create:hover, .btn-create:focus {
    color: #fff;
    background-color: #005980;
    border-color: #005980;
}

.btn-outline-create:hover, .btn-create:focus {
    color: #FFF;
    border: 1px solid #006b99;
    background-color: #005980;
}

.btn-outline-create:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,89,128,.5);
}

/* Navbar styling */
.time-tracker-font {
    font-family: Candara, Calibri, Segoe, "Segoe UI", Optima, Arial, sans-serif;
}

.navbar-blue {
    background-color: #004766;
}

    .navbar-blue a {
        color: #FFF;
    }

    .navbar-blue ul {
        background-color: #004766;
    }

        .navbar-blue ul li:not(.nav-item) a:hover {
            background-color: #FFF;
            color: #004766;
        }

    .navbar-blue .btn-outline-light:hover {
        color: #004766;
    }

.nav > li > a, .nav > li > button {
    color: #FFF;
}

    .nav > li > a:hover, .nav > li > a:focus {
        color: #004766;
    }

.navbar-brand {
    color: #FFF;
}

    .navbar-brand:hover, .navbar-nav > li > button:hover {
        color: #FFF;
    }

.nav-item {
    padding: 0 1rem 0 1rem;
}


a#nameTag {
    color: #fff !important;
    background-color: #004766 !important;
    cursor: default !important;
}

/* Global footer */
body, html {
    height: 100%;
}

#wrapper {
    min-height: 100%;
    padding-bottom: 80px;
    margin-bottom: -80px;
}

#main {
    overflow: auto;
    padding-bottom: 100px;
}

#imgStarsFooter {
    width: 250px;
    height: auto;
}

#siteFooter {
    position: relative;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 1rem;
    background-color: #004766;
    text-align: right;
    color: #eee;
    box-shadow: #004766 1000px 1000px;
}

#footerMessage {
    float: right;
    margin-right: 25px;
    display: block;
    text-align: right;
    font-size: 14px;
    margin-top: 18px;
    width: 25%;
}

/* Radio buttons in "Add Time" */
.radio-label {
    text-align: center;
    display: inline;
    margin-left: 42px;
}

    .radio-label > input + span {
        cursor: pointer;
    }

.check {
    display: block;
}

.radio-label > span.check {
    background: #ddd;
    width: 20px;
    height: 20px;
    border-radius: 10px;
}

.radio-label > input {
    position: absolute;
    visibility: hidden;
    width: 20px;
    height: 20px;
}

    .radio-label > input:checked + span {
        background: #006a98;
        border: 2px solid #ccc;
        display: block;
    }

    .radio-label > input:hover + span {
        background: #ccc;
        border: 2px solid #ccc;
        display: block;
    }

    .radio-label > input:checked:hover + span {
        background: #004766;
        border: 2px solid #ccc;
        display: block;
    }

/* Table with time entries */
tr.row-gray {
    background-color: #e6f7ff;
}
/* Used for the legend */
div.row-gray {
    border: 1px solid black;
    height: 15px;
    width: 32px;
    display: inline-block;
    background-color: #e6f7ff;
}

div.row-normal {
    border: 1px solid black;
    height: 15px;
    width: 32px;
    display: inline-block;
}

/* Dark/light theme slider */
/* The switch - the box around the slider */
.navbar-lump {
    float: right;
    background-color: #004766;
    width: 100px;
    height: 67px;
    text-align: center;
    border-bottom-left-radius: 34px;
    border-bottom-right-radius: 34px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-top: 5px;
}

    /* Hide default HTML checkbox */
    .switch input {
        display: none;
    }

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  /*position: absolute;*/
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

.bg-preferred {
    background-color: #fff;
}

.text-preferred {
    color: #343a40;
}

.text-muted-preferred {
    color: #6c757d;
}

.navbar-preferred {
    background-color: #004766;
}

.navbar-preferred .navbar-brand {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-preferred .navbar-brand:hover, .navbar-preferred .navbar-brand:focus {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-preferred .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.5);
}

.navbar-preferred .navbar-nav .nav-link:hover, .navbar-preferred .navbar-nav .nav-link:focus {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-preferred .navbar-nav .nav-link.disabled {
    color: rgba(255, 255, 255, 0.3);
}

.navbar-preferred .navbar-nav .show > .nav-link,
.navbar-preferred .navbar-nav .active > .nav-link,
.navbar-preferred .navbar-nav .nav-link.show,
.navbar-preferred .navbar-nav .nav-link.active {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-preferred .navbar-toggler {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-preferred .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-preferred .navbar-text {
    color: rgba(255, 255, 255, 0.5);
}

.navbar-preferred .navbar-text a {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-preferred .navbar-text a:hover, .navbar-preferred .navbar-text a:focus {
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-menu:not(.bootstrap-datetimepicker-widget) {
    background-color: #004766;
}

/* If the dark mode/theme has been selected on this system */
/*@media (prefers-color-scheme: dark) {
    body, html, header, nav, element {
        background-color: black;
        color: white;
    }

    footer {
        background-color: var(--dark);
        color: #fff;
    }

    .text-muted-preferred {
        color: #ccc;
    }

    .bg-preferred {
        background-color: var(--dark);
        color: #ccc;
    }
    .text-preferred {
        color: #ccc;
    }

    .navbar-preferred .navbar-brand {
        color: rgba(255, 255, 255, 0.9);
    }

    .navbar-preferred .navbar-brand:hover, .navbar-preferred .navbar-brand:focus {
        color: rgba(255, 255, 255, 0.9);
    }

    .navbar-preferred .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.5);
    }

    .navbar-preferred .navbar-nav .nav-link:hover, .navbar-preferred .navbar-nav .nav-link:focus {
        color: rgba(255, 255, 255, 0.7);
    }

    .navbar-preferred .navbar-nav .nav-link.disabled {
        color: rgba(255, 255, 255, 0.3);
    }

    .navbar-preferred .navbar-nav .show > .nav-link,
    .navbar-preferred .navbar-nav .active > .nav-link,
    .navbar-preferred .navbar-nav .nav-link.show,
    .navbar-preferred .navbar-nav .nav-link.active {
        color: rgba(255, 255, 255, 0.9);
    }

    .navbar-preferred .navbar-toggler {
        color: rgba(255, 255, 255, 0.5);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .navbar-preferred .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-preferred .navbar-text {
        color: rgba(255, 255, 255, 0.5);
    }

    .navbar-preferred .navbar-text a {
        color: rgba(255, 255, 255, 0.9);
    }

    .navbar-preferred .navbar-text a:hover, .navbar-preferred .navbar-text a:focus {
        color: rgba(255, 255, 255, 0.9);
    }

    .dropdown-menu {
        background-color: var(--dark);
    }

    .form-control {
        background-color: #495057;
        color: #fff;
    }
    .form-control:focus {
        background-color: #83898E;
        color: #fff;
    }
}*/
