.loading {
    z-index: 2147483647;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}
.loading-content {
    position: fixed;
    border: 16px solid #f3f3f3;
    border-top: 16px solid #FD7E14;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 2s linear infinite;
}

/* ThreeSixty Black & Orange Theme Enhancement */
.loading {
    background-color: rgba(0, 0, 0, 0.7);
}
        
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

    
.main-sidebar { 
    position: fixed !important;
    /*width: 200px !important;*/
}

/* Responsive Sidebar Toggle - Hide hamburger on smaller screens */
@media (max-width: 1920px) {
    li.nav-item:has(a[data-widget="pushmenu"]),
    a.nav-link[data-widget="pushmenu"],
    [data-widget="pushmenu"] {
        display: none !important;
        visibility: hidden !important;
    }
}

.clickable-row {
    cursor:pointer;
}
.cursor-disabled {
  cursor:not-allowed;
}
/*.cursor-trash {
    cursor: url('data:image/x-icon;base64,AAACAAEAICAAAAAAAACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/wAAAP8AAAAuAAAAHAAAAAkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXAAAA/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/AAAA/wAAABUAAAAMAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/wAAABIAAAAiAAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAAYAAAABgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AAAA/wAAABIAAAAZAAAAEAAAAP8AAAAKAAAAEQAAABcAAAAVAAAAFQAAAP8AAAAXAAAAEQAAAAoAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP8AAAD/AAAA/wAAAAgAAAAFAAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAAcAAAAFAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA///////////////////////////////////////////////////////////////////////////////////////////wB///4AP//+AD///gA///4AP//+AD///gA///4AP//+AD///gA///wAH//8AB//9gA///O+///xgP//8='), auto;
}*/

.nintyWide {
    width: 90%;
}

.w-05 {
    width: 5%!important;
}
.w-10 {
    width: 10%!important;
}
.w-15 {
    width: 15%!important;
}
.w-20 {
    width: 20%!important;
}

.mt3p {
    margin-top:3px!important;
}

table td {
    vertical-align: middle!important;
}

.tsTable {
    border: 1px solid #aaa;
    padding: 6px;
    border-collapse: collapse;
}
.tsTable td {
  border: 1px solid #aaa;
  padding: 0px 6px;
  border-collapse: collapse;
}
.tsTable th {
  border: 1px solid #aaa;
  padding: 6px;
  border-collapse: collapse;
}

.cursor-pointer {
    cursor: pointer !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    user-select: none;
}

.cursor-help {
  cursor: help;
}

.cursor-default {
    cursor: default;
}

.fc-borderless, .fc-borderless-new {
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.25rem 0.25rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    /*background-color: #fff;*/
    background-clip: padding-box;
    border: 0px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: inset 0 0 0 transparent;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    position: relative;
}

.fc-borderless:hover {
    border-color: #1D1D1B;
    box-shadow: inset 0 0 8px rgba(29,29,27, 0.2);
    background-image: url('/img/icons/pen.png');
    background-position: bottom 50% right 17px;
    background-repeat: no-repeat;
}

.fc-borderless-penless {
  width: 100%;
  height: calc(2.25rem + 2px);
  padding: 0.25rem 0.25rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  /*background-color: #fff;*/
  background-clip: padding-box;
  border: 0px solid #ced4da;
  border-radius: 0.25rem;
  box-shadow: inset 0 0 0 transparent;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  position: relative;
}

.fc-borderless-penless:hover {
  border-color: #1D1D1B;
  box-shadow: inset 0 0 8px rgba(29,29,27, 0.2);
}

.projectTeamMembers:hover {
    background-color: rgba(0,0,0,.05);
    /*background-image: url('/img/icons/pen.png');
    background-position: bottom 50% right 17px;
    background-repeat: no-repeat;*/
}

.fc-borderless:focus {
    outline: none;

}

.fc-large-title {
    font-size: 2.4em !important;
}

.fc-search {
    width: 90%;
    float: right;
}

.confirm-success {
    background-color: #80FF9D;
}

.input-icon{
    position: absolute;
    right: 3px;
    top: calc(50% - 0.5em); /* Keep icon in center of input, regardless of the input height */
  }
  input{
    padding-right: 17px;
  }
  .input-wrapper{
    position: relative;
  }

.btn-orange {
    color: #fff;
    background-color: #FD7E14;
    border-color: #FD7E14;
    box-shadow: none;
}
.btn-orange:hover {
    color: #fff;
    background-color: #F47A10;
    border-color: #F47A10;
    box-shadow: none;
}
.btn-outline-orange {
    color: #FD7E14;
    background-color: #fff;
    border-color: #FD7E14;
    box-shadow: none;
}
.btn-outline-orange:hover {
    color: #fff;
    background-color: #FD7E14;
    border-color: #FD7E14;
    box-shadow: none;
}
.text-orange {
    color: #FD7E14;
}
.text-light-gray {
    color: #E5E5E5;
}

.card-orange .card-outline {
    border-top: 3px solid #FD7E14;
}

