/* =====================================================================
   Linker team — shared UI for all panels (RTL-first, logical properties)
   Tokens first: a re-skin only changes :root.
   ===================================================================== */

@font-face { font-family: "Tajawal"; src: url("../vendor/fonts/tajawal-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; src: url("../vendor/fonts/tajawal-arabic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; src: url("../vendor/fonts/tajawal-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; src: url("../vendor/fonts/tajawal-arabic-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; src: url("../vendor/fonts/tajawal-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Tajawal"; src: url("../vendor/fonts/tajawal-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Tajawal"; src: url("../vendor/fonts/tajawal-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Tajawal"; src: url("../vendor/fonts/tajawal-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
	--lt-font: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;

	--lt-bg: #f3f6fb;
	--lt-surface: #ffffff;
	--lt-surface-2: #f8fafd;
	--lt-line: #e6ebf3;
	--lt-text: #0f1b33;
	--lt-text-2: #4a5873;
	--lt-muted: #8592ab;

	--lt-side: #0b2551;
	--lt-side-2: #0e2d63;
	--lt-side-text: #c9d6ef;
	--lt-side-active: #2563eb;

	--lt-primary: #2563eb;
	--lt-primary-soft: #e8f0fe;

	--lt-blue: #2563eb;   --lt-blue-soft: #e8f0fe;
	--lt-green: #16a34a;  --lt-green-soft: #e6f6ec;
	--lt-purple: #7c3aed; --lt-purple-soft: #f1ebfe;
	--lt-orange: #f59e0b; --lt-orange-soft: #fff4e0;
	--lt-teal: #0d9488;   --lt-teal-soft: #e2f5f3;
	--lt-rose: #e11d48;   --lt-rose-soft: #fde8ed;

	--lt-radius: 14px;
	--lt-radius-sm: 10px;
	--lt-shadow: 0 1px 2px rgba(16, 33, 74, .04), 0 4px 14px rgba(16, 33, 74, .05);
	--lt-side-w: 252px;
	--lt-top-h: 70px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0; font-family: var(--lt-font); background: var(--lt-bg); color: var(--lt-text);
	font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--lt-primary); text-decoration: none; }
a:hover { color: #1d4ed8; }
h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: 0; }
.btn { font-weight: 700; border-radius: var(--lt-radius-sm); }
.btn-primary { background: var(--lt-primary); border-color: var(--lt-primary); }
.form-control, .form-select { border-radius: var(--lt-radius-sm); border-color: var(--lt-line); padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: #93b4f6; box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12); }
.form-label { font-weight: 700; font-size: .88rem; color: var(--lt-text-2); }
[dir="ltr"] .lt-arrow-flip { transform: scaleX(-1); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------------- shell ---------------- */
.lt-app { display: flex; min-height: 100vh; }
.lt-side {
	position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--lt-side-w);
	background: linear-gradient(180deg, var(--lt-side) 0%, #0a2048 100%);
	color: var(--lt-side-text); display: flex; flex-direction: column; z-index: 1040;
	transition: transform .25s ease;
}
.lt-brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; color: #fff; }
.lt-brand:hover { color: #fff; }
.lt-brand-mark { display: grid; place-items: center; }
.lt-brand-text b { display: block; font-size: 1.22rem; font-weight: 800; line-height: 1.1; direction: ltr; text-align: start; }
.lt-brand-text small { color: #8fa6d1; font-size: .78rem; }
.lt-nav { flex: 1; overflow-y: auto; padding: 6px 14px 14px; scrollbar-width: thin; scrollbar-color: #24447f transparent; }
.lt-nav-h { font-size: .72rem; font-weight: 700; color: #6f88b8; margin: 16px 10px 6px; letter-spacing: .02em; }
.lt-nav a {
	display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 3px;
	color: var(--lt-side-text); border-radius: 11px; font-weight: 500; font-size: .95rem; position: relative;
	transition: background .15s, color .15s;
}
.lt-nav a i { font-size: 1.22rem; width: 22px; text-align: center; opacity: .9; }
.lt-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.lt-nav a.active { background: var(--lt-side-active); color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(37, 99, 235, .35); }
.lt-nav-badge {
	margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
	background: #ef4444; color: #fff; font-size: .72rem; display: grid; place-items: center; font-weight: 700;
}
.lt-side-foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.lt-help { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--lt-side-text); border-radius: 11px; }
.lt-help:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.lt-help i { font-size: 1.25rem; }

.lt-main { flex: 1; min-width: 0; margin-inline-start: var(--lt-side-w); display: flex; flex-direction: column; }
.lt-top {
	height: var(--lt-top-h); position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(10px); border-bottom: 1px solid var(--lt-line);
	display: flex; align-items: center; gap: 16px; padding: 0 26px;
}
.lt-burger { display: none; }
.lt-search { position: relative; flex: 0 1 480px; }
.lt-search > i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--lt-muted); font-size: 1.1rem; }
.lt-search input {
	width: 100%; height: 44px; border: 1px solid transparent; background: #f1f4f9; border-radius: 12px;
	padding-inline: 42px 14px; font: inherit; color: var(--lt-text); outline: none; transition: .15s;
}
.lt-search input:focus { background: #fff; border-color: #c7d6f5; box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
.lt-search-results {
	position: absolute; top: calc(100% + 6px); inset-inline: 0; background: #fff; border: 1px solid var(--lt-line);
	border-radius: 12px; box-shadow: 0 16px 40px rgba(16, 33, 74, .14); max-height: 380px; overflow: auto; padding: 6px;
}
.lt-search-results a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--lt-text); }
.lt-search-results a:hover, .lt-search-results a.on { background: var(--lt-primary-soft); }
.lt-search-results small { color: var(--lt-muted); display: block; font-size: .78rem; }
.lt-top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lt-icon-btn {
	position: relative; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent;
	display: grid; place-items: center; color: var(--lt-text-2); font-size: 1.35rem; cursor: pointer;
}
.lt-icon-btn:hover { background: #f1f4f9; color: var(--lt-text); }
.lt-dot-badge {
	position: absolute; top: 4px; inset-inline-end: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: #ef4444; color: #fff; font-size: .68rem; display: grid; place-items: center; border: 2px solid #fff;
}
.lt-rt-dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; margin-inline-end: 4px; transition: background .3s; }
.lt-rt-dot.on { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.lt-me { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; padding: 4px 6px; border-radius: 12px; color: var(--lt-text); }
.lt-me:hover { background: #f1f4f9; }
.lt-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; display: grid; place-items: center; font-weight: 800; }
.lt-me-t { text-align: start; line-height: 1.25; }
.lt-me-t b { display: block; font-size: .95rem; }
.lt-me-t small { color: var(--lt-muted); font-size: .8rem; }
.lt-drop { border: 1px solid var(--lt-line); border-radius: 14px; box-shadow: 0 18px 44px rgba(16, 33, 74, .14); padding: 6px; min-width: 250px; }
.lt-drop .dropdown-item { border-radius: 9px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.lt-drop .dropdown-item i { font-size: 1.1rem; color: var(--lt-muted); }
.lt-drop .dropdown-item.active, .lt-drop .dropdown-item:active { background: var(--lt-primary-soft); color: var(--lt-text); }
.lt-drop-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 6px; font-size: .9rem; }
.lt-ctx span { display: flex; flex-direction: column; line-height: 1.25; }
.lt-ctx small { color: var(--lt-muted); font-size: .76rem; }
.lt-notif-drop { width: 360px; }
.lt-notif-list { max-height: 420px; overflow-y: auto; }
.lt-notif { display: flex; gap: 10px; padding: 10px; border-radius: 10px; color: var(--lt-text); position: relative; }
.lt-notif:hover { background: var(--lt-surface-2); color: var(--lt-text); }
.lt-notif.unread { background: #f4f8ff; }
.lt-notif.unread::after { content: ""; position: absolute; inset-inline-end: 10px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--lt-primary); }
.lt-notif-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--lt-primary-soft); color: var(--lt-primary); flex: none; font-size: 1.1rem; }
.lt-notif b { display: block; font-size: .88rem; padding-inline-end: 14px; }
.lt-notif p { margin: 0; color: var(--lt-text-2); font-size: .8rem; }
.lt-notif small { color: var(--lt-muted); font-size: .74rem; }
.lt-empty-s { padding: 22px; text-align: center; color: var(--lt-muted); font-size: .88rem; }

.lt-page { padding: 24px 26px 40px; flex: 1; }
.lt-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 2000; pointer-events: none; }
.lt-progress::before { content: ""; display: block; height: 100%; width: 0; background: linear-gradient(90deg, #60a5fa, #2563eb); transition: width .3s ease, opacity .4s; opacity: 0; }
.lt-progress.run::before { width: 70%; opacity: 1; transition: width 2.5s cubic-bezier(.1, .6, .2, 1); }
.lt-progress.done::before { width: 100%; opacity: 0; transition: width .2s, opacity .4s .2s; }
.lt-page.lt-swapping { opacity: .55; transition: opacity .15s; }

/* ---------------- grid ---------------- */
.lt-grid { display: grid; gap: 20px; }
.lt-dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.lt-col { display: grid; gap: 22px; min-width: 0; }
.lt-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.lt-row-2.wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.lt-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.lt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* ---------------- cards ---------------- */
.lt-card { background: var(--lt-surface); border: 1px solid var(--lt-line); border-radius: var(--lt-radius); box-shadow: var(--lt-shadow); padding: 20px; min-width: 0; }
.lt-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.lt-card-h h3 { font-size: 1.12rem; margin: 0; }
.lt-card-h a { font-size: .85rem; font-weight: 700; white-space: nowrap; }
.lt-card-h a i { vertical-align: -2px; }
[dir="ltr"] .lt-card-h a i.ri-arrow-left-line, [dir="ltr"] .lt-stat a i { display: inline-block; transform: scaleX(-1); }
.lt-card.p0 { padding: 0; }
.lt-card.p0 .lt-card-h { padding: 18px 20px 0; }

/* hero */
.lt-hero {
	position: relative; overflow: hidden; border-radius: var(--lt-radius); color: #fff; min-height: 150px;
	background: radial-gradient(120% 140% at 100% 0%, #1e4fae 0%, #0f2d66 55%, #0b2551 100%);
	display: flex; align-items: center; justify-content: space-between; padding: 26px 30px; gap: 20px;
}
.lt-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.lt-hero-t { position: relative; z-index: 1; }
.lt-hero h1 { font-size: 1.85rem; margin: 0 0 4px; }
.lt-hero p { margin: 0 0 14px; color: #c8d7f5; font-size: 1.02rem; }
.lt-hero-date { display: inline-flex; align-items: center; gap: 8px; color: #e2eafa; font-size: .92rem; background: rgba(255, 255, 255, .1); padding: 6px 12px; border-radius: 10px; }
.lt-hero-date em { font-style: normal; color: #a9bfe9; }
.lt-hero-art { position: relative; z-index: 1; flex: none; margin-block: -10px -26px; }
.lt-hero-art svg { display: block; width: 290px; height: auto; }

/* stat cards (two looks: soft = first screenshot, .solid = second) */
.lt-stat { display: flex; align-items: flex-start; gap: 14px; background: var(--lt-surface); border: 1px solid var(--lt-line); border-radius: var(--lt-radius); padding: 18px; box-shadow: var(--lt-shadow); position: relative; overflow: hidden; }
.lt-stat-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; flex: none; color: #fff; background: var(--c); box-shadow: 0 0 0 6px var(--cs); }
.lt-stat-b b { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.lt-stat-long .lt-stat-b b { font-size: 1.15rem; line-height: 1.35; }
.lt-stat-b span { color: var(--lt-text-2); font-size: .9rem; }
.lt-stat-b a { display: block; margin-top: 8px; font-size: .84rem; font-weight: 700; color: var(--c); }
.lt-blue { --c: var(--lt-blue); --cs: var(--lt-blue-soft); }
.lt-green { --c: var(--lt-green); --cs: var(--lt-green-soft); }
.lt-purple { --c: var(--lt-purple); --cs: var(--lt-purple-soft); }
.lt-orange { --c: var(--lt-orange); --cs: var(--lt-orange-soft); }
.lt-teal { --c: var(--lt-teal); --cs: var(--lt-teal-soft); }
.lt-rose { --c: var(--lt-rose); --cs: var(--lt-rose-soft); }
.lt-stat.lt-orange { background: linear-gradient(180deg, #fffaf0, #fff); }
.lt-stats.solid .lt-stat { background: var(--c); border: 0; color: #fff; flex-direction: column; gap: 6px; }
.lt-stats.solid .lt-stat-ic { background: transparent; box-shadow: none; width: auto; height: auto; justify-content: start; font-size: 1.9rem; }
.lt-stats.solid .lt-stat-b span, .lt-stats.solid .lt-stat-b a { color: rgba(255, 255, 255, .92); }
.lt-stats.solid .lt-stat.lt-orange { background: var(--lt-orange); }

/* class tiles (my classes) */
.lt-class-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.lt-tile { border: 1px solid var(--lt-line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; color: var(--lt-text); transition: transform .15s, box-shadow .15s; }
.lt-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 33, 74, .1); color: var(--lt-text); }
.lt-tile-top { background: var(--c); color: #fff; padding: 14px; min-height: 92px; }
.lt-tile-top i { font-size: 1.5rem; }
.lt-tile-top b { display: block; font-size: .95rem; margin-top: 6px; line-height: 1.3; }
.lt-tile-top small { opacity: .9; font-size: .8rem; }
.lt-tile-b { padding: 12px 14px; font-size: .8rem; color: var(--lt-text-2); display: grid; gap: 6px; }
.lt-tile-b .lt-bar { margin-top: 4px; }
.lt-bar { height: 6px; border-radius: 3px; background: #edf1f7; overflow: hidden; }
.lt-bar > i { display: block; height: 100%; background: var(--c, var(--lt-primary)); border-radius: 3px; transition: width .6s; }

/* schedule timeline */
.lt-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.lt-timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--lt-line); }
.lt-timeline li { position: relative; padding-inline-start: 28px; padding-block: 10px; border-bottom: 1px solid var(--lt-line); display: flex; gap: 10px; align-items: flex-start; }
.lt-timeline li:last-child { border-bottom: 0; }
.lt-timeline li::before { content: ""; position: absolute; inset-inline-start: 1px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--c, var(--lt-primary)); }
.lt-timeline li.now { background: linear-gradient(90deg, transparent, var(--lt-primary-soft)); border-radius: 10px; }
[dir="rtl"] .lt-timeline li.now { background: linear-gradient(270deg, transparent, var(--lt-primary-soft)); }
.lt-timeline .tm { font-size: .82rem; color: var(--lt-text-2); direction: ltr; unicode-bidi: isolate; }
.lt-timeline b { display: block; font-size: .95rem; }
.lt-timeline small { color: var(--lt-muted); font-size: .8rem; }
.lt-timeline .grow { flex: 1; min-width: 0; }
.lt-live-btn { font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--lt-primary-soft); color: var(--lt-primary); white-space: nowrap; border: 0; }
.lt-live-btn.on { background: #ef4444; color: #fff; animation: lt-pulse 1.6s infinite; }
@keyframes lt-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); } 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } }

/* quick actions */
.lt-qas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lt-qa { border: 1px solid var(--lt-line); border-radius: 12px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--lt-text); background: #fff; transition: .15s; }
.lt-qa span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: var(--cs); color: var(--c); }
.lt-qa b { font-size: .8rem; font-weight: 700; line-height: 1.3; }
.lt-qa:hover { border-color: var(--c); color: var(--lt-text); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16, 33, 74, .07); }

/* lists */
.lt-list { list-style: none; margin: 0; padding: 0; }
.lt-list > li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--lt-line); }
.lt-list > li:last-child { border-bottom: 0; }
.lt-list .grow { flex: 1; min-width: 0; }
.lt-list b { display: block; font-size: .93rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-list small { color: var(--lt-muted); font-size: .8rem; }
.lt-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; flex: none; background: var(--cs, var(--lt-primary-soft)); color: var(--c, var(--lt-primary)); }
.lt-ic.round { border-radius: 50%; }
.lt-dot { width: 26px; height: 26px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 0 5px var(--cs); }
.lt-av { width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: calc(var(--s) * .38); flex: none; }
.lt-badge-sq { width: 38px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .78rem; background: var(--c); flex: none; }

/* tables */
.lt-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.lt-table th { font-weight: 700; color: var(--lt-text-2); font-size: .8rem; background: var(--lt-surface-2); padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--lt-line); white-space: nowrap; }
.lt-table th:first-child { border-start-start-radius: 10px; }
.lt-table th:last-child { border-start-end-radius: 10px; }
.lt-table td { padding: 11px 12px; border-bottom: 1px solid var(--lt-line); vertical-align: middle; }
.lt-table tr:last-child td { border-bottom: 0; }
.lt-table tbody tr:hover td { background: #fafcff; }
.lt-table tr.lt-flash td { animation: lt-flash 1.6s ease; }
@keyframes lt-flash { from { background: #fff6d6; } to { background: transparent; } }
.lt-table-wrap { overflow-x: auto; }

.lt-pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.lt-pill-green { background: var(--lt-green-soft); color: #15803d; }
.lt-pill-blue { background: var(--lt-blue-soft); color: #1d4ed8; }
.lt-pill-orange { background: var(--lt-orange-soft); color: #b45309; }
.lt-pill-red { background: var(--lt-rose-soft); color: #be123c; }
.lt-pill-purple { background: var(--lt-purple-soft); color: #6d28d9; }
.lt-pill-gray { background: #eef1f6; color: #55627a; }

/* chart: grouped bars */
.lt-bars { display: flex; align-items: flex-end; justify-content: space-around; gap: 14px; height: 170px; padding-top: 18px; border-bottom: 1px solid var(--lt-line); }
.lt-bars .g { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; height: 100%; justify-content: flex-end; }
.lt-bars .g > div { display: flex; align-items: flex-end; gap: 5px; height: 100%; }
.lt-bars .b { width: 16px; border-radius: 5px 5px 0 0; background: var(--lt-primary); position: relative; transition: height .6s; }
.lt-bars .b.alt { background: #bfd3fb; }
.lt-bars .b::before { content: attr(data-v); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: .68rem; color: var(--lt-text-2); padding-bottom: 2px; }
.lt-bars-l { display: flex; justify-content: space-around; font-size: .76rem; color: var(--lt-text-2); padding-top: 6px; }
.lt-legend { display: flex; gap: 16px; font-size: .8rem; color: var(--lt-text-2); margin-bottom: 4px; }
.lt-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: -1px; }

/* donut */
.lt-donut-wrap { display: flex; align-items: center; gap: 18px; }
.lt-donut { --p1: 60; --p2: 25; width: 150px; height: 150px; border-radius: 50%; flex: none; position: relative;
	background: conic-gradient(var(--lt-blue) 0 calc(var(--p1) * 1%), var(--lt-green) 0 calc((var(--p1) + var(--p2)) * 1%), var(--lt-orange) 0 100%); }
.lt-donut::after { content: ""; position: absolute; inset: 18px; background: #fff; border-radius: 50%; }
.lt-donut span { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; line-height: 1.1; }
.lt-donut b { font-size: 1.7rem; color: var(--lt-green); display: block; }
.lt-donut small { font-size: .74rem; color: var(--lt-muted); }

/* activity feed (horizontal) */
.lt-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.lt-feed > div { display: flex; gap: 10px; }
.lt-feed b { font-size: .84rem; display: block; }
.lt-feed small { color: var(--lt-muted); font-size: .76rem; display: block; }

/* empty states */
.lt-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--lt-muted); padding: 30px 10px; text-align: center; }
.lt-empty i { font-size: 2.2rem; opacity: .6; }
.lt-empty-sm { padding: 16px 6px; }
.lt-empty-sm i { font-size: 1.5rem; }

/* page header */
.lt-ph { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.lt-ph h2 { font-size: 1.45rem; margin: 0; }
.lt-ph p { margin: 2px 0 0; color: var(--lt-muted); font-size: .9rem; }

/* children cards (parent) */
.lt-kid { display: flex; gap: 14px; align-items: center; }
.lt-kid-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.lt-kid-tab { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 14px; border: 1px solid var(--lt-line); background: #fff; color: var(--lt-text); cursor: pointer; font: inherit; }
.lt-kid-tab.on { border-color: var(--lt-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.lt-kid-tab span { text-align: start; line-height: 1.25; }
.lt-kid-tab small { display: block; color: var(--lt-muted); font-size: .76rem; }

/* auth pages */
.lt-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.lt-auth-side { background: radial-gradient(120% 120% at 100% 0%, #1e4fae 0%, #0f2d66 55%, #0b2551 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.lt-auth-side::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 20px 20px; }
.lt-auth-side > * { position: relative; }
.lt-auth-side h2 { font-size: 2.1rem; line-height: 1.35; max-width: 460px; }
.lt-auth-side p { color: #c8d7f5; max-width: 440px; }
.lt-auth-feats { display: grid; gap: 12px; margin-top: 18px; }
.lt-auth-feats div { display: flex; gap: 12px; align-items: center; color: #dbe6fb; }
.lt-auth-feats i { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 1.15rem; }
.lt-auth-main { display: grid; place-items: center; padding: 32px; background: #fff; }
.lt-auth-card { width: 100%; max-width: 400px; }
.lt-auth-card h1 { font-size: 1.6rem; margin-bottom: 4px; }
.lt-auth-card .sub { color: var(--lt-muted); margin-bottom: 26px; }
.lt-auth-card .form-control { height: 50px; }
.lt-auth-card .btn { height: 50px; }
.lt-input-ic { position: relative; }
.lt-input-ic > i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--lt-muted); font-size: 1.15rem; }
.lt-input-ic .form-control { padding-inline-start: 42px; }
.lt-ctx-list { display: grid; gap: 10px; }
.lt-ctx-card { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--lt-line); border-radius: 14px; color: var(--lt-text); transition: .15s; }
.lt-ctx-card:hover { border-color: var(--lt-primary); color: var(--lt-text); box-shadow: 0 8px 20px rgba(37, 99, 235, .1); }
.lt-ctx-card .lt-ic { width: 48px; height: 48px; font-size: 1.4rem; }
.lt-ctx-card b { display: block; }
.lt-ctx-card small { color: var(--lt-muted); }
.lt-ctx-card > i { margin-inline-start: auto; color: var(--lt-muted); }
[dir="ltr"] .lt-ctx-card > i { transform: scaleX(-1); }

/* toasts */
.lt-toast-stack { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 3000; display: grid; gap: 10px; width: 340px; max-width: calc(100vw - 36px); }
.lt-toast { background: #0f1b33; color: #fff; border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); animation: lt-in .25s ease; cursor: pointer; }
.lt-toast i { font-size: 1.3rem; color: #93c5fd; }
.lt-toast b { display: block; font-size: .9rem; }
.lt-toast span { font-size: .82rem; color: #cbd5e1; }
@keyframes lt-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* offcanvas forms (WorkUp style add/edit sidebars) */
.offcanvas { border: 0 !important; }
.offcanvas-header { border-bottom: 1px solid var(--lt-line); }
.offcanvas-title { font-weight: 800; }
.swal2-popup { font-family: var(--lt-font) !important; border-radius: 16px !important; }

/* ---------------- responsive ---------------- */
@media (max-width: 1400px) {
	.lt-dash { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1200px) {
	.lt-dash { grid-template-columns: minmax(0, 1fr); }
	.lt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
	.lt-side { transform: translateX(100%); }
	[dir="ltr"] .lt-side { transform: translateX(-100%); }
	body.side-open .lt-side { transform: none; }
	.lt-scrim { position: fixed; inset: 0; background: rgba(8, 20, 45, .45); z-index: 1035; display: none; }
	body.side-open .lt-scrim { display: block; }
	.lt-main { margin-inline-start: 0; }
	.lt-burger { display: grid; }
	.lt-row-2, .lt-row-2.wide, .lt-row-3 { grid-template-columns: minmax(0, 1fr); }
	.lt-hero-art { display: none; }
	.lt-auth { grid-template-columns: minmax(0, 1fr); }
	.lt-auth-side { display: none; }
	.lt-me-t { display: none; }
}
@media (max-width: 576px) {
	.lt-page { padding: 16px 14px 32px; }
	.lt-top { padding: 0 12px; gap: 8px; }
	.lt-stats { grid-template-columns: minmax(0, 1fr); }
	.lt-qas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lt-hero { padding: 22px; }
	.lt-hero h1 { font-size: 1.45rem; }
	.lt-notif-drop { width: calc(100vw - 24px); }
	.lt-search { display: none; }
}

/* ---------------- phase 3: management screens ---------------- */
.lt-grade-row { padding: 12px 0; border-top: 1px solid var(--lt-line); }
.lt-grade-row:first-of-type { border-top: 0; }
.lt-grade-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.lt-grade-h b { display: block; }
.lt-grade-h small { color: var(--lt-muted); font-size: .8rem; }
.lt-grade-h .grow { flex: 1; }
.lt-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lt-chip { border: 1px solid var(--lt-line); background: #fff; border-radius: 12px; padding: 8px 12px; min-width: 104px; text-align: start; display: grid; gap: 2px; cursor: pointer; font: inherit; color: var(--lt-text); border-top: 3px solid var(--c); transition: .15s; }
.lt-chip:hover { box-shadow: 0 8px 18px rgba(16, 33, 74, .08); transform: translateY(-1px); }
.lt-chip b { font-size: 1rem; }
.lt-chip span { font-size: .78rem; color: var(--lt-text-2); direction: ltr; text-align: end; }
.lt-chip small { font-size: .72rem; color: var(--lt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.lt-chip-bar { display: block; height: 4px; background: #edf1f7; border-radius: 2px; overflow: hidden; }
.lt-chip-bar > i { display: block; height: 100%; background: var(--c); }
.lt-chip-add { border-style: dashed; border-top-width: 1px; color: var(--lt-primary); display: flex; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: .85rem; }
.lt-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 20px 0; }
.lt-toolbar .form-control, .lt-toolbar .form-select { max-width: 230px; }
.lt-sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; background: var(--c); vertical-align: -2px; }
.lt-icon-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.lt-icon-pick label { border: 1px solid var(--lt-line); border-radius: 9px; height: 40px; display: grid; place-items: center; cursor: pointer; font-size: 1.2rem; color: var(--lt-text-2); }
.lt-icon-pick input { display: none; }
.lt-icon-pick input:checked + label { border-color: var(--lt-primary); background: var(--lt-primary-soft); color: var(--lt-primary); }
.lt-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--lt-line); margin-bottom: 18px; overflow-x: auto; }
.lt-tabs button { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 700; color: var(--lt-text-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.lt-tabs button.on { color: var(--lt-primary); border-bottom-color: var(--lt-primary); }
.lt-kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; align-items: start; padding-bottom: 6px; }
.lt-kcol { background: #eef2f8; border-radius: 14px; padding: 10px; min-height: 120px; }
.lt-kcol h4 { font-size: .9rem; display: flex; justify-content: space-between; align-items: center; margin: 4px 6px 10px; }
.lt-kcard { background: #fff; border-radius: 11px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--lt-shadow); cursor: pointer; border: 1px solid transparent; }
.lt-kcard:hover { border-color: #c7d6f5; }
.lt-kcard b { display: block; font-size: .9rem; }
.lt-kcard small { color: var(--lt-muted); font-size: .76rem; display: block; }
/* timetable grid */
.lt-tt { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; min-width: 760px; }
.lt-tt th { font-size: .8rem; color: var(--lt-text-2); text-align: center; font-weight: 700; }
.lt-tt th small { display: block; color: var(--lt-muted); font-weight: 500; direction: ltr; }
.lt-tt td { height: 74px; border-radius: 11px; background: var(--lt-surface-2); border: 1px dashed var(--lt-line); vertical-align: middle; text-align: center; cursor: pointer; padding: 6px; font-size: .8rem; transition: .12s; position: relative; }
.lt-tt td:hover { border-color: var(--lt-primary); }
.lt-tt td.on { background: color-mix(in srgb, var(--c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c) 40%, #fff); border-inline-start: 4px solid var(--c); text-align: start; }
.lt-tt td.on b { display: block; font-size: .85rem; color: var(--lt-text); }
.lt-tt td.on small { color: var(--lt-text-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-tt td.brk { background: repeating-linear-gradient(45deg, #f6f8fb, #f6f8fb 6px, #eef2f7 6px, #eef2f7 12px); cursor: default; border: 0; height: 30px; color: var(--lt-muted); }
.lt-tt th.day { width: 92px; }
.lt-quota { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-quota span { font-size: .78rem; padding: 4px 10px; border-radius: 20px; background: #eef1f6; }
.lt-quota span.ok { background: var(--lt-green-soft); color: #15803d; }
.lt-quota span.over { background: var(--lt-rose-soft); color: #be123c; }
.lt-perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lt-perm-grid label { border: 1px solid var(--lt-line); border-radius: 10px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: .88rem; }
