@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css");

.sb-nav-fixed #layoutSidenav #layoutSidenav_nav,
.sb-nav-fixed .sb-topnav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

#layoutAuthentication {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#layoutAuthentication #layoutAuthentication_content {
  min-width: 0;
  flex-grow: 1;
}

#layoutAuthentication #layoutAuthentication_footer {
  min-width: 0;
}

#layoutSidenav {
  display: flex;
}

#layoutSidenav #layoutSidenav_nav {
  flex-basis: 225px;
  flex-shrink: 0;
  transition: transform 0.15s ease-in-out;
  z-index: 1038;
  transform: translateX(-225px);
}

#layoutSidenav #layoutSidenav_content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  flex-grow: 1;
  min-height: calc(100vh - 56px);
  margin-left: -225px;
}

.sb-sidenav-toggled #layoutSidenav #layoutSidenav_nav {
  transform: translateX(0);
}

.sb-sidenav-toggled #layoutSidenav #layoutSidenav_content:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1037;
  opacity: 0.5;
  transition: opacity 0.3s ease-in-out;
}

@media (min-width: 992px) {
  #layoutSidenav #layoutSidenav_nav {
    transform: translateX(0);
  }

  #layoutSidenav #layoutSidenav_content {
    margin-left: 0;
    transition: margin 0.15s ease-in-out;
  }

  .sb-sidenav-toggled #layoutSidenav #layoutSidenav_nav {
    transform: translateX(-225px);
  }

  .sb-sidenav-toggled #layoutSidenav #layoutSidenav_content {
    margin-left: -225px;
  }

  .sb-sidenav-toggled #layoutSidenav #layoutSidenav_content:before {
    display: none;
  }
}

.sb-nav-fixed .sb-topnav {
  z-index: 1039;
}

.sb-nav-fixed #layoutSidenav #layoutSidenav_nav {
  width: 225px;
  height: 100vh;
  z-index: 1038;
}

.sb-nav-fixed #layoutSidenav #layoutSidenav_nav .sb-sidenav {
  padding-top: 56px;
}

.sb-nav-fixed #layoutSidenav #layoutSidenav_nav .sb-sidenav .sb-sidenav-menu {
  overflow-y: auto;
}

.sb-nav-fixed #layoutSidenav #layoutSidenav_content {
  padding-left: 225px;
  top: 56px;
}

#layoutError {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#layoutError #layoutError_content {
  min-width: 0;
  flex-grow: 1;
}

#layoutError #layoutError_footer {
  min-width: 0;
}

.img-error {
  max-width: 20rem;
}

.nav .nav-link .sb-nav-link-icon,
.sb-sidenav-menu .nav-link .sb-nav-link-icon {
  margin-right: 0.5rem;
}

.sb-topnav {
  padding-left: 0;
  height: 56px;
  z-index: 1039;
}

.sb-topnav .navbar-brand {
  width: 225px;
  margin: 0;
}

.sb-topnav.navbar-dark #sidebarToggle {
  color: rgba(255, 255, 255, 0.5);
}

.sb-topnav.navbar-light #sidebarToggle {
  color: #212529;
}

.sb-sidenav {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-wrap: nowrap;
}

.sb-sidenav .sb-sidenav-menu {
  flex-grow: 1;
}

.sb-sidenav .sb-sidenav-menu .nav {
  flex-direction: column;
  flex-wrap: nowrap;
}

