/* Auto-generated bundled CSS */

/* --- base/variables.css --- */
/* assets/css/base/variables.css */
:root {
  /* Brand Colors - Modern Emerald Green */
  --color-primary: #10b981;
  --color-primary-hover: #059669;
  --color-primary-light: #d1fae5;
  --color-primary-dark: #047857;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-danger-light: #fee2e2;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-info: #3b82f6;
  --color-info-light: #dbeafe;

  /* Gray Scale (Neutrals) */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Backgrounds & Surfaces */
  --color-bg-body: var(--gray-50);
  --color-bg-surface: #ffffff;
  --color-bg-surface-hover: var(--gray-50);
  
  /* Text Colors */
  --color-text-main: var(--gray-900);
  --color-text-muted: var(--gray-500);
  --color-text-light: var(--gray-400);

  /* Borders */
  --color-border: var(--gray-200);
  --color-border-light: var(--gray-100);
  --color-border-hover: var(--gray-300);
  
  /* Sidebar Specific (Dark Theme) */
  --color-sidebar-bg: #111827;
  --color-sidebar-text: #9ca3af;
  --color-sidebar-hover: #1f2937;
  --color-sidebar-active: #ffffff;
  --color-sidebar-border: #374151;

  /* Typography Scale */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing Scale (2, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64) */
  --space-0-5: 2px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-toast: 1060;
}


/* --- base/reset.css --- */
/* assets/css/base/reset.css */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul, ol, dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  background-color: transparent;
}
a:hover {
  color: var(--color-primary-hover);
  text-decoration: none;
}

img {
  vertical-align: middle;
  border-style: none;
}

button, input, optgroup, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button, input {
  overflow: visible;
}

button, select {
  text-transform: none;
}


/* --- base/typography.css --- */
/* assets/css/base/typography.css */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-success { color: var(--color-success) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-info { color: var(--color-info) !important; }
.text-muted { color: var(--color-text-muted) !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.font-weight-normal { font-weight: var(--font-weight-normal) !important; }
.font-weight-semibold { font-weight: var(--font-weight-semibold) !important; }
.font-weight-bold { font-weight: var(--font-weight-bold) !important; }

h1, .h1 { font-size: var(--font-size-h1); }
h2, .h2 { font-size: var(--font-size-h2); }
h3, .h3 { font-size: var(--font-size-h3); }
h4, .h4 { font-size: var(--font-size-h4); }


/* --- layout/grid.css --- */
/* assets/css/layout/grid.css - Responsive Flexbox Grid System */

/* Container */
.container,
.container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--space-md);
    padding-left: var(--space-md);
}

.main-container {
    padding: var(--space-md);
}

/* Flexbox Utilities */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-none { display: none !important; }

.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }

.align-self-auto { align-self: auto !important; }
.align-self-start { align-self: flex-start !important; }
.align-self-end { align-self: flex-end !important; }
.align-self-center { align-self: center !important; }
.align-self-baseline { align-self: baseline !important; }
.align-self-stretch { align-self: stretch !important; }

/* Gaps */
.gap-0 { gap: 0 !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

/* Flex sizing */
.flex-fill { flex: 1 1 auto !important; }
.flex-grow-0 { flex-grow: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-shrink-1 { flex-shrink: 1 !important; }

/* The Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* Col Base */
[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Mobile First Columns (xs) */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
    .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
    .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
    .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}


/* --- layout/layout.css --- */
/* assets/css/layout/layout.css */
body {
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  display: flex;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-family-base);
  -webkit-font-smoothing: antialiased;
}

.main-content {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition-normal);
}

.page-wrapper {
  padding: var(--space-6);
  flex: 1;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.page-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-main);
  margin: 0;
}

.sub-title-main {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  margin: 0;
}

.breadcrumb-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.breadcrumb-text a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb-text a:hover {
  text-decoration: underline;
}

/* Responsive Sidebar Toggle */
body.sidebar-collapsed .sidebar {
  transform: translateX(-250px);
}
body.sidebar-collapsed .main-content {
  margin-left: 0;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-250px);
  }
  .main-content {
    margin-left: 0;
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
}


