#notificationContainer {
  position: fixed !important;
  top: 1.5rem !important;
  right: 1.5rem !important;
  width: calc(100% - 3rem) !important;
  max-width: 420px !important;
  z-index: 2147483647 !important;
  pointer-events: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow: visible !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

@media (max-width: 767px) {
  #notificationContainer {
    top: auto !important;
    bottom: 2.5rem !important;
    /* Increased margin from bottom */
    left: 50% !important;
    /* Centering */
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 420px !important;
    /* Professional island look */
    gap: 12px !important;
    /* Consistent spacing */
    padding: 0 10px !important;
    /* Internal safe area */
  }
}

#notificationContainer .notification {
  pointer-events: auto !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 16px 20px !important;
  color: white !important;
  border-radius: 16px !important;
  /* More rounded for elegance */
  box-shadow: var(--shadow-premium) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  /* Enhanced glass */
  transition: all var(--transition-normal) !important;
  position: relative !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* Scrollbar personalizado para el contenedor de notificaciones */
#notificationContainer::-webkit-scrollbar {
  width: 6px !important;
}

#notificationContainer::-webkit-scrollbar-track {
  background: transparent !important;
}

#notificationContainer::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 3px !important;
}

#notificationContainer::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4) !important;
}

/* Animaciones suaves */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDownFade {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* AURA System - Responsive CSS with SOLID Principles */

:root {
  /* Color Variables */
  --primary: #5937b6;
  --secondary: #46cacd;
  --accent: #f6bd45;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --text-primary: #1f2937;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border: #e5e7eb;
  --border-dark: #d1d5db;

  /* Responsive Spacing Variables */
  --spacing-xs: clamp(0.25rem, 1vw, 0.5rem);
  --spacing-sm: clamp(0.5rem, 1.5vw, 0.75rem);
  --spacing-md: clamp(0.75rem, 2vw, 1rem);
  --spacing-lg: clamp(1rem, 3vw, 1.5rem);
  --spacing-xl: clamp(1.5rem, 4vw, 2rem);
  --spacing-2xl: clamp(2rem, 5vw, 3rem);

  /* Navbar Height */
  --nav-height: 72px;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-premium:
    0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 5px 15px -3px rgba(0, 0, 0, 0.05);

  /* Responsive Font Sizes */
  --font-xs: clamp(0.7rem, 1.2vw, 0.875rem);
  --font-sm: clamp(0.8rem, 1.8vw, 1rem);
  --font-base: clamp(0.9rem, 2.2vw, 1.125rem);
  --font-lg: clamp(1.1rem, 2.8vw, 1.25rem);
  --font-xl: clamp(1.2rem, 3.5vw, 1.5rem);

  /* Responsive Border Radius */
  --radius-sm: clamp(0.375rem, 1vw, 0.5rem);
  --radius-md: clamp(0.5rem, 1.5vw, 0.75rem);
  --radius-lg: clamp(0.75rem, 2vw, 1rem);

  /* Responsive Padding */
  --pad-input: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
  --pad-button: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

/* ============================================
   GLOBAL CARET & UI BEHAVIOR FIXES
   ============================================ */

/* Restrict the text caret (blinking bar) only to editable elements */
* {
  caret-color: transparent;
}

input,
textarea,
[contenteditable],
[contenteditable="true"] {
  caret-color: auto;
}

/* Prevent icons and buttons from accidentally triggering text selection or caret */
i,
.fas,
.far,
.fab,
button,
.btn {
  user-select: none;
}

/* Robust fix for elements that might capture focus but are not editable */
:focus:not(input):not(textarea):not([contenteditable]):not(
    [contenteditable="true"]
  ) {
  caret-color: transparent !important;
}

/* ============================================
   LAYOUT STABILITY & REFINEMENT
   ============================================ */

/* Sidebar Scroll Lock */
body.sidebar-open {
  overflow: hidden !important;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1e293b;
    /* slate-800 */
    --bg-secondary: #0f172a;
    /* slate-900 */
    --bg-tertiary: #020617;
    /* slate-950 */
    --text-primary: #f8fafc;
    /* slate-50 */
    --text-secondary: #cbd5e1;
    /* slate-300 */
    --text-muted: #94a3b8;
    /* slate-400 */
    --text-light: #64748b;
    /* slate-500 */
    --border: #334155;
    /* slate-700 */
    --border-dark: #475569;
    /* slate-600 */
    --shadow-premium:
      0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 5px 15px -3px rgba(0, 0, 0, 0.4);
    --glass: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
  }

  /* Global Button Contrast Overrides */
  .btn-accent {
    color: #1e293b !important;
    /* Ensure dark text on yellow background */
  }

  .btn-secondary {
    color: #f8fafc !important;
    /* Brighter text for secondary buttons */
    background-color: #334155 !important;
  }

  .btn-secondary:hover {
    background-color: #475569 !important;
  }

  .btn-primary {
    color: #ffffff !important;
  }

  body {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
  }

  /* Components backgrounds */
  .bg-white,
  aside,
  .modal-container,
  .bg-slate-50,
  .bg-gray-50,
  .bg-gray-100 {
    background-color: var(--bg-primary) !important;
  }

  .bg-indigo-50,
  .bg-purple-50,
  .bg-emerald-50,
  .bg-blue-50,
  .bg-slate-50,
  .bg-gray-50,
  .bg-slate-50\/50,
  .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.05) !important;
  }

  /* Blue tinted backgrounds in dark mode */
  .bg-blue-50\/50 {
    background-color: rgba(59, 130, 246, 0.1) !important;
  }

  /* Specific background overrides for buttons and items */
  .hover\:bg-slate-100:hover,
  .hover\:bg-gray-100:hover,
  .hover\:bg-purple-50:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
  }

  /* Red backgrounds for delete/danger actions */
  .bg-red-50 {
    background-color: rgba(239, 68, 68, 0.1) !important;
  }

  .hover\:bg-red-50:hover {
    background-color: rgba(239, 68, 68, 0.15) !important;
  }

  /* Green backgrounds */
  .bg-green-50 {
    background-color: rgba(16, 185, 129, 0.1) !important;
  }

  /* Log entries (Actividad Reciente) */
  .log-entry.log-create {
    background-color: rgba(70, 202, 205, 0.1) !important;
  }

  .log-entry.log-approve {
    background-color: rgba(16, 185, 129, 0.1) !important;
  }

  .log-entry.log-reject {
    background-color: rgba(239, 68, 68, 0.1) !important;
  }

  .log-entry div {
    color: var(--text-primary) !important;
  }

  .log-entry .text-gray-600 {
    color: var(--text-muted) !important;
  }

  /* Table Specifics */
  thead.bg-gray-50,
  thead.bg-gray-100,
  thead.bg-gray-200 {
    background-color: var(--bg-secondary) !important;
  }

  /* Purple table headers */
  .bg-purple-100,
  .bg-purple-200 {
    background-color: rgba(168, 85, 247, 0.15) !important;
  }

  /* Blue table headers */
  .bg-blue-100,
  .bg-blue-200 {
    background-color: rgba(59, 130, 246, 0.15) !important;
  }

  thead.text-gray-600,
  thead .text-gray-600 {
    color: var(--text-secondary) !important;
  }

  table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
  }

  table tbody tr:hover td {
    color: white !important;
  }

  /* Text & Contrast */
  .text-gray-900,
  .text-slate-900 {
    color: #ffffff !important;
  }

  .text-gray-800,
  .text-slate-800 {
    color: #f1f5f9 !important;
  }

  .text-gray-700,
  .text-slate-700 {
    color: var(--text-primary) !important;
  }

  .text-gray-600,
  .text-slate-600 {
    color: var(--text-secondary) !important;
  }

  .text-gray-500,
  .text-slate-500 {
    color: #e2e8f0 !important;
  }

  .text-gray-400,
  .text-slate-400 {
    color: #cbd5e1 !important;
  }

  /* Colors that were too dark */
  .text-purple-heart {
    color: #a78bfa !important;
  }

  /* violet-400 */
  .text-green-700 {
    color: #4ade80 !important;
  }

  /* green-400 */
  .text-blue-700 {
    color: #60a5fa !important;
  }

  /* blue-400 */
  .text-blue-600 {
    color: #93c5fd !important;
  }

  /* blue-300 */
  .text-blue-900 {
    color: #bfdbfe !important;
  }

  /* blue-200 */
  .text-purple-900 {
    color: #e9d5ff !important;
  }

  /* purple-200 */
  /* purple-400 */

  /* Status colors overrides for better contrast */
  .text-red-500,
  .text-red-600 {
    color: #f87171 !important;
  }

  .text-green-600,
  .text-green-500 {
    color: #4ade80 !important;
  }

  .text-yellow-600,
  .text-yellow-700,
  .text-yellow-800,
  .text-casablanca {
    color: #fcd34d !important;
  }

  /* Badge improvements for dark mode */
  .badge-pending {
    background-color: rgba(251, 191, 36, 0.2) !important;
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
  }

  .badge-waiting {
    background-color: rgba(148, 163, 184, 0.2) !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
  }

  .badge-approved-n1 {
    background-color: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
  }

  .badge-approved-n2 {
    background-color: rgba(37, 99, 235, 0.2) !important;
    color: #93c5fd !important;
    border-color: rgba(37, 99, 235, 0.4) !important;
  }

  .badge-approved-finanzas {
    background-color: rgba(29, 78, 216, 0.3) !important;
    color: #bfdbfe !important;
    border-color: rgba(29, 78, 216, 0.5) !important;
  }

  .badge-rejected {
    background-color: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
  }

  .badge-paid {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
  }

  /* Role Badges */
  .badge-role-admin {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
  }

  .badge-role-solicitante {
    background-color: rgba(148, 163, 184, 0.2) !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
  }

  .badge-role-aprobador {
    background-color: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
  }

  .badge-role-finanzas {
    background-color: rgba(29, 78, 216, 0.3) !important;
    color: #bfdbfe !important;
    border-color: rgba(29, 78, 216, 0.5) !important;
  }

  /* Form elements adaptation in dark mode */
  .form-input,
  .form-select {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border) !important;
    color: var(--text-primary) !important;
  }

  .form-input::placeholder {
    color: var(--text-muted) !important;
  }

  /* Login page and all input fields */
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="number"],
  input[type="date"],
  textarea,
  select {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border) !important;
    color: var(--text-primary) !important;
  }

  select option {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
  }

  input[type="text"]::placeholder,
  input[type="password"]::placeholder,
  input[type="email"]::placeholder,
  input[type="number"]::placeholder,
  textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
  }

  /* Specific overrides for border colors in inputs */
  .border-gray-100,
  .border-gray-200,
  .border-gray-300,
  .border-slate-100,
  .border-slate-200,
  .border-slate-300,
  .border-blue-100,
  .border-blue-200,
  .border-purple-100 {
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  .border-t,
  .border-b,
  .border-l,
  .border-r {
    border-color: var(--border) !important;
  }

  /* Shadows for dark mode */
  .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4) !important;
  }

  .shadow {
    box-shadow:
      0 1px 3px 0 rgba(0, 0, 0, 0.5),
      0 1px 2px -1px rgba(0, 0, 0, 0.5) !important;
  }

  .shadow-md {
    box-shadow:
      0 4px 6px -1px rgba(0, 0, 0, 0.5),
      0 2px 4px -2px rgba(0, 0, 0, 0.5) !important;
  }

  .shadow-lg {
    box-shadow:
      0 10px 15px -3px rgba(0, 0, 0, 0.6),
      0 4px 6px -4px rgba(0, 0, 0, 0.6) !important;
  }

  .shadow-xl {
    box-shadow:
      0 20px 25px -5px rgba(0, 0, 0, 0.7),
      0 8px 10px -6px rgba(0, 0, 0, 0.7) !important;
  }

  /* Scrollbar for dark mode */
  .custom-scrollbar::-webkit-scrollbar-thumb,
  #notificationContainer::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15) !important;
  }

  .custom-scrollbar::-webkit-scrollbar-thumb:hover,
  #notificationContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25) !important;
  }

  /* Focus states for inputs */
  input:focus,
  textarea:focus,
  select:focus {
    border-color: var(--secondary) !important;
    outline: 2px solid rgba(70, 202, 205, 0.3) !important;
  }

  /* Labels */
  label {
    color: var(--text-primary) !important;
  }

  /* Info blocks and tech badges */
  .info-block {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border) !important;
  }

  .info-block:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--secondary) !important;
  }

  .tech-badge {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border) !important;
  }

  .tech-label {
    color: var(--text-muted) !important;
  }

  .tech-value {
    color: var(--secondary) !important;
  }

  /* Loading overlay */
  .loading-overlay {
    background-color: rgba(15, 23, 42, 0.9) !important;
  }

  /* Skeleton loaders */
  .skeleton {
    background: linear-gradient(
      90deg,
      #334155 25%,
      #475569 50%,
      #334155 75%
    ) !important;
  }

  /* Scrollbar in dark mode */
  .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569 !important;
  }

  .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #64748b !important;
  }

  /* Borders */
  .border,
  .border-gray-100,
  .border-gray-200,
  .border-slate-100,
  .border-slate-200,
  .border-slate-300 {
    border-color: var(--border) !important;
  }

  .border-purple-100 {
    border-color: rgba(168, 85, 247, 0.3) !important;
  }

  .border-purple-200 {
    border-color: rgba(168, 85, 247, 0.4) !important;
  }

  .border-blue-100 {
    border-color: rgba(59, 130, 246, 0.3) !important;
  }

  .border-blue-200 {
    border-color: rgba(59, 130, 246, 0.4) !important;
  }
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.form-input,
.form-select {
  width: 100%;
  padding: var(--pad-input);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  transition: all var(--transition-normal);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  max-width: 100%;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(70, 202, 205, 0.1);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-input[readonly],
.form-select[readonly] {
  background-color: var(--bg-secondary);
  border-color: var(--border-dark);
  color: var(--text-secondary);
  cursor: not-allowed;
}

/* Select Styling */
select.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: clamp(1.75rem, 4vw, 2.5rem);
}

