/* ==========================================================================
   Stitch Design Premium System - High Contrast Enterprise Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --stitch-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --stitch-font-mono: 'JetBrains Mono', monospace;
  
  --stitch-bg-dark: #0b0f19;
  --stitch-surface-dark: #111827;
  --stitch-surface-card: #111827;
  --stitch-surface-hover: #1e293b;
  --stitch-border: rgba(255, 255, 255, 0.12);
  --stitch-border-highlight: rgba(255, 255, 255, 0.22);
  
  --stitch-text-primary: #f8fafc;
  --stitch-text-secondary: #cbd5e1;
  --stitch-text-muted: #94a3b8;
  
  --stitch-emerald: #10b981;
  --stitch-emerald-glow: rgba(16, 185, 129, 0.25);
  --stitch-indigo: #6366f1;
  --stitch-indigo-glow: rgba(99, 102, 241, 0.25);
  --stitch-amber: #f59e0b;
  --stitch-amber-glow: rgba(245, 158, 11, 0.25);
  --stitch-rose: #f43f5e;
  --stitch-rose-glow: rgba(244, 63, 94, 0.25);
  --stitch-violet: #8b5cf6;
  --stitch-cyan: #06b6d4;
  
  --stitch-radius-sm: 8px;
  --stitch-radius-md: 14px;
  --stitch-radius-lg: 18px;
  --stitch-radius-xl: 22px;
  
  --stitch-transition: all 0.2s ease-in-out;
}

/* Global Reset & Container */
html, body {
  background-color: var(--stitch-bg-dark) !important;
  color: var(--stitch-text-primary) !important;
  font-family: var(--stitch-font-sans) !important;
  -webkit-font-smoothing: antialiased;
}

.wrapper {
  background-color: var(--stitch-bg-dark) !important;
}

.content-wrapper {
  background-color: var(--stitch-bg-dark) !important;
  min-height: 100vh !important;
  padding: 24px 28px !important;
}

.content {
  padding: 0 !important;
  background-color: transparent !important;
}

/* Header & Sidebar Structure */
.main-header {
  max-height: 54px !important;
  z-index: 1030 !important;
}

.main-header .navbar {
  background: #111827 !important;
  border-bottom: 1px solid var(--stitch-border) !important;
  min-height: 54px !important;
  margin-left: 230px !important;
}

.main-header .logo {
  background: #0b0f19 !important;
  border-right: 1px solid var(--stitch-border) !important;
  border-bottom: 1px solid var(--stitch-border) !important;
  font-family: var(--stitch-font-sans) !important;
  font-weight: 800 !important;
  height: 54px !important;
  line-height: 54px !important;
  color: #ffffff !important;
  width: 230px !important;
}

.main-header .navbar .sidebar-toggle {
  color: var(--stitch-text-secondary) !important;
  padding: 17px 18px !important;
}

.main-header .navbar .sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.navbar-custom-menu .user-menu .dropdown-toggle {
  color: var(--stitch-text-primary) !important;
  font-weight: 600;
  padding: 14px 20px !important;
}

.navbar-custom-menu .user-image {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  margin-right: 8px !important;
}

.navbar-custom-menu .dropdown-menu {
  background: #1e293b !important;
  border: 1px solid var(--stitch-border-highlight) !important;
  border-radius: var(--stitch-radius-md) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
  padding: 8px !important;
}

.navbar-custom-menu .dropdown-menu > li > a {
  color: #ffffff !important;
  border-radius: var(--stitch-radius-sm) !important;
  background: transparent !important;
}

.navbar-custom-menu .dropdown-menu > li > a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.main-sidebar {
  background-color: #0d131f !important;
  border-right: 1px solid var(--stitch-border) !important;
  padding-top: 54px !important;
  width: 230px !important;
}

.sidebar-menu > li.header {
  background: transparent !important;
  color: var(--stitch-text-muted) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 16px 20px 8px !important;
}

.sidebar-menu > li > a {
  color: var(--stitch-text-secondary) !important;
  font-weight: 600;
  padding: 12px 20px !important;
  transition: var(--stitch-transition);
  border-left: 3px solid transparent;
}

