/********** Template CSS **********/
:root {
    --white: #ffffff;
    --primary: #EB1616;
    --secondary: #191C24;
    --light: #6C7293;
    --dark: #000000;
    --blue-1: #085590;
    --blue-2: #194376
    ;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-light {
    background-color: #ffffff !important;
}

.blue-1-site {
    color: var(--blue-1) !important;
}

/* a {
    color: var(--blue-1) !important;
} */

.text-blue {
    color: var(--blue-1) !important;
}

.d-lg-inline-flex {
    font-weight: bolder;
    color: var(--blue-1) !important;
}

.dropdown-item {
    font-weight: bolder;
    color: var(--blue-1) !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Form ***/
.form-control {
    background-color: #ffffff;
}

.form-control:focus {
    /* color: #6C7293; */
    background-color: #ffffff;
    border-color: none;
    outline: auto;
    box-shadow: none;
    /* appearance: auto !important; */
}

.form-label {
    margin-bottom: 0.3rem !important;
    margin-top: 0.5rem !important;
}

.form-checkbox {
    appearance: auto !important;
}

.appearance-yes {
    appearance: auto !important;
}

/*** Create protocol form ***/
#search-inventory-list {
    background: var(--white);
    border: 1px solid var(--dark);
    border-radius: 5px;
    margin-top: 10px;

    max-height: 162px;
    overflow: auto;
}

#search-inventory-list .item {
    padding: 3px 8px;
    border: 1px solid var(--light);
    cursor: pointer;
}

#search-inventory-list .item:hover {
    background-color: var(--blue-1);
    color: var(--white);
}

#search-inventory-list .item:active {
    background-color: var(--blue-2);
    color: var(--white);
}

#search-inventory-list .item:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

#search-inventory-list .item:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

#search-inventory-list .empty-item {
    padding: 3px 8px;
}

.added-inventory-list .inventory-add-item  {
    border: 2px solid var(--blue-2) !important;
    padding: 5px !important;
    border-radius: 5px !important;
}

.inventory-add-item .controls {
    font-size: 24px !important;
}

/*** Allert ***/

.alert-error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-square-mini {
    width: 28px;
    height: 28px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-square-mini,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

.btn-blue {
    background-color: var(--blue-1);
    color: #ffffff;
}

.btn-blue:hover {
    background-color: var(--blue-2);
}


/*** Layout ***/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    height: 100vh;
    overflow-y: auto;
    background: var(--secondary);
    transition: 0.5s;
    z-index: 999;
    box-shadow: 0px 0 0 0.25rem rgba(0,0,0,0.25) !important;
}

.content {
    margin-left: 300px;
    min-height: 100vh;
    background: var(--dark);
    transition: 0.5s;
}

.helptext {
    display: none !important;
}

/*** Table ***/
tbody.link-rows tr:hover {
    cursor: pointer;
}

tbody.link-rows tr:hover {
    background: var(--blue-1);
    color: var(--white);
}

/*** Media ***/
@media (min-width: 992px) {
    .sidebar {
        margin-left: 0;
    }

    .sidebar.open {
        margin-left: -300px;
    }

    .content {
        width: calc(100% - 300px);
    }

    .content.open {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -300px;
    }

    .sidebar.open {
        margin-left: 0;
    }

    .content {
        width: 100%;
        margin-left: 0;
    }
}


/*** Navbar - Content ***/
.content .navbar {
    box-shadow: 20px 0 0 0.25rem rgba(0,0,0,0.25);
}


/*** Navbar - Sidebar ***/
.sidebar .navbar .navbar-nav .nav-link {
    padding: 7px 20px;
    color: var(--blue-1);
    font-weight: bolder;
    border-left: 3px solid var(--secondary);
    border-radius: 0 30px 30px 0;
    outline: none;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--blue-1);
    background: var(--dark);
    border-color: var(--blue-1);
}

.sidebar .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
    background: var(--secondary);
}

.sidebar .navbar .dropdown-toggle::after {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
    padding-left: 25px;
    border-radius: 0 30px 30px 0;
    color: var(--light);
}

