/* ================================================================
   Law Firm Management System — Custom Stylesheet
   Arabic RTL Interface
   ================================================================ */

/* ── CSS Variables (Design Tokens) ────────────────────────── */
:root {
  --sidebar-width:      260px;
  --topbar-height:       60px;

  /* Brand Colors */
  --color-navy:         #1B3A6B;
  --color-navy-dark:    #122849;
  --color-navy-light:   #24528A;
  --color-blue:         #2E75B6;
  --color-blue-light:   #4A90D9;
  --color-gold:         #B8860B;
  --color-gold-light:   #D4A017;

  /* UI Colors */
  --color-bg:           #F0F4F8;
  --color-white:        #FFFFFF;
  --color-text:         #1A1A2E;
  --color-text-muted:   #6B7280;
  --color-border:       #E2E8F0;
  --color-border-dark:  #CBD5E1;

  /* Status Colors */
  --color-success:      #1A6B3A;
  --color-success-bg:   #E8F5EE;
  --color-warning:      #92400E;
  --color-warning-bg:   #FEF3C7;
  --color-danger:       #7F1D1D;
  --color-danger-bg:    #FEE2E2;
  --color-info:         #1E3A5F;
  --color-info-bg:      #DBEAFE;
  --color-purple:       #5B21B6;
  --color-purple-bg:    #EDE9FE;

  /* Shadows */
  --shadow-xs:          0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm:          0 2px 6px rgba(0, 0, 0, 0.07);
  --shadow-md:          0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg:          0 8px 32px rgba(0, 0, 0, 0.12);

  /* Radii */
  --radius-sm:          6px;
  --radius-md:          10px;
  --radius-lg:          16px;
  --radius-full:        9999px;

  /* Transitions */
  --transition-fast:    0.15s ease;
  --transition-base:    0.25s ease;
}


/* ── Base Reset & Typography ────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 0.9375rem;         /* 15px */
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  direction: rtl;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--color-navy);
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blue-light);
}


/* ══════════════════════════════════════════════════════════════
   SIDEBAR
   Fixed on the right (RTL start side)
   ══════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-navy);
  background: linear-gradient(180deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1040;
  transition: transform var(--transition-base);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.sidebar::-webkit-scrollbar       { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }


/* ── Sidebar Brand / Logo ────────────────────────────────── */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--color-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-white);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}


/* ── Sidebar Navigation ──────────────────────────────────── */
.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  padding: 16px 20px 6px;
}

.sidebar-nav .nav-item {
  padding: 2px 10px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.72);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.sidebar-nav .nav-link i {
  font-size: 1.05rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.sidebar-nav .nav-link:hover {
  background: rgba(255,255,255,0.10);
  color: var(--color-white);
}

/* Active nav item */
.sidebar-nav .nav-link.active {
  background: var(--color-gold);
  color: var(--color-white);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(184,134,11,0.40);
}

/* Disabled / coming-soon nav item */
.sidebar-nav .nav-link.disabled-link {
  color: rgba(255,255,255,0.32);
  cursor: default;
  pointer-events: none;
}

/* "قريباً" badge */
.badge-soon {
  margin-right: auto;
  margin-left: 0;
  font-size: 0.62rem;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 600;
  flex-shrink: 0;
}


/* ── Sidebar Footer ──────────────────────────────────────── */
.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.10);
  flex-shrink: 0;
}

.sidebar-footer-text {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.40);
}


/* ══════════════════════════════════════════════════════════════
   MAIN WRAPPER
   Left-offset to accommodate the sidebar on the right
   ══════════════════════════════════════════════════════════════ */
.main-wrapper {
  margin-right: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-right var(--transition-base);
}


/* ══════════════════════════════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════════════════════════════ */
.topbar {
  height: var(--topbar-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1030;
  flex-shrink: 0;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--color-text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: none;           /* hidden on desktop; shown on mobile */
  transition: background var(--transition-fast);
}

.sidebar-toggle:hover { background: var(--color-bg); }

.page-title-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  position: relative;
}

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

/* Notification dot */
.badge-dot {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  border: 2px solid var(--color-white);
}

/* User menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.user-menu:hover { background: var(--color-bg); }

.user-avatar {
  width: 34px;
  height: 34px;
  background: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1rem;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-navy);
}

.user-role {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}


/* ══════════════════════════════════════════════════════════════
   PAGE CONTENT
   ══════════════════════════════════════════════════════════════ */