.sidebar-menu > li:hover > a,
.sidebar-menu > li.active > a {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-left-color: var(--stitch-emerald) !important;
}

.sidebar-menu .treeview-menu {
  background: rgba(0, 0, 0, 0.3) !important;
  padding: 4px 0;
}

.sidebar-menu .treeview-menu > li > a {
  color: var(--stitch-text-muted) !important;
  padding: 9px 15px 9px 45px !important;
}

.sidebar-menu .treeview-menu > li > a:hover {
  color: var(--stitch-emerald) !important;
}

/* Adjustments for Sidebar Collapse */
body.sidebar-collapse .main-header .navbar {
  margin-left: 50px !important;
}

body.sidebar-collapse .main-header .logo {
  width: 50px !important;
}

body.sidebar-collapse .main-sidebar {
  width: 50px !important;
}

/* Headings & Text Formatting */
h1, h2, h3, h4, h5, h6 {
  color: var(--stitch-text-primary) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p, span, label, div {
  color: var(--stitch-text-primary);
}

/* Dashboard Top Header & Actions */
.stitch-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.stitch-dashboard-title h1 {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: -0.03em !important;
}

.stitch-dashboard-title p {
  color: var(--stitch-text-secondary) !important;
  font-size: 14px !important;
  margin: 0 !important;
}

.stitch-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  color: var(--stitch-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.stitch-badge-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--stitch-emerald);
  box-shadow: 0 0 8px var(--stitch-emerald);
}

.stitch-actions-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.stitch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--stitch-radius-md);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: var(--stitch-transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.stitch-btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.stitch-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.5);
}

.stitch-btn-secondary {
  background: #1e293b;
  color: #ffffff !important;
  border: 1px solid var(--stitch-border);
}

.stitch-btn-secondary:hover {
  background: #334155;
  border-color: var(--stitch-border-highlight);
  transform: translateY(-2px);
}

/* Bento Grid Cards */
.stitch-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .stitch-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stitch-bento-grid {
    grid-template-columns: 1fr;
  }
}

.stitch-card {
  background: #111827;
  border: 1px solid var(--stitch-border);
  border-radius: var(--stitch-radius-lg);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: var(--stitch-transition);
}

.stitch-card:hover {
  border-color: var(--stitch-border-highlight);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.stitch-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.stitch-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--stitch-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--stitch-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.icon-indigo {
  background: rgba(99, 102, 241, 0.15);
  color: var(--stitch-indigo);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--stitch-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.icon-violet {
  background: rgba(139, 92, 246, 0.15);
  color: var(--stitch-violet);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.stitch-card-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--stitch-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stitch-card-val {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin: 6px 0;
  letter-spacing: -0.03em;
}

.stitch-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--stitch-text-muted);
}

.stitch-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.stitch-progress-fill {
  height: 100%;
  border-radius: 10px;
}

/* Analytics Row */
.stitch-analytics-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .stitch-analytics-row {
    grid-template-columns: 1fr;
  }
}

.stitch-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.stitch-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stitch-chart-container {
  position: relative;
  height: 270px;
  width: 100%;
}

/* Panels & Cards Re-Skin */
.panel, 
.panel-default {
  background: #111827 !important;
  border: 1px solid var(--stitch-border) !important;
  border-radius: var(--stitch-radius-lg) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
  margin-bottom: 24px !important;
  overflow: hidden;
}

.panel-heading, 
.panel-default > .panel-heading {
  background: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid var(--stitch-border) !important;
  color: #ffffff !important;
  padding: 16px 22px !important;
}

