:root {
  --watheeq-bg: #f4f6f8;
  --watheeq-surface: #ffffff;
  --watheeq-surface-solid: #ffffff;
  --watheeq-text: #1f2937;
  --watheeq-muted: #6b7280;
  --watheeq-border: #d7dee8;
  --watheeq-border-strong: #b8c2cf;
  --watheeq-header: #eef2f6;
  --watheeq-shadow: 0 1px 2px rgba(15, 23, 42, .07);
  --watheeq-soft-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  --watheeq-sidebar-width: 282px;
  --watheeq-corner: min(var(--watheeq-radius), 6px);
}

html, body {
  font-family: var(--watheeq-font);
  font-weight: 700;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

html[data-bs-theme="dark"] {
  --watheeq-bg: #111827;
  --watheeq-surface: #1f2937;
  --watheeq-surface-solid: #1f2937;
  --watheeq-text: #e5e7eb;
  --watheeq-muted: #9ca3af;
  --watheeq-border: #374151;
  --watheeq-border-strong: #4b5563;
  --watheeq-header: #172033;
  --watheeq-shadow: 0 1px 2px rgba(0, 0, 0, .34);
  --watheeq-soft-shadow: 0 1px 2px rgba(0, 0, 0, .24);
}

body.watheeq-body {
  min-height: 100vh;
  color: var(--watheeq-text);
  background: var(--watheeq-bg);
  font-size: .925rem;
}

/* App shell - Executive Classic */
.watheeq-app-shell {
  min-height: 100vh;
  display: flex;
  direction: rtl;
}

.watheeq-modern-sidebar {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--watheeq-sidebar-width);
  z-index: 1030;
  color: #d1d5db;
  background: var(--watheeq-sidebar);
  border-inline-end: 1px solid rgba(255, 255, 255, .08);
}

.watheeq-sidebar-inner {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--watheeq-sidebar);
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
.watheeq-sidebar-inner::before,
.watheeq-sidebar-inner::after { display: none; }

.watheeq-brand-modern {
  position: relative;
  z-index: 2;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.watheeq-brand-link {
  color: #fff;
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  min-width: 0;
}
.watheeq-brand-link:hover { color: #fff; text-decoration: none; }

.watheeq-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  background: var(--watheeq-primary);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: none;
}
.watheeq-brand-copy { min-width: 0; }
.watheeq-brand-title {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.15;
}
.watheeq-brand-caption {
  display: block;
  margin-top: .14rem;
  color: rgba(255,255,255,.58);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.watheeq-mobile-close,
.watheeq-topbar-toggle,
.watheeq-icon-btn,
.watheeq-bottom-btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.watheeq-mobile-close {
  width: 34px; height: 34px; border-radius: 4px;
  color: #fff; background: rgba(255,255,255,.08);
}

.watheeq-sidebar-scroll {
  position: relative;
  z-index: 2;
  padding: 10px 10px 8px;
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
}
.watheeq-sidebar-scroll::-webkit-scrollbar,
.watheeq-dev-subnav::-webkit-scrollbar { width: 6px; }
.watheeq-sidebar-scroll::-webkit-scrollbar-thumb,
.watheeq-dev-subnav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.20); border-radius: 0; }