.page-content {
  flex: 1;
  padding: 24px 28px;
}

.flash-container {
  margin-bottom: 20px;
}

.flash-container .alert {
  border-radius: var(--radius-md);
  border: none;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}


/* ══════════════════════════════════════════════════════════════
   PAGE FOOTER
   ══════════════════════════════════════════════════════════════ */
.page-footer {
  padding: 14px 28px;
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-sep {
  color: var(--color-border-dark);
}


/* ══════════════════════════════════════════════════════════════
   WELCOME HERO CARD
   ══════════════════════════════════════════════════════════════ */
.welcome-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 60%, #2E75B6 100%);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Decorative background element */
.welcome-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.welcome-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 60px;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.welcome-icon {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--color-gold-light);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.welcome-body {
  flex: 1;
  position: relative;
  z-index: 1;
}

.welcome-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.welcome-subtitle {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
  max-width: 560px;
  line-height: 1.65;
}

.welcome-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phase-badge {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.phase-badge.active-phase {
  background: var(--color-gold);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(184,134,11,0.45);
}

.phase-badge.pending-phase {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.18);
}


/* ══════════════════════════════════════════════════════════════
   KPI STAT CARDS
   ══════════════════════════════════════════════════════════════ */
.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 22px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  position: relative;
  overflow: hidden;
}

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

/* Left accent border */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.stat-card--blue::before   { background: var(--color-blue); }
.stat-card--gold::before   { background: var(--color-gold); }
.stat-card--green::before  { background: var(--color-success); }
.stat-card--purple::before { background: var(--color-purple); }

.stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-card--blue   .stat-card__icon { background: var(--color-info-bg);    color: var(--color-blue); }
.stat-card--gold   .stat-card__icon { background: var(--color-warning-bg); color: var(--color-gold); }
.stat-card--green  .stat-card__icon { background: var(--color-success-bg); color: var(--color-success); }
.stat-card--purple .stat-card__icon { background: var(--color-purple-bg);  color: var(--color-purple); }

.stat-card__body {
  flex: 1;
}

.stat-card__value {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.1;
}

.stat-card__label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.stat-card__footer {
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
  font-size: 0.75rem;
}


/* ══════════════════════════════════════════════════════════════
   INFO CARDS
   ══════════════════════════════════════════════════════════════ */
.info-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  height: 100%;
}

.info-card__header {
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 12px 20px;
  display: flex;
  align-items: center;
}

.info-card__body {
  padding: 20px;
}

/* Module grid inside info card */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.module-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.module-item--active {
  background: rgba(27, 58, 107, 0.05);
  border-color: var(--color-navy);
}

.module-item__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.bg-primary-soft   { background: var(--color-info-bg); }
.bg-secondary-soft { background: var(--color-border); }

.module-item__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.module-status {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.module-status.active  { background: var(--color-success-bg); color: var(--color-success); }
.module-status.pending { background: var(--color-border);     color: var(--color-text-muted); }

/* System info table */
.sys-info-table {
  width: 100%;
  border-collapse: collapse;
}

.sys-info-table tr {
  border-bottom: 1px solid var(--color-border);
}

.sys-info-table tr:last-child { border-bottom: none; }

.sys-info-label,
.sys-info-value {
  padding: 11px 20px;
  font-size: 0.845rem;
}

.sys-info-label {
  font-weight: 700;
  color: var(--color-text-muted);
  width: 42%;
  background: var(--color-bg);
}

.sys-info-value {
  color: var(--color-text);
  font-weight: 500;
}

/* Status dot */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

.status-dot--online { background: var(--color-success); }
.status-dot--offline { background: #9CA3AF; }


/* ══════════════════════════════════════════════════════════════
   ERROR PAGES
   ══════════════════════════════════════════════════════════════ */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--topbar-height) - 80px);
  text-align: center;
  padding: 40px;
}

.error-code {
  font-size: 7rem;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1;
  opacity: 0.15;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 12px 0 8px;
}

.error-msg {
  color: var(--color-text-muted);
  margin-bottom: 28px;
  max-width: 400px;
}


/* ══════════════════════════════════════════════════════════════
   BOOTSTRAP OVERRIDES (Arabic-specific)
   ══════════════════════════════════════════════════════════════ */
