/**
 * SIC SAP Docs — Fiori Horizon Core Theme
 * File: assets/css/fiori_horizon.css
 */

:root {
  --sap-primary: #0284c7;
  --sap-primary-hover: #0369a1;
  --sap-shell-bg: rgba(15, 23, 42, 0.95);
  --sap-shell-text: #ffffff;
  --sap-canvas-bg: #f8fafc;
  --sap-card-bg: #ffffff;
  --sap-border: #e2e8f0;
  --sap-text-primary: #0f172a;
  --sap-text-secondary: #64748b;
  --sap-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --sap-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --sap-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --sap-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --sap-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --sap-radius: 10px;
}

[x-cloak] {
  display: none !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sap-font);
  background-color: var(--sap-canvas-bg);
  color: var(--sap-text-primary);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ========================================================= */
/* SHELL HEADER (NAVBAR)                                     */
/* ========================================================= */
.fiori-shell-header {
  background-color: var(--sap-shell-bg);
  color: var(--sap-shell-text);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.fiori-shell-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fiori-shell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
  transition: opacity 0.15s ease;
}

.fiori-shell-brand:hover {
  opacity: 0.92;
}

.fiori-shell-logo {
  height: 28px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
  display: block;
}

.fiori-shell-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #93c5fd;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fiori-shell-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
}

.fiori-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fiori-nav-link:hover,
.fiori-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.fiori-shell-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Shell Navbar Tools Dropdown Menu */
.fiori-nav-dropdown {
  position: relative;
  display: inline-block;
}

.fiori-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.fiori-shell-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  min-width: 220px;
  padding: 6px;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.fiori-dropdown-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  padding: 6px 10px 4px 10px;
}

.fiori-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.15s ease;
}