/* Purple */
.btn-purple {
  color: #fff;
  background-color: #993399;
  border-color: #993399;
  box-shadow: none;
}
.btn-purple:hover {
  color: #fff;
  background-color: #903195;
  border-color: #903195;
  box-shadow: none;
}
.text-purple {
  color: #993399;
}
.card-purple .card-outline {
  border-top: 3px solid #993399;
}



.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: #fff;
    background-color: #FD7E14;
}

.nav-pills .nav-link:not(.active):hover{color:#FD7E14}

/* TABS */
.tab {
  font-size: 1.3em !important;
}
.projectsTab:not(.active):hover {
    color: #28a745!important;
}
.projectsTab.active {
    background-color: #28a745!important;
}
/**/
.contactsTab:not(.active):hover {
  color: #FFC107!important;
}
.contactsTab.active {
  background-color: #FFC107!important;
}
/**/
.infoTab:not(.active):hover {
    color: #007bff!important;
}
.infoTab.active {
    background-color: #007bff!important;
}
/**/
.chatTab:not(.active):hover {
  color: #6f42c1!important;
}
.chatTab.active {
  background-color: #6f42c1!important;
}
/**/
.uploadTab {
  color: #000!important;
}

/* For Google Maps Autocomplete in modal */
div.pac-container {
    z-index: 1050 !important;
}


/* DATATABLE CONTROL STYLING */
.dataTables_length select.custom-select {
    padding-right: 1.5rem !important;
    min-width: 60px;
}

/* Custom single arrow sort icons for all DataTables */
table.dataTable thead th.sorting:before,
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:before,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:before,
table.dataTable thead th.sorting_desc:after {
    display: none !important;
    content: "" !important;
}

table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    position: relative !important;
    padding-right: 24px !important;
}

/* Unsorted - down arrow (faded) */
table.dataTable thead th.sorting:after {
    display: inline-block !important;
    content: "↓" !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.3 !important;
    font-size: 14px !important;
    color: inherit !important;
}

/* Sorted ascending - up arrow (Active Orange) */
table.dataTable thead th.sorting_asc:after {
    display: inline-block !important;
    content: "↑" !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    font-size: 14px !important;
    color: #FD7E14 !important;
}

/* Sorted descending - down arrow (Active Orange) */
table.dataTable thead th.sorting_desc:after {
    display: inline-block !important;
    content: "↓" !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    font-size: 14px !important;
    color: #FD7E14 !important;
}

#sitesTable_paginate .paginate_button.active a {
    background: #FD7E14 !important;
    border-color: #FD7E14 !important;
}
#sitesTable_paginate .paginate_button:hover a  {
    background: #FD7E14 !important;
    border-color: #FD7E14 !important;
    color: white;
}

#indexProjectsTable_paginate .paginate_button.active a {
    background: #28a745 !important;
    border-color: #28a745 !important;
}
#indexProjectsTable_paginate .paginate_button:hover a  {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: white;
}

#timesheetsTable_paginate .paginate_button.active a {
  background: #28a745 !important;
  border-color: #28a745 !important;
}
#timesheetsTable_paginate .paginate_button:hover a  {
  background: #28a745 !important;
  border-color: #28a745 !important;
  color: white;
}

/*#hazardsTable_paginate .paginate_button.active a {
    background: #FD7E14 !important;
    border-color: #FD7E14 !important;
}
#hazardsTable_paginate .paginate_button:hover a  {
    background: #FD7E14 !important;
    border-color: #FD7E14 !important;
    color: white;
}*/


.paginate_button .page-link {
    color: #6c757d;
}


/* DRAGGABLE LIST ITEMS */
.sortable-list {
    width: 100%;
    padding: 25px;
    border-radius: 7px;
    padding: 30px 25px 20px;
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #dc3545;
  }
.sortable-list .item {
    list-style: none;
    display: flex;
    cursor: move;
    background: #fff;
    align-items: center;
    border-radius: 5px;
    padding: 10px 13px;
    margin-bottom: 11px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.06); */
    border: 1px solid #ccc;
    justify-content: space-between;
  }
.item .details {
    display: flex;
    align-items: center;
  }
.item .details img {
    height: 40px;
    width: 40px;
    pointer-events: none;
    margin-right: 12px;
    object-fit: cover;
    border-radius: 50%;
  }
.item .details span {
    font-size: 1rem;
  }
.item i {
    font-size: 1rem;
  }
.item.dragging {
    opacity: 0.6;
  }
.item.dragging :where(.details, i) {
    opacity: 0.5;
  }

/* Remove table hover */
.remove-table-hover tr:hover{
    background-color: unset !important;
}

/* Collapse Icon Control */
td[aria-expanded=true] .fa-chevron-right {
    display: none;
 }
 td[aria-expanded=false] .fa-chevron-down {
    display: none;
 }


 /* Modal Override */
 .modal-w100 {
    max-width:99%!important;
    width:99%!important;
    margin: 1rem 1rem 1rem 1rem!important;
 }
 