.btn {
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

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

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

.card {
  border-radius: var(--radius-md);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.table {
  font-size: 0.875rem;
}

.form-control,
.form-select {
  font-family: 'Cairo', sans-serif;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  border-color: var(--color-border-dark);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.15);
}


/* ══════════════════════════════════════════════════════════════
   TOPBAR — User dropdown & avatar letter
   ══════════════════════════════════════════════════════════════ */
.user-avatar-letter {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.user-chevron {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  margin-right: 2px;
  transition: transform var(--transition-fast);
}

.dropdown.show .user-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  font-family: 'Cairo', sans-serif;
  font-size: 0.875rem;
  min-width: 200px;
  border-radius: var(--radius-md);
}

.dropdown-header-user {
  border-bottom: 1px solid var(--color-border);
}

.dropdown-item {
  font-family: 'Cairo', sans-serif;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.dropdown-item:focus,
.dropdown-item:hover {
  background: var(--color-bg);
}

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


/* ── Sidebar footer user widget ─────────────────────────────── */
.sidebar-user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  background: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.50);
}

.sidebar-logout-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: rgba(255,255,255,0.50);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sidebar-logout-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
}


/* ── Profile page avatar ────────────────────────────────────── */
.profile-avatar {
  width: 80px;
  height: 80px;
  background: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-initials {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}


/* ══════════════════════════════════════════════════════════════
   LOGIN PAGE
   Standalone page — does NOT extend base.html
   ══════════════════════════════════════════════════════════════ */
.login-body {
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  font-family: 'Cairo', sans-serif;
}

.login-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}


/* ── Branding panel (right / RTL-start) ─────────────────────── */
.login-brand-panel {
  flex: 0 0 420px;
  background: linear-gradient(160deg, var(--color-navy-dark) 0%, var(--color-navy) 60%, var(--color-navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.brand-deco {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.brand-deco--1 { width: 320px; height: 320px; top: -80px;  right: -80px; }
.brand-deco--2 { width: 240px; height: 240px; bottom: -60px; left: -60px; }
.brand-deco--3 { width: 120px; height: 120px; top: 50%; left: 30%; background: rgba(184,134,11,0.07); }

.brand-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.brand-logo {
  width: 64px;
  height: 64px;
  background: var(--color-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-white);
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(184,134,11,0.40);
}

.brand-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 14px;
}

.brand-subtitle {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 32px;
}

.brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.80);
}

.brand-features li i {
  font-size: 1rem;
  color: var(--color-gold-light);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}


/* ── Form panel (left / RTL-end) ────────────────────────────── */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--color-white);
}

.login-form-inner {
  width: 100%;
  max-width: 420px;
}

.login-mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 32px;
}

.login-mobile-logo i {
  font-size: 1.6rem;
  color: var(--color-gold);
}

.login-heading {
  margin-bottom: 28px;
}

.login-heading h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.login-heading p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Input group with icon prefix */
.input-group-login .input-group-text {
  background: var(--color-bg);
  border-color: var(--color-border-dark);
  color: var(--color-text-muted);
  border-left: none;       /* RTL: the icon is on the left (end) side */
}

.input-group-login .form-control {
  border-color: var(--color-border-dark);
  background: var(--color-white);
  padding: 10px 14px;
  font-size: 0.9rem;
}

.input-group-login .form-control:focus {
  border-color: var(--color-blue);
  box-shadow: none;
  background: var(--color-white);
}

/* Focus glow on the whole group */
.input-group-login:focus-within .input-group-text {
  border-color: var(--color-blue);
}

/* Toggle-password button */
.btn-toggle-pw {
  border-color: var(--color-border-dark);
  color: var(--color-text-muted);
  border-right: none;      /* RTL: button is on the far right (start) */
  background: var(--color-bg);
}

.btn-toggle-pw:hover {
  background: var(--color-bg);
  color: var(--color-navy);
}

/* Remember-me checkbox */
.form-check-login {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-login .form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.form-check-login .form-check-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  cursor: pointer;
  margin: 0;
}

/* Login submit button */
.btn-login {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 11px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}

.btn-login:hover,
.btn-login:focus {
  background: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(27, 58, 107, 0.35);
}