.panel-heading h4 {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.panel-body {
  padding: 22px 24px !important;
  background: transparent !important;
}

/* Form Controls & Inputs */
.form-control {
  background-color: #1e293b !important;
  border: 1px solid var(--stitch-border) !important;
  border-radius: var(--stitch-radius-sm) !important;
  color: #ffffff !important;
  font-family: var(--stitch-font-sans) !important;
  font-size: 13.5px !important;
  height: 42px !important;
  padding: 8px 14px !important;
  box-shadow: none !important;
}

.form-control:focus {
  border-color: var(--stitch-indigo) !important;
  box-shadow: 0 0 0 3px var(--stitch-indigo-glow) !important;
  background-color: #0f172a !important;
}

.form-control::placeholder {
  color: #64748b !important;
}

textarea.form-control,
.custom_email_textarea {
  background-color: #1e293b !important;
  border: 1px solid var(--stitch-border) !important;
  border-radius: var(--stitch-radius-sm) !important;
  color: #ffffff !important;
  padding: 12px 14px !important;
  font-family: var(--stitch-font-sans) !important;
  font-size: 13.5px !important;
  min-height: 90px;
}

.input-group-addon {
  background-color: #1e293b !important;
  border: 1px solid var(--stitch-border) !important;
  color: var(--stitch-text-secondary) !important;
  border-radius: var(--stitch-radius-sm) !important;
  font-size: 13.5px !important;
  padding: 8px 14px !important;
}

label {
  color: var(--stitch-text-secondary) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}

/* Buttons Hierarchy */
.btn {
  font-family: var(--stitch-font-sans) !important;
  font-weight: 600 !important;
  border-radius: var(--stitch-radius-md) !important;
  padding: 9px 18px !important;
  transition: var(--stitch-transition) !important;
  border: 1px solid transparent !important;
  font-size: 13.5px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary, 
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

.btn-primary:hover, 
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45) !important;
}

.btn-danger {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
  color: #ffffff !important;
  border: none !important;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.4) !important;
}

.btn-default {
  background: #1e293b !important;
  color: #ffffff !important;
  border: 1px solid var(--stitch-border) !important;
}

.btn-default:hover {
  background: #334155 !important;
  border-color: var(--stitch-border-highlight) !important;
}

.btn-xs {
  padding: 4px 10px !important;
  font-size: 12px !important;
  border-radius: var(--stitch-radius-sm) !important;
}

/* Data Tables & DataTables Plugin Overrides */
.table,
#data-table,
#invoice_table,
.stitch-table,
table.dataTable {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
  margin-bottom: 0 !important;
  border-radius: var(--stitch-radius-md) !important;
  overflow: hidden;
  border-bottom: none !important;
}

.table th,
#data-table th,
#invoice_table th,
.stitch-table th,
table.dataTable thead th,
table.dataTable thead td {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--stitch-text-secondary) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid var(--stitch-border) !important;
  border-top: none !important;
}

.table td,
#data-table td,
#invoice_table td,
.stitch-table td,
table.dataTable tbody td {
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-top: none !important;
  color: var(--stitch-text-primary) !important;
  font-size: 13.5px !important;
  vertical-align: middle !important;
  background: transparent !important;
}

/* Force dark row backgrounds over DataTables default white rows */
table.dataTable tbody tr,
table.dataTable tbody tr.odd,
table.dataTable tbody tr.even,
table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd,
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.02) !important;
  color: var(--stitch-text-primary) !important;
}

table.dataTable tbody tr.even,
table.dataTable.stripe tbody tr.even,
table.dataTable.display tbody tr.even,
.table-striped > tbody > tr:nth-of-type(even) {
  background-color: transparent !important;
  color: var(--stitch-text-primary) !important;
}

table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover,
table.dataTable tbody tr:hover,
.table-hover > tbody > tr:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

/* DataTables Controls & Pagination */
.dataTables_wrapper {
  color: var(--stitch-text-secondary) !important;
  padding: 10px 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
  color: var(--stitch-text-secondary) !important;
  margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  background: #1e293b !important;
  border: 1px solid var(--stitch-border) !important;
  color: #ffffff !important;
  border-radius: var(--stitch-radius-sm) !important;
  padding: 6px 12px !important;
  outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: #1e293b !important;
  color: #ffffff !important;
  border: 1px solid var(--stitch-border) !important;
  border-radius: var(--stitch-radius-sm) !important;
  margin: 0 3px !important;
  padding: 5px 12px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #334155 !important;
  color: #ffffff !important;
  border-color: var(--stitch-border-highlight) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--stitch-emerald) !important;
  color: #ffffff !important;
  border-color: var(--stitch-emerald) !important;
}