/* Avatar */
.team_avatar {
    position: relative;
    text-align: center;
    color: black;
    font-weight: bold;
    display: inline-block;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.charCounter {
    font-size: 0.8em;
    color: grey;
}



/* Dropzone error message must always be visible above uploaded file previews */
.dropzone {
    position: relative;
    z-index: 2;
}

.dropzone .dz-preview {
    z-index: 3;
}

.dropzone .dz-preview .dz-error-message {
    z-index: 9999 !important;
}

/* Showing Uploads */
.file-icon-div {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(253, 126, 20, 0.4);
    border-radius: 4px;
    padding-bottom: 4px;
    position: relative;
    overflow: visible;
}

.file-icon-div .text-center {
    margin-top: 5px;
}

.upload-filename {
    padding: 2px 4px;
    font-size: 0.7em;
    word-break: break-all;
    cursor: default;
}

#global-tooltip {
    display: none;
    position: fixed;
    background: rgba(30, 30, 30, 0.96);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
    white-space: pre-line;
    max-width: 300px;
    word-break: break-word;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    transition: opacity 0.12s ease;
    opacity: 0;
}

.uploadsPreviewPane {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.projectImageThumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 3px 3px 0 0;
}


/* Client List */
.clientList:before, .clientList:after {
    position: absolute;
    display: inline-block;
    border-bottom-color: rgba(0, 0, 0, 0.2);
    content: '';
  }
  
  .clientList:before {
    top: 8px;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    border-bottom: 7px solid #ccc;
  }
  
  .clientList:after {
    top: 9px;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    border-left: 6px solid transparent;
  }
  
  .clientList:before {
    left: 0;
    right: 0;
    width: 0;
    margin-left: auto;
    margin-right: auto;
  }
  
  .clientList:after {
    left: 0;
    right: 0;
    width: 0;
    margin-left: auto;
    margin-right: auto;
  }

/* Project Location */
.projectLocation:before, .projectLocation:after {
    position: absolute;
    display: inline-block;
    border-bottom-color: rgba(0, 0, 0, 0.2);
    content: '';
  }
  
  .projectLocation:before {
    top: 8px;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    border-bottom: 7px solid #ccc;
  }
  
  .projectLocation:after {
    top: 9px;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    border-left: 6px solid transparent;
  }
  
  .projectLocation:before {
    left: 0;
    right: 0;
    width: 0;
    margin-left: auto;
    margin-right: auto;
  }
  
  .projectLocation:after {
    left: 0;
    right: 0;
    width: 0;
    margin-left: auto;
    margin-right: auto;
  }

/* Services List */
.servicesListDiv:before, .servicesListDiv:after {
    position: absolute;
    display: inline-block;
    border-bottom-color: rgba(0, 0, 0, 0.2);
    content: '';
  }
  
  .servicesListDiv:before {
    top: 8px;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    border-bottom: 7px solid #ccc;
  }
  
  .servicesListDiv:after {
    top: 9px;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    border-left: 6px solid transparent;
  }
  
  .servicesListDiv:before {
    left: 0;
    right: 0;
    width: 0;
    margin-left: auto;
    margin-right: auto;
  }
  
  .servicesListDiv:after {
    left: 0;
    right: 0;
    width: 0;
    margin-left: auto;
    margin-right: auto;
  }

/* Add Team Div */
.addTeamDiv:before, .addTeamDiv:after {
    position: absolute;
    display: inline-block;
    border-bottom-color: rgba(0, 0, 0, 0.2);
    content: '';
  }
  
  .addTeamDiv:before {
    top: -7px;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    border-bottom: 7px solid #ccc;
  }
  
  .addTeamDiv:after {
    top: -6px;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    border-left: 6px solid transparent;
  }
  
  .addTeamDiv:before {
    left: 0;
    right: 0;
    width: 0;
    margin-left: auto;
    margin-right: auto;
  }
  
  .addTeamDiv:after {
    left: 0;
    right: 0;
    width: 0;
    margin-left: auto;
    margin-right: auto;
  }

/* Change Status Div */
.changeStatusDiv:before, .changeStatusDiv:after {
    position: absolute;
    display: inline-block;
    border-bottom-color: rgba(0, 0, 0, 0.2);
    content: '';
  }
  
  .changeStatusDiv:before {
    top: 9px;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    border-bottom: 7px solid #ccc;
  }
  
  .changeStatusDiv:after {
    top: 10px;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    border-left: 6px solid transparent;
  }
  
  .changeStatusDiv:before {
    left: -40px;
    right: 0;
    width: 0;
    margin-left: auto;
    margin-right: auto;
  }
  
  .changeStatusDiv:after {
    left: -40px;
    right: 0;
    width: 0;
    margin-left: auto;
    margin-right: auto;
  }  


/* Modal slide */
.modal-dialog-slideout {
    min-height: 100%;
    /*max-height: 500px !important;*/
    min-width: 1300px !important;
    width: 85% !important;
    margin: 0 0 0 auto;
    background: #fff;
}
.modal.fade .modal-dialog.modal-dialog-slideout {
    -webkit-transform: translate(100%, 0)scale(1);
    transform: translate(100%, 0)scale(1);
}
.modal.fade.show .modal-dialog.modal-dialog-slideout {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
    display: flex;
    align-items: stretch;
    -webkit-box-align: stretch;
    height: 90%;
}
.modal.fade.show .modal-dialog.modal-dialog-slideout .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
}
.modal-dialog-slideout .modal-content {
    border: 0;
    border-radius: 0 !important; /* Sharp corners */
}