.login-footer-note {
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ── Responsive: collapse branding panel ─────────────────────── */
@media (max-width: 991.98px) {
  .login-brand-panel {
    display: none;           /* Hide branding on mobile/tablet */
  }

  .login-form-panel {
    padding: 32px 20px;
  }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (sidebar collapses)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {

  .sidebar {
    transform: translateX(100%);     /* RTL: slides off-screen to the right */
  }

  .sidebar.sidebar--open {
    transform: translateX(0);
  }

  .main-wrapper {
    margin-right: 0;
  }

  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-content {
    padding: 16px;
  }

  .welcome-hero {
    flex-direction: column;
    padding: 24px 20px;
  }

  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .welcome-title { font-size: 1.15rem; }
  .module-grid   { grid-template-columns: repeat(2, 1fr); }
}


/* ════════════════════════════════════════════════════════════════
   PHASE 3 — CLIENT & CASE MANAGEMENT STYLES
   ════════════════════════════════════════════════════════════════ */

/* ── DataTables RTL overrides ──────────────────────────────────── */
.dataTables_wrapper .dataTables_filter input {
  margin-right: 8px;
  margin-left: 0;
}
.dataTables_wrapper .dataTables_length select {
  margin-right: 8px;
  margin-left: 0;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--radius-sm) !important;
}
table.dataTable thead th {
  vertical-align: middle;
}
table.dataTable tbody td {
  vertical-align: middle;
}

/* ── Case summary bar ──────────────────────────────────────────── */
.case-summary-bar {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.case-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.case-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.case-info-item i {
  font-size: 1rem;
}

/* ── Case notes timeline ───────────────────────────────────────── */
.notes-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-item {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border-right: 3px solid var(--primary);
}

.note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 4px;
}

.note-author {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
}

.note-content {
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  line-height: 1.6;
}

/* ── Status & priority badges ──────────────────────────────────── */
.badge {
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

/* ── Nav tabs styling (case view) ──────────────────────────────── */
.nav-tabs .nav-link {
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 10px 18px;
}

.nav-tabs .nav-link.active {
  color: var(--primary);
  border-bottom-color: transparent;
}

.nav-tabs .nav-link:hover:not(.active) {
  color: var(--primary);
  background: var(--bg-light);
}

/* ── Table action buttons ──────────────────────────────────────── */
.btn-group-sm .btn {
  padding: 3px 8px;
}

/* ── Empty state illustrations ────────────────────────────────── */
.empty-state-icon {
  font-size: 3rem;
  opacity: 0.2;
  display: block;
  margin-bottom: 12px;
}


/* ════════════════════════════════════════════════════════════════
   PHASE 4 — DOCUMENT ARCHIVE STYLES
   ════════════════════════════════════════════════════════════════ */

/* ── Doc type badge ────────────────────────────────────────────── */
.doc-type-badge {
  background-color: var(--primary-light, #e8eaf6);
  color: var(--primary);
  font-weight: 600;
}

/* ── Dropzone custom area ──────────────────────────────────────── */
.dropzone-custom-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg-light);
}

.dropzone-custom-area:hover,
.dropzone-custom-area.dragover {
  border-color: var(--primary);
  background: #f0f2ff;
}

.dropzone-icon {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.6;
  margin-bottom: 12px;
  line-height: 1;
}

.dropzone-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dropzone-hint {
  font-size: 0.82rem;
}

/* ── File preview box inside drop zone ────────────────────────── */
.file-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  max-width: 420px;
  margin: 0 auto;
}

/* ── Document detail — file icon block ────────────────────────── */
.doc-file-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.doc-file-icon-lg {
  font-size: 2.8rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Allowed-types list (upload sidebar) ──────────────────────── */
.allowed-types-list .list-group-item {
  font-size: 0.88rem;
  padding-top: 8px;
  padding-bottom: 8px;
}


/* ════════════════════════════════════════════════════════════════
   PHASE 5 — COURT SESSION CALENDAR
   ════════════════════════════════════════════════════════════════ */

/* ── FullCalendar container ──────────────────────────────────── */
#calendarEl {
  direction: rtl;
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
}

