﻿:root {
    --blue-primary-color: #4fa1ff;
    --darker-blue-primary-color: #4186d6;
    --red-primary-color: rgba(217, 22, 0, 0.67);
    --darker-red-primary-color: #af3b00;
    --site-light-gray: #d7d7d7;
    --site-gray: #b9b9b9;
    --site-dark-gray: #9b9b9b;
    --site-darkest-gray: #676a6c;
    
    --site-primary-color: var(--red-primary-color);
}

/* Remove bullet point in validation error lists */
div.text-danger.validation-summary-errors > ul > li {
    list-style: none;
}

/* Remove indentation in validation error lists */
div.text-danger.validation-summary-errors > ul {
    padding-left: 0;
}

.modal .select2-container {
    z-index: 99999;
    width: 100% !important; /* Full width in modals because the select2 library does not do a great job at matching the original select element's size */
}

/* Primary color set to blue instead of green (change color user requirement) */
.text-link-color {
    color: #007bff;
}
.btn-primary {
    background-color: #4fa1ff;
    border-color: #4fa1ff;
    color: #fff !important;
}


.btn-primary.btn-outline {
    color: #4fa1ff !important;
    background-color: transparent;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #4186d6;
    border-color: #4186d6;
    color: #fff !important;
}

.page-item.active .page-link {
    background-color: #4fa1ff;
    border-color: #4fa1ff;
}

.nav > li.active {
    border-left: 4px solid #4fa1ff;
    background: #293846;
}

.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, .show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #4fa1ff;
    border-color: #4fa1ff;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #4fa1ff;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #4fa1ff;
}

.form-control:focus,
.single-line:focus {
    border-color: #4fa1ff;
}

.pace .pace-progress {
    background: #4fa1ff;
}

/* Make it easier to see what input is focused (particularly for buttons)*/
/*.btn-primary:focus {*/
/*    background-color: #4fa1ff;*/
/*}*/

.btn-secondary:focus {
    background-color: #586169;
}

/* Search results styles */
.pt-2.border.ibox-content {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
}

.dropdown-menu > li > a {
    padding-left: 10px;
    font-size: 13px;
}

a.navbar-minimalize.minimalize-styl-2.btn.btn-primary {
    margin-left: 0;
}

.navbar-header {
    margin-left: 20px;
    position: relative;
}

.display-none {
    display: none;
}

/* Make the calendar-picker-indicator the full size of the textbox date element
 * This allows to open the calendar date picker onclick on textbox, without JavaScript 
 */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

a.btn.btn-secondary, a.btn.btn-secondary:hover {
    color: #fff;
}

/* Display multiline fields */
.multiline {
    white-space: pre-wrap;
}

/* Error pages*/
.middle-box {
    padding-bottom: 40px;
}

.middle-box h1 {
    margin-bottom: 20px;
    margin-top: 0;
}

.error-desc {
    padding-bottom: 20px;
}

.search-results {
    box-shadow: 0 0 3px rgba(86, 96, 117, 0.7);
    top: 20px !important;
}

.jstree-default .jstree-clicked {
    background: inherit;
    box-shadow: inset 0 0 0 transparent;
    color: #4fa1ff;
}

/* Fix tooltip flickering problem */
.tooltip {
    pointer-events: none;
}

label.required:after
{
    color: #ff0c00;
    content: ' *';
    display: inline;
    vertical-align: middle;
}


/* Set buttons and links in page-heading to match height of other text*/
.page-heading .col a,
.page-heading .col button
{
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Global SKIN config */
/* Red and Gray color scheme! */
.skin {
    background-color: black;
}

.skin .nav-header {
    background-color: black;
    background-image: none;
}

.skin ul.nav-second-level {
    background-color: inherit;
}

.skin .nav > li.active {
    border-left: 4px solid #ff0000;
    background-color: #31333b;
}

.nav.nav-second-level > li.active {
    border: none;
}

.navbar-default .nav a:not(.dropdown-item):hover, 
.navbar-default .nav a:not(.dropdown-item):focus {
    color: white;
}

/* Primary color for buttons set to red. TODO remove blue section above to avoid overriden rules if keeping these colors */
.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled
{
    background-color: var(--red-primary-color);
    border-color: var(--red-primary-color);
    color: #fff !important;
}

.btn.disabled, .btn:disabled {
    opacity: 1;
}

.btn-primary.btn-outline {
    color: var(--blue-primary-color) !important;
    border-color: var(--blue-primary-color);
    background-color: transparent;
}

.btn-primary:not(.btn-outline):hover, 
.btn-primary:not(.btn-outline):focus, 
.btn-primary:not(.btn-outline):active
{
    background-color: var(--darker-red-primary-color);
    border-color: var(--darker-red-primary-color);
    color: #fff !important;
}

.btn-primary.btn-outline.btn-primary-outline {
    border-color: var(--red-primary-color);
    color: var(--red-primary-color) !important;
}

.btn-primary.btn-outline.btn-primary-outline:hover,
.btn-primary.btn-outline.btn-primary-outline:focus,
.btn-primary.btn-outline.btn-primary-outline:active
{
    background-color: var(--red-primary-color);
    border-color: var(--red-primary-color);
    color: #fff !important;
}

/* Keep outline buttons blue to keep consistency */
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--darker-blue-primary-color);
    border-color: var(--darker-blue-primary-color);
    color: #fff !important;
}

