/*
Colours:
#2A5E33 TCG Green (buttons)
#E4F2E4 Menu lozenge
#B0FFBE Shocking green (menu item hover colour)
#F0FFF0 Mint green (menu and cards with drop shadow)
*/

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

a:focus {
    border: 0px solid lightgray; /* Change border color */
    box-shadow: 0 0 0 0 white, 0 0 0 0.25rem #E4F2E4;
    outline: none; /* Remove default outline */
    border-radius: 4px; /* Optional rounded corners */
    padding-block: 5px;
    /*padding-block-start: 3px;*/
    /*padding-block-end: 3px;*/
}

span.btn-primary:active {
    background-color: #2A5E33 !important;
}

.btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    border: 1px solid lightgray; /* Change border color */
    box-shadow: 0 0 0 0 white, 0 0 0 0.25rem #E4F2E4;
}

.btn:focus, .btn:active:focus {
    box-shadow: 0 0 0 0 white, 0 0 0 0.25rem #E4F2E4 !important;
    background-color: #2A5E33;    
}

input:focus {
    border-color: #719ECE;
    outline: none;
}

.form-select:focus {
    border: 1px solid lightgray; /* Change border color */
    box-shadow: 0 0 0 0 white, 0 0 0 0.25rem #E4F2E4;
    outline: none; /* Remove default outline */
    border-radius: 4px; /* Optional rounded corners */
}

.table-header-link {
    color: #000;
    border: none;
    background-color: #fff;
    margin-left: -6px;
}

.table-header-link:focus {
    color: #000;
    border: none;
    background-color: #fff;
    margin-left: -6px;
    box-shadow: 0 0 0 0 white, 0 0 0 0.25rem #E4F2E4;
    outline: none; /* Remove default outline */
    border-radius: 4px; /* Optional rounded corners */
}

.pager-buttons {
    color: #000;
    border: none;
    background-color: #F0FFF0;
}

.pager-buttons:focus {
    color: #000;
    border: none;
    background-color: #F0FFF0;
    border: 0;
    box-shadow: 0 0 0 0 white, 0 0 0 0.25rem #E4F2E4;
    outline: none; /* Remove default outline */
    border-radius: 4px; /* Optional rounded corners */
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

/* Style for checked state */
    input[type="checkbox"]:checked {
        background-color: #2A5E33;
    }

/* Change styles for autofilled input fields */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important; /* Covers the autofill background */
    -webkit-text-fill-color: #000 !important; /* Changes the text color */
    transition: background-color 5000s ease-in-out 0s; /* Prevents quick color changes */
}

.no-resize {
    resize: none;
}

/* Width of the scrollbar */
::-webkit-scrollbar {
    width: 15px;
}

/* Track (background) of the scrollbar */
::-webkit-scrollbar-track {
    background: #E4F2E4;
}

/* Handle (draggable part) of the scrollbar */
::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #fff; /* #F0FFF0 Mint green */
    font-family: 'Rubik', sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.navbar {
    background-color: #2A5E33; /* #B0FFBE shocking green */ /* #878787 Grey */
    max-height: 80px;
}

.navbar .navbar-brand {
    color: #000 !important; /* Change color to #800000 */
        
}

.navbar > li > a {
    color: #000 !important;
}

a {
    color: #000000; /*#62ABFF;*/ /* orange: #FF8C00*/
}

.btn-outline-secondary, .btn-primary {
    padding: 0.375rem 0.75rem; /* Adjust padding */
    border-width: 1px; /* Ensure consistent border width */
}

.btn-primary, .btn-primary:hover {
    background-color: #2A5E33; /* #2A5E33 TCG green */ 
    color: white;
    border: 0;
    /*transition: 0.2s;*/
}

.bg-primary {
    background-color: #2A5E33 !important; /* Replace with your desired color */
}

.btn-secondary, .btn-secondary:hover {
    border-color: #2A5E33;
    border-width: 2px;
    background-color: transparent;
    color: #000 !important;
    height: 38px;
}

span.btn-secondary:active {
    background-color: #f0fff0 !important;
}

/* table stripe accent colour */
.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th {
    background-color: #fcfcfc;
}

.table-striped {
    --bs-table-striped-bg: #fcfcfc;
    border: 1px solid lightgray;
}