/* --- layout/sidebar.css --- */
/* assets/css/layout/sidebar.css */
.sidebar {
  width: 250px;
  background-color: var(--color-sidebar-bg);
  color: var(--color-sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-md);
}

.sidebar-header {
  padding: var(--space-5);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  border-bottom: 1px solid var(--color-sidebar-border);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: #ffffff;
}

.sidebar-menu {
  list-style: none;
  padding: var(--space-3) 0;
  flex: 1;
  overflow-y: auto;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--color-sidebar-text);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  transition: var(--transition-fast);
  border-left: 3px solid transparent;
}

.sidebar-menu li a:hover, 
.sidebar-menu li.active > a {
  background-color: var(--color-sidebar-hover);
  border-left: 3px solid var(--color-primary);
  color: var(--color-sidebar-active);
}

.sidebar-menu li a i {
  width: 20px;
  text-align: center;
  font-size: var(--font-size-base);
}

.submenu-toggle .fa-chevron-down {
  transition: transform var(--transition-normal);
}
.submenu-toggle.open .fa-chevron-down {
  transform: rotate(180deg);
}
.submenu {
  overflow: hidden;
  transition: max-height var(--transition-normal);
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--color-sidebar-bg); /* Use matching or slightly darker bg */
}
.submenu li {
  padding-left: var(--space-5);
}
.submenu li a {
  font-size: var(--font-size-sm);
  padding: var(--space-2) var(--space-5);
}

.badge-new {
  background: var(--color-bg-surface);
  color: var(--color-text-main);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  margin-left: auto;
}


/* --- layout/topbar.css --- */
/* assets/css/layout/topbar.css */
.topbar {
  height: 60px;
  background-color: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar-btn {
  background: none;
  border: none;
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.topbar-btn:hover {
  background-color: var(--color-bg-body);
  color: var(--color-primary);
}

.topbar-profile {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.topbar-profile:hover {
  background-color: var(--color-bg-body);
}

.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.topbar-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-main);
}


/* --- components/buttons.css --- */
/* assets/css/components/buttons.css */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-semibold);
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-base);
  line-height: 1.5;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  gap: var(--space-2);
}

.btn:focus, .btn:active {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 166, 90, 0.25);
}

.btn:disabled, .btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button Variants */
.btn-primary {
  color: #fff;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
}

.btn-secondary {
  color: #fff;
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.btn-secondary:hover {
  background-color: #e67e22;
  border-color: #d35400;
  color: #fff;
}

.btn-danger {
  color: #fff;
  background-color: var(--color-danger);
  border-color: var(--color-danger);
}
.btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
  color: #fff;
}

.btn-ghost {
  color: var(--color-text-main);
  background-color: transparent;
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
}

.btn-outline {
  color: var(--color-primary);
  background-color: transparent;
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-lg);
}

/* Block Button */
.btn-block {
  display: flex;
  width: 100%;
}


/* --- components/forms.css --- */
/* assets/css/components/forms.css */

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: inline-block;
  margin-bottom: var(--space-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-main);
  font-size: var(--font-size-sm);
}

.form-control {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  color: var(--color-text-main);
  background-color: var(--color-bg-surface);
  background-clip: padding-box;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  color: var(--color-text-main);
  background-color: var(--color-bg-surface);
  border-color: var(--color-primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 166, 90, 0.25);
}

.form-control::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

.form-control:disabled, .form-control[readonly] {
  background-color: var(--color-bg-body);
  opacity: 1;
}

