/* Enterprise ERP UI Styling - Ultra-Clean Modern Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --sap-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  
  /* SAP Horizon & Fiori Theme Colors */
  --sap-shell-bg: #1c2d42;            /* Dark Navy Shell */
  --sap-shell-text: #ffffff;
  --sap-subshell-bg: #0f1a26;         /* Subheader */
  
  --sap-bg: #f5f7fa;                  /* SAP Page Background */
  --sap-card-bg: #ffffff;
  --sap-border: #d9d9d9;
  --sap-border-dark: #cccccc;
  
  /* SAP Functional Colors */
  --sap-blue: #0a6ed1;                /* SAP Primary Action Blue */
  --sap-blue-hover: #0854a0;
  --sap-blue-light: #ebf3fb;
  
  --sap-positive: #107e3e;            /* SAP Positive Green */
  --sap-positive-bg: #e6f4ea;
  
  --sap-critical: #e6600d;            /* SAP Critical Warning Orange */
  --sap-critical-bg: #fef0e6;
  
  --sap-negative: #bb0000;            /* SAP Negative Danger Red */
  --sap-negative-bg: #fce8e8;
  
  --sap-neutral: #556b82;             /* SAP Neutral Gray */
  --sap-neutral-bg: #f2f4f7;
  
  --sap-text: #202428;                /* SAP Body Text - High contrast */
  --sap-text-muted: #5e666f;
  
  --sap-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --sap-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body {
  font-family: var(--sap-font);
  background-color: var(--sap-bg);
  color: var(--sap-text);
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1, h2, h3, h4, h5, h6,
.sap-page-title, .sap-card-title, .slds-page-header__title, .sap-kpi-value {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

code, kbd, samp, pre, .sap-code, .badge-code, .tcode-pill, .mono-val {
  font-family: var(--font-mono) !important;
  font-feature-settings: "zero", "tnum";
}

button, input, optgroup, select, textarea, .form-control, .form-select, .btn {
  font-family: var(--sap-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Vector Icon Alignment Helpers */
.sap-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2;
}

.sap-icon-lg {
  width: 20px;
  height: 20px;
}

.sap-icon-sm {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   1. SAP Fiori Shellbar Header
   ========================================================================== */
.sap-shellbar {
  background-color: var(--sap-shell-bg);
  color: var(--sap-shell-text);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible !important;
}

.sap-logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 14px;
}

.sap-logo-badge {
  background: #0080ff;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.sap-system-title {
  color: #d1e0f0;
  font-weight: 400;
  font-size: 13px;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 0.75rem;
}

.sap-shell-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 0 10px;
  width: 420px;
  max-width: 100%;
  transition: all 0.15s ease-in-out;
  position: relative !important;
  overflow: visible !important;
}

.sap-shell-search:focus-within {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
  box-shadow: none !important;
}

.sap-shell-search input,
.sap-shell-search input:focus,
.sap-shell-search input:active,
.sap-shell-search input:hover {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  width: 100%;
  padding: 6px;
  font-size: 12px;
  outline: none !important;
  box-shadow: none !important;
}

.sap-shell-search input::placeholder {
  color: #c0d1e5;
}

/* T-Code Menu Search Autocomplete Dropdown */
.sap-tcode-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.25);
  z-index: 99999;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px 0;
}

.sap-tcode-group-header {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px 2px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.sap-tcode-item {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none !important;
  color: #0f172a;
  transition: background 0.12s ease;
}

.sap-tcode-item:last-child {
  border-bottom: none;
}

.sap-tcode-item:hover, .sap-tcode-item.active {
  background: #eff6ff;
}

.sap-tcode-item .tcode-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  background: #0a6ed1;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.sap-tcode-item .tcode-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sap-tcode-item .tcode-group-tag {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 3px;
}

.sap-shell-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sap-shell-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sap-shell-btn:hover {
  background: rgba(255,255,255,0.15);
}

.sap-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0a6ed1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  border: 1px solid #fff;
  cursor: pointer;
}

/* SAP User Profile Dropdown Menu */
.sap-profile-menu-container {
  position: relative;
  display: inline-block;
}

.sap-profile-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0;
  padding-top: 4px;
  width: 240px;
  background: #ffffff;
  border: 1px solid var(--sap-border-dark);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 2000;
  color: var(--sap-text);
  overflow: hidden;
}

.sap-profile-menu-container:hover .sap-profile-dropdown,
.sap-profile-dropdown.show {
  display: block;
}

.sap-profile-header-card {
  background: #f4f6f8;
  padding: 12px 14px;
  border-bottom: 1px solid var(--sap-border);
}