/* Force sharp corners on all modal elements */
#edit-project-modal .modal-content,
#edit-project-modal .modal-header,
#edit-project-modal .modal-body,
#edit-project-modal .modal-footer,
#edit-project-modal .modal-dialog {
    border-radius: 0 !important;
}

.modal-dialog-slideout .modal-header,
.modal-dialog-slideout .modal-footer {
    height: 57px; /* Match main header height */
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
}

/* Project Modal */
#edit-project-modal {
    /*height: 80%;
    position: fixed;*/
}

/* Modal header alignment with main header orange line */
#edit-project-modal .modal-header {
    height: 57px !important;
    border-bottom: 3px solid #FD7E14 !important; /* Match main header orange border */
    background-color: #000 !important; /* Black background like sidebar */
    color: white !important;
    padding: 0.5rem 1rem !important;
    box-sizing: border-box !important;
}

/* Smaller text in modal header */
#edit-project-modal .modal-header h5 {
    font-size: 0.95rem !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

#edit-project-modal .modal-header .btn {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* Modal Slide-in Animation from Right (1 second duration) */
/* Disable Bootstrap's fade transition for this modal - we're using slide only */
#edit-project-modal.modal.fade {
    opacity: 1 !important;
    transition: none !important;
}

/* Keep modal visible during closing animation */
#edit-project-modal.modal-closing {
    display: block !important;
}

/* Always apply transition to modal dialog only */
#edit-project-modal .modal-dialog {
    transition: transform 1s ease-in-out !important;
    will-change: transform;
}

/* Initial state - off screen to the right */
#edit-project-modal.modal.fade .modal-dialog {
    transform: translateX(100%);
}

/* When modal is shown - slide to center */
#edit-project-modal.modal.fade.show .modal-dialog {
    transform: translateX(0);
}

/* When closing - slide back out to right (explicitly set same as initial) */
#edit-project-modal.modal.fade:not(.show) .modal-dialog {
    transform: translateX(100%);
}

/* Hide MCE editor upgrade button */
.tox-promotion-link { display: none !important; }
.tox-statusbar__branding { display: none !important; }

.mce-content-body p {
  padding: 25px 0 !important;
}

.tox.tox-tinymce {
  margin: 0 0 20px 0;
}






/* CHAT - WhatsApp Style Modern Design */
.chat-app .people-list {
  position: absolute;
  left: 0;
  top: 0;
  padding: 10px;
  z-index: 7
}

.chat-app .chat {
  border-left: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat .chat-header {
  padding: 15px 20px;
  border-bottom: 2px solid #f4f7f6;
  flex-shrink: 0;
}

.chat .chat-header img {
  float: left;
  border-radius: 40px;
  width: 40px
}

.chat .chat-header .chat-about {
  float: left;
  padding-left: 10px
}

.chat-history {
  max-height: 450px;
  min-height: 450px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  background: #f5f5f5;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255,255,255,.03) 10px,
      rgba(255,255,255,.03) 20px
    );
  scroll-behavior: smooth;
  flex: 1;
}

.chat-history.chat-empty {
  min-height: 150px;
  max-height: 150px;
}

.chat-history::-webkit-scrollbar {
  width: 6px;
}

.chat-history::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.chat-history::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.chat-history::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.chat .chat-history {
  padding: 10px;
  border-bottom: none;
}

.chat .chat-history ul {
  padding: 0;
  margin: 0;
}

