@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

:root {
  /* Emerald Mist Theme Variables */
  --emerald-primary: #064e3b;
  --emerald-light: #059669;
  --emerald-accent: #10b981;
  --emerald-gradient: linear-gradient(135deg, #064e3b 0%, #059669 100%);
}

/* Forceful Theme Overrides */
.navbar-dark.bg-emerald-mist {
  background: var(--emerald-gradient) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Map bg-teal and bg-indigo to Emerald Gradient for Layout consistency */
.bg-teal,
.bg-indigo {
  background: var(--emerald-gradient) !important;
  color: #fff !important;
}

/* Sidebar Global Premium Styling */
.sidebar {
  font-family: 'Roboto', sans-serif !important;
  border-right: none !important;
}

/* Sidebar Navigation Items */
.nav-sidebar .nav-link {
  transition: all 0.25s ease;
  font-weight: 500;
  border-radius: 10px !important;
  margin: 4px 12px !important;
  padding: 10px 15px !important;
  color: inherit;
}

/* Parent/Outer Active State */
.nav-sidebar>.nav-item>.nav-link.active,
.nav-sidebar>.nav-item-submenu.nav-item-open>.nav-link {
  background: var(--emerald-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px -1px rgba(16, 185, 129, 0.35) !important;
}

/* Inner Pill (Child) Active - Lighter Emerald */
.nav-group-sub .nav-link.active {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  margin: 2px 10px !important;
  /* Slightly tighter for inner items */
}

/* Icons - Emerald Theme */
.nav-sidebar .nav-link i {
  color: var(--emerald-accent) !important;
  /* Bright emerald */
  font-size: 1.1rem;
  margin-right: 12px;
  transition: all 0.25s ease;
}

/* Active/Hover Icon Color */
.nav-sidebar .nav-link:hover i,
.nav-sidebar .nav-link.active i,
.nav-item-open>.nav-link i {
  color: #ffffff !important;
}

/* Dark Sidebar - Deep Premium Gradient */
.sidebar-dark {
  background: linear-gradient(180deg, #022c22 0%, #064e3b 100%) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.sidebar-dark .nav-sidebar .nav-item-open>.nav-link:not(.active),
.sidebar-dark .nav-sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* Light Sidebar Refinement */
.sidebar-light .nav-sidebar .nav-item-open>.nav-link:not(.active),
.sidebar-light .nav-sidebar .nav-link:hover {
  background-color: #f0fdf4 !important;
  color: var(--emerald-primary) !important;
}

/* Sidebar Search Premium Styling */
#menuSearch {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  background-color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sidebar-dark #menuSearch {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.sidebar-dark #menuSearch::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

#menuSearch:focus {
  border-color: var(--emerald-accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.sidebar-dark #menuSearch:focus {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Badge Theme */
.badge-teal {
  background-color: var(--emerald-accent) !important;
  color: #ffffff !important;
}

/* Pagination Styling - Seamless & Unified */
ul.pagination {
  background-color: #f8fafc;
  border-radius: 12px !important;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex !important;
  padding: 0 !important;
  height: 42px !important;
  /* Fixed height for consistency */
  align-items: center;
  margin: 0 !important;
}

div.pagination {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
}

ul.pagination .page-item {
  margin: 0 !important;
  border: none !important;
  height: 100% !important;
  /* Fill container height */
}

ul.pagination .page-item .page-link {
  color: var(--emerald-primary);
  border: none !important;
  background: transparent !important;
  transition: all 0.3s ease;
  font-weight: 600;
  padding: 0 20px !important;
  /* Fixed horizontal padding */
  height: 100% !important;
  display: flex !important;
  align-items: center;
  /* Vertical centering */
  justify-content: center;
  border-radius: 0 !important;
}

ul.pagination .page-item.active .page-link {
  background: var(--emerald-gradient) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

ul.pagination .page-item.disabled .page-link {
  color: #94a3b8 !important;
  opacity: 0.6;
}

ul.pagination .page-item .page-link:hover:not(.active) {
  background-color: rgba(16, 185, 129, 0.08) !important;
  color: var(--emerald-accent) !important;
}

/* Page X of Y Styling - Clean Single Pill */
.btn-group.pagination {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  height: auto !important;
  overflow: visible !important;
}

.btn-group.pagination .btn-light {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: var(--emerald-primary) !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  margin-left: 10px !important;
  padding: 0 20px !important;
  height: 42px !important;
  /* Exact match to pagination height */
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  display: flex !important;
  align-items: center !important;
}

/* Dark mode adjustments for pagination */
.sidebar-dark ul.pagination {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-dark ul.pagination .page-link {
  color: #fff;
}

/* Topbar - Printer Selection Indicator */
#printer-selection-indicator {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

#printer-selection-indicator:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#printer-selection-indicator:active {
  transform: translateY(0);
}

.bg-white-10 {
  background-color: rgba(255, 255, 255, 0.1);
}

.hover-bg-white-20:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.border-transparent-white {
  border-color: rgba(255, 255, 255, 0.15);
}

.transition-all {
  transition: all 0.25s ease;
}

/* Emerald Button Utility */
.btn-success {
  background: var(--emerald-gradient) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
  transition: all 0.3s ease !important;
}

.btn-success:hover,
.btn-success:focus {
  background: linear-gradient(135deg, #059669 0%, #064e3b 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3) !important;
  outline: none !important;
}

/* SweetAlert Overrides for Emerald Theme */
.swal2-popup {
  border-radius: 12px !important;
  padding: 1.5rem !important;
  font-family: 'Roboto', sans-serif !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.swal2-title {
  color: var(--emerald-primary) !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  margin-bottom: 0.5rem !important;
}

.swal2-content,
.swal2-html-container {
  color: #4b5563 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

/* Unified Premium Input Styles */
.swal2-input,
.swal2-file,
.swal2-textarea,
.swal2-select {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 10px 15px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  background-color: #f8fafc !important;
  margin-top: 15px !important;
  font-size: 0.9rem !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.swal2-textarea {
  min-height: 100px !important;
  resize: vertical !important;
}

/* Focus States */
.swal2-input:focus,
.swal2-file:focus,
.swal2-textarea:focus,
.swal2-select:focus {
  border-color: var(--emerald-accent) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  background-color: #ffffff !important;
  outline: none !important;
}

/* Radio and Checkbox Styling */
.swal2-radio,
.swal2-checkbox {
  margin-top: 15px !important;
  background: transparent !important;
  justify-content: center !important;
  gap: 15px !important;
}

.swal2-radio label,
.swal2-checkbox label {
  font-size: 0.9rem !important;
  color: #4b5563 !important;
  font-weight: 500 !important;
}

/* Validation Message */
.swal2-validation-message {
  background: #fff1f2 !important;
  color: #be123c !important;
  border-radius: 12px !important;
  padding: 12px 15px 12px 45px !important;
  /* increased left padding to fix icon overlap */
  margin-top: 15px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  border: 1px solid #fecdd3 !important;
  border-left: 4px solid #e11d48 !important;
  box-shadow: 0 2px 4px rgba(225, 29, 72, 0.05) !important;
  position: relative !important;
}

/* Fix for swal2 validation icon positioning */
.swal2-validation-message::before {
  margin-right: 15px !important;
}

/* Noty (AJAX) Notification Overrides */
.noty_bar {
  border-radius: 12px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  border: none !important;
  overflow: hidden !important;
}

.noty_theme__alert.bg-success {
  background: var(--emerald-gradient) !important;
  color: #fff !important;
  padding: 12px 20px !important;
}

.noty_theme__alert.bg-danger {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #fff !important;
  padding: 12px 20px !important;
}

.noty_body {
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  padding: 0 !important;
}


.swal2-confirm {
  outline: none !important;
  border: none !important;
}

.swal2-cancel {
  outline: none !important;
  border: none !important;
}

.swal2-styled.swal2-confirm {
  background: var(--emerald-gradient) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  transition: all 0.3s ease !important;
}

.swal2-styled.swal2-cancel {
  background: #ef4444 !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  transition: all 0.3s ease !important;
}

.swal2-styled:hover {
  transform: translateY(-2px) !important;
}

.swal2-actions {
  margin-top: 25px !important;
  gap: 12px !important;
}

/* Emerald themed loader and icons */
.swal2-loader {
  border-color: var(--emerald-accent) transparent var(--emerald-accent) transparent !important;
}

.swal2-icon.swal2-info {
  border-color: var(--emerald-accent) !important;
  color: var(--emerald-accent) !important;
}

/* Fix for Success Icon Animation -> Changed to Static Tick as per user request */
.swal2-icon.swal2-success {
  border-color: var(--emerald-accent) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Hide all the built-in animated lines and masks */
.swal2-icon.swal2-success [class^='swal2-success-line'],
.swal2-icon.swal2-success .swal2-success-circular-line-left,
.swal2-icon.swal2-success .swal2-success-circular-line-right,
.swal2-icon.swal2-success .swal2-success-fix,
.swal2-icon.swal2-success .swal2-success-ring {
  display: none !important;
}

/* Inject a clean, static tick using pseudo-element */
.swal2-icon.swal2-success::after {
  content: '\e62d';
  /* Icomoon checkmark icon code */
  font-family: 'icomoon' !important;
  font-size: 3.5rem;
  color: var(--emerald-accent);
  line-height: 1;
  animation: swal2-show 0.3s ease-out;
  /* Simple fade/scale in */
}

@keyframes swal2-show {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Fix for the black border/glow on confirm button */
.swal2-confirm:focus,
.swal2-confirm:active,
.swal2-styled:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
  outline: none !important;
}

/* User Dropdown Premium Glassmorphism */
.dropdown-user .dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 15px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
  padding: 10px 0 !important;
  overflow: hidden;
  margin-top: 10px !important;
  min-width: 220px !important;
  position: absolute !important;
  /* Fix for mobile expansion */
}

.dropdown-user .dropdown-item {
  padding: 12px 20px !important;
  font-weight: 500;
  color: #334155 !important;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.dropdown-user .dropdown-item i {
  color: var(--emerald-accent) !important;
  font-size: 1.1rem;
  width: 24px;
}

.dropdown-user .dropdown-item:hover {
  background-color: #f0fdf4 !important;
  color: var(--emerald-primary) !important;
  padding-left: 25px !important;
  /* Subtle slide effect */
}

.dropdown-user .dropdown-divider {
  margin: 5px 0 !important;
  opacity: 0.1;
}

/* User Initials Circle */
.user-initials-circle {
  width: 36px;
  height: 36px;
  background: var(--emerald-gradient);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

/* Dropdown Animation - Disabled to prevent conflict with Popper.js positioning
.dropdown-menu {
  animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
*/

/* Fix for dropdown jumping to top-left of table */
.list-icons .dropdown {
  position: relative !important;
}

.list-icons .dropdown .dropdown-menu {
  margin-top: 0 !important;
}

.table td,
.table th {
  padding: 0.5rem 0.5rem;
  vertical-align: top;
  border-top: 1 px solid #ddd;
}

.AgedItem {
  background-color: #fbdcdd;
}

.hide {
  display: none;
}

.blinking-input {
  animation: blinking 1s infinite;
  border: 2px solid red;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

@keyframes blinking {

  0%,
  100% {
    background-color: #ffcccc;
  }

  50% {
    background-color: #ff9999;
  }
}

.readonly-checkbox {
  pointer-events: none;
}

.clickable {
  cursor: pointer;
}

.floating-btn {
  position: fixed;
  bottom: 20px;
  /* stays near bottom */
  left: 50%;
  /* move to horizontal center */
  transform: translateX(-50%);
  /* perfectly center it */
  z-index: 1050;
  width: auto;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Green Checkbox Variant */
.custom-checkbox-success .custom-control-input:checked~.custom-control-label::before {
  color: #fff;
  border-color: #28a745;
  background-color: #28a745;
}

/* Emerald Mist Button Variant */
.btn-emerald-mist {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-emerald-mist:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.35) !important;
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
}

.btn-emerald-mist:active {
  transform: translateY(0) !important;
}

:root {
  /* Emerald Mist - Deep Emerald & Teal Gradient */
  --primary-gradient: linear-gradient(135deg, #064e3b 0%, #059669 100%);
  --accent-color: #10b981;
  --accent-hover: #059669;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.login-page {
  font-family: 'Roboto', sans-serif;
  background-color: #f3f4f6;
  /* Softer gray */
  overflow-x: hidden;
}

/* Reset default padding from template */
.login-page .content {
  padding: 0 !important;
  margin: 0 !important;
}

.login-wrapper {
  min-height: 100vh;
  width: 100%;
}

/* Left Side - Hero */
.bg-gradient-primary {
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
}

.bg-gradient-primary::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  /* Subtle overlay pattern */
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
  top: -25%;
  left: -25%;
  animation: pulse 20s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1) rotate(0deg);
  }

  100% {
    transform: scale(1.1) rotate(5deg);
  }
}

.quote-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  /* Larger radius */
  padding: 3rem;
  /* Slightly reduced padding to accommodate min-height */
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  min-height: 400px;
  /* Fixed height for consistency */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-card:hover {
  transform: translateY(-5px);
}

.quote-text {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: var(--text-shadow);
  color: #ffffff;
}

.quote-author {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a7f3d0;
  /* Emerald-200 */
}

/* Right Side - Form */
.login-form-section {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.1);
}

.transition-all {
  transition: all 0.3s ease;
}

.opacity-25 {
  opacity: 0.25 !important;
}

.btn-primary-gradient {
  background: linear-gradient(to right, #10b981, #059669);
  border: none;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
  background: linear-gradient(to right, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
  color: white;
}

.auth-check-label {
  user-select: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4b5563;
  padding-left: 0.2rem;
}

/* Custom Checkbox */
.form-check-input {
  width: 1.3em;
  height: 1.3em;
  margin-top: 0.1em;
  border: 2px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Quote Animations */
.quote-content {
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.fade-out-up {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  filter: blur(4px);
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(1.05);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Floating Labels for BS4 - Refined */
.form-floating {
  position: relative;
}

.form-floating>.form-control {
  height: 3.5rem;
  padding: 1.125rem 0.75rem 0.375rem 0.75rem;
  line-height: 1.25;
}

.form-floating>label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  padding: 0 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: all .1s ease-in-out;
  color: #6b7280;
  margin-bottom: 0;
  height: auto;
}

.form-floating>.form-control:focus,
.form-floating>.form-control:not(:placeholder-shown) {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
  color: var(--accent-color);
  font-weight: 700;
  opacity: 1;
  transform: scale(0.85) translateY(-1.75rem) translateX(0.15rem);
  top: 50%;
}

.form-floating>.form-control::placeholder {
  color: transparent !important;
}

.form-floating>.form-control:focus::placeholder {
  color: #9ca3af !important;
}

/* Validation Label Styling */
.validation-invalid-label {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  font-weight: 600;
  animation: slideInDown 0.2s ease-out;
}


@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Component Table Compact Styling */
.component-table .component-row td {
  /* padding: 2px !important; */
  padding: 3px 8px 3px 8px !important;
}

.component-table .form-control {
  padding: 0.2rem 0.4rem !important;
  height: auto !important;
}

.component-table .btn-sm {
  padding: 0.1rem 0.3rem !important;
}

.validation-invalid-label:before {
  content: '\ed63';
  font-family: 'icomoon';
  margin-right: 0.4rem;
  font-size: 0.9rem;
}

.is-invalid {
  border-color: #ef4444 !important;
}

/* BS5 utilities for BS4 */
.rounded-3 {
  border-radius: 0.5rem !important;
}

.shadow-sm {
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

.opacity-0 {
  opacity: 0 !important;
}

.duration-1000 {
  transition-duration: 1000ms !important;
}

/*
Premium
Login
Theme
*/
/* Premium Login Theme */

/* Animated Mesh Gradient Background */
.bg-premium-mesh {
  background-color: #ecfdf5;
  background-image:
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(5, 150, 105, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 78, 59, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(52, 211, 153, 0.15) 0px, transparent 50%);
  animation: meshPulse 15s ease-in-out infinite alternate;
}

@keyframes meshPulse {
  0% {
    background-position: 0% 50%;
    opacity: 0.8;
  }

  100% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

/* Glassmorphism Card with White Tint */
.card-glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 20px 50px -12px rgba(6, 78, 59, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-glass:hover {
  transform: translateY(-2px);
  box-shadow:
    0 25px 60px -12px rgba(6, 78, 59, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

/* Premium Inputs */
.form-control-premium {
  background-color: rgba(248, 250, 252, 0.8) !important;
  border: 1px solid #e2e8f0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

.form-control-premium:focus {
  background-color: #ffffff !important;
  border-color: var(--emerald-accent) !important;
  box-shadow:
    0 0 0 4px rgba(16, 185, 129, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.form-floating-premium>label {
  color: #64748b;
  font-weight: 500;
}

.form-floating-premium>.form-control:focus~label,
.form-floating-premium>.form-control:not(:placeholder-shown)~label {
  color: var(--emerald-primary);
  font-weight: 700;
}

/* Premium Button with Glossy Effect */
.btn-premium {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3), 0 2px 4px -1px rgba(16, 185, 129, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white !important;
}

.btn-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4), 0 4px 6px -2px rgba(16, 185, 129, 0.2);
}

.btn-premium:hover::after {
  opacity: 1;
}

/* Animated Login Icon */
.login-icon-container {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.15) 100%);
  transition: all 0.5s ease;
  width: 80px;
  height: 80px;
}

.card-glass:hover .login-icon-container {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.25) 100%);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.login-icon {
  transition: all 0.5s ease;
}

.card-glass:hover .login-icon {
  /* transform: scale(1.2); */
}

.rounded-xl {
  border-radius: 30px !important;
}

/* Progress Bar - Work Order Management */
.progress-work-order {
  height: 6px !important;
  border-radius: 10px !important;
  background-color: #f1f5f9 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  border: none !important;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-work-order .progress-bar {
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-work-order .bg-success {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%) !important;
}

.progress-work-order .bg-info {
  background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%) !important;
}

/* Premium Work Progress Columns */
.col-wo-done {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #064e3b !important;
  font-weight: 800 !important;
  text-align: center !important;
  border-left: 1px solid rgba(16, 185, 129, 0.1) !important;
}

.col-wo-live {
  background-color: rgba(14, 165, 233, 0.15) !important;
  color: #0369a1 !important;
  font-weight: 800 !important;
  text-align: center !important;
  border-left: 1px solid rgba(14, 165, 233, 0.1) !important;
}

.col-wo-reject {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #991b1b !important;
  font-weight: 800 !important;
  text-align: center !important;
  border-left: 1px solid rgba(239, 68, 68, 0.1) !important;
}

.col-wo-wait {
  background-color: rgba(148, 163, 184, 0.15) !important;
  color: #1e293b !important;
  font-weight: 800 !important;
  text-align: center !important;
  border-left: 1px solid rgba(148, 163, 184, 0.1) !important;
}

.col-wo-total {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  font-weight: 800 !important;
  text-align: center !important;
}

thead th.col-wo-done,
thead th.col-wo-live,
thead th.col-wo-reject,
thead th.col-wo-wait,
thead th.col-wo-total {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-top-width: 3px !important;
  vertical-align: top !important;
}

thead th.col-wo-done {
  border-top-color: #10b981 !important;
}

thead th.col-wo-live {
  border-top-color: #0ea5e9 !important;
}

thead th.col-wo-reject {
  border-top-color: #ef4444 !important;
}

thead th.col-wo-wait {
  border-top-color: #94a3b8 !important;
}

thead th.col-wo-total {
  border-top-color: #64748b !important;
}



.table-progress-cell {
  padding: 1rem 0.5rem !important;
  min-width: 140px;
  vertical-align: middle !important;
}

/* Tooltip alignment for table cells */
.table-progress-cell {
  min-width: 150px;
  vertical-align: middle !important;
}

/* Enhanced Status Badges */
.badge-emerald-mist {
  background: var(--emerald-gradient) !important;
  color: #fff !important;
  padding: 6px 12px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(6, 78, 59, 0.2) !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.badge-outline-emerald {
  border: 2px solid var(--emerald-accent) !important;
  color: var(--emerald-primary) !important;
  background: transparent !important;
  padding: 5px 12px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background-color: rgba(16, 185, 129, 0.05) !important;
}

.badge-pending-light {
  border: 2px solid #cbd5e1 !important;
  color: #475569 !important;
  background: #f8fafc !important;
  padding: 5px 12px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.badge i {
  font-size: 0.9rem;
}

/* 
================================================================================
STANDARD PRINT STYLES (Emerald Mist Theme)
================================================================================
*/

@page {
  size: A4;
  margin: 10mm;
}

/* Base body class for all print reports */
.print-body {
  font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 11px;
  color: #333;
  margin: 0;
  padding: 20px;
  background-color: #f0f2f5;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  overflow: auto !important;
  height: auto !important;
}

/* Preview Navigation Header */
.no-print-header {
  max-width: 210mm;
  margin: 0 auto 15px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.no-print-btn {
  padding: 10px 24px;
  background: var(--emerald-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.no-print-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  filter: brightness(1.1);
}

/* Central Report Container */
.print-container {
  max-width: 210mm;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  min-height: 297mm;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Report Header Area */
.report-header {
  text-align: center;
  margin-bottom: 25px;
  border-bottom: 4px solid var(--emerald-primary);
  padding-bottom: 15px;
  position: relative;
}

.report-header::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--emerald-gradient);
}

.report-header h1 {
  margin: 0 0 5px 0;
  font-size: 26px;
  color: var(--emerald-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 900;
}

/* Metadata Styling */
.meta-grid,
.meta-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin-bottom: 30px;
  padding: 20px;
  background: #f0fdf4;
  /* Light Emerald */
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.meta-item,
.meta-box {
  display: flex !important;
  flex-direction: column !important;
}

.meta-label,
.meta-box .label {
  font-size: 10px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.meta-value,
.meta-item .font-bold,
.meta-box .value {
  font-size: 15px;
  font-weight: 700 !important;
  color: var(--emerald-primary);
}

/* Standardized Report Table */
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.report-table thead th {
  background-color: var(--emerald-primary) !important;
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  padding: 14px 15px;
  text-align: left;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.report-table tbody td {
  padding: 10px 15px;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  line-height: 1.5;
}

.report-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.report-table tfoot tr {
  background-color: #f1f8e9 !important;
  font-weight: 800;
  color: var(--emerald-primary);
  border-top: 2px solid var(--emerald-accent);
}

.report-table tfoot td {
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
}

/* Compact version for dense reports */
.report-table-compact thead th {
  padding: 8px 10px !important;
}

.report-table-compact tbody td {
  padding: 6px 10px !important;
}

/* Analytical Components (for detailed reports) */
.analytics-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: var(--emerald-primary);
  border-left: 5px solid var(--emerald-accent);
  padding-left: 12px;
  letter-spacing: 0.5px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-bottom: 4px solid var(--emerald-accent);
  border-radius: 12px;
  padding: 15px 12px;
  text-align: center;
}

.stat-label {
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.stat-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--emerald-light);
}

/* Composition UI (from Detailed Report) */
.composition-container {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  position: relative;
}

.equation-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.eq-part {
  text-align: center;
  flex: 1;
}

.eq-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--emerald-primary);
  display: block;
}

.eq-label {
  font-size: 9px;
  text-transform: uppercase;
  color: #777;
  font-weight: 700;
}

.eq-operator {
  font-size: 24px;
  font-weight: 300;
  color: #ccc;
}

.composition-bar-container {
  height: 24px;
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  margin: 0 20px;
  border: 1px solid #e2e8f0;
}

.bar-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bar-net {
  background: var(--emerald-gradient);
}

.bar-stone {
  background: #475569;
}

/* Footer Section */
.report-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 11px;
  color: #94a3b8;
}

/* Utility Classes */
.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

.text-left {
  text-align: left !important;
}

/* Print Mode Settings */
@media print {

  html,
  body {
    background-color: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    height: auto !important;
  }

  .print-body {
    padding: 0 !important;
    background: #fff !important;
    overflow: auto !important;
    height: auto !important;
  }

  .print-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    min-height: auto !important;
  }

  .no-print,
  .no-print-header {
    display: none !important;
  }

  /* Force background colors in print */
  .report-table thead th {
    background-color: var(--emerald-primary) !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report-table tfoot tr {
    background-color: #f1f8e9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .meta-grid,
  .meta-container {
    background: #f0fdf4 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report-header {
    border-bottom: 4px solid var(--emerald-primary) !important;
    -webkit-print-color-adjust: exact;
  }

  .stat-card {
    border: 1px solid #e2e8f0 !important;
    border-bottom: 4px solid var(--emerald-accent) !important;
    -webkit-print-color-adjust: exact;
  }

  .bar-net {
    background-color: var(--emerald-light) !important;
    -webkit-print-color-adjust: exact;
  }

  .bar-stone {
    background-color: #475569 !important;
    -webkit-print-color-adjust: exact;
  }
}

/* 
================================================================================
STICKER STYLES (Compact Labels)
================================================================================
*/

.sticker-body {
  width: 25mm;
  height: auto;
  margin: 0;
  padding: 2mm;
  font-family: Arial, sans-serif !important;
  font-size: 10px;
  line-height: 1.2;
  box-sizing: border-box;
}

.sticker-table {
  width: 100%;
  border-collapse: collapse;
}

.sticker-table td {
  padding: 1mm 0;
  border-bottom: 1px dashed #000;
}

.sticker-label-title {
  font-weight: bold !important;
  width: 30%;
  vertical-align: top;
}

.sticker-label-value {
  width: 70%;
  text-align: right;
}

/* btn-to-top custom styling for combined up/down arrows (side-by-side, slim, square) */
.btn-to-top {
  position: absolute;
  right: 1.25rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all ease-in-out 0.15s;
  bottom: 1.25rem;
}

.btn-to-top-visible {
  opacity: 1;
  visibility: visible;
}

.btn-to-top-up,
.btn-to-top-down {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  padding: 0 !important;
  border-radius: 4px !important;
  /* Slightly rounded square for premium look */
}

/* Ensure gap works if bootstrap 5 isn't fully loaded */
.btn-to-top.d-flex.gap-1>.btn+.btn {
  margin-left: 0.25rem;
}

/* Department Footer: Enhanced Selected Count Indicator */
.selected-count-wrapper {
  background-color: #f1f5f9;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.selected-count-indicator {
  width: 32px;
  height: 32px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background-color: #94a3b8;
  /* Default gray when 0 */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.selected-count-indicator.active {
  background-color: #f59e0b;
  /* Warning yellow when > 0 */
  animation: selectedPulse 1.5s infinite;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

@keyframes selectedPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* Premium Stats Cards */
.stats-card-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none !important;
  border-radius: 12px !important;
  min-height: 105px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.stats-card-premium:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1) !important;
}

.stats-card-premium .card-body {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem !important;
}

.stats-card-premium .stats-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  display: block;
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}

.stats-card-premium .stats-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0.6;
}

.stats-card-premium .stats-icon-bg {
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 4.8rem;
  opacity: 0.07;
  transform: rotate(-15deg);
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card-premium:hover .stats-icon-bg {
  transform: rotate(0deg) scale(1.15);
  opacity: 0.12;
}

/* Color Variants with Subtle Gradients */
.stats-card-indigo {
  background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%);
  border-left: 5px solid #3949ab !important;
}

.stats-card-indigo .stats-value {
  color: #1a237e;
}

.stats-card-indigo .stats-icon-bg {
  color: #3949ab;
}

.stats-card-danger {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
  border-left: 5px solid #ef5350 !important;
}

.stats-card-danger .stats-value {
  color: #b71c1c;
}

.stats-card-danger .stats-icon-bg {
  color: #ef5350;
}

.stats-card-teal {
  background: linear-gradient(135deg, #ffffff 0%, #f0fffb 100%);
  border-left: 5px solid #26a69a !important;
}

.stats-card-teal .stats-value {
  color: #004d40;
}

.stats-card-teal .stats-icon-bg {
  color: #26a69a;
}

.stats-card-slate {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-left: 5px solid #607d8b !important;
}

.stats-card-slate .stats-value {
  color: #263238;
}

.stats-card-slate .stats-icon-bg {
  color: #607d8b;
}

/* GLOBAL FIX: Disable Number Input Scroll & Spinners */
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Highlight for fields with data */
.has-data {
  background-color: #fff9c4 !important;
  border-color: #ffd54f !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 213, 79, 0.25) !important;
}

/* Tagging Screen Component Table Enhancement */
.component-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.component-row {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.component-row:hover {
  background-color: #f1f5f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.component-row td {
  padding: 8px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.component-row td:first-child {
  border-left: 1px solid #e2e8f0;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  font-weight: 600;
  color: var(--emerald-primary);
}

.component-row td:last-child {
  border-right: 1px solid #e2e8f0;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.billing-stone-wt-total {
  cursor: pointer;
  font-weight: 700;
  color: #059669;
  border-bottom: 1px dashed #059669;
  display: inline-block;
}

.billing-stone-wt-total:hover {
  color: #047857;
  border-bottom-style: solid;
}

.bifurcation-popover {
  font-size: 0.85rem;
}

/* Ensure popover has enough width */
.popover.emerald-popover {
  min-width: 250px !important;
  max-width: 400px !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
  background-color: var(--emerald-primary) !important;
  border: 1px solid var(--emerald-accent) !important;
}

.popover.emerald-popover .popover-header {
  background-color: transparent !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-weight: 600;
}

.popover.emerald-popover .popover-body {
  color: #ffffff !important;
}

/* Arrow color overrides for all placements */
.popover.emerald-popover.bs-popover-top .arrow::after,
.popover.emerald-popover.bs-popover-auto[x-placement^="top"] .arrow::after {
  border-top-color: var(--emerald-primary) !important;
}

.popover.emerald-popover.bs-popover-bottom .arrow::after,
.popover.emerald-popover.bs-popover-auto[x-placement^="bottom"] .arrow::after {
  border-bottom-color: var(--emerald-primary) !important;
}

.popover.emerald-popover.bs-popover-right .arrow::after,
.popover.emerald-popover.bs-popover-auto[x-placement^="right"] .arrow::after {
  border-right-color: var(--emerald-primary) !important;
}

.popover.emerald-popover.bs-popover-left .arrow::after,
.popover.emerald-popover.bs-popover-auto[x-placement^="left"] .arrow::after {
  border-left-color: var(--emerald-primary) !important;
}

/* Arrow border overrides */
.popover.emerald-popover.bs-popover-top .arrow::before,
.popover.emerald-popover.bs-popover-auto[x-placement^="top"] .arrow::before {
  border-top-color: var(--emerald-accent) !important;
}

.popover.emerald-popover.bs-popover-bottom .arrow::before,
.popover.emerald-popover.bs-popover-auto[x-placement^="bottom"] .arrow::before {
  border-bottom-color: var(--emerald-accent) !important;
}

.popover.emerald-popover.bs-popover-right .arrow::before,
.popover.emerald-popover.bs-popover-auto[x-placement^="right"] .arrow::before {
  border-right-color: var(--emerald-accent) !important;
}

.popover.emerald-popover.bs-popover-left .arrow::before,
.popover.emerald-popover.bs-popover-auto[x-placement^="left"] .arrow::before {
  border-left-color: var(--emerald-accent) !important;
}

.bifurcation-table {
  width: 100%;
  margin-bottom: 0;
  font-size: 0.85rem;
}

.bifurcation-table th {
  padding: 6px 10px;
  background-color: rgba(255, 255, 255, 0.1);
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.bifurcation-table td {
  padding: 6px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}