/* ═══════════════════════════════════════════════════════════
   Horizon ERP — Modern Enterprise Design System v2.0
   Oracle Fusion / Microsoft Dynamics 365 inspired
═══════════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ──────────────────────────────────────── */
:root {
  /* Oracle Fusion Cloud — Enterprise Blue palette */
  --primary:        #1575BF;
  --primary-dark:   #0F4B8B;
  --primary-light:  #2E8FD0;
  --primary-50:     #EAF3FB;
  --primary-100:    #C9E4F5;

  /* Oracle header & sidebar tones */
  --navy-950: #0A0E18;
  --navy-900: #0F1928;
  --navy-800: #162035;
  --navy-700: #1C2B3A;   /* Oracle header background */
  --navy-600: #243547;

  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  --success:        #3D8F36;
  --success-light:  #EBF5EA;
  --success-dark:   #2D6A28;
  --warning:        #E07C13;
  --warning-light:  #FEF3E7;
  --danger:         #CE2029;
  --danger-light:   #FDEAEA;
  --info:           #006BBD;
  --info-light:     #E5F1FA;
  --purple:         #6A3FA5;
  --purple-light:   #F3EEFF;

  --gradient-primary: linear-gradient(135deg, #1575BF 0%, #0F4B8B 100%);
  --gradient-success: linear-gradient(135deg, #3D8F36 0%, #2D6A28 100%);
  --gradient-warning: linear-gradient(135deg, #E07C13 0%, #B85E0A 100%);
  --gradient-danger:  linear-gradient(135deg, #CE2029 0%, #A01820 100%);
  --gradient-info:    linear-gradient(135deg, #006BBD 0%, #004D8A 100%);
  --gradient-purple:  linear-gradient(135deg, #6A3FA5 0%, #4F2D7E 100%);
  --gradient-teal:    linear-gradient(135deg, #007FAD 0%, #005F82 100%);

  --surface:        #F4F4F4;
  --surface-hover:  #EBEBEB;
  --background:     #FFFFFF;   /* Clean white page */
  --card-bg:        #F4F4F4;   /* Light gray cards on white */
  --border:         #DDE3EC;   /* Oracle border color */

  --text-primary:   #1C2B3A;
  --text-secondary: #5A6A7A;
  --text-muted:     #8A9BAB;

  --shadow-xs: 0 1px 2px rgba(20,40,60,0.06);
  --shadow-sm: 0 1px 3px rgba(20,40,60,0.09), 0 1px 2px rgba(20,40,60,0.05);
  --shadow-md: 0 4px 8px rgba(20,40,60,0.08), 0 2px 4px rgba(20,40,60,0.04);
  --shadow-lg: 0 10px 25px rgba(20,40,60,0.10), 0 4px 10px rgba(20,40,60,0.06);
  --shadow-xl: 0 20px 50px rgba(20,40,60,0.14);
  --shadow-blue: 0 4px 14px rgba(21,117,191,0.30);
  --shadow-glow: 0 0 0 3px rgba(21,117,191,0.20);

  --rail-width:    64px;
  --panel-width:   264px;
  --topbar-height: 48px;
  --subnav-height: 38px;
  --shell-height:  calc(var(--topbar-height) + var(--subnav-height));
  --content-pad:   24px;      /* used by o-content-inner + of-hero negative margins */
  --radius:        6px;
  --radius-sm:     4px;
  --radius-lg:     10px;
  --radius-xl:     16px;

  --font-ar: 'Cairo', 'Segoe UI', sans-serif;
  --font-en: 'Inter', 'Segoe UI', sans-serif;

  --transition-fast: 130ms cubic-bezier(0.4,0,0.2,1);
  --transition:      200ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 320ms cubic-bezier(0.4,0,0.2,1);

  /* backward compat aliases */
  --steel-500: var(--primary);
  --steel-400: var(--primary-light);
  --steel-300: #7BBDE0;
}

/* ── 2. Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

[lang="en"] body,
[lang="en"] .btn,
[lang="en"] .form-control,
[lang="en"] .form-select,
[lang="en"] input,
[lang="en"] textarea,
[lang="en"] select { font-family: var(--font-en) !important; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ── 3. Layout Shell ───────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* ── 4. Topbar ─────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; inset-inline-start: 0; inset-inline-end: 0;
  height: var(--topbar-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 18px 0 calc(var(--rail-width) + 14px);
  z-index: 200;
  box-shadow: 0 1px 4px rgba(15,23,42,0.06);
  gap: 10px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.topbar-brand-icon {
  width: 30px; height: 30px;
  background: var(--gradient-primary);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.8rem;
  box-shadow: var(--shadow-blue);
}

.topbar-search {
  flex: 1; max-width: 380px;
  position: relative;
}

.topbar-search input {
  width: 100%;
  padding: 7px 13px 7px 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--gray-50);
  font-size: 0.82rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  font-family: inherit;
}

[dir="rtl"] .topbar-search input { padding: 7px 34px 7px 13px; }

.topbar-search input:focus {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.topbar-search-icon {
  position: absolute;
  inset-inline-start: 11px;
  top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.78rem;
  pointer-events: none;
}

.topbar-actions {
  display: flex; align-items: center;
  gap: 3px; margin-inline-start: auto;
}

.topbar-btn {
  width: 34px; height: 34px;
  border: none; background: transparent;
  color: var(--gray-500);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition-fast);
  font-size: 0.88rem;
  position: relative; text-decoration: none;
}

.topbar-btn:hover { background: var(--gray-100); color: var(--primary); }

.topbar-notif-dot {
  position: absolute; top: 6px; inset-inline-end: 6px;
  width: 7px; height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 1.5px solid var(--surface);
}

.topbar-divider { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }

.topbar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: 7px;
  cursor: pointer; transition: var(--transition-fast);
  text-decoration: none; color: inherit;
}

.topbar-user:hover { background: var(--gray-100); }

.topbar-avatar {
  width: 30px; height: 30px;
  background: var(--gradient-primary);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.72rem; font-weight: 800;
  flex-shrink: 0;
}

.topbar-user-name { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.topbar-user-role { font-size: 0.68rem; color: var(--text-secondary); line-height: 1.2; }

.lang-toggle {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.72rem; font-weight: 700;
  cursor: pointer; transition: var(--transition-fast);
  letter-spacing: 0.06em; font-family: inherit;
}

.lang-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

/* ── 5. Sidebar Rail ───────────────────────────────────────── */
.sidebar-rail {
  position: fixed;
  top: 0; inset-inline-start: 0;
  width: var(--rail-width);
  height: 100vh;
  background: var(--navy-900);
  display: flex; flex-direction: column; align-items: center;
  z-index: 300;
  border-inline-end: 1px solid rgba(255,255,255,0.04);
}

.rail-logo {
  width: var(--rail-width);
  height: var(--topbar-height);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rail-logo-icon {
  width: 34px; height: 34px;
  background: var(--gradient-primary);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.85rem; font-weight: 800;
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}

.rail-nav {
  flex: 1; width: 100%;
  padding: 10px 0;
  overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 1px;
}

.rail-nav::-webkit-scrollbar { width: 0; }

.rail-item {
  position: relative;
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; padding: 9px 4px;
  cursor: pointer; border: none;
  background: transparent;
  color: rgba(255,255,255,0.38);
  transition: var(--transition-fast);
  text-decoration: none;
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.02em;
}

.rail-item:hover {
  color: rgba(255,255,255,0.80);
  background: rgba(255,255,255,0.05);
}

.rail-item.active {
  color: #FFFFFF;
  background: rgba(37,99,235,0.20);
}

.rail-item.active::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 8px; bottom: 8px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

[dir="rtl"] .rail-item.active::before {
  inset-inline-start: auto;
  inset-inline-end: 0;
  border-radius: 3px 0 0 3px;
}

.rail-item-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.rail-item:hover .rail-item-icon { background: rgba(255,255,255,0.07); }
.rail-item.active .rail-item-icon { background: rgba(37,99,235,0.30); color: #60A5FA; }

.rail-item-label { font-size: 0.58rem; text-align: center; line-height: 1.2; }

.rail-bottom {
  width: 100%; padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 1px;
}

/* ── 6. Sidebar Panel ──────────────────────────────────────── */
.sidebar-panel {
  position: fixed;
  top: 0;
  inset-inline-start: var(--rail-width);
  width: var(--panel-width);
  height: 100vh;
  background: var(--navy-800);
  z-index: 250;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
  transform: translateX(-110%);
  opacity: 0;
  border-inline-end: 1px solid rgba(255,255,255,0.05);
}

[dir="rtl"] .sidebar-panel { transform: translateX(110%); }

.sidebar-panel.is-open { transform: translateX(0); opacity: 1; }

.panel-header {
  height: var(--topbar-height);
  display: flex; align-items: center;
  padding: 0 18px; gap: 11px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.panel-module-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; flex-shrink: 0;
}

.panel-module-name {
  font-size: 0.82rem; font-weight: 700;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.01em;
}

.panel-nav { flex: 1; overflow-y: auto; padding: 10px 7px; }

.panel-section-label {
  font-size: 0.58rem; font-weight: 700;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase; letter-spacing: 0.09em;
  padding: 8px 10px 3px; margin-top: 3px;
}

.panel-link {
  display: flex; align-items: center;
  gap: 9px; padding: 8px 11px;
  border-radius: 7px;
  color: rgba(255,255,255,0.50);
  text-decoration: none;
  font-size: 0.80rem; font-weight: 500;
  transition: var(--transition-fast);
  margin-bottom: 1px;
}

.panel-link:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.88); }
.panel-link.active { background: rgba(37,99,235,0.18); color: #60A5FA; }

.panel-link i { width: 17px; text-align: center; font-size: 0.82rem; opacity: 0.75; }

.panel-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 240;
  backdrop-filter: blur(2px);
}

.panel-backdrop.is-visible { display: block; }

/* ── 7. Page Content ───────────────────────────────────────── */
.page-content {
  flex: 1;
  margin-top: var(--topbar-height);
  margin-inline-start: var(--rail-width);
  min-height: calc(100vh - var(--topbar-height));
  display: flex; flex-direction: column;
}

.content-inner {
  flex: 1;
  padding: 26px 26px 22px;
}

.app-footer {
  padding: 13px 26px;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ── 8. Page Header ────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}

.page-header-title {
  display: flex; align-items: center; gap: 13px;
}

.page-title-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.page-header-title h2 {
  font-size: 1.15rem; font-weight: 800;
  color: var(--text-primary);
  margin: 0; letter-spacing: -0.02em;
}

.page-header-sub {
  font-size: 0.77rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.page-header-actions {
  display: flex; align-items: center;
  gap: 7px; flex-wrap: wrap;
}

/* ── 9. Cards ──────────────────────────────────────────────── */
.card {
  background: var(--card-bg, var(--surface));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  gap: 10px;
}

.card-header-title {
  display: flex; align-items: center;
  gap: 9px;
  font-size: 0.88rem; font-weight: 700;
  color: var(--text-primary);
}

.card-header-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.75rem; flex-shrink: 0;
}

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

/* ── 10. Stat Cards ────────────────────────────────────────── */
.stat-card {
  background: var(--card-bg, var(--surface));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: visible;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

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

.stat-card-accent {
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 4px; height: 100%;
}

.accent-blue   { background: var(--gradient-primary); }
.accent-green  { background: var(--gradient-success); }
.accent-red    { background: var(--gradient-danger); }
.accent-yellow { background: var(--gradient-warning); }
.accent-orange { background: linear-gradient(135deg, #D97706, #B45309); }
.accent-purple { background: var(--gradient-purple); }
.accent-teal   { background: var(--gradient-teal); }
.accent-info   { background: var(--gradient-info); }
.accent-cyan   { background: linear-gradient(135deg, #0891B2, #0E7490); }

.stat-card-body {
  padding: 16px 18px 16px 24px;
  display: flex; align-items: center; gap: 14px;
}

[dir="rtl"] .stat-card-body { padding: 16px 24px 16px 18px; }

.stat-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; flex-shrink: 0;
  transition: var(--transition);
}

.icon-blue   { background: var(--primary-100); color: var(--primary); }
.icon-green  { background: var(--success-light); color: var(--success); }
.icon-red    { background: var(--danger-light); color: var(--danger); }
.icon-yellow { background: var(--warning-light); color: var(--warning); }
.icon-orange { background: #FEF3E7; color: #D97706; }
.icon-purple { background: var(--purple-light); color: var(--purple); }
.icon-info   { background: var(--info-light); color: var(--info); }
.icon-teal   { background: #F0FDFA; color: #0F766E; }
.icon-cyan   { background: #ECFEFF; color: #0891B2; }

.stat-value {
  font-size: 1.5rem; font-weight: 800;
  color: var(--text-primary); line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.75rem; color: var(--text-secondary);
  margin-top: 4px; font-weight: 500;
}

/* ── 11. Tables ────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.83rem;
}

.table thead th {
  padding: 10px 15px;
  font-size: 0.70rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table tbody td {
  padding: 11px 15px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-primary);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--transition-fast); }
.table tbody tr:hover td { background: var(--primary-50); }

/* ── 12. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center;
  gap: 6px; padding: 8px 16px;
  font-size: 0.83rem; font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer; transition: var(--transition-fast);
  text-decoration: none; white-space: nowrap;
  line-height: 1.4; letter-spacing: 0.01em;
  font-family: inherit;
}

.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-sm  { padding: 5px 11px; font-size: 0.76rem; border-radius: 5px; }
.btn-lg  { padding: 11px 22px; font-size: 0.94rem; }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff; border-color: transparent;
  box-shadow: 0 2px 6px rgba(37,99,235,0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8, #1E3A8A);
  box-shadow: var(--shadow-blue); transform: translateY(-1px); color: #fff;
}

.btn-success {
  background: var(--gradient-success); color: #fff;
  box-shadow: 0 2px 6px rgba(5,150,105,0.22);
}

.btn-success:hover { box-shadow: 0 4px 12px rgba(5,150,105,0.35); color: #fff; transform: translateY(-1px); }

.btn-danger {
  background: var(--gradient-danger); color: #fff;
  box-shadow: 0 2px 6px rgba(220,38,38,0.18);
}

.btn-danger:hover { box-shadow: 0 4px 12px rgba(220,38,38,0.32); color: #fff; transform: translateY(-1px); }

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

.btn-outline-primary:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }

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

.btn-outline-secondary:hover { background: var(--gray-50); border-color: var(--gray-300); color: var(--text-primary); }

.btn-outline-success { color: var(--success); border-color: var(--success); background: transparent; }
.btn-outline-success:hover { background: var(--success); color: #fff; transform: translateY(-1px); }

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

/* ── 13. Badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.02em; line-height: 1.4;
}

.badge-primary   { background: var(--primary-100); color: var(--primary-dark); }
.badge-success   { background: var(--success-light); color: var(--success-dark); }
.badge-danger    { background: var(--danger-light); color: var(--danger); }
.badge-warning   { background: var(--warning-light); color: var(--warning); }
.badge-info      { background: var(--info-light); color: var(--info); }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); }
.badge-purple    { background: var(--purple-light); color: var(--purple); }
.badge-teal      { background: #F0FDFA; color: #0F766E; }

/* ── 14. Forms ─────────────────────────────────────────────── */
.form-label {
  font-size: 0.80rem; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px; display: block;
}

.form-control, .form-select {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.85rem; font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled { background: var(--gray-50); color: var(--text-secondary); }
textarea.form-control { resize: vertical; min-height: 88px; }

.form-section-header {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-secondary);
  padding-bottom: 8px; margin-bottom: 14px;
  border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}

/* ── 15. Filter Bar ────────────────────────────────────────── */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 15px;
  display: flex; gap: 9px; align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
}

.filter-bar .form-control,
.filter-bar .form-select { height: 34px; padding: 5px 11px; font-size: 0.80rem; }

/* ── 16. Table Action Buttons ──────────────────────────────── */
.table-actions {
  display: flex; align-items: center;
  gap: 4px; justify-content: flex-end;
}

.btn-action {
  width: 28px; height: 28px;
  border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}

.btn-action-view   { background: var(--primary-50); color: var(--primary); }
.btn-action-edit   { background: var(--warning-light); color: var(--warning); }
.btn-action-delete { background: var(--danger-light); color: var(--danger); }
.btn-action:hover  { opacity: 0.82; transform: scale(1.08); }

/* ── 17. Alerts ────────────────────────────────────────────── */
.alert {
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  border: 1px solid transparent;
  display: flex; align-items: flex-start; gap: 9px;
}

.alert-success { background: var(--success-light); color: #065F46; border-color: #A7F3D0; }
.alert-danger  { background: var(--danger-light);  color: #991B1B; border-color: #FECACA; }
.alert-warning { background: var(--warning-light); color: #92400E; border-color: #FDE68A; }
.alert-info    { background: var(--info-light);    color: #164E63; border-color: #A5F3FC; }

.alert-dismissible .btn-close { margin-inline-start: auto; }

/* ── 18. Dropdown ──────────────────────────────────────────── */
.dropdown-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 5px;
  font-size: 0.82rem;
  min-width: 190px;
}

.dropdown-item {
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition-fast);
  font-size: 0.81rem; cursor: pointer;
}

.dropdown-item:hover { background: var(--primary-50); color: var(--primary); }
.dropdown-divider { border-color: var(--border); margin: 4px 0; }

/* ── 19. Empty State ───────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 56px 20px; text-align: center;
}

.empty-state-icon {
  width: 60px; height: 60px;
  background: var(--gray-100); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.5rem; margin-bottom: 14px;
}

/* ── 20. Detail Info Grid ──────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 14px; }

.info-label {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 3px;
}

.info-value { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }

/* ── 21. Section Divider ───────────────────────────────────── */
.section-divider { height: 1px; background: var(--border); margin: 18px 0; }

/* ── 22. Animations ────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(18px,-18px) scale(1.05); }
  66%       { transform: translate(-14px,14px) scale(0.97); }
}

.fade-in   { animation: fadeIn 0.28s ease both; }
.fade-in-1 { animation-delay: 0.06s; }
.fade-in-2 { animation-delay: 0.12s; }
.fade-in-3 { animation-delay: 0.18s; }
.fade-in-4 { animation-delay: 0.24s; }

/* ── 23. Login Page ────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #050C18;
  position: relative; overflow: hidden; padding: 20px;
}

.login-bg { position: absolute; inset: 0; z-index: 0; }

.login-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.30;
  animation: floatOrb 10s ease-in-out infinite;
}

.login-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #2563EB, transparent);
  top: -180px; left: -120px; animation-duration: 9s;
}

.login-orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #7C3AED, transparent);
  bottom: -120px; right: -90px;
  animation-duration: 13s; animation-delay: -4s;
}

.login-orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #0891B2, transparent);
  top: 45%; left: 58%;
  animation-duration: 15s; animation-delay: -7s;
}

.login-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 52px 52px;
}

.login-card {
  position: relative; z-index: 10;
  width: 100%; max-width: 416px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-xl);
  padding: 42px 38px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.07);
}

.login-logo-wrap {
  display: flex; flex-direction: column;
  align-items: center; margin-bottom: 30px;
}

.login-logo-icon {
  width: 54px; height: 54px;
  background: var(--gradient-primary);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: #fff; margin-bottom: 13px;
  box-shadow: 0 8px 24px rgba(37,99,235,0.45);
}

.login-brand-name {
  font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -0.02em;
}

.login-brand-sub {
  font-size: 0.75rem; color: rgba(255,255,255,0.40);
  margin-top: 4px; text-align: center;
}

.login-form-label {
  display: block;
  font-size: 0.76rem; font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-bottom: 5px; letter-spacing: 0.03em;
}

.login-input-wrap { position: relative; }

.login-input-wrap i {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.28);
  font-size: 0.82rem; pointer-events: none;
}

.login-input {
  width: 100%; padding: 11px 13px 11px 38px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 8px; color: #fff;
  font-size: 0.88rem; font-family: inherit;
  transition: var(--transition-fast); outline: none;
}

[dir="rtl"] .login-input { padding: 11px 38px 11px 13px; }

.login-input::placeholder { color: rgba(255,255,255,0.22); }

.login-input:focus {
  background: rgba(255,255,255,0.10);
  border-color: rgba(37,99,235,0.55);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
}

.login-btn {
  width: 100%; padding: 12px;
  background: var(--gradient-primary); color: #fff;
  border: none; border-radius: 8px;
  font-size: 0.90rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37,99,235,0.40);
  letter-spacing: 0.02em; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}

.login-btn:hover {
  box-shadow: 0 6px 24px rgba(37,99,235,0.55);
  transform: translateY(-1px);
}

.login-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 22px 0; }

.login-hint {
  font-size: 0.70rem; color: rgba(255,255,255,0.28);
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}

.login-error {
  background: rgba(220,38,38,0.14);
  border: 1px solid rgba(220,38,38,0.28);
  border-radius: 6px; padding: 9px 13px;
  font-size: 0.78rem; color: #FCA5A5; margin-bottom: 14px;
}

.login-lang-toggle {
  position: absolute; top: 18px; inset-inline-end: 18px; z-index: 20;
  padding: 5px 13px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 20px; color: rgba(255,255,255,0.65);
  font-size: 0.72rem; font-weight: 700;
  cursor: pointer; transition: var(--transition-fast);
  letter-spacing: 0.05em; font-family: inherit;
}

.login-lang-toggle:hover { background: rgba(255,255,255,0.13); color: #fff; }

/* ── 24. Quick Actions (Dashboard) ────────────────────────── */
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px,1fr));
  gap: 10px;
}

.quick-action-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 7px;
  padding: 14px 8px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.76rem; font-weight: 600;
  transition: var(--transition); text-align: center;
}

.quick-action-item:hover {
  background: var(--primary-50);
  border-color: var(--primary-100); color: var(--primary);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}

.quick-action-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}

/* ── 25. Chart ─────────────────────────────────────────────── */
.chart-container { position: relative; width: 100%; }

/* ── 26. Utilities ─────────────────────────────────────────── */
.text-primary   { color: var(--primary)        !important; }
.text-success   { color: var(--success)        !important; }
.text-danger    { color: var(--danger)         !important; }
.text-warning   { color: var(--warning)        !important; }
.text-muted     { color: var(--text-muted)     !important; }
.text-secondary { color: var(--text-secondary) !important; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5;  }

code {
  background: var(--gray-100); color: var(--primary);
  padding: 2px 5px; border-radius: 4px;
  font-size: 0.80em; font-family: 'Consolas', monospace;
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}

.status-dot.active    { background: var(--success); box-shadow: 0 0 0 3px var(--success-light); }
.status-dot.inactive  { background: var(--gray-400); }
.status-dot.warning   { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-light); }
.status-dot.maintenance { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-light); }

/* ── 27. Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-inner { padding: 18px 14px; }
  .topbar { padding: 0 12px 0 calc(var(--rail-width) + 10px); }
  .topbar-search { max-width: 240px; }
}

@media (max-width: 768px) {
  .topbar-search { display: none; }
  .topbar-user-name, .topbar-user-role { display: none; }
  .content-inner { padding: 14px 10px; }
  .stat-value { font-size: 1.25rem; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .login-card { padding: 30px 22px; }
}

@media (max-width: 480px) {
  .rail-item-label { display: none; }
}

/* ── 28. Print ─────────────────────────────────────────────── */
@media print {
  .sidebar-rail, .sidebar-panel, .topbar, .app-footer { display: none !important; }
  .page-content { margin: 0 !important; }
  .card { box-shadow: none !important; }
}

/* ── 29. Topbar RTL fix + base.html class aliases ───────────── */

/* Topbar logical padding (RTL-safe) */
.topbar {
  padding-inline-start: calc(var(--rail-width) + 14px);
  padding-inline-end: 18px;
  padding-top: 0;
  padding-bottom: 0;
}

/* Topbar layout sections */
.topbar-start {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.topbar-end {
  display: flex; align-items: center; gap: 5px; margin-inline-start: auto;
}
.company-name {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 0.95rem; color: var(--gray-900);
}
.topbar-divider { width: 1px; height: 22px; background: var(--border); margin: 0 2px; }

/* Topbar buttons */
.topbar-toggle {
  width: 34px; height: 34px; border: none; background: transparent;
  color: var(--gray-500); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition-fast); font-size: 0.88rem;
}
.topbar-toggle:hover { background: var(--gray-100); color: var(--primary); }

.lang-btn {
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text-secondary);
  font-size: 0.72rem; font-weight: 700; cursor: pointer;
  transition: var(--transition-fast); letter-spacing: 0.06em; font-family: inherit;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

.icon-btn {
  width: 34px; height: 34px; border: none; background: transparent;
  color: var(--gray-500); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition-fast); font-size: 0.88rem;
}
.icon-btn:hover { background: var(--gray-100); color: var(--primary); }

.user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: 7px; cursor: pointer;
  border: none; background: transparent; color: inherit;
  transition: var(--transition-fast); font-family: inherit;
}
.user-btn:hover { background: var(--gray-100); }
.user-avatar {
  width: 30px; height: 30px; background: var(--gradient-primary); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.72rem; font-weight: 800; flex-shrink: 0;
}

/* Rail icon/label aliases */
.rail-icon {
  width: 38px; height: 38px; display: flex; align-items: center;
  justify-content: center; border-radius: 9px; font-size: 1rem;
  transition: var(--transition-fast);
}
.rail-label { font-size: 0.58rem; text-align: center; line-height: 1.2; }
.rail-item:hover .rail-icon { background: rgba(255,255,255,0.07); }
.rail-item.active .rail-icon { background: rgba(37,99,235,0.30); color: #60A5FA; }

/* Rail link (dashboard anchor) */
.rail-link {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 9px 4px; cursor: pointer; background: transparent;
  color: rgba(255,255,255,0.38); transition: var(--transition-fast);
  text-decoration: none; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.02em;
}
.rail-link:hover { color: rgba(255,255,255,0.80); background: rgba(255,255,255,0.05); }
.rail-link.active { color: #FFFFFF; background: rgba(37,99,235,0.20); }
.rail-link.active::before {
  content: ''; position: absolute; inset-inline-start: 0;
  top: 8px; bottom: 8px; width: 3px;
  background: var(--primary); border-radius: 0 3px 3px 0;
}
[dir="rtl"] .rail-link.active::before {
  inset-inline-start: auto; inset-inline-end: 0; border-radius: 3px 0 0 3px;
}
.rail-link:hover .rail-icon { background: rgba(255,255,255,0.07); }
.rail-link.active .rail-icon { background: rgba(37,99,235,0.30); color: #60A5FA; }
@media (max-width: 480px) { .rail-label { display: none; } }

/* Rail separator */
.rail-sep { height: 1px; background: rgba(255,255,255,0.08); margin: 6px 8px; }

/* ── 30. Sidebar panel section visibility ───────────────────── */
.panel-section { display: none; flex-direction: column; height: 100%; overflow: hidden; }
.panel-section.active { display: flex; }

/* Panel title alias */
.panel-title {
  font-size: 0.82rem; font-weight: 700;
  color: rgba(255,255,255,0.88); letter-spacing: -0.01em;
}

/* Panel nav — ul.panel-nav li a (base.html uses ul, not divs) */
.panel-nav { list-style: none; margin: 0; }
.panel-nav li { list-style: none; }
.panel-nav li a {
  display: flex; align-items: center; gap: 9px; padding: 8px 11px;
  border-radius: 7px; color: rgba(255,255,255,0.50); text-decoration: none;
  font-size: 0.80rem; font-weight: 500; transition: var(--transition-fast);
  margin-bottom: 1px;
}
.panel-nav li a:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.88); }
.panel-nav li a.active { background: rgba(37,99,235,0.18); color: #60A5FA; }
.panel-nav li a i { width: 17px; text-align: center; font-size: 0.82rem; opacity: 0.75; }

/* ── 31. Page content shift when panel open ─────────────────── */
.page-content { transition: margin-inline-start var(--transition-slow); }
.page-content.panel-open {
  margin-inline-start: calc(var(--rail-width) + var(--panel-width));
}

/* ── 32. Stat card layout fix ───────────────────────────────── */
.stat-card { display: flex; align-items: center; gap: 14px; }
.stat-card .stat-icon-wrap {
  margin-inline-start: 20px; flex-shrink: 0;
}
.stat-card-body { flex: 1; display: flex; align-items: center; gap: 14px; padding: 16px 18px 16px 24px; }
[dir="rtl"] .stat-card-body { padding: 16px 24px 16px 18px; }

/* Stat trend */
.stat-trend {
  font-size: 0.72rem; margin-top: 5px;
  display: flex; align-items: center; gap: 4px; color: var(--text-secondary);
}
.stat-trend.trend-up, .stat-trend.up { color: var(--success); }
.stat-trend.trend-down { color: var(--warning); }

/* ── 33. Quick link buttons (dashboard) ─────────────────────── */
.quick-link-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 12px 8px;
  background: var(--gray-50); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: var(--text-secondary);
  font-size: 0.76rem; font-weight: 600; transition: var(--transition); text-align: center;
}
.quick-link-btn:hover {
  background: var(--primary-50); border-color: var(--primary); color: var(--primary);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.quick-link-btn i { font-size: 1.15rem; }

/* ── 34. Chart containers with height ───────────────────────── */
.chart-container    { position: relative; width: 100%; height: 260px; }
.chart-container-sm { position: relative; width: 100%; height: 200px; }

/* ═══════════════════════════════════════════════════════════════
   35. DARK MODE — Oracle Fusion Redwood
   Page: #0E2D3D dark teal-navy  |  Cards: #FFFFFF white
   Card interiors stay identical to light mode (dark text on white).
═══════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  /* Page background — Oracle teal-navy */
  --background:    #0E2D3D;

  /* Surfaces — white cards float on dark background */
  --surface:       #FFFFFF;
  --surface-hover: #F7F9FC;
  --card-bg:       #FFFFFF;

  /* Borders — subtle on white cards */
  --border:        rgba(0,0,0,0.10);

  /* Stronger shadows — white cards pop off dark background */
  --shadow-xs: 0 1px 4px rgba(0,0,0,0.20);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.28);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.32);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.38);

  /* All other tokens stay at light-mode values.
     Cards are white — same interior rendering as light mode. */
}

/* ── Elements that sit directly on the dark page background ── */

/* Breadcrumb trail */
[data-theme="dark"] .o-breadcrumb {
  border-bottom-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
}
[data-theme="dark"] .o-breadcrumb a { color: #60A5FA; }
[data-theme="dark"] .o-breadcrumb a:hover { color: #93C5FD; text-decoration: underline; }
[data-theme="dark"] .o-breadcrumb-current { color: rgba(255,255,255,0.82); }
[data-theme="dark"] .o-breadcrumb-sep { opacity: 0.30; }

/* Page header (outside cards, on dark background) */
[data-theme="dark"] .page-header-title h2 { color: #FFFFFF; }
[data-theme="dark"] .page-header-sub { color: rgba(255,255,255,0.60); }

/* Footer */
[data-theme="dark"] .app-footer {
  background: rgba(255,255,255,0.04);
  border-top-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.38);
}

/* Flash alerts (they float on the dark background, keep them readable) */
[data-theme="dark"] .alert-success { background: #ECFDF5; color: #065F46; border-color: #6EE7B7; }
[data-theme="dark"] .alert-danger  { background: #FFF5F5; color: #9B1C1C; border-color: #FECACA; }
[data-theme="dark"] .alert-warning { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
[data-theme="dark"] .alert-info    { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }

/* Section divider — visible on dark page */
[data-theme="dark"] .section-divider { background: rgba(255,255,255,0.10); }

/* ═══════════════════════════════════════════════════════════════
   36. ORACLE FUSION CLOUD UI — EXACT REPLICA
   Colors reference: Oracle Fusion Cloud / Alta UI / Redwood 2024
═══════════════════════════════════════════════════════════════ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOPBAR — Global Header
   Oracle header: #1C2B3A | Separator: rgba(255,255,255,0.12)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.o-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-height);          /* 48px */
  background: #14141f;
  display: flex;
  align-items: stretch;
  z-index: 1000;
  overflow: visible;                     /* MUST be visible — dropdowns extend below */
  border-bottom: 1px solid #0F1E2D;
  box-shadow: 0 2px 8px rgba(0,0,0,0.40), 0 1px 2px rgba(0,0,0,0.20);
}

/* ─── Left block: Navigator + Brand ──────────────────────── */
.o-topbar-start {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 4px 0 4px;
  border-inline-end: 1px solid rgba(255,255,255,0.10);
  gap: 2px;
}

/* Oracle Navigator hamburger button */
.o-nav-trigger {
  width: 38px; height: 38px;
  background: transparent; border: none;
  border-radius: 4px;
  color: rgba(255,255,255,0.78);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem;
  transition: background 120ms;
  flex-shrink: 0;
}
.o-nav-trigger:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
}

/* Oracle Brand / System Name */
.o-brand {
  display: flex; align-items: center; gap: 7px;
  padding: 0 14px 0 8px;
  font-size: 0.88rem; font-weight: 700;
  color: #fff; letter-spacing: 0.01em;
  white-space: nowrap; text-decoration: none;
  border-inline-end: 1px solid rgba(255,255,255,0.10);
}
.o-brand i {
  font-size: 1rem;
  color: #4A90D9;               /* Oracle blue icon */
}

/* ─── Center: horizontal module tabs ─────────────────────── */
.o-module-nav {
  display: flex;
  align-items: stretch;
  flex: 1;
  height: 100%;
  overflow: visible;            /* Never clip — dropdowns must show */
  padding: 0 4px;
}

/* Plain tab — Dashboard (no dropdown) */
.o-tab-plain {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 14px;
  height: 100%;
  color: rgba(255,255,255,0.68);
  font-size: 0.80rem; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  position: relative;
  transition: color 120ms, background 120ms;
  border: none;
  /* Oracle uses bottom highlight bar for active */
}
.o-tab-plain::after {
  content: '';
  position: absolute; bottom: 0;
  left: 0; right: 0; height: 3px;
  background: transparent;
  transition: background 120ms;
}
.o-tab-plain i { font-size: 0.75rem; opacity: 0.80; }
.o-tab-plain:hover { color: #fff; background: rgba(255,255,255,0.07); }
.o-tab-plain.active { color: #fff; }
.o-tab-plain.active::after { background: #4A90D9; }

/* Tab group (has dropdown) */
.o-tab-group {
  position: relative;
  display: flex; align-items: stretch;
  height: 100%;
}

/* Module tab button */
.o-tab {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 14px;
  height: 100%;
  color: rgba(255,255,255,0.68);
  font-size: 0.80rem; font-weight: 500;
  background: transparent; border: none; cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 120ms, background 120ms;
  font-family: inherit;
}
.o-tab::after {
  content: '';
  position: absolute; bottom: 0;
  left: 0; right: 0; height: 3px;
  background: transparent;
  transition: background 120ms;
}
.o-tab i:not(.o-tab-caret) { font-size: 0.75rem; opacity: 0.80; }
.o-tab:hover { color: #fff; background: rgba(255,255,255,0.07); }
.o-tab.active::after,
.o-tab-group.open > .o-tab::after  { background: #4A90D9; }
.o-tab.active,
.o-tab-group.open > .o-tab { color: #fff; background: rgba(74,144,217,0.12); }

/* Dropdown caret */
.o-tab-caret {
  font-size: 0.48rem;
  margin-inline-start: 3px;
  opacity: 0.55;
  transition: transform 150ms;
}
.o-tab-group.open > .o-tab .o-tab-caret { transform: rotate(180deg); }

/* ─── Dropdown Menu — Oracle Fusion White Panel ───────────── */
.o-dropdown {
  display: none;
  position: absolute;
  top: 100%;                  /* flush to bottom of topbar */
  inset-inline-start: 0;
  min-width: 230px;

  /* Oracle Fusion: white panel with dark-blue top stripe */
  background: #FFFFFF;
  border: 1px solid #C8D5E3;
  border-top: 3px solid #1575BF;
  border-radius: 0 0 6px 6px;

  box-shadow: 0 6px 20px rgba(20,40,70,0.18), 0 2px 6px rgba(20,40,70,0.10);
  padding: 4px;
  z-index: 9999;

  animation: ofDropIn 0.13s ease both;
}
@keyframes ofDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.o-tab-group.open .o-dropdown { display: block; }

/* Dropdown items */
.o-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 4px;
  color: #2B3F58;
  font-size: 0.80rem; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: background 100ms, color 100ms;
}
.o-dropdown-item i {
  width: 16px; text-align: center;
  font-size: 0.78rem;
  color: #1575BF; flex-shrink: 0;
}
.o-dropdown-item:hover {
  background: #EAF3FB;
  color: #0F4B8B;
}
.o-dropdown-item:hover i { color: #0F4B8B; }
.o-dropdown-item.active {
  background: #C9E4F5;
  color: #0F4B8B;
  font-weight: 600;
}
.o-dropdown-item.active i { color: #0F4B8B; }

/* ─── Right: Topbar Actions ───────────────────────────────── */
.o-topbar-actions {
  display: flex; align-items: center;
  flex-shrink: 0;
  padding: 0 8px;
  gap: 2px;
  border-inline-start: 1px solid rgba(255,255,255,0.10);
}

/* Icon-only action buttons (theme, bell, etc.) */
.o-action-btn {
  width: 36px; height: 36px;
  background: transparent; border: none;
  border-radius: 4px;
  color: rgba(255,255,255,0.70);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.90rem;
  transition: background 120ms, color 120ms;
  position: relative;
}
.o-action-btn:hover { background: rgba(255,255,255,0.10); color: #fff; }

/* Language toggle pill */
.o-lang-btn {
  height: 26px; padding: 0 10px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 13px;
  color: rgba(255,255,255,0.78);
  font-size: 0.68rem; font-weight: 700;
  cursor: pointer; letter-spacing: 0.06em;
  transition: background 120ms, color 120ms;
  font-family: inherit; line-height: 1;
}
.o-lang-btn:hover { background: rgba(255,255,255,0.17); color: #fff; }

/* User button */
.o-user-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 8px 4px 6px;
  background: transparent; border: none;
  border-radius: 4px; cursor: pointer;
  transition: background 120ms;
  font-family: inherit;
}
.o-user-btn:hover { background: rgba(255,255,255,0.10); }

/* Oracle-style user avatar — circular, initials */
.o-user-avatar {
  width: 30px; height: 30px;
  background: #1575BF;
  border: 2px solid rgba(255,255,255,0.30);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.70rem; font-weight: 700;
  flex-shrink: 0; letter-spacing: 0.02em;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE CONTENT — area below topbar + subnav
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.o-content {
  margin-top: var(--shell-height);              /* 48 + 38 = 86px */
  min-height: calc(100vh - var(--shell-height));
  display: flex; flex-direction: column;
  background: var(--background);
}
.o-content-inner {
  flex: 1;
  padding: var(--content-pad);                  /* 24px — used by hero negative margins */
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVIGATOR OVERLAY — Oracle Fusion full-screen grid
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.o-navigator-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 9000;
  background: rgba(10,18,28,0.60);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.o-navigator-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
[dir="rtl"] .o-navigator-overlay.open { justify-content: flex-end; }

/* Slide-in panel */
.o-navigator-panel {
  width: 500px; max-width: 95vw;
  min-height: 100vh;
  background: #162035;            /* Oracle dark panel */
  display: flex; flex-direction: column;
  box-shadow: 6px 0 32px rgba(0,0,0,0.50);
  animation: ofNavIn 0.20s cubic-bezier(0.4,0,0.2,1) both;
}
[dir="rtl"] .o-navigator-panel {
  box-shadow: -6px 0 32px rgba(0,0,0,0.50);
  animation-name: ofNavInRtl;
}

@keyframes ofNavIn {
  from { transform: translateX(-100%); opacity: 0.5; }
  to   { transform: translateX(0);     opacity: 1;   }
}
@keyframes ofNavInRtl {
  from { transform: translateX(100%);  opacity: 0.5; }
  to   { transform: translateX(0);     opacity: 1;   }
}

/* Panel header */
.o-navigator-header {
  display: flex; align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
  padding: 0 18px;
  background: #14141f;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.o-navigator-header span {
  font-size: 0.75rem; font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.10em;
}

/* Close button */
.o-nav-close {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.07); border: none;
  border-radius: 4px; color: rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.80rem;
  transition: background 120ms;
}
.o-nav-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Module tiles grid */
.o-navigator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px; padding: 18px;
  align-content: start;
  overflow-y: auto; flex: 1;
}

/* Single module tile */
.o-nav-tile {
  display: flex; flex-direction: column;
  align-items: center; gap: 9px;
  padding: 18px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: rgba(255,255,255,0.62);
  font-size: 0.77rem; font-weight: 600;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
  transition: background 150ms, border-color 150ms, transform 150ms, color 150ms;
}
.o-nav-tile:hover {
  background: rgba(74,144,217,0.14);
  border-color: rgba(74,144,217,0.35);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}

/* Tile icon container */
.o-nav-tile-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: transform 150ms;
}
.o-nav-tile:hover .o-nav-tile-icon { transform: scale(1.08); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DARK MODE overrides for Oracle elements
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Topbar — same dark style in both modes */
[data-theme="dark"] .o-topbar { background: #14141f; border-bottom-color: rgba(255,255,255,0.08); }

/* Dropdown — white panel (same as light mode) */
[data-theme="dark"] .o-dropdown { background: #FFFFFF; border-color: #C8D5E3; border-top-color: #1575BF; }
[data-theme="dark"] .o-dropdown-item { color: #2B3F58; }
[data-theme="dark"] .o-dropdown-item i { color: #1575BF; }
[data-theme="dark"] .o-dropdown-item:hover { background: #EAF3FB; color: #0F4B8B; }
[data-theme="dark"] .o-dropdown-item.active { background: #C9E4F5; color: #0F4B8B; }

/* Navigator panel — stays dark */
[data-theme="dark"] .o-navigator-panel { background: #0D1B2A; }
[data-theme="dark"] .o-navigator-header { background: #14141f; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1100px) {
  .o-tab, .o-tab-plain { padding: 0 10px; font-size: 0.76rem; }
  :root { --content-pad: 18px; }
  .o-content-inner { padding: 18px 16px; }
}
@media (max-width: 768px) {
  .o-sub-nav  { display: none; }
  .o-content  { margin-top: var(--topbar-height); }
  :root { --content-pad: 14px; }
  .o-content-inner { padding: 14px 10px; }
  .o-navigator-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .o-navigator-panel { width: 100vw; }
  .o-navigator-grid  { gap: 8px; padding: 12px; }
  .o-brand span { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   37. ORACLE SUB-NAVIGATION BAR (module tabs — below topbar)
═══════════════════════════════════════════════════════════════ */
.o-sub-nav {
  position: fixed;
  top: var(--topbar-height);
  left: 0; right: 0;
  height: var(--subnav-height);
  background: #FFFFFF;
  border-bottom: 1px solid #D8E2EC;
  box-shadow: 0 2px 6px rgba(20,40,70,0.07);
  display: flex;
  align-items: stretch;
  z-index: 950;
  padding: 0 4px;
  overflow: visible;
}

/* o-content margin already set above — no duplicate needed */

/* ─── Plain link tab (no dropdown) ────────────────────────── */
.o-sub-plain {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 15px; height: 100%;
  color: #4A5E70;
  font-size: 0.78rem; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 120ms, background 120ms, border-color 120ms;
  position: relative;
}
.o-sub-plain i { font-size: 0.72rem; opacity: 0.75; }
.o-sub-plain:hover  { color: #1575BF; background: #EAF3FB; }
.o-sub-plain.active { color: #1575BF; border-bottom-color: #1575BF; font-weight: 600; }

/* ─── Group with dropdown ──────────────────────────────────── */
.o-sub-group {
  position: relative;
  display: flex; align-items: stretch;
  height: 100%;
}

.o-sub-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 15px; height: 100%;
  color: #4A5E70;
  font-size: 0.78rem; font-weight: 500;
  background: none; border: none; cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 120ms, background 120ms, border-color 120ms;
  font-family: inherit; position: relative;
}
.o-sub-btn i:not(.o-sub-caret) { font-size: 0.72rem; opacity: 0.75; }
.o-sub-btn:hover { color: #1575BF; background: #EAF3FB; }
.o-sub-btn.active,
.o-sub-group.open .o-sub-btn {
  color: #1575BF;
  border-bottom-color: #1575BF;
  font-weight: 600;
  background: #EAF3FB;
}

.o-sub-caret {
  font-size: 0.46rem; opacity: 0.50;
  margin-inline-start: 3px;
  transition: transform 150ms;
}
.o-sub-group.open .o-sub-caret { transform: rotate(180deg); }

/* ─── Sub-nav dropdown panel ───────────────────────────────── */
.o-sub-drop {
  display: none;
  position: absolute;
  top: 100%; inset-inline-start: 0;
  min-width: 220px;
  background: #FFFFFF;
  border: 1px solid #C8D5E3;
  border-top: 3px solid #1575BF;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 22px rgba(20,40,70,0.15);
  padding: 4px; z-index: 9999;
  animation: ofDropIn 0.13s ease both;
}
.o-sub-group.open .o-sub-drop { display: block; }

.o-sub-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 4px;
  color: #2B3F58; font-size: 0.79rem; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: background 100ms, color 100ms;
}
.o-sub-item i { width: 16px; text-align: center; font-size: 0.77rem; color: #1575BF; flex-shrink: 0; }
.o-sub-item:hover { background: #EAF3FB; color: #0F4B8B; }
.o-sub-item:hover i { color: #0F4B8B; }
.o-sub-item.active { background: #C9E4F5; color: #0F4B8B; font-weight: 600; }

/* ─── Dark mode — sub-nav blends with dark page background ── */
[data-theme="dark"] .o-sub-nav {
  background: #0a1e2c;
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.30);
}
[data-theme="dark"] .o-sub-plain,
[data-theme="dark"] .o-sub-btn { color: rgba(255,255,255,0.60); }
[data-theme="dark"] .o-sub-plain:hover,
[data-theme="dark"] .o-sub-btn:hover { color: #FFFFFF; background: rgba(255,255,255,0.08); }
[data-theme="dark"] .o-sub-plain.active,
[data-theme="dark"] .o-sub-group.open .o-sub-btn,
[data-theme="dark"] .o-sub-btn.active {
  color: #4A90D9; border-bottom-color: #4A90D9;
  background: rgba(74,144,217,0.10);
}
/* Sub-nav dropdown — white panel for readability */
[data-theme="dark"] .o-sub-drop {
  background: #FFFFFF; border-color: #C8D5E3; border-top-color: #1575BF;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
[data-theme="dark"] .o-sub-item { color: #2B3F58; }
[data-theme="dark"] .o-sub-item i { color: #1575BF; }
[data-theme="dark"] .o-sub-item:hover { background: #EAF3FB; color: #0F4B8B; }
[data-theme="dark"] .o-sub-item.active { background: #C9E4F5; color: #0F4B8B; }

/* ═══════════════════════════════════════════════════════════════
   38. ORACLE FUSION CLOUD — HOME PAGE
   Hero gradient + app tiles + greeting
═══════════════════════════════════════════════════════════════ */

/* ─── Hero banner — breaks out of o-content-inner padding ─── */
.of-hero {
  background: linear-gradient(150deg, #1C2B3A 0%, #1A3A5C 42%, #1575BF 100%);
  /* negative margins cancel the o-content-inner padding on 3 sides */
  margin-top:     calc(-1 * var(--content-pad));
  margin-inline:  calc(-1 * var(--content-pad));
  /* re-add padding so text doesn't hug edges */
  padding: 40px calc(var(--content-pad) + 4px) 60px;
  position: relative;
  overflow: hidden;
}
/* subtle light orbs for depth */
.of-hero::before {
  content: '';
  position: absolute; top: -60%; right: -5%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.of-hero::after {
  content: '';
  position: absolute; bottom: -40%; left: 30%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(21,117,191,0.30) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}

.of-greeting {
  font-size: 1.70rem; font-weight: 300;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.02em;
  position: relative; z-index: 1;
  line-height: 1.3;
}
.of-greeting strong { font-weight: 700; color: #FFFFFF; }

.of-hero-meta {
  font-size: 0.80rem; color: rgba(255,255,255,0.48);
  margin-top: 7px; position: relative; z-index: 1;
  display: flex; align-items: center; gap: 7px;
}
.of-hero-meta i { font-size: 0.72rem; }

/* ─── App tiles section (overlaps hero bottom) ─────────────── */
.of-apps-wrap {
  margin-top: -28px;
  padding-bottom: 28px;
  position: relative; z-index: 10;
}

.of-section-title {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: rgba(255,255,255,0.50);
  margin-bottom: 13px;
}

/* ─── Tiles grid ───────────────────────────────────────────── */
.of-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 12px;
}

/* Individual app tile */
.of-app-tile {
  background: #FFFFFF;
  border: 1px solid #DDE3EC;
  border-radius: 8px;
  padding: 20px 16px 18px;
  text-decoration: none;
  display: flex; flex-direction: column;
  gap: 11px;
  transition: transform 150ms, box-shadow 150ms, border-color 150ms;
  box-shadow: 0 2px 8px rgba(20,40,70,0.09);
  cursor: pointer;
}
.of-app-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(20,40,70,0.18);
  border-color: #1575BF;
}
.of-app-tile:hover .of-tile-icon { transform: scale(1.06); }

.of-tile-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.10rem;
  flex-shrink: 0;
  transition: transform 150ms;
  box-shadow: 0 3px 8px rgba(0,0,0,0.20);
}

.of-tile-body { display: flex; flex-direction: column; gap: 3px; }

.of-tile-name {
  font-size: 0.80rem; font-weight: 700;
  color: #1C2B3A; line-height: 1.3;
}
.of-tile-desc {
  font-size: 0.67rem; color: #6A7E90;
  line-height: 1.4;
}

/* ─── KPI stats row below tiles ────────────────────────────── */
.of-stats-wrap {
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* ─── Lower section: quick actions + chart ─────────────────── */
.of-lower-wrap {
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
}

/* ─── Dark mode — white tiles on dark background ───────────── */
[data-theme="dark"] .of-app-tile {
  background: #FFFFFF; border-color: rgba(0,0,0,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
[data-theme="dark"] .of-app-tile:hover {
  border-color: #1575BF;
  box-shadow: 0 10px 32px rgba(0,0,0,0.32);
}
[data-theme="dark"] .of-tile-name { color: #1C2B3A; }
[data-theme="dark"] .of-tile-desc { color: #6A7E90; }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .of-lower-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  /* match o-content-inner shrink */
  .of-hero {
    margin-top: -18px;
    margin-inline: -16px;
    padding: 32px calc(16px + 4px) 52px;
  }
}
@media (max-width: 640px) {
  .of-app-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .of-hero {
    margin-top: -14px;
    margin-inline: -10px;
    padding: 26px 14px 46px;
  }
  .of-lower-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .of-greeting  { font-size: 1.35rem; }
}

/* ═══════════════════════════════════════════════════════════════
   39. UTILITY CLASSES USED ACROSS TEMPLATES
═══════════════════════════════════════════════════════════════ */

/* ── Employee / user avatar circle ────────────────────────── */
.emp-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* ── Column type helpers ───────────────────────────────────── */
.col-num    { font-family: 'Consolas', monospace; font-size: 0.82rem; letter-spacing: 0.03em; }
.col-amount { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Card footer (pagination) ──────────────────────────────── */
.card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--gray-50);
  display: flex; align-items: center; justify-content: flex-end;
}

/* ── Score circle (performance reviews) ───────────────────── */
.score-circle {
  width: 90px; height: 90px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800;
  color: #fff;
}

/* ── Progress bar Oracle style ─────────────────────────────── */
.progress {
  height: 6px;
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar {
  height: 100%; border-radius: 99px;
  transition: width 0.5s ease;
}

/* ── Oracle-style breadcrumb ───────────────────────────────── */
.o-breadcrumb {
  display: flex; align-items: center;
  gap: 4px; flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--border);
}
.o-breadcrumb a {
  color: var(--primary); text-decoration: none;
  transition: color 120ms;
}
.o-breadcrumb a:hover { color: var(--primary-dark); text-decoration: underline; }
.o-breadcrumb-sep { opacity: 0.35; font-size: 0.68rem; }
.o-breadcrumb-current { color: var(--text-secondary); font-weight: 600; }

/* Dark mode — card interior elements stay light-mode-identical */
/* (Cards are white in dark mode, so no overrides needed here.)  */
/* Elements on dark background are handled in section 35.        */
[data-theme="dark"] .o-breadcrumb { /* handled in section 35 */ }

/* ── Pagination Oracle style ───────────────────────────────── */
.pagination { gap: 3px; }
.page-link {
  border-radius: var(--radius-sm) !important;
  border-color: var(--border) !important;
  color: var(--text-secondary);
  font-size: 0.78rem; padding: 4px 10px;
}
.page-item.active .page-link {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff;
}
.page-link:hover { background: var(--primary-50); color: var(--primary); }
[data-theme="dark"] .page-link { background: var(--gray-100); border-color: var(--border) !important; color: var(--text-secondary); }
[data-theme="dark"] .page-link:hover { background: var(--gray-200); }