/* Override FullCalendar toolbar for RTL */
.fc .fc-toolbar {
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fc .fc-toolbar-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Calendar event pills */
.fc-event {
  border-radius: 4px !important;
  font-size: 0.78rem !important;
  padding: 2px 5px !important;
  cursor: pointer !important;
}
.fc-daygrid-event-dot {
  display: none !important;
}

/* Today highlight */
.fc .fc-day-today {
  background-color: rgba(13, 110, 253, 0.06) !important;
}

/* Hover on day cell */
.fc .fc-daygrid-day:hover {
  background-color: rgba(13, 110, 253, 0.03);
  cursor: pointer;
}

/* ── Upcoming sessions sidebar list ─────────────────────────── */
.upcoming-sessions-list .list-group-item {
  transition: background-color 0.15s;
}
.upcoming-sessions-list .list-group-item:hover {
  background-color: var(--surface-hover);
}
.upcoming-case-title {
  line-height: 1.3;
}
.upcoming-status-badge {
  flex-shrink: 0;
  font-size: 0.7rem !important;
}

/* ── Color legend dots ───────────────────────────────────────── */
.fc-legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* ── Session detail page ─────────────────────────────────────── */
.session-outcome-text {
  white-space: pre-wrap;
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  line-height: 1.7;
}

/* ── Session status badges (reuse Bootstrap contextuals) ────── */
/* Already handled by .badge .bg-{variant} from Phase 3 */

/* ── Session form tweaks ─────────────────────────────────────── */
.session-form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Sessions table in case view ─────────────────────────────── */
.case-sessions-table th,
.case-sessions-table td {
  vertical-align: middle;
}

/* ── FullCalendar list view (agenda) ─────────────────────────── */
.fc-list-event-title {
  font-family: 'Cairo', sans-serif;
}
.fc-list-empty {
  font-family: 'Cairo', sans-serif;
  color: var(--text-muted);
}

/* ── Session quick-view modal ────────────────────────────────── */
#sessionModal .modal-title {
  font-size: 1rem;
  font-weight: 700;
}
#sessionModal .sys-info-table {
  margin-bottom: 0;
}


/* ════════════════════════════════════════════════════════════════
   PHASE 6 — AI LEGAL ASSISTANT
   ════════════════════════════════════════════════════════════════ */

/* ── Memo type grid ─────────────────────────────────────────── */
.memo-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}

.memo-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface-bg);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-align: center;
  line-height: 1.3;
}
.memo-type-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(13, 110, 253, 0.05);
}
.memo-type-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.memo-type-btn i {
  font-size: 1.4rem;
}

/* ── AI form card ────────────────────────────────────────────── */
.ai-form-card {
  position: sticky;
  top: 1rem;
}

.ai-facts-textarea {
  resize: vertical;
  min-height: 160px;
  font-size: 0.9rem;
  line-height: 1.7;
  direction: rtl;
}

/* ── Case info preview ───────────────────────────────────────── */
.case-info-preview {
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
}

.case-info-pre {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  max-height: 120px;
  overflow-y: auto;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}

/* ── Output panel ────────────────────────────────────────────── */
.ai-output-card {
  min-height: 500px;
  display: flex;
  flex-direction: column;
}
.ai-output-card .info-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ai-output-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ai-idle-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.ai-output-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.9;
  font-size: 0.9rem;
  flex: 1;
  overflow-y: auto;
  max-height: 600px;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}

/* Blinking cursor */
.ai-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--primary);
  margin-right: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-start infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ── Memo view ───────────────────────────────────────────────── */
.ai-view-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.9;
  font-size: 0.95rem;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

/* ── Edit textarea ───────────────────────────────────────────── */
.ai-edit-textarea {
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  line-height: 1.8;
  resize: vertical;
  min-height: 400px;
  direction: rtl;
}

/* ── Edit toolbar ────────────────────────────────────────────── */
.ai-edit-toolbar .btn {
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
}

/* ── History table icon column ───────────────────────────────── */
.ai-icon-cell {
  width: 40px;
  text-align: center;
  color: var(--text-muted);
}