.sidebar .navbar .dropdown-item:hover,
.sidebar .navbar .dropdown-item.active {
    background: var(--dark);
}

.content .navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 12px 0;
    color: var(--light);
    outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
    color: var(--blue-1);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}

.content .navbar .dropdown-item {
    color: var(--light);
}

.content .navbar .dropdown-item:hover,
.content .navbar .dropdown-item.active {
    background: var(--dark);
}

.content .navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.content .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 575.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }
}


/*** Date Picker ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--blue-1);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--blue-1);
}


/*** Testimonial ***/
.progress .progress-bar {
    width: 0px;
    transition: 2s;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 5px solid var(--blue-1);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--dark);
    border-color: var(--blue-1);
}

.page-link {
    color: var(--blue-1) !important;
}


/* Draft proposal */
.border-light {
    border: 3px solid var(--light) !important;
    border-radius: 3px;
}

.open-close-question-show {
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50%;
    padding: 4px 8px 4px 9px;
}

.questio-separator {
    height: 3px !important  ;
    margin: 5px 0px;
    color: var(--blue-2);
    opacity: 0.5;
}

.draft-proposals-file {
    color: var(--white) !important;
    font-size: 4em;
    width: 100px;
    text-align: center;
}

.draft-proposals-file .name {
    font-size: 13px;
}

.blink {
    animation: blinker 1s linear infinite;
    color: red;
    font-size: 16px;
    font-weight: bold;
    font-family: sans-serif;
}
  
@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.answer {
    color: var(--white);
}


.projects-table tr td:first-child {
    font-weight: bold;
    color: var(--blue-1);
}

.projects-table tr td:nth-child(2) {
    padding: 10px 25px !important;
}

/*  */
table.hover-row tbody tr:hover {
    background: #f5f5dc !important;
    cursor: pointer;
}

.table-info-dialog {
    display: none;
    position: fixed;
    z-index: 1020;
    /* padding-top: 100px; */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.7);
}

/* Modal Content */
.table-info-dialog .info-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0 20px 20px 20px;
    border: 1px solid #888;
    border-radius: 5px;
    width: 50%;
    min-height: 50vh;
    overflow: auto;
}

@media (max-width: 575.98px) {
    .table-info-dialog .info-content {
        width: 90%;
    }
}

/* The Close Button */
.table-info-dialog .close-dialog {
    color: var(--primary);
    /* float: right; */
    text-align: end;
    font-size: 28px;
    font-weight: bold;
}

.table-info-dialog .close-dialog:hover,
.table-info-dialog .close-dialog:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.table-info-dialog .info-content table th {
    text-align: end;
    padding: 5px 10px;
}

.table-info-dialog .info-content table td {
    padding: 5px 10px;
    width: 100%;
}

.table-info-dialog .info-content table th,
.table-info-dialog .info-content table td {
    border: 1px solid var(--light);
}

.form-err-msg {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.report-context-dialog {
    display: none;
    position: fixed;
    z-index: 1020;
    /* padding-top: 100px; */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.7);
}

.report-context-dialog .report-context {
    background-color: #fefefe;
    margin: auto;
    padding: 0 20px 20px 20px;
    border: 1px solid #888;
    border-radius: 5px;
    width: 50%;
    min-height: 50vh;
    overflow: auto;
}

@media (max-width: 575.98px) {
    .report-context-dialog .report-context {
        width: 90%;
    }
}

.report-context-dialog .close-dialog {
    color: var(--primary);
    /* float: right; */
    text-align: end;
    font-size: 28px;
    font-weight: bold;
}

.report-context-dialog #context {
    height: 50vh;
    overflow-x: scroll;
}

.report-context-dialog .close-dialog:hover,
.report-context-dialog .close-dialog:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* System messages */
#id_sent_to {
    max-height: 200px;
    overflow: auto;
}

/* Scrollbar */
/* width */
::-webkit-scrollbar {
width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px var(--light); 
border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
background: var(--blue-1);
border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--blue-2);
}