.sb-sidenav .sb-sidenav-menu .nav .sb-sidenav-menu-heading {
  padding: 1.75rem 1rem 0.75rem;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.sb-sidenav .sb-sidenav-menu .nav .nav-link {
  display: flex;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.sb-sidenav .sb-sidenav-menu .nav .nav-link .sb-nav-link-icon {
  font-size: 0.9rem;
}

.sb-sidenav .sb-sidenav-menu .nav .nav-link .sb-sidenav-collapse-arrow {
  display: inline-block;
  margin-left: auto;
  transition: transform 0.15s ease;
}

.sb-sidenav .sb-sidenav-menu .nav .nav-link.collapsed .sb-sidenav-collapse-arrow {
  transform: rotate(-90deg);
}

.sb-sidenav .sb-sidenav-menu .nav .sb-sidenav-menu-nested {
  margin-left: 1.5rem;
  flex-direction: column;
}

.sb-sidenav .sb-sidenav-footer {
  padding: 0.75rem;
  flex-shrink: 0;
}

.sb-sidenav-dark {
  background-color: #212529;
  color: rgba(255, 255, 255, 0.5);
}

.sb-sidenav-dark .sb-sidenav-menu .sb-sidenav-menu-heading {
  color: rgba(255, 255, 255, 0.25);
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link {
  color: rgba(255, 255, 255, 0.5);
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link .sb-nav-link-icon {
  color: rgba(255, 255, 255, 0.25);
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link .sb-sidenav-collapse-arrow {
  color: rgba(255, 255, 255, 0.25);
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link:hover {
  color: #fff;
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link.active {
  color: #fff;
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link.active .sb-nav-link-icon {
  color: #fff;
}

.sb-sidenav-dark .sb-sidenav-footer {
  background-color: #343a40;
}

.sb-sidenav-light {
  background-color: #f8f9fa;
  color: #212529;
}

.sb-sidenav-light .sb-sidenav-menu .sb-sidenav-menu-heading {
  color: #adb5bd;
}

.sb-sidenav-light .sb-sidenav-menu .nav-link {
  color: #212529;
}

.sb-sidenav-light .sb-sidenav-menu .nav-link .sb-nav-link-icon {
  color: #adb5bd;
}

.sb-sidenav-light .sb-sidenav-menu .nav-link .sb-sidenav-collapse-arrow {
  color: #adb5bd;
}

.sb-sidenav-light .sb-sidenav-menu .nav-link:hover {
  color: #0d6efd;
}

.sb-sidenav-light .sb-sidenav-menu .nav-link.active {
  color: #0d6efd;
}

.sb-sidenav-light .sb-sidenav-menu .nav-link.active .sb-nav-link-icon {
  color: #0d6efd;
}

.sb-sidenav-light .sb-sidenav-footer {
  background-color: #e9ecef;
}

.datatable-wrapper .datatable-container {
  font-size: 0.875rem;
}

.datatable-wrapper.no-header .datatable-container {
  border-top: none;
}

.datatable-wrapper.no-footer .datatable-container {
  border-bottom: none;
}

.datatable-top {
  padding: 0 0 1rem;
}

.datatable-bottom {
  padding: 0;
}

.datatable-top>nav:first-child,
.datatable-top>div:first-child,
.datatable-bottom>nav:first-child,
.datatable-bottom>div:first-child {
  float: left;
}

.datatable-top>nav:last-child,
.datatable-top>div:last-child,
.datatable-bottom>nav:last-child,
.datatable-bottom>div:last-child {
  float: right;
}

.datatable-selector {
  width: auto;
  display: inline-block;
  padding-left: 1.125rem;
  padding-right: 2.125rem;
  margin-right: 0.25rem;
}

.datatable-info {
  margin: 7px 0;
}

/* PAGER */
.datatable-pagination a:hover {
  background-color: #e9ecef;
}

.datatable-pagination .active a,
.datatable-pagination .active a:focus,
.datatable-pagination .active a:hover {
  background-color: #0d6efd;
}

.datatable-pagination .ellipsis a,
.datatable-pagination .disabled a,
.datatable-pagination .disabled a:focus,
.datatable-pagination .disabled a:hover {
  cursor: not-allowed;
}

.datatable-pagination .disabled a,
.datatable-pagination .disabled a:focus,
.datatable-pagination .disabled a:hover {
  cursor: not-allowed;
  opacity: 0.4;
}

.datatable-pagination .pager a {
  font-weight: bold;
}

/* TABLE */
.datatable-table {
  border-collapse: collapse;
}

.datatable-table>tbody>tr>td,
.datatable-table>tbody>tr>th,
.datatable-table>tfoot>tr>td,
.datatable-table>tfoot>tr>th,
.datatable-table>thead>tr>td,
.datatable-table>thead>tr>th {
  vertical-align: top;
  padding: 0.5rem 0.5rem;
}

.datatable-table>thead>tr>th {
  vertical-align: bottom;
  text-align: left;
  border-bottom: none;
}

.datatable-table>tfoot>tr>th {
  vertical-align: bottom;
  text-align: left;
}

.datatable-table th {
  vertical-align: bottom;
  text-align: left;
}

.datatable-table th a {
  text-decoration: none;
  color: inherit;
}

.datatable-sorter {
  display: inline-block;
  height: 100%;
  position: relative;
  width: 100%;
  padding-right: 1rem;
}

.datatable-sorter::before,
.datatable-sorter::after {
  content: "";
  height: 0;
  width: 0;
  position: absolute;
  right: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.2;
}

.datatable-sorter::before {
  bottom: 4px;
}

.datatable-sorter::after {
  top: 0px;
}

.asc .datatable-sorter::after,
.desc .datatable-sorter::before {
  opacity: 0.6;
}

.datatables-empty {
  text-align: center;
}

.datatable-top::after,
.datatable-bottom::after {
  clear: both;
  content: " ";
  display: table;
}

.datatable-pagination li.datatable-hidden {
  visibility: visible;
}

.btn-datatable {
  height: 20px !important;
  width: 20px !important;
  font-size: 0.75rem;
  border-radius: 0.375rem !important;
}

.scrollSmallCard {
  min-height: 30vh;
  max-height: 30vh;
  overflow-y: scroll;
}

@-webkit-keyframes blink {
  50% {
    background: rgba(255, 0, 0, 0.5);
  }
}

@-moz-keyframes blink {
  50% {
    background: rgba(255, 0, 0, 0.5);
  }
}

@keyframes blink {
  50% {
    background: rgba(255, 0, 0, 0.5);
  }
}

.table-flash {
  -webkit-animation-direction: normal;
  -webkit-animation-duration: 5s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-name: blink;
  -webkit-animation-timing-function: linear;
  -moz-animation-direction: normal;
  -moz-animation-duration: 5s;
  -moz-animation-iteration-count: infinite;
  -moz-animation-name: blink;
  -moz-animation-timing-function: linear;
  animation-direction: normal;
  animation-duration: 5s;
  animation-iteration-count: infinite;
  animation-name: blink;
  animation-timing-function: linear;
}

.alert-fixed {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: 9999;
  border-radius: 0px
}

.alert-belowmenu {
  position: fixed;
  top: 50px;
  left: 0px;
  width: 100%;
  z-index: 9999;
  border-radius: 0px
}

.acImage {
  position: relative;
  max-width: 200px;
  text-align: center;
}

.btn-img-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 100;
  cursor: pointer;
}

a.disabled {
  pointer-events: none;
  cursor: default;
}

body.modal-open .modal-open .modal {
  overflow: visible;
}

.tr-inactive td {
  background-color: #ececec !important;
  color: #b9b9b9 !important;
}

@media (min-width: 992px) {
  .jobClockBottom {
    margin-left: 210px;
  }
}

.autocomplete-search-box {
  width: 50vw;
  margin-left: auto;
  box-shadow: 0 2px 10px 0px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
  align-self: center;
}

.autocomplete-search-box .search-box {
  width: 100%;
  height: 25px;
  padding: 20px 10px;
  outline: none;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 20px;
}

.autocomplete-search-box .search-result {
  width: 50vw;
  padding: 0;
  margin: 0;
  min-height: 44px;
  max-height: 200px;
  overflow: hidden;
  overflow-y: auto;
  position: absolute;
  z-index: -99;
}

.shaddow {
  box-shadow: 0 2px 10px 0px rgba(0, 0, 0, 0.25);
}

.autocomplete-search-box .search-result li {
  width: 100%;
  list-style-type: none;
  padding: 10px 20px;
  background: white;
  border-bottom: 1px solid #adb5bd;
}

.autocomplete-search-box .search-result a {
  color: inherit;
  /* blue colors for links too */
  text-decoration: inherit;
  /* no underline */
}

.autocomplete-search-box .search-result li:hover {
  background: #3498db;
  color: white;
  cursor: pointer;
}

.lightbox-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.lightbox-navigation.left {
  left: 10px;
}

.lightbox-navigation.right {
  right: 10px;
}

.lightbox-navigation:focus {
  outline: none;
}

/* Apply fullscreen styles only to #lightboxModal */
#lightboxModal .modal-dialog {
  position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the modal */
    width: 90vw; /* Max width 90% of the viewport width */
    height: 90vh; /* Max height 90% of the viewport height */
    max-width: none; /* Ensure no maximum width constraint */
    max-height: none; /* Ensure no maximum height constraint */
    margin: 0; /* Remove any extra margin */
}

#lightboxModal .modal-content {
  height: 100%;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

#lightboxModal .modal-body {
  display: flex;
    justify-content: center;
    align-items: center; /* Vertically center the content inside the modal */
    height: 100%; /* Ensure body takes up the full modal space */
    overflow: hidden; /* Prevent scrolling */
}

#lightboxModal .btn-close {
  position: absolute; /* Position the close button absolutely within the modal */
  top: 10px;
  right: 10px;
  z-index: 1050; /* Ensure the close button is on top */
  width: 40px; /* Width of the close button */
  height: 40px; /* Height of the close button */
  background-color: white; /* White background for the circle */
  color: black; /* Black close icon color */
  border: 2px solid black; /* Black border around the circle */
  border-radius: 50%; /* Make it circular */
  display: flex;
  align-items: center; /* Center the icon vertically */
  justify-content: center; /* Center the icon horizontally */
  font-size: 20px; /* Icon size */
  padding: 0; /* Remove padding */
  cursor: pointer; /* Make it clickable */
}

/* Optional: Styling to prevent click issues */
#lightboxModal .modal-backdrop {
  z-index: 1040; /* Ensure backdrop is behind modal content */
}

/* Ensure content fits inside the modal with the proper aspect ratio */
#lightboxContent {
  width: 100%;
  height: 100%; 
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightboxContent img,
#lightboxContent video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;  /* Ensure content scales proportionally inside the modal */
  max-width: 100%;
  max-height: 100%;
  background: #000;
  display: block;
  margin: auto;
}

/* Specific table styling for user actions timeline */
/* Ensure the timeline container is well-positioned */
.timeline {
  width: 100%;               /* Ensure the timeline container takes up full width */
  overflow-x: auto;          /* Allow horizontal scrolling for wider content */
}

/* Modern Table Styling */
.timeline-table {
  width: 100%;               /* Full width */
  border-collapse: collapse; /* Ensures borders are merged between cells */
  font-size: 0.875rem;        /* Smaller font for a more compact view */
  table-layout: auto;         /* Automatically adjust column widths */
}

/* Table Header Styling */
.timeline-table th {
  background-color: #0d6efd; /* Blue background for the header */
  color: #fff;               /* White text */
  padding: 12px 10px;        /* Padding for spacing */
  text-align: center;        /* Center-align header text */
  font-size: 1rem;           /* Slightly larger font for the header */
}

/* Table Body Styling */
.timeline-table td {
  padding: 12px 10px;        /* Padding for better readability */
  border: 1px solid #ddd;    /* Light border for cells */
  text-align: center;        /* Center-align cell content */
  word-wrap: break-word;     /* Ensure long words wrap to the next line */
}

/* Table Row Hover Effect */
.timeline-table tbody tr:hover {
  background-color: #f8f9fa; /* Light gray background on hover */
}

/* Optional: Styling for "No results found" row */
.timeline-table .no-results {
  font-style: italic;  /* Italicize the text */
  background-color: #f9f9f9; /* Light gray background */
  color: #6c757d;     /* Gray text */
  padding: 20px;       /* Space around the message */
  text-align: center;  /* Center the message */
}

/* Scrollbar styling (optional for tbody) */
.timeline-table tbody::-webkit-scrollbar {
  width: 8px;                /* Width of the scrollbar */
}

.timeline-table tbody::-webkit-scrollbar-thumb {
  background-color: #0d6efd; /* Blue scrollbar thumb */
  border-radius: 4px;        /* Rounded corners for the scrollbar */
}

.timeline-table tbody::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* Light gray background for scrollbar track */
}

.delete-icon {
  cursor: pointer;
  color: red;
  /*font-size: 20px;*/
}
.delete-icon:hover {
  color: darkred;
}

.jobClock-indicator {
  /*display: none; /* Hidden by default */
  /*position: relative;*/
  width: 12px;
  height: 12px;
  background-color: red;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  /*margin-left: 10px;*/
}

@keyframes pulse {
  0% {
      transform: scale(1);
      opacity: 1;
  }
  50% {
      transform: scale(1.5);
      opacity: 0.7;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

.jobClock-indicator-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

#invoiceModal .modal-dialog {
  max-width: 90%;
}

#zoom-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
} 

.play-button {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
}

.play-button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.1); /* Slightly enlarge on hover */
}