/*This is to round the corners of the table, but it's not needed if inside the rounded dcaDataSection*/
/*table {
    border-collapse: separate;
    border: solid black 1px;
    border-radius: 15px;
    -moz-border-radius: 15px;
    padding: 0px;
    border-spacing: 0px;
}
th:first-of-type {
    border-top-left-radius: 15px;
}
th:last-of-type {
    border-top-right-radius: 15px;
}
tr:last-of-type td:first-of-type {
    border-bottom-left-radius: 15px;
}
tr:last-of-type td:last-of-type {
    border-bottom-right-radius: 15px;
}*/

table {
    width: 100%;
    table-layout: fixed;
}

td, th {
    white-space: nowrap; /* Prevents wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Adds ... for overflow */
}

/* Used for table headers when sorting */
.btn-link, .btn-link:hover {
    color: black;
    text-decoration: none;
    padding: 0px;
}

.ps-md-5 {
    padding-left: 300px !important;
}

/* The side navigation menu */
.sidenav {
    height: 100%; /* 100% Full-height */
    width: 110px; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0; /* Stay at the top */
    left: 0;
    background-color: #F0FFF0; /*#F0FFF0 Mint green*/
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 175px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
    box-shadow: 10px 0 15px rgba(0, 0, 0, 0.2); /* Adjust values as needed */
    overflow: visible; /* Need this to be able to see the dropdown menu when the side menu is closed, but also need overflow: hidden on the sidenav links */
}

/* The navigation menu links */
.sidenav a {
    padding: 8px 8px 8px 32px;
    margin: 0px 0px 20px 0px;
    text-decoration: none;
    font-size: 25px;
    color: #000;
    display: block;
    transition: 0.3s;
    border: 0;
    overflow: hidden; /* Prvents menu item text from going outside of the side menu when it is closed */
}

.sidenav a:hover {
    color: #000 !important;
    border: 0 !important;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0) !important;
}

.sidenav a:focus {
    color: #000 !important;
    border: 0 !important;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0) !important;
}

.dcaSideMenuOpen {
    width: 300px;
}

.dcaSideMenuClosed {
    width: 110px;
    /*min-width: 86px !important;*/ /*86px*/
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
    /*color: #f1f1f1;*/
    background-color: #B0FFBE;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 5px;
    font-size: 36px;
    margin-top: 70px;
    margin-left: 25px;
}

.sidenav .closebtn:hover {
    background-color: #F0FFF0;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#DCAMainContent {
    transition: .5s;
    padding: 20px;
    margin-right: 100px;
    /*padding-left: 300px !important;*/
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }
}

.dcaMenuItemBackground {
    background-color: #E4F2E4;
    /*border-bottom-left-radius: 45px;*/
    border-radius: 15px;
}

.dcaMenuItemMessagesBackground {
    background-color: #F0FFF0;
    /*border-bottom-left-radius: 45px;*/
    border-radius: 15px;
    
}

.dropdown a:focus, .dropdown a:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 15px;
}

#nav ul.UtilitiesSubMenu {
    display: none;
}

#nav ul.visible {
    display: block;
}



/* DROPDOWN MENU*/
/*.dropdown {
    position: relative;
    display: inline-block;
}*/

/*
.dropdown-content {
    /*display: none;*/
    /*position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        .dropdown-content a:hover {
            background-color: #ddd;
        }

.show {
    display: block;
    opacity: 1;
}*/

.dropdown-content {
    background-color: #000;
    
}

.dcaDropdownMenu {
    background-color: transparent;
    /*z-index: 1000;
    position: absolute;*/
    border: 0;
    width: 276px;
    max-height: 0;

}

.dcaDropdownMenu.open {
    max-height: 300px;
}

.dcaDropdownMenu a {
        transition: 0.3s;
    }

.dcaDropdownMenu a:hover {
    transition: 0.3s;
}

.dropdown-item {
    background-color: #E4F2E4;
    color: #000;
    /*border-bottom-left-radius: 45px;*/
    border-radius: 15px;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #B0FFBE;
    color: #000;
}

.dropdown-menu .dropdown-item {
    font-size: 19px;
    padding: 8px 8px 8px 32px;
    margin: 0px 0px 0px 0px;
}

/*This is the centered mint green container that the fields are in*/
.dcaContainer {
    /*border-bottom-left-radius: 45px;*/
    /*border-radius: 15px;*/
    box-shadow: 15px 16px 15px rgba(0, 0, 0, 0.2); /* left offset, top offset, shadow size, colour  */
    background-color: #F0FFF0;
    /*border: 1px solid lightgrey;*/ /* Having this border means there is a border at the bottom of the active tab */
}

