/* ══════════════════════════════════════════════════════════
   منصّة حلقات مجمع أم إبراهيم الذياب — نظام التصميم
   الهوية: أخضر القبّة · ذهب الهرم · أزرق السجل
   ══════════════════════════════════════════════════════════ */

:root {
    --brand:        #0d7a4f;
    --brand-dark:   #085436;
    --brand-light:  #e7f5ee;
    --brand-tint:   #d1ebe0;

    --gold:         #d99a12;
    --gold-light:   #fdf6e3;
    --gold-dark:    #a8730a;

    --navy:         #0e3a6b;
    --navy-light:   #eaf1fa;

    --ink:          #0f172a;
    --ink-2:        #334155;
    --muted:        #64748b;
    --muted-2:      #94a3b8;
    --line:         #e2e8f0;
    --line-soft:    #f1f5f9;
    --bg:           #f6f8f7;
    --card:         #ffffff;

    --ok:           #16a34a;
    --warn:         #d97706;
    --danger:       #dc2626;
    --info:         #0891b2;

    --r-sm: 8px;
    --r:    14px;
    --r-lg: 20px;
    --r-xl: 28px;

    --sh-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
    --sh:    0 4px 12px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
    --sh-lg: 0 18px 40px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.05);

    --nav-h: 62px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: Tajawal, "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .6rem; line-height: 1.35; font-weight: 700; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.03rem; }
p  { margin: 0 0 .8rem; }

.num { font-feature-settings: "tnum"; letter-spacing: .01em; }

/* ─────────────────── الهيكل العام ─────────────────── */

.topbar {
    position: sticky; top: 0; z-index: 60;
    height: var(--nav-h);
    background: linear-gradient(115deg, var(--brand-dark), var(--brand));
    color: #fff;
    display: flex; align-items: center; gap: 12px;
    padding: 0 16px;
    box-shadow: 0 2px 14px rgba(8,84,54,.25);
}
.topbar .brand {
    display: flex; align-items: center; gap: 10px; min-width: 0;
    font-weight: 800; font-size: 1rem; color: #fff; text-decoration: none;
}
.topbar .brand:hover { text-decoration: none; }
/* اسم المنصّة يبقى في سطر واحد ويُقصّ عند الضيق بدل أن يمدّد الشريط */
.topbar .brand > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .brand .mark {
    width: 34px; height: 34px; border-radius: 10px; flex: none;
    background: rgba(255,255,255,.16);
    display: grid; place-items: center; font-size: 1.05rem;
}
.topbar .spacer { flex: 1; }
.topbar .who { font-size: .82rem; opacity: .9; display: flex; align-items: center; gap: 8px; }
.topbar .who .role-chip { background: rgba(255,255,255,.18); padding: 2px 10px; border-radius: 99px; font-size: .74rem; }
.topbar .icon-btn {
    background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 10px;
    width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; font-size: 1rem;
}
.topbar .icon-btn:hover { background: rgba(255,255,255,.26); }

.layout { display: flex; min-height: calc(100vh - var(--nav-h)); }

.sidebar {
    width: 232px; flex: none; background: var(--card);
    border-inline-start: 1px solid var(--line);
    padding: 16px 12px; position: sticky; top: var(--nav-h);
    height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.sidebar .sec { font-size: .72rem; color: var(--muted-2); font-weight: 700; padding: 14px 12px 6px; letter-spacing: .02em; }
.sidebar a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--r-sm);
    color: var(--ink-2); font-size: .9rem; font-weight: 500; margin-bottom: 2px;
}
.sidebar a:hover { background: var(--line-soft); text-decoration: none; }
.sidebar a.on { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; }
.sidebar a .ic { width: 20px; text-align: center; font-size: 1rem; }

.main { flex: 1; min-width: 0; padding: 22px; }
.wrap { max-width: 1180px; margin: 0 auto; }

.page-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); font-size: .88rem; margin: 2px 0 0; }
.page-head .actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* شريط سفلي للجوال */
.tabbar { display: none; }

