:root { --bg:#f7f6f2; --card:#fff; --ink:#1f2328; --muted:#6b6f76; --line:#e3e0d8; --accent:#2f6f4f; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font: 16px/1.6 "Segoe UI", Tahoma, "Noto Naskh Arabic", sans-serif; }
header { display:flex; gap:24px; align-items:center; padding:12px 24px; background:var(--accent); color:#fff; flex-wrap:wrap; }
header a { color:#fff; text-decoration:none; }
.brand { font-weight:700; font-size:18px; }
nav { display:flex; gap:16px; flex-wrap:wrap; }
nav a { opacity:.9; padding:4px 10px; border-radius:8px; } nav a:hover { opacity:1; text-decoration:underline; }
nav a.on { opacity:1; background:rgba(255,255,255,.2); font-weight:600; }
.subnav { border-bottom:1px solid var(--line); padding-bottom:10px; margin:0 0 4px; }
main { max-width:1100px; margin:0 auto; padding:16px; }
h1 { font-size:24px; margin:8px 0 16px; } h2 { font-size:19px; margin:24px 0 8px; }
a { color:var(--accent); }
.muted { color:var(--muted); }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; }
.stats div { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:14px; }
.stats b { display:block; font-size:28px; color:var(--accent); }
.tbl { overflow-x:auto; background:var(--card); border:1px solid var(--line); border-radius:10px; }
table { width:100%; border-collapse:collapse; }
th, td { padding:8px 12px; text-align:right; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:#efede6; font-weight:600; white-space:nowrap; }
tr:last-child td { border-bottom:0; }
.prep { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:8px 20px; }
.prep h3 { font-size:17px; margin:14px 0 4px; color:var(--accent); }
@media print { header { display:none; } body { background:#fff; } .tbl { border:0; } }

/* ---------- الدخول والنماذج ---------- */
.who { margin-inline-start:auto; font-size:14px; opacity:.9; }
.err { background:#fde8e8; border:1px solid #f3b5b5; padding:10px 14px; border-radius:8px; color:#8a1c1c; }
.ok { background:#e6f4ea; border:1px solid #b7dfc3; padding:10px 14px; border-radius:8px; }
.login { max-width:380px; }
.vform fieldset { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:12px 16px; margin:0 0 16px; }
.vform legend { font-weight:700; padding:0 6px; color:var(--accent); }
.vform label { display:block; margin:6px 0; font-size:14px; }
.vform input[type=text], .vform input:not([type]), .vform input[type=date], .vform input[type=datetime-local], .vform input[type=number],
.vform input[type=password], .vform select, .vform textarea { width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:8px; font:inherit; background:#fff; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:4px 14px; }
button, .btn { display:inline-block; padding:8px 16px; border-radius:8px; border:1px solid var(--line); background:#fff; color:var(--ink); font:inherit; cursor:pointer; text-decoration:none; }
button.primary, .btn.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
button.danger { color:#a11; border-color:#e3b0b0; }
.actions { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 24px; }
.bar { position:sticky; top:0; z-index:5; display:flex; gap:16px; flex-wrap:wrap; background:#fffbea; border:1px solid #eadc9a; border-radius:10px; padding:10px 14px; margin-bottom:12px; }
.item { border-top:1px solid var(--line); padding:10px 0; }
.item:first-of-type { border-top:0; }
.item.missing .item-h { color:#8a1c1c; }
.item-h { font-weight:600; margin-bottom:6px; }
.num { display:inline-block; min-width:24px; text-align:center; background:#efede6; border-radius:6px; margin-inline-end:4px; }
.scale { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:4px; }
.scale label { margin:0; }
.scale input { position:absolute; opacity:0; }
.scale span { display:inline-block; min-width:44px; padding:8px 10px; text-align:center; border:1px solid var(--line); border-radius:8px; background:#fff; cursor:pointer; }
.sc1 input:checked + span, .sc2 input:checked + span, .sc3 input:checked + span, .st-needs input:checked + span { background:#d93b3b; color:#fff; border-color:#d93b3b; }
.sc4 input:checked + span, .st-partial input:checked + span { background:#e3a21a; color:#fff; border-color:#e3a21a; }
.sc5 input:checked + span, .st-meets input:checked + span { background:#2f8f4f; color:#fff; border-color:#2f8f4f; }
.st-na input:checked + span { background:#777; color:#fff; }
details summary { cursor:pointer; color:var(--muted); font-size:14px; }
.slots { margin:6px 0 10px; display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.chip { padding:4px 10px; border-radius:16px; font-size:14px; }
.filters { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:12px; }
.filters select, .filters input { padding:6px 8px; border:1px solid var(--line); border-radius:8px; font:inherit; }
.inline { display:flex; gap:4px; flex-wrap:wrap; }
.inline select, .inline input { padding:4px 6px; border:1px solid var(--line); border-radius:6px; font:inherit; font-size:13px; }
.inline button { padding:4px 10px; font-size:13px; }
.small { font-size:13px; }
.up { color:#2f8f4f; font-weight:600; } .down { color:#c0392b; font-weight:600; } .late { color:#c0392b; font-weight:600; }
.tabs { display:flex; gap:6px; margin:8px 0 12px; flex-wrap:wrap; }
.tabs a { padding:6px 12px; border:1px solid var(--line); border-radius:8px; background:#fff; text-decoration:none; }
.tabs a.on { background:var(--accent); color:#fff; border-color:var(--accent); }

/* ---------- التقارير ---------- */
.report { background:#fff; border:1px solid var(--line); border-radius:10px; padding:20px 26px; margin-bottom:12px; }
.report h2 { font-size:21px; margin:0 0 6px; }
.report h3 { font-size:17px; margin:18px 0 6px; }
.report h3.red { color:#b42318; } .report h3.yellow { color:#9a6700; } .report h3.green { color:#2f6f4f; }
.report .meta { color:var(--muted); margin:2px 0; }
.report .score { font-weight:700; font-size:17px; }
.report ul.items > li { margin-bottom:10px; }
.report ul.items p { margin:2px 0; }
.report[dir=ltr] { text-align:left; }
.ministry .center { text-align:center; }
.ministry .mt { width:100%; border-collapse:collapse; margin:8px 0; }
.ministry .mt th, .ministry .mt td { border:1px solid #444; padding:6px 8px; text-align:center; }
.ministry .mbox { border:1px solid #444; margin:8px 0; }
.ministry .mbox h4 { margin:0; padding:6px 10px; background:#f1f1f1; border-bottom:1px solid #444; font-size:14px; }
.ministry .mtext { padding:8px 10px; min-height:48px; }
.ministry .sign { width:100%; margin-top:18px; }
.ministry .sign td { padding:10px 4px; }
.chart { width:100%; max-width:700px; height:auto; background:#fff; border:1px solid var(--line); border-radius:10px; }
.chart .grid { stroke:#e6e3da; } .chart .line { fill:none; stroke:var(--accent); stroke-width:2.5; }
.chart .dot { fill:var(--accent); } .chart .lbl { font-size:11px; fill:#6b6f76; } .chart .val { font-size:12px; font-weight:700; fill:#1f2328; }
body.print { background:#fff; }
body.print .report { border:0; padding:0; }
.print-head { padding:8px 0 12px; border-bottom:2px solid var(--accent); margin-bottom:12px; }
@media print {
  @page { size:A4; margin:14mm; }
  .print-head { display:block; }
  .report { border:0; padding:0; }
}
@media (max-width:600px) {
  main { padding:12px; } .report { padding:14px; }
  .scale span { min-width:40px; padding:10px 8px; }
}

/* ---------- شاشات المعلمة ---------- */
.ok-inline { color:#2f8f4f; font-weight:600; }
ol.next { margin:4px 0 10px; padding-inline-start:22px; }
ol.next li { margin:2px 0; }
label.check { display:flex; gap:8px; align-items:center; }
label.check input { width:auto; }
.mat-frame { width:100%; height:80vh; border:1px solid var(--line); border-radius:10px; background:#fff; }
details.edit { margin-top:18px; }
details.edit > summary { font-size:16px; color:var(--accent); font-weight:600; }
table.script-edit td { padding:4px; }
table.script-edit input, table.script-edit textarea { width:100%; min-width:60px; padding:4px 6px; border:1px solid var(--line); border-radius:6px; font:inherit; font-size:14px; }
table.script-edit td:nth-child(1), table.script-edit td:nth-child(2) { width:64px; }
.prep-head { margin-bottom:12px; }
button[disabled] { opacity:.5; cursor:not-allowed; }

/* ---------- المتابعة والمقارنة ---------- */
.verdicts { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:10px; margin:10px 0 14px; }
.verdicts > div { background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 14px; display:flex; flex-direction:column; gap:4px; }
.verdicts .lbl { color:var(--muted); font-size:13px; }
.verdict { display:inline-block; padding:3px 10px; border-radius:14px; font-weight:700; font-size:14px; }
.v-up2, .v-yes { background:#dff3e5; color:#1f6b3a; }
.v-up1 { background:#eaf6ee; color:#2f8f4f; }
.v-same, .v-partial { background:#fff3d6; color:#8a5a00; }
.v-down1, .v-down2, .v-no { background:#fde3e1; color:#a1281e; }
.v-none { background:#eee; color:#555; }
.up-line { color:#1f6b3a; } .down-line { color:#a1281e; }
.compare details { margin-top:10px; }

.mat-chips { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:8px 0 12px; }
.mat-chips .chip { background:#eef6f1; border:1px solid #cfe6d8; cursor:default; }

/* ---------- خطة الأسبوع ---------- */
.weeknav { display:flex; gap:14px; flex-wrap:wrap; align-items:center; margin:4px 0 14px; }
table.weekgrid td, table.weekgrid th { vertical-align:top; font-size:14px; min-width:110px; }
table.weekgrid tbody th { white-space:nowrap; background:#f6f8f7; }
.wk-subj { font-weight:700; color:var(--accent); margin-bottom:2px; }
.wk-lesson { font-weight:600; }
.wk-empty { color:var(--muted); background:#fafafa; }
.wk-unknown { background:#fff8e6; }
.wk-off { background:#eee; color:#666; }
.wk-prep { display:inline-block; margin-top:4px; font-size:12px; padding:1px 8px; border-radius:10px; }
.wk-prep.draft { background:#fff3d6; color:#8a5a00; }
.wk-prep.approved, .wk-prep.done { background:#dff3e5; color:#1f6b3a; }
.wk-prep.none { background:#f1f1f1; color:#777; }
@media print {
  .no-print { display:none !important; }
  table.weekgrid td, table.weekgrid th { font-size:11px; min-width:0; padding:4px; }
  .wk-prep { display:none; }
}
.print-only { display:none; }
@media print { .screen-only { display:none !important; } .print-only { display:block; } }
.wk-status { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:6px 0; }
.wk-subject { background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 14px; margin:0 0 12px; }
.wk-subject-head { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:6px; }
.wk-subject-head h3 { margin:0; font-size:17px; color:var(--accent); }
.wk-entry textarea { width:100%; font:inherit; padding:8px 10px; border:1px solid var(--line); border-radius:8px; }
.wk-entry .actions { margin:6px 0 0; }
.wk-text { white-space:normal; line-height:1.8; }
details.wk-grid { margin-top:16px; }
details.wk-grid > summary { font-weight:600; color:var(--accent); cursor:pointer; margin-bottom:8px; }

/* ---------- الحسابات ---------- */
.inline-form { display:inline-flex; gap:6px; align-items:center; margin:2px 0; }
.inline-form input { padding:5px 8px; border:1px solid var(--line); border-radius:6px; font:inherit; }
.inline-form button { padding:5px 12px; }
.who a { color:inherit; }
.pw-slip { background:#fff; border:2px dashed var(--line); border-radius:10px; padding:14px 18px; max-width:420px; line-height:1.9; }
.pw-slip code.pw { font-size:22px; letter-spacing:2px; background:#eef6f1; padding:2px 10px; border-radius:6px; }

/* ---------- المراجعة وسجل التعديلات ---------- */
.suggest-box { background:#fff8e6; border:1px solid #f0d58a; border-radius:10px; padding:10px 14px; margin:8px 0 12px; }
.suggest-box .note { background:#fff; border-inline-start:3px solid #e0b33c; padding:6px 10px; margin:6px 0; }
.suggest-box ul { margin:6px 0 0; }
.suggest-pending { color:#8a5a00; background:#fff8e6; border-radius:8px; padding:6px 10px; font-size:14px; }
.inline-form.wrap { flex-wrap:wrap; }
.diff { font-size:14px; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#fff; margin:6px 0; }
.diff > div { padding:2px 10px; white-space:pre-wrap; }
.diff .del { background:#fde3e1; color:#8a1c1c; text-decoration:line-through; }
.diff .ins { background:#dff3e5; color:#1f6b3a; }
.diff .same { color:#555; }
.act { display:inline-block; padding:1px 8px; border-radius:10px; font-size:13px; background:#eef1f0; }
.act-suggest { background:#fff3d6; color:#8a5a00; } .act-accept, .act-approve { background:#dff3e5; color:#1f6b3a; } .act-reject { background:#fde3e1; color:#a1281e; }
.small { font-size:12px; }
.diff .gap { color:#888; font-size:12px; background:#f6f6f6; text-align:center; }

/* ---------- أوراق العمل والامتحانات، الأرشيف، الملاحظات ---------- */
.lesson-pick { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:2px 12px; background:#fff; border:1px solid var(--line); border-radius:8px; padding:8px 12px; margin:4px 0 10px; }
.issues { margin:6px 0 10px; padding-inline-start:20px; }
.issues .is-error { color:#a1281e; font-weight:600; } .issues .is-warn { color:#8a5a00; } .issues .is-info { color:#666; }
fieldset.q-edit { background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 14px; margin:0 0 12px; }
fieldset.vform-like { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:12px 16px; margin:0 0 16px; }
fieldset.vform-like legend { font-weight:700; padding:0 6px; color:var(--accent); }
.fb-list { display:flex; flex-direction:column; gap:8px; margin:6px 0 12px; }
.fb-item { background:#fff; border:1px solid var(--line); border-inline-start:4px solid #9bb; border-radius:8px; padding:8px 12px; }
.fb-supervision, .fb-admin { border-inline-start-color:#2e6b4f; } .fb-student { border-inline-start-color:#e0b33c; } .fb-parent { border-inline-start-color:#7a63c9; }
.key table { width:100%; border-collapse:collapse; background:#fff; } .key td, .key th { border:1px solid var(--line); padding:4px 8px; font-size:14px; }

/* ---------- المخالفات والإنجازات ---------- */
.cd-item { background:#fff; border:1px solid var(--line); border-inline-start:5px solid #c0392b; border-radius:10px; padding:10px 14px; margin:0 0 12px; }
.cd-item.cd-achievement { border-inline-start-color:#2f8f4f; }
.cd-item.cd-closed { opacity:.75; }
.cd-head { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:4px; }
.cd-comment { background:#f6f8f7; border-radius:8px; padding:6px 10px; margin:6px 0; }

/* ---------- الخطة الفصلية: الشريط الزمني ---------- */
.tl-block { background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 14px; margin:0 0 16px; }
.tl-title { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.tl-title h3 { margin:0; color:var(--accent); }
.tl-scroll { overflow-x:auto; margin:8px 0; }
table.tl { border-collapse:separate; border-spacing:2px; font-size:12px; }
table.tl th, table.tl td { min-width:84px; max-width:84px; height:30px; padding:2px 3px; text-align:center; border-radius:4px; overflow:hidden; white-space:nowrap; text-overflow:clip; }
table.tl thead th { background:#f1f4f2; font-weight:600; } table.tl thead th span { font-weight:400; color:#666; }
table.tl .tl-lbl { min-width:92px; max-width:92px; background:#f6f8f7; text-align:right; position:sticky; right:0; z-index:1; }
table.tl td { color:#333; }
table.tl td.tl-proj { opacity:.5; background-image:repeating-linear-gradient(45deg, transparent 0 5px, rgba(255,255,255,.6) 5px 9px); }
table.tl td.tl-na { background:#f3f3f3; color:#aaa; }
table.tl .tl-now { outline:2px solid var(--accent); }
table.tl tr.tl-week td { background:#fafafa; font-size:14px; color:#2f8f4f; }
table.tl .tl-on { background:#dff3e5; color:#1f6b3a; font-weight:700; } table.tl .tl-ahead { background:#e3eefc; color:#1d4f91; font-weight:700; } table.tl .tl-late { background:#fde3e1; color:#a1281e; font-weight:700; }
@media print { .tl-scroll { overflow:visible; } table.tl th, table.tl td { min-width:34px; max-width:34px; font-size:8px; } }

/* ---------- ما قُطع من المنهاج ---------- */
table.covered td { vertical-align:top; }
table.covered select { max-width:340px; padding:5px 6px; border:1px solid var(--line); border-radius:6px; font:inherit; }
table.covered input, table.covered textarea { padding:5px 8px; border:1px solid var(--line); border-radius:6px; font:inherit; }
table.covered textarea { width:100%; min-width:180px; }
label.inline { display:inline-flex; gap:6px; align-items:center; margin-top:6px; }

table.tl td.tl-cell { padding:0; } table.tl td.tl-cell { display:table-cell; }
table.tl td.tl-cell .tl-seg { display:inline-block; height:30px; line-height:30px; vertical-align:top; overflow:hidden; white-space:nowrap; font-size:11px; }
table.tl td.tl-cell { white-space:nowrap; } table.tl td.tl-cell .tl-seg:only-child { width:100%; }
table.tl td.tl-cell .tl-seg:not(:only-child) { width:50%; } table.tl td.tl-cell .tl-seg:nth-child(n+2):nth-last-child(n+2), table.tl td.tl-cell .tl-seg:first-child:nth-last-child(3), table.tl td.tl-cell .tl-seg:first-child:nth-last-child(3) ~ .tl-seg { width:33.3%; }

/* تعديل الخطة: التاريخ المقترح المختلف عن الحالي */
.changed-date { background:#fff3cd; border-radius:6px; padding:1px 6px; font-weight:600; }

/* ---------- قسم الروضة: هوية مختلفة عن المدرسة ---------- */
body.kg { --bg:#f8f5fb; --accent:#6d4a8f; --line:#e6dfee; }
body.kg th { background:#f0eaf6; }
.switch { background:rgba(255,255,255,.18); padding:3px 10px; border-radius:14px; margin-inline-end:10px; }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; margin-bottom:16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
.card h3 { margin:0 0 4px; font-size:17px; color:var(--accent); }
.card .actions { margin:10px 0 0; }
.pill { display:inline-block; font-size:12px; padding:2px 10px; border-radius:12px; background:#efede6; }
.pill.ok { background:#e6f4ea; color:#1e6b3a; border:0; padding:2px 10px; }
.pill.warn { background:#fdf3d8; color:#8a5a00; }
.att { display:flex; gap:6px; flex-wrap:wrap; }
.att label { margin:0; }
.att input { position:absolute; opacity:0; }
.att span { display:inline-block; min-width:64px; padding:6px 10px; text-align:center; border:1px solid var(--line); border-radius:8px; background:#fff; cursor:pointer; }
.att .a-present input:checked + span { background:#2f8f4f; color:#fff; border-color:#2f8f4f; }
.att .a-late input:checked + span { background:#e3a21a; color:#fff; border-color:#e3a21a; }
.att .a-absent input:checked + span { background:#d93b3b; color:#fff; border-color:#d93b3b; }
.att-note { width:100%; max-width:220px; padding:5px 8px; border:1px solid var(--line); border-radius:6px; font:inherit; font-size:13px; }

/* ---------- قصاصات كلمات المرور (عدة حسابات) ---------- */
.slips { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:10px; }
.slips .pw-slip { max-width:none; break-inside:avoid; }
@media print { .slips { grid-template-columns:1fr 1fr; } .no-print { display:none; } }

/* بنك الأسئلة */
.bank-card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:10px 14px; margin:10px 0; }
.bank-card.muted { opacity:.6; }
.bank-q ol { margin:6px 0; }

/* حضور المعلمات */
.att .a-excused input:checked + span { background:#7a6bd1; color:#fff; border-color:#7a6bd1; }
.att .a-leave input:checked + span { background:#3b7fd9; color:#fff; border-color:#3b7fd9; }
.sa .arr { display:none; margin:6px 0 0; font-size:14px; }
.sa:has(.a-late input:checked) .arr { display:inline-block; }
.sa .arr input { padding:4px 6px; border:1px solid var(--line); border-radius:6px; font:inherit; }
.sa-month th, .sa-month td { padding:4px 3px; text-align:center; font-size:13px; min-width:22px; }
.sa-month .sa-name { text-align:right; white-space:nowrap; }
.sa-month .sa-off { background:#efede6; }
.sa-month .sa-group td { text-align:right; font-weight:600; background:#f4f2ec; }
.sa-late { color:#a86f00; font-weight:700; } .sa-absent { color:#c62f2f; font-weight:700; }
.sa-excused { color:#5b4bb5; font-weight:700; } .sa-leave { color:#2d68b8; font-weight:700; } .sa-present { color:#2f8f4f; }
@media (max-width:600px) { .att span { min-width:0; padding:8px 9px; } }
@media print { .sa-month { overflow:visible; } .sa-month th, .sa-month td { font-size:9px; padding:2px 1px; min-width:0; } }

/* ---------- خطة الأهل الأسبوعية ---------- */
.pp-edit { margin:8px 0 4px; }
.pp-edit h4 { margin:6px 0 4px; font-size:15px; color:var(--accent); }
.pp-edit td { padding:4px 6px; vertical-align:middle; }
.pp-edit td:first-child { white-space:nowrap; font-size:14px; }
.pp-edit input { width:100%; padding:6px 8px; border:1px solid var(--line); border-radius:6px; font:inherit; font-size:14px; }
.pp-frame { background:#e9e7e1; padding:12px 0; border-radius:10px; overflow-x:auto; }
.pp-frame .pp { box-shadow:0 1px 6px rgba(0,0,0,.12); }
@media (max-width:600px) { .pp-edit table, .pp-edit tbody, .pp-edit tr, .pp-edit td { display:block; width:100%; } .pp-edit thead { display:none; } }

/* ---------- الروضة: تخطيط الأنشطة والتأملات اليومية ---------- */
.kgp-label { font-size:14px; margin:8px 0 2px; }
.kgp-goals { margin:6px 0 10px; } .kgp-goals b { display:block; color:var(--accent); font-size:14px; }
.kgp-goals label { display:flex !important; gap:8px; align-items:flex-start; margin:3px 0 !important; }
.kgp-goals input { width:auto !important; margin-top:5px; }
.kgp-card { margin:0 0 12px; }
.kgp-card-head { display:flex; gap:10px; align-items:flex-end; } .kgp-card-head label { flex:1; }
.kgp-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:0 14px; }
.kgp-fields textarea { min-height:52px; }
.kgp-side { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:700px) { .kgp-side { grid-template-columns:1fr; } .kgp-card-head { flex-wrap:wrap; } }
.kgp-plan, .kgp-refl { border:1px solid var(--line); border-radius:8px; padding:8px 12px; font-size:14px; }
.kgp-plan { background:#faf8fc; } .kgp-plan div, .kgp-refl div { margin:3px 0; }
.kgp-tag { font-weight:700; color:var(--accent); margin-bottom:4px; }
.kgp-thread { list-style:none; padding:0; margin:0; }
.kgp-thread li { background:var(--card); border:1px solid var(--line); border-inline-start:4px solid var(--line); border-radius:8px; padding:6px 12px; margin:0 0 8px; }
.kgp-thread li.a-return { border-inline-start-color:#d9a400; } .kgp-thread li.a-approve { border-inline-start-color:#2f8f4f; }
.kgp-thread li.a-unapprove { border-inline-start-color:#a11; }

/* استبيان السلوك (src/behaviour.js) */
.bh-form h2 { margin-top:18px; }
.bh-q { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px; padding:8px 0; border-bottom:1px dashed var(--line); }
.bh-q:last-child { border-bottom:0; }
.bh-st { flex:1 1 220px; }
.att .a-often input:checked + span { background:#2f8f4f; color:#fff; border-color:#2f8f4f; }
.att .a-sometimes input:checked + span { background:#e3a21a; color:#fff; border-color:#e3a21a; }
.att .a-rarely input:checked + span { background:#7a6bd1; color:#fff; border-color:#7a6bd1; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 8px; }
.vform .chips label { margin:0; }
.chips input { position:absolute; opacity:0; }
.chips span { display:inline-block; padding:6px 12px; border:1px solid var(--line); border-radius:18px; background:#fff; cursor:pointer; }
.chips input:checked + span { background:var(--accent); color:#fff; border-color:var(--accent); }
.chips input:disabled:not(:checked) + span { opacity:.45; cursor:not-allowed; }
.chips input:focus-visible + span, .att input:focus-visible + span { outline:2px solid var(--accent); outline-offset:2px; }
.bh-stars { color:#d9a400; letter-spacing:1px; white-space:nowrap; }
.bh-ratings { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:4px 14px; margin:6px 0 10px; }
.bh-msg textarea { font-size:16px; line-height:1.8; }
.bh-prog { display:inline-block; width:80px; height:8px; background:#eee; border-radius:4px; overflow:hidden; vertical-align:middle; }
.bh-prog span { display:block; height:100%; background:#2f8f4f; }

.checks{display:flex;flex-wrap:wrap;gap:6px 14px}.checks .check{font-weight:normal;display:inline-flex;gap:4px;align-items:center}.assign-list li{margin:4px 0}