/* Search Inputs */
.search-input {
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

/* Switchery Toggle */
.switchery {
  background-color: #fff;
  border: 1px solid #dfdfdf;
  border-radius: 20px;
  cursor: pointer;
  display: inline-block;
  height: 24px;
  position: relative;
  vertical-align: middle;
  width: 44px;
  box-sizing: content-box;
  transition: border 0.4s, box-shadow 0.4s, background-color 1.2s;
}

.switchery > small {
  background: #fff;
  border-radius: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  height: 24px;
  position: absolute;
    z-index: 1050;
  top: 0;
  width: 24px;
  left: 0;
  transition: background-color 0.4s, left 0.2s;
}

input[type="checkbox"]:checked + .switchery {
  background-color: rgb(100, 189, 99);
  border-color: rgb(100, 189, 99);
  box-shadow: rgb(100, 189, 99) 0px 0px 0px 12px inset;
}

input[type="checkbox"]:checked + .switchery > small {
  left: 20px;
}

/* Select specific */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}

select.form-control:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300a65a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Checkbox and Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.form-check-input {
  margin: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-check-label {
  margin: 0;
  cursor: pointer;
}


/* --- components/tables.css --- */
/* assets/css/components/tables.css */

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  margin-bottom: var(--space-md);
  color: var(--color-text-main);
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
}

.table th {
  background-color: #fafafa;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
}

/* Table Variants */
.table-bordered {
  border: 1px solid var(--color-border);
}

.table-bordered th,
.table-bordered td {
  border: 1px solid var(--color-border-light);
}

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

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.table-compact th,
.table-compact td {
  padding: 8px 12px;
}

/* Table Actions Column */
.table-actions {
  display: flex;
  gap: var(--space-xs);
}


/* --- components/cards.css --- */
/* assets/css/components/cards.css */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--color-bg-surface);
  background-clip: border-box;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
}

.card-header {
  padding: var(--space-md) var(--space-lg);
  margin-bottom: 0;
  background-color: transparent;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
}

.card-body {
  flex: 1 1 auto;
  padding: var(--space-lg);
}

.card-footer {
  padding: var(--space-md) var(--space-lg);
  background-color: #fafafa;
  border-top: 1px solid var(--color-border-light);
  border-bottom-left-radius: calc(var(--radius-md) - 1px);
  border-bottom-right-radius: calc(var(--radius-md) - 1px);
}

/* Card variants */
.card-primary {
  border-top: 3px solid var(--color-primary);
}

.card-danger {
  border-top: 3px solid var(--color-danger);
}

.card-warning {
  border-top: 3px solid var(--color-warning);
}

/* Widget Card (for dashboards and menus) */
.widget-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: var(--space-5);
  transition: all var(--transition-normal);
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  background: var(--color-bg-surface);
  cursor: pointer;
}

.widget-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
  background-color: #fdfdfd;
}

.widget-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-4);
  flex-shrink: 0;
}

.widget-icon {
  font-size: 24px;
  margin: 0;
}

.widget-info {
  flex: 1;
  text-align: left;
}

.widget-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  margin-bottom: var(--space-1);
}

.widget-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}


/* --- components/modals.css --- */
/* assets/css/components/modals.css */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal-backdrop);
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-normal);
}

.modal-content {
  background: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h4 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-main);
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-1);
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-danger);
}

.modal-body {
  padding: var(--space-5);
  overflow-y: auto;
}

.modal-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  background-color: var(--gray-50);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* --- components/filters.css --- */
/* assets/css/components/filters.css */

/* Global Page Wrapper for Reports */
.report-page-wrapper {
    padding: 20px;
    background: #ECF0F5;
    min-height: calc(100vh - 60px);
}

/* Global Filter Container */
.filter-bar {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

/* Filter Item Wrapper */
.filter-item {
    flex: 1;
    min-width: 150px;
    position: relative;
}

.filter-item.large {
    flex: 2;
    min-width: 250px;
}

/* Filter Label */
.filter-label {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
    display: block;
    font-weight: normal;
}

/* Filter Inputs */
.filter-input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    height: 34px;
}

.filter-input-group select,
.filter-input-group input {
    border: none;
    outline: none;
    padding: 8px 12px;
    width: 100%;
    font-size: 13px;
    background: transparent;
    height: 100%;
}

.filter-input-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px;
}

