/*
 * File: site.css
 * Summary: Core application styles.
 *         Provides foundational styling for the FarmHand application:
 *         - Base layout and typography
 *         - Custom button styles (btn-farm-*)
 *         - Navigation components
 *         - Form elements and validation
 *         - Loading indicators
 *         - Utility classes
 *         - Responsive design rules
 * Last Edit Date: [To be filled]
 * Last Edit Purpose: [To be filled]
 */


a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0077D8;
}

a:not(.btn):hover {
  color: #005FAD !important;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.btn-success {
  border-radius: 1rem;
}

.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 */
}

.img-small {
    height: 100px;
    padding-left: .75rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.right-nav {
    margin-left: auto;
}

.btn-farm-primary {
    color: #fff;
    background-color: #0077D8;
    border-radius: 1rem;
    transition: all 0.2s ease;
}
    .btn-farm-primary:hover:not(:disabled) {
        color: #fff;
        background-color: #005FAD;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .btn-farm-primary:hover:is(:disabled) {
        color: #fff;
    }

.btn-farm-secondary {
    color: #0077D8;
    background-color: white;
    border-radius: 1rem;
    border: 1px solid #0077D8;
    transition: all 0.2s ease;
}
    .btn-farm-secondary:hover:not(:disabled) {
        color: #0077D8;
        background-color: rgba(0, 119, 216, .15);
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.btn-farm-warning {
    background-color: #E39943;
    color: #fff;
}
    .btn-farm-warning:hover {
        color: #fff;
        background-color: #ebb568;
    }

.btn-farm-danger {
    color: #ca4748;
    background-color: white;
    border: 1px solid #ca4748;
    border-radius: 1rem;
    transition: all 0.2s ease;
}
    .btn-farm-danger:hover:not(:disabled) {
        color: #fff;
        background-color: #ca4748;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.btn-farm-success {
    color: #fff;
    background-color: #40B274;
    border-radius: 1rem;
    border: 1px solid #40B274;
    transition: all 0.2s ease;
}
    .btn-farm-success:hover:not(:disabled) {
        color: #fff;
        background-color: #359560;
    }

.btn-farm-clock-in {
    background-color: #40B274;
    color: #fff;
}
    .btn-farm-clock-in:hover {
        color: #fff;
        background-color: #4ABC7F;
    }

.btn-link {
    color: #0077D8;
}
.td-1 {
    width: 8.33%;
}

.td-2 {
    width: 16.67%;
}

.td-3 {
    width: 25%;
}

.td-4 {
    width: 33.32%;
}

.td-5 {
    width: 41.65%;
}

.lds-roller {
    display: inline-block;
    position: fixed;
    width: 6%;
    height: 6%;
    left: 44%;
    top: 44%;
    z-index: 99000;
}

.lds-roller-admin {
    left: 55% !important;
}

    .lds-roller div {
        animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        transform-origin: 40px 40px;
    }

        .lds-roller div:after {
            content: " ";
            display: block;
            position: absolute;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #0077d8;
            margin: -4px 0 0 -4px;
        }

        .lds-roller div:nth-child(1) {
            animation-delay: -0.036s;
        }

            .lds-roller div:nth-child(1):after {
                top: 63px;
                left: 63px;
            }

        .lds-roller div:nth-child(2) {
            animation-delay: -0.072s;
        }

            .lds-roller div:nth-child(2):after {
                top: 68px;
                left: 56px;
            }

        .lds-roller div:nth-child(3) {
            animation-delay: -0.108s;
        }

            .lds-roller div:nth-child(3):after {
                top: 71px;
                left: 48px;
            }

        .lds-roller div:nth-child(4) {
            animation-delay: -0.144s;
        }

            .lds-roller div:nth-child(4):after {
                top: 72px;
                left: 40px;
            }

        .lds-roller div:nth-child(5) {
            animation-delay: -0.18s;
        }

            .lds-roller div:nth-child(5):after {
                top: 71px;
                left: 32px;
            }

        .lds-roller div:nth-child(6) {
            animation-delay: -0.216s;
        }

            .lds-roller div:nth-child(6):after {
                top: 68px;
                left: 24px;
            }

        .lds-roller div:nth-child(7) {
            animation-delay: -0.252s;
        }

            .lds-roller div:nth-child(7):after {
                top: 63px;
                left: 17px;
            }

        .lds-roller div:nth-child(8) {
            animation-delay: -0.288s;
        }

            .lds-roller div:nth-child(8):after {
                top: 56px;
                left: 12px;
            }

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.text-farm-primary {
    color: #257B9E;
}

.animated-icon2 {
    width: 30px;
    height: 20px;
    position: relative;
    margin: 0px;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
}

.animated-icon2 span {
display: block;
position: absolute;
height: 3px;
width: 100%;
border-radius: 9px;
opacity: 1;
left: 0;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transition: .25s ease-in-out;
-moz-transition: .25s ease-in-out;
-o-transition: .25s ease-in-out;
transition: .25s ease-in-out;
}

.animated-icon2 span {
    background: #343A3F;
}

.animated-icon2 span:nth-child(1) {
    top: 0px;
}
  
.animated-icon2 span:nth-child(2), .animated-icon2 span:nth-child(3) {
    top: 10px;
}

.animated-icon2 span:nth-child(4) {
    top: 20px;
}

.animated-icon2.open span:nth-child(1) {
    top: 11px;
    width: 0%;
    left: 50%;
}

.animated-icon2.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.animated-icon2.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.animated-icon2.open span:nth-child(4) {
    top: 11px;
    width: 0%;
    left: 50%;
}

.custom-hamburger {
    z-index: 1000;
    position: fixed;
    padding: 1rem;
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    top: 0;
    left: 0;
    right: 0;
}

.table-lite {
    margin-bottom: 0rem !important;
}

.table-lite th {
    border-top: none !important;
}

.table-lite td {
    border-top: none !important;
}

tr.crossed td {
   background-image: linear-gradient(to bottom right,  transparent calc(50% - 1px), red, transparent calc(50% + 1px)); 
}

.nevercrossed {
    background-image: none !important;
}

.mouse-pointer {
    cursor: pointer;
}

.formHelperText {
    color: gray;
    font-size: 0.8rem;
}
.formWarningText {
    color: red;
    font-size: 0.8rem;
}

.name-container {
    overflow-x: auto;
    max-height: 30%;
}

.empCard {
    background-color: #F0F0F0;
    margin: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-color: #dee2e6;
    border-width: 1px;
    border-style: solid;
}

.profile-smaller {
    height: 4rem;
}
.a-icon {
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer !important;
  }
  .a-icon:hover {
    color: #0077D8 !important;
  }
  .a-icon.delete-icon:hover {
    color: #ca4748 !important;
  }

.blue-icon {
    color: #0077D8 !important;
}

.ui-dialog {
    z-index: 10000 !important;
}

.ui-dialog-buttonset .ui-button:not(.btn-farm-danger) {
    color: #fff;
    background-color: #0077D8;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    border: none !important;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 1rem;
    margin-right: .1em;
}

    .ui-dialog-buttonset .ui-button:not(.btn-farm-danger):hover {
        color: #fff;
        background-color: #005FAD;
    }

.ui-dialog-buttonset .ui-button.btn-farm-danger {
    color: #ca4748;
    background-color: white;
    border: 1px solid #ca4748;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 1rem;
    margin-right: .1em;
}

    .ui-dialog-buttonset .ui-button.btn-farm-danger:hover {
        color: #fff;
        background-color: #ca4748;
    }

.thead-white {
    background-color: white;
}
.thead-white th {
    background-color: white;
}

.nav > li:hover:not(.no-hover) {
    background: #ebebeb;
    border-radius: 1rem;
}

.fixed-chosen .chosen-choices {
    min-width: 300px;
}

.fixed-chosen .chosen-drop {
    min-width: 300px;
}

.icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    background-color: #40B274;
    border-radius: 50%;
    color: white;
  }

.search-icon {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
body {
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #F0F0F0 !important;
}

.nav-item {
    width: fit-content;
}

.table-custom thead {
    background-color: white;
}

.table-custom tbody tr:nth-of-type(even) {
    background-color: white;
}

.daterangepicker td.active, .daterangepicker td.active:hover {
    background-color: #0077D8 !important;
    color: white !important;
}

.chosen-container .chosen-results li.highlighted {
    background-color: #0077D8 !important;
    color: white !important;
    background-image: none !important;
}

.august-shadow {
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.17);
}

/* .daterangepicker td.in-range {
    background-color: rgba(0, 119, 216, .25) !important;
    color: black !important;
} */

.blue-status-tag {
    background-color: rgba(0, 119, 216, .4);
}

.table {
    margin-bottom: 0 !important;
}

.table:not(.empty-message-exclude) tbody:not(:has(tr))::after {
    content: "Empty table";
    display: block;
    padding: .5rem;
    padding-left: 1rem;
    background-color: white;
    color: black;
    width: 50%;
    box-sizing: border-box;
    font-style: italic;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Chosen overrides to match Bootstrap form-control */
.chosen-container {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    width: 100% !important;
}

.chosen-container-multi .chosen-choices {
    min-height: calc(1.5em + 0.75rem + 2px) !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #495057 !important;
    background-color: #fff !important;
    background-image: none !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.chosen-container-multi.chosen-with-drop .chosen-choices {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-color: #80bdff !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.chosen-container-multi .chosen-choices li.search-field {
    /* Prevent the search field from expanding infinitely */
    max-width: 100%;
    width: auto !important; /* Override chosen's dynamic width */
}

.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
    /* Force the input to respect container width */
    width: 100% !important; /* Override chosen's dynamic width calculation */
    min-width: 100px; /* Provide minimum width for usability */
    max-width: 100%; /* Ensure it doesn't overflow container */
}

/* Ensure the choices container handles overflow properly */
.chosen-container-multi .chosen-choices {
    flex-wrap: wrap;
    display: flex;
    align-items: center;
}

.chosen-container .chosen-drop {
    border: 1px solid #80bdff !important;
    border-top: 0 !important;
    border-radius: 0 0 0.25rem 0.25rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.chosen-container .chosen-results {
    color: #495057 !important;
    font-size: 1rem !important;
    padding: 0.375rem 0 !important;
    margin: 0 !important;
}

.chosen-container .chosen-results li {
    padding: 0.375rem 0.75rem !important;
    line-height: 1.5 !important;
}

.chosen-container .chosen-results li.highlighted {
    background-color: #0077D8 !important;
    background-image: none !important;
}

.chosen-choices li.search-choice .search-choice-close {
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Error state */
.is-invalid + .chosen-container .chosen-choices {
    border-color: #dc3545 !important;
}

.is-invalid + .chosen-container.chosen-with-drop .chosen-choices {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Single Select Chosen Overrides */
.chosen-container-single .chosen-single {
    height: calc(1.5em + 0.75rem + 2px) !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #495057 !important;
    background: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.chosen-container-single .chosen-single span {
    margin-right: 26px !important;
}

.chosen-container-single .chosen-single div {
    width: 20px !important;
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.chosen-container-single .chosen-single div b {
    border-style: solid !important;
    border-width: 5px 4px 0 4px !important;
    border-color: #495057 transparent transparent transparent !important;
    background: none !important;
    position: absolute !important;
}

.chosen-container-single .chosen-search {
    padding: 0.375rem !important;
}

.chosen-container-single .chosen-search input[type="text"] {
    padding: 0.375rem 0.75rem !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    font-size: 1rem !important;
    background: none !important;
    margin: 0 !important;
    width: 100% !important;
}

.chosen-container-single .chosen-drop {
    margin-top: -1px !important;
    border: 1px solid #80bdff !important;
    border-radius: 0 0 0.25rem 0.25rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.chosen-container .chosen-results {
    margin: 0 !important;
    padding: 0.375rem !important;
    color: #495057 !important;
}

.chosen-container .chosen-results li {
    padding: 0.375rem 0.75rem !important;
    line-height: 1.5 !important;
}

.chosen-container .chosen-results li.highlighted {
    background: #0077D8 !important;
    color: white !important;
}

/* Disabled state */
.chosen-container-single.chosen-disabled {
    opacity: 0.6 !important;
}

.chosen-container-single.chosen-disabled .chosen-single {
    background-color: #e9ecef !important;
    cursor: not-allowed !important;
}

/* Focus/Active state */
.chosen-container-active .chosen-single {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.chosen-container-single .chosen-single abbr,
.chosen-container-single .chosen-search input[type="text"] {
    background-image: none !important;
}

.chosen-container-single .chosen-search::after,
.chosen-container-single .chosen-single::after {
    display: none !important;
}

.chosen-single div b {
    display: none !important;
}

/* Add this to ensure multi-select close icons work */
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
    background-image: url("../lib/chosen-js/chosen-sprite.png") !important;
    background-size: auto !important;
}

/* Add retina display support for multi-select */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) {
    .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
        background-image: url("../lib/chosen-js/chosen-sprite@2x.png") !important;
        background-size: 52px 37px !important;
    }
}

.persistent-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.persistent-scrollbar::-webkit-scrollbar-track {
    background: #F0F0F0;
}

.persistent-scrollbar::-webkit-scrollbar-thumb {
    background: #0077D8;
    border-radius: 4px;
}

.persistent-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #005FAD;
}

.sidebar-sticky {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .sidebar-main-menu {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1rem;
  }
  
  .sidebar-bottom {
    position: sticky;
    bottom: 0;
    background: white;
    width: 100%;
  }
  .sidebar-help-center {
    border-top: 1px solid #dee2e6;
  }

.search-container {
    /* Align items vertically */
    align-items: center;

}

.input-wrapper {
    /* Make the wrapper relative to position the icon absolutely */
    position: relative;
    width: 20rem;
}

.search-icon {
    /* Position the search icon inside the input */
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Prevent clicks on the icon */
}

/* Mobile layout adjustments for fixed header */
@media (max-width: 768px) {
    main.no-padding-custom {
        padding-top: 4rem !important;
        padding-right: 0 !important;
    }
}