/* Filter Select Styling (for table headers with dark/colorful backgrounds) */
select.filter-select {
  appearance: none;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.25rem 2rem 0.25rem 0.75rem;
  color: white !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  transition: all var(--transition-normal);
  font-size: var(--font-xs);
  cursor: pointer;
  outline: none;
}

select.filter-select:hover,
select.filter-select:focus {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  outline: none;
}

/* Fix dropdown options text contrast in light and dark mode */
select.filter-select option {
  background-color: #ffffff !important;
  /* Light mode background */
  color: #1f2937 !important;
  /* Dark gray text for visibility */
  font-size: var(--font-sm);
  padding: 8px;
}

@media (prefers-color-scheme: dark) {
  select.filter-select option {
    background-color: #1a1a1a !important;
    /* Dark background for dark theme */
    color: #ffffff !important;
    /* White text */
  }
}

/* Textarea Styling */
textarea.form-input {
  resize: vertical;
  min-height: clamp(80px, 15vw, 100px);
}

/* Date Input Styling */
input[type="date"].form-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  filter: invert(0.5);
}

input[type="date"].form-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Number Input Styling */
input[type="number"].form-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"].form-input::-webkit-outer-spin-button,
input[type="number"].form-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Form Sections */
.form-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

/* Enhanced Form Utilities */
.info-block {
  background-color: #f8fafc;
  /* slate-50 */
  border: 1px solid #e2e8f0;
  /* slate-200 */
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-normal);
}

