/* ADAMEHR_LUXE_THEME_0261
 * One visual language for the whole panel, matching the Android apps and the
 * dashboard app shelf: midnight navy, champagne gold, ivory surfaces.
 * Loaded LAST so it only re-tones existing components (no layout, no logic):
 * remove the <link> to roll back instantly. */

:root {
  --navy: #0b1023;
  --navy-2: #151d3b;
  --ink: #141a2e;
  --muted: #6b7286;
  --teal: #b8902a;            /* links / focus accents now read as gold */
  --mint: #e9d48a;
  --soft: #f6f4ee;            /* ivory page */
  --line: #e9e4d6;
  --gold: #d4af37;
  --gold-2: #b8860b;
  --gold-soft: #f3e3a3;
  --shadow: 0 22px 60px -34px rgba(11, 16, 35, .45);
  --radius: 20px;
}

body {
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(212, 175, 55, .07), transparent 60%),
    radial-gradient(60% 40% at 0% 100%, rgba(21, 29, 59, .06), transparent 60%),
    var(--soft);
  color: var(--ink);
}
a { color: var(--gold-2); }
a:hover { color: var(--navy); }
::selection { background: rgba(212, 175, 55, .28); }

/* ---------- sidebar ---------- */
.sidebar {
  background: linear-gradient(185deg, #141c3a 0%, #0b1023 55%, #070a17 100%);
  border-inline-start: 1px solid rgba(212, 175, 55, .25);
  box-shadow: 0 0 40px rgba(7, 10, 23, .25);
}
.sidebar-brand { border-bottom-color: rgba(212, 175, 55, .22); }
.sidebar-brand img { box-shadow: 0 0 0 2px var(--gold), 0 8px 18px rgba(0, 0, 0, .35); }
.sidebar-brand b { color: #fff; letter-spacing: .2px; }
.sidebar-brand small { color: var(--gold-soft); opacity: .8; }
.nav-group { color: rgba(243, 227, 163, .55); }
.nav-item { color: rgba(255, 255, 255, .74); border-radius: 12px; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, .22), rgba(212, 175, 55, .06));
  color: #fff;
  box-shadow: inset -3px 0 0 var(--gold);
}
.nav-item .dot { background: rgba(255, 255, 255, .25); }
.nav-item.active .dot { background: var(--gold); box-shadow: 0 0 10px rgba(212, 175, 55, .8); }
.sidebar-foot { border-top-color: rgba(212, 175, 55, .18); color: rgba(255, 255, 255, .38); }