.sap-profile-name {
  font-weight: 700;
  font-size: 13px;
  color: #223548;
}

.sap-profile-role {
  font-size: 11px;
  color: var(--sap-text-muted);
}

.sap-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #32363a;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sap-dropdown-item:hover {
  background: #ebf3fb;
  color: var(--sap-blue);
}

/* SAP Notification Dropdown Menu Overlay */
.sap-notification-menu-container {
  position: relative;
  display: inline-block;
}

.sap-notification-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0;
  width: 340px;
  background: #ffffff;
  border: 1px solid var(--sap-border-dark);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 2000;
  color: var(--sap-text);
  overflow: hidden;
}

.sap-notification-menu-container:hover .sap-notification-dropdown,
.sap-notification-dropdown.show {
  display: block;
}

.sap-notification-header {
  background: #f4f6f8;
  padding: 10px 14px;
  border-bottom: 1px solid var(--sap-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sap-notification-title {
  font-weight: 700;
  font-size: 13px;
  color: #223548;
}

.sap-notification-list {
  max-height: 320px;
  overflow-y: auto;
  divide-y: 1px solid #f0f0f0;
}

.sap-notification-item {
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sap-notification-item:hover {
  background: #f8fafc;
}

.sap-notification-item.unread {
  background: #ebf3fb;
}

.sap-notification-icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.sap-notification-content {
  flex: 1;
}

.sap-notification-msg {
  font-weight: 600;
  color: #32363a;
  line-height: 1.3;
}

.sap-notification-time {
  font-size: 10px;
  color: var(--sap-text-muted);
  margin-top: 2px;
}

.sap-notification-footer {
  background: #fafafa;
  padding: 8px 14px;
  border-top: 1px solid var(--sap-border);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--sap-blue);
  cursor: pointer;
}

.sap-notification-footer:hover {
  background: #f0f4f8;
}

/* ==========================================================================
   2. SAP Fiori Anchor Navigation Bar (Catalogs / Groups)
   ========================================================================== */
.sap-anchor-bar {
  background-color: var(--sap-subshell-bg);
  padding: 0 1.5rem;
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--sap-blue);
  position: relative;
  z-index: 100;
  overflow: visible;
}

.sap-group-tab {
  background: transparent;
  border: none;
  color: #a6b9d0;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.sap-nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.sap-nav-dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0;
  min-width: 250px;
  background: #ffffff !important;
  border: 1px solid #b0bec5 !important;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
  z-index: 9999 !important;
  padding: 6px 0;
}

/* Hover Bridge element to prevent mouse drop */
.sap-nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.sap-nav-dropdown-wrapper:hover .sap-nav-dropdown-menu,
.sap-nav-dropdown-menu.show {
  display: block !important;
}

.sap-nav-subitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #1f2937 !important;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.sap-nav-subitem:hover {
  background: #0a6ed1 !important;
  color: #ffffff !important;
}

.sap-nav-subitem:hover .sap-tcode-badge {
  background: #ffffff !important;
  color: #0a6ed1 !important;
}

.sap-tcode-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #0a6ed1;
  background: #e8f0fe;
  padding: 1px 5px;
  border-radius: 3px;
}

.sap-group-tab:hover {
  color: #ffffff;
}

.sap-group-tab.active {
  color: #ffffff;
  border-bottom-color: #0080ff;
  background: rgba(255,255,255,0.08);
}

/* ==========================================================================
   3. SAP Fiori Page Layout & Headers
   ========================================================================== */