.dcaMIContainer {
    margin-left: -80px;
    /*border-bottom-left-radius: 45px;*/
    /*border-radius: 15px;*/
    /*box-shadow: 15px 16px 15px rgba(0, 0, 0, 0.2);*/ /* left offset, top offset, shadow size, colour  */
    /*background-color: #F0FFF0;*/
    /*border: 1px solid lightgrey;*/ /* Having this border means there is a border at the bottom of the active tab */
}


/*This is the panels that each data section sit in*/
.dcaDataSection {
    border: solid;
    border-color: lightgray;
    border-width: thin;
    border-radius: 15px;
    /*box-shadow: 10px 5px 15px rgba(0, 0, 0, 0.2);*/ /* left offset, top offset, shadow size, colour  */
    background-color: #fff; /* #E4F2E4 menu item lozenge colour, #F0FFF0 Mint green*/
    padding-top: 15px;
    padding-bottom: 15px;
}

.sliderSpan, .sliderSpan:focus, .sliderSpan:active {
    color: #000 !important;
    border: 0 !important;
    border: none !important;
}

.dca-field-label {
    font-weight: normal;
}

.dca-section-header-label {
    font-weight: bold;
    font-size: large;
}

.dca-gradient-line {
    position: absolute;
    height: 4px;
    width: 800px;
    background-color: transparent;
    background-image: -webkit-linear-gradient(0deg, #F0FFF0 10%, transparent 100%);
}

.dca-add-customer {
}

.dca-remove-customer {

}

input[type="text"], textarea {
    background-color: #fff;
}

.help-text {
    font-size: small;
    color: grey;
}

.nav-tabs {
    border-bottom: none !important;
}

.nav-tabs .nav-link {
    font-size: inherit; /* Ensure consistent font size */
    padding: 0.5rem; /* Maintain consistent padding */
    padding-left: 25px;
    padding-right: 25px;
    color: black;
    box-shadow: 0 0 0 0 white, 0 0 0 0rem #F0FFF0;
    background-color: #E4F2E4; /* Lozenge */
    transition: 0.3s;
    border-top: 1px solid lightgrey;
    border-left: 1px solid lightgrey;
    border-right: 1px solid lightgrey;
    border-bottom: none;
}

.nav-tabs .nav-link:hover {
    background-color: #B0FFBE;
    border-top: 1px solid lightgrey;
    border-left: 1px solid lightgrey;
    border-right: 1px solid lightgrey;
    border-bottom: none;
    transition: 0.3s;
}

.nav-tabs .nav-link.active {
    border-bottom: 1px solid #F0FFF0;
    background-color: #F0FFF0 !important;
    border-bottom: none;
}

.dca-tab-shadow {
    box-shadow: 15px 16px 15px rgba(0, 0, 0, 0.2);
}

.fade {
    background-color: #F0FFF0;
}

.input-group.required .col-form-label:after {
    content: " *";
    color: red;
}

/*
Additional styles from Jane's dashboards
*/
th.sortheader {
    position: relative;
    cursor: pointer;
    background-color: #e4f2e4; /*  #7e57c2 Purple*/
    ; /* Deep Purple */
    /*color: pink;*/
}


.success-status {
    color: #388e3c; /* Darker Green */
}

.pending-status {
    color: #7e57c2; /* Deep Purple */
}

.header-status {
    color: #7e57c2;
}

.dca-table thead {
    background-color: #7e57c2 !important; /* Deep Purple */
    color: white;
    font-weight: bold;
}

/* Document upload button */
input[type="file"]::file-selector-button {
    background-color: #2A5E33; /* #2A5E33 TCG green */
    color: white;
    border: 0;
    border-radius: 5px;
    padding: 6px 12px;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background-color: #2A5E33; /* #2A5E33 TCG green */
    color: white;
    border: 0;
}

input[type="file"]::file-selector-button:focus {
    box-shadow: 0 0 0 0 white, 0 0 0 0.25rem #E4F2E4 !important;
    background-color: #2A5E33;
}

.dca-message-row {
    cursor: pointer;
}

.dca-blank-icon {
    display: inline-block;
    width: 74px;
    height: 67px;
    background: transparent;
}

.preserve-whitespace {
    white-space: pre-wrap;
}

.video-container {
    position: relative;
    overflow: hidden; /*Prevents the video from overlapping the login fields when the screen is made smaller*/
    padding: 0;
}

.responsive-video {
    position: absolute;
    z-index: 1;
    object-fit: cover;
    width: auto;
    height: auto;

    /*Set both to 100% Comment out to have the video a smaller size, min width = 90%, min height 20% makes the images the same height as the login block*/
    min-width: 100%;
    min-height: 100%;
}