.page-item.active .page-link {
    background-color: var(--red-primary-color);
    border-color: var(--red-primary-color);
}

.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, .show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: var(--darker-red-primary-color);
    border-color: var(--darker-red-primary-color);
}

.pagination > .active > a:hover,
.pagination > .active > a:focus{
    color: #fff;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--red-primary-color);
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--red-primary-color);
}

.form-control:focus,
input:focus,
.form-control-static:focus,
.single-line:focus {
    border-color: var(--red-primary-color);
}

input:focus {
    margin: 1px;
    border-width: 1px;
}

.pace .pace-progress {
    background: var(--red-primary-color);
}

.switchery {
    background-color: var(--red-primary-color);
    border-color: var(--red-primary-color);
    box-shadow: var(--red-primary-color) 0 0 0 16px inset;
    transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.sk-spinner-three-bounce div {
    background: var(--red-primary-color);
}

/* Checkbox color */
.checkbox-info input[type="checkbox"]:checked + label::before,
.checkbox-info input[type="radio"]:checked + label::before {
    background: var(--red-primary-color);
    border-color: var(--red-primary-color);
}

.checkbox-info input[type="checkbox"]:focus + label::before,
.checkbox-info input[type="radio"]:focus + label::before {
    border-color: var(--red-primary-color);
}

.checkbox-info:focus,
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
    box-shadow: none;
}

.switchery
{
    outline-color: var(--red-primary-color);
}

.nav-tabs .nav-link.active:focus, 
.nav-tabs .nav-link.active:hover,
.nav-tabs .nav-link:not(.active):focus,
.nav-tabs .nav-link:not(.active):hover,
.text-link-color:focus
{
    outline: none;
    color: var(--red-primary-color);
}

/* Default background color */
.gray-bg, .bg-muted, .navbar-fixed-top, .navbar-static-top {
    background-color: #f3f2f4;
}


/* Reset search bar display based on size (display no matter the screen size) */
@media {
    .navbar-form-custom {
         display: inherit; 
    }
}

/* Change input boxes sizes when they are in a flex container */
.d-flex input {
    min-width: 0;
    width: 100%;
}

/* Remove extra padding that prevents readability on form controls when screen is too small */
@media (max-width: 450px){
    .form-control {
        padding: 6px 3px;
    }
}

/* Tabs placement responsiveness */
@media (max-width: 1024px) {
    .nav-tabs {
        flex-wrap: unset;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
    }
}

/* Spacing with flex td boxes */
td.d-flex a,
td.d-flex button
{
    margin-left: 2px;
    margin-right: 2px;
}

/* Dashboard calendar responsiveness */
@media (max-width: 500px) {
    #dashboard-calendar {
        width: 500px;
    }
    .calendar-container {
        overflow-x: scroll;
    }
}

/* Full calendar style */

.fc-button:disabled {
    opacity: 1;
}

.fc-button-primary {
    background-color: var(--site-light-gray);
    border-color: var(--site-light-gray);
    color: var(--site-darkest-gray);
}

.fc-button-primary:hover,
/*.fc-button-primary:focus,*/
.fc-button-primary:active,
.fc-button-primary:not(:disabled):active,
.fc-button-primary:not(:disabled):active:focus
/*.fc-button-primary:not(:disabled).fc-button-active:focus*/
{
    background-color: var(--site-dark-gray);
    border-color: var(--site-dark-gray);
    box-shadow: none;
}

.fc-button-primary:not(:disabled).fc-button-active:focus,
.fc-button-primary:focus
{
    box-shadow: none;
}

.fc-button-primary:disabled,
.fc-button-primary:not(:disabled).fc-button-active,
.fc-button-primary.fc-button-active{
    background-color: var(--red-primary-color);
    border-color: var(--red-primary-color);
}

.mail-text {
    border: 1px solid var(--site-gray);
}

/* Wizard */
.wizard > .steps .current a, 
.wizard > .steps .current a:hover, 
.wizard > .steps .current a:active, 
.wizard > .actions a, 
.wizard > .actions a:hover, 
.wizard > .actions a:active {
    background: var(--red-primary-color);
}

/* Select2 multi tags background */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #ffffff;
}