.play-icon {
  width: 0;
  height: 0;
  border-left: 15px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.play-button { pointer-events: none; }
.play-button .play-icon { pointer-events: none; }


@keyframes shake {
  0%, 100% {
      transform: translateX(0);
  }
  25% {
      transform: translateX(-10px);
  }
  50% {
      transform: translateX(10px);
  }
  75% {
      transform: translateX(-10px);
  }
}

.modal-dialog.shake {
  animation: shake 0.5s ease-in-out;
}

/* General Styles for Alerts */
#alertError,
#alertWarning,
#alertUploading,
#alertDone {
    position: fixed;            /* Fixed position to stay visible */
    top: 20px;                  /* 20px from the top of the viewport */
    left: 50%;                 /* Center horizontally */
    transform: translateX(-50%); /* Center align using transform */
    z-index: 9999;              /* Ensure it is on top of all other elements */
    margin: 0 auto;             /* Remove extra margins */
    width: auto;                /* Automatically size to fit content */
    max-width: 90%;             /* Limit width to 90% of the viewport */
    text-align: center;         /* Center the text */
    font-weight: bold;          /* Make text bold */
    border-radius: 5px;         /* Rounded corners */
    padding: 15px;              /* Add padding inside the alerts */
    display: none;              /* Hidden by default */
}