/* Badges & Action Buttons */
.stitch-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.stitch-status-paid,
.label-success {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.stitch-status-open,
.label-primary {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.stitch-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--stitch-radius-sm);
  background: #1e293b;
  color: var(--stitch-text-secondary) !important;
  border: 1px solid var(--stitch-border);
  transition: var(--stitch-transition);
  text-decoration: none !important;
  margin-right: 4px;
}

.stitch-action-btn:hover {
  background: var(--stitch-indigo);
  color: #ffffff !important;
  border-color: var(--stitch-indigo);
}

.stitch-action-btn.btn-del:hover {
  background: var(--stitch-rose);
  border-color: var(--stitch-rose);
}

.stitch-customer-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stitch-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

/* Modals & Alerts */
.modal-content {
  background: #111827 !important;
  border: 1px solid var(--stitch-border-highlight) !important;
  border-radius: var(--stitch-radius-lg) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
  color: #ffffff !important;
}

.modal-header {
  border-bottom: 1px solid var(--stitch-border) !important;
  padding: 18px 24px !important;
}

.modal-title {
  font-weight: 700 !important;
  color: #ffffff !important;
}

.modal-body {
  padding: 24px !important;
}

.modal-footer {
  border-top: 1px solid var(--stitch-border) !important;
  padding: 16px 24px !important;
}

.alert, 
.alert-success, 
.alert-danger {
  border-radius: var(--stitch-radius-md) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  padding: 14px 20px !important;
  font-weight: 600;
  margin-bottom: 20px;
}

.alert-danger {
  border-color: rgba(244, 63, 94, 0.35) !important;
  background: rgba(244, 63, 94, 0.18) !important;
  color: #fb7185 !important;
}

/* Login Screen (`index.php`) */
.login-panel {
  background: #111827 !important;
  border: 1px solid var(--stitch-border-highlight) !important;
  border-radius: var(--stitch-radius-xl) !important;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6) !important;
  margin-top: 100px !important;
  overflow: hidden;
}

.panel-login {
  background: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid var(--stitch-border) !important;
  padding: 28px !important;
}

.login-panel .panel-body {
  padding: 32px 36px !important;
}

.login-panel #btn-login {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  height: 46px;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin-top: 10px;
}

/* Stitch Premium Organization Compact Tabs & Panels */
.stitch-org-card {
  background: var(--stitch-surface-card);
  border: 1px solid var(--stitch-border);
  border-radius: var(--stitch-radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stitch-org-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--stitch-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stitch-org-card-details h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--stitch-text-primary);
}

.stitch-org-card-details p {
  margin: 0;
  font-size: 12px;
  color: var(--stitch-text-muted);
}

.stitch-org-tabs {
  border-bottom: 1px solid var(--stitch-border) !important;
  margin-bottom: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.stitch-org-tabs > li {
  margin-bottom: -1px !important;
}

.stitch-org-tabs > li > a {
  background: var(--stitch-surface-dark) !important;
  color: var(--stitch-text-secondary) !important;
  border: 1px solid var(--stitch-border) !important;
  border-radius: var(--stitch-radius-sm) var(--stitch-radius-sm) 0 0 !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: var(--stitch-transition) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.stitch-org-tabs > li > a:hover {
  background: var(--stitch-surface-hover) !important;
  color: #ffffff !important;
  border-color: var(--stitch-border-highlight) !important;
}

.stitch-org-tabs > li.active > a,
.stitch-org-tabs > li.active > a:hover,
.stitch-org-tabs > li.active > a:focus {
  background: rgba(16, 185, 129, 0.14) !important;
  color: var(--stitch-emerald) !important;
  border: 1px solid var(--stitch-emerald) !important;
  border-bottom-color: var(--stitch-surface-card) !important;
  box-shadow: 0 -2px 10px rgba(16, 185, 129, 0.15) !important;
}

.stitch-tab-pane {
  background: var(--stitch-surface-card);
  border: 1px solid var(--stitch-border);
  border-top: none;
  border-radius: 0 0 var(--stitch-radius-md) var(--stitch-radius-md);
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}

.stitch-section-heading {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--stitch-text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--stitch-border);
  padding-bottom: 10px;
}

.stitch-section-heading i {
  color: var(--stitch-emerald);
}

.stitch-sticky-save {
  position: sticky;
  bottom: 15px;
  z-index: 100;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--stitch-border-highlight);
  border-radius: var(--stitch-radius-md);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  margin-top: 20px;
  margin-bottom: 30px;
}

