@font-face { font-family: 'Cairo'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/cairo-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+25CC; }
@font-face { font-family: 'Cairo'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/cairo-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cairo'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/cairo-arabic-600-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+25CC; }
@font-face { font-family: 'Cairo'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/cairo-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cairo'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/cairo-arabic-800-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+25CC; }
@font-face { font-family: 'Cairo'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/cairo-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f6f4ef; --card: #ffffff; --ink: #1f2a2e; --muted: #6b777b; --line: #e4e0d6;
  --brand: #3078a6; --brand-dark: #15445a; --brand-soft: #e3f0f7; --teal: #0da9a6; --green: #07a869; --gold: #c1b489; --navy: #15445a;
  --danger: #b3382c; --ok: #2e7d4f; --warn: #b07a12;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14191a; --card: #1c2325; --ink: #e8eeee; --muted: #93a0a3; --line: #2b3538;
    --brand: #6aa6e0; --brand-dark: #8fbdea; --brand-soft: #1a2a3b; --teal: #3cc2b8; --green: #5cc088;
    --danger: #e0685c; --ok: #5cc088; --warn: #d9a63f;
  }
}
* { box-sizing: border-box; }
html { direction: rtl; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; font-size: 16px; line-height: 1.7;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px 60px; }
header.top {
  border-top: 6px solid transparent; border-image: linear-gradient(90deg, var(--brand), var(--teal), var(--green)) 1;
  background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; }
.logo { font-weight: 800; font-size: 22px; color: var(--brand-dark); display: flex; align-items: center; gap: 10px; }
.logo img { height: 42px; width: auto; display: block; }
.logo b { display: block; font-weight: 800; line-height: 1.15; }
.logo small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.2; }
.userbox { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
h1 { font-size: 26px; margin: 24px 0 6px; }
h2 { font-size: 19px; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.committee-card { display: block; color: inherit; transition: border-color .15s; }
.committee-card:hover { border-color: var(--brand); text-decoration: none; }
.committee-card h3 { margin: 0 0 4px; font-size: 18px; color: var(--brand-dark); }
.committee-card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.stats { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
textarea { min-height: 90px; resize: vertical; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; }
button, .btn {
  font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 14px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; cursor: pointer; display: inline-block;
}
button:hover, .btn:hover { background: var(--brand-dark); text-decoration: none; }
button.ghost, .btn.ghost { background: transparent; color: var(--brand); }
button.ghost:hover { background: var(--brand-soft); }
button.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
button.danger:hover { background: var(--danger); color: #fff; }
button.small { padding: 4px 10px; font-size: 13px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.err { color: var(--danger); font-size: 14px; margin-top: 8px; min-height: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: right; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.badge.wait { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.badge.none { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.progress { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress > div { height: 100%; background: var(--brand); }
.meeting-item { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; }
.meeting-item:last-child { border-bottom: 0; }
.num { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; border-radius: 8px;
  padding: 2px 10px; margin-left: 10px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.checks input { width: auto; }
.prev-panel { background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; margin: 10px 0; font-size: 14px; }
.prev-panel ul { margin: 6px 0 8px; padding-right: 20px; }
.dec-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.dec-row input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.dec-row input[type=text] { flex: 1; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.back { display: inline-block; margin-top: 18px; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); }
.auth-box { max-width: 400px; margin: 60px auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink);
  color: var(--bg); padding: 10px 20px; border-radius: 8px; font-size: 14px; z-index: 20; }
.sign-box { max-width: 520px; margin: 30px auto; }
canvas#pad { width: 100%; height: 200px; background: #fff; border: 2px dashed var(--line); border-radius: 10px;
  touch-action: none; display: block; }
@media (max-width: 600px) {
  h1 { font-size: 22px; }
  .userbox span { display: none; }
}

/* لوحة التحكم */
.tabs { display: flex; gap: 6px; margin: 14px 0 18px; flex-wrap: wrap; }
.tab { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.tab:hover { background: var(--brand-soft); }
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tile .n { font-size: 28px; font-weight: 800; color: var(--brand-dark); line-height: 1.2; }
.tile .l { font-size: 13px; color: var(--muted); }
label.inline { display: flex; gap: 8px; align-items: center; font-weight: 400; }
label.inline input { width: auto; }

/* مساعد الذكاء الاصطناعي */
.ai-box { margin: 8px 0 4px; }
.ai-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ai-row select, .ai-row input { width: auto; padding: 5px 8px; font-size: 14px; }
.ai-out { background: var(--brand-soft); border-radius: 10px; padding: 4px 12px 12px; margin-top: 8px; }

/* الطباعة والكليشة */
.paper { background: #fff; color: #000; max-width: 794px; margin: 14px auto; padding: 28px 34px; border: 1px solid var(--line); border-radius: 6px; }
.lh { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 2px solid #000; padding-bottom: 10px; text-align: center; }
.lh-r, .lh-l { flex: 0 0 25%; display: flex; }
.lh-r { justify-content: flex-start; } .lh-l { justify-content: flex-end; }
.lh img { max-height: 80px; max-width: 100%; }
.lh-c { flex: 1; line-height: 1.6; font-size: 14px; }
.ptitle { text-align: center; margin: 18px 0 8px; font-size: 20px; }
.pmeta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; margin-bottom: 10px; }
.psec { margin: 10px 0; font-size: 15px; }
.psec ol { margin: 4px 0; padding-right: 22px; }
.sigrow { display: flex; gap: 12px; margin: 8px 0; }
.sigcell { flex: 1 1 0; border: 1px solid #999; border-radius: 6px; padding: 6px 8px; text-align: center; min-height: 110px; }
.signame { font-weight: 700; font-size: 14px; } .sigrole { font-size: 12px; color: #444; }
.sigimg img { max-height: 60px; max-width: 100%; }
@media print {
  header.top, .noprint { display: none !important; }
  body { background: #fff; }
  .wrap { padding: 0; max-width: none; }
  .paper { border: 0; margin: 0; padding: 0; max-width: none; }
}

.section-title { margin: 22px 0 10px; color: var(--brand); border-right: 5px solid var(--teal); padding-right: 10px; }
.imgs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.imgbox { width: 140px; text-align: center; } .imgbox img { width: 100%; height: 100px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* تقرير المجتمع المهني: هوية وزارة التعليم */
.plc { --b: #3d7eb9; --lb: #dcecf5; --teal: #0da9a6; --green: #07a869; color: #111; max-width: 1123px; margin: 14px auto; }
.plc-page { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0 22px 18px; margin-bottom: 18px; position: relative; overflow: hidden; }
.plc-bar { height: 14px; margin: 0 -22px; background: linear-gradient(90deg, var(--b), var(--teal) 70%, var(--green)); border-bottom-right-radius: 40px; width: 78%; margin-right: -22px; }
.plc-bar.foot { position: absolute; bottom: 0; right: 0; left: 0; width: auto; height: 10px; border-radius: 0; }
.plc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 6px; border-bottom: 3px solid; border-image: linear-gradient(90deg, var(--teal), var(--green)) 1; margin-bottom: 10px; }
.ph-r { flex: 0 0 28%; font-size: 12.5px; font-weight: 700; line-height: 1.5; color: #000; }
.ph-c { flex: 1; text-align: center; color: var(--b); }
.ph-title { font-size: 22px; font-weight: 800; } .ph-sub { font-size: 20px; font-weight: 800; margin-top: 4px; }
.ph-l { flex: 0 0 24%; display: flex; gap: 8px; justify-content: flex-start; } .ph-l img { max-height: 70px; max-width: 48%; object-fit: contain; }
.pbox { border: 2px solid var(--b); border-radius: 14px; padding: 5px 14px; font-size: 13px; background: #fff; }
.pmetaA { display: grid; grid-template-columns: 2.2fr 1.1fr 1.4fr; gap: 10px; margin-bottom: 8px; }
.pmetaB { display: grid; grid-template-columns: 1.5fr 1.5fr 1.7fr 0.9fr; gap: 10px; margin-bottom: 14px; }
.pcols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 0; }
.plc-panel { border: 2px dashed var(--b); border-radius: 36px; padding: 18px 20px 8px; margin-bottom: 14px; position: relative; }
.plc-tab { position: absolute; top: -15px; right: 44px; background: #fff; border: 2px dashed var(--b); border-radius: 14px; padding: 1px 34px; color: var(--b); font-weight: 700; font-size: 14px; }
.pitem { border: 2px solid var(--b); border-radius: 16px; padding: 3px 14px; margin-bottom: 6px; font-size: 12.5px; line-height: 1.6; }
.psign { display: flex; align-items: stretch; gap: 0; border: 2px solid var(--b); border-radius: 26px; padding: 6px 14px; margin-top: 2px; }
.psign-label { flex: 0 0 150px; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; color: #000; background: linear-gradient(135deg, var(--lb), #8cc4e4); border: 2px solid var(--b); border-radius: 12px; padding: 6px; margin-left: 12px; }
.psign-t { flex: 1; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.psign-t td { border: 1.5px solid var(--b); padding: 3px 10px; height: 36px; text-align: center; }
.psign-t td.lb { background: var(--lb); font-weight: 700; width: 110px; }
.psign-t td.sg { width: 22%; } .psign-t img, .patt img { max-height: 34px; max-width: 100%; }
.patt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.patt th { background: var(--lb); color: #000; border: 1.5px solid var(--b); padding: 5px; }
.patt td { border: 1.5px solid var(--b); padding: 5px 10px; text-align: center; height: 40px; }
.pimgs { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; } .pimgs img { width: 31%; height: 210px; object-fit: cover; border-radius: 10px; border: 1px solid var(--b); }
@page plcpage { size: A4 landscape; margin: 5mm; }
.plc { page: plcpage; }
@media print {
  .plc { max-width: none; margin: 0; }
  .plc-page { border: 0; border-radius: 0; margin: 0; padding-bottom: 6px; page-break-after: always; break-after: page; }
  .plc-page:last-child { page-break-after: auto; break-after: auto; }
  .plc, .plc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.attrow { display:flex; align-items:center; gap:10px; padding:6px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.attprint .pimgs img { width:31%; height:160px; }

/* هوية وزارة التعليم على محاضر اللجان (دليل الهوية البصرية 2025) */
.paper { --b: #3d7eb9; --teal: #0da9a6; --green: #07a869; --navy: #15445a; position: relative; padding-top: 0; }
.m-bar { height: 14px; margin: 0 -34px 14px; background: linear-gradient(90deg, #3d7eb9, #0da9a6 55%, #07a869); border-bottom-right-radius: 28px; }
.paper .lh { border-bottom: 3px solid; border-image: linear-gradient(90deg, #3d7eb9, #0da9a6, #07a869) 1; color: var(--navy); }
.paper .lh-c b { color: var(--navy); }
.paper .ptitle { background: #e6e6e6; border-bottom: 3px solid var(--b); color: var(--navy); padding: 6px 10px; font-weight: 800; }
.paper .pmeta span { background: #eef5f8; border-radius: 8px; padding: 2px 10px; }
.paper .psec > b:first-child { color: var(--navy); border-bottom: 2px solid var(--teal); padding-bottom: 1px; }
.paper .sigcell { border: 1.5px solid var(--b); border-radius: 10px; }
.paper .signame { color: var(--navy); }
.m-foot { margin-top: 18px; border-top: 4px solid; border-image: linear-gradient(90deg, #07a869, #0da9a6, #3d7eb9) 1; padding-top: 4px; font-size: 11px; color: #555; text-align: center; }
.attprint .pimgs img { border: 1px solid var(--b); }
.status-chip { display: inline-block; font-size: 11px; border: 1px solid var(--b); color: var(--navy); border-radius: 999px; padding: 0 8px; }
@media print {
  .paper { padding: 0 0 8mm; }
  .m-bar { margin: 0 0 12px; }
  .m-foot { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; margin: 0; }
  .paper { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 10mm; }
}
.lockbar { border-color: var(--gold); background: #faf7ee; }
@media (prefers-color-scheme: dark) { .lockbar { background: #2a2618; } }
