/* ==========================================================================
   E-Class — School theme
   Layered on top of Stisla (style.css / components.css). Uses logical
   properties so the same rules work for LTR and RTL builds.
   ========================================================================== */

:root {
  --ec-ink: #1d2545;
  --ec-ink-2: #4a5275;
  --ec-muted: #8a91ad;
  --ec-line: #e6e9f2;
  --ec-paper: #f5f6fb;
  --ec-card: #ffffff;

  --ec-primary: #4361ee;
  --ec-primary-2: #3a50d9;
  --ec-primary-soft: #eef1ff;
  --ec-sky: #4cc9f0;
  --ec-yellow: #ffc83d;
  --ec-yellow-2: #f5a524;

  --ec-red: #ff6b6b;
  --ec-orange: #ff9f43;
  --ec-green: #1dbf84;
  --ec-teal: #14b8a6;
  --ec-blue: #4d8dff;
  --ec-purple: #8e6cf0;
  --ec-pink: #ff6fb5;

  --ec-board: #1f3b34;
  --ec-board-2: #16302a;
  --ec-chalk: #eef5f1;
  --ec-wood: #b07a43;
  --ec-wood-2: #8a5a2b;

  --ec-radius: 18px;
  --ec-radius-sm: 12px;
  --ec-shadow: 0 10px 30px -14px rgba(29, 37, 69, .22), 0 2px 6px rgba(29, 37, 69, .05);
  --ec-shadow-lg: 0 22px 50px -20px rgba(29, 37, 69, .35);

  --ec-font: "Tajawal", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ec-font-display: "Baloo Bhaijaan 2", "Tajawal", "Nunito", sans-serif;

  --ec-to-end: to right;
  --ec-to-start: to left;
  --ec-flip: 1;
}

[dir="rtl"] {
  --ec-to-end: to left;
  --ec-to-start: to right;
  --ec-flip: -1;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body.ec-body {
  font-family: var(--ec-font);
  color: var(--ec-ink-2);
  background-color: var(--ec-paper);
  background-image:
    linear-gradient(rgba(67, 97, 238, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 97, 238, .035) 1px, transparent 1px);
  background-size: 28px 28px;
  font-size: 15px;
  letter-spacing: 0;
}

body.ec-body h1, body.ec-body h2, body.ec-body h3,
body.ec-body h4, body.ec-body h5, body.ec-body h6 {
  font-family: var(--ec-font-display);
  color: var(--ec-ink);
  letter-spacing: 0;
}

body.ec-body a { color: var(--ec-primary); }
body.ec-body a:hover { color: var(--ec-primary-2); }
::selection { background: var(--ec-yellow); color: var(--ec-ink); }

* { scrollbar-width: thin; scrollbar-color: #c7cde0 transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #c7cde0; border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

body.ec-body .text-primary { color: var(--ec-primary) !important; }
body.ec-body .bg-primary { background-color: var(--ec-primary) !important; }

/* --------------------------------------------------------------------------
   Preloader
   -------------------------------------------------------------------------- */
.loadscreen#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  background: var(--ec-paper);
  transition: opacity .35s ease, visibility .35s ease;
}
.loadscreen#preloader.ec-done { opacity: 0; visibility: hidden; }
.ec-loader { display: flex; gap: 10px; }
.ec-loader span {
  width: 14px; height: 34px; border-radius: 6px 6px 3px 3px;
  animation: ec-bounce 1s ease-in-out infinite;
}
.ec-loader span:nth-child(1) { background: var(--ec-red); }
.ec-loader span:nth-child(2) { background: var(--ec-yellow); animation-delay: .12s; }
.ec-loader span:nth-child(3) { background: var(--ec-green); animation-delay: .24s; }
.ec-loader span:nth-child(4) { background: var(--ec-blue); animation-delay: .36s; }
.ec-loader span:nth-child(5) { background: var(--ec-purple); animation-delay: .48s; }
.ec-loader-text { font-family: var(--ec-font-display); color: var(--ec-ink); font-size: 1.05rem; }
@keyframes ec-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* --------------------------------------------------------------------------
   Top band (sky with school doodles)
   -------------------------------------------------------------------------- */
body.ec-body .navbar-bg {
  height: 236px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='.16'%3E%3Cpath d='M24 30l6 12 13 2-9 9 2 13-12-6-12 6 2-13-9-9 13-2z'/%3E%3Cpath d='M150 24l40 40M150 24l-8 2 6 6M182 56l8 8'/%3E%3Crect x='140' y='18' width='12' height='52' rx='2' transform='rotate(-45 146 44)'/%3E%3Cpath d='M30 150h40v34H30zM50 150v34M30 160h12M58 160h12'/%3E%3Ccircle cx='170' cy='160' r='16'/%3E%3Cellipse cx='170' cy='160' rx='30' ry='9'/%3E%3Cellipse cx='170' cy='160' rx='30' ry='9' transform='rotate(60 170 160)'/%3E%3Cellipse cx='170' cy='160' rx='30' ry='9' transform='rotate(-60 170 160)'/%3E%3Cpath d='M96 96l22-10-6 24-6-8z'/%3E%3Cpath d='M118 86L102 104'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.16' font-family='Arial' font-weight='700'%3E%3Ctext x='84' y='42' font-size='20'%3EABC%3C/text%3E%3Ctext x='92' y='196' font-size='20'%3E123%3C/text%3E%3Ctext x='196' y='112' font-size='22'%3E%2B%3C/text%3E%3Ctext x='8' y='112' font-size='22'%3E%C3%B7%3C/text%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 85% -10%, rgba(255, 255, 255, .28) 0, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 15% 120%, rgba(255, 200, 61, .35) 0, rgba(255, 200, 61, 0) 40%),
    linear-gradient(118deg, #3a4fd8 0%, #4361ee 38%, #4895ef 72%, #4cc9f0 100%);
  background-size: 220px 220px, auto, auto, auto;
}
body.ec-body .navbar-bg::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: -1px; height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath fill='%23f5f6fb' d='M0 46h1440V18c-120 18-240 28-360 22S840 8 720 10 480 40 360 40 120 22 0 8z'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
body.ec-body .main-navbar { height: 74px; padding-inline: 18px 22px; }
body.ec-body .navbar .nav-link { color: #fff; }
body.ec-body .navbar .nav-link.nav-link-lg { position: relative; width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; transition: background .2s; }
body.ec-body .navbar .nav-link.nav-link-lg:hover { background: rgba(255, 255, 255, .16); }
body.ec-body .navbar .nav-link.nav-link-lg i { font-size: 17px; margin: 0; line-height: 1; }
body.ec-body .navbar .navbar-right { gap: 4px; align-items: center; }
body.ec-body .navbar .nav-link .badge {
  position: absolute; top: 4px; inset-inline-end: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; line-height: 18px; border-radius: 9px;
  font-size: 10px; font-weight: 800; border: 2px solid #4a7cf0;
}
body.ec-body .navbar .nav-link.beep:after { display: none; }

.ec-search-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; min-width: 300px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 14px;
  background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .9);
  font-family: var(--ec-font); font-size: .92rem; cursor: pointer;
  backdrop-filter: blur(6px); transition: background .2s, border-color .2s;
}
.ec-search-trigger:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .45); }
.ec-search-trigger span { flex: 1; text-align: start; }
.ec-search-trigger kbd {
  font-family: var(--ec-font); font-size: .72rem; font-weight: 700;
  background: rgba(255, 255, 255, .22); color: #fff; border-radius: 6px; padding: 2px 7px; box-shadow: none;
}

.ec-greeting { color: #fff; margin-inline-start: 18px; line-height: 1.2; }
.ec-greeting b { display: block; font-family: var(--ec-font-display); font-size: 1.05rem; font-weight: 700; }
.ec-greeting small { opacity: .85; font-size: .78rem; }

body.ec-body .navbar .ec-quick-add {
  width: 42px; height: 42px; border-radius: 14px; background: var(--ec-yellow); color: var(--ec-ink) !important;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45);
}
body.ec-body .navbar .ec-quick-add:hover { background: #ffd466 !important; transform: rotate(90deg); }
body.ec-body .navbar .ec-quick-add { transition: transform .25s ease, background .2s; }

body.ec-body .navbar .nav-link-user {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 3px 6px; padding-inline-end: 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22);
}
body.ec-body .navbar .nav-link-user img { width: 38px; height: 38px; object-fit: cover; border-radius: 12px !important; border: 2px solid rgba(255, 255, 255, .7); margin: 0 !important; }
body.ec-body .navbar .nav-link-user .ec-user-meta { line-height: 1.15; text-align: start; }
body.ec-body .navbar .nav-link-user .ec-user-meta b { display: block; font-size: .9rem; font-weight: 700; }
body.ec-body .navbar .nav-link-user .ec-user-meta small { font-size: .72rem; opacity: .85; }
body.ec-body .navbar .nav-link-user.dropdown-toggle::after { display: none; }