/* ==========================================================================
   Bootstrap Datetimepicker Widget - Premium Dark Theme & Visibility
   ========================================================================== */
html body .bootstrap-datetimepicker-widget.dropdown-menu,
html body div.bootstrap-datetimepicker-widget,
body .bootstrap-datetimepicker-widget {
  background-color: #111827 !important;
  background: #111827 !important;
  color: #f8fafc !important;
  border: 1px solid var(--stitch-border-highlight) !important;
  border-radius: var(--stitch-radius-md) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7) !important;
  z-index: 99999 !important;
  padding: 14px !important;
  width: 290px !important;
  display: block;
}

html body .bootstrap-datetimepicker-widget.dropdown-menu.bottom:before {
  border-bottom-color: var(--stitch-border-highlight) !important;
}

html body .bootstrap-datetimepicker-widget.dropdown-menu.bottom:after {
  border-bottom-color: #111827 !important;
}

html body .bootstrap-datetimepicker-widget.dropdown-menu.top:before {
  border-top-color: var(--stitch-border-highlight) !important;
}

html body .bootstrap-datetimepicker-widget.dropdown-menu.top:after {
  border-top-color: #111827 !important;
}

html body .bootstrap-datetimepicker-widget table {
  width: 100% !important;
  background-color: transparent !important;
  background: transparent !important;
  color: #f8fafc !important;
  border-collapse: separate !important;
  border-spacing: 2px !important;
}

html body .bootstrap-datetimepicker-widget table th {
  color: #94a3b8 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  padding: 6px 4px !important;
  border: none !important;
  background: transparent !important;
}

html body .bootstrap-datetimepicker-widget table td {
  color: #f8fafc !important;
  text-align: center !important;
  border-radius: 6px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  background: transparent !important;
  border: none !important;
}

html body .bootstrap-datetimepicker-widget table td.day,
html body .bootstrap-datetimepicker-widget table td.month,
html body .bootstrap-datetimepicker-widget table td.year {
  color: #f8fafc !important;
}

html body .bootstrap-datetimepicker-widget table td:hover,
html body .bootstrap-datetimepicker-widget table td.day:hover,
html body .bootstrap-datetimepicker-widget table td.month:hover,
html body .bootstrap-datetimepicker-widget table td.year:hover {
  background-color: #1e293b !important;
  background: #1e293b !important;
  color: #ffffff !important;
  cursor: pointer !important;
}

html body .bootstrap-datetimepicker-widget table td.active,
html body .bootstrap-datetimepicker-widget table td.active:hover {
  background-color: #10b981 !important;
  background: #10b981 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4) !important;
}

html body .bootstrap-datetimepicker-widget table td.today:before {
  border-bottom-color: #10b981 !important;
}

html body .bootstrap-datetimepicker-widget table td.old,
html body .bootstrap-datetimepicker-widget table td.new {
  color: #475569 !important;
}

html body .bootstrap-datetimepicker-widget table th.picker-switch,
html body .bootstrap-datetimepicker-widget table th.prev,
html body .bootstrap-datetimepicker-widget table th.next {
  color: #10b981 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

html body .bootstrap-datetimepicker-widget table th.picker-switch:hover,
html body .bootstrap-datetimepicker-widget table th.prev:hover,
html body .bootstrap-datetimepicker-widget table th.next:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px !important;
  color: #ffffff !important;
}

html body .bootstrap-datetimepicker-widget a span,
html body .bootstrap-datetimepicker-widget span {
  color: #f8fafc !important;
}

html body .bootstrap-datetimepicker-widget .timepicker-picker table td a,
html body .bootstrap-datetimepicker-widget .timepicker-picker table td span {
  color: #f8fafc !important;
}