.sap-page {
  padding: 1.25rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.sap-page-header {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sap-page-title {
  font-size: 20px;
  font-weight: 600;
  color: #223548;
  margin: 0;
}

.sap-page-subtitle {
  font-size: 12px;
  color: var(--sap-text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   4. SAP Fiori Launchpad KPI Tiles
   ========================================================================== */
.sap-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sap-fiori-tile {
  background: var(--sap-card-bg);
  border: 1px solid var(--sap-border);
  border-radius: 4px;
  padding: 12px 14px;
  box-shadow: var(--sap-shadow-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 125px;
  position: relative;
}

.sap-fiori-tile:hover {
  border-color: var(--sap-blue);
  box-shadow: var(--sap-shadow-md);
  transform: translateY(-1px);
}

.sap-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sap-tile-header {
  font-size: 13px;
  font-weight: 600;
  color: #32363a;
  line-height: 1.3;
}

.sap-tile-subtitle {
  font-size: 11px;
  color: var(--sap-text-muted);
  margin-top: 2px;
}

.sap-tile-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #f0f4f8;
  color: var(--sap-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sap-tile-kpi {
  margin: 8px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.sap-kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: #223548;
  letter-spacing: -0.5px;
}

.sap-kpi-value.positive { color: var(--sap-positive); }
.sap-kpi-value.critical { color: var(--sap-critical); }
.sap-kpi-value.negative { color: var(--sap-negative); }

.sap-kpi-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--sap-text-muted);
  margin-left: 4px;
}

.sap-tile-footer {
  font-size: 11px;
  color: var(--sap-text-muted);
  border-top: 1px solid #f0f0f0;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   5. SAP Filter Bar (Smart Filter Variant)
   ========================================================================== */
.sap-filter-bar {
  background: var(--sap-card-bg);
  border: 1px solid var(--sap-border);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 1rem;
  box-shadow: var(--sap-shadow-sm);
}

.sap-filter-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.sap-variant-title {
  font-size: 14px;
  font-weight: 700;
  color: #223548;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sap-filter-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.sap-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sap-field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--sap-text-muted);
  text-transform: uppercase;
}

.sap-input {
  border: 1px solid var(--sap-border);
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 12px;
  outline: none;
  background: #fff;
  color: var(--sap-text);
  font-family: inherit;
}

.sap-input:focus {
  border-color: var(--sap-blue);
  box-shadow: 0 0 0 1px var(--sap-blue);
}

/* ==========================================================================
   6. SAP Table Toolbar & Data Grid
   ========================================================================== */
.sap-table-container {
  background: var(--sap-card-bg);
  border: 1px solid var(--sap-border);
  border-radius: 4px;
  box-shadow: var(--sap-shadow-sm);
  overflow: hidden;
}

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

.sap-table-toolbar {
  padding: 10px 16px;
  background: #fafafa;
  border-bottom: 1px solid var(--sap-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sap-table-title {
  font-size: 14px;
  font-weight: 700;
  color: #223548;
}

.sap-table-actions {
  display: flex;
  gap: 6px;
}

.sap-grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.sap-grid-table th {
  background: #f4f6f8;
  color: #4a545e;
  font-weight: 600;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid var(--sap-border-dark);
  border-right: 1px solid #e5e5e5;
  white-space: nowrap;
}

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

.sap-grid-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #eef0f2;
  border-right: 1px solid #f0f0f0;
  color: var(--sap-text);
}

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

.sap-grid-table tbody tr:hover {
  background-color: #e8f0fe !important;
}

.sap-grid-table tbody tr:nth-child(even) {
  background-color: #fafbfc;
}

.sap-object-link {
  color: var(--sap-blue);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.sap-object-link:hover {
  text-decoration: underline;
}

.sap-progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.sap-progress-fill {
  height: 100%;
  background: var(--sap-blue);
  border-radius: 3px;
}

.sap-progress-fill.positive { background: var(--sap-positive); }
.sap-progress-fill.warning { background: var(--sap-critical); }
.sap-progress-fill.danger { background: var(--sap-negative); }

/* Status Badges */
.sap-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.sap-status-positive {
  background-color: var(--sap-positive-bg);
  color: var(--sap-positive);
  border: 1px solid rgba(16,126,62,0.3);
}

.sap-status-critical {
  background-color: var(--sap-critical-bg);
  color: var(--sap-critical);
  border: 1px solid rgba(230,96,13,0.3);
}

.sap-status-negative {
  background-color: var(--sap-negative-bg);
  color: var(--sap-negative);
  border: 1px solid rgba(187,0,0,0.3);
}

.sap-status-neutral {
  background-color: var(--sap-neutral-bg);
  color: var(--sap-neutral);
  border: 1px solid rgba(85,107,130,0.3);
}

.sap-sys-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
  background: #223548;
  color: #ffffff;
}

/* Buttons */
.sap-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.1s ease;
}

.sap-btn-primary {
  background-color: var(--sap-blue);
  color: #ffffff;
  border-color: var(--sap-blue-hover);
}

.sap-btn-primary:hover {
  background-color: var(--sap-blue-hover);
}

.sap-btn-secondary {
  background-color: #ffffff;
  color: var(--sap-blue);
  border-color: var(--sap-blue);
}

.sap-btn-secondary:hover {
  background-color: var(--sap-blue-light);
}

.sap-btn-ghost {
  background: transparent;
  color: var(--sap-text);
  border-color: var(--sap-border);
}

.sap-btn-ghost:hover {
  background: #f0f0f0;
}

/* Modal Popup */
.sap-dialog-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.sap-dialog-backdrop.show {
  display: flex;
}

.sap-dialog {
  background: #ffffff;
  border-radius: 4px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  border: 1px solid var(--sap-border-dark);
  overflow: hidden;
}

.sap-dialog-header {
  background: #f4f6f8;
  padding: 10px 16px;
  border-bottom: 1px solid var(--sap-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sap-dialog-title {
  font-size: 14px;
  font-weight: 700;
  color: #223548;
  margin: 0;
}

.sap-dialog-body {
  padding: 16px;
}

.sap-dialog-footer {
  background: #fafafa;
  padding: 10px 16px;
  border-top: 1px solid var(--sap-border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.sap-view { display: none; }
.sap-view.active { display: block; }

/* ==========================================================================
   UNIFORM DROPDOWN SELECT STYLING (SAP FIORI & BOOTSTRAP HARMONIZATION)
   ========================================================================== */
select,
select.sap-input,
select.form-select,
select.form-control,
.sap-field-group select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: #ffffff !important;
  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='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 14px 14px !important;
  border: 1px solid #bfbfbf !important;
  border-radius: 4px !important;
  padding: 7px 32px 7px 10px !important;
  font-size: 13px !important;
  font-family: var(--sap-font) !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  height: 36px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
  box-sizing: border-box !important;
}

select:focus,
select.sap-input:focus,
select.form-select:focus,
select.form-control:focus,
.sap-field-group select:focus {
  border-color: #0a6ed1 !important;
  box-shadow: 0 0 0 2px rgba(10, 110, 209, 0.2) !important;
  outline: none !important;
}

select:disabled,
select.sap-input:disabled {
  background-color: #f1f5f9 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  opacity: 0.8 !important;
}

/* Form text input harmonization */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
.sap-input {
  height: 36px;
  font-size: 13px;
  font-family: var(--sap-font);
  border: 1px solid #bfbfbf;
  border-radius: 4px;
  padding: 7px 10px;
  color: #1e293b;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
.sap-input:focus {
  border-color: #0a6ed1;
  box-shadow: 0 0 0 2px rgba(10, 110, 209, 0.2);
  outline: none;
}

/* ==========================================================================
   SELECT2 SEARCHABLE DROPDOWN STYLING HARMONIZATION
   ========================================================================== */
.select2-container {
  max-width: 100%;
}

.sap-field-group .select2-container {
  width: 100% !important;
  display: block;
}

.select2-container--default .select2-selection--single {
  height: 36px !important;
  border: 1px solid #bfbfbf !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  font-size: 13px !important;
  font-family: var(--sap-font) !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  padding-left: 2px !important;
  line-height: 26px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 34px !important;
  right: 8px !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #0a6ed1 !important;
  box-shadow: 0 0 0 2px rgba(10, 110, 209, 0.2) !important;
  outline: none !important;
}

.select2-dropdown {
  border: 1px solid #0a6ed1 !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  font-size: 13px !important;
  font-family: var(--sap-font) !important;
  z-index: 9999 !important;
}

.select2-search--dropdown {
  padding: 6px !important;
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  outline: none !important;
  box-shadow: none !important;
}

.select2-search--dropdown .select2-search__field:focus,
.select2-search--dropdown .select2-search__field:active {
  border-color: #0a6ed1 !important;
  outline: none !important;
  box-shadow: none !important;
}

.sap-filter-input:focus,
.sap-filter-input:active {
  border-color: #0a6ed1 !important;
  outline: none !important;
  box-shadow: none !important;
}

.select2-results__option--highlighted[aria-selected] {
  background-color: #0a6ed1 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   EXECUTIVE DASHBOARD ANALYTICS STYLING (ULTRA-POLISHED EDITION)
   ========================================================================== */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .dash-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.dash-kpi-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 16px 18px !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.dash-kpi-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09) !important;
  border-color: #94a3b8 !important;
}

.dash-kpi-icon-box {
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease !important;
}

.dash-kpi-card:hover .dash-kpi-icon-box {
  transform: scale(1.08) !important;
}

.dash-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .dash-chart-grid {
    grid-template-columns: 1fr;
  }
}

.dash-chart-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 18px 20px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.dash-chart-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  gap: 12px !important;
}

.dash-chart-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.dash-chart-subtitle {
  font-size: 11px !important;
  color: #64748b !important;
  margin-top: 3px !important;
}

.dash-metric-badge {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
}

.dash-pulse-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  animation: pulse-ring 2s infinite !important;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.dash-tab-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  padding: 10px 16px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-bottom: -1px !important;
}

.dash-tab-btn:hover {
  color: #0a6ed1 !important;
}

.dash-tab-btn.active {
  color: #0a6ed1 !important;
  border-bottom-color: #0a6ed1 !important;
  font-weight: 700 !important;
  background: #ffffff !important;
}