/* Input Icons */
.filter-icon-right {
    position: absolute;
    z-index: 1050;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.filter-icon-addon {
    padding: 0 10px;
    color: #999;
    border-left: 1px solid #ccc;
    height: 100%;
    display: flex;
    align-items: center;
    background: #f9f9f9;
    pointer-events: none;
    z-index: 2;
}

.filter-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-input-group input[type="date"] {
    position: relative;
    cursor: pointer;
    background: transparent;
    padding-right: 40px;
}

.filter-input-group input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    z-index: 1050;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Filter Actions (Buttons) */
.filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-left: auto;
}

.btn-terapkan {
    background: #00a65a;
    border: 1px solid #008d4c;
    border-radius: 3px;
    padding: 0 20px;
    color: #fff;
    font-size: 14px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: filter 0.2s;
}

.btn-terapkan:hover {
    filter: brightness(95%);
    color: #fff;
}

/* Custom Dropdown Container */
.custom-dropdown-container {
    position: relative;
}

.custom-dropdown-toggle {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0 15px;
    color: #333;
    font-size: 14px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.custom-dropdown-toggle:hover {
    background: #f5f5f5;
}

/* Custom Dropdown Menu */
.custom-dropdown-menu {
    position: absolute;
    z-index: 1050;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
    display: none;
    margin: 2px 0 0;
    padding: 5px 0;
    list-style: none;
    min-width: 220px;
    z-index: 1000;
    text-align: left;
}

.custom-dropdown-menu.show {
    display: block !important;
}

.custom-dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

.custom-dropdown-menu li a:hover {
    background-color: #f5f5f5;
}

.custom-dropdown-menu li a:hover {
    background-color: #f5f5f5;
}

.custom-dropdown-menu li hr {
    margin: 5px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* Table Wrapper */
.table-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    overflow-x: auto;
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 250px;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.sticky-footer .footer-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.sticky-footer .footer-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}


/* --- components/dropdowns.css --- */
/* assets/css/components/dropdowns.css */
.dropdown {
  position: relative;
}

.topbar-dropdown {
  position: relative;
}

.topbar-dropdown-menu {
  position: absolute;
    z-index: 1050;
  top: calc(100% + var(--space-2));
  right: 0;
  background: var(--color-bg-surface);
  width: 280px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  cursor: default;
}

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

.dropdown-header {
  padding: var(--space-4) var(--space-5);
  font-weight: var(--font-weight-bold);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg-body);
  font-size: var(--font-size-sm);
  color: var(--color-text-main);
}

.dropdown-item {
  display: block;
  padding: var(--space-3) var(--space-5);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
}

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

/* Standard Dropdowns */
.dropdown-menu {
  position: absolute;
    z-index: 1050;
  top: 100%;
  left: 0;
  z-index: var(--z-dropdown);
  display: none;
  min-width: 160px;
  padding: var(--space-2) 0;
  margin: var(--space-1) 0 0;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background-clip: padding-box;
}

.dropdown-menu-right {
  left: auto;
  right: 0;
}

.dropdown-menu.show {
  display: block;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* --- components/dashboard.css --- */
/* assets/css/components/dashboard.css */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.stat-card {
  background: var(--color-bg-surface);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
}

.stat-icon.blue { background: var(--color-info-light); color: var(--color-info); }
.stat-icon.yellow { background: var(--color-warning-light); color: var(--color-warning); }
.stat-icon.green { background: var(--color-primary-light); color: var(--color-primary); }
.stat-icon.red { background: var(--color-danger-light); color: var(--color-danger); }

.stat-info h4 {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-1) 0;
  font-weight: var(--font-weight-medium);
}

.stat-info h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  margin: 0;
}

.chart-container {
  background: var(--color-bg-surface);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  margin-bottom: var(--space-6);
}

.empty-state { 
  text-align: center; 
  padding: var(--space-16) var(--space-5); 
  color: var(--color-text-muted); 
}
.empty-state img { 
  width: 80px; 
  margin-bottom: var(--space-5); 
  opacity: 0.3; 
}
.empty-state h4 { 
  font-weight: var(--font-weight-semibold); 
  margin-bottom: var(--space-2); 
  color: var(--color-text-main); 
  font-size: var(--font-size-base); 
}