/* ---------- top bar ---------- */
.topbar {
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(212, 175, 55, .28);
  box-shadow: 0 10px 30px -24px rgba(11, 16, 35, .4);
}
.topbar h2 { color: var(--navy); font-weight: 900; }
.avatar { background: linear-gradient(135deg, #1f2a4d, #0b1023) !important; color: var(--gold-soft) !important; box-shadow: 0 0 0 2px rgba(212, 175, 55, .55); }

/* ---------- surfaces ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px -32px rgba(11, 16, 35, .45);
}
.card h3, .card > header h3 { color: var(--navy); }

/* ---------- buttons ---------- */
.btn { border-radius: 13px; }
.btn-primary {
  background: linear-gradient(135deg, #1f2a4d 0%, #0b1023 100%);
  color: #fff;
  border-color: rgba(212, 175, 55, .55);
  box-shadow: 0 12px 26px -16px rgba(11, 16, 35, .9), inset 0 1px 0 rgba(243, 227, 163, .25);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 14px 30px -14px rgba(212, 175, 55, .65), inset 0 1px 0 rgba(243, 227, 163, .35); }
.btn-ghost { background: #fff; border-color: var(--line); color: #2b3350; }
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); color: var(--navy); }
.btn-quiet { color: var(--muted); }
.btn-quiet:hover:not(:disabled) { color: var(--gold-2); }

/* ---------- forms ---------- */
.field input, .field select, .field textarea, select, textarea { border-color: #e2dccb; }
.field input:focus, .field select:focus, .field textarea:focus, select:focus, textarea:focus, .otp-row input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .16) !important;
  outline: none;
}

/* ---------- badges & alerts keep their meaning, just softer ---------- */
.badge-live { background: #f6efd6; color: #7a5a0c; }
.alert-info { background: #f7f4ea; border-color: #ebe2c4; color: #4a4128; }

/* ---------- sign-in screens (panel, student, parent, staff) ---------- */
.auth {
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(212, 175, 55, .22), transparent 60%),
    radial-gradient(70% 60% at 10% 90%, rgba(37, 52, 110, .55), transparent 60%),
    linear-gradient(160deg, #141c3a 0%, #0b1023 55%, #070a17 100%);
}
.auth-card {
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(212, 175, 55, .45);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .7), 0 0 0 6px rgba(212, 175, 55, .06);
}
.auth-brand img { border-radius: 22px; box-shadow: 0 0 0 2px var(--gold), 0 12px 26px rgba(11, 16, 35, .25); background: #fff; padding: 6px; }
.auth-brand b, .auth-card h1 { color: var(--navy); }
.auth-foot a { color: var(--gold-2); font-weight: 700; }

/* ---------- comfortable scrolling ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(184, 134, 11, .45) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(184, 134, 11, .35); border-radius: 9px; }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .btn, .card, .nav-item { transition: none !important; }
}
.auth-card a[href="/"]{color:var(--gold-2) !important}

/* ADAMEHR_RELEASE_VERSIONING_0262 */
textarea, .field textarea { font: inherit; }
.release-chip { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, .35); background: rgba(212, 175, 55, .08); color: #fff; text-align: right; cursor: pointer; }
.release-chip b { color: var(--gold-soft); font-weight: 800; }
.release-chip small { color: rgba(255, 255, 255, .55); font-size: 10.5px; }
.release-chip:hover { border-color: var(--gold); background: rgba(212, 175, 55, .14); }
.release-history { width: min(620px, calc(100vw - 24px)); max-height: 82vh; padding: 0; border: 1px solid rgba(212, 175, 55, .45); border-radius: 22px;
  background: #fff; color: var(--ink); box-shadow: 0 40px 120px -40px rgba(7, 10, 23, .7); font-family: Vazirmatn, Tahoma, sans-serif; }
.release-history::backdrop { background: rgba(7, 10, 23, .55); backdrop-filter: blur(3px); }
.release-history > header { position: sticky; top: 0; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 18px 20px 14px;
  background: linear-gradient(160deg, #141c3a, #0b1023); color: #fff; }
.release-history > header h3 { margin: 6px 0 4px; font-size: 18px; color: #fff; }
.release-history > header h3 b { color: var(--gold-soft); }
.release-history > header p { margin: 0; font-size: 12px; color: #cbd5e1; }
.release-eyebrow { font-size: 11px; color: #e9d48a; border: 1px solid rgba(212, 175, 55, .45); padding: 2px 10px; border-radius: 999px; }
.release-list { list-style: none; margin: 0; padding: 14px 20px 20px; display: grid; gap: 12px; }
.release-list > li { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.release-list > li.is-current { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .12); }
.release-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.release-meta b { color: var(--gold-2); }
.release-list h4 { margin: 4px 0 6px; font-size: 14.5px; color: var(--navy); }
.release-list ul { margin: 0; padding-inline-start: 18px; font-size: 13px; color: #3b4258; line-height: 1.9; }

/* =====================================================================
 * ADAMEHR_SIDEBAR_LUXE_0274 — calm navy rail: five groups, line icons,
 * gold active pill, scrolls on its own, version chip at the foot.
 * ===================================================================== */
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  padding: 18px 12px 12px !important; gap: 0 !important;
}
.sidebar-brand { padding: 4px 8px 16px !important; margin-bottom: 6px !important; }
.sidebar-brand img { width: 42px !important; height: 42px !important; border-radius: 13px !important; }
.sidebar-brand b { font-size: 17px !important; font-weight: 900; }
#nav-list { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 2px 12px; margin-inline: -2px; scrollbar-width: none; }
#nav-list::-webkit-scrollbar { display: none; }
.nav-group {
  margin: 16px 0 6px !important; padding: 0 12px !important;
  font-size: 11px !important; font-weight: 800 !important; letter-spacing: .3px !important;
  color: rgba(243, 227, 163, .6) !important;
}
.nav-group:first-child { margin-top: 6px !important; }
.nav-item {
  position: relative; gap: 12px !important; min-height: 42px; padding: 9px 12px !important; margin-bottom: 2px;
  font-size: 14px !important; font-weight: 600 !important; color: rgba(255, 255, 255, .72) !important;
}
.nav-item .dot { display: none !important; }
.nav-ico { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.nav-item:hover .nav-ico { opacity: 1; }
.nav-item.active {
  color: #0b1023 !important; font-weight: 800 !important;
  background: linear-gradient(180deg, #f3e3a3 0%, #d4af37 100%) !important;
  box-shadow: 0 10px 22px -14px rgba(212, 175, 55, .9) !important;
}
.nav-item.active .nav-ico { opacity: 1; stroke-width: 2; }
.school-profile-nav {
  display: flex !important; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 9px 12px !important;
  border: 1px dashed rgba(212, 175, 55, .35) !important; border-radius: 12px !important; background: transparent !important;
  color: var(--gold-soft) !important; font: inherit; font-size: 14px !important; font-weight: 700 !important; margin-top: 10px;
}
.sidebar-foot { padding-top: 10px !important; margin-top: 0 !important; }
.sidebar { flex-direction: column !important; }
@media (max-width: 1024px) {
  .sidebar { height: 100dvh !important; overflow-y: auto !important; flex-wrap: nowrap !important; align-items: stretch !important; }
  #nav-list { flex: none; overflow: visible; width: 100%; }
  .sidebar .nav-group { display: block !important; }
  .sidebar .nav-item { width: 100% !important; justify-content: flex-start !important; text-align: start !important; }
  .sidebar .sidebar-foot { display: block !important; }
}

/* =====================================================================
 * ADAMEHR_DASHBOARD_LUXE_0274 — principal / deputy dashboard
 * ===================================================================== */
.lux-dash { display: flex; flex-direction: column; gap: 18px; }
.lux-dash .lux-slot:empty { display: none; }

/* hero: one slim navy band */
.lux-dash .lux-hero {
  display: flex !important; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 20px 24px !important; min-height: 0 !important; border-radius: 24px !important; color: #fff;
  background: radial-gradient(90% 160% at 100% 0, rgba(212, 175, 55, .2), transparent 55%), linear-gradient(135deg, #1a2347 0%, #0b1023 70%) !important;
  border: 1px solid rgba(212, 175, 55, .35) !important; box-shadow: 0 28px 60px -40px rgba(11, 16, 35, .8) !important;
}
.lux-hero-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.lux-hero-id > :first-child { flex: none; }
.lux-hero .dashboard-school-logo, .lux-hero .dashboard-school-logo-fallback, .lux-hero-id > img, .lux-hero-id > span:first-child {
  width: 60px !important; height: 60px !important; border-radius: 18px !important;
  background: #fbfaf6 !important; color: #0b1023 !important; box-shadow: 0 0 0 2px rgba(212, 175, 55, .6) !important;
}
.lux-date { display: block; color: var(--gold-soft); font-size: 12.5px; font-weight: 700; }
.lux-hero h3 { margin: 2px 0 2px !important; color: #fff !important; font-size: 24px !important; font-weight: 900; }
.lux-hero p { margin: 0 !important; color: rgba(255, 255, 255, .62) !important; font-size: 13.5px; }
.lux-hero-facts { display: flex; gap: 10px; flex-wrap: wrap; }
.lux-hero-facts span {
  display: flex; flex-direction: column; align-items: center; min-width: 92px; padding: 10px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .65); font-size: 12px;
}
.lux-hero-facts b { color: #fff; font-size: 22px; font-weight: 900; line-height: 1.3; }
.lux-hero-facts .is-warn { border-color: rgba(255, 154, 154, .45); } .lux-hero-facts .is-warn b { color: #ffb4b4; }
.lux-hero-facts .is-ok b { color: #9fe8c3; }

/* KPI tiles */
.lux-kpis { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px !important; margin: 0 !important; }
.lux-kpis .dashboard-metric {
  position: relative; display: grid !important; grid-template-columns: 1fr auto; grid-template-areas: "label icon" "value icon" "note note";
  align-items: center; gap: 2px 10px; min-height: 0 !important; padding: 16px 18px !important; text-align: start;
  background: #fff !important; border: 1px solid var(--line) !important; border-radius: 20px !important;
  box-shadow: 0 16px 40px -34px rgba(11, 16, 35, .5) !important; transition: transform .18s, border-color .18s;
}
.lux-kpis .dashboard-metric:hover { transform: translateY(-2px); border-color: rgba(212, 175, 55, .6) !important; }
.lux-kpis .dashboard-metric small { grid-area: label; color: var(--muted) !important; font-size: 13px !important; font-weight: 700; }
.lux-kpis .dashboard-metric b { grid-area: value; color: var(--navy) !important; font-size: 30px !important; font-weight: 900; line-height: 1.25; }
.lux-kpis .dashboard-metric em { grid-area: note; font-style: normal; color: #8a6a12 !important; font-size: 12px !important; padding-top: 6px; border-top: 1px solid #f1ecdd; margin-top: 4px; }
.lux-kpis .dashboard-metric-icon { display: none !important; }
.lux-kpis .dashboard-metric::before {
  content: ''; position: absolute; top: 18px; inset-inline-end: 18px; width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(180deg, #f3e3a3, #d4af37); box-shadow: 0 0 0 5px rgba(212, 175, 55, .14);
}

/* main grid */
.lux-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.lux-main, .lux-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lux-dash .card { margin: 0 !important; }
.lux-dash .card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lux-dash .card > header h3 { margin: 0; font-size: 17px; font-weight: 900; }
.lux-dash .card > header p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.lux-warn { color: #c23b3b; font-weight: 800; }

/* «اکنون در مدرسه» */
.lux-slots { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 4px; scrollbar-width: none; }
.lux-slots::-webkit-scrollbar { display: none; }
.lux-slot-tab {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 92px; padding: 9px 12px;
  border-radius: 14px; border: 1px solid var(--line); background: #fbfaf6; color: var(--ink); font: inherit; cursor: pointer;
}
.lux-slot-tab b { font-size: 13px; font-weight: 800; direction: ltr; }
.lux-slot-tab small { font-size: 11px; color: var(--muted); }
.lux-slot-tab.is-past { opacity: .55; }
.lux-slot-tab.is-on { background: #0b1023; border-color: #0b1023; color: #fff; opacity: 1; }
.lux-slot-tab.is-on small { color: var(--gold-soft); }
.lux-slot-tab.is-live { box-shadow: 0 0 0 3px rgba(212, 175, 55, .35); }
.lux-slot-state { margin: 12px 0 8px; font-size: 12.5px; font-weight: 800; color: #8a6a12; }
.lux-slot-state::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; background: #d4af37; box-shadow: 0 0 0 4px rgba(212, 175, 55, .18); }
.lux-classes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.lux-classes li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--line); background: #fff;
}
.lux-classes li div { display: flex; flex-direction: column; min-width: 0; }
.lux-classes li b { font-size: 14.5px; font-weight: 900; color: var(--navy); }
.lux-classes li span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lux-classes li em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; color: #1e7d54; background: #eef8f2; padding: 4px 9px; border-radius: 999px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lux-classes li em.is-missing { color: #b03636; background: #fdf0f0; }

/* side column */
.lux-side .dashboard-alert, .lux-side .dashboard-all-good { border-radius: 14px !important; }
.lux-actions .dashboard-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; margin-top: 12px; }
.lux-actions .dashboard-action { min-height: 0 !important; padding: 10px !important; gap: 9px !important; border-color: var(--line) !important; background: #fbfaf6 !important; }
.lux-actions .dashboard-action:hover { border-color: rgba(212, 175, 55, .6) !important; background: #fff !important; }
.lux-actions .dashboard-action small { display: none !important; }
.lux-actions .dashboard-action b { font-size: 13px !important; color: var(--navy); }
.lux-actions .dashboard-action-icon { width: 30px !important; height: 30px !important; flex-basis: 30px !important; border-radius: 10px !important; background: #0b1023 !important; color: var(--gold-soft) !important; font-size: 15px !important; }

/* folded tools */
.lux-tools { padding: 0 !important; overflow: hidden; }
.lux-tools > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.lux-tools > summary::-webkit-details-marker { display: none; }
.lux-tools > summary span { display: flex; flex-direction: column; }
.lux-tools > summary b { color: var(--navy); font-size: 15.5px; font-weight: 900; }
.lux-tools > summary small { color: var(--muted); font-size: 12.5px; }
.lux-tools > summary::after { content: '⌄'; font-size: 20px; color: #8a6a12; transition: transform .2s; }
.lux-tools[open] > summary::after { transform: rotate(180deg); }
.lux-tools-body { display: flex; flex-direction: column; gap: 16px; padding: 0 16px 16px; }
.lux-tools-body .school-portals-hub { margin: 0 !important; }

/* responsive */
@media (max-width: 1180px) {
  .lux-grid { grid-template-columns: 1fr; }
  .lux-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 900px) {
  .lux-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
  .lux-dash { gap: 14px; }
  .lux-dash .lux-hero { padding: 16px !important; border-radius: 20px !important; }
  .lux-hero h3 { font-size: 19px !important; }
  .lux-hero-facts { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lux-hero-facts span { min-width: 0; padding: 8px 6px; }
  .lux-hero-facts b { font-size: 19px; }
  .lux-kpis { gap: 10px !important; }
  .lux-kpis .dashboard-metric { padding: 13px !important; border-radius: 16px !important; }
  .lux-kpis .dashboard-metric b { font-size: 24px !important; }
  .lux-side { display: flex; }
  .lux-classes { grid-template-columns: 1fr; }
}

/* =====================================================================
 * ADAMEHR_TEACHER_DASHBOARD_LUXE_0275 — teacher «امروز من»
 * ===================================================================== */
.lux-hero-badge {
  width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: 18px;
  background: #fbfaf6; color: #0b1023; font-size: 26px; font-weight: 900; box-shadow: 0 0 0 2px rgba(212, 175, 55, .6);
}
.lux-hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.lux-btn-gold { border: 0 !important; color: #1d1606 !important; background: linear-gradient(180deg, #f3e3a3, #d4af37) !important; font-weight: 800 !important; min-height: 44px; }
.lux-btn-line { border: 1px solid rgba(243, 227, 163, .5) !important; color: var(--gold-soft) !important; background: transparent !important; min-height: 44px; }
.lux-btn-line:hover { background: rgba(212, 175, 55, .12) !important; }
.lux-teacher .lux-hero { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }

/* next class: the one thing to do now */
.lux-next { border: 1px solid rgba(212, 175, 55, .55) !important; background: linear-gradient(180deg, #fffaf0, #fff) !important; }
.lux-next .teacher-daily-eyebrow { color: #8a6a12 !important; font-weight: 800; }
.lux-next .teacher-daily-next-class {
  display: flex !important; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; padding: 16px !important;
  border-radius: 18px !important; background: #0b1023 !important; color: #fff !important; border: 0 !important;
}
.lux-next .teacher-daily-next-time { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: var(--gold-soft) !important; }
.lux-next .teacher-daily-next-time strong { font-size: 18px; font-weight: 900; color: var(--gold-soft) !important; }
.lux-next .teacher-daily-next-time span { color: rgba(255, 255, 255, .4) !important; line-height: 1; }
.lux-next .teacher-daily-next-main { flex: 1; min-width: 180px; }
.lux-next .teacher-daily-next-main h4 { margin: 4px 0 2px !important; color: #fff !important; font-size: 20px !important; font-weight: 900; }
.lux-next .teacher-daily-next-main p { margin: 0 !important; color: rgba(255, 255, 255, .65) !important; }
.lux-next .teacher-daily-status { background: rgba(212, 175, 55, .18) !important; color: var(--gold-soft) !important; border: 0 !important; }
.lux-next .teacher-daily-next-class .btn-primary { background: linear-gradient(180deg, #f3e3a3, #d4af37) !important; color: #1d1606 !important; border: 0 !important; font-weight: 800; }
.lux-next .teacher-daily-next-class .btn:not(.btn-primary) { background: transparent !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .25) !important; }

/* my classes today */
.lux-teacher .teacher-daily-class-list { display: grid !important; gap: 10px !important; margin-top: 12px; }
.lux-teacher .teacher-daily-class {
  display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px 14px !important;
  padding: 12px 14px !important; border-radius: 16px !important; border: 1px solid var(--line) !important; background: #fff !important; box-shadow: none !important;
}
.lux-teacher .teacher-daily-class:hover { border-color: rgba(212, 175, 55, .6) !important; }
.lux-teacher .teacher-daily-class-main { flex: 1; min-width: 180px; }
.lux-teacher .teacher-daily-class > .btn { min-height: 38px !important; padding: 0 14px !important; border-radius: 12px !important; border: 1px solid var(--line) !important; background: #fbfaf6 !important; color: var(--navy) !important; font-weight: 700; white-space: nowrap; }
.lux-teacher .teacher-daily-class > .btn:hover { border-color: rgba(212, 175, 55, .7) !important; }
.lux-teacher .teacher-daily-class-time { flex: none; min-width: 66px; display: flex; flex-direction: column; align-items: center; padding: 6px; border-radius: 12px; background: #fbfaf6; border: 1px solid var(--line); }
.lux-teacher .teacher-daily-class-time b { color: var(--navy); font-size: 15px; font-weight: 900; }
.lux-teacher .teacher-daily-class-time span { color: var(--muted); font-size: 12px; }
.lux-teacher .teacher-daily-class-title b { color: var(--navy) !important; font-size: 15.5px; }
.lux-teacher .teacher-daily-status { background: #f6efd6 !important; color: #7a5a0c !important; border: 0 !important; border-radius: 999px !important; }
.lux-teacher .teacher-daily-class-main p { margin: 2px 0 0 !important; color: var(--muted) !important; font-size: 13px; }

/* today's steps, compact in the side column */
.lux-teacher .teacher-journey { padding: 18px !important; gap: 12px !important; }
.lux-teacher .teacher-journey-steps { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; }
.lux-teacher .teacher-journey-step { min-height: 0 !important; padding: 10px 12px !important; border-radius: 14px !important; border-color: var(--line) !important; background: #fbfaf6 !important; }
.lux-teacher .teacher-journey-number { background: #0b1023 !important; color: var(--gold-soft) !important; }
.lux-teacher .teacher-journey-advanced-grid { grid-template-columns: 1fr !important; }
.lux-teacher .lux-actions .dashboard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

@media (max-width: 1180px) {
  .lux-teacher .lux-hero { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lux-hero-badge { width: 48px; height: 48px; border-radius: 14px; font-size: 21px; }
  .lux-hero-cta { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .lux-teacher .teacher-daily-class-main { flex: 1 1 calc(100% - 90px); }
  .lux-teacher .teacher-daily-class > .btn { flex: 1; }
  .lux-next .teacher-daily-next-class .btn { flex: 1; }
}

/* ADAMEHR_PORTAL_AUDIENCE_0277 */
.portal-wrong-role { display: block; margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; line-height: 1.9; }
.portal-wrong-role b { display: block; margin-bottom: 4px; }
.portal-wrong-role p { margin: 4px 0 0; font-size: 13.5px; }
.portal-wrong-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px !important; }

/* ADAMEHR_PARENT_DASHBOARD_LUXE_0277 — parent app home, per child */
.lux-parent .lux-hero-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; font-weight: 900; }
.lux-kids { display: flex; gap: 8px; flex-wrap: wrap; }
.lux-kids button { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 800; cursor: pointer; }
.lux-kids button.is-on { background: #fff; color: #0f2a4a; }
.lux-child { margin-top: 18px; }
.lux-parent .card > header { margin-bottom: 12px; }
.lux-parent .card > header h3 { margin: 0; font-size: 17px; }
.lux-parent .card > header p { margin: 2px 0 0; color: #64748b; font-size: 13px; }
.lux-lessons { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.lux-lessons li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f6f8fb; }
.lux-lessons li span { color: #64748b; font-size: 13px; min-width: 46px; }
.lux-lessons li.is-past { opacity: .55; }
.lux-lessons li.is-now { background: #e8f3ff; outline: 1px solid #9cc8f5; }
.lux-lessons li em { margin-inline-start: auto; font-style: normal; font-size: 12px; font-weight: 800; color: #0b6bcb; }
.lux-hw-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.lux-hw-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid #e6ebf2; border-radius: 14px; }
.lux-hw-list li > div { min-width: 0; }
.lux-hw-list b { display: block; font-size: 14.5px; }
.lux-hw-list small { color: #64748b; font-size: 12.5px; }
.lux-hw-list p { margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: #f6f8fb; font-size: 13px; color: #334155; }
.lux-chip { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #eef2f7; color: #475569; white-space: nowrap; }
.lux-chip.is-good { background: #e3f7ec; color: #11734b; }
.lux-chip.is-warn { background: #fff4dc; color: #8a5a00; }
.lux-chip.is-bad { background: #fde7e7; color: #b42318; }
.lux-chip.is-wait { background: #e8f0fe; color: #1d4ed8; }
.lux-att-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.lux-att-stats span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; background: #f1f8f4; color: #475569; font-size: 12px; }
.lux-att-stats b { font-size: 20px; color: #11734b; }
.lux-att-stats .is-bad { background: #fdf0f0; } .lux-att-stats .is-bad b { color: #b42318; }
.lux-att-stats .is-warn { background: #fff8e8; } .lux-att-stats .is-warn b { color: #8a5a00; }
.lux-absences { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lux-absences li { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: #f6f8fb; }
.lux-absences li em { margin-inline-start: auto; font-style: normal; font-weight: 800; color: #475569; }
.lux-empty { margin: 0; color: #64748b; font-size: 13.5px; }
.lux-parent .parent-child-classes { margin-bottom: 8px; }
@media (max-width: 640px) {
  .lux-kids { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .lux-hw-list li { flex-direction: column; }
}

/* ADAMEHR_STUDENT_APP_ACCESS_0278 — pupil's own mobile for the student app */
.student-app-access { margin: 12px 0; padding: 14px 16px; border: 1px solid #e6ebf2; border-radius: 16px; background: #f8fafc; }
.student-app-access-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.student-app-access-head strong { display: block; font-size: 15px; }
.student-app-access-head span { display: block; margin-top: 4px; color: #64748b; font-size: 13px; line-height: 1.7; }
.student-app-access-head em { flex: none; font-style: normal; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #eef2f7; color: #475569; }
.student-app-access-head em.is-on { background: #e3f7ec; color: #11734b; }
.student-app-access-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.student-app-access-form input { flex: 1 1 180px; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; text-align: left; }
.student-app-access-status { margin-top: 8px; font-size: 13px; color: #11734b; min-height: 1em; }
.student-app-access-status.is-error { color: #b42318; }

/* ADAMEHR_APP_UPDATE_NOTICE_0278 */
.app-update-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, #0f2a4a, #1e3a8a); color: #fff; font-size: 13.5px; }
.app-update-bar span { flex: 1 1 200px; } .app-update-bar b { color: #f3e3a3; }
.app-update-bar .btn-ghost { color: #fff; }
.app-update-bar span b, .app-update-bar span small { display: block; }
.app-update-bar span small { margin-top: 2px; color: rgba(255,255,255,.75); font-size: 12px; }
.app-update-bar .btn-ghost { background: transparent !important; border: 1px solid rgba(255,255,255,.35) !important; color: #fff !important; min-width: 0; padding: 6px 12px; }
.app-update-bar .btn-primary { background: #d4af37 !important; color: #1f2937 !important; border: 0 !important; }
/* parent home quick links: one compact row instead of three tall cards on a phone (0278) */
.lux-parent .parent-dashboard-actions { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.lux-parent .parent-dashboard-action { min-height: 0 !important; padding: 12px !important; }
@media (max-width: 640px) {
  .lux-parent .parent-dashboard-actions { gap: 6px; }
  .lux-parent .parent-dashboard-action { padding: 10px 8px !important; text-align: center; }
  .lux-parent .parent-dashboard-action strong { font-size: 13px !important; }
  .lux-parent .parent-dashboard-action span { display: none !important; }
}

/* ADAMEHR_PROGRESS_PER_KPI_0279 — point-by-point chart per KPI */
.cp-modes { display: inline-flex; gap: 4px; margin: 4px 0 8px; padding: 3px; border-radius: 999px; background: #f1f5f9; }
.cp-modes button { border: 0; background: transparent; font: inherit; font-size: 12px; padding: 5px 12px; border-radius: 999px; cursor: pointer; color: #475569; }
.cp-modes button.is-on { background: #0f2a4a; color: #fff; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cp-chips button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; color: #94a3b8; cursor: pointer; }
.cp-chips button i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.cp-chips button.is-on { color: #1f2937; border-color: var(--kpi); }
.cp-chips button.is-on i { background: var(--kpi); }
.cp-points .cp-grid { stroke: #eef2f7; stroke-width: 1; }
.cp-points .cp-axis { stroke: #cbd5e1; stroke-width: 1.2; }
.cp-points .cp-cursor { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 3 3; }
.cp-points .cp-ylabel { font-size: 9px; fill: #94a3b8; text-anchor: start; direction: ltr; }
.cp-points .cp-xlabel { font-size: 9.5px; fill: #64748b; text-anchor: middle; }
.cp-points .cp-xmonth { font-size: 9px; fill: #94a3b8; }
.cp-points .cp-hit { fill: transparent; cursor: pointer; }
.cp-points circle { cursor: pointer; }
.cp-detail { margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; font-size: 13px; color: #475569; }
.cp-detail strong { display: block; margin-bottom: 4px; color: #0f172a; }
.cp-detail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cp-detail li, .child-progress-kpi li span { display: flex; align-items: center; gap: 8px; }
.cp-detail li span { flex: 1; }
.cp-detail li i, .child-progress-kpi li span i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
/* 0279 polish: «خیلی زیبا» */
.child-progress { border-top: 0 !important; padding-top: 4px !important; }
.child-progress-head strong { font-size: 15px; }
.child-progress-filter { background: #f1f5f9 !important; }
.child-progress-filter button.is-on { background: #0f2a4a !important; color: #fff !important; }
.cp-tiles { gap: 8px !important; }
.cp-tiles span { border: 0 !important; border-radius: 14px !important; padding: 10px 4px !important; background: linear-gradient(160deg, #f8fafc, #eef2f7) !important; box-shadow: inset 0 0 0 1px #e8edf3; }
.cp-tiles span:first-child { background: linear-gradient(160deg, #0f2a4a, #1e3a8a) !important; box-shadow: none; }
.cp-tiles span:first-child small { color: rgba(255,255,255,.7) !important; }
.cp-tiles span:first-child b { color: #f3e3a3 !important; }
.cp-tiles b { font-size: 18px !important; font-weight: 900; }
.cp-points { margin-top: 4px; background: linear-gradient(180deg, #fbfcfe, #fff); border-radius: 16px; box-shadow: inset 0 0 0 1px #eef2f7; }
.cp-points .cp-grid { stroke: #edf1f6 !important; stroke-dasharray: 2 4; }
.cp-points .cp-band { fill: #0f2a4a; opacity: .06; }
.cp-points .cp-curve { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cpDraw 900ms ease-out forwards; filter: drop-shadow(0 2px 3px rgba(15, 42, 74, .12)); }
.cp-points .cp-area { opacity: 0; animation: cpFade 700ms 250ms ease-out forwards; }
.cp-points .cp-dot { transition: r .15s; filter: drop-shadow(0 1px 2px rgba(15, 23, 42, .18)); }
@keyframes cpDraw { to { stroke-dashoffset: 0; } }
@keyframes cpFade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cp-points .cp-curve, .cp-points .cp-area { animation: none; stroke-dashoffset: 0; opacity: 1; } }
.cp-chips button { box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.cp-chips button.is-on { background: color-mix(in srgb, var(--kpi) 9%, #fff); font-weight: 700; }
.cp-detail { background: #fff !important; border-radius: 14px !important; box-shadow: 0 6px 18px rgba(15, 42, 74, .08), inset 0 0 0 1px #eef2f7; }
.cp-detail strong { display: flex !important; justify-content: space-between; align-items: center; }
.cp-detail strong em { font-style: normal; font-size: 12.5px; }
.cp-detail li { padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, var(--kpi) 7%, #fff); }
.cp-detail li b { font-weight: 800; }
.cp-subtitle { margin: 14px 0 6px; font-size: 13px; color: #64748b; font-weight: 700; }
.cp-kpi-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cp-kpi-list .cp-kpi-row { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.cp-meter { display: flex; height: 8px; border-radius: 999px; background: #f1f5f9; overflow: hidden; gap: 2px; }
.cp-meter u { display: block; height: 100%; border-radius: 999px; text-decoration: none; }
.cp-meter u.pos { background: linear-gradient(90deg, #4ade80, #16a34a); }
.cp-meter u.neg { background: linear-gradient(90deg, #f87171, #dc2626); }
.cp-kpi-row b { min-width: 34px; text-align: left; font-size: 14px !important; }
.child-progress b, .cp-detail b, .cp-detail em { unicode-bidi: isolate; direction: ltr; }
