.action-btn {
  float: right;
  margin-top: 10px;
}
label {
  padding: 8px 0px 5px 0px;
  font-weight: 500;
}
/* .select2-container--open {
  z-index: 9999999 !important;
} */
/* input {
  padding: 5px !important;
}
select {
  padding: 5px !important;
}
 */

.required:after {
  content: ' *';
  color: red;
}
.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin-top: 20px;
  font-weight: 600;
  color: black;
  padding: 15px;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #dfdfdf;
}

.separator:not(:empty)::before {
  margin-right: 0.25em;
}

.separator:not(:empty)::after {
  margin-left: 0.25em;
}

.plus-box {
  cursor: pointer;
  border: 1px solid #efefef;
  background: #c9d1ff;
  padding: 2px 5px;
}
.scrollbar {
  max-height: calc(70vh - 100px) !important;
  overflow-y: auto !important;
  margin-bottom: 20px;
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
}
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8); /* Optional: Add a semi-transparent background */
  z-index: 9999; /* Make sure it's above other content */
}

#dataTableBuilder thead th {
  color: black !important;
  text-align: center !important;
}

.totals-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 10px 16px 10px;
}

.total-card {
  flex: 1 1 calc(25% - 8px);
  min-width: 120px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left-width: 4px;
  border-radius: 6px;
  padding: 8px 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 0;
}

.total-card .label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #6b7280;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.total-card .label i {
  font-size: 10px;
  flex-shrink: 0;
}

.total-card .value {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.total-green {
  border-left-color: #28a745;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06), rgba(16, 185, 129, 0.02));
}

.total-green .label {
  color: #28a745;
}

.total-blue {
  border-left-color: #007bff;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), rgba(59, 130, 246, 0.02));
}

.total-blue .label {
  color: #007bff;
}

.total-red {
  border-left-color: #dc3545;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.06), rgba(239, 68, 68, 0.02));
}

.total-red .label {
  color: #dc3545;
}

.total-1 {
  border-left-color: #c142bb;
  background: linear-gradient(180deg, rgba(193, 66, 187, 0.06), rgba(193, 66, 187, 0.02));
}

.total-1 .label {
  color: #c142bb;
}

.total-black {
  border-left-color: #373536;
  background: linear-gradient(180deg, rgba(55, 53, 54, 0.06), rgba(55, 53, 54, 0.02));
}

.total-2 {
  border-left-color: #6f42c1;
  background: linear-gradient(180deg, rgba(111, 66, 193, 0.06), rgba(111, 66, 193, 0.02));
}

.total-2 .label {
  color: #6f42c1;
}

.total-3 {
  border-left-color: #17a2b8;
  background: linear-gradient(180deg, rgba(23, 162, 184, 0.06), rgba(23, 162, 184, 0.02));
}

.total-3 .label {
  color: #17a2b8;
}

.total-4 {
  border-left-color: #ffc107;
  background: linear-gradient(180deg, rgba(255, 193, 7, 0.06), rgba(255, 193, 7, 0.02));
}

.total-4 .label {
  color: #ffc107;
}

.total-black .label {
  color: #544d4d;
}

/* Action Dropdown Styles */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-dropdown-container {
  position: relative;
  display: inline-block;
}

.action-dropdown-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  min-width: 140px;
  justify-content: space-between;
}

.action-dropdown-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-dropdown-btn:active {
  transform: translateY(0);
}

.action-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 280px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 8px;
  overflow: hidden;
}

.action-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.action-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.action-dropdown-item:last-child {
  border-bottom: none;
}

.action-dropdown-item:hover {
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
  color: #667eea;
  text-decoration: none;
}

.action-dropdown-item i {
  font-size: 18px;
  width: 24px;
  text-align: center;
  color: #667eea;
}

.action-dropdown-item-text {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.action-dropdown-item-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}

.filter-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100%;
  background: #ffffff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 1051;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid #dee2e6;
}

.filter-sidebar.open {
  right: 0;
}

.filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1050;
  display: none;
}

.filter-overlay.show {
  display: block;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  background: #e0e4e8;
}

.filter-body {
  padding: 1rem;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.filter-sidebar .btn-close {
  box-shadow: none;
}

.card-search input {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 8px 12px;
}

.card-search input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

table {
  text-align: center;
}

th {
  white-space: nowrap;
}

#dataTableBuilder thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #e0e4e8;
}

/* Ensure table container is scrollable */
.table-responsive {
  overflow-y: auto;
  overflow-x: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.table-responsive::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.table-responsive {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: thin;
  /* Firefox */
}

@media (max-width: 576px) {
  .filter-sidebar {
    width: 100%;
    right: -100%;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .totals-cards {
    gap: 6px;
  }

  .total-card {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
    padding: 6px 8px;
  }

  .total-card .label {
    font-size: 9px;
  }

  .total-card .value {
    font-size: 12px;
  }

  /* Make badges smaller on mobile */
  .badge {
    font-size: 10px !important;
    padding: 3px 6px;
  }

  .openFilterSidebar {
    font-size: 12px;
    padding: 6px 12px;
  }

  .filter-sidebar {
    width: 250px;
  }

  /* Action dropdown adjustments */
  .action-dropdown-menu {
    right: -20px;
    min-width: 260px;
  }

  .action-dropdown-btn {
    min-width: 120px;
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Per-company module menu icons (uploaded images) */
.menu-icon-custom {
  width: 1.375rem;
  height: 1.375rem;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}
.menu-vertical .menu-link .menu-icon-custom,
.menu-vertical .menu-link .menu-icon {
  margin-right: 0.5rem;
}