/* Dropdowns */
body.ec-body .dropdown-menu {
  border: 1px solid var(--ec-line); border-radius: 16px; box-shadow: var(--ec-shadow-lg); padding: 8px;
  font-family: var(--ec-font);
}
body.ec-body .dropdown-menu .dropdown-item { border-radius: 10px; padding: 9px 12px; font-size: .9rem; color: var(--ec-ink-2); font-weight: 500; }
body.ec-body .dropdown-menu .dropdown-item:hover, body.ec-body .dropdown-menu .dropdown-item:focus { background: var(--ec-primary-soft); color: var(--ec-primary); }
body.ec-body .dropdown-menu .dropdown-item.has-icon i { width: 18px; text-align: center; margin-inline-end: 10px; margin-inline-start: 0; }
body.ec-body .dropdown-menu .dropdown-title { font-family: var(--ec-font-display); color: var(--ec-muted); font-size: .78rem; padding: 6px 12px; text-transform: none; letter-spacing: 0; }
body.ec-body .dropdown-list { width: 360px !important; padding: 0; overflow: hidden; }
body.ec-body .dropdown-list .dropdown-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: linear-gradient(var(--ec-to-end), var(--ec-primary-soft), #fff); border-bottom: 1px solid var(--ec-line);
  font-family: var(--ec-font-display); color: var(--ec-ink); font-size: 1rem; font-weight: 700;
}
body.ec-body .dropdown-list .dropdown-header a { font-family: var(--ec-font); font-size: .78rem; font-weight: 700; }
body.ec-body .dropdown-list .dropdown-list-content { max-height: 340px; overflow-y: auto; padding: 6px; }
body.ec-body .dropdown-list .dropdown-item { white-space: normal; gap: 12px; align-items: flex-start; }
body.ec-body .dropdown-list .dropdown-item .dropdown-item-desc { font-size: .85rem; color: var(--ec-ink-2); }
body.ec-body .dropdown-list .dropdown-item .dropdown-item-desc p { margin: 0; color: var(--ec-muted); font-size: .8rem; }
body.ec-body .dropdown-list .dropdown-item .time { color: var(--ec-muted); font-size: .72rem; margin-top: 3px; }
body.ec-body .dropdown-list .dropdown-item-icon { width: 38px; height: 38px; line-height: 38px; border-radius: 12px; flex: 0 0 38px; text-align: center; margin: 0; }
body.ec-body .dropdown-list .dropdown-item-avatar img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
body.ec-body .dropdown-list .dropdown-footer { padding: 10px; border-top: 1px solid var(--ec-line); background: #fafbff; }
body.ec-body .dropdown-list .dropdown-footer a { font-weight: 700; font-size: .85rem; }
.ec-dd-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 10px; color: var(--ec-muted); font-size: .85rem; }
.ec-dd-empty i { font-size: 26px; color: #cfd5e6; }

body.ec-body .navbar .dropdown-menu.ec-quick-menu { width: 330px; }
body.ec-body .navbar .dropdown-menu .ec-logout { color: #e04848; }
body.ec-body .navbar .dropdown-menu .ec-logout:hover { background: #ffe9e9; color: #c43b3b; }
.ec-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ec-quick-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center;
  padding: 12px 6px; border-radius: 14px; color: var(--ec-ink-2) !important; font-size: .78rem; font-weight: 700; text-decoration: none !important;
  transition: background .2s, transform .2s;
}
.ec-quick-grid a:hover { background: var(--ec-primary-soft); transform: translateY(-2px); }
.ec-quick-grid a i { width: 40px; height: 40px; line-height: 40px; border-radius: 13px; font-size: 16px; color: #fff; }

.ec-flag { width: 22px; height: 16px; border-radius: 4px; object-fit: cover; margin-inline-end: 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.dropdown-item.ec-current { background: var(--ec-primary-soft); color: var(--ec-primary) !important; font-weight: 700; }

/* --------------------------------------------------------------------------
   Sidebar — the chalkboard
   -------------------------------------------------------------------------- */
body.ec-body .main-sidebar {
  background:
    linear-gradient(var(--ec-to-start), var(--ec-wood) 0, var(--ec-wood-2) 6px, rgba(0, 0, 0, .25) 6px, rgba(0, 0, 0, 0) 14px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 10%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 55%),
    radial-gradient(ellipse at 70% 85%, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, var(--ec-board) 0%, var(--ec-board-2) 100%);
  box-shadow: 0 0 40px -10px rgba(10, 30, 25, .5);
}
/* Off-canvas drawer must sit above Stisla's body.sidebar-show::before backdrop (891). */
@media (max-width: 1024px) {
  body.ec-body .main-sidebar { z-index: 892; }
}
body.ec-body #sidebar-wrapper { padding-inline-end: 6px; }

body.ec-body .main-sidebar .sidebar-brand { height: auto; line-height: 1; padding: 22px 18px 14px; text-align: start; }
body.ec-body .main-sidebar .sidebar-brand a { display: flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; color: #fff; }
.ec-logo-mark {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ec-yellow); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6), inset 0 -3px 0 rgba(0, 0, 0, .12);
  transform: rotate(-6deg);
}
.ec-logo-mark svg { width: 30px; height: 30px; }
.ec-logo-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 15px; background: #fff; }
.ec-brand-text b { display: block; font-family: var(--ec-font-display); font-size: 1.35rem; font-weight: 800; color: #fff; line-height: 1.1; }
.ec-brand-text small { display: block; margin-top: 3px; font-size: .72rem; color: rgba(238, 245, 241, .65); font-weight: 500; }
body.ec-body .main-sidebar .sidebar-brand-sm { display: none; }
body.ec-body .main-sidebar .sidebar-brand-sm a { justify-content: center; }

.ec-sidebar-user {
  margin: 4px 16px 14px; padding: 10px; border-radius: 16px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .06); border: 1px dashed rgba(238, 245, 241, .22);
}
.ec-sidebar-user img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; border: 2px solid rgba(255, 255, 255, .5); }
.ec-sidebar-user b { display: block; color: #fff; font-size: .88rem; font-weight: 700; line-height: 1.2; }
.ec-sidebar-user small { color: var(--ec-yellow); font-size: .72rem; font-weight: 700; }

body.ec-body .main-sidebar .sidebar-menu { padding-bottom: 20px; }
body.ec-body .main-sidebar .sidebar-menu li.menu-header {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 22px 6px; color: rgba(255, 214, 102, .9);
  font-family: var(--ec-font-display); font-size: .78rem; font-weight: 700; letter-spacing: 0; text-transform: none;
}
body.ec-body .main-sidebar .sidebar-menu li.menu-header::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(var(--ec-to-end), rgba(238, 245, 241, .25) 0 6px, transparent 6px 10px); }
body.ec-body .main-sidebar .sidebar-menu li.menu-header:not(:first-child) { margin-top: 4px; }

body.ec-body .main-sidebar .sidebar-menu li a {
  height: 44px; margin: 2px 12px; padding: 0 10px; width: auto; border-radius: 13px;
  color: rgba(238, 245, 241, .82); font-size: .92rem; font-weight: 500; letter-spacing: 0;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
body.ec-body .main-sidebar .sidebar-menu li a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
body.ec-body .main-sidebar .sidebar-menu > li > a > i:first-child {
  width: 32px; height: 32px; line-height: 32px; flex: 0 0 32px;
  margin: 0; margin-inline-end: 12px; border-radius: 10px; text-align: center; font-size: 14px;
  color: #fff; background: var(--ec-ic, rgba(255, 255, 255, .12));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14);
}
body.ec-body .main-sidebar .sidebar-menu li a span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ec-body .main-sidebar .sidebar-menu li a.has-dropdown::after {
  content: "\f107"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 12px;
  position: static; transform: none; margin-inline-start: 6px; opacity: .6; transition: transform .25s;
}
body.ec-body .main-sidebar .sidebar-menu li.active > a.has-dropdown::after { transform: rotate(180deg); }

/* Current page = .ec-current (Stisla's scripts.js owns .active for the accordion). */
body.ec-body .main-sidebar .sidebar-menu > li.ec-current > a {
  background: var(--ec-yellow); color: var(--ec-ink) !important; font-weight: 700;
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .7);
}
body.ec-body .main-sidebar .sidebar-menu > li.ec-current > a > i:first-child { background: var(--ec-ink); color: var(--ec-yellow); }
body.ec-body .main-sidebar .sidebar-menu > li.active > a.has-dropdown { background: rgba(255, 255, 255, .1); color: #fff !important; font-weight: 600; }
body.ec-body .main-sidebar .sidebar-menu > li.ec-open > a.has-dropdown { box-shadow: inset calc(4px * var(--ec-flip)) 0 0 var(--ec-yellow); }

body.ec-body .main-sidebar .sidebar-menu li ul.dropdown-menu { background: transparent; padding: 2px 0 6px; margin: 0; }
body.ec-body .main-sidebar .sidebar-menu li ul.dropdown-menu li a {
  height: 36px; margin: 1px 12px; padding: 0; padding-inline-start: 56px; padding-inline-end: 10px; background: transparent;
  color: rgba(238, 245, 241, .7); font-size: .87rem; font-weight: 500; position: relative;
}
body.ec-body .main-sidebar .sidebar-menu li ul.dropdown-menu li a::before {
  content: ""; position: absolute; inset-inline-start: 36px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; border: 2px solid rgba(238, 245, 241, .45); transition: all .2s;
}
body.ec-body .main-sidebar .sidebar-menu li ul.dropdown-menu li a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
body.ec-body .main-sidebar .sidebar-menu li ul.dropdown-menu li.ec-current > a { color: var(--ec-yellow); font-weight: 700; background: transparent; }
body.ec-body .main-sidebar .sidebar-menu li ul.dropdown-menu li.ec-current > a::before { background: var(--ec-yellow); border-color: var(--ec-yellow); box-shadow: 0 0 0 4px rgba(255, 200, 61, .2); }

.ec-sidebar-card {
  margin: 10px 18px 26px; padding: 16px; border-radius: 18px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 200, 61, .95), rgba(255, 159, 67, .95)); color: var(--ec-ink);
}
.ec-sidebar-card b { font-family: var(--ec-font-display); font-size: .95rem; display: block; margin-bottom: 4px; }
.ec-sidebar-card p { font-size: .78rem; margin: 0; line-height: 1.6; color: rgba(29, 37, 69, .85); }
.ec-sidebar-card i { position: absolute; inset-inline-end: -8px; bottom: -10px; font-size: 64px; opacity: .14; }

/* Mini sidebar */
body.ec-body.sidebar-mini .main-sidebar:after { background: linear-gradient(180deg, var(--ec-board) 0%, var(--ec-board-2) 100%); }
body.ec-body.sidebar-mini .main-sidebar .sidebar-brand { display: none; }
body.ec-body.sidebar-mini .main-sidebar .sidebar-brand-sm { display: block; padding: 18px 0 10px; }
body.ec-body.sidebar-mini .main-sidebar .sidebar-brand-sm .ec-logo-mark { flex-basis: 40px; width: 40px; height: 40px; }
body.ec-body.sidebar-mini .ec-sidebar-user, body.ec-body.sidebar-mini .ec-sidebar-card { display: none; }
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu li.menu-header { display: none; }
body.ec-body.sidebar-mini #sidebar-wrapper { padding-inline-end: 0; }
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu > li { padding: 4px 0; }
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu > li > a { width: 46px; height: 44px; margin: 0 auto; padding: 0; justify-content: center; }
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu > li > a > i:first-child { margin: 0; font-size: 14px; }
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu > li > a.has-dropdown::after { display: none; }
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu > li.active > a { background: rgba(255, 255, 255, .1); box-shadow: none; }
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu > li.ec-current > a,
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu > li.ec-open > a { background: var(--ec-yellow); box-shadow: none; }
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu { background: var(--ec-board); border-radius: 14px; padding: 8px 0; box-shadow: var(--ec-shadow-lg); }
body.ec-body.sidebar-mini .main-sidebar .dropdown-menu .dropdown-title { color: rgba(255, 214, 102, .95) !important; font-family: var(--ec-font-display); padding: 6px 16px; }
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu li a { padding-inline-start: 34px; background-color: transparent; }
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu li a::before { inset-inline-start: 14px; }
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu li > a:focus,
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu li.active > a,
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu li a:hover { background-color: rgba(255, 255, 255, .08) !important; color: #fff; }
body.ec-body.sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu li.ec-current > a { color: var(--ec-yellow); }

/* --------------------------------------------------------------------------
   Main content & page header
   -------------------------------------------------------------------------- */
body.ec-body .main-content { padding-top: 92px; min-height: calc(100vh - 70px); }
body.ec-body .section { position: relative; z-index: 1; }
body.ec-body .section .section-header {
  background: transparent; box-shadow: none; border-radius: 0; padding: 0 4px; margin-bottom: 28px;
  min-height: 56px; flex-wrap: wrap; gap: 10px;
}
body.ec-body .section .section-header h1 {
  color: #fff; font-family: var(--ec-font-display); font-size: 1.75rem; font-weight: 800;
  display: inline-flex; align-items: center; gap: 12px; text-shadow: 0 2px 10px rgba(20, 30, 90, .25);
}
body.ec-body .section .section-header h1::before {
  content: ""; width: 12px; height: 34px; border-radius: 6px; background: var(--ec-yellow);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
}
body.ec-body .section .section-header .section-header-back .btn-icon { color: #fff; }
body.ec-body .section .section-header .section-header-breadcrumb { margin-inline-start: auto; flex-basis: auto; display: flex; flex-wrap: wrap; gap: 6px; }
body.ec-body .section .section-header .section-header-breadcrumb .breadcrumb-item,
body.ec-body .section .section-header .breadcrumb-item {
  padding: 6px 14px; border-radius: 30px; font-size: .82rem; font-weight: 600;
  background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
}
body.ec-body .section .section-header .breadcrumb-item::before { display: none; }
body.ec-body .section .section-header .breadcrumb-item a { color: #fff; }
body.ec-body .section .section-header .breadcrumb-item.active { background: #fff; color: var(--ec-primary); }
body.ec-body .section .section-header .breadcrumb-item.active a { color: var(--ec-primary); }
/* Safety net for any leftover empty <h1> before the real title. */
body.ec-body .section .section-header h1:has(+ h1) { display: none; }
body.ec-body .section .section-header .btn-primary,
body.ec-body .section .section-header .section-header-button .btn { background: #fff !important; color: var(--ec-primary) !important; border-color: #fff !important; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .5); }
body.ec-body .section .section-title { font-family: var(--ec-font-display); color: var(--ec-ink); }
body.ec-body .section .section-title::before { background-color: var(--ec-yellow); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
body.ec-body .card {
  border-radius: var(--ec-radius); border: 1px solid rgba(29, 37, 69, .06); box-shadow: var(--ec-shadow); margin-bottom: 26px;
}
body.ec-body .card .card-header {
  border-bottom: 1px dashed var(--ec-line); min-height: 64px; padding: 16px 22px;
}
body.ec-body .card .card-header h4 {
  font-family: var(--ec-font-display); color: var(--ec-ink); font-size: 1.08rem; font-weight: 700; letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 10px; line-height: 1.4;
}
body.ec-body .card .card-header h4::before {
  content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--ec-yellow); transform: rotate(45deg); flex: 0 0 9px;
}
body.ec-body .card .card-body { padding: 22px; }
body.ec-body .card .card-footer { border-top: 1px dashed var(--ec-line); padding: 16px 22px; }
body.ec-body .card.card-primary { border-top: 0; }
body.ec-body .card.card-primary::before, body.ec-body .card.card-success::before, body.ec-body .card.card-warning::before, body.ec-body .card.card-danger::before, body.ec-body .card.card-info::before {
  content: ""; display: block; height: 5px; border-radius: var(--ec-radius) var(--ec-radius) 0 0;
  background: linear-gradient(var(--ec-to-end), var(--ec-primary), var(--ec-sky));
}

/* Stisla statistic cards -> crayon tiles */
body.ec-body .card.card-statistic-1, body.ec-body .card.card-statistic-2 {
  display: flex; align-items: center; gap: 16px; padding: 20px; overflow: hidden;
}
body.ec-body .card.card-statistic-1 .card-icon {
  width: 60px; height: 60px; line-height: 60px; margin: 0; border-radius: 18px; float: none; flex: 0 0 60px;
  box-shadow: 0 12px 20px -12px rgba(0, 0, 0, .5);
}
body.ec-body .card.card-statistic-1 .card-icon i { font-size: 24px; line-height: 60px; }
body.ec-body .card.card-statistic-1 .card-wrap { padding: 0; }
body.ec-body .card.card-statistic-1 .card-header { padding: 0; min-height: 0; border: 0; }
body.ec-body .card.card-statistic-1 .card-header h4 { color: var(--ec-muted); font-family: var(--ec-font); font-size: .9rem; font-weight: 600; }
body.ec-body .card.card-statistic-1 .card-header h4::before { display: none; }
body.ec-body .card.card-statistic-1 .card-body { padding: 4px 0 0; font-family: var(--ec-font-display); font-size: 1.8rem; font-weight: 800; color: var(--ec-ink); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
body.ec-body .btn {
  font-family: var(--ec-font); font-weight: 700; border-radius: var(--ec-radius-sm); padding: .48rem 1.1rem; font-size: .9rem;
  letter-spacing: 0; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
body.ec-body .btn:not(:disabled):not(.disabled):hover { transform: translateY(-1px); }
body.ec-body .btn:not(:disabled):not(.disabled):active { transform: translateY(0); }
body.ec-body .btn i { margin-inline-end: 4px; }
body.ec-body .btn.btn-icon i, body.ec-body .btn.btn-sm i:only-child { margin: 0; }
body.ec-body .btn-lg { padding: .7rem 1.4rem; font-size: 1rem; border-radius: 14px; }
body.ec-body .btn-sm { padding: .3rem .7rem; font-size: .8rem; border-radius: 10px; }
body.ec-body .btn-primary { background: linear-gradient(135deg, var(--ec-primary), var(--ec-primary-2)) !important; border: 0 !important; color: #fff !important; box-shadow: 0 10px 20px -10px rgba(67, 97, 238, .8) !important; }
body.ec-body .btn-primary:hover { box-shadow: 0 14px 24px -10px rgba(67, 97, 238, .9) !important; }
body.ec-body .btn-success { background: var(--ec-green) !important; border-color: var(--ec-green) !important; box-shadow: 0 10px 20px -12px rgba(29, 191, 132, .9) !important; }
body.ec-body .btn-danger { background: var(--ec-red) !important; border-color: var(--ec-red) !important; box-shadow: 0 10px 20px -12px rgba(255, 107, 107, .9) !important; }
body.ec-body .btn-warning { background: var(--ec-yellow) !important; border-color: var(--ec-yellow) !important; color: var(--ec-ink) !important; box-shadow: 0 10px 20px -12px rgba(245, 165, 36, .9) !important; }
body.ec-body .btn-info { background: var(--ec-sky) !important; border-color: var(--ec-sky) !important; box-shadow: 0 10px 20px -12px rgba(76, 201, 240, .9) !important; }
body.ec-body .btn-outline-primary { border: 2px solid var(--ec-primary) !important; color: var(--ec-primary) !important; background: #fff !important; box-shadow: none !important; }
body.ec-body .btn-outline-primary:hover { background: var(--ec-primary) !important; color: #fff !important; }
body.ec-body .btn-outline-success { border-width: 2px; }
body.ec-body .btn-outline-danger { border-width: 2px; }
body.ec-body .btn-light, body.ec-body .btn-secondary { background: #eef0f7 !important; border-color: #eef0f7 !important; color: var(--ec-ink-2) !important; box-shadow: none !important; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
body.ec-body label, body.ec-body .form-group > label, body.ec-body .control-label {
  font-weight: 700; color: var(--ec-ink); font-size: .86rem; letter-spacing: 0; text-transform: none;
}
body.ec-body .form-control, body.ec-body .custom-select, body.ec-body .input-group-text,
body.ec-body select.form-control:not([size]):not([multiple]) {
  height: auto; min-height: 44px; border-radius: var(--ec-radius-sm); border: 1.5px solid #e1e5f0; background-color: #fbfcff;
  font-family: var(--ec-font); font-size: .93rem; color: var(--ec-ink); padding: .55rem .9rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
body.ec-body textarea.form-control { min-height: 96px; }
body.ec-body .form-control:focus, body.ec-body .custom-select:focus {
  border-color: var(--ec-primary); background-color: #fff; box-shadow: 0 0 0 4px rgba(67, 97, 238, .14);
}
body.ec-body .form-control::placeholder { color: #a7adc4; }
body.ec-body .input-group-text { background: var(--ec-primary-soft); color: var(--ec-primary); border-color: #e1e5f0; }
body.ec-body .invalid-feedback, body.ec-body .text-danger { font-weight: 600; }
body.ec-body .custom-switch-input:checked ~ .custom-switch-indicator { background: var(--ec-green); }
body.ec-body .custom-switch-indicator { border-radius: 20px; }
body.ec-body .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--ec-primary); border-color: var(--ec-primary); }

/* vue-select */
body.ec-body .v-select .vs__dropdown-toggle { min-height: 44px; border-radius: var(--ec-radius-sm); border: 1.5px solid #e1e5f0; background: #fbfcff; }
body.ec-body .v-select.vs--open .vs__dropdown-toggle { border-color: var(--ec-primary); box-shadow: 0 0 0 4px rgba(67, 97, 238, .14); }
body.ec-body .v-select .vs__dropdown-menu { border-radius: 0 0 12px 12px; border-color: #e1e5f0; font-family: var(--ec-font); }
body.ec-body .v-select .vs__dropdown-option--highlight { background: var(--ec-primary); }
body.ec-body .v-select .vs__selected { font-family: var(--ec-font); }

/* --------------------------------------------------------------------------
   Tables & DataTables
   -------------------------------------------------------------------------- */
body.ec-body .table { color: var(--ec-ink-2); }
body.ec-body .table:not(.table-sm):not(.table-md):not(.dataTable) td,
body.ec-body .table:not(.table-sm):not(.table-md):not(.dataTable) th { height: 54px; }
body.ec-body .table thead th, body.ec-body .table:not(.table-sm) thead th {
  background: #f1f4ff; color: var(--ec-ink); border: 0 !important; font-weight: 800; font-size: .8rem;
  text-transform: none; letter-spacing: 0; padding-top: 14px; padding-bottom: 14px; vertical-align: middle; white-space: nowrap;
}
body.ec-body .table thead th:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; }
body.ec-body .table thead th:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
body.ec-body .table td { border-top: 0; border-bottom: 1px dashed var(--ec-line); vertical-align: middle; font-size: .9rem; }
body.ec-body .table.table-bordered, body.ec-body .table.table-bordered td, body.ec-body .table.table-bordered th { border-left: 0; border-right: 0; border-top: 0; }
body.ec-body .table-striped tbody tr:nth-of-type(odd) { background-color: rgba(241, 244, 255, .45); }
body.ec-body .table-hover tbody tr:hover, body.ec-body table.dataTable tbody tr:hover { background-color: #fff8e1 !important; }
body.ec-body table.dataTable { border-collapse: separate !important; border-spacing: 0; margin-top: 12px !important; margin-bottom: 12px !important; }
body.ec-body table.dataTable tbody td { padding: 12px 14px; }
body.ec-body .avatar img, body.ec-body table img.img-fluid { border-radius: 12px; object-fit: cover; }
body.ec-body table .avatar { width: 42px; height: 42px; }

body.ec-body .dataTables_wrapper { font-family: var(--ec-font); }
body.ec-body .dataTables_wrapper .dataTables_filter { text-align: end; }
body.ec-body .dataTables_wrapper .dataTables_filter label { font-weight: 600; color: var(--ec-muted); width: 100%; margin: 0; }
body.ec-body .dataTables_wrapper .dataTables_filter input {
  width: 100% !important; max-width: 320px; margin: 0 !important; height: 44px; border-radius: 14px; border: 1.5px solid #e1e5f0;
  padding-inline-start: 40px; padding-inline-end: 12px; background-color: #fbfcff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a91ad' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center;
}
[dir="rtl"] body.ec-body .dataTables_wrapper .dataTables_filter input { background-position: right 14px center; }
body.ec-body .dataTables_wrapper .dataTables_filter input:focus { border-color: var(--ec-primary); box-shadow: 0 0 0 4px rgba(67, 97, 238, .14); outline: 0; }
body.ec-body .dataTables_wrapper .dataTables_length { display: inline-block; float: none; margin: 0; margin-inline-end: 8px; }
body.ec-body table.dataTable thead th, body.ec-body table.dataTable thead td,
body.ec-body table.dataTable tfoot th, body.ec-body table.dataTable tfoot td { text-align: start; }
body.ec-body .dataTables_wrapper .dataTables_length select { height: 40px; min-height: 40px; border-radius: 12px; padding-block: 0; }
body.ec-body .dataTables_wrapper .dataTables_info { color: var(--ec-muted); font-size: .85rem; padding-top: 14px !important; }
body.ec-body .dataTables_wrapper .dataTables_paginate { padding-top: 10px; }
body.ec-body .dataTables_wrapper .dataTables_paginate .pagination { gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
body.ec-body .page-item .page-link {
  border: 0; border-radius: 11px !important; min-width: 38px; height: 38px; line-height: 38px; padding: 0 10px; text-align: center;
  background: #f1f4ff; color: var(--ec-ink-2); font-weight: 700; margin: 0;
}
body.ec-body .page-item.active .page-link { background: var(--ec-primary); color: #fff; box-shadow: 0 8px 16px -8px rgba(67, 97, 238, .9); }
body.ec-body .page-item.disabled .page-link { opacity: .5; background: #f1f4ff; }
body.ec-body .dataTables_wrapper .dataTables_processing {
  border: 0; border-radius: 14px; box-shadow: var(--ec-shadow-lg); background: #fff; color: var(--ec-primary); font-weight: 700; padding: 14px !important; z-index: 5;
}
body.ec-body .dt-buttons { display: inline-flex; gap: 6px; }
body.ec-body .dt-buttons .btn, body.ec-body .dt-buttons .dt-button {
  background: #fff3cf !important; color: #8a5a00 !important; border: 0 !important; border-radius: 12px !important; box-shadow: none !important; height: 40px; font-weight: 800;
}
body.ec-body .dt-button-collection { border-radius: 14px !important; border: 1px solid var(--ec-line) !important; box-shadow: var(--ec-shadow-lg) !important; padding: 6px !important; }
body.ec-body .dt-button-collection .dt-button, body.ec-body .dt-button-collection .dropdown-item { border-radius: 10px !important; font-weight: 600; }
body.ec-body td.dataTables_empty { padding: 30px 10px !important; background: #fff !important; }

/* --------------------------------------------------------------------------
   Badges, alerts, tabs, misc
   -------------------------------------------------------------------------- */
body.ec-body .badge { border-radius: 30px; padding: .42em .9em; font-weight: 700; font-size: .75rem; letter-spacing: 0; }
body.ec-body .badge-primary { background: var(--ec-primary-soft); color: var(--ec-primary); }
body.ec-body .badge-success { background: #dcf8ec; color: #0f8a5c; }
body.ec-body .badge-danger { background: #ffe3e3; color: #d63b3b; }
body.ec-body .badge-warning { background: #fff2cf; color: #a46a00; }
body.ec-body .badge-info { background: #dff6fd; color: #0b84a8; }
body.ec-body .badge-light { background: #eef0f7; color: var(--ec-ink-2); }
body.ec-body .navbar .badge-danger { background: var(--ec-red); color: #fff; }
body.ec-body .navbar .badge-warning { background: var(--ec-yellow); color: var(--ec-ink); }
body.ec-body [class*="badge-outline-"] { border-radius: 30px; padding: .4em .9em; font-weight: 700; border-width: 1.5px; }

body.ec-body .alert { border-radius: 14px; border: 0; font-weight: 600; }
body.ec-body .alert-primary { background: var(--ec-primary); }
body.ec-body .nav-pills .nav-link { border-radius: 12px; font-weight: 700; }
body.ec-body .nav-pills .nav-link.active { background: var(--ec-primary); box-shadow: 0 8px 16px -8px rgba(67, 97, 238, .9); }
body.ec-body .nav-tabs .nav-link { font-weight: 700; }
body.ec-body .nav-tabs .nav-link.active { color: var(--ec-primary); }
body.ec-body .progress { border-radius: 20px; background: #eef0f7; }
body.ec-body .progress-bar { border-radius: 20px; background: linear-gradient(var(--ec-to-end), var(--ec-primary), var(--ec-sky)); }
body.ec-body .list-group-item { border-color: var(--ec-line); }
body.ec-body hr { border-top: 1px dashed var(--ec-line); }

/* Modals */
body.ec-body .modal-content { border: 0; border-radius: 22px; box-shadow: var(--ec-shadow-lg); overflow: hidden; }
body.ec-body .modal-header {
  padding: 18px 24px; border-bottom: 1px dashed var(--ec-line); align-items: center;
  background: linear-gradient(var(--ec-to-end), var(--ec-primary-soft), #fff);
}
body.ec-body .modal-header .modal-title { font-family: var(--ec-font-display); color: var(--ec-ink); font-weight: 700; }
body.ec-body .modal-header .close { margin: 0; margin-inline-start: auto; padding: 0; width: 34px; height: 34px; border-radius: 10px; background: #fff; opacity: 1; color: var(--ec-ink-2); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
body.ec-body .modal-body { padding: 24px; }
body.ec-body .modal-footer { border-top: 1px dashed var(--ec-line); padding: 16px 24px; }
body.ec-body .modal-backdrop.show { opacity: .45; background: #0d1336; }

/* SweetAlert2 & toastr */
.swal2-popup { border-radius: 24px !important; font-family: var(--ec-font) !important; padding: 28px !important; }
.swal2-title { font-family: var(--ec-font-display) !important; color: var(--ec-ink) !important; }
.swal2-styled, .swal2-popup .btn { border-radius: 12px !important; font-weight: 700 !important; }
.swal2-popup .btn { margin: 6px !important; }
#toast-container > div { border-radius: 16px !important; box-shadow: var(--ec-shadow-lg) !important; opacity: 1 !important; font-family: var(--ec-font); font-weight: 600; padding-top: 16px; padding-bottom: 16px; }
#toast-container > .toast-success { background-color: var(--ec-green); }
#toast-container > .toast-error { background-color: var(--ec-red); }
#toast-container > .toast-warning { background-color: var(--ec-orange); }
#toast-container > .toast-info { background-color: var(--ec-blue); }

/* Footer */
body.ec-body .main-footer {
  border-top: 0; margin-top: 10px; color: var(--ec-muted); font-size: .85rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
body.ec-body .main-footer .footer-left, body.ec-body .main-footer .footer-right { float: none; }
body.ec-body .main-footer .ec-heart { color: var(--ec-red); }

/* --------------------------------------------------------------------------
   Dashboard building blocks
   -------------------------------------------------------------------------- */
.ec-hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 28px 30px; margin-bottom: 26px;
  background: #fff; box-shadow: var(--ec-shadow); border: 1px solid rgba(29, 37, 69, .06);
  display: flex; align-items: center; gap: 24px; min-height: 210px;
}
.ec-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 200, 61, .22), rgba(255, 200, 61, 0) 45%),
    radial-gradient(circle at 100% 100%, rgba(76, 201, 240, .18), rgba(76, 201, 240, 0) 45%);
  pointer-events: none;
}
.ec-hero-text { position: relative; flex: 1; min-width: 0; }
.ec-hero-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 30px;
  background: var(--ec-primary-soft); color: var(--ec-primary); font-weight: 800; font-size: .8rem; margin-bottom: 12px;
}
.ec-hero h2 { font-size: 2rem; font-weight: 800; margin: 0 0 8px; line-height: 1.25; }
.ec-hero h2 .ec-wave { display: inline-block; transform-origin: 70% 70%; animation: ec-wave 2.2s ease-in-out infinite; }
@keyframes ec-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
.ec-hero p { color: var(--ec-ink-2); margin: 0; font-size: 1rem; line-height: 1.8; }
.ec-hero-dates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ec-hero-dates span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: #f6f7fc; font-weight: 700; font-size: .85rem; color: var(--ec-ink); }
.ec-hero-dates i { color: var(--ec-primary); }
.ec-hero-art { position: relative; flex: 0 0 300px; max-width: 34%; align-self: flex-end; margin-bottom: -28px; }
.ec-hero-art img { width: 100%; display: block; }
.ec-hero-quote {
  margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: #fffaf0; border-inline-start: 4px solid var(--ec-yellow);
  font-size: .9rem; color: #6b5420; font-weight: 600;
}

.ec-kpi {
  position: relative; overflow: hidden; display: block; border-radius: 22px; padding: 20px; margin-bottom: 24px; color: #fff !important;
  background: linear-gradient(135deg, var(--k1), var(--k2)); box-shadow: 0 18px 30px -18px var(--k2);
  text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; min-height: 138px;
}
.ec-kpi:hover { transform: translateY(-4px); box-shadow: 0 24px 34px -18px var(--k2); }
.ec-kpi::after {
  content: ""; position: absolute; inset-inline-end: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.ec-kpi::before {
  content: ""; position: absolute; inset-inline-end: 30px; bottom: -40px; width: 90px; height: 90px; border-radius: 50%;
  border: 14px solid rgba(255, 255, 255, .1);
}
.ec-kpi-icon {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .22); font-size: 20px; margin-bottom: 14px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08);
}
.ec-kpi-value { position: relative; z-index: 1; font-family: var(--ec-font-display); font-size: 2.1rem; font-weight: 800; line-height: 1; }
.ec-kpi-label { position: relative; z-index: 1; font-weight: 700; opacity: .92; margin-top: 6px; font-size: .92rem; }
.ec-kpi-link { position: absolute; inset-inline-end: 18px; bottom: 16px; z-index: 1; width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .22); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; transform: scaleX(var(--ec-flip)); }
.ec-k-blue { --k1: #5b7cff; --k2: #3a50d9; }
.ec-k-red { --k1: #ff8a8a; --k2: #f05454; }
.ec-k-yellow { --k1: #ffd25e; --k2: #f5a524; }
.ec-k-green { --k1: #36d399; --k2: #12a36d; }
.ec-k-purple { --k1: #a78bfa; --k2: #7c4ddc; }
.ec-k-teal { --k1: #2dd4bf; --k2: #0d9488; }
.ec-k-pink { --k1: #ff8cc6; --k2: #e8508f; }
.ec-k-orange { --k1: #ffb36b; --k2: #f57c1f; }
.ec-k-yellow, .ec-k-yellow:hover { color: #3b2a00 !important; }
.ec-k-yellow .ec-kpi-icon, .ec-k-yellow .ec-kpi-link { background: rgba(255, 255, 255, .35); }

.ec-quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.ec-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: 18px 10px; border-radius: 18px; background: #f8f9fe; border: 1.5px dashed #dfe4f2;
  color: var(--ec-ink) !important; font-weight: 700; font-size: .88rem; text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s;
}
.ec-action:hover { transform: translateY(-3px); background: #fff; border-color: transparent; box-shadow: var(--ec-shadow); }
.ec-action i {
  width: 50px; height: 50px; line-height: 50px; border-radius: 16px; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--k1), var(--k2)); box-shadow: 0 10px 18px -10px var(--k2);
}

/* Cork bulletin board with sticky notes */
.ec-board-card .card-body { padding: 18px; }
.ec-cork {
  border-radius: 18px; padding: 22px 18px 10px; min-height: 260px;
  background-color: #c99b62;
  background-image:
    radial-gradient(rgba(92, 56, 20, .35) 1px, transparent 1.6px),
    radial-gradient(rgba(255, 236, 200, .25) 1px, transparent 1.6px);
  background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px;
  box-shadow: inset 0 0 0 8px #8a5a2b, inset 0 0 0 10px #6e4520, inset 0 10px 30px rgba(0, 0, 0, .25);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; align-content: start;
}
.ec-note {
  position: relative; padding: 22px 16px 16px; min-height: 130px; color: #3d3418;
  background: var(--n, #fff3a8); box-shadow: 0 10px 16px -10px rgba(0, 0, 0, .55);
  transform: rotate(var(--r, -1.5deg)); transition: transform .2s ease; border-radius: 2px 2px 14px 2px;
}
.ec-note:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.ec-note::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff9a9a, #d93a3a 60%, #9c1f1f); box-shadow: 0 3px 4px rgba(0, 0, 0, .4);
}
.ec-note h6 { font-family: var(--ec-font-display); color: #2b2410; font-weight: 800; margin-bottom: 6px; font-size: .98rem; }
.ec-note p { font-size: .82rem; margin: 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ec-note small { display: block; margin-top: 10px; font-weight: 700; opacity: .7; font-size: .72rem; }
.ec-note:nth-child(4n+1) { --n: #fff3a8; --r: -2deg; }
.ec-note:nth-child(4n+2) { --n: #c9f2ff; --r: 1.5deg; }
.ec-note:nth-child(4n+3) { --n: #ffd9e8; --r: -1deg; }
.ec-note:nth-child(4n+4) { --n: #d8f8d0; --r: 2deg; }
.ec-cork-empty { grid-column: 1 / -1; align-self: center; text-align: center; color: #fff; font-weight: 700; padding: 40px 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.ec-cork-empty i { display: block; font-size: 34px; margin-bottom: 10px; opacity: .85; }

/* Lists */
.ec-timeline { list-style: none; margin: 0; padding: 0; }
.ec-timeline li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--ec-line); }
.ec-timeline li:last-child { border-bottom: 0; }
.ec-date-chip {
  flex: 0 0 54px; height: 58px; border-radius: 14px; text-align: center; background: var(--ec-primary-soft); color: var(--ec-primary);
  display: flex; flex-direction: column; justify-content: center; line-height: 1.1; font-weight: 800;
}
.ec-date-chip b { font-family: var(--ec-font-display); font-size: 1.3rem; }
.ec-date-chip small { font-size: .7rem; font-weight: 700; }
.ec-timeline .ec-t-body { flex: 1; min-width: 0; }
.ec-timeline .ec-t-body b { display: block; color: var(--ec-ink); font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-timeline .ec-t-body small { color: var(--ec-muted); font-size: .8rem; }

.ec-class-bars { display: flex; flex-direction: column; gap: 14px; }
.ec-class-bar b { display: flex; justify-content: space-between; color: var(--ec-ink); font-size: .88rem; margin-bottom: 6px; }
.ec-class-bar b span { color: var(--ec-muted); font-weight: 700; }
.ec-class-bar .ec-track { height: 10px; border-radius: 10px; background: #eef0f7; overflow: hidden; }
.ec-class-bar .ec-fill { height: 100%; border-radius: 10px; background: linear-gradient(var(--ec-to-end), var(--k1, #5b7cff), var(--k2, #3a50d9)); width: 0; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }

.ec-ring { position: relative; width: 150px; height: 150px; margin: 6px auto 14px; }
.ec-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ec-ring .ec-ring-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ec-ring .ec-ring-val b { font-family: var(--ec-font-display); font-size: 2rem; color: var(--ec-ink); line-height: 1; }
.ec-ring .ec-ring-val small { color: var(--ec-muted); font-weight: 700; }
.ec-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; font-size: .8rem; font-weight: 700; color: var(--ec-ink-2); }
.ec-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; }

/* Profile card */
.ec-profile-card { overflow: hidden; }
.ec-profile-cover {
  height: 96px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2' opacity='.25'%3E%3Cpath d='M15 20l5 10 11 2-8 7 2 11-10-5-10 5 2-11-8-7 11-2z'/%3E%3Ccircle cx='90' cy='80' r='12'/%3E%3Cpath d='M60 30h24v18H60z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(118deg, #4361ee, #4cc9f0);
}
.ec-profile-avatar { width: 96px; height: 96px; margin-top: -70px; border-radius: 28px; object-fit: cover; border: 5px solid #fff; box-shadow: var(--ec-shadow); background: #fff; }
.ec-info-list { list-style: none; padding: 0; margin: 0; text-align: start; }
.ec-info-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--ec-line); font-size: .88rem; color: var(--ec-ink); font-weight: 600; word-break: break-word; }
.ec-info-list li:last-child { border-bottom: 0; }
.ec-info-list i { width: 34px; height: 34px; line-height: 34px; flex: 0 0 34px; text-align: center; border-radius: 10px; background: var(--ec-primary-soft); color: var(--ec-primary); }

.ec-mini-stat { border-radius: 16px; padding: 14px 16px; background: #f6f7fc; border-inline-start: 5px solid var(--c, var(--ec-primary)); }
.ec-mini-stat span { display: block; color: var(--ec-muted); font-weight: 700; font-size: .8rem; }
.ec-mini-stat b { font-family: var(--ec-font-display); font-size: 1.35rem; color: var(--ec-ink); }
.ec-mini-stat.ec-blue { --c: var(--ec-blue); } .ec-mini-stat.ec-purple { --c: var(--ec-purple); } .ec-mini-stat.ec-green { --c: var(--ec-green); }
.ec-mini-stat.ec-red { --c: var(--ec-red); } .ec-mini-stat.ec-yellow { --c: var(--ec-yellow-2); }
.ec-subtitle { font-weight: 800; color: var(--ec-ink); margin-bottom: 10px; }
.ec-line-list { list-style: none; padding: 0; margin: 0; }
.ec-line-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--ec-line); font-size: .88rem; }

.ec-empty { text-align: center; padding: 28px 10px; color: var(--ec-muted); }
.ec-empty img { width: 170px; max-width: 60%; margin-bottom: 12px; }
.ec-empty h5, .ec-empty h6 { color: var(--ec-ink); font-weight: 800; margin-bottom: 4px; }
.ec-empty p { margin: 0; font-size: .88rem; }

.ec-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 2px 16px; }
.ec-section-title h5 { margin: 0; font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.ec-section-title h5 i { width: 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 11px; background: var(--ec-yellow); color: var(--ec-ink); font-size: 14px; }
.ec-card-link { font-weight: 800; font-size: .85rem; }
.ec-chart { width: 100%; height: 330px; }

/* Icon colors for menus and actions */
.ec-c-blue { --ec-ic: linear-gradient(135deg, #5b7cff, #3a50d9); --k1: #5b7cff; --k2: #3a50d9; }
.ec-c-red { --ec-ic: linear-gradient(135deg, #ff8a8a, #f05454); --k1: #ff8a8a; --k2: #f05454; }
.ec-c-yellow { --ec-ic: linear-gradient(135deg, #ffd25e, #f5a524); --k1: #ffd25e; --k2: #f5a524; }
.ec-c-green { --ec-ic: linear-gradient(135deg, #36d399, #12a36d); --k1: #36d399; --k2: #12a36d; }
.ec-c-purple { --ec-ic: linear-gradient(135deg, #a78bfa, #7c4ddc); --k1: #a78bfa; --k2: #7c4ddc; }
.ec-c-teal { --ec-ic: linear-gradient(135deg, #2dd4bf, #0d9488); --k1: #2dd4bf; --k2: #0d9488; }
.ec-c-pink { --ec-ic: linear-gradient(135deg, #ff8cc6, #e8508f); --k1: #ff8cc6; --k2: #e8508f; }
.ec-c-orange { --ec-ic: linear-gradient(135deg, #ffb36b, #f57c1f); --k1: #ffb36b; --k2: #f57c1f; }
.ec-c-sky { --ec-ic: linear-gradient(135deg, #67d4f5, #1aa3d6); --k1: #67d4f5; --k2: #1aa3d6; }
.ec-c-slate { --ec-ic: linear-gradient(135deg, #8b95b5, #5a6488); --k1: #8b95b5; --k2: #5a6488; }
.ec-quick-grid a i { background: linear-gradient(135deg, var(--k1), var(--k2)); }

/* --------------------------------------------------------------------------
   Command palette
   -------------------------------------------------------------------------- */
.ec-palette { position: fixed; inset: 0; z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; }
.ec-palette.ec-show { display: flex; }
.ec-palette-backdrop { position: absolute; inset: 0; background: rgba(13, 19, 54, .45); backdrop-filter: blur(3px); animation: ec-fade .2s ease; }
.ec-palette-box {
  position: relative; width: 640px; max-width: 100%; background: #fff; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(13, 19, 54, .6);
  overflow: hidden; animation: ec-pop .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes ec-fade { from { opacity: 0; } }
@keyframes ec-pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.ec-palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px dashed var(--ec-line); }
.ec-palette-input i { color: var(--ec-primary); font-size: 18px; }
.ec-palette-input input { flex: 1; border: 0; outline: 0; font-family: var(--ec-font); font-size: 1.05rem; color: var(--ec-ink); background: transparent; }
.ec-palette-input kbd { font-family: var(--ec-font); background: #eef0f7; color: var(--ec-muted); box-shadow: none; border-radius: 6px; font-size: .72rem; }
.ec-palette-list { max-height: 54vh; overflow-y: auto; padding: 8px; margin: 0; list-style: none; }
.ec-palette-list li a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ec-ink) !important; text-decoration: none !important; font-weight: 600; }
.ec-palette-list li a i { width: 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 10px; background: var(--ec-primary-soft); color: var(--ec-primary); flex: 0 0 34px; }
.ec-palette-list li a small { display: block; color: var(--ec-muted); font-weight: 500; font-size: .76rem; }
.ec-palette-list li a .ec-go { margin-inline-start: auto; color: var(--ec-muted); opacity: 0; transform: scaleX(var(--ec-flip)); }
.ec-palette-list li.ec-sel a { background: var(--ec-primary); color: #fff !important; }
.ec-palette-list li.ec-sel a i { background: rgba(255, 255, 255, .2); color: #fff; }
.ec-palette-list li.ec-sel a small { color: rgba(255, 255, 255, .8); }
.ec-palette-list li.ec-sel a .ec-go { opacity: 1; color: #fff; }
.ec-palette-empty { padding: 30px; text-align: center; color: var(--ec-muted); font-weight: 600; }
.ec-palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--ec-line); background: #fafbff; color: var(--ec-muted); font-size: .76rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   Auth pages
   -------------------------------------------------------------------------- */
body.ec-auth-body { font-family: var(--ec-font); background: var(--ec-paper); color: var(--ec-ink-2); min-height: 100vh; }
.ec-auth { display: flex; min-height: 100vh; }
.ec-auth-art {
  position: relative; flex: 1.15; overflow: hidden; color: #fff; padding: 46px 52px; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 35%),
    radial-gradient(circle at 10% 90%, rgba(255, 200, 61, .35), rgba(255, 200, 61, 0) 40%),
    linear-gradient(140deg, #3a4fd8 0%, #4361ee 40%, #4895ef 75%, #4cc9f0 100%);
}
.ec-auth-art::before {
  content: ""; position: absolute; inset: 0; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='.13'%3E%3Cpath d='M24 30l6 12 13 2-9 9 2 13-12-6-12 6 2-13-9-9 13-2z'/%3E%3Cpath d='M30 150h40v34H30zM50 150v34'/%3E%3Ccircle cx='170' cy='160' r='16'/%3E%3Cellipse cx='170' cy='160' rx='30' ry='9'/%3E%3Cellipse cx='170' cy='160' rx='30' ry='9' transform='rotate(60 170 160)'/%3E%3Cpath d='M96 96l22-10-6 24-6-8z'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.13' font-family='Arial' font-weight='700'%3E%3Ctext x='84' y='42' font-size='20'%3EABC%3C/text%3E%3Ctext x='92' y='196' font-size='20'%3E123%3C/text%3E%3C/g%3E%3C/svg%3E");
}
.ec-auth-brand { position: relative; display: flex; align-items: center; gap: 14px; }
.ec-auth-brand b { font-family: var(--ec-font-display); font-size: 1.6rem; font-weight: 800; color: #fff; }
.ec-auth-brand small { display: block; opacity: .85; font-size: .82rem; }
.ec-auth-copy { position: relative; margin-top: auto; max-width: 560px; }
.ec-auth-copy h1 { font-family: var(--ec-font-display); color: #fff; font-size: 2.6rem; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.ec-auth-copy h1 mark { background: linear-gradient(transparent 58%, rgba(255, 200, 61, .85) 58%); color: #fff; padding: 0 4px; }
.ec-auth-copy p { font-size: 1.05rem; opacity: .92; line-height: 1.9; margin: 0; }
.ec-auth-features { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ec-auth-features span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 30px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); font-weight: 700; font-size: .85rem; }
.ec-auth-illustration { position: relative; width: 100%; max-width: 560px; margin: 26px 0 0; }
.ec-auth-illustration svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(13, 19, 54, .25)); }
.ec-float { animation: ec-float 6s ease-in-out infinite; }
.ec-float-2 { animation: ec-float 7s ease-in-out infinite reverse; }
@keyframes ec-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.ec-auth-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; position: relative; }
.ec-auth-lang { position: absolute; top: 22px; inset-inline-end: 24px; display: flex; gap: 6px; }
.ec-auth-lang a { padding: 6px 12px; border-radius: 10px; font-weight: 700; font-size: .82rem; color: var(--ec-ink-2); background: #fff; border: 1px solid var(--ec-line); text-decoration: none !important; }
.ec-auth-lang a.active { background: var(--ec-ink); color: #fff; border-color: var(--ec-ink); }
.ec-auth-card { width: 100%; max-width: 430px; }
.ec-auth-card .ec-logo-mark { width: 58px; height: 58px; flex-basis: 58px; border-radius: 18px; margin-bottom: 20px; }
.ec-auth-card .ec-logo-mark svg { width: 36px; height: 36px; }
.ec-auth-card h2 { font-family: var(--ec-font-display); font-weight: 800; color: var(--ec-ink); font-size: 2rem; margin-bottom: 6px; }
.ec-auth-card > p { color: var(--ec-muted); margin-bottom: 26px; }
.ec-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.ec-roles span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: #fff; border: 1.5px solid var(--ec-line); font-weight: 700; font-size: .8rem; color: var(--ec-ink-2); }
.ec-roles span i { width: 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--k1), var(--k2)); }
.ec-field { position: relative; margin-bottom: 18px; }
.ec-field label { display: block; font-weight: 800; color: var(--ec-ink); font-size: .88rem; margin-bottom: 8px; }
.ec-field .ec-input { position: relative; }
.ec-field .ec-input > i { position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%); color: var(--ec-muted); }
.ec-field input {
  width: 100%; height: 52px; border-radius: 15px; border: 1.5px solid #e1e5f0; background: #fff; padding-inline: 46px 46px;
  font-family: var(--ec-font); font-size: 1rem; color: var(--ec-ink); transition: border-color .2s, box-shadow .2s; outline: 0;
}
.ec-field input:focus { border-color: var(--ec-primary); box-shadow: 0 0 0 4px rgba(67, 97, 238, .14); }
.ec-field .ec-eye { position: absolute; top: 50%; inset-inline-end: 8px; transform: translateY(-50%); border: 0; background: transparent; color: var(--ec-muted); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; }
.ec-field .ec-eye:hover { background: #f1f3fa; color: var(--ec-ink); }
.ec-field .ec-error { display: block; margin-top: 6px; color: #e04848; font-weight: 700; font-size: .84rem; }
.ec-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-size: .88rem; }
.ec-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ec-ink-2); cursor: pointer; margin: 0; }
.ec-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ec-primary); }
.ec-row a { font-weight: 800; }
.ec-submit {
  width: 100%; height: 54px; border: 0; border-radius: 16px; font-family: var(--ec-font); font-size: 1.05rem; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--ec-primary), var(--ec-primary-2)); box-shadow: 0 16px 26px -14px rgba(67, 97, 238, .95);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform .15s, box-shadow .2s;
}
.ec-submit:hover { transform: translateY(-2px); box-shadow: 0 20px 30px -14px rgba(67, 97, 238, 1); }
.ec-submit:disabled { opacity: .8; transform: none; cursor: progress; }
.ec-submit i { transform: scaleX(var(--ec-flip)); }
.ec-auth-alert { border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-weight: 700; font-size: .88rem; background: #ffe9e9; color: #c43b3b; display: flex; gap: 10px; align-items: center; }
.ec-auth-alert.ec-ok { background: #e2f8ee; color: #10845a; }
.ec-auth-foot { margin-top: 26px; text-align: center; color: var(--ec-muted); font-size: .82rem; }

/* --------------------------------------------------------------------------
   RTL adjustments for pieces that were not flipped automatically
   -------------------------------------------------------------------------- */
[dir="rtl"] body.ec-body .float-right:not(.dropdown-menu) { float: left !important; }
[dir="rtl"] body.ec-body .text-right { text-align: left !important; }
[dir="rtl"] body.ec-body .dataTables_wrapper .dataTables_filter { text-align: left; }
[dir="rtl"] body.ec-body .dataTables_wrapper .dataTables_length label,
[dir="rtl"] body.ec-body .dataTables_wrapper .dataTables_filter label { text-align: inherit; }
[dir="rtl"] body.ec-body .fa-chevron-right:not(.ec-keep), [dir="rtl"] body.ec-body .fa-arrow-right:not(.ec-keep), [dir="rtl"] body.ec-body .fa-angle-right:not(.ec-keep) { transform: scaleX(-1); }
[dir="rtl"] body.ec-body .fa-chevron-left:not(.ec-keep), [dir="rtl"] body.ec-body .fa-arrow-left:not(.ec-keep), [dir="rtl"] body.ec-body .fa-angle-left:not(.ec-keep) { transform: scaleX(-1); }
[dir="rtl"] .swal2-popup, [dir="rtl"] #toast-container { direction: rtl; }
[dir="rtl"] body.ec-body input[type="email"], [dir="rtl"] body.ec-body input[type="tel"], [dir="rtl"] body.ec-body input[type="url"] { direction: ltr; text-align: right; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .ec-search-trigger { min-width: 220px; }
  .ec-greeting { display: none; }
}
@media (max-width: 1024px) {
  body.ec-body .navbar-bg { height: 210px; }
  body.ec-body .main-navbar { padding-inline: 8px; }
  .ec-search-trigger { min-width: 0; width: 42px; padding: 0; justify-content: center; }
  .ec-search-trigger span, .ec-search-trigger kbd { display: none; }
  body.ec-body .navbar .nav-link-user .ec-user-meta { display: none; }
  body.ec-body .navbar .nav-link-user { padding: 3px; }
  body.ec-body.sidebar-gone .main-sidebar { inset-inline-start: -270px; }
  body.ec-body .main-content { padding-inline: 18px; }
  body.ec-body .main-footer { padding-inline: 18px; }
}
@media (max-width: 767.98px) {
  .ec-hero { flex-direction: column; align-items: stretch; padding: 22px; }
  .ec-hero h2 { font-size: 1.5rem; }
  .ec-hero-art { display: none; }
  body.ec-body .section .section-header h1 { font-size: 1.35rem; }
  body.ec-body .section .section-header .section-header-breadcrumb { display: none; }
  .ec-auth-art { display: none; }
  .ec-auth-panel { padding-top: 70px; }
  body.ec-body .dropdown-list { width: 300px !important; }
  body.ec-body .navbar .ec-lang-item { display: none; }
}
@media (max-width: 575.98px) {
  /* Pin the quick-add panel to the navbar instead of its small trigger. */
  body.ec-body .navbar .ec-quick-li { position: static; }
  body.ec-body .navbar .dropdown-menu.ec-quick-menu { inset-inline: 10px !important; width: auto !important; }
}
@media (max-width: 575.98px) {
  body.ec-body .main-content { padding-inline: 12px; }
  .ec-kpi-value { font-size: 1.7rem; }
}

/* Motion & print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
  body.ec-body { background: #fff !important; }
  body.ec-body .navbar-bg, body.ec-body .main-navbar, body.ec-body .main-sidebar, body.ec-body .main-footer, .ec-palette { display: none !important; }
  body.ec-body .main-content { padding: 0 !important; }
  body.ec-body .section .section-header h1 { color: var(--ec-ink); text-shadow: none; }
  body.ec-body .card { box-shadow: none; border: 1px solid #ddd; }
}