/* Action bars */
.top-action-bar, .controls-bar {
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border-light);
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-5);
}

/* Extracted from dashboard.php */

.dashboard-wrapper {
    padding: 20px;
    background: #f4f6fa; /* Soft background */
}

.filter-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}
.filter-group.align-bottom {
    flex: 0 0 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    gap: 15px !important;
}

.stat-card.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.stat-header {
    color: #777;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
    white-space: nowrap;
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 24px;
    color: white;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.bg-blue { background: #6bcdff; }
.text-blue { color: #6bcdff; }

.bg-yellow { background: #ffd74d; }
.text-yellow { color: #ffd74d; }

.bg-green { background: #4EBC70; }
.text-green { color: #4EBC70; }

.bg-pink { background: #ff7caa; }
.text-pink { color: #ff7caa; }

.bg-orange { background: #ffa454; }
.text-orange { color: #ffa454; }

.charts-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.chart-header span {
    font-weight: 600;
    color: #444;
    font-size: 16px;
    flex: 1;
    margin-left: 10px;
}

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

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    min-height: 300px;
}

.summary-header {
    font-weight: 600;
    color: #444;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.empty-state {
    color: #aaa;
    text-align: center;
    padding: 40px 0;
    font-style: italic;
}

.table-minimal {
    width: 100%;
    border-collapse: collapse;
}

.table-minimal th, .table-minimal td {
    padding: 12px 10px;
    border-bottom: 1px solid #f5f5f5;
    text-align: left;
}

.table-minimal th {
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
}

/* Glassmorphism subtle effect */
.glassmorphism {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

@media(max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .summary-grid { grid-template-columns: 1fr; }
}
@media(max-width: 500px) {
    .stats-grid { grid-template-columns: 1fr; }
}


/* --- components/login.css --- */
/* assets/css/components/login.css */
.login-body {
    background-color: var(--color-bg-body);
    background-image: radial-gradient(circle at center, var(--color-bg-surface) 0%, #e9ecef 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: var(--font-family-base);
}

.login-card {
    background: var(--color-bg-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
    text-align: center;
    border: 1px solid var(--color-border);
}

.login-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.login-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.login-card .form-group {
    margin-bottom: 1.5rem;
}

.login-card .form-group label {
    font-size: 0.85rem;
    color: var(--color-text-main);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.login-card .form-control {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.login-card .form-control:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 166, 90, 0.15);
}

.login-card .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* --- utilities/utilities.css --- */
/* assets/css/utilities/utilities.css */

/* Margins */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }
.mr-0 { margin-right: 0 !important; }

.m-1 { margin: var(--space-1) !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.ml-1 { margin-left: var(--space-1) !important; }
.mr-1 { margin-right: var(--space-1) !important; }

.m-2 { margin: var(--space-2) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.ml-2 { margin-left: var(--space-2) !important; }
.mr-2 { margin-right: var(--space-2) !important; }

.m-3 { margin: var(--space-4) !important; }
.mt-3 { margin-top: var(--space-4) !important; }
.mb-3 { margin-bottom: var(--space-4) !important; }
.ml-3 { margin-left: var(--space-4) !important; }
.mr-3 { margin-right: var(--space-4) !important; }

.m-4 { margin: var(--space-6) !important; }
.mt-4 { margin-top: var(--space-6) !important; }
.mb-4 { margin-bottom: var(--space-6) !important; }
.ml-4 { margin-left: var(--space-6) !important; }
.mr-4 { margin-right: var(--space-6) !important; }

/* Paddings */
.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pl-0 { padding-left: 0 !important; }
.pr-0 { padding-right: 0 !important; }

.p-1 { padding: var(--space-1) !important; }
.pt-1 { padding-top: var(--space-1) !important; }
.pb-1 { padding-bottom: var(--space-1) !important; }
.pl-1 { padding-left: var(--space-1) !important; }
.pr-1 { padding-right: var(--space-1) !important; }

.p-2 { padding: var(--space-2) !important; }
.pt-2 { padding-top: var(--space-2) !important; }
.pb-2 { padding-bottom: var(--space-2) !important; }
.pl-2 { padding-left: var(--space-2) !important; }
.pr-2 { padding-right: var(--space-2) !important; }

.p-3 { padding: var(--space-4) !important; }
.pt-3 { padding-top: var(--space-4) !important; }
.pb-3 { padding-bottom: var(--space-4) !important; }
.pl-3 { padding-left: var(--space-4) !important; }
.pr-3 { padding-right: var(--space-4) !important; }

.p-4 { padding: var(--space-6) !important; }
.pt-4 { padding-top: var(--space-6) !important; }
.pb-4 { padding-bottom: var(--space-6) !important; }
.pl-4 { padding-left: var(--space-6) !important; }
.pr-4 { padding-right: var(--space-6) !important; }

/* Flexbox */
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-1 { gap: var(--space-1) !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-3 { gap: var(--space-4) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.text-decoration-none { text-decoration: none !important; }
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
/* Sizing */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }

/* Custom Widths */
.w-250 { width: 250px !important; }
.w-150 { width: 150px !important; }
.w-50 { width: 50px !important; }
.w-40 { width: 40px !important; }
.mw-600 { max-width: 600px !important; }
.flex-1 { flex: 1 !important; }

/* Colors & Backgrounds */
.bg-success { background-color: var(--color-success) !important; color: white !important; }
.bg-light { background-color: var(--gray-50) !important; }
.bg-warning-light { background-color: var(--color-warning-light) !important; }
.text-warning-dark { color: #8a6d3b !important; }
.text-secondary { color: var(--color-text-muted) !important; }
.text-primary { color: var(--color-primary) !important; }

/* Typography */
.fs-1 { font-size: 1rem !important; }
.fs-8 { font-size: 0.8rem !important; }
.fs-9 { font-size: 0.9rem !important; }
.fw-medium { font-weight: var(--font-weight-medium) !important; }

/* Borders & Misc */
.me-2 { margin-right: var(--space-2) !important; }
.shadow-none { box-shadow: none !important; }
.border-0 { border: none !important; }
.border-bottom { border-bottom: 1px solid var(--color-border-light) !important; }
.max-h-400 { max-height: 400px !important; }
.overflow-auto { overflow-y: auto !important; }
.justify-content-end { justify-content: flex-end !important; }



/* Hide native calendar icon in date inputs for the custom date picker */
.date-picker-input::-webkit-calendar-picker-indicator {
    background: transparent;
    color: transparent;
    cursor: pointer;
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1050;
    top: 0;
    left: 0;
}


/* --- Start of Clean & Robust Table-Wrapper UI UX Enhancements --- */
.table-wrapper {
    background: #fff;
    border: 1px solid #e3e6f0 !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    overflow: hidden;
    margin-bottom: 30px;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0 !important;
}

.table-wrapper th {
    background-color: #f8f9fc !important;
    color: #5a7ec7 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid #eaecf2 !important;
    padding: 14px 20px !important;
    border-right: 1px solid #eaecf2;
}

.table-wrapper th:last-child {
    border-right: none;
}

.table-wrapper td {
    padding: 12px 20px !important;
    border-bottom: 1px solid #f0f3f6 !important;
    font-size: 13px !important;
    color: #4f5d73;
    border-right: 1px solid #fcfcfc;
}

.table-wrapper td:last-child {
    border-right: none;
}

.table-wrapper tr:hover td {
    background-color: #f8f9fa !important;
}

/* Specific styling for grouped cells (like JAM) */
.table-wrapper td[rowspan] {
    background: #fafbfc !important;
    border-right: 1.5px solid #eef2f5 !important;
    font-weight: 700;
    text-align: center;
    color: #2ecc71 !important; /* Keep the green color accent for hours */
}
/* --- End of Clean & Robust Table-Wrapper UI UX Enhancements --- */