.chat .chat-history ul li {
  list-style: none;
  margin-bottom: 12px;
  clear: both;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat .chat-history ul li:last-child {
  margin-bottom: 6px;
}

.chat .chat-history .message-data {
  display: flex;
  align-items: flex-end;
  margin-bottom: 3px;
  gap: 6px;
}

.chat .chat-history .message-data.text-right {
  flex-direction: row-reverse;
}

.chat .chat-history .message-data img {
  border-radius: 50%;
  width: 28px;
  height: 28px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.chat .chat-history .message-data .team_avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.chat .chat-history .message-data .team_avatar img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.chat .chat-history .message-data-time {
  font-size: 10px;
  color: #666;
  padding: 0 4px;
  white-space: nowrap;
  align-self: flex-end;
  margin-bottom: 2px;
}

.chat .chat-history .message-data.text-right .message-data-time {
  color: #888;
}

.chat-history.no-anim * {
  animation: none !important;
  transition: none !important;
}

/* Surveyor tile breadcrumb (shared across all section tiles) */
.section-breadcrumb {
  font-size: 0.72rem;
  color: #888;
  padding: 0.3rem 1rem;
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

/* Typing indicator */
.typing-indicator {
  display: none;
  align-items: flex-end;
  gap: 6px;
  padding: 4px 14px 6px;
}

.typing-indicator.visible {
  display: flex;
}

.typing-indicator-label {
  font-size: 10px;
  color: #999;
  margin-bottom: 4px;
}

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e9e9eb;
  border-radius: 18px 18px 18px 4px;
  padding: 7px 10px;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8e8e93;
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.chat .chat-history .message {
  color: #1f1f1f;
  padding: 6px 10px;
  line-height: 1.4;
  font-size: 13px;
  border-radius: 10px;
  display: inline-block;
  position: relative;
  max-width: 75%;
  word-wrap: break-word;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin: 0;
}

.chat .chat-history .message:after {
  content: none;
}

.chat .chat-history .my-message {
  background: #D2D2FF;
  color: #1f1f1f;
  border-bottom-right-radius: 4px;
  margin-left: auto;
  float: right;
  clear: both;
}

.chat .chat-history .my-message:after {
  content: none;
}

.chat .chat-history .other-message {
  background: #fff;
  color: #1f1f1f;
  border-bottom-left-radius: 4px;
  text-align: left;
  float: left;
  clear: both;
}

.chat .chat-history .other-message:after {
  content: none;
}

.chat .chat-message {
  padding: 12px;
  background: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.chat .chat-message .input-group {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 25px;
  overflow: hidden;
  background: #fff;
}

.chat .chat-message .input-group-prepend .input-group-text {
  background: #FD7E14;
  border: none;
  color: #fff;
  padding: 10px 16px;
  transition: all 0.3s ease;
  border-radius: 0;
  cursor: pointer !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(253,126,20,0.3);
  user-select: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
}

.chat .chat-message .input-group-prepend .input-group-text i {
  pointer-events: none;
  font-size: 16px;
}

.chat .chat-message .input-group-prepend .input-group-text:hover {
  background: #E86D0A;
  transform: scale(1.05);
}

.chat .chat-message .input-group-prepend .input-group-text:active {
  background: #D06610;
  transform: scale(0.98);
}

.chat .chat-message #chatText {
  border: none;
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 0;
}

.chat .chat-message #chatText:focus {
  box-shadow: none;
  outline: none;
}

.chat-thumb-img {
  width: 100px !important;
  height: auto !important;
  max-width: 100px !important;
  display: block;
  image-rendering: auto;
  object-fit: cover;
}

.chat-file-attachment {
  display: inline-block;
  margin: 4px 0;
  padding: 8px 10px;
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
  max-width: 100%;
}

.chat-file-preview {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-file-preview img {
  max-width: 60px;
  max-height: 60px;
  border-radius: 4px;
  object-fit: cover;
}

.chat-file-name {
  font-size: 12px;
  color: #555;
  word-break: break-all;
}

.chat-dropzone {
  min-height: 60px !important;
  border: 2px dashed #ccc !important;
  border-radius: 8px !important;
  background: #fafafa !important;
  padding: 10px !important;
  margin-bottom: 8px;
  cursor: pointer !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

.chat-dropzone:hover {
  border-color: #999 !important;
  background: #f0f0f0 !important;
}

.chat-dropzone .dz-message {
  margin: 0 !important;
  font-size: 12px !important;
  color: #666;
}

.chat-dropzone .dz-preview {
  margin: 4px !important;
}

.chat-dropzone .dz-preview .dz-image {
  width: 50px !important;
  height: 50px !important;
  border-radius: 4px !important;
}

.chat-dropzone .dz-preview .dz-details {
  padding: 4px !important;
}

.chat-dropzone .dz-preview .dz-filename {
  font-size: 11px !important;
}

.online,
.offline,
.me {
  margin-right: 2px;
  font-size: 8px;
  vertical-align: middle
}

.online {
  color: #86c541
}

.offline {
  color: #e47297
}

.me {
  color: #1d8ecd
}

.float-right {
  float: right
}

.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0
}

@media only screen and (max-width: 767px) {
  .chat-app .people-list {
      height: 465px;
      width: 100%;
      overflow-x: auto;
      background: #fff;
      left: -400px;
      display: none
  }
  .chat-app .people-list.open {
      left: 0
  }
  .chat-app .chat {
      margin: 0
  }
  .chat-app .chat .chat-header {
      border-radius: 0.55rem 0.55rem 0 0
  }
  .chat-history {
      max-height: 350px !important;
      min-height: 350px !important;
      -webkit-overflow-scrolling: touch;
  }
  
  /* Ensure all buttons work on mobile */
  .cursor-pointer,
  .input-group-text,
  button,
  [data-action],
  .btn {
      cursor: pointer !important;
      -webkit-tap-highlight-color: rgba(0,0,0,0.1);
      touch-action: manipulation;
      -webkit-user-select: none;
      user-select: none;
  }
  
  /* Ensure buttons are always clickable on iOS */
  button,
  .btn,
  [data-action] {
      position: relative;
      z-index: 1;
  }
  }
  
  .chat-history.chat-empty {
      min-height: 120px !important;
      max-height: 120px !important;
  }
  
  .chat .chat-history .message {
      max-width: 85%;
      font-size: 14px;
      padding: 8px 12px;
  }
  
  .chat .chat-history .message-data-time {
      font-size: 9px;
  }
  
  .chat .chat-history .message-data img,
  .chat .chat-history .message-data .team_avatar,
  .chat .chat-history .message-data .team_avatar img {
      width: 26px;
      height: 26px;
  }
  
  .chat .chat-message {
      padding: 8px;
  }
  
  .chat .chat-message #chatText {
      font-size: 14px;
      padding: 12px 14px;
  }
  
  .chat-dropzone {
      min-height: 50px !important;
      padding: 8px !important;
  }
  
  .chat-dropzone .dz-message {
      font-size: 11px !important;
  }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
  .chat-history {
      max-height: 400px;
      min-height: 400px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
  .chat-app .chat-list {
      height: 650px;
      overflow-x: auto
  }
  .chat-app .chat-history {
      height: 600px;
      overflow-x: auto
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1) {
  .chat-app .chat-list {
      height: 480px;
      overflow-x: auto
  }
  .chat-app .chat-history {
      height: calc(100vh - 350px);
      overflow-x: auto
  }
}

.btn-checkin {
  width: 10em !important;
  height: 6em !important;
  margin: 0 auto !important;
}

.btn-checkin span {
  font-size:1.5em; 
  line-height:1em
}


/* Notifications */
.navbar-badge {
    top: -1px !important;
    /*right: 0px !important;*/
}

/* Resource Calendar */
.fc-daygrid-event {
  margin-top: 2px !important;
}


/* ========================================
   ThreeSixty Black & Orange Theme 
   Based on 360hq.co.uk brand colors
   ======================================== */

/* Color Variables (for reference) */
:root {
    --black: #000000;
    --primary-orange: #FD7E14;
    --secondary-orange: #F47A10;
    --dark-orange: #E66D0A;
    --white: #FFFFFF;
    --light-gray: #E5E5E5;
    --medium-gray: #333333;
}

/* Typography - Poppins Font (matching 360hq.co.uk) - GLOBAL */
/* Exclude FontAwesome icons from font override */
*:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fad):not(.fa-solid):not(.fa-regular):not(.fa-light):not(.fa-thin):not(.fa-duotone):not(.fa-brands) {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

body,
.main-sidebar,
.navbar,
.content-wrapper,
.card,
.btn,
.form-control,
table,
input,
select,
textarea,
span,
div,
p,
h1, h2, h3, h4, h5, h6,
label,
a,
.modal,
.modal-body,
.modal-header,
.modal-footer,
.dropdown-menu,
.dropdown-item {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Base font sizing - Compact for admin views */
body {
    font-size: 0.8125rem; /* 13px */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Projects Table - Extra compact for laptop screens */
#indexProjectsTable {
    font-size: 0.75rem !important; /* 12px */
}

#indexProjectsTable th {
    font-size: 0.75rem !important;
    font-weight: 600;
    padding: 0.5rem 2.2rem 0.5rem 0.4rem !important;
    white-space: nowrap;
    position: relative; /* Ensure position relative for absolute icons */
}


#indexProjectsTable td {
    padding: 0.4rem 0.4rem !important;
}

#indexProjectsTable input,
#indexProjectsTable select,
#indexProjectsTable textarea {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.4rem !important;
}

/* All other tables */
.table {
    font-size: 0.8125rem !important; /* 13px */
}

.table th {
    font-weight: 600;
}

/* Sidebar compact font */
.nav-sidebar .nav-link {
    font-size: 0.8125rem !important;
    font-weight: 400;
}

.nav-header {
    font-size: 0.6875rem !important; /* 11px */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Buttons - Professional weight */
.btn {
    font-weight: 500;
    font-size: 0.8125rem !important;
}

/* Card headers - Compact but clear */
.card-header h3,
.card-header h4 {
    font-size: 1rem !important;
    font-weight: 600;
    margin: 0;
}

/* Global Input Padding Reduction */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="tel"],
input[type="url"],
textarea,
.form-control {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8125rem !important;
}

select,
.custom-select {
    padding: 0.25rem 1.75rem 0.25rem 0.5rem !important;
    font-size: 0.8125rem !important;
}

/* Specific overrides for borderless inputs */
.fc-borderless,
.fc-borderless-new,
.fc-borderless-penless {
    padding: 0.25rem 0.4rem !important;
    font-size: 0.75rem !important;
}

/* Modal inputs */
.modal input,
.modal select,
.modal textarea {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.8125rem !important;
}

/* Timesheet inputs */
#timesheetsTable input,
#timesheetsTable select {
    padding: 0.25rem 0.4rem !important;
    font-size: 0.75rem !important;
}