.watheeq-menu-label {
  padding: .75rem .7rem .35rem;
  color: rgba(255,255,255,.42);
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.watheeq-side-link {
  position: relative;
  width: 100%;
  min-height: 40px;
  border: 0;
  outline: 0;
  border-radius: 4px;
  padding: .48rem .52rem;
  color: rgba(255,255,255,.76);
  background: transparent;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .62rem;
  font-weight: 900;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.watheeq-side-link:hover,
.watheeq-side-link.active,
.watheeq-nav-group.is-open > .watheeq-side-link {
  color: #fff;
  background: rgba(255,255,255,.085);
  box-shadow: inset -3px 0 0 var(--watheeq-accent);
  transform: none;
  text-decoration: none;
}
.watheeq-side-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: none;
}
.watheeq-side-icon i { font-size: 1.1rem; }
.watheeq-chevron { margin-inline-start: auto; transition: transform .14s ease; opacity: .62; }
.watheeq-collapse-toggle[aria-expanded="true"] .watheeq-chevron { transform: rotate(180deg); }

.watheeq-subnav {
  margin: .2rem 1.25rem .45rem .2rem;
  padding: .15rem .6rem .2rem;
  border-inline-start: 1px solid rgba(255,255,255,.16);
}
.watheeq-subnav-link {
  min-height: 32px;
  border-radius: 3px;
  padding: .36rem .55rem;
  color: rgba(255,255,255,.63);
  display: flex;
  align-items: center;
  gap: .42rem;
  text-decoration: none;
  font-weight: 800;
  font-size: .84rem;
  transition: .12s ease;
}
.watheeq-subnav-link i { color: var(--watheeq-accent); font-size: .86rem; }
.watheeq-subnav-link:hover,
.watheeq-subnav-link.active {
  color: #fff;
  background: rgba(255,255,255,.07);
  text-decoration: none;
}

.watheeq-sidebar-footer-modern {
  position: relative;
  z-index: 2;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.watheeq-devbox {
  padding: .32rem;
  margin-bottom: .65rem;
  border-radius: 4px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}
.watheeq-dev-subnav { max-height: 245px; overflow: auto; }
.watheeq-bottom-actions { display: flex; align-items: center; justify-content: center; gap: .55rem; }
.watheeq-bottom-btn {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  color: rgba(255,255,255,.80);
  background: rgba(255,255,255,.08);
  box-shadow: none;
  transition: .12s ease;
  text-decoration: none;
}
.watheeq-bottom-btn i { font-size: 1.2rem; }
.watheeq-bottom-btn:hover,
.watheeq-bottom-btn.active {
  color: #fff;
  background: var(--watheeq-primary);
  transform: none;
  text-decoration: none;
}

/* Main area */
.watheeq-main-shell { width: 100%; min-width: 0; padding-inline-start: var(--watheeq-sidebar-width); }
.watheeq-modern-topbar {
  position: sticky;
  top: 0;
  z-index: 1010;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 8px 22px;
  background: var(--watheeq-surface-solid);
  backdrop-filter: none;
  border-bottom: 1px solid var(--watheeq-border);
}
.watheeq-topbar-title,
.watheeq-topbar-actions { display: flex; align-items: center; gap: .55rem; }
.watheeq-topbar-toggle,
.watheeq-icon-btn {
  width: 34px; height: 34px; border-radius: 4px;
  color: var(--watheeq-text);
  background: var(--watheeq-surface);
  border: 1px solid var(--watheeq-border);
  box-shadow: none;
  text-decoration: none;
}
.watheeq-icon-btn:hover,
.watheeq-topbar-toggle:hover { color: var(--watheeq-primary); border-color: var(--watheeq-primary); text-decoration: none; }
.watheeq-icon-btn i,
.watheeq-topbar-toggle i { font-size: 1.08rem; }
.watheeq-user-chip {
  display: flex; align-items: center; gap: .45rem;
  height: 34px; padding: .18rem .35rem .18rem .6rem;
  border-radius: 4px;
  background: var(--watheeq-surface);
  border: 1px solid var(--watheeq-border);
  box-shadow: none;
  font-weight: 900;
  font-size: .84rem;
}
.watheeq-user-chip .avatar { border-radius: 3px !important; }
.watheeq-pill {
  display: inline-flex; align-items: center; gap: .32rem;
  min-height: 28px; padding: .26rem .55rem;
  border-radius: 3px;
  color: var(--watheeq-primary);
  background: #edf3f8;
  border: 1px solid var(--watheeq-border);
  font-size: .76rem;
  font-weight: 900;
}
html[data-bs-theme="dark"] .watheeq-pill { background: #182434; }
.badge-notification { position:absolute; top: -.2rem; left: -.2rem; }
.watheeq-content { padding: 18px 18px 28px; }

/* Page blocks */
.page-header,
.watheeq-page-hero {
  padding: .85rem 1rem;
  margin-bottom: .85rem;
  border-radius: 4px;
  background: var(--watheeq-surface-solid);
  border: 1px solid var(--watheeq-border);
  box-shadow: var(--watheeq-soft-shadow);
  backdrop-filter: none;
}
.page-title, .h1, .h2, .h3, h1, h2, h3 { font-weight: 900; letter-spacing: 0; }
.page-header .page-title, .page-title h1, h1.page-title { font-size: 1.22rem; margin: 0; }
.page-pretitle { color: var(--watheeq-muted); font-weight: 900; font-size: .74rem; }
.card, .core-panel, .settings-card, .stat-card, .module-card, .login-card, .empty-hero {
  border: 1px solid var(--watheeq-border);
  border-radius: 4px !important;
  background: var(--watheeq-surface-solid);
  box-shadow: var(--watheeq-soft-shadow);
  transition: none;
}
.card:hover { box-shadow: var(--watheeq-soft-shadow); }
.card-header {
  min-height: 46px;
  padding: .7rem .9rem;
  background: var(--watheeq-header);
  border-bottom: 1px solid var(--watheeq-border);
  border-radius: 4px 4px 0 0 !important;
}
.card-body { padding: .9rem; }
.card-footer { border-top-color: var(--watheeq-border); background: #fbfcfd; }
html[data-bs-theme="dark"] .card-footer { background: #1c2634; }
.card-title { font-weight: 900; font-size: .98rem; }
.watheeq-alert { border-radius: 4px; box-shadow: none; }

/* Executive dashboard */
.executive-header {
  background: var(--watheeq-surface-solid);
  border: 1px solid var(--watheeq-border);
  border-right: 4px solid var(--watheeq-primary);
  border-radius: 4px;
  padding: .95rem 1.05rem;
  margin-bottom: .9rem;
}
.executive-title { font-size: 1.28rem; font-weight: 900; margin: 0; }
.executive-subtitle { margin: .22rem 0 0; color: var(--watheeq-muted); font-weight: 700; }
.executive-actions { display:flex; align-items:center; gap:.45rem; flex-wrap:wrap; }
.executive-action {
  display:inline-flex; align-items:center; gap:.35rem;
  min-height: 32px; padding:.34rem .62rem;
  border-radius: 3px;
  color: var(--watheeq-primary);
  background:#fff;
  border:1px solid var(--watheeq-border);
  text-decoration:none;
  font-weight:900;
  font-size:.82rem;
}
html[data-bs-theme="dark"] .executive-action { background:#1f2937; }
.executive-action:hover { border-color: var(--watheeq-primary); color: var(--watheeq-primary); text-decoration:none; }
.executive-stat-card {
  min-height: 92px;
  border: 1px solid var(--watheeq-border);
  border-radius: 4px;
  background: var(--watheeq-surface-solid);
  padding: .85rem;
  display:flex;
  align-items:center;
  gap:.75rem;
  box-shadow: var(--watheeq-soft-shadow);
}
.executive-stat-icon {
  width: 38px; height: 38px; border-radius: 3px;
  display:flex; align-items:center; justify-content:center;
  background: #eef2f7;
  color: var(--watheeq-primary);
  border:1px solid var(--watheeq-border);
  flex: 0 0 auto;
}
html[data-bs-theme="dark"] .executive-stat-icon { background:#192335; }
.executive-stat-icon i { font-size:1.25rem; }
.executive-stat-value { font-size:1.35rem; line-height:1.1; font-weight:900; color: var(--watheeq-text); }
.executive-stat-label { color: var(--watheeq-muted); font-weight:800; font-size:.8rem; margin-top:.15rem; }
.executive-panel-title {
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  margin: 1rem 0 .55rem;
  color: var(--watheeq-text);
}
.executive-panel-title h3 { margin:0; font-size:1rem; }
.executive-module-card {
  display:block;
  min-height: 208px;
  color: inherit;
  text-decoration:none;
  border: 1px solid var(--watheeq-border);
  border-top: 3px solid var(--watheeq-primary);
  border-radius: 4px;
  background: var(--watheeq-surface-solid);
  box-shadow: var(--watheeq-soft-shadow);
}
.executive-module-card:hover { color:inherit; text-decoration:none; border-color: var(--watheeq-border-strong); }
.executive-module-head { display:flex; align-items:center; gap:.65rem; padding:.85rem .9rem; border-bottom:1px solid var(--watheeq-border); }
.executive-module-icon {
  width: 38px; height: 38px; border-radius: 3px;
  display:flex; align-items:center; justify-content:center;
  background: var(--watheeq-primary);
  color:#fff;
  flex:0 0 auto;
}
.executive-module-icon i { font-size:1.25rem; }
.executive-module-name { font-size:1.05rem; font-weight:900; margin:0; }
.executive-module-code { color: var(--watheeq-muted); font-size:.76rem; font-weight:800; }
.executive-metrics { padding: .75rem .9rem; }
.executive-metric-row { display:flex; align-items:center; justify-content:space-between; gap:.8rem; min-height:30px; border-bottom:1px dashed var(--watheeq-border); }
.executive-metric-row:last-child { border-bottom:0; }
.executive-metric-label { color:var(--watheeq-muted); font-weight:800; }
.executive-metric-value { font-weight:900; }
.executive-meter { height: 4px; background:#e5eaf0; border-radius:0; margin-top:.6rem; }
.executive-meter span { display:block; height:100%; background: var(--watheeq-primary); }
html[data-bs-theme="dark"] .executive-meter { background:#374151; }
.executive-empty {
  min-height: 360px;
  border: 1px solid var(--watheeq-border);
  border-right: 4px solid var(--watheeq-primary);
  border-radius: 4px;
  background: var(--watheeq-surface-solid);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:2rem;
  text-align:center;
}
.executive-empty .empty-title { font-size:1.32rem; font-weight:900; }

/* Legacy dashboard class fallback */
.watheeq-home-hero { background: var(--watheeq-surface-solid); color: var(--watheeq-text); border:1px solid var(--watheeq-border); border-radius:4px; box-shadow:var(--watheeq-soft-shadow); padding:1rem; margin-bottom:1rem; }
.watheeq-home-hero::after { display:none; }
.watheeq-hero-title { font-size:1.25rem; font-weight:900; margin:0; }
.watheeq-hero-subtitle { color: var(--watheeq-muted); font-weight:700; margin:.3rem 0 0; }
.watheeq-quick-row { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:.75rem; }
.watheeq-quick-action { border-radius:3px; border:1px solid var(--watheeq-border); color:var(--watheeq-primary); background:#fff; text-decoration:none; font-weight:900; min-height:32px; padding:.34rem .58rem; }
.watheeq-quick-action:hover { color:var(--watheeq-primary); border-color:var(--watheeq-primary); background:#fff; text-decoration:none; }
.watheeq-stat-tile { border-radius:4px; padding:.85rem; min-height:95px; background:var(--watheeq-surface-solid); border:1px solid var(--watheeq-border); box-shadow:var(--watheeq-soft-shadow); }
.watheeq-stat-value { font-size:1.35rem; font-weight:900; color:var(--watheeq-text); }
.watheeq-stat-label { color:var(--watheeq-muted); font-weight:800; }
.watheeq-module-card { text-decoration:none; color:inherit; border-radius:4px !important; overflow:hidden; }
.watheeq-module-card:hover { transform:none; text-decoration:none; color:inherit; }
.watheeq-module-card::before, .watheeq-module-card::after { display:none; }
.watheeq-card-icon { background: var(--watheeq-primary); color:#fff; box-shadow:none; border-radius:3px !important; }
.watheeq-card-icon i { font-size:1.25rem; }
.watheeq-mini-chart { display:none; }
.progress { border-radius:0; background:#e5eaf0; }
.progress-bar { background: var(--watheeq-primary); border-radius:0; }
.watheeq-empty-hero { min-height:360px; border-radius:4px; border:1px solid var(--watheeq-border); background:var(--watheeq-surface-solid); box-shadow:var(--watheeq-soft-shadow); }
.no-logo-hero .empty-img { display:none; }
.watheeq-empty-hero .empty-title { font-size:1.3rem; font-weight:900; }

/* Forms, tables and settings */
.form-control, .form-select, .btn { border-radius: 3px; font-weight: 800; }
.form-control, .form-select { border-color: var(--watheeq-border-strong); }
.form-control:focus, .form-select:focus { border-color: var(--watheeq-primary); box-shadow: 0 0 0 .14rem rgba(29,53,87,.12); }
.btn { box-shadow: none !important; }
.btn-primary {
  --tblr-btn-bg: var(--watheeq-primary);
  --tblr-btn-border-color: var(--watheeq-primary);
  --tblr-btn-hover-bg: #14263f;
  --tblr-btn-hover-border-color: #14263f;
}
.btn-outline-primary { --tblr-btn-color: var(--watheeq-primary); --tblr-btn-border-color: var(--watheeq-primary); }
code { color: var(--watheeq-primary); font-weight: 900; }
.table { --tblr-table-bg: var(--watheeq-surface-solid); margin-bottom:0; }
.table thead th {
  font-weight: 900;
  color: #374151;
  background: var(--watheeq-header);
  border-bottom: 1px solid var(--watheeq-border-strong);
  white-space: nowrap;
}
html[data-bs-theme="dark"] .table thead th { color:#d1d5db; }
.table td, .table th { border-color: var(--watheeq-border); vertical-align: middle; }
.table-hover tbody tr:hover { background: #f8fafc; }
html[data-bs-theme="dark"] .table-hover tbody tr:hover { background: #172033; }
.table > :not(caption) > * > * { padding: .46rem .58rem; }
.density-compact .table > :not(caption) > * > * { padding: .32rem .48rem; }
.cards-flat .card, .cards-flat .core-panel { box-shadow: none !important; }
.core-panel { padding: .85rem; }
.core-panel.table-responsive { padding:0; }
.app-content .page-title {
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  margin-bottom:.85rem;
  padding:.85rem 1rem;
  background:var(--watheeq-surface-solid);
  border:1px solid var(--watheeq-border);
  border-right:4px solid var(--watheeq-primary);
  border-radius:4px;
}
.app-content .page-title h1 { font-size:1.2rem; margin:0; }
.settings-tabs-shell { position: sticky; top: 65px; z-index: 10; background: var(--watheeq-surface-solid); border:1px solid var(--watheeq-border); border-radius:4px; padding:.35rem; }
.watheeq-settings-tabs .nav-link { font-weight: 900; border-radius: 3px; }
.watheeq-settings-tabs .nav-link.active { background: var(--watheeq-primary); color:#fff; }
.form-control-color { width:100%; height: 38px; }
pre { direction:ltr; text-align:left; background: #f8fafc; padding:.8rem; border-radius: 3px; border:1px solid var(--watheeq-border); max-height: 420px; overflow:auto; }
html[data-bs-theme="dark"] pre { background:#111827; }
.hr-text { font-weight:900; }

/* Theme studio */
.watheeq-theme-preset-card { position: relative; transition:none; overflow:hidden; }
.watheeq-theme-preset-card:hover { transform:none; }
.watheeq-theme-preset-card.active { border-color: var(--watheeq-primary); box-shadow: inset 0 0 0 2px var(--watheeq-primary); }
.watheeq-theme-icon { color:#fff; background: var(--watheeq-primary); border-radius:3px !important; }
.theme-swatches { display:flex; gap:.4rem; }
.theme-swatches span { height: 28px; flex:1; border-radius: 2px; border: 1px solid rgba(0,0,0,.14); }
.watheeq-theme-preview-frame {
  min-height: 96px;
  border-radius: 3px;
  padding: .65rem;
  display:flex;
  align-items:center;
  gap:.65rem;
  background: #f4f6f8;
  color:var(--watheeq-text);
  border: 1px solid var(--watheeq-border);
}
.watheeq-theme-preview-frame .mock-sidebar { width: 38px; align-self: stretch; border-radius: 2px; background: var(--watheeq-sidebar); }
.watheeq-theme-preview-frame .mock-card { flex:1; min-height: 62px; border-radius: 2px; background: #fff; border:1px solid var(--watheeq-border); }
.watheeq-logo-preview { min-height: 86px; display:flex; align-items:center; justify-content:center; border:1px dashed var(--watheeq-border-strong); border-radius: 4px; background:#f8fafc; color:var(--watheeq-primary); font-size:1.8rem; }
html[data-bs-theme="dark"] .watheeq-logo-preview { background:#111827; }
.watheeq-logo-preview img { max-height: 74px; max-width: 100%; object-fit: contain; }
.watheeq-switch-card { border:1px solid var(--watheeq-border); border-radius: 4px; padding: .65rem 2.65rem .65rem .65rem; background: #f8fafc; }
html[data-bs-theme="dark"] .watheeq-switch-card { background:#172033; }
.watheeq-details summary { list-style:none; cursor:pointer; }
.watheeq-details summary::-webkit-details-marker { display:none; }
.watheeq-permission-matrix { max-height: 420px; overflow:auto; border: 1px solid var(--watheeq-border); border-radius: 4px; }
.module-upload-zone { border: 1px dashed var(--watheeq-border-strong); border-radius: 4px; background:#f8fafc; }
html[data-bs-theme="dark"] .module-upload-zone { background:#172033; }

/* Timeline */
.timeline { position: relative; padding-right: .5rem; }
.timeline-event { display:flex; gap:.7rem; margin-bottom:.85rem; align-items:flex-start; }
.timeline-event-icon { width:2rem; height:2rem; border-radius:3px; display:flex; align-items:center; justify-content:center; flex:0 0 auto; font-size:1.1rem; }
.timeline-event-card { flex:1; margin:0; }

/* Login */
.guest-main, .watheeq-login-page { min-height:100vh; }
.watheeq-login-page { display:flex; align-items:center; background: var(--watheeq-bg); }
.watheeq-login-card { border-radius: 4px; box-shadow: 0 6px 18px rgba(15,23,42,.10); overflow:hidden; border:1px solid var(--watheeq-border); }
.watheeq-login-card::before { content:""; display:block; height:4px; background: var(--watheeq-primary); }
.watheeq-logo-mark { background: var(--watheeq-primary); color:#fff; font-weight:900; box-shadow:none; border-radius:3px !important; }

/* Module dashboards */
.executive-kpi-grid .card { min-height: 112px; }
.executive-kpi-number { font-size:1.45rem; font-weight:900; margin:.25rem 0; }
.executive-kpi-label { color:var(--watheeq-muted); font-size:.78rem; font-weight:900; }
.executive-status-line { display:flex; align-items:center; justify-content:space-between; border-bottom:1px dashed var(--watheeq-border); min-height:30px; }
.executive-status-line:last-child { border-bottom:0; }

/* Responsive */
@media (max-width: 991.98px) {
  .watheeq-modern-sidebar {
    inset-block: 0;
    inset-inline-start: 0;
    width: min(304px, 86vw);
    transform: translateX(115%);
    transition: transform .18s ease;
  }
  body.sidebar-open .watheeq-modern-sidebar { transform: translateX(0); }
  .watheeq-sidebar-backdrop {
    display:none; position:fixed; inset:0;
    background: rgba(2,6,23,.45); z-index:1025;
    backdrop-filter: none;
  }
  body.sidebar-open .watheeq-sidebar-backdrop { display:block; }
  .watheeq-main-shell { padding-inline-start:0; }
  .watheeq-modern-topbar { padding:8px 12px; min-height:54px; }
  .watheeq-content { padding: 12px 8px 20px; }
  .watheeq-topbar-title .small { display:none; }
  .settings-tabs-shell { top: 58px; }
  .executive-header .row { gap:.65rem; }
}
@media (min-width: 992px) { .watheeq-sidebar-backdrop { display:none !important; } }


/* v0.1.10 Premium Admin UI -------------------------------------------------- */
.watheeq-sidebar-profile,
.watheeq-sidebar-search,
.watheeq-global-search { display:none; }
.is-filtered-out { display:none !important; }
.legend-dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-inline-end:.35rem; }

body.ui-premium {
  --watheeq-bg: #eef6ff;
  --watheeq-surface: rgba(255,255,255,.92);
  --watheeq-surface-solid: #ffffff;
  --watheeq-border: #e4edf6;
  --watheeq-border-strong: #cbddec;
  --watheeq-header: #f6fbff;
  --watheeq-shadow: 0 14px 38px rgba(33, 88, 132, .14);
  --watheeq-soft-shadow: 0 10px 24px rgba(30, 79, 122, .10);
  --watheeq-sidebar-width: 286px;
  background:
    radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--watheeq-primary) 16%, transparent), transparent 34%),
    linear-gradient(145deg, #edf8ff 0%, #f7fbff 48%, #eef5fb 100%);
}
html[data-bs-theme="dark"] body.ui-premium {
  --watheeq-bg: #111827;
  --watheeq-surface: #1e293b;
  --watheeq-surface-solid: #1e293b;
  --watheeq-border: #334155;
  --watheeq-border-strong: #475569;
  --watheeq-header: #172033;
  background: radial-gradient(circle at 8% 8%, rgba(91,167,255,.16), transparent 34%), #111827;
}
body.ui-premium .watheeq-modern-sidebar {
  background: linear-gradient(180deg, color-mix(in srgb, var(--watheeq-sidebar) 90%, #ffffff 10%) 0%, var(--watheeq-sidebar) 58%, color-mix(in srgb, var(--watheeq-sidebar) 72%, #0b1120 28%) 100%);
  border: 0;
  box-shadow: 8px 0 30px rgba(15, 53, 93, .14);
}
body.ui-premium .watheeq-sidebar-inner { background: transparent; }
body.ui-premium .watheeq-brand-modern { min-height: 72px; border-bottom-color: rgba(255,255,255,.12); }
body.ui-premium .watheeq-brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  border-color: rgba(255,255,255,.28);
}
body.ui-premium .watheeq-brand-caption { color: rgba(255,255,255,.72); }
body.ui-premium .watheeq-sidebar-profile {
  display:flex; align-items:center; gap:.72rem;
  margin: 12px 14px 10px;
  padding: 12px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
}
body.ui-premium .watheeq-profile-avatar {
  width: 44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.90); color: var(--watheeq-sidebar);
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
}
body.ui-premium .watheeq-profile-avatar i { font-size:1.45rem; }
body.ui-premium .watheeq-profile-copy { min-width:0; }
body.ui-premium .watheeq-profile-name { font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:150px; }
body.ui-premium .watheeq-profile-role { font-size:.73rem; color:rgba(255,255,255,.72); font-weight:800; }
body.ui-premium .watheeq-profile-badge { margin-inline-start:auto; min-width:24px; height:24px; border-radius:20px; background:#ff746d; display:flex; align-items:center; justify-content:center; font-size:.75rem; }
body.ui-premium .watheeq-sidebar-search {
  display:flex; align-items:center; gap:.45rem;
  margin: 0 14px 10px;
  padding:.45rem .65rem;
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  color:#64748b;
}
body.ui-premium .watheeq-sidebar-search input { border:0; outline:0; width:100%; background:transparent; font-weight:800; font-size:.82rem; color:#334155; }
body.ui-premium .watheeq-menu-label { color: rgba(255,255,255,.60); }
body.ui-premium .watheeq-side-link {
  min-height: 42px;
  border-radius: 12px;
  padding:.54rem .62rem;
  color: rgba(255,255,255,.84);
}
body.ui-premium .watheeq-side-link:hover,
body.ui-premium .watheeq-side-link.active,
body.ui-premium .watheeq-nav-group.is-open > .watheeq-side-link {
  background: rgba(255,255,255,.96);
  color: var(--watheeq-sidebar);
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
}
body.ui-premium .watheeq-side-icon {
  border-radius: 10px;
  background: rgba(255,255,255,.16);
}
body.ui-premium .watheeq-side-link:hover .watheeq-side-icon,
body.ui-premium .watheeq-side-link.active .watheeq-side-icon { background: color-mix(in srgb, var(--watheeq-primary) 12%, #fff); color: var(--watheeq-primary); }
body.ui-premium .watheeq-subnav { border-color: rgba(255,255,255,.22); }
body.ui-premium .watheeq-subnav-link { border-radius:9px; }
body.ui-premium .watheeq-bottom-btn { border-radius: 12px; }
body.ui-premium .watheeq-modern-topbar {
  min-height: 66px;
  padding: 10px 24px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(213, 226, 238, .78);
}
html[data-bs-theme="dark"] body.ui-premium .watheeq-modern-topbar { background: rgba(17,24,39,.82); }
body.ui-premium .watheeq-global-search {
  display:flex; align-items:center; gap:.5rem;
  width:min(360px, 32vw); height:40px;
  padding:0 .85rem;
  border-radius: 14px;
  background: var(--watheeq-surface-solid);
  border: 1px solid var(--watheeq-border);
  box-shadow: var(--watheeq-soft-shadow);
  color: var(--watheeq-muted);
}
body.ui-premium .watheeq-global-search input { width:100%; border:0; outline:0; background:transparent; font-weight:800; }
body.ui-premium .watheeq-icon-btn,
body.ui-premium .watheeq-topbar-toggle,
body.ui-premium .watheeq-user-chip,
body.ui-premium .watheeq-pill { border-radius: 13px; box-shadow: var(--watheeq-soft-shadow); }
body.ui-premium .watheeq-content { padding: 22px 22px 32px; }
body.ui-premium .card,
body.ui-premium .core-panel,
body.ui-premium .settings-card,
body.ui-premium .stat-card,
body.ui-premium .module-card,
body.ui-premium .login-card,
body.ui-premium .empty-hero,
body.ui-premium .page-header,
body.ui-premium .watheeq-page-hero {
  border-radius: var(--watheeq-radius) !important;
  box-shadow: var(--watheeq-soft-shadow);
  border-color: var(--watheeq-border);
}
body.ui-premium .card-header { border-radius: var(--watheeq-radius) var(--watheeq-radius) 0 0 !important; background: linear-gradient(90deg, #ffffff, var(--watheeq-header)); }
html[data-bs-theme="dark"] body.ui-premium .card-header { background: #172033; }
body.ui-premium .premium-hero {
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--watheeq-primary) 90%, #fff 10%), color-mix(in srgb, var(--watheeq-primary) 62%, var(--watheeq-accent) 38%));
  color:#fff;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--watheeq-primary) 28%, transparent);
  overflow:hidden;
  position:relative;
}
body.ui-premium .premium-hero::after {
  content:""; position:absolute; inset-inline-end: -70px; top:-90px; width:240px; height:240px; border-radius:50%; background:rgba(255,255,255,.16);
}
body.ui-premium .premium-hero .executive-subtitle,
body.ui-premium .premium-hero .text-secondary { color: rgba(255,255,255,.78) !important; }
body.ui-premium .premium-kicker { font-size:.78rem; font-weight:900; color:rgba(255,255,255,.82); margin-bottom:.28rem; }
body.ui-premium .premium-hero .executive-action { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.22); color:#fff; backdrop-filter: blur(10px); border-radius: 12px; }
body.ui-premium .premium-hero .executive-action:hover { background:#fff; color: var(--watheeq-primary); }
body.ui-premium .premium-kpi {
  min-height: 116px;
  color:#fff;
  border:0;
  border-radius: 16px;
  padding: 1rem;
  position:relative;
  overflow:hidden;
  box-shadow: 0 14px 28px rgba(30,79,122,.16);
}
body.ui-premium .premium-kpi::after { content:""; position:absolute; inset-inline-start:-22px; bottom:-32px; width:112px; height:112px; border-radius:50%; background:rgba(255,255,255,.18); }
body.ui-premium .premium-kpi .executive-stat-icon { width:48px; height:48px; border-radius:50%; background:rgba(255,255,255,.22); color:#fff; border:1px solid rgba(255,255,255,.22); }
body.ui-premium .premium-kpi .executive-stat-value,
body.ui-premium .premium-kpi .executive-stat-label { color:#fff; }
body.ui-premium .premium-trend { color:rgba(255,255,255,.85); font-size:.78rem; font-weight:800; margin-top:.25rem; }
body.ui-premium .kpi-green { background: linear-gradient(135deg, #46ce72, #30b958); }
body.ui-premium .kpi-blue { background: linear-gradient(135deg, #57b7ff, #6b7cf6); }
body.ui-premium .kpi-pink { background: linear-gradient(135deg, #ff70cc, #e859b7); }
body.ui-premium .kpi-orange { background: linear-gradient(135deg, #ffb976, #ff9568); }
body.ui-premium .premium-chart-card,
body.ui-premium .premium-donut-card { border:0; border-radius: 18px !important; }
body.ui-premium .premium-donut-legend { display:flex; justify-content:space-around; gap:.5rem; font-weight:900; color:var(--watheeq-muted); }
body.ui-premium .premium-section-title { margin-top: 1.2rem; }
body.ui-premium .premium-module-card {
  min-height: 218px;
  border:0;
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 14px 28px rgba(30,79,122,.12);
}
body.ui-premium .premium-module-card .executive-module-head { border-bottom-color: rgba(226,236,246,.9); }
body.ui-premium .premium-module-card .executive-module-icon { border-radius: 14px; box-shadow: 0 10px 18px color-mix(in srgb, var(--watheeq-primary) 25%, transparent); }
body.ui-premium .premium-module-card.module-2 .executive-module-icon { background:#6B7CF6; }
body.ui-premium .premium-module-card.module-3 .executive-module-icon { background:#33B98B; }
body.ui-premium .premium-module-card.module-4 .executive-module-icon { background:#FF9F5A; }
body.ui-premium .executive-meter { height:7px; border-radius:10px; background:#e9f1f8; }
body.ui-premium .executive-meter span { border-radius:10px; background: linear-gradient(90deg, var(--watheeq-primary), var(--watheeq-accent)); }
body.ui-premium .premium-alert-card { border-radius: 16px !important; }
body.ui-premium .premium-empty { border-radius: 18px; border:0; box-shadow: var(--watheeq-soft-shadow); }
body.ui-premium .table thead th { background:#f3f8fd; }
body.ui-premium .form-control,
body.ui-premium .form-select,
body.ui-premium .btn { border-radius: 10px; }
body.ui-premium .watheeq-theme-preset-card { overflow:hidden; }
.watheeq-theme-preview-frame { height:128px; border:1px solid var(--watheeq-border); border-radius:12px; display:flex; overflow:hidden; padding:10px; gap:10px; }
.watheeq-theme-preview-frame .mock-sidebar { width:32%; border-radius:10px; padding:10px 7px; display:flex; flex-direction:column; gap:6px; }
.watheeq-theme-preview-frame .mock-sidebar span { display:block; height:7px; border-radius:8px; background:rgba(255,255,255,.55); }
.watheeq-theme-preview-frame .mock-main { flex:1; display:flex; flex-direction:column; gap:10px; }
.watheeq-theme-preview-frame .mock-kpi { height:38px; border-radius:10px; background:#dbeafe; }
.watheeq-theme-preview-frame .mock-card { flex:1; border-radius:10px; background:#fff; border:1px solid #e5e7eb; }
.watheeq-theme-preview-frame.preview-premium { border-radius:18px; }
.watheeq-theme-preview-frame.preview-premium .mock-sidebar,
.watheeq-theme-preview-frame.preview-premium .mock-kpi,
.watheeq-theme-preview-frame.preview-premium .mock-card { border-radius:16px; }
.watheeq-theme-preset-card.active { outline: 3px solid color-mix(in srgb, var(--watheeq-primary) 26%, transparent); }
.theme-swatches { display:flex; gap:.4rem; }
.theme-swatches span { width:28px; height:18px; border-radius:7px; border:1px solid rgba(0,0,0,.08); }
.watheeq-theme-icon { background: color-mix(in srgb, var(--watheeq-primary) 12%, #fff); color: var(--watheeq-primary); }
@media (max-width: 991.98px) {
  body.ui-premium .watheeq-modern-sidebar { box-shadow: 14px 0 40px rgba(0,0,0,.18); }
  body.ui-premium .watheeq-global-search { display:none; }
}

/* v0.1.16 financial dashboard refinements */
.watheeq-date-badge,.watheeq-topbar-date{display:inline-flex;align-items:center;gap:.45rem;border:1px solid var(--watheeq-border,#d7dee8);background:var(--watheeq-card,#fff);padding:.45rem .7rem;border-radius:6px;font-weight:700;color:var(--watheeq-text,#1f2937)}
.watheeq-date-badge span{color:var(--watheeq-muted,#64748b);font-weight:600}.watheeq-fin-card{border-radius:8px;border:1px solid var(--watheeq-border,#d7dee8);box-shadow:0 1px 3px rgba(15,23,42,.06);overflow:hidden}.watheeq-fin-card .card-body{position:relative}.fin-icon{position:absolute;left:14px;top:12px;width:38px;height:38px;display:grid;place-items:center;border-radius:6px;background:rgba(37,99,235,.1);font-size:22px}.fin-label{font-size:.8rem;color:#64748b;font-weight:700}.fin-value{font-size:1.55rem;font-weight:800;letter-spacing:.2px}.fin-note{font-size:.75rem;color:#64748b}.fin-assets{border-top:3px solid #2563eb}.fin-liability{border-top:3px solid #f59e0b}.fin-income{border-top:3px solid #16a34a}.fin-check{border-top:3px solid #64748b}.watheeq-panel-card,.watheeq-widget-card{border-radius:8px;border:1px solid var(--watheeq-border,#d7dee8);box-shadow:0 1px 3px rgba(15,23,42,.05)}.watheeq-widget-card{text-decoration:none;color:inherit;transition:.15s}.watheeq-widget-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(15,23,42,.08)}