/* ── API warning banner ──────────────────────────────────────── */
.alert-warning code {
  background: rgba(0,0,0,0.07);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.85em;
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 7 — Dashboard & Analytics
   ═══════════════════════════════════════════════════════════════ */

/* ── KPI Cards ──────────────────────────────────────────────── */
.kpi-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem 0.85rem;
  text-align: center;
  color: #fff;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }

.kpi-card__icon  { font-size: 1.6rem; opacity: 0.9; line-height: 1; }
.kpi-card__value { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.kpi-card__label { font-size: 0.72rem; opacity: 0.88; letter-spacing: 0.03em; }
.kpi-card__link  { position: absolute; inset: 0; }

/* Colour variants */
.kpi-card--blue    { background: linear-gradient(135deg, #1a3c5e 0%, #2a5580 100%); }
.kpi-card--gold    { background: linear-gradient(135deg, #c9a84c 0%, #a88730 100%); }
.kpi-card--slate   { background: linear-gradient(135deg, #495057 0%, #343a40 100%); }
.kpi-card--green   { background: linear-gradient(135deg, #198754 0%, #0f5132 100%); }
.kpi-card--emerald { background: linear-gradient(135deg, #0ca678 0%, #087f5b 100%); }
.kpi-card--red     { background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%); }

/* ── Mini KPI row ────────────────────────────────────────────── */
.mini-kpi {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: box-shadow var(--transition);
}
.mini-kpi:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.mini-kpi--highlight { border-color: #198754; }
.mini-kpi__icon  { font-size: 1.5rem; flex-shrink: 0; }
.mini-kpi__value { font-size: 1.35rem; font-weight: 700; color: var(--text-dark); line-height: 1; }
.mini-kpi__label { font-size: 0.72rem; color: var(--text-muted); }

/* ── Dashboard cards ─────────────────────────────────────────── */
.dash-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.dash-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--surface-bg);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  flex-shrink: 0;
}
.dash-card__body {
  padding: 1rem;
  flex: 1;
  overflow: hidden;
}
.dash-link {
  font-size: 0.78rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.dash-link:hover { text-decoration: underline; }

/* ── Chart tab toggles ───────────────────────────────────────── */
.dash-card__tabs {
  display: flex;
  gap: 0.25rem;
}
.dash-tab {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border-color);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}
.dash-tab.active,
.dash-tab:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Chart canvas wrappers ───────────────────────────────────── */
.chart-wrap {
  position: relative;
  height: 260px;
  width: 100%;
}
.chart-wrap--pie {
  height: 200px;
  max-width: 200px;
  margin: 0 auto;
}

/* ── Custom pie / doughnut legend ────────────────────────────── */
.pie-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  justify-content: center;
}
.pie-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-dark);
}
.pie-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Widget list (shared by cases, sessions, docs) ───────────── */
.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget-list__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition);
}
.widget-list__item:last-child { border-bottom: none; }
.widget-list__item:hover { background: var(--surface-bg); }

.widget-list__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.widget-list__icon--blue { background: rgba(26,60,94,0.1); color: var(--primary); }
.widget-list__icon--doc  { background: rgba(108,117,125,0.1); }

.widget-list__body { flex: 1; min-width: 0; }
.widget-list__title {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.widget-list__title:hover { color: var(--primary); text-decoration: underline; }
.widget-list__meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.widget-list__aside { flex-shrink: 0; }
.meta-sep { margin: 0 0.3rem; }

/* ── Session date block ──────────────────────────────────────── */
.session-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  flex-shrink: 0;
  line-height: 1;
}
.session-date-block__day { font-size: 1.05rem; font-weight: 700; }
.session-date-block__mon { font-size: 0.6rem; opacity: 0.85; }

/* ── Doc extension badge ─────────────────────────────────────── */
.doc-ext-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 4px;
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── Widget empty state ──────────────────────────────────────── */
.widget-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  text-align: center;
}
.widget-empty__icon { font-size: 2.2rem; opacity: 0.4; }
.widget-empty p     { margin: 0; font-size: 0.82rem; }

/* ── Activity feed ───────────────────────────────────────────── */
.activity-feed {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem;
}
.activity-feed__item {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border-color);
  position: relative;
}
.activity-feed__item:last-child { border-bottom: none; }

.activity-feed__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}
.activity-feed__dot--note { background: var(--primary); }
.activity-feed__dot--case { background: var(--accent); }

.activity-feed__body { flex: 1; min-width: 0; }
.activity-feed__text {
  font-size: 0.8rem;
  color: var(--text-dark);
  line-height: 1.4;
}
.activity-feed__text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.activity-feed__text a:hover { text-decoration: underline; }
.activity-feed__time {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 575.98px) {
  .kpi-card__value { font-size: 1.6rem; }
  .kpi-card        { min-height: 100px; }
  .chart-wrap      { height: 200px; }
}