/* Override any inline padding styles */
input[style*="padding"],
select[style*="padding"],
textarea[style*="padding"] {
    padding: 0.25rem 0.5rem !important;
}

/* Services Count / Job Count Span */
.jobsCountSpan,
.fc-borderless.jobsCountSpan {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 500;
}

/* All spans in tables */
table span {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 0.75rem !important;
}

/* Edit Project Modal Specific */
#edit-project-modal *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(i[class*="fa-"]) {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

#edit-project-modal .card-title {
    font-size: 0.9rem !important;
    font-weight: 600;
}

#edit-project-modal input,
#edit-project-modal select,
#edit-project-modal textarea {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.8125rem !important;
}

/* All modals */
.modal *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(i[class*="fa-"]) {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.modal .card-body,
.modal .modal-body {
    font-size: 0.8125rem !important;
}

/* DataTable elements */
.dataTables_wrapper *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab) {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* FontAwesome Icons - Preserve and resize */
.fa, .fas, .far, .fal, .fab, .fad,
.fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone, .fa-brands,
i[class*="fa-"],
.nav-icon,
[class*="fa-"] {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands', 'Font Awesome 5 Pro', 'FontAwesome' !important;
    font-size: 0.875rem !important; /* Slightly smaller as requested */
}

/* Icons in buttons - keep proportional */
.btn .fa, .btn .fas, .btn .far, .btn .fab,
.btn i[class*="fa-"] {
    font-size: 0.8125rem !important;
}

/* Icons in navbar - slightly smaller */
.navbar .fa, .navbar .fas, .navbar .far, .navbar .fab,
.navbar i[class*="fa-"] {
    font-size: 0.875rem !important;
}

/* Icons in sidebar - compact */
.nav-icon,
.nav-sidebar .fa, .nav-sidebar .fas, .nav-sidebar .far, .nav-sidebar .fab,
.nav-sidebar i[class*="fa-"] {
    font-size: 0.8125rem !important;
}

/* Icons in tables - smaller */
table .fa, table .fas, table .far, table .fab,
table i[class*="fa-"] {
    font-size: 0.75rem !important;
}

/* Project warning icon - match avatar size (must be more specific than table icons) */
table i.project-warning-icon,
table .project-warning-icon {
    font-size: 1.75rem !important;
    vertical-align: middle !important;
}

/* Large icons - keep readable */
.fa-lg, .fa-2x, .fa-3x, .fa-4x, .fa-5x {
    font-size: inherit !important;
}

/* Extra small icons */
.fa-xs, .fa-sm {
    font-size: 0.7rem !important;
}

/* Header/Navbar Black Theme */
.navbar-white.navbar-light {
    background-color: #000000 !important;
    border-bottom: 3px solid #FD7E14 !important;
}

.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link i {
    color: #FFFFFF !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #FD7E14 !important;
}

.navbar-light .navbar-brand {
    color: #FD7E14 !important;
}

/* Sidebar Enhancement */
.main-sidebar.sidebar-dark-orange {
    background-color: #000000 !important;
}

.sidebar-dark-orange .brand-link {
    background-color: #000000 !important;
    border-bottom: 2px solid #FD7E14 !important;
}

.sidebar-dark-orange .brand-text {
    color: #FFFFFF !important;
}

.sidebar-dark-orange .nav-sidebar > .nav-item > .nav-link {
    color: #E5E5E5 !important;
}

.sidebar-dark-orange .nav-sidebar > .nav-item > .nav-link:hover {
    background-color: #333333 !important;
    color: #FD7E14 !important;
}

.sidebar-dark-orange .nav-sidebar > .nav-item > .nav-link.active {
    background-color: #FD7E14 !important;
    color: #FFFFFF !important;
}

.sidebar-dark-orange .nav-header {
    color: #FD7E14 !important;
    font-weight: 600;
}

/* Card Styling */
.card {
    border-top: 3px solid #FD7E14 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(253, 126, 20, 0.2);
}

.card-header {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border-bottom: 2px solid #FD7E14 !important;
    font-weight: 600;
}

.card-primary:not(.card-outline) > .card-header {
    background-color: #FD7E14 !important;
}

.card-footer {
    background-color: #f5f5f5;
    border-top: 1px solid #E5E5E5;
}

/* Button Enhancements */
.btn-primary,
.btn-orange {
    background-color: #FD7E14 !important;
    border-color: #FD7E14 !important;
    color: #FFFFFF !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-orange:hover,
.btn-orange:focus {
    background-color: #F47A10 !important;
    border-color: #F47A10 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 8px rgba(253, 126, 20, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active,
.btn-orange:active {
    background-color: #E66D0A !important;
    transform: translateY(0);
}

.btn-dark {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #FFFFFF !important;
}

.btn-dark:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
}

.btn-black {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #FFFFFF !important;
}

.btn-black:hover {
    background-color: #333333 !important;
    color: #FD7E14 !important;
}

/* Badge Styling */
.badge-primary {
    background-color: #FD7E14 !important;
}

.badge-orange {
    background-color: #FD7E14 !important;
    color: #FFFFFF !important;
}

.badge-black {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

/* Alert Styling */
.alert-primary {
    background-color: rgba(253, 126, 20, 0.1);
    border-color: #FD7E14;
    color: #000000;
}

/* Table Enhancements */
.table thead th {
    background-color: #000000;
    color: #FFFFFF;
    border-color: #FD7E14;
    font-weight: 600;
}

/* DataTable Sorting Icons - High Visibility on Black Headers */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

/* Inactive sorting icons - almost white for visibility */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after {
    opacity: 1 !important;
    color: #F5F5F5 !important;
    font-weight: 900 !important;
    font-size: 1.1em !important;
}

/* Active sorting icons - bright orange */
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
    opacity: 1 !important;
    color: #FF8C00 !important;
    font-weight: 900 !important;
    font-size: 1.1em !important;
}

/* DataTable info and pagination text */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #333333;
}

.table-hover tbody tr:hover {
    background-color: rgba(253, 126, 20, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid #E5E5E5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(253, 126, 20, 0.1);
    color: #000000;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #FD7E14;
    color: #FFFFFF;
}

/* User Dropdown Header */
.user-header {
    background-color: #000000 !important;
    border-bottom: 2px solid #FD7E14 !important;
}

.user-header p {
    color: #FFFFFF !important;
}

.user-header p small {
    color: #E5E5E5 !important;
}

/* Form Controls */
.form-control:focus {
    border-color: #FD7E14;
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #FD7E14;
    border-color: #FD7E14;
}

/* Pagination */
.page-item.active .page-link {
    background-color: #FD7E14;
    border-color: #FD7E14;
}

.page-link {
    color: #FD7E14;
}

.page-link:hover {
    color: #F47A10;
    background-color: rgba(253, 126, 20, 0.1);
}

/* Nav Pills & Tabs */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #FD7E14 !important;
    color: #FFFFFF !important;
}

.nav-pills .nav-link:not(.active):hover {
    color: #FD7E14 !important;
}

.nav-tabs .nav-link.active {
    border-bottom: 3px solid #FD7E14;
    color: #FD7E14;
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    color: #FD7E14;
}

/* Progress Bar */
.progress-bar {
    background-color: #FD7E14;
}

/* Links */
a:not(.btn) {
    color: #FD7E14;
    transition: color 0.2s ease;
}

a:not(.btn):hover {
    color: #F47A10;
    text-decoration: none;
}

/* Text Colors */
.text-primary {
    color: #FD7E14 !important;
}

.text-black {
    color: #000000 !important;
}

.bg-primary {
    background-color: #FD7E14 !important;
}

.bg-black {
    background-color: #000000 !important;
}

.border-primary {
    border-color: #FD7E14 !important;
}

.border-black {
    border-color: #000000 !important;
}

/* Modal Headers */
.modal-header {
    background-color: #000000;
    color: #FFFFFF;
    border-bottom: 2px solid #FD7E14;
}

.modal-title {
    color: #FFFFFF !important;
}

.modal-header .close {
    color: #FD7E14;
    opacity: 1;
    text-shadow: none;
}

.modal-header .close:hover {
    color: #F47A10;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f5f5f5;
}

.breadcrumb-item.active {
    color: #FD7E14;
}

.breadcrumb-item a {
    color: #000000;
}

.breadcrumb-item a:hover {
    color: #FD7E14;
}

/* SweetAlert2 Customization */
.swal2-popup {
    border-top: 3px solid #FD7E14;
}

.swal2-confirm {
    background-color: #FD7E14 !important;
}

.swal2-confirm:hover {
    background-color: #F47A10 !important;
}

/* Loading Spinner Enhancement */
.loading-content {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #FD7E14;
}

/* FullCalendar Customization */

/* Space between buttons inside any toolbar btn-group (prev/next, month/week/day) */
.fc-header-toolbar .btn-group > .btn + .btn {
    margin-left: 4px !important;
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}
/* Restore rounded corners on all sides for every button in the toolbar */
.fc-header-toolbar .btn-group > .btn {
    border-radius: 4px !important;
}

/* Space between a btn-group and a standalone button in the same chunk (e.g. [prev,next] Today) */
.fc-header-toolbar .fc-toolbar-chunk .btn-group + .btn,
.fc-header-toolbar .fc-toolbar-chunk .btn + .btn-group {
    margin-left: 6px !important;
}

.fc-button-primary {
    background-color: #FD7E14 !important;
    border-color: #FD7E14 !important;
}

.fc-button-primary:hover {
    background-color: #F47A10 !important;
    border-color: #F47A10 !important;
}

.fc-button-primary:not(:disabled).fc-button-active {
    background-color: #E66D0A !important;
}

.fc-daygrid-event,
.fc-timegrid-event {
    border-left: 3px solid #FD7E14;
}

/* Info Box / Small Box */
.info-box {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #FD7E14;
}

.info-box-icon {
    background-color: #FD7E14 !important;
}

.small-box {
    border-top: 3px solid #FD7E14;
}

.small-box > .small-box-footer {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000000;
}

.small-box > .small-box-footer:hover {
    background-color: rgba(253, 126, 20, 0.2);
    color: #000000;
}

/* Responsive Enhancements */
@media (max-width: 992px) {
    .navbar-white {
        padding: 0.5rem 1rem;
    }
    
    .main-sidebar {
        width: 100%;
    }
    
    .card-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .btn {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .modal-dialog-slideout {
        min-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Dark Mode Specific Overrides */
@media (prefers-color-scheme: dark) {
    .content-wrapper {
        background-color: #1a1a1a;
    }
    
    .card {
        background-color: #2a2a2a;
        color: #E5E5E5;
    }
}

/* Print Styles */
@media print {
    .main-sidebar,
    .main-header,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    .content-wrapper {
        margin: 0 !important;
    }
    
    .card {
        border: 1px solid #000000 !important;
        page-break-inside: avoid;
    }
}