@media (max-width: 900px) {
    .sidebar { display: none; }
    .main { padding: 14px 12px calc(72px + env(safe-area-inset-bottom)); }
    .tabbar {
        display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 70;
        background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
        border-top: 1px solid var(--line);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .tabbar a {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
        padding: 6px 2px; color: var(--muted); font-size: .68rem; font-weight: 600;
    }
    .tabbar a:hover { text-decoration: none; }
    .tabbar a .ic { font-size: 1.25rem; line-height: 1; }
    .tabbar a.on { color: var(--brand); }
    .topbar .who .name { display: none; }
}

@media (max-width: 560px) {
    .topbar { padding: 0 10px; gap: 8px; }
    .topbar .brand { font-size: .88rem; }
    .topbar .brand .mark { width: 30px; height: 30px; border-radius: 9px; font-size: .95rem; }
    .page-head h1 { font-size: 1.25rem; }
    .page-head .actions { width: 100%; margin-inline-start: 0; }
    .page-head .actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ─────────────────── البطاقات ─────────────────── */

.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-sm);
    margin-bottom: 16px;
}
.card.pad-0 { padding: 0; overflow: hidden; }
.card > .card-head {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fcfdfd;
}
.card > .card-head h2, .card > .card-head h3 { margin: 0; }
.card > .card-head .actions { margin-inline-start: auto; display: flex; gap: 8px; }
.card > .card-body { padding: 18px; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* بطاقات الإحصاء */
.stat {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    padding: 15px 16px; box-shadow: var(--sh-sm);
    display: flex; align-items: center; gap: 13px;
}
.stat .ic {
    width: 44px; height: 44px; flex: none; border-radius: 13px;
    display: grid; place-items: center; font-size: 1.25rem;
    background: var(--brand-light); color: var(--brand-dark);
}
.stat .v { font-size: 1.55rem; font-weight: 800; line-height: 1.15; }
.stat .l { font-size: .8rem; color: var(--muted); }
.stat.gold .ic { background: var(--gold-light); color: var(--gold-dark); }
.stat.navy .ic { background: var(--navy-light); color: var(--navy); }
.stat.rose .ic { background: #fef2f2; color: #b91c1c; }

/* ─────────────────── الأزرار ─────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 17px; border-radius: 11px; border: 1px solid transparent;
    background: var(--brand); color: #fff; font: 600 .9rem Tajawal, sans-serif;
    cursor: pointer; transition: .15s; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-soft); color: var(--ink); }
.btn.gold { background: var(--gold); }
.btn.gold:hover { background: var(--gold-dark); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b91c1c; }
.btn.sm { padding: 8px 13px; font-size: .8rem; border-radius: 9px; }
.btn.lg { padding: 14px 26px; font-size: 1rem; border-radius: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ─────────────────── النماذج ─────────────────── */

label.f { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.field { margin-bottom: 14px; }

input[type=text], input[type=password], input[type=number], input[type=date],
input[type=tel], input[type=email], input[type=search], select, textarea {
    width: 100%; padding: 10px 12px; font: inherit; font-size: .92rem;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
    transition: .15s;
}
input:focus, select:focus, textarea:focus {
    outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light);
}
select { background-image: none; }
textarea { min-height: 92px; resize: vertical; }
.hint { font-size: .76rem; color: var(--muted); margin-top: 5px; }

.form-row { display: grid; gap: 0 14px; grid-template-columns: repeat(2, 1fr); }
.form-row.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) { .form-row, .form-row.c3 { grid-template-columns: 1fr; } }

/* ─────────────────── الجداول ─────────────────── */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tb { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.tb th {
    background: var(--line-soft); color: var(--ink-2); font-weight: 700; font-size: .8rem;
    padding: 11px 12px; text-align: start; white-space: nowrap;
    border-bottom: 1px solid var(--line);
}
table.tb td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tb tbody tr:hover { background: #fbfdfc; }
table.tb tbody tr:last-child td { border-bottom: 0; }
table.tb .c { text-align: center; }

/* ─────────────────── الشارات ─────────────────── */

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 99px; font-size: .76rem; font-weight: 700;
    background: var(--line-soft); color: var(--ink-2); white-space: nowrap;
}
.badge.ok    { background: #dcfce7; color: #15803d; }
.badge.warn  { background: #fef3c7; color: #a16207; }
.badge.danger{ background: #fee2e2; color: #b91c1c; }
.badge.info  { background: #cffafe; color: #0e7490; }
.badge.brand { background: var(--brand-light); color: var(--brand-dark); }
.badge.gold  { background: var(--gold-light); color: var(--gold-dark); }
.badge.muted { background: var(--line-soft); color: var(--muted); }

.dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }

/* ─────────────────── التنبيهات ─────────────────── */

.alert {
    padding: 12px 15px; border-radius: var(--r); margin-bottom: 16px;
    font-size: .88rem; display: flex; gap: 10px; align-items: flex-start;
    border: 1px solid;
}
.alert.ok    { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert.err   { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert.warn  { background: #fffbeb; border-color: #fde68a; color: #a16207; }
.alert.info  { background: #f0f9ff; border-color: #bae6fd; color: #0369a1; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .ic { font-size: 2.6rem; opacity: .35; display: block; margin-bottom: 10px; }

/* ─────────────────── أشرطة التقدّم ─────────────────── */

.bar { height: 9px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width .5s ease; }
.bar.thin { height: 6px; }
.bar.thick { height: 14px; }

.progress-line { display: flex; align-items: center; gap: 10px; }
.progress-line .bar { flex: 1; }
.progress-line .pv { font-size: .8rem; font-weight: 700; color: var(--muted); min-width: 42px; text-align: end; }

/* ─────────────────── الهرم التحفيزي ─────────────────── */

.pyramid-box { display: grid; place-items: center; padding: 6px 0; }
.pyramid svg { max-width: 100%; height: auto; }

/* الهرم بجانب تفاصيله على الشاشات الواسعة، وفوقها على الجوال */
.split-pyr {
    display: grid; gap: 22px; align-items: center;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
}
.split-pyr > * { min-width: 0; }
@media (max-width: 760px) {
    .split-pyr { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
.brick { transition: fill .4s ease, opacity .4s; }
.brick.done  { fill: var(--gold); }
.brick.great { fill: #16a34a; }
.brick.mid   { fill: #a3c93c; }
.brick.low   { fill: #f97316; }
.brick.todo  { fill: #e8edf2; }
.brick.miss  { fill: #fecdd3; }
.brick.next  { fill: #fff; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 4 3; }

/* ─────────────────── صفحة الدخول ─────────────────── */

.login-page {
    min-height: 100vh; display: grid; place-items: center; padding: 20px;
    background:
      radial-gradient(1100px 620px at 80% -10%, rgba(217,154,18,.20), transparent 60%),
      linear-gradient(155deg, #06301f 0%, #0b4a31 45%, #0e3a6b 100%);
}
.login-card {
    width: min(430px, 100%); background: #fff; border-radius: var(--r-xl);
    padding: 34px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.login-card .logo {
    width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 22px;
    background: linear-gradient(140deg, var(--brand), var(--brand-dark));
    display: grid; place-items: center; font-size: 2rem; color: #fff;
    box-shadow: 0 10px 26px rgba(13,122,79,.35);
}
.login-card h1 { text-align: center; font-size: 1.28rem; margin-bottom: 2px; }
.login-card .tag { text-align: center; color: var(--muted); font-size: .85rem; margin-bottom: 24px; }

/* ─────────────────── سجل الحفظ (شبيه بالسجل الورقي) ─────────────────── */

table.ledger { width: 100%; border-collapse: collapse; font-size: .82rem; }
table.ledger th {
    background: #fef9c3; color: #713f12; border: 1px solid #d6d3a8;
    padding: 8px 6px; font-size: .76rem; font-weight: 700; text-align: center; white-space: nowrap;
}
table.ledger td { border: 1px solid #dfe5ea; padding: 7px 8px; text-align: center; background: #fff; }
table.ledger tr.filled td { background: #f4fbf7; }
table.ledger tr.sign td {
    background: #fef9c3; color: #713f12; font-weight: 700; font-size: .78rem; text-align: start;
}
table.ledger td.ref { text-align: start; font-weight: 500; }
table.ledger .seq { background: #fef9c3; font-weight: 700; color: #713f12; width: 40px; }

/* ─────────────────── إدخال المعلّم السريع ─────────────────── */

.rec-card {
    border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
    padding: 15px; margin-bottom: 13px; box-shadow: var(--sh-sm);
    transition: border-color .2s, box-shadow .2s;
}
.rec-card.saved { border-color: var(--ok); box-shadow: 0 0 0 3px #dcfce7; }
.rec-card .rh { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.rec-card .av {
    width: 42px; height: 42px; border-radius: 13px; flex: none;
    background: linear-gradient(140deg, var(--brand-light), var(--brand-tint));
    color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.rec-card .nm { font-weight: 700; font-size: .97rem; line-height: 1.3; }
.rec-card .mt { font-size: .76rem; color: var(--muted); }
.rec-card .rs { margin-inline-start: auto; }

/* بطاقة الطالب كأكورديون: الرأس دائم الظهور والنموذج يُفتح بالنقر */
details.rec-card { padding: 0; overflow: hidden; }
details.rec-card > summary {
    display: flex; align-items: center; gap: 11px;
    padding: 13px 15px; cursor: pointer; user-select: none;
    list-style: none; transition: background .15s;
}
details.rec-card > summary::-webkit-details-marker { display: none; }
details.rec-card > summary::marker { content: ""; }
details.rec-card > summary:hover { background: var(--line-soft); }
details.rec-card > summary:active { background: var(--brand-light); }
details.rec-card > summary .chev {
    flex: none; margin-inline-start: 8px; color: var(--muted-2);
    font-size: 1.1rem; line-height: 1; transition: transform .2s;
}
details.rec-card[open] > summary { border-bottom: 1px solid var(--line); background: #fcfdfd; }
details.rec-card[open] > summary .chev { transform: rotate(180deg); }
details.rec-card > .rec-body { padding: 15px; }
/* الطلاب الذين سُجّل لهم اليوم */
details.rec-card[data-done="1"] { border-color: #cdebd9; }
details.rec-card[data-done="1"] > summary .av { background: #dcfce7; color: #15803d; }

/* أزرار الاختيار الكبيرة — مناسبة للمس، بأعمدة متساوية لا تتمدّد */
.pick { display: grid; gap: 7px; grid-template-columns: repeat(4, 1fr); }
.pick-4 { grid-template-columns: repeat(4, 1fr); }
.pick-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 620px) {
    /* على الجوال: التقديرات الخمسة في صفّين متساويين (٣ + ٢) بدل زرّ ممتدّ */
    .pick-5 { grid-template-columns: repeat(3, 1fr); }
}
.pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.pick label {
    text-align: center; cursor: pointer;
    padding: 11px 6px; border: 1.5px solid var(--line); border-radius: 12px;
    font-size: .85rem; font-weight: 700; color: var(--muted); background: #fff;
    transition: .15s; user-select: none;
    display: flex; align-items: center; justify-content: center; min-height: 46px;
}
.pick label:active { transform: scale(.97); }
.pick input:checked + label { color: #fff; border-color: transparent; }
.pick input:checked + label.g-excellent { background: #16a34a; }
.pick input:checked + label.g-verygood  { background: #65a30d; }
.pick input:checked + label.g-good      { background: #ca8a04; }
.pick input:checked + label.g-weak      { background: #ea580c; }
.pick input:checked + label.g-none      { background: #dc2626; }
.pick input:checked + label.a-present   { background: #16a34a; }
.pick input:checked + label.a-late      { background: #ca8a04; }
.pick input:checked + label.a-excused   { background: #0891b2; }
.pick input:checked + label.a-absent    { background: #dc2626; }

.field-label-sm { font-size: .75rem; font-weight: 700; color: var(--muted); margin: 0 0 6px; }

.sticky-save {
    position: sticky; bottom: 0; z-index: 40;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); padding: 11px 0;
    margin: 14px -22px -22px; padding-inline: 22px;
}
@media (max-width: 900px) {
    .sticky-save { margin: 14px -12px 0; padding-inline: 12px; bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ─────────────────── الطالب: لوحة تحفيزية ─────────────────── */

.hero-student {
    border-radius: var(--r-xl); padding: 22px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0b5c3c, #0d7a4f 45%, #0e3a6b);
    box-shadow: var(--sh-lg); margin-bottom: 16px;
}
.hero-student::after {
    content: ""; position: absolute; inset-block: -40%; inset-inline-start: -10%;
    width: 55%; background: radial-gradient(circle, rgba(217,154,18,.30), transparent 65%);
}
.hero-student > * { position: relative; z-index: 1; }
.hero-student h1 { font-size: 1.35rem; margin-bottom: 2px; }
.hero-student .sub { opacity: .88; font-size: .88rem; }
.hero-student .rank-pill {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
    background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.25);
    padding: 7px 15px; border-radius: 99px; font-weight: 700; font-size: .9rem;
}

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 16px; }
.mini-stats .m {
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--r); padding: 11px 8px; text-align: center;
}
.mini-stats .m b { display: block; font-size: 1.2rem; font-weight: 800; }
.mini-stats .m span { font-size: .7rem; opacity: .85; }
@media (max-width: 480px) { .mini-stats { grid-template-columns: repeat(2, 1fr); } }

.badges { display: flex; gap: 10px; flex-wrap: wrap; }
.ach {
    width: 96px; text-align: center; padding: 12px 6px; border-radius: var(--r);
    border: 1px solid var(--line); background: #fff;
}
.ach .em { font-size: 1.9rem; line-height: 1; display: block; margin-bottom: 5px; }
.ach .tt { font-size: .72rem; font-weight: 700; color: var(--ink-2); line-height: 1.3; }
.ach.locked { opacity: .38; filter: grayscale(1); }

.streak { display: flex; gap: 5px; flex-wrap: wrap; }
.streak i {
    width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
    font-style: normal; font-size: .7rem; font-weight: 700; background: var(--line-soft); color: var(--muted-2);
}
.streak i.on { background: var(--brand); color: #fff; }
.streak i.miss { background: #fee2e2; color: #b91c1c; }

/* ─────────────────── متفرقات ─────────────────── */

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line);
    background: #fff; font-size: .84rem; font-weight: 600; color: var(--ink-2);
}
.chip.on, a.chip:hover { background: var(--brand); border-color: var(--brand); color: #fff; text-decoration: none; }

.list-row {
    display: flex; align-items: center; gap: 12px; padding: 13px 4px;
    border-bottom: 1px solid var(--line-soft);
}
.list-row:last-child { border-bottom: 0; }
.list-row .av {
    width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
    background: var(--brand-light); color: var(--brand-dark); font-weight: 800; font-size: .9rem;
}
.list-row .tx { min-width: 0; flex: 1; }
.list-row .tx b { display: block; font-size: .93rem; font-weight: 700; }
.list-row .tx span { font-size: .78rem; color: var(--muted); }
.list-row .rt { margin-inline-start: auto; text-align: end; }

.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

.muted { color: var(--muted); }
.small { font-size: .8rem; }
.tac { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 10px; } .mb-1 { margin-bottom: 10px; }
.mt-2 { margin-top: 18px; } .mb-2 { margin-bottom: 18px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.flex-end { margin-inline-start: auto; }

.print-only { display: none; }

@media print {
    .topbar, .sidebar, .tabbar, .page-head .actions, .btn, .no-print { display: none !important; }
    body { background: #fff; font-size: 12px; }
    .main { padding: 0; }
    .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
    .print-only { display: block; }
    a { color: #000; }
}