.info-block:hover {
  border-color: var(--secondary);
  background-color: white;
  box-shadow: 0 4px 12px rgba(70, 202, 205, 0.05);
}

.tech-badge {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.tech-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
  /* slate-400 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.tech-value {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}

.form-group-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.form-group-title i {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.25rem;
}

.dropzone-active {
  border-color: var(--secondary);
  background-color: rgba(70, 202, 205, 0.05);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary,
.btn-secondary,
.btn-accent {
  padding: var(--pad-button);
  border-radius: var(--radius-md);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(36px, 8vw, 44px);
  font-size: var(--font-sm);
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  will-change: transform, box-shadow;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

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

.btn-secondary {
  background-color: var(--border);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background-color: var(--border-dark);
}

.btn-accent {
  background: linear-gradient(to right, var(--accent), #d97706);
  color: var(--text-primary);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.nav-item {
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-sm);
}

.nav-item.active {
  background: linear-gradient(to right, rgba(70, 202, 205, 0.1), transparent);
  border-left: 4px solid var(--accent);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding-left: calc(var(--spacing-lg) - 4px);
}

.nav-item:hover:not(.active) {
  background-color: var(--bg-secondary);
}

/* ============================================
   BADGES
   ============================================ */

.badge-pending,
.badge-waiting,
.badge-approved,
.badge-approved-n1,
.badge-approved-n2,
.badge-approved-finanzas,
.badge-rejected,
.badge-paid,
.badge-role-admin,
.badge-role-solicitante,
.badge-role-aprobador,
.badge-role-finanzas {
  padding: clamp(0.15rem, 1vw, 0.25rem) clamp(0.5rem, 2vw, 0.75rem);
  border-radius: 9999px;
  font-size: var(--font-xs);
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
}

.badge-pending {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-waiting {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.badge-approved-n1 {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-approved-n2 {
  background-color: #bfdbfe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.badge-approved-finanzas {
  background-color: #1d4ed8;
  color: #ffffff;
  border: 1px solid #1e40af;
}

.badge-rejected {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-paid {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

/* Role Badges - Distinct colors for each user role */
.badge-role-admin {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.badge-role-solicitante {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.badge-role-aprobador {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-role-finanzas {
  background-color: #1d4ed8;
  color: #ffffff;
  border: 1px solid #1e40af;
}

/* ============================================
   TABLES
   ============================================ */

table tbody tr {
  transition: background-color var(--transition-normal);
}

table tbody tr:hover {
  background-color: rgba(70, 202, 205, 0.05);
}

th,
td {
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

/* Remove bottom border from last row to avoid double border with container */
table tbody tr:last-child td {
  border-bottom: none !important;
}

/* ============================================
   WORKFLOW & TIMELINE
   ============================================ */

.workflow-step,
.timeline-step {
  position: relative;
  padding-left: clamp(1.5rem, 4vw, 2rem);
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-left: 4px solid var(--border);
  margin-bottom: var(--spacing-md);
}

.workflow-step::before,
.timeline-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(1.25rem, 3vw, 1.5rem);
  width: clamp(0.875rem, 2vw, 1.25rem);
  height: clamp(0.875rem, 2vw, 1.25rem);
  border-radius: 50%;
  background-color: var(--border);
  transform: translateX(-50%);
  transition: all var(--transition-normal);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--border);
}

.workflow-step.completed,
.timeline-step.step-completed {
  border-color: var(--success);
}

.workflow-step.completed::before,
.timeline-step.step-completed::before {
  background-color: var(--success);
  box-shadow: 0 0 0 2px var(--success);
}

.workflow-step.current,
.timeline-step.step-current {
  border-color: var(--accent);
  background-color: rgba(246, 189, 69, 0.05);
}

.workflow-step.current::before,
.timeline-step.step-current::before {
  background-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.timeline-step.step-rejected {
  border-color: var(--danger);
}

.timeline-step.step-rejected::before {
  background-color: var(--danger);
  box-shadow: 0 0 0 2px var(--danger);
}

.step-header {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1vw, 0.5rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-sm);
}

.step-header i {
  font-size: clamp(1rem, 3vw, 1.25rem);
}

.step-completed .step-header {
  color: var(--success);
}

.step-current .step-header {
  color: var(--accent);
}

.step-rejected .step-header {
  color: var(--danger);
}

.step-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.step-meta i {
  margin-right: clamp(0.125rem, 1vw, 0.25rem);
}

.step-comment {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  color: var(--text-secondary);
  border-left: 3px solid var(--border-dark);
  word-break: break-word;
}

/* ============================================
   CARDS & SHADOWS
   ============================================ */

.shadow-lg {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stat-card {
  transition: transform var(--transition-normal);
}

.stat-card:hover {
  transform: scale(1.05);
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity var(--transition-slow);
  padding: var(--spacing-sm);
}

.modal-overlay.modal-show {
  opacity: 1;
}

.modal-container {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: clamp(300px, 95vw, 800px);
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  transform: scale(0.9) translateY(-20px);
  transition: transform var(--transition-slow);
}

.modal-show .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
  font-size: var(--font-lg);
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.modal-body {
  padding: var(--spacing-lg);
}

.modal-message {
  font-size: var(--font-base);
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: break-word;
}

.modal-footer {
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--bg-secondary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

.modal-error .modal-header {
  background: linear-gradient(to right, #ef4444, #e11d48);
}

.modal-alert.modal-success .modal-header {
  background: linear-gradient(to right, var(--success), #059669);
}

.modal-alert.modal-warning .modal-header {
  background: linear-gradient(to right, var(--warning), #d97706);
}

.modal-alert.modal-info .modal-header {
  background: linear-gradient(to right, var(--info), #2563eb);
}

/* ============================================
   LOADING & SPINNER
   ============================================ */

.spinner {
  display: inline-block;
  width: clamp(16px, 5vw, 20px);
  height: clamp(16px, 5vw, 20px);
  border: 3px solid rgba(89, 55, 182, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  will-change: transform;
}

.spinner-large {
  width: clamp(32px, 8vw, 40px);
  height: clamp(32px, 8vw, 40px);
  border-width: 4px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  will-change: background-position;
}

.skeleton-text {
  height: clamp(0.75rem, 2vw, 1rem);
  margin-bottom: var(--spacing-sm);
}

.skeleton-text:last-child {
  width: 80%;
}

.skeleton-row {
  height: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--spacing-sm);
}

.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   FILTER PANEL
   ============================================ */

.filter-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  align-items: end;
}

@media (min-width: 640px) {
  .filter-panel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .filter-panel {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-label {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   RESPONSIVE UTILITIES (SOLID)
   ============================================ */

.hide-on-mobile {
  display: table-cell !important;
}

@media (max-width: 767px) {
  .hide-on-mobile {
    display: none !important;
  }
}

.hide-on-tablet {
  display: table-cell !important;
}

@media (max-width: 1023px) {
  .hide-on-tablet {
    display: none !important;
  }
}

/* Force visibility of columns within responsive containers (User request: show all columns) */
.table-responsive-container .hide-on-mobile,
.table-responsive-container .hide-on-tablet {
  display: table-cell !important;
}

/* Mobile only utilities */
@media (max-width: 767px) {
  .mobile-font-xs {
    font-size: 10px !important;
  }

  .mobile-p-2 {
    padding: 0.5rem !important;
  }
}

/* Tablet and up (>=768px) */
@media (min-width: 768px) {
  /* Logic moved above for consistency */
}

/* Desktop and up (>=1024px) */
@media (min-width: 1024px) {
  /* Logic moved above for consistency */
}

.table-responsive-container {
  width: 100%;
  overflow: hidden;
  overflow-y: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  position: relative;
  /* Scroll indicator gradient */
  background-image:
    linear-gradient(to right, white, white),
    linear-gradient(to right, white, white),
    linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)),
    linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));
  background-position:
    left center,
    right center,
    left center,
    right center;
  background-repeat: no-repeat;
  background-size:
    40px 100%,
    40px 100%,
    14px 100%,
    14px 100%;
  background-attachment: local, local, scroll, scroll;
}

/* Ensure table doesn't shrink below readable width on mobile */
.table-responsive-container table {
  min-width: 1000px;
  /* Increased from 800px to ensure base readability */
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  border: none;
}

/* Specific min-widths for very large tables (ensuring all columns show and align) */
table:has(#tablaTodasSolicitudes),
table:has(#tablaRecepcionado),
.table-full-visibility {
  min-width: 1800px !important;
  /* Increased from 1400px to accommodate ~20 columns */
}

#recentSolicitudes table,
#contenedorTablasEmpresas table,
#contenedorAprobacionesEmpresas table,
#contenedorAprobaciones2Empresas table,
#contenedorFinanzasEmpresas table {
  min-width: 1200px !important;
  /* Increased from 1000px */
}

#adminContent table,
#devicesTableContainer table {
  min-width: 950px !important;
}

.whitespace-nowrap-responsive {
  white-space: nowrap;
}

/* ============================================
   LOG ENTRIES
   ============================================ */

.log-entry {
  padding: var(--spacing-sm);
  border-left: 4px solid var(--border);
  margin-bottom: var(--spacing-sm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--font-xs);
}

.log-entry.log-create {
  border-color: var(--secondary);
  background-color: rgba(70, 202, 205, 0.05);
}

.log-entry.log-approve {
  border-color: var(--success);
  background-color: #f0fdf4;
}

.log-entry.log-reject {
  border-color: var(--danger);
  background-color: #fef2f2;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: clamp(6px, 2vw, 8px);
  height: clamp(6px, 2vw, 8px);
}

::-webkit-scrollbar-track {
  background-color: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 9999px;
  transition: background-color var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary);
}

/* ============================================
   SIDEBAR
   ============================================ */

#sidebar {
  transition: transform var(--transition-slow);
  will-change: transform;
  height: calc(100vh - var(--nav-height));
  top: var(--nav-height) !important;
}

@media (max-width: 1023px) {
  #sidebar {
    position: fixed;
    z-index: 100;
  }

  #mainNavbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
  }

  /* Ajuste para el botón toggle en móviles */
  #sidebarToggle {
    top: calc(var(--nav-height) + 1rem) !important;
    left: 1rem !important;
    z-index: 90;
  }
}

#sidebarOverlay {
  transition: opacity var(--transition-slow);
}

/* ============================================
   FILE UPLOAD
   ============================================ */

#fileUploadArea.dragover {
  border-color: var(--accent);
  background-color: rgba(246, 189, 69, 0.05);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
  from {
    transform: translateX(clamp(200px, 50vw, 400px));
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 10001;
  animation: slideIn 0.3s ease-out;
}

.animate-shake {
  animation: shake 0.5s;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Small Mobile: up to 480px */
@media (max-width: 480px) {
  .modal-footer {
    flex-direction: column-reverse;
    /* Put primary button on top for mobile */
  }

  .modal-footer button,
  .modal-footer a {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .modal-footer button:last-child {
    margin-bottom: 0;
  }

  /* Table adjustments for very small screens */
  .table-responsive-container table {
    font-size: 0.8rem;
  }
}

/* Desktop refinements */
@media (min-width: 1024px) {
  .btn-primary:focus-visible,
  .btn-secondary:focus-visible,
  .btn-accent:focus-visible,
  .nav-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }

  .form-input:focus-visible,
  .form-select:focus-visible {
    outline: none;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   HIGH DPI DEVICES
   ============================================ */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .btn-primary,
  .btn-accent {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  }
}

/* ============================================
   LAYOUT STABILITY & REFINEMENT
   ============================================ */

html,
body {
  overflow-x: hidden !important;
  position: relative;
  width: 100%;
}

main {
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Ensure fixed navbar doesn't move with internal table scroll */
#mainNavbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  z-index: 50;
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  h2,
  .text-2xl {
    font-size: 1.25rem !important;
  }

  h3,
  .text-xl {
    font-size: 1.1rem !important;
  }
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-2px);
  }

  75% {
    transform: translateX(2px);
  }
}

.group-hover\:shake:group-hover {
  animation: shake 0.2s ease-in-out infinite;
}

/* Custom Scrollbar for better aesthetics */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

/* ============================================
   ACCORDION SYSTEM
   ============================================ */

.table-accordion-wrapper {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-accordion-wrapper.collapsed {
  grid-template-rows: 0fr;
}

.table-accordion-content {
  overflow: hidden;
  min-height: 0;
}

.table-header-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.table-header-toggle:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.table-header-toggle i {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-header-toggle.collapsed i {
  transform: rotate(-180deg);
}

/* ============================================
   FILTER SELECTS (Specialized for headers)
   ============================================ */

.filter-select {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  border-radius: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  min-width: 100px;
}

.filter-select:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.filter-select:focus {
  background-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}

.filter-select option {
  background-color: white !important;
  color: #1e293b !important;
  /* slate-800 */
  padding: 8px;
}

@media (prefers-color-scheme: dark) {
  .filter-select option {
    background-color: #1e293b !important;
    /* slate-800 */
    color: #f8fafc !important;
    /* slate-50 */
  }
}

/* ============================================
   VALIDATION HIGHLIGHTS
   ============================================ */

.field-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
  background-color: rgba(239, 68, 68, 0.02) !important;
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

@media (prefers-color-scheme: dark) {
  .field-error {
    background-color: rgba(239, 68, 68, 0.05) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
  }
}

/* ============================================
   LOGIN PAGE SPECIFIC STYLES
   ============================================ */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.btn-serious {
  position: relative;
  overflow: hidden;
}

.btn-serious::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.btn-serious:hover::after {
  left: 100%;
}

/* Layout responsiveness fixes */
@media (min-width: 1024px) {
  #sidebar.w-64 ~ #mainContent {
    margin-left: 16rem !important;
    width: calc(100% - 16rem) !important;
  }
  
  #sidebar.w-20 ~ #mainContent {
    margin-left: 5rem !important;
    width: calc(100% - 5rem) !important;
  }
}
@media (max-width: 1023px) {
  #mainContent {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* ============================================
   LAPTOP MID-RANGE TIER (13"-14", ~1024-1439px)
   El sidebar fijo resta ancho útil real al contenido en
   estos anchos. Se recupera espacio horizontal en el
   contenido principal y en las celdas de tablas para que
   la experiencia se sienta tan holgada como en pantallas
   de 16" (>=1440px), sin ocultar columnas ni cambiar
   colores o comportamiento.
   ============================================ */
@media (min-width: 1024px) and (max-width: 1439px) {
  #mainContent {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .table-responsive-container table th,
  .table-responsive-container table td {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