.fiori-dropdown-item:hover,
.fiori-dropdown-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.fiori-dropdown-item i {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.fiori-dropdown-title {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 12px;
  line-height: 1.2;
}

.fiori-dropdown-desc {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 1px;
  line-height: 1.2;
}

/* Minimalist SAP Gateway Status Indicator */
.sap-gw-mini {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.sap-gw-mini.connected {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.sap-gw-mini.checking {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.sap-gw-mini.offline {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.sap-gw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.sap-gw-dot.pulse {
  animation: sapDotPulse 2s infinite;
}

@keyframes sapDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.sap-gw-flyout {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  padding: 10px 12px;
  z-index: 100;
  font-size: 11.5px;
  color: #cbd5e1;
  pointer-events: auto;
  backdrop-filter: blur(12px);
}

/* ========================================================= */
/* LAYOUT CONTAINER                                          */
/* ========================================================= */
.fiori-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px;
}

/* ========================================================= */
/* EMBED MODE OPTIMIZATIONS (?embed=1)                       */
/* ========================================================= */
body.embed-mode {
  background-color: transparent !important;
}

body.embed-mode .fiori-shell-header {
  display: none !important;
}

body.embed-mode .fiori-container {
  max-width: 100% !important;
  padding: 8px 12px !important;
}

/* ========================================================= */
/* BUTTONS & CONTROLS                                        */
/* ========================================================= */
.fiori-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

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

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

.fiori-btn-secondary {
  background: #ffffff;
  color: #334155;
  border-color: #cbd5e1;
}

.fiori-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.fiori-btn-sm {
  padding: 4px 10px;
  font-size: 11.5px;
}

/* ========================================================= */
/* CARDS & PANELS                                            */
/* ========================================================= */
.fiori-card {
  background: var(--sap-card-bg);
  border: 1px solid var(--sap-border);
  border-radius: var(--sap-radius);
  box-shadow: var(--sap-shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fiori-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--sap-shadow-lg);
  border-color: #93c5fd;
}

.fiori-card-header {
  padding: 12px 20px;
  background: #fcfdfd;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fiori-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--sap-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fiori-card-body {
  padding: 20px;
}

/* ========================================================= */
/* DATA TABLES                                               */
/* ========================================================= */
.fiori-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  background: #ffffff;
}

.fiori-table thead {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.fiori-table th {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.fiori-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.fiori-table tbody tr {
  transition: background-color 0.15s ease;
}

.fiori-table tbody tr:hover {
  background-color: #f8fafc;
}

.fiori-table-striped tbody tr:nth-child(even) {
  background-color: #fcfcfd;
}

/* Compact Density for Enterprise Tables (SE11 DDIC & SE16 ALV) */
.fiori-table.fiori-table-compact th {
  padding: 8px 12px;
  font-size: 11px;
}

.fiori-table.fiori-table-compact td {
  padding: 6px 12px;
  font-size: 12.5px;
  line-height: 1.4;
}

.fiori-table-scroll-wrapper {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: auto;
  border-top: 1px solid var(--sap-border);
}

.fiori-table-scroll-wrapper thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f1f5f9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.fiori-table-scroll-wrapper::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.fiori-table-scroll-wrapper::-webkit-scrollbar-track {
  background: #f8fafc;
}

.fiori-table-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.fiori-table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.erd-key-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

/* Badges & Pills */
.fiori-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

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

.badge-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-purple {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ========================================================= */
/* FIXED BOTTOM ABAP STATUS BAR                              */
/* ========================================================= */
body:not(.embed-mode) {
  padding-bottom: 30px !important;
}

.abap-status-bar-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 26px;
  min-height: 26px;
  background: #0284c7;
  color: #ffffff;
  padding: 0 14px;
  font-size: 11px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  user-select: none;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.12);
}

.abap-status-bar-fixed::-webkit-scrollbar {
  display: none;
}

.abap-status-bar-fixed .status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.abap-status-bar-fixed .status-icon {
  color: #86efac;
  margin-right: 4px;
  font-size: 11px;
}

.abap-status-bar-fixed .status-credits {
  font-size: 11px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.abap-status-bar-fixed .status-credits strong {
  color: #ffffff;
  font-weight: 600;
}

.abap-status-bar-fixed .status-credits a {
  color: #a5f3fc;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.15s;
}

.abap-status-bar-fixed .status-credits a:hover {
  color: #ffffff;
}

.abap-status-bar-fixed .status-divider {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  margin: 0 2px;
}

.abap-status-bar-fixed .status-right {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.9;
  flex-shrink: 0;
  font-size: 11px;
}

@media (max-width: 768px) {
  .abap-status-bar-fixed .status-right {
    display: none;
  }
  .abap-status-bar-fixed .status-credits {
    font-size: 10px;
    gap: 4px;
  }
}

/* ========================================================= */
/* SAP FIORI HORIZON POPUP & TOAST NOTIFICATION SYSTEM       */
/* ========================================================= */
.fiori-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fiori-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.fiori-popup-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 26px 24px 22px 24px;
  text-align: center;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fiori-popup-overlay.active .fiori-popup-card {
  transform: scale(1) translateY(0);
}

.fiori-popup-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fiori-popup-icon-wrapper.popup-type-success {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
  border: 2px solid #a7f3d0;
}

.fiori-popup-icon-wrapper.popup-type-error {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
  border: 2px solid #fecaca;
}

.fiori-popup-icon-wrapper.popup-type-warning {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #d97706;
  border: 2px solid #fde68a;
}

.fiori-popup-icon-wrapper.popup-type-info {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  color: #0284c7;
  border: 2px solid #bae6fd;
}

.fiori-popup-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

.fiori-popup-message {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  white-space: pre-line;
  margin-bottom: 22px;
  text-align: center;
  word-break: break-word;
}

.fiori-popup-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.fiori-popup-actions .fiori-btn {
  padding: 8px 24px;
  font-size: 12.5px;
  font-weight: 600;
  min-width: 100px;
}

/* ========================================================= */
/* TOAST NOTIFICATION CONTAINER & CARDS                      */
/* ========================================================= */
.fiori-toast-container {
  position: fixed;
  top: 60px;
  right: 20px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.fiori-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  background: #ffffff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(110%);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid #0284c7;
}

.fiori-toast.active {
  transform: translateX(0);
  opacity: 1;
}

.fiori-toast.toast-success {
  border-left-color: #10b981;
}
.fiori-toast.toast-success .fiori-toast-icon {
  color: #059669;
}

.fiori-toast.toast-error {
  border-left-color: #ef4444;
}
.fiori-toast.toast-error .fiori-toast-icon {
  color: #dc2626;
}

.fiori-toast.toast-warning {
  border-left-color: #f59e0b;
}
.fiori-toast.toast-warning .fiori-toast-icon {
  color: #d97706;
}

.fiori-toast-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.fiori-toast-text {
  font-size: 12.5px;
  color: #1e293b;
  line-height: 1.4;
  flex: 1;
}

.fiori-toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  font-size: 12px;
  transition: color 0.15s;
}

.fiori-toast-close:hover {
  color: #475569;
}

/* ========================================================= */
/* KPI ANALYTICAL TILES & HIGH DENSITY DASHBOARD             */
/* ========================================================= */
.kpi-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

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

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

.kpi-stat-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  min-height: 48px;
  box-sizing: border-box;
}

.kpi-stat-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
}

.kpi-stat-tile.tile-all.is-active {
  border-color: #0284c7 !important;
  background: #f0f9ff !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important;
}

.kpi-stat-tile.tile-open.is-active {
  border-color: #f59e0b !important;
  background: #fffbeb !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2) !important;
}

.kpi-stat-tile.tile-reviewed.is-active {
  border-color: #0284c7 !important;
  background: #f0f9ff !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important;
}

.kpi-stat-tile.tile-implemented.is-active {
  border-color: #10b981 !important;
  background: #ecfdf5 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

.kpi-tile-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.kpi-tile-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.kpi-tile-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
}

.kpi-tile-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
  line-height: 1;
  color: #64748b;
  white-space: nowrap;
}

/* Category Badge Styles */
.badge-cat-missing_table {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

.badge-cat-relation_fix {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

.badge-cat-question {
  background: #f0f9ff !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}

.badge-cat-tips {
  background: #faf5ff !important;
  color: #6b21a8 !important;
  border: 1px solid #e9d5ff !important;
}

.badge-cat-general {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

/* ========================================================= */
/* MOBILE RESPONSIVE ENHANCEMENTS (Mode HP & Layar Kecil)    */
/* ========================================================= */

/* Mobile Hamburger Toggle Button (Hidden on Desktop) */
.fiori-mobile-toggle-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #ffffff;
  width: 32px;
  height: 32px;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fiori-mobile-toggle-btn:hover,
.fiori-mobile-toggle-btn.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Mobile Slide-down Navigation Drawer */
.fiori-shell-mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  z-index: 999;
  padding: 12px 14px 16px 14px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.fiori-mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fiori-mobile-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  padding: 6px 10px 2px 10px;
}

.fiori-mobile-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.fiori-mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.fiori-mobile-nav-item:hover,
.fiori-mobile-nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.fiori-mobile-nav-item i {
  width: 16px;
  text-align: center;
  font-size: 13px;
}

/* Catalog Module Scrollable Pills */
.fiori-module-scroll-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Diagram Catalog Responsive Grid */
.fiori-diagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* ========================================================= */
/* SE11 & SE16 INTERACTIVE WORKBENCH STYLES                 */
/* ========================================================= */
.se-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.se-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.se-back-btn {
  color: #0284c7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.se-breadcrumb-sep {
  color: #cbd5e1;
}

.se-main-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.se-title-full {
  display: inline;
}

.se-title-short {
  display: none;
}

.se-table-chip {
  font-family: 'JetBrains Mono', monospace;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #bae6fd;
}

.se-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.se-search-input-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.se-btn-label {
  display: inline;
}

.se-btn-label-short {
  display: none;
}

.se-popular-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.se-popular-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.se-popular-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
  flex: 1;
}

.se-popular-scroll::-webkit-scrollbar {
  display: none;
}

.se-popular-scroll a {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s;
}

/* Overview Card */
.se-overview-card {
  margin-bottom: 14px;
  padding: 14px 18px;
  border-radius: 8px;
}

.se-overview-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.se-overview-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.se-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.se-table-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.se-table-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.se-table-desc {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.se-meta-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.se-live-text {
  display: inline;
}

.se-live-text-short {
  display: none;
}

.se-pk-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 12px;
}

.se-pk-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.se-pk-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.se-pk-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Fields Toolbar */
.se-fields-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 10px;
}

.se-fields-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.se-fields-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.se-fields-desc-full {
  display: inline;
}

.se-fields-desc-short {
  display: none;
}

.se-fields-count {
  font-size: 11.5px;
  color: #64748b;
}

.se-fields-search-box {
  position: relative;
}

.se-fields-search-box input {
  font-size: 12px;
  padding: 5px 10px 5px 28px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 260px;
  outline: none;
  background: #fff;
}

.se-fields-search-box i {
  position: absolute;
  left: 9px;
  top: 8px;
  font-size: 11px;
  color: #94a3b8;
}

/* SE16 Toolbar Card */
.se-toolbar-card {
  margin-bottom: 14px;
  padding: 10px 16px;
  border-radius: 8px;
}

.se-toolbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.se-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.se-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.se-filter-box {
  position: relative;
}

.se-filter-box input {
  font-size: 12px;
  padding: 5px 10px 5px 28px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 200px;
  outline: none;
  background: #fff;
}

.se-filter-box i {
  position: absolute;
  left: 9px;
  top: 8px;
  font-size: 11px;
  color: #94a3b8;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .fiori-shell-header {
    padding: 0 14px;
    height: 48px;
  }

  .fiori-shell-badge {
    display: none !important;
  }

  .fiori-shell-nav {
    display: none !important;
  }

  .fiori-desktop-auth {
    display: none !important;
  }

  .fiori-mobile-toggle-btn {
    display: inline-flex !important;
  }

  .fiori-container {
    padding: 14px 12px 52px 12px;
  }

  .fiori-module-scroll-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    width: 100%;
  }

  .fiori-module-scroll-pills::-webkit-scrollbar {
    display: none;
  }

  .fiori-module-scroll-pills button {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .fiori-catalog-search-box {
    width: 100% !important;
    margin-top: 4px;
  }

  .fiori-catalog-search-box input {
    width: 100% !important;
    box-sizing: border-box;
  }

  .fiori-dashboard-actions {
    width: 100%;
    margin-top: 8px;
  }

  .fiori-dashboard-actions a,
  .fiori-dashboard-actions button {
    font-size: 12px;
  }

  /* SE11 & SE16 Mobile Optimizations */
  .se-header-bar {
    gap: 8px;
    margin-bottom: 10px;
  }

  .se-title-wrap {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .se-main-title {
    font-size: 15px;
  }

  .se-title-full {
    display: none;
  }

  .se-title-short {
    display: inline;
  }

  .se-action-bar {
    width: 100%;
    display: flex;
    gap: 6px;
  }

  .se-action-bar form {
    flex: 1;
    min-width: 0;
  }

  .se-search-input-group {
    width: 100%;
    box-sizing: border-box;
  }

  .se-search-input-group input {
    width: 100% !important;
    min-width: 60px;
  }

  .se-btn-label {
    display: none;
  }

  .se-btn-label-short {
    display: inline;
  }

  .se-popular-row {
    margin-bottom: 10px;
  }

  .se-popular-label {
    font-size: 10.5px;
  }

  .se-overview-card {
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .se-overview-inner {
    gap: 8px;
  }

  .se-overview-main {
    gap: 0;
    width: 100%;
  }

  .se-card-icon {
    display: none !important;
  }

  .se-table-title {
    font-size: 16px;
  }

  .se-table-desc {
    font-size: 12.5px;
  }

  .se-category-badge {
    display: none !important;
  }

  .se-live-text {
    display: none;
  }

  .se-live-text-short {
    display: inline;
  }

  .se-verbose-meta {
    display: none !important;
  }

  .se-pk-strip {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 4px;
    gap: 6px;
    width: 100%;
  }

  .se-pk-label {
    font-size: 10.5px;
  }

  .se-pk-badge {
    font-size: 11px;
    padding: 1px 5px;
  }

  .se-fields-toolbar {
    padding: 8px 12px;
    gap: 8px;
  }

  .se-fields-title-group {
    width: 100%;
    justify-content: space-between;
  }

  .se-fields-desc-full {
    display: none;
  }

  .se-fields-desc-short {
    display: inline;
  }

  .se-fields-count-prefix,
  .se-fields-count-suffix {
    display: none;
  }

  .se-fields-search-box {
    width: 100%;
  }

  .se-fields-search-box input {
    width: 100% !important;
    box-sizing: border-box;
  }

  .se-toolbar-card {
    padding: 8px 12px;
    margin-bottom: 10px;
  }

  .se-toolbar-inner {
    gap: 8px;
  }

  .se-toolbar-left {
    width: 100%;
    justify-content: space-between;
  }

  .se-toolbar-desc {
    display: none;
  }

  .se-toolbar-right {
    width: 100%;
    display: flex;
    gap: 6px;
  }

  .se-filter-box {
    flex: 1;
    min-width: 0;
  }

  .se-filter-box input {
    width: 100% !important;
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {
  .fiori-diagram-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sap-gw-mini .sap-gw-text {
    font-size: 11px;
  }

  .sap-gw-mini .sap-gw-latency {
    display: none;
  }
}

@media (max-width: 480px) {
  .sap-gw-mini {
    padding: 3px 6px;
    font-size: 10.5px;
  }

  .sap-gw-mini .sap-gw-text {
    display: none;
  }
}