/* Specific Styles for Each Alert Type */
#alertError {
    background-color: #f8d7da;  /* Light red background */
    color: #842029;             /* Dark red text */
    border: 1px solid #f5c2c7;  /* Border to match the theme */
}

#alertWarning {
    background-color: #fff3cd;  /* Light yellow background */
    color: #856404;             /* Dark yellow text */
    border: 1px solid #ffeeba;  /* Border to match the theme */
}

#alertUploading {
    background-color: #cce5ff;  /* Light blue background */
    color: #004085;             /* Dark blue text */
    border: 1px solid #b8daff;  /* Border to match the theme */
}

#alertDone {
    background-color: #d4edda;  /* Light green background */
    color: #155724;             /* Dark green text */
    border: 1px solid #c3e6cb;  /* Border to match the theme */
}

/* Animation for Alerts */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Apply Animation on Alert Appearance */
.alert {
    animation: fadeIn 0.5s ease-in-out; /* Fade in smoothly over 0.5s */
}

/* Fade-Out Animation (Add This Class Dynamically) */
.alert.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    #alertError,
    #alertWarning,
    #alertUploading,
    #alertDone {
        width: 95%;             /* Increase width on smaller screens */
        font-size: 14px;        /* Slightly smaller text size */
        padding: 10px;          /* Adjust padding for compact layout */
    }
}
