/* Carnet — هوية المدرسة: كحلي + ذهبي، خلفية فاتحة. كل القياسات تعمل LTR و RTL (خصائص منطقية). */
/* الألوان قريبة من المرجع (رمادي غامق للشريط، أخضر مزرقّ للعناوين والروابط والتبويب المفتوح) — لا نسخَ للرسوم */
:root { --nav: #4A86D8; --nav2: #3A6FBE; --or: #4A86D8; --vert: #4A86D8; --vert2: #3A6FBE; --bg: #f0f0f0; --card: #fff; --tx: #222; --mu: #666; --bd: #d9d9d9; --ok: #1f8a5b; --ko: #c00000; --wa: #d98c1f; --rad: 8px; }
* { box-sizing: border-box; }
html, body { margin: 0; }
/* الخط كالمرجع: Montserrat (محلي، يعمل بلا إنترنت) للّاتيني؛ العربي بخط النظام. الأحجام كالمرجع: نصّ 12-13px، تبويبات 12px/600، بنود القوائم 13px/500، عناوين المجموعات 11px/700. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/montserrat-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/montserrat-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
body { font-family: "Montserrat", "Segoe UI", Tahoma, Arial, sans-serif; font-size: 13px; color: var(--tx); background: var(--bg); }
body.rtl { font-size: 14px; }
a { color: var(--vert); text-decoration: none; }
h1, h2, h3 { margin: 0; }

/* ترويسة */
.top { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 6px 16px; border-bottom: 3px solid var(--or); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; }
.brand b { display: block; color: var(--nav); font-size: 20px; font-weight: 600; }
.brand span { color: var(--mu); font-size: 16px; font-weight: 600; }
.top-r { display: flex; align-items: center; gap: 10px; }
.top-c { display: flex; align-items: center; gap: 10px; }
.av-top { display: inline-flex; flex: none; }
/* أيقونات سريعة بآخر شريط القوائم (كالمرجع): محادثة جديدة، حادث، إشعارات، الجرس، التثبيت */
.menu-r { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; padding-inline-start: 8px; }
.menu-r .sep { width: 1px; height: 24px; background: rgba(255,255,255,.35); margin: 0 6px; }
.menu-r .ic { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: #fff; cursor: pointer; }
.menu-r .ic:hover { background: var(--nav2); }
.menu-r .ic .nb { position: absolute; top: 2px; inset-inline-end: 1px; }
.lang { border: 1px solid var(--bd); border-radius: 20px; padding: 4px 12px; font-size: 13px; background: #fff; color: var(--nav); }
.out { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--nav); color: #fff; font-size: 16px; }

/* شريط القوائم */
.menu { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--nav); padding: 0 10px; position: sticky; top: 0; z-index: 50; }
.menu .mi, .menu .mi > button, .menu .kid > button { color: #fff; background: none; border: 0; font: inherit; font-weight: 600; padding: 11px 13px; cursor: pointer; display: block; }
.menu .mi.on, .menu .mi.on > button { background: #fff; color: var(--vert); border-bottom: 3px solid var(--vert); }
.menu .mi:hover, .menu .mi > button:hover { background: var(--nav2); color: #fff; }
.menu .mi.on > button:hover, .menu a.mi.on:hover { background: #fff; color: var(--vert); }
.menu .mi.dd { padding: 0; }
.dd { position: relative; }
.ddm { display: none; position: absolute; inset-inline-start: 0; top: 100%; min-width: 230px; background: #fff; border: 1px solid var(--bd); border-radius: 0 0 var(--rad) var(--rad); box-shadow: 0 10px 24px rgba(0,0,0,.16); z-index: 60; padding: 4px 0; }
.dd:hover .ddm, .dd:focus-within .ddm, .dd.open .ddm { display: block; }
.ddm a { display: block; padding: 8px 14px; color: var(--tx); font-weight: 500; font-size: 13px; }
.ddm a:hover, .ddm a.cur { background: #f1f5f9; color: var(--nav); }
.ddm a.cur { border-inline-start: 3px solid var(--or); }
.kid > button { display: flex !important; align-items: center; gap: 8px; background: var(--nav2) !important; margin-inline-end: 8px; }
.av { width: 26px; height: 26px; border-radius: 50%; background: var(--or); color: #fff; display: inline-grid; place-items: center; font-weight: 700; }

.pagebar { display: flex; justify-content: space-between; align-items: center; background: #e8e8e8; padding: 7px 16px; }
.pagebar h1 { font-size: 13px; font-weight: 600; color: var(--vert2); }
.pagebar h1 .ctx { font-weight: 500; margin-inline-start: 8px; color: var(--tx); }
@media print { .pagebar h1 .ctx { display: none; } }
.btn-ic { border: 0; background: none; font-size: 18px; cursor: pointer; }
main { padding: 16px; max-width: 1500px; margin: 0 auto; }
.foot { text-align: center; color: var(--mu); font-size: 11px; padding: 14px; }

/* عناصر عامة */
.card { background: var(--card); border-radius: var(--rad); padding: 14px 16px; margin-bottom: 14px; position: relative; box-shadow: 0 1px 3px rgba(23,50,77,.08); }
.card h2 { font-size: 14px; font-weight: 600; color: var(--vert); text-align: center; margin-bottom: 10px; }
.card .tout { position: absolute; top: 8px; inset-inline-end: 10px; font-size: 11px; font-weight: 500; border: 1px solid var(--bd); border-radius: 14px; padding: 2px 9px; background: #fff; }
.empty { color: var(--mu); text-align: center; padding: 14px; }
.flash { padding: 9px 14px; border-radius: 8px; margin-bottom: 12px; background: #e3f4ea; color: #14613f; border: 1px solid #b9e2cb; }
.flash.err { background: #fdeaea; color: #8e2b20; border-color: #f2c2bd; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.col { min-width: 0; }
@media (max-width: 1000px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
/* شريط الاختيار (الصف / الفترة / المادة) كشريط المرجع تحت عنوان الصفحة: خانات مربّعة على خلفية رمادية */
.picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; padding: 6px 10px; background: #e9edf2; border-radius: 6px; }
.picker + .picker { margin-top: -4px; }
.picker a { padding: 5px 11px; border-radius: 5px; background: #fff; border: 1px solid #c9d2dc; color: var(--tx); font-size: 12px; line-height: 1.15; }
.picker + :not(.picker) { margin-top: 12px; }
.picker a.on { background: var(--vert); color: #fff; border-color: var(--vert); font-weight: 600; }
.btn { display: inline-block; border: 1px solid var(--bd); background: #fff; color: var(--tx); border-radius: 8px; padding: 7px 14px; font: inherit; cursor: pointer; }
.btn.primary { background: var(--vert); color: #fff; border-color: var(--vert); font-weight: 600; }
.btn.danger { color: var(--ko); border-color: #f2c2bd; }
.btn.sm { padding: 3px 9px; font-size: 13px; }
.tag { font-size: 12px; padding: 2px 9px; border-radius: 12px; background: #e6edf5; color: var(--nav2); border: 0; white-space: nowrap; }
.tag.ok { background: #dcf3e6; color: #14613f; }
.tag.ko { background: #fdeaea; color: #8e2b20; }
.tag.wa { background: #fdf1dd; color: #8a5a10; }
button.tag { cursor: pointer; font: inherit; font-size: 12px; }
input[type=text], input[type=date], input[type=time], input[type=number], input[type=password], input:not([type]), select, textarea { font: inherit; border: 1px solid var(--bd); border-radius: 7px; padding: 6px 9px; background: #fff; color: var(--tx); max-width: 100%; }
textarea { width: 100%; min-height: 70px; }
label { display: block; font-size: 12px; color: var(--mu); margin-bottom: 8px; }
label > input, label > select, label > textarea { display: block; margin-top: 3px; width: 100%; color: var(--tx); }
.frm { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 12px; align-items: end; }
.frm .full { grid-column: 1 / -1; }

/* جداول */
.tbl { width: 100%; border-collapse: collapse; background: #fff; }
.tbl th { background: #e3e3e3; color: #222; font-weight: 600; padding: 7px 8px; text-align: start; font-size: 11px; border-bottom: 1px solid #c8c8c8; position: sticky; top: 41px; z-index: 5; }
.tbl td { padding: 6px 8px; border-bottom: 1px solid var(--bd); vertical-align: middle; font-size: 12px; }
.tbl tr:hover td { background: #f7fafc; }
.tbl .c { text-align: center; } .tbl .r { text-align: end; }
.tbl tfoot td { font-weight: 700; background: #f1f5f9; }
.scroll .tbl th { top: 0; }
.scroll { overflow-x: auto; border-radius: var(--rad); box-shadow: 0 1px 3px rgba(23,50,77,.08); }
.n-bas { color: var(--ko); } .n-haut { color: var(--ok); }
.mut { color: var(--mu); }

/* برنامج اليوم */
.daynav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-bottom: 10px; }
.daynav a.btn { width: auto; height: auto; border-radius: 6px; background: #fff; color: var(--nav); display: inline-flex; font-weight: 500; }
.daynav a { width: 26px; height: 26px; border-radius: 50%; background: var(--nav); color: #fff; display: grid; place-items: center; font-weight: 700; }
.daynav span { border: 1px solid var(--bd); border-radius: 16px; padding: 3px 14px; font-weight: 600; }
.rtl .daynav a { transform: scaleX(-1); }
.edt-list { list-style: none; margin: 0; padding: 0; }
.edt-list li { display: flex; gap: 8px; margin-bottom: 6px; }
.edt-list time { width: 44px; font-weight: 700; color: var(--nav); padding-top: 4px; flex: none; }
.edt-list .cr { flex: 1; border-inline-start: 5px solid var(--c); background: #f7f9fb; border-radius: 6px; padding: 5px 10px; display: flex; flex-direction: column; min-height: 46px; }
.edt-list .cr > span { color: var(--mu); font-size: 13px; }
.edt-list .cr .acts { margin-top: 2px; }
.edt-list .pause { color: var(--mu); font-size: 12px; }
.edt-list .pause span { padding-top: 4px; }

/* فروض، علامات، مواعيد */
.pour { background: #e2f1ec; color: #3A6FBE; border-radius: 6px; padding: 4px 10px; margin: 8px 0 6px; display: inline-block; }
.tr-item { border-inline-start: 4px solid var(--c); padding: 4px 10px; margin-bottom: 8px; }
.tr-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tr-item p { margin: 3px 0; }
.tr-item small { color: var(--mu); }
.ev { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--bd); }
.ev:last-child { border-bottom: 0; }
.ev .dt { width: 52px; text-align: center; background: #e2f1ec; color: #3A6FBE; border-radius: 8px; padding: 3px 2px; font-size: 11.5px; flex: none; }
.ev .dt b { display: block; font-size: 17px; }
.ev div > b { display: block; } .ev div > span { color: var(--mu); font-size: 13px; }
.ln { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-inline-start: 4px solid var(--c, var(--bd)); padding: 5px 10px; margin-bottom: 6px; color: var(--tx); }
.ln div > b { display: block; } .ln div > span { color: var(--mu); font-size: 13px; }
.ln strong { font-size: 18px; white-space: nowrap; } .ln strong small { font-size: 12px; color: var(--mu); font-weight: 400; }
.ln.link:hover { background: #f7fafc; }
.info { padding: 6px 0; border-bottom: 1px solid var(--bd); } .info:last-child { border-bottom: 0; }
.info small { display: block; color: var(--mu); } .info p { margin: 4px 0 0; }
.vs { padding: 5px 10px; border-inline-start: 4px solid var(--bd); margin-bottom: 6px; }
.vs > b { display: block; } .vs > span { color: var(--mu); font-size: 13px; }
.vs.absence { border-color: var(--ko); } .vs.retard { border-color: var(--wa); } .vs.obs { border-color: var(--nav2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { background: #fff; border-radius: var(--rad); padding: 12px 16px; border-inline-start: 5px solid var(--or); }
.stat > b { font-size: 26px; color: var(--nav); display: block; } .stat > span { color: var(--mu); }

/* برنامج الأسبوع */
.edt-w { width: 100%; border-collapse: collapse; background: #fff; table-layout: fixed; }
.edt-w th { background: var(--nav); color: #fff; padding: 7px; font-size: 13px; }
.edt-w td { border: 1px solid var(--bd); padding: 3px; height: 58px; vertical-align: top; }
.edt-w td.h { width: 64px; text-align: center; font-weight: 700; color: var(--nav); background: #f1f5f9; font-size: 12.5px; }
.edt-w .cc { background: color-mix(in srgb, var(--c) 16%, #fff); border-inline-start: 5px solid var(--c); border-radius: 5px; padding: 4px 6px; height: 100%; font-size: 12.5px; }
.edt-w .cc > b { display: block; font-size: 13px; } .edt-w .cc > span { color: #4a5563; display: block; }

/* شبكة إدخال العلامات */
.grille th.dv { min-width: 86px; text-align: center; font-weight: 500; }
.grille th.dv b { display: block; } .grille th.dv small { display: block; opacity: .85; }
.grille td.nt { text-align: center; padding: 2px; }
.grille input.n { width: 62px; text-align: center; border-color: transparent; background: transparent; padding: 5px 2px; }
.grille input.n:focus { border-color: var(--nav2); background: #fff; outline: 0; }
.grille input.n.sav { background: #dcf3e6; } .grille input.n.bad { background: #fdeaea; }
.grille td.moy { font-weight: 700; text-align: center; background: #f7fafc; }
.grille td.auto { text-align: center; color: #45556a; background: #f7fafc; }
.grille td.fin { text-align: center; padding: 2px; background: #fffbe8; }
.grille input.fin { width: 64px; text-align: center; border: 1px dashed #c9a94a; background: #fff; padding: 5px 2px; }
.grille input.fin::placeholder { color: #9aa5b1; }
.grille input.fin.on { background: #fff3c4; font-weight: 700; border-style: solid; }
.grille input.fin:focus { border-color: var(--nav2); outline: 0; }
.grille input.fin.sav { background: #dcf3e6; } .grille input.fin.bad { background: #fdeaea; }
.multi { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 0; }
.multi .ck { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; color: var(--tx); white-space: nowrap; }
.multi .ck input { width: auto; display: inline; }
.grille td.nom { white-space: nowrap; position: sticky; inset-inline-start: 0; background: #fff; }
.help { color: var(--mu); font-size: 13px; margin: 6px 0 12px; }

/* البطاقة */
.bul { background: #fff; padding: 22px 26px; max-width: 980px; margin: 0 auto; border-radius: var(--rad); }
.bul-h { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px double var(--nav); padding-bottom: 10px; margin-bottom: 12px; gap: 12px; }
.bul-h img { height: 70px; }
.bul-h .ec b { font-size: 18px; color: var(--nav); display: block; }
.bul-h .ti { text-align: center; } .bul-h .ti b { font-size: 17px; display: block; color: var(--nav); }
.bul-id { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 10px; }
.bul table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bul th { background: var(--nav); color: #fff; padding: 6px; font-weight: 600; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bul td { border: 1px solid #b9c4d0; padding: 5px 7px; vertical-align: top; }
.bul td.c { text-align: center; white-space: nowrap; }
.bul td.mat > b { display: block; } .bul td.mat > span { color: var(--mu); font-size: 12px; }
.bul .gen td { font-weight: 700; background: #f1f5f9; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bul td.rub { background: #f8fafc; font-size: 12px; vertical-align: top; }
.bul tr.comp td.mat { padding-inline-start: 18px; font-weight: 400; }
.bul tr.moy-mat td, .bul tr.moy-rub td { background: #eef3f8; font-weight: 600; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bul tr.moy-rub td { background: #e3ebf3; }
.bul td.mgf { font-weight: 700; background: #fff8e1; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bul th.cur { background: #173f6f; } .bul td.cur { background: #EDF3FC; }
.bul th small { display: block; font-weight: 400; opacity: .9; }
.bul.rel td.evc { text-align: center; white-space: nowrap; padding: 3px 5px; font-size: 12px; }
.bul.rel td.evc small { display: block; color: var(--mu); font-size: 10.5px; } .bul.rel td.evc b span { font-weight: 400; color: var(--mu); font-size: 11px; }
.bul.rel td.mat > span { display: block; color: var(--mu); font-size: 11px; }
.bul.rel tfoot td { font-weight: 700; background: #f1f5f9; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bul-b { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.bul-b .bx { border: 1px solid #b9c4d0; border-radius: 6px; padding: 8px 10px; min-height: 84px; }
.bul-b .bx h3 { font-size: 13px; color: var(--nav); margin-bottom: 4px; }

/* الدخول */
.login-bg { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, #e9efed 0%, #d5e3df 100%); padding: 16px; }
.login, .portail { background: #fff; border-radius: 16px; padding: 28px 30px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); border-top: 5px solid var(--or); }
.portail { max-width: 760px; }
.login .logo, .portail .logo { height: 84px; margin-bottom: 6px; }
.login h1, .portail h1 { font-size: 20px; color: var(--nav); }
.login h2 { font-size: 15px; color: var(--or); margin: 4px 0 16px; font-weight: 600; }
.login label { text-align: start; }
.login .btn { width: 100%; padding: 10px; margin-top: 6px; }
.hint { color: var(--mu); font-size: 12.5px; } .links { font-size: 13px; }
.portes { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin: 16px 0; }
.porte { border: 1px solid var(--bd); border-radius: 12px; padding: 16px 8px; color: var(--tx); display: flex; flex-direction: column; gap: 4px; align-items: center; }
.porte:hover { border-color: var(--or); box-shadow: 0 6px 16px rgba(23,50,77,.14); }
.porte .pi { font-size: 32px; } .porte small { color: var(--mu); }

@media print {
    .no-print { display: none !important; }
    body { background: #fff; font-size: 12pt; }
    main { padding: 0; max-width: none; }
    .card, .scroll { box-shadow: none; }
    .tbl th { position: static; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .pagebar { background: none; padding: 0 0 6px; }
    @page { size: A4; margin: 10mm; }
}

/* ترويسة موسَّطة + قوائم بمجموعات (ترتيب التبويبات كالمرجع) */
.top { display: grid; grid-template-columns: 1fr auto 1fr; }
.top-c { text-align: center; }
.top-c b { display: block; color: var(--nav); font-size: 18px; }
.top-c span { color: var(--tx); font-size: 14.5px; }
.top-c .out { display: inline-grid; width: 24px; height: 24px; font-size: 13px; vertical-align: middle; margin-inline-start: 6px; }
.top-r { justify-content: flex-end; }
.menu { flex-wrap: nowrap; }
.menu .mi > button, .menu a.mi { white-space: normal; text-align: center; line-height: 1.15; max-width: 118px; padding: 8px 9px; height: 100%; font-size: 12px; }
.menu a.mi.home { display: grid; place-items: center; padding: 8px 12px; }
.ddm .grp { display: block; padding: 8px 14px 3px; font-size: 11px; letter-spacing: .02em; text-transform: uppercase; color: var(--tx); font-weight: 700; }
.ddm a.soon { color: #9aa5b1; }
.ddm { max-height: 76vh; overflow-y: auto; min-width: 270px; }
.menu > .dd:nth-last-child(-n+3) .ddm { inset-inline-start: auto; inset-inline-end: 0; }
.prev { color: var(--tx); font-size: 10px; margin-inline-start: 14px; margin-inline-end: auto; }
@media (max-width: 1100px) { .menu { flex-wrap: wrap; } }

/* سطران: الفرنسي فوق وأوضح، العربي تحته أصغر — وزرّ «ع» يخفي العربي (شاشة وطباعة) */
.bi { display: inline-flex; flex-direction: column; vertical-align: middle; line-height: 1.18; text-align: inherit; }
.bi .ar { font-size: .8em; font-weight: 400; opacity: .72; font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
body.noar .bi .ar { display: none; }
.btn-ar { font-weight: 700; color: var(--nav); border: 1px solid var(--bd); border-radius: 6px; width: 30px; height: 28px; background: #fff; font-size: 15px; }
body.noar .btn-ar { text-decoration: line-through; color: var(--mu); }
/* العناوين أيضاً: العربي تحت الفرنسي */
.card > .tout ~ h2 { padding-inline: 78px; }
.card .tout .bi .ar { display: none; } /* زرّ صغير: الفرنسي يكفي */
.picker a .bi, .tag .bi, .btn .bi, label > .bi, th .bi, .ddm a .bi, .menu .mi .bi { text-align: center; }
label > .bi { flex-direction: row; gap: 6px; align-items: baseline; }
.ddm a .bi { text-align: start; }

.edt-w.compact td { height: 44px; padding: 2px; } .edt-w.compact td.h { width: 46px; font-size: 11.5px; }
.edt-w.compact .cc { padding: 2px 4px; font-size: 11px; line-height: 1.15; } .edt-w.compact .cc b { font-size: 11.5px; } .edt-w.compact th { padding: 5px 2px; font-size: 12px; }
.grid3.g-prof { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); }
.cls { background: #e2f1ec; color: #3A6FBE; border-radius: 6px; padding: 3px 12px; font-weight: 600; white-space: nowrap; }
.cnt { color: var(--mu); font-weight: 400; }
@media (max-width: 1000px) { .grid3.g-prof { grid-template-columns: 1fr; } }

/* المحادثات */
.fil { margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.msg { background: #f1f5f9; border-radius: 10px; padding: 8px 12px; max-width: 80%; align-self: flex-start; }
.msg.moi { background: #e2f1ec; align-self: flex-end; }
.msg p { margin: 4px 0 0; }

/* صور التلاميذ */
.trombi { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.trombi .tb { background: #fff; border-radius: var(--rad); padding: 14px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; box-shadow: 0 1px 3px rgba(23,50,77,.08); }
.trombi .tb b { margin-top: 6px; } .trombi .tb small { color: var(--mu); }

/* عدّادات غير المقروء + مستويات الكفايات */
.nb { display: inline-block; min-width: 18px; padding: 0 5px; margin-inline-start: 6px; border-radius: 9px; background: #c0392b; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: middle; }
.pst { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pst.vide { background: #f0f0f0; color: #9aa5b1; }
.pst.sm { width: 20px; height: 20px; font-size: 11px; }
.bul .legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; margin: 0 0 8px; color: var(--tx); } .bul .legende span { display: inline-flex; align-items: center; gap: 5px; }
.bul.mat table { font-size: 11px; } .bul.mat td { padding: 3px 5px; }
.bul.mat td.mat .cp { font-weight: 400; font-size: 11px; line-height: 1.25; }
.bul.mat td.mat .cp .ar { font-size: 10px; color: var(--mu); font-family: "Segoe UI", Tahoma, Arial, sans-serif; margin-inline-start: 6px; }
.bul.mat.sans-arabe .cp .ar, body.noar .bul.mat .cp .ar { display: none; }
.bul.mat td.rub { font-size: 10.5px; }
.bul.mat tr.app td { background: #fbfcfe; font-size: 11px; }
.bul.mat table { page-break-inside: auto; } .bul.mat tr { page-break-inside: avoid; } .bul.mat tfoot td.c { font-size: 10px; line-height: 1.9; } .bul.mat tfoot td.c .pst { margin-inline-start: 2px; }
.bul.mat td.mat > b { display: block; } .bul.mat td.mat > span { color: var(--mu); font-size: 11px; display: block; }
.bul.mat tfoot td { font-weight: 600; }
.pstb { border: 0; background: none; cursor: pointer; padding: 2px; }

/* العربي يبدأ تحت أوّل الفرنسي (لا يُدفع لليمين)، وبالوسط حيث النصّ موسَّط */
.bi { align-items: flex-start; }
th .bi, .tag .bi, .btn .bi, .picker a .bi, .menu .mi .bi, .card > h2 .bi, .stat .bi, .login .bi, .portail .bi, .bul-h .ti .bi, .edt-w th .bi { align-items: center; }
.card > h2[style*="start"] .bi { align-items: flex-start; }

/* إحصاءات: أشرطة */
.barre { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 10px; align-items: center; margin: 7px 0; }
.barre .bl { font-weight: 600; } .barre .bv { color: var(--mu); font-size: 13px; white-space: nowrap; min-width: 86px; text-align: end; }
.bt { display: block; height: 14px; background: #f0f0f0; border-radius: 7px; overflow: hidden; }
.bt i { display: block; height: 100%; border-radius: 7px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bt.duo { height: 20px; background: none; display: grid; gap: 2px; } .bt.duo i { height: 9px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; }
/* أدوات الصفحة */
.pb-r { display: flex; align-items: center; gap: 6px; }
.btn-outil { font-weight: 700; color: var(--nav); border: 1px solid var(--bd); border-radius: 6px; min-width: 30px; height: 28px; background: #fff; font-size: 13px; padding: 0 6px; }
.outil-cols .ddm { inset-inline-start: auto; inset-inline-end: 0; padding: 6px 10px; min-width: 220px; }
.outil-cols .ddm label { color: var(--tx); margin: 3px 0; white-space: nowrap; } .outil-cols .ddm input { display: inline; width: auto; }
/* ترويسة الطباعة */
.print-head { display: none; }
@media print {
    .print-head { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--nav); padding-bottom: 6px; margin-bottom: 8px; }
    .print-head img { height: 46px; } .print-head b { display: block; color: var(--nav); } .print-head span { display: block; font-size: 10pt; }
    .print-head .ph-t { margin-inline-start: auto; text-align: end; } .print-head .ph-t b { font-size: 13pt; } .print-head small { color: #555; }
    .pagebar { display: none; } .scroll { overflow: visible !important; } .tbl { font-size: 10pt; } .tbl td, .tbl th { padding: 3px 5px; }
    .tbl th { background: #e3e3e3 !important; color: #222 !important; }
    /* 🖨 26/11/2026: العلبة الطويلة كانت تقفز كاملة للصفحة التالية وتترك نصف الورقة فاضياً (ملفّ التلميذ = 4 صفحات). العلبة تكمّل على الصفحة نفسها؛ العنوان لا ينفصل عمّا تحته، والرسم/السطر/البطاقة الصغيرة لا تنقسم. */
    .card { break-inside: auto; margin-bottom: 8px; } .card > h2, .card > h3, .card h3 { break-after: avoid; } .card svg, .card .stat, .card .stats, .card .vs, .card .gm-t, .card table.sem { break-inside: avoid; }
    .gm svg { max-width: 105mm !important; margin-inline: auto; }
    tr { break-inside: avoid; } thead { display: table-header-group; } tfoot { display: table-row-group; }
    body:has(.bul) .print-head { display: none; } /* البطاقة لها ترويستها */
}
/* خيارات البطاقة */
.bul.sans-sous .o-sous, .bul.sans-classe .o-classe, .bul.sans-minmax .o-minmax, .bul.sans-total .o-total, .bul.sans-rang .o-rang, .bul.sans-app .o-app, .bul.sans-abs .o-abs, .bul.sans-conseil .o-conseil, .bul.sans-sign .o-sign, .bul.sans-arabe .bi .ar { display: none; }
.bul-pied { text-align: center; color: var(--mu); font-size: 11px; margin: 10px 0 0; }

/* فرز وبحث */
th.triable { cursor: pointer; user-select: none; } th.triable:hover { background: var(--nav2); }
th.triable[data-sens=asc]::after { content: ' ▲'; font-size: 10px; } th.triable[data-sens=desc]::after { content: ' ▼'; font-size: 10px; }
.cherche { height: 28px; border-radius: 14px !important; padding: 2px 12px !important; width: 170px; font-size: 13px !important; }
@media print { .cherche { display: none; } th.triable::after { content: '' !important; } }

/* لائحة يساراً وتفصيل يميناً (تفصيل العلامات) */
.md { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.md-l { background: #fff; border-radius: var(--rad); padding: 8px 12px; box-shadow: 0 1px 3px rgba(23,50,77,.08); }
.md-r { position: sticky; top: 56px; min-height: 180px; }
.dv-item { width: 100%; background: none; border: 0; border-inline-start: 4px solid var(--c); border-bottom: 1px solid var(--bd); font: inherit; text-align: start; cursor: pointer; padding: 8px 10px; margin: 0; }
.dv-item.on { background: #eef4fa; }
.dv-item .dt { width: 46px; text-align: center; background: #f1f5f9; border-radius: 6px; font-size: 11px; padding: 2px; flex: none; color: var(--nav); }
.dv-item .dt b { display: block; font-size: 15px; }
.dv-item > div { flex: 1; min-width: 0; }
.md-g { border-inline-start: 4px solid var(--c); background: #f7fafc; padding: 6px 10px; margin-top: 8px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.md-g span { color: var(--mu); font-size: 13px; }
@media (max-width: 900px) { .md { grid-template-columns: minmax(0, 1fr); } .md > * { min-width: 0; } .md-r { position: static; } }

/* المناداة: حصص اليوم يساراً والورقة يميناً */
.appel { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; align-items: start; }
.appel-l { background: #fff; border-radius: var(--rad); padding: 10px; box-shadow: 0 1px 3px rgba(23,50,77,.08); position: sticky; top: 56px; }
.appel-l .cours { display: flex; gap: 8px; align-items: center; border-inline-start: 5px solid var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border-radius: 6px; padding: 7px 8px; margin-bottom: 6px; color: var(--tx); }
.appel-l .cours.on { outline: 2px solid var(--nav); }
.appel-l .cours time { font-weight: 700; color: var(--nav); width: 44px; flex: none; font-size: 13px; }
.appel-l .cours span { flex: 1; min-width: 0; } .appel-l .cours small { display: block; color: var(--mu); }
.appel-l .cours i { font-style: normal; width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.appel-l .cours i.ok { background: var(--ok); } .appel-l .cours i.ko { background: #9aa5b1; }
.appel-t tr.abs td { background: #fdeaea; } .appel-t tr.ret td { background: #fdf1dd; }
.appel-t th.rub { font-size: 11.5px; max-width: 86px; }
@media (max-width: 900px) { .appel { grid-template-columns: 1fr; } .appel-l { position: static; } }

/* مرفقات الدروس والفروض + التسليم أونلاين */
a.joint { display: inline-block; margin: 4px 0; padding: 3px 9px; border-radius: 14px; background: #eef3f9; color: var(--nav); font-size: 13.5px; text-decoration: none; }
a.joint:hover { background: #dfe8f3; }
.rendre { margin: 6px 0; padding: 8px 10px; border: 1px dashed #b9c6d6; border-radius: 8px; background: #fafcfe; }
.rendre form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; } .rendre input[type=file] { width: auto; max-width: 260px; }

/* جداول أرقام الأسبوع بالصفحة الرئيسية للإدارة/النظارة */
.tbl.sem th, .tbl.sem td { padding: 6px 8px; font-size: 13.5px; } .tbl.sem td:first-child { font-weight: 600; }

/* مساعد التجهيز */
a.card.demarrage { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; border-inline-start: 5px solid var(--gold, #c9a54a); color: var(--tx); text-decoration: none; }
a.card.demarrage:hover { background: #fffdf6; }
.bar { height: 8px; border-radius: 6px; background: #e6ebf2; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--ok); }

/* صفحة المساعدة */
.aide ol { margin: 6px 0 0; padding-inline-start: 22px; } .aide li { margin: 9px 0; line-height: 1.45; } .aide li a { color: var(--nav); font-weight: 600; text-decoration: none; } .aide li a:hover { text-decoration: underline; }
.aide h2 { text-align: start; }

/* Planning: كل الصفوف بيوم */
.edt-w.planning th { min-width: 118px; } .edt-w.planning .cc span { font-size: 12px; }
.edt-w .ap { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 700; margin-inline-start: 4px; }
.edt-w .ap.ok { background: var(--ok); } .edt-w .ap.ko { background: #9aa5b1; }

/* 📱 الهاتف: شريط الصفحة يلتفّ، والجداول داخل البطاقات تُمرَّر أفقياً بدل أن توسّع الصفحة */
@media screen and (max-width: 700px) {
    .pagebar { flex-wrap: wrap; gap: 6px; padding: 7px 10px; } .pb-r { flex-wrap: wrap; justify-content: flex-end; flex: 1 1 100%; }
    .pb-r input[type=search], .pb-r input.rech { max-width: 150px; }
    .card, .bul { overflow-x: auto; } .bul { padding: 12px 10px; } .bul-h { flex-wrap: wrap; }
    main { padding-inline: 8px; }
}

/* 📱 قائمة الهاتف: كبسة ☰ تفتح القائمة عمودياً؛ مغلقةً يبقى فقط اختيار الولد */
.burger { display: none; }
@media screen and (max-width: 700px) {
    .burger { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 8px; background: var(--nav); color: #fff; font-size: 22px; cursor: pointer; }
    body.menu-ouvert .burger { background: var(--or); color: #fff; }
    .menu { flex-direction: column; flex-wrap: nowrap; padding: 0; position: static; }
    body:not(.menu-ouvert) .menu > :not(.kid):not(.menu-r) { display: none; }
    .menu-r { order: -1; margin: 0; padding: 4px 8px; border: 0; justify-content: flex-end; background: var(--nav); }
    .menu .mi, .menu .mi > button, .menu a.mi { max-width: none; width: 100%; text-align: start; padding: 12px 16px; height: auto; font-size: 15.5px; }
    .menu .mi.dd { padding: 0; } body.menu-ouvert .menu a.mi.home { display: block; }
    .menu .mi .bi { text-align: start; align-items: flex-start; }
    .menu .ddm { position: static; box-shadow: none; border: 0; border-radius: 0; min-width: 0; max-height: none; background: #f4f7fb; }
    .menu .dd:hover .ddm, .menu .dd:focus-within .ddm { display: none; } .menu .dd.open .ddm { display: block; }
    .menu .ddm a { padding: 11px 26px; }
    .top .brand img { height: 44px; }
    .av-top, .pagebar .prev { display: none; }
    .top-c > div > b { font-size: 16px; } .top-c > div > span { font-size: 13px; }
}

/* ✉️ الرسائل الجاهزة */
.lettre { background: #fff; max-width: 820px; margin: 0 auto 16px; padding: 26px 34px; border-radius: var(--rad); font-size: 15px; line-height: 1.6; }
.lettre .lt { margin-top: 14px; } .lettre .lt + .lt { border-top: 1px dashed #c5cfdb; padding-top: 12px; }
.lettre .lt-date { text-align: end; } .lettre .lt-sign { text-align: end; margin-top: 22px; } .lettre .lt-corps { text-align: justify; }
.lettre .lt-coupon { margin-top: 26px; border-top: 2px dashed #7b8794; padding-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
@media print { .lettre { max-width: none; padding: 0; margin: 0; border-radius: 0; font-size: 12pt; } }

/* مواد فرعية بالبطاقة */
.bul tr.sous td { font-size: .9em; color: #45556a; padding-top: 2px; padding-bottom: 2px; border-top: 0; } .bul tr.sous td.mat { padding-inline-start: 18px; font-style: italic; }

/* عدّاد المتابعة بورقة المناداة */
.appel-t small.suivi { display: inline-block; min-width: 16px; margin-inline-start: 3px; color: var(--mu); font-size: 11.5px; font-weight: 700; }

/* دفتر الدروس: أسبوع الأستاذ يساراً (كالمرجع) والإدخال يميناً */
.cdt-2 { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.cdt-l { background: #fff; border-radius: var(--rad); padding: 10px; box-shadow: 0 1px 3px rgba(23,50,77,.08); position: sticky; top: 56px; }
.cdt-sem { width: 100%; border-collapse: collapse; table-layout: fixed; } .cdt-sem th { font-size: 11.5px; padding: 3px 0; color: var(--mu); } .cdt-sem th.on { color: var(--nav); text-decoration: underline; }
.cdt-sem td { padding: 2px; height: 40px; } .cdt-sem td.h { font-size: 11px; color: var(--mu); width: 38px; }
.cdt-sem a { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; border-radius: 5px; border-inline-start: 4px solid var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--tx); font-size: 12px; text-decoration: none; line-height: 1.1; }
.cdt-sem a.on { outline: 2px solid var(--nav); } .cdt-sem a i { font-style: normal; font-size: 10px; }
@media (max-width: 900px) { .cdt-2 { grid-template-columns: 1fr; } .cdt-l { position: static; } }

/* أزرار التطبيق بالترويسة: تثبيت + جرس الإشعارات */
.top-r { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.btn-app { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bd); background: #fff; font-size: 17px; cursor: pointer; filter: grayscale(1); opacity: .75; }
.btn-app.on, #btn-installer { filter: none; opacity: 1; } .btn-app.on { background: #fff6dc; border-color: var(--or); }

.liens { display: flex; flex-wrap: wrap; gap: 6px; } .liens a.tag { text-decoration: none; padding: 6px 12px; font-size: 13.5px; }

.sondage .sond-l { display: flex; align-items: center; gap: 10px; margin: 4px 0; } .sondage .bar { height: 10px; }
@media screen and (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.menu-j { padding: 6px 0; border-bottom: 1px solid #edf1f5; } .menu-j.auj { background: #fff8e6; border-radius: 6px; padding: 6px 8px; } .menu-j p { margin: 2px 0 0; } .menu-j textarea { margin-top: 4px; }

.cr.annule, .cc.annule { opacity: .55; text-decoration: line-through; } .cr.annule .tag, .cc.annule .tag { text-decoration: none; }
/* المحادثات بلوحتين (كالمرجع): اللائحة يساراً والمحادثة يميناً */
.disc2 { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 14px; align-items: start; }
.disc-l .card { padding: 4px 0; } .disc-l .ln { padding: 8px 12px; } .disc-l .ln.sel { background: #e9f0f7; }
@media screen and (max-width: 900px) { .disc2 { grid-template-columns: minmax(0, 1fr); } .disc-r:has(> .empty) { display: none; } }

/* لوائح الخيارات */
select.choix { margin-bottom: 4px; } select.choix.banque { font-size: 12px; color: var(--mu); margin-bottom: 3px; }
td > select.choix.banque { width: 100%; }

/* Pense-bête أصفر كالمرجع */
.card.memo { background: #f6c84c; } .card.memo h2 { color: #3a2e00; } .card.memo textarea { background: #fff9e3; border-color: #e3b63a; }
.pb-r .sep { width: 1px; height: 22px; background: #c4c4c4; margin: 0 4px; }

/* 🟢 إضافات مقارنة برونوت */
.ic.sos { background: #c0392b; color: #fff; border-radius: 8px; font-weight: 800; font-size: 11px; padding: 0 6px; width: auto; }
.flash.alerte { position: sticky; top: 0; z-index: 50; font-size: 14px; }
.tchat { display: grid; grid-template-columns: 260px 1fr; gap: 12px; min-height: 60vh; } @media (max-width: 760px) { .tchat { grid-template-columns: 1fr; } }
.tchat .contacts a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--tx); } .tchat .contacts a.on { background: #e2f1ec; }
.tchat .st { width: 10px; height: 10px; border-radius: 50%; background: #9aa5b1; flex: none; } .tchat .st.dispo { background: #1f8a5b; } .tchat .st.ndr { background: #c0392b; } .tchat .st.cours { background: #d98c1f; }
.tchat .fil { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow: auto; padding: 6px; }
.tchat .msg { max-width: 75%; padding: 7px 11px; border-radius: 12px; background: #f1f5f9; } .tchat .msg.moi { align-self: flex-end; background: #dcefe7; } .tchat .msg small { display: block; color: var(--mu); font-size: 11px; }
.emo { font-size: 28px; background: none; border: 2px solid transparent; border-radius: 10px; cursor: pointer; padding: 2px 6px; } .emo.on { border-color: var(--nav2); background: #e2f1ec; }
.ics-box { background: #f7fafc; border: 1px solid var(--bd); border-radius: 8px; padding: 8px 10px; word-break: break-all; font-family: monospace; font-size: 12px; }

/* 🔤 قاعدة الخط 12 بكل البرنامج (طلبه 10-25: «الحرف بكل البرنامج 12») — لا نصّ أصغر من 12pt إلّا الشارات الصغيرة والأيقونات */
html { font-size: 12pt; }
body, body *:not(h1):not(h2):not(h3):not(svg):not(svg *):not(.pi):not(.emo):not(.stat > b):not(.top-c > b):not(.bul-h b):not(.login h1):not(.portail h1):not(.ev .dt b):not(.pst):not(.av):not(.av-top *):not(.nb):not(.sos):not(.btn-ic):not(.btn-ic *):not(.ic):not(.ic *):not(.fb *):not(.top *):not(.rail *):where(:not(.rk):not(.rk *)) { font-size: 12pt !important; }
h1 { font-size: 15pt !important; } h2 { font-size: 13.5pt !important; } h3 { font-size: 12.5pt !important; }
.bi { line-height: 1.25; } .bi .ar { opacity: .8; }
.pst { font-size: 11px !important; } .pst.sm { font-size: 10px !important; } .nb { font-size: 10.5px !important; }
.menu { flex-wrap: wrap; } .menu .mi > button, .menu a.mi { max-width: none; padding: 6px 10px; word-break: keep-all; overflow-wrap: normal; } .menu-r { padding: 2px 0 2px 8px; }
.menu-r .ic.cnx { display: inline-flex; align-items: center; gap: 6px; width: auto; height: 36px; padding: 0 12px; background: #fff; color: #4A86D8; font-weight: 700; white-space: nowrap; font-size: 12pt !important; }
.bul table:not(.rk), .bul.mat table { font-size: 12pt !important; } .bul.mat td.mat .cp, .bul.mat td.mat .cp .ar, .bul.rel td.evc, .bul.rel td.evc small { font-size: 12pt !important; }
@media print { body, body *:where(:not(.rk):not(.rk *)) { font-size: 12pt !important; } h1 { font-size: 15pt !important; } h2 { font-size: 13.5pt !important; } }
/* 🎨 شريط «Vous êtes connecté en tant que» بالتركواز بدل الكحلي الداكن */
.flash.incarne { background: #4A86D8 !important; color: #fff; }
.edt-w.compact .cc b, .edt-w.compact .cc span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 📋 (2026-11-20) كشف العلامات بصفحة واحدة: كل تقييمات المادّة بخانة واحدة، قطعاً متتالية (التاريخ · العنوان فوق والعلامة تحت) تنزل على سطر ثانٍ إن كثرت */
.bul.rel table.rk, .bul.rel table.rk td, .bul.rel table.rk th { font-size: 10.5pt; }
.bul.rel table.rk td { padding: 2px 5px; vertical-align: middle; } .bul.rel table.rk th { padding: 4px 5px; }
.bul.rel table.rk td.mat > b { display: block; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.bul.rel table.rk td.mat .m2 { display: flex; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; color: var(--mu); font-size: 8.5pt; line-height: 1.25; }
.bul.rel table.rk td.mat .m2 span { font-size: 8.5pt; } body.noar .bul.rel table.rk td.mat .m2 .ar { display: none; }
.bul.rel table.rk td.evs { padding: 1px 2px; text-align: start; line-height: 1.15; }
.bul.rel table.rk .evk { display: inline-block; text-align: center; white-space: nowrap; padding: 1px 3px; vertical-align: top; border-inline-end: 1px solid #d5dde6; }
.bul.rel table.rk .evk:last-child { border-inline-end: 0; }
.bul.rel table.rk .evk small { display: block; color: var(--mu); font-size: 7pt; line-height: 1.2; }
.bul.rel table.rk { table-layout: fixed; width: 100%; } .bul.rel table.rk th { font-size: 9pt; line-height: 1.2; }
.bul.rel .bul-h.rk, .bul.rel .bul-h.rk *, .bul.rel .bul-id.rk, .bul.rel .bul-id.rk * { font-size: 10pt; line-height: 1.25; } .bul.rel .bul-h.rk .ec b, .bul.rel .bul-h.rk .ti b { font-size: 12pt; }
.bul.rel table.rk tfoot td { padding: 2px 5px; } .bul.rel table.rk tfoot td .bi { flex-direction: row; gap: 8px; align-items: baseline; }
.bul.rel .bul-h { padding-bottom: 4px; margin-bottom: 6px; } .bul.rel .bul-h img { height: 46px; } .bul.rel .bul-id { margin-bottom: 5px; } .bul.rel .bul-pied.rk, .bul.rel .bul-pied.rk * { font-size: 8pt !important; } .bul.rel .bul-pied { margin-top: 4px; } .bul.rel table.rk .evk i { font-style: normal; color: var(--mu); font-size: 7.5pt; margin-inline-start: 4px; }
.bul.rel table.rk .evk b { font-size: 10.5pt; } .bul.rel table.rk .evk b span { font-weight: 400; color: var(--mu); font-size: 8.5pt; }
.bul.rel table.rk th small, .bul.rel table.rk th .bi .ar { font-size: 8.5pt; }
.bul.rel table.rk tfoot td { padding: 4px 5px; } .bul.rel table.rk th.pv, .bul.rel table.rk th.pv * { font-size: 7.5pt; padding-left: 1px; padding-right: 1px; }
@media print { .bul.rel { page-break-inside: avoid; margin-top: 0 !important; } .bul.rel .bul-pied { margin: 2px 0 0; line-height: 1.2; } .bul.rel table.rk tr { page-break-inside: avoid; } }

/* 📋 (2026-11-20) كشف العلامات: ترويسة مرتّبة + شريط التلميذ + توقيع الإدارة + قطع مضغوطة */
.bul.rel .rel-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-bottom: 7px; border-bottom: 2px solid var(--nav); margin-bottom: 7px; }
.bul.rel .rel-top, .bul.rel .rel-top *, .bul.rel .rel-info, .bul.rel .rel-info *, .bul.rel .rel-sign, .bul.rel .rel-sign * { font-size: 10pt; line-height: 1.3; }
.bul.rel .rel-top .rt-ec { display: flex; align-items: center; gap: 9px; } .bul.rel .rel-top .rt-ec img { height: 150px; }
.bul.rel .rel-top .rt-ec b, .bul.rel .rel-top .rt-ec span, .bul.rel .rel-top .rt-ti b, .bul.rel .rel-top .rt-ti span, .bul.rel .rel-top .rt-an small, .bul.rel .rel-top .rt-an b { display: block; }
.bul.rel .rel-top .rt-ec b { font-size: 13pt; color: var(--nav); white-space: nowrap; } .bul.rel .rel-top .rt-ec span { white-space: nowrap; font-size: 11pt; color: var(--nav); } .bul.rel .rel-top .rt-ec span { color: var(--mu); }
.bul.rel .rel-top .rt-ti { text-align: center; } .bul.rel .rel-top .rt-ti em { display: block; font-style: normal; font-weight: 700; font-size: 14pt; color: var(--nav); margin-bottom: 5px; } .bul.rel .rel-top .rt-ti em span, .bul.rel .rel-top .rt-ti em bdi { display: inline; font-size: 13pt; font-weight: 700; color: var(--nav); } body.noar .bul.rel .rel-top .rt-ti em .ar { display: none; } .bul.rel .rel-top .rt-ti b { font-size: 17pt; color: var(--nav); letter-spacing: 1px; } .bul.rel .rel-top .rt-ti > span { font-size: 11pt; color: #1f2937; }
.bul.rel .rel-top .rt-an { text-align: end; } .bul.rel .rel-top .rt-an small { color: var(--nav); font-size: 11pt; } .bul.rel .rel-top .rt-an b { font-size: 14pt; color: var(--nav); }
.bul.rel .rel-info { display: flex; justify-content: space-between; gap: 18px; background: #f1f5f9; border: 1px solid #d5dde6; border-radius: 6px; padding: 5px 10px; margin-bottom: 7px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bul.rel .rel-info > div { display: flex; align-items: baseline; gap: 8px; } .bul.rel .rel-info small, .bul.rel .rel-info small * { color: var(--mu); font-size: 9.5pt; } .bul.rel .rel-info b { font-size: 11pt; }
.bul.rel .rel-sign { display: flex; justify-content: flex-end; margin-top: 14px; } .bul.rel .rel-sign > div { min-width: 190px; text-align: center; padding-top: 4px; }
.bul.rel .rel-sign b, .bul.rel .rel-sign span, .bul.rel .rel-sign i { display: block; } .bul.rel .rel-sign b { font-size: 10.5pt; } .bul.rel .rel-sign span { color: var(--mu); } .bul.rel .rel-sign i { font-style: normal; margin-top: 30px; border-top: 1px solid #94a3b8; padding-top: 3px; min-height: 14px; }
body.noar .bul.rel .rel-top [dir=rtl], body.noar .bul.rel .rel-info [dir=rtl], body.noar .bul.rel .rel-sign [dir=rtl] { display: none; }
.bul.rel table.rk td.ev-c .evk { padding: 1px 3px; } .bul.rel table.rk td.ev-xs .evk { padding: 1px 2px; } .bul.rel table.rk td.ev-xs .evk b { font-size: 9pt; } .bul.rel table.rk td.ev-xs .evk b span { font-size: 7pt; } .bul.rel table.rk td.ev-xs .evk small { font-size: 6.5pt; }
/* 📋 (2026-11-20 «أنا بفضّل ما يكون في بالعربي») كشف العلامات بالفرنسية فقط — خيار rel_arabe (مطفأ افتراضياً) */
.bul.rel.sans-ar .ar, .bul.rel.sans-ar [dir=rtl] { display: none !important; } .bul.rel .rel-info small .ar, .bul.rel .rel-info small bdi { font-size: 9.5pt; color: var(--mu); }

/* 📋 (2026-11-20) كشف العلامات: ترويسة بترتيب المرجع (مربّع المدرسة يساراً · العنوان والتلميذ يميناً · السنة تحت المربّع) + سطر الغياب والتأخير — تتقدّم على قواعد .rel-top السابقة */
.bul.rel .rel-top { display: grid; grid-template-columns: 46% 1fr; align-items: start; gap: 34px; padding-bottom: 0; border-bottom: 0; margin-bottom: 6px; }
.bul.rel .rel-top .rt-ec { display: flex; align-items: center; gap: 12px; border: 1px solid #b9c4d0; padding: 6px 10px; min-height: 96px; }
.bul.rel .rel-top .rt-ec img { height: 112px; }
.bul.rel .rel-top .rt-ec .rt-co { flex: 1; text-align: center; } .bul.rel .rel-top .rt-ec .rt-co span { display: block; font-size: 9.5pt; color: #1f2937; line-height: 1.45; white-space: normal; } .bul.rel .rel-top .rt-ec .rt-co b { font-size: 9.5pt; display: inline; color: #1f2937; }
.bul.rel .rel-top .rt-ti { text-align: start; padding-top: 4px; }
.bul.rel .rel-top .rt-ti > b { display: block; font-size: 17pt; color: #111827; letter-spacing: 0; margin-bottom: 9px; }
.bul.rel .rel-top .rt-ti > strong { display: block; font-size: 12.5pt; color: #111827; }
.bul.rel .rel-top .rt-ti > span { display: block; font-size: 10.5pt; color: #1f2937; } .bul.rel .rel-top .rt-ti > span.cl { margin-top: 6px; } .bul.rel .rel-top .rt-ti > span.cl b { font-size: 12.5pt; display: inline; }
.bul.rel .rel-an { font-size: 10pt; margin: 2px 0 5px; }
.bul.rel .rel-abs, .bul.rel .rel-abs * { font-size: 10pt; } .bul.rel .rel-abs { margin-top: 6px; }
/* الخطّ بالترويسة مرتّب كالمرجع: أسود، Arial، العنوان 16pt غامق · الاسم 12pt غامق · الباقي 10pt عادي */
.bul.rel .rel-top, .bul.rel .rel-top *, .bul.rel .rel-an, .bul.rel .rel-abs, .bul.rel .rel-abs *, .bul.rel .rel-sign, .bul.rel .rel-sign * { font-family: Arial, Helvetica, sans-serif; color: #000; }
.bul.rel .rel-top .rt-ti > b { font-size: 16pt; font-weight: 700; margin-bottom: 10px; } .bul.rel .rel-top .rt-ti > strong { font-size: 12pt; font-weight: 700; } .bul.rel .rel-top .rt-ti > span { font-size: 10pt; font-weight: 400; } .bul.rel .rel-top .rt-ti > span.cl { margin-top: 8px; } .bul.rel .rel-top .rt-ti > span.cl b { font-size: 12pt; font-weight: 700; color: #000; }
.bul.rel .rel-top .rt-ec .rt-co span, .bul.rel .rel-top .rt-ec .rt-co b { font-size: 10pt; color: #000; } .bul.rel .rel-an { font-size: 10pt; color: #000; } .bul.rel .rel-abs b { font-weight: 700; }
/* السنة الدراسية فوق على اليمين (طلبه 2026-11-20) */
.bul.rel .rel-top { grid-template-columns: 44% 1fr auto; gap: 26px; margin-bottom: 8px; } .bul.rel .rel-top .rt-an { text-align: end; padding-top: 6px; white-space: nowrap; } .bul.rel .rel-top .rt-an small { display: block; font-size: 10pt; color: #000; } .bul.rel .rel-top .rt-an b { display: block; font-size: 12pt; font-weight: 700; color: #000; }
/* (2026-11-20 «شيل اللون الأسود… وزغّر شوي… خلّيها أنعم») كتابات الترويسة: رمادي هادئ بدل الأسود، أصغر وأنعم */
.bul.rel .rel-top, .bul.rel .rel-top *, .bul.rel .rel-abs, .bul.rel .rel-abs *, .bul.rel .rel-sign, .bul.rel .rel-sign * { color: #4b5563; }
.bul.rel .rel-top .rt-ti > b { font-size: 13.5pt; font-weight: 600; color: #374151; margin-bottom: 8px; } .bul.rel .rel-top .rt-ti > strong { font-size: 11pt; font-weight: 600; color: #374151; } .bul.rel .rel-top .rt-ti > span { font-size: 9.5pt; color: #4b5563; } .bul.rel .rel-top .rt-ti > span.cl b { font-size: 11pt; font-weight: 600; color: #374151; }
.bul.rel .rel-top .rt-ec .rt-co span, .bul.rel .rel-top .rt-ec .rt-co b { font-size: 9.5pt; color: #4b5563; } .bul.rel .rel-top .rt-ec .rt-co b { font-weight: 600; } .bul.rel .rel-top .rt-an small { font-size: 9.5pt; color: #4b5563; } .bul.rel .rel-top .rt-an b { font-size: 11pt; font-weight: 600; color: #374151; }
.bul.rel .rel-abs b { font-weight: 600; } .bul.rel .rel-sign b { font-weight: 600; }
/* (2026-11-20 «بدون لون للشريط خلّي أبيض») رأس جدول الكشف أبيض بكتابة داكنة وحدود رفيعة، كورقة المرجع */
.bul.rel table.rk th, .bul.rel table.rk th.cur { background: #fff; color: #374151; border: 1px solid #b9c4d0; font-weight: 600; } .bul.rel table.rk th * { color: #374151; }
.bul.rel .rel-top .rt-ti > span.cl { margin-top: 3px; font-size: 10pt; }
.bul.rel .rel-top .rt-ti > span.dd { margin-top: 2px; font-size: 10pt; } .bul.rel .rel-top .rt-ti > span.dd b { display: inline; font-size: 10pt; font-weight: 600; color: #374151; }
/* نوع التقييم (Oral / Écrit) بجانب العلامة بالكشف */
.bul.rel table.rk .evk i.nat { font-style: normal; font-size: 7pt; color: #6b7280; margin-inline-start: 3px; }
/* النوع كاملاً دائماً (Oral / Écrit): بالقطع المضغوطة ينزل سطراً تحت العلامة بدل الحرف المختصر */
.bul.rel table.rk .evk i.nat { font-size: 7.5pt; color: #4b5563; } .bul.rel table.rk td.ev-c .evk i.nat, .bul.rel table.rk td.ev-xs .evk i.nat { display: block; margin: 0; line-height: 1.15; }

/* 📋 (2026-11-21) كشف العلامات: المادّة المقسّمة (كـSmart School) = سطر المادّة ثمّ سطر لكل قسم (مُزاح، أخفّ) بتقييماته وعلامته */
.bul.rel table.rk tr.cmp td { padding-top: 0; padding-bottom: 0; border-top: 1px dotted #d5dde6; line-height: 1.25; } .bul.rel table.rk tr.cmp td.evs.evl { padding-top: 0; padding-bottom: 0; line-height: 1.2; }
.bul.rel table.rk tr.cmp td.mat { padding-inline-start: 14px; overflow: hidden; } .bul.rel table.rk tr.cmp td.mat .cn { color: #33475b; white-space: nowrap; }
.bul.rel table.rk tr.cmp td.evs.evl .evk small { display: inline; margin-inline-end: 4px; } .bul.rel table.rk tr.cmp td.evs.evl .evk .nat { display: inline; margin-inline-start: 3px; } .bul.rel table.rk tr.cmp td.evs.evl .evk b { font-size: 9.5pt; } .bul.rel table.rk tr.cmp td.evs.evl .evk { padding: 0 4px; }
.bul.rel table.rk tr.cmp td.c { font-size: 9.5pt; } .bul.rel table.rk tr.mere td { border-bottom: 0; }
.bul.rel table.rk tr.mere td.mat > b { display: inline; } .bul.rel table.rk tr.mere td.mat .m2 { display: inline-flex; margin-inline-start: 8px; vertical-align: baseline; } .bul.rel table.rk tr.mere td { padding-top: 3px; padding-bottom: 3px; }
.bul.rel.rel-dn .rel-sign { margin-top: 4px; } .bul.rel.rel-dn .rel-sign i { margin-top: 20px; } .bul.rel.rel-dn table.rk tbody td { padding-top: 1px; padding-bottom: 1px; } .bul.rel.rel-dn table.rk tbody td.evs { padding-top: 0; padding-bottom: 0; } .bul.rel.rel-dn table.rk .evk { padding-top: 0; padding-bottom: 0; } .bul.rel.rel-dn table.rk tr.cmp td { padding-top: 0; padding-bottom: 0; } .bul.rel.rel-dn .rel-abs { margin-top: 3px; } .bul.rel.rel-dn table.rk tfoot td { padding-top: 2px; padding-bottom: 2px; }
/* (2026-11-21 «البولد كتير غامق» + «الريسيتاسيون يكونو مرتّبين تحت بعض») كشف العلامات: غامق أنعم (600 رمادي داكن) + قطع التقييمات بعرض ثابت ⇒ أعمدة متراصفة بكل الأسطر */
.bul.rel table.rk b, .bul.rel table.rk td.mat > b, .bul.rel table.rk .evk b, .bul.rel table.rk td.cur b { font-weight: 600; color: #1f2937; }
.bul.rel table.rk tfoot td, .bul.rel table.rk tfoot td b, .bul.rel table.rk tfoot td * { font-weight: 600; color: #1f2937; }
.bul.rel table.rk td.evs:not(.ev-c):not(.ev-xs) .evk, .bul.rel table.rk tr.cmp td.evs.evl .evk { width: 106px; box-sizing: border-box; text-align: center; padding-left: 2px; padding-right: 2px; overflow: hidden; }
.bul.rel table.rk td.evs.ev-c .evk { width: 44px; box-sizing: border-box; text-align: center; } .bul.rel table.rk td.evs.ev-xs .evk { width: 36px; box-sizing: border-box; text-align: center; }
.bul.rel table.rk tr.cmp td.evs.evl .evk small { margin-inline-end: 3px; }
/* (2026-11-21) سطر القسم = نفس قطعة سطر المادّة (العنوان والتاريخ فوق، العلامة تحت) بسطور أضيق */
.bul.rel table.rk tr.cmp td.evs.evl .evk small { display: block; margin: 0; line-height: 1.05; font-size: 6.5pt; } .bul.rel table.rk tr.cmp td.evs.evl .evk b { font-size: 9.5pt; line-height: 1.1; } .bul.rel table.rk tr.cmp td.evs.evl .evk { line-height: 1.1; }
.bul.rel table.rk tr.cmp td.evs.evl.ev-c .evk, .bul.rel table.rk tr.cmp td.evs.evl.ev-xs .evk { width: 44px; } .bul.rel table.rk tr.cmp td.evs.evl.ev-xs .evk { width: 36px; }
.bul.rel.rel-dn table.rk tbody tr:not(.cmp):not(.mere) td.mat > b { line-height: 1.1; } .bul.rel.rel-dn table.rk tbody tr:not(.cmp) .evk small { line-height: 1.1; } .bul.rel.rel-dn table.rk td.mat .m2 { line-height: 1.1; }
.bul.rel.rel-dn .rel-sign { margin-top: -15px; } .bul.rel.rel-dn table.rk tfoot td { padding-top: 1px; padding-bottom: 1px; } .bul.rel.rel-dn table.rk tr.mere td { padding-top: 1px; padding-bottom: 1px; }
.bul.rel table.rk tr.cmp td.evs.evl .evk small { line-height: 1; } .bul.rel table.rk tr.cmp td.evs.evl .evk b { font-size: 9pt; line-height: 1.05; } .bul.rel table.rk tr.cmp td.evs.evl .evk i.nat { font-size: 7pt; }
.bul.rel.rel-dn .rel-sign i { margin-top: 12px; } .bul.rel.rel-dn .rel-sign > div { padding-top: 0; } .bul.rel.rel-dn table.rk tr.cmp td.evs.evl { padding-top: 0; padding-bottom: 0; line-height: 1; }
.bul.rel.rel-dn table.rk tr.cmp td.evs.evl { padding-top: 2px; padding-bottom: 1px; }
/* (2026-11-21 «اسم المدرسة بدّك تكبّرو») الشعار (وفيه اسم المدرسة) أكبر بمربّع الترويسة */
.bul.rel .rel-top .rt-ec img { height: 142px; } .bul.rel .rel-top .rt-ec { padding: 4px 10px; }
/* (2026-11-21 «اسم المدرسة كبّرو بعد، مش مقرا») الشعار أكبر بعد + مربّعه أعرض */
.bul.rel .rel-top { grid-template-columns: 50% 1fr auto; gap: 20px; } .bul.rel .rel-top .rt-ec img { height: 190px; } .bul.rel .rel-top .rt-ec { padding: 2px 8px; gap: 8px; }
/* (2026-11-21 «بدّك تعلّي الصفحة شوي») كشف العلامات بالطباعة: يبدأ أعلى الورقة (هامش داخلي علوي أصغر) */
@media print { .bul.rel { padding-top: 4px !important; } }
/* 📷🎤 (2026-11-21) الأجندا السريعة للأستاذ: صورة اللوح أو إملاء بالصوت */
.tr-acc { display: block; text-decoration: none; background: var(--nav); color: #fff; text-align: center; padding: 14px 12px; } .tr-acc b { display: block; color: #fff; } .tr-acc span { display: block; color: #e6f4f7; margin-top: 3px; } .tr-acc * { color: #fff; }
.tr-rapide .tr-l { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 12px; } .tr-rapide .tr-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.tr-rapide .tr-big { padding: 14px 18px; width: 100%; } .tr-rapide .tr-sm { margin-top: 8px; } .tr-rapide .tr-photo, .tr-rapide .tr-voix { display: flex; flex-direction: column; gap: 6px; }
.tr-rapide .tr-mic { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; } .tr-rapide #tr-mic.on { background: var(--vert2); border-color: var(--vert2); box-shadow: 0 0 0 4px rgba(74,134,216,.25); animation: trp 1s infinite; } @keyframes trp { 50% { opacity: .65; } }
.tr-rapide .tr-prev img { max-width: 100%; max-height: 260px; border: 1px solid #cbd5e1; border-radius: 8px; display: block; } .tr-rapide textarea { width: 100%; }
.tr-it { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #e5e9ef; } .tr-it:first-of-type { border-top: 0; } .tr-mini { max-height: 110px; max-width: 220px; border: 1px solid #cbd5e1; border-radius: 6px; margin-top: 6px; display: block; }
@media screen and (max-width: 700px) { .tr-rapide .tr-l, .tr-rapide .tr-2 { grid-template-columns: 1fr; } }
.tr-acc { margin-bottom: 14px; padding: 16px 12px; } .tr-acc b { font-size: 14pt !important; }
/* 🏠 (2026-11-21) «بيت الأهل» — البلاتفورم: واجهة بسيطة للهاتف أوّلاً */
.fa { max-width: 1100px; margin: 0 auto 18px; display: grid; gap: 14px; }
.fa-hero { background: linear-gradient(135deg, #4A86D8, #3A6FBE); border-radius: 18px; padding: 18px 20px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.fa-hero * { color: #fff; } .fa-who { display: flex; align-items: center; gap: 14px; } .fa-who img, .fa-who .av { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); object-fit: cover; background: rgba(255,255,255,.15); }
.fa-who small { display: block; opacity: .9; } .fa-who b { display: block; font-size: 17pt !important; line-height: 1.2; } .fa-who span { display: block; opacity: .9; }
.fa-kids { display: flex; gap: 8px; flex-wrap: wrap; } .fa-kids a { text-decoration: none; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); } .fa-kids a.on { background: #fff; color: #4A86D8; font-weight: 700; } .fa-kids a.on * { color: #4A86D8; } .fa-kids i { font-style: normal; opacity: .8; }
.fa-jour { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; } .fa-bloc { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.fa-bloc h3 { margin: 0 0 8px; color: #4A86D8; } .fa-vide { color: #64748b; margin: 6px 0; }
.fa-l { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 9px 0 9px 10px; border-inline-start: 4px solid var(--c, #4A86D8); margin: 6px 0; } .fa-l b { display: block; } .fa-l span { display: block; color: #475569; } .fa-l.fait { opacity: .55; }
.fa-l img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid #cbd5e1; flex: none; } .fa-l em { font-style: normal; color: #1f8a5b; font-weight: 700; } .fa-plus { display: inline-block; margin-top: 4px; }
.fa-c { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-inline-start: 4px solid var(--c, #94a3b8); margin: 4px 0; border-radius: 0 8px 8px 0; } .fa-c time { color: #64748b; min-width: 46px; } .fa-c.passe { opacity: .5; } .fa-c.cur { background: #EDF3FC; font-weight: 700; } .fa-c.ann b { text-decoration: line-through; } .fa-c em { font-style: normal; color: #b45309; }
.fa-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fa-t { position: relative; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; background: #fff; border-radius: 16px; padding: 14px; min-height: 124px; box-shadow: 0 1px 3px rgba(15,23,42,.08); transition: transform .12s, box-shadow .12s; }
a.fa-t:hover, a.fa-t:active { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(74,134,216,.18); }
.fa-i { font-size: 20pt !important; line-height: 1; } .fa-t b { color: #334155; } .fa-t strong { font-size: 20pt !important; color: #4A86D8; line-height: 1.15; } .fa-t strong i { font-style: normal; font-size: 12pt !important; color: #64748b; } .fa-t small { color: #64748b; line-height: 1.25; }
.fa-b { position: absolute; top: 10px; inset-inline-end: 10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #4A86D8; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.fa-t.bientot { background: #f1f5f9; box-shadow: none; border: 1px dashed #cbd5e1; } .fa-t.bientot strong { color: #94a3b8; }
h2.fa-detail { max-width: 1100px; margin: 6px auto 10px; color: #64748b; }
@media screen and (max-width: 700px) { .fa-jour { grid-template-columns: 1fr; } .fa-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fa-hero { padding: 16px; border-radius: 16px; } .fa-who b { font-size: 15pt !important; } }
/* 📄 (2026-11-21) بطاقة العلامات: ضبّها (EB8 كانت 4 صفحات) — نفس الشكل والأعمدة والخطّ 12، لكن الفرنسي والعربي والأستاذ بسطر واحد بدل ثلاثة، وعمود المادّة أعرض، وحشو أقلّ */
.bul:not(.rel):not(.mat) .bul-t td { padding: 2px 6px; line-height: 1.25; vertical-align: middle; }
.bul:not(.rel):not(.mat) .bul-t td.mat .bi, .bul:not(.rel):not(.mat) .bul-t td.rub .bi { display: inline-flex; flex-direction: row; gap: 7px; align-items: baseline; flex-wrap: wrap; }
.bul:not(.rel):not(.mat) .bul-t td.mat > b { display: inline; } .bul:not(.rel):not(.mat) .bul-t td.mat > span { display: inline; margin-inline-start: 8px; white-space: nowrap; }
.bul:not(.rel):not(.mat) .bul-t th:nth-child(1) { width: 13% !important; } .bul:not(.rel):not(.mat) .bul-t th:nth-child(2) { width: 39% !important; } .bul:not(.rel):not(.mat) .bul-t th.o-app { width: 22% !important; }
.bul:not(.rel):not(.mat) .bul-t th { padding: 3px 5px; } .bul:not(.rel):not(.mat) .bul-t th .bi { flex-direction: row; gap: 6px; justify-content: center; flex-wrap: wrap; }
.bul:not(.rel):not(.mat) .bul-b { gap: 8px; margin-top: 8px; } .bul:not(.rel):not(.mat) .bul-b .bx { min-height: 62px; padding: 5px 9px; }
.bul:not(.rel):not(.mat) .bul-h { padding-bottom: 6px; margin-bottom: 8px; } .bul:not(.rel):not(.mat) .bul-id { margin-bottom: 6px; }
@media print { .bul:not(.rel) { padding-top: 4px !important; } .bul:not(.rel):not(.mat) .bul-t tr { page-break-inside: avoid; } }
.bul:not(.rel):not(.mat) .bul-t { width: 100%; }
/* 🎬 (2026-11-21) فيديوهات الشرح داخل البرنامج */
.vd-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; } .vd { margin: 0; } .vd video { width: 100%; aspect-ratio: 16 / 9; background: #0f172a; border-radius: 12px; display: block; } .vd figcaption { margin-top: 6px; font-weight: 600; }
.vd-lang { display: flex; gap: 8px; } .vd-f { display: grid; gap: 10px; max-width: 640px; margin-bottom: 12px; } .vd-chk { display: flex; flex-wrap: wrap; gap: 6px 16px; } .vd-chk label { display: inline-flex; align-items: center; gap: 6px; } .vd-chk input { width: auto; }
.vd-acc { display: block; text-align: center; text-decoration: none; margin: -6px 0 14px; padding: 9px 12px; border: 1px solid #4A86D8; border-radius: 10px; color: #4A86D8; background: #EDF3FC; font-weight: 600; }
/* 📱 باب الإدارة على الهاتف: زرّ «Se connecter en tant que…» كان يوسّع الشريط (602px) ⇒ أيقونة فقط */
@media screen and (max-width: 700px) { .menu-r .ic.cnx .cnx-t { display: none; } .menu-r .ic.cnx { padding: 0 10px; } .menu-r { flex-wrap: wrap; max-width: 100%; box-sizing: border-box; } }

/* 🎤 العلامات بالصوت (2026-11-21) — pages/notes_saisie.php + assets/voix_notes.js */
.vx summary { cursor: pointer; } .vx-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 8px 0; } .vx-top label { display: flex; flex-direction: column; gap: 3px; } .vx-top select { max-width: 100%; }
.vx .vx-big { padding: 12px 20px; font-weight: 600; } .vx #vx-mic.on { background: #3A6FBE; box-shadow: 0 0 0 4px rgba(74,134,216,.25); }
.vx textarea { width: 100%; box-sizing: border-box; } .vx-liste { margin: 10px 0; display: flex; flex-direction: column; gap: 5px; }
.vx-l { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(130px, 2fr) 70px minmax(90px, 1.4fr) 40px; gap: 6px; align-items: center; padding: 5px 8px; border: 1px solid #d5dde3; border-radius: 10px; background: #fff; }
.vx-l.bon { border-color: #4A86D8; background: #f0fafc; } .vx-l.att { border-style: dashed; border-color: #64748b; background: #f8fafc; } .vx-l.off { opacity: .45; }
.vx-l .vx-dit { color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vx-l select, .vx-l input { width: 100%; box-sizing: border-box; } .vx-l .vx-v { text-align: center; font-weight: 600; }
.vx-l .vx-m { color: #334155; } .vx-l.att .vx-m { font-weight: 600; } .vx-l .vx-x { padding: 6px 0; } .vx-bas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media screen and (max-width: 700px) { .vx-l { grid-template-columns: 1fr 70px 40px; } .vx-l .vx-dit { grid-column: 1 / -1; } .vx-l .vx-m { grid-column: 1 / -1; grid-row: 3; } .vx .vx-big { width: 100%; } }
.vx-l .vx-c { padding: 3px 10px; margin-inline-start: 6px; } .vx textarea { min-height: 3.2em; }

/* 🎥 الدروس المباشرة (2026-11-21) — pages/live.php */
.lv-c { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; margin: 0 0 12px; border: 2px solid #4A86D8; border-radius: 16px; background: #f0fafc; }
.lv-i { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .lv-i b { color: #0f172a; } .lv-b { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .lv-f { margin: 0; }
.lv-on { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: #4A86D8; color: #fff; font-weight: 600; letter-spacing: .02em; }
.lv-big { padding: 14px 26px; font-weight: 600; } .lv-vide { padding: 28px 16px; }
.lv-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; } .lv-s { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid #d5dde3; border-radius: 14px; background: #fff; margin: 0; } .lv-s input { width: 100%; box-sizing: border-box; }
a.lv-ban { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 14px 16px; margin: 0 0 12px; border-radius: 16px; background: #4A86D8; color: #fff; text-decoration: none; } a.lv-ban .lv-on { background: #fff; color: #4A86D8; } a.lv-ban b { color: #fff; }
@media screen and (max-width: 700px) { .lv-c { flex-direction: column; align-items: stretch; } .lv-b, .lv-f, .lv-big { width: 100%; } .lv-b .lv-f:not(:first-child) .btn { width: 100%; } }
.lv-aide summary { cursor: pointer; color: #4A86D8; } .lv-aide ol { margin: 6px 0 10px; padding-inline-start: 22px; } .lv-s .lv-lien { font-size: 10pt !important; }

/* 📱 تنقّل الهاتف على طريقة واتساب (2026-11-22): شريط سفلي + رأس بسيط + «المزيد». على الكمبيوتر لا يظهر شيء من هذا. */
.wa-top, .wa-tabs { display: none; }
.wa-plus { max-width: 720px; margin: 0 auto; } .wa-g { background: #fff; border-radius: 14px; margin: 0 0 14px; overflow: hidden; border: 1px solid #e5eaee; } .wa-g h2 { margin: 0; padding: 10px 16px 6px; color: #4A86D8; font-weight: 600; }
a.wa-r { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid #eef2f5; color: #0f172a; text-decoration: none; } a.wa-r span { flex: 1; min-width: 0; } a.wa-r em { font-style: normal; color: #94a3b8; font-size: 16pt !important; line-height: 1; } a.wa-r:active { background: #f0fafc; }
.wa-nb { font-style: normal; background: #4A86D8; color: #fff; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; font-size: 8.5pt !important; font-weight: 600; }
@media screen and (max-width: 700px) {
  body.wa header.top, body.wa nav.menu, body.wa footer.foot, body.wa .pagebar { display: none !important; }
  body.wa { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); background: #f4f6f8; }
  body.wa .wa-top { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 60; background: #fff; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); border-bottom: 1px solid #e5eaee; min-height: 54px; box-sizing: border-box; }
  body.wa .wa-top .wa-t { flex: 1; min-width: 0; font-weight: 700; color: #0f172a; font-size: 14.5pt !important; line-height: 1.15; overflow: hidden; } body.wa .wa-top .wa-t .ar { font-size: 10.5pt !important; font-weight: 500; color: #475569; }
  body.wa .wa-ret { color: #4A86D8; display: grid; place-items: center; width: 38px; height: 38px; margin-inline-start: -8px; border-radius: 50%; flex: none; } [dir=rtl] body.wa .wa-ret svg { transform: scaleX(-1); }
  body.wa .wa-logo { width: 34px; height: 34px; border-radius: 9px; flex: none; }
  body.wa .wa-kid { flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: #EDF3FC; color: #4A86D8; text-decoration: none; font-weight: 600; font-size: 10pt !important; }
  body.wa .wa-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid #e5eaee; padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  body.wa .wa-tabs a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: #475569; }
  body.wa .wa-tabs .wa-i { position: relative; display: grid; place-items: center; width: 62px; height: 32px; border-radius: 999px; } body.wa .wa-tabs a.on .wa-i { background: #DDE9FA; color: #4A86D8; } body.wa .wa-tabs a.on { color: #4A86D8; }
  body.wa .wa-tabs .wa-l { font-size: 9pt !important; font-weight: 600; line-height: 1.1; text-align: center; white-space: nowrap; } body.wa .wa-tabs .wa-l .bi, body.wa .wa-tabs .wa-l .fr, body.wa .wa-tabs .wa-l .ar { display: block; margin: 0; } body.wa .wa-tabs .wa-l .ar { font-weight: 500; font-size: 8.5pt !important; } body.wa.noar .wa-tabs .wa-l .ar { display: none; }
  body.wa .wa-tabs .wa-nb { position: absolute; top: -3px; inset-inline-end: 6px; }
  body.wa main { padding-top: 12px; }
}
@media print { .wa-top, .wa-tabs { display: none !important; } }

/* (22/11) الصفّ المختار ظاهر بوضوح + «تغيير الصفّ»؛ على الهاتف شريط الصفوف يختفي (الاختيار من اللائحة) */
.svc-choisi { display: none; } .svc-liste .wa-r b { color: #4A86D8; }
@media screen and (max-width: 700px) { .svc-pick { display: none; } .svc-choisi { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin: 0 0 12px; border-radius: 14px; background: #4A86D8; color: #fff; } .svc-choisi b { font-size: 13.5pt !important; line-height: 1.2; } .svc-choisi .btn { background: #fff; color: #4A86D8; flex: none; } }

/* (22/11) «قدّ ما فيك ما يكون في تعجيق بالصفحة»: على الهاتف تختفي فقرات الشرح الطويلة التي فوق الصفحات (تبقى على الكمبيوتر وبصفحة «مساعدة») */
@media screen and (max-width: 700px) { body.wa main > p.help, body.wa main > form > p.help { display: none; } body.wa .wa-ret { background: #EDF3FC; } }

/* (22/11) داخل تطبيق الهاتف يبقى بلون المدرسة التركواز — الأخضر (طلب المدير) لخلفية أيقونة التطبيق فقط. رأس الهاتف ملوَّن كالواتساب لكن بالتركواز: */
@media screen and (max-width: 700px) {
  body.wa .wa-top { background: #4A86D8; border-bottom: 0; } body.wa .wa-top .wa-t { color: #fff; } body.wa .wa-top .wa-t .ar { color: #DDE9FA; }
  body.wa .wa-top a.wa-ret { color: #fff; background: rgba(255,255,255,.16); } body.wa .wa-logo { background: #fff; } body.wa .wa-top a.wa-kid { background: rgba(255,255,255,.18); color: #fff; }
}

/* 👤 (22/11) «الدخول باسم…»: خيارات كبيرة أوّلاً */
.inc-choix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; max-width: 900px; }
.inc-c { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border: 2px solid #d5dde3; border-radius: 16px; background: #fff; cursor: pointer; font: inherit; color: #0f172a; }
.inc-c b { font-weight: 600; text-align: center; } .inc-c small { color: #64748b; } .inc-c.on { border-color: #4A86D8; background: #EDF3FC; }
.inc-listes section[hidden] { display: none; }
@media screen and (max-width: 700px) { .inc-choix { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inc-listes { display: block; } }
@media screen and (max-width: 700px) { body.wa .wa-logo { background: #fff; } }
@media screen and (max-width: 700px) { body.wa main > p.help, body.wa main p.help.no-print { display: none !important; } body.wa .wa-top .wa-t { white-space: nowrap; text-overflow: ellipsis; } }
@media screen and (max-width: 700px) { body.wa .fa-detail, body.wa .fa-detail + .grid3 { display: none !important; } body.wa .fa-jour { display: flex; flex-direction: column; } body.wa .fa-l span { white-space: normal; display: block; } }
@media screen and (max-width: 700px) { body.wa .fa-grille { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 10px; } body.wa .fa-grille .fa-t { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px 4px; gap: 4px; min-height: 0; } body.wa .fa-grille .fa-t strong, body.wa .fa-grille .fa-t small, body.wa .fa-grille .fa-t.bientot { display: none !important; } body.wa .fa-grille .fa-t b { font-size: 10.5pt !important; line-height: 1.25; } body.wa .fa-grille .fa-t b .ar { display: block; margin: 0; font-weight: 500; } }
@media screen and (max-width: 700px) { body.wa .lv-s input[name=titre] { display: none; } body.wa .lv-s { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } }
@media screen and (max-width: 700px) { body.wa .ph-x, body.wa .card.memo, body.wa .card > p.help { display: none !important; } }
/* (22/11) الهاتف: برنامج الحصص الأسبوعي وورقة العلامات كانا ينضغطان فتتراكب الكتابة ⇒ عرض ثابت مقروء + سحب لليمين/اليسار */
@media screen and (max-width: 700px) { body.wa .scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; } body.wa .edt-w:not(.compact) { min-width: 820px; } body.wa .edt-w .cc { overflow: hidden; } body.wa .edt-w .cc > b, body.wa .edt-w .cc > span { overflow: hidden; text-overflow: ellipsis; }
  body.wa *:has(> .bul.rel) { overflow-x: auto; -webkit-overflow-scrolling: touch; } body.wa .bul.rel { min-width: 760px; } }
.wa-notif { display: none; }
@media screen and (max-width: 700px) { body.wa .wa-notif:not([hidden]) { display: block; margin: 10px 12px 0; padding: 12px 14px; background: #EDF3FC; border: 1px solid #BCD3F3; border-radius: 14px; color: #0f172a; } body.wa .wa-notif > div { display: flex; gap: 8px; margin-top: 10px; } body.wa .wa-notif .btn { flex: 1; } body.wa .wa-r .wa-etat { font-style: normal; color: #4A86D8; font-weight: 700; margin-inline-end: 6px; } }
/* (22/11) رأس الهاتف: جرس الرسائل + «خروج» بكل صفحة */
@media screen and (max-width: 700px) { body.wa .wa-cl { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.16); }
  body.wa .wa-cl i { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #fff; color: #4A86D8; font-style: normal; font-weight: 800; font-size: 8.5pt !important; display: grid; place-items: center; box-sizing: border-box; }
  body.wa .wa-out { flex: none; color: #fff; text-decoration: none; font-weight: 700; font-size: 9.5pt !important; line-height: 1.1; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); text-align: center; } body.wa .wa-out .ar { display: block; margin: 0; font-weight: 600; }
  body.wa .wa-kid { max-width: 26%; } body.wa .wa-top { gap: 7px; padding-inline: 10px; } }
.nt-l .nt span { display: block; min-width: 0; } .nt-l .nt b { display: block; } .nt-l .nt small { display: block; color: #475569; margin-top: 2px; white-space: normal; } .nt-l .nt time { display: block; color: #94a3b8; font-size: 9.5pt !important; margin-top: 3px; } .nt-l .nt.neuf { background: #EDF3FC; } .nt-l .nt.neuf b::before { content: '● '; color: #4A86D8; }
.dg { display: none; }
@media screen and (max-width: 700px) { body.wa .dg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
  body.wa .dg-t { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; text-decoration: none; background: #fff; border-radius: 16px; padding: 8px 4px; box-shadow: 0 1px 3px rgba(15,23,42,.08); color: #0f172a; }
  body.wa .dg-i { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #EDF3FC; color: #4A86D8; } body.wa .dg-i i { position: absolute; top: -5px; inset-inline-end: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #4A86D8; color: #fff; font-style: normal; font-weight: 800; font-size: 9pt !important; display: grid; place-items: center; box-sizing: border-box; }
  body.wa .dg-t b { font-size: 10.5pt !important; line-height: 1.25; font-weight: 600; } body.wa .dg-t b .ar { display: block; margin: 0; font-weight: 500; color: #475569; }
  body.wa.p-accueil.e-direction main > :not(.dg):not(.flash):not(.incarne), body.wa.p-accueil.e-viescolaire main > :not(.dg):not(.flash):not(.incarne) { display: none !important; } }
.dg-h { display: none; }
@media screen and (max-width: 700px) { body.wa .dg-h { display: block; margin: 14px 4px 0; font-size: 12pt !important; color: #4A86D8; } body.wa .dg-h .ar { margin-inline-start: 8px; font-weight: 500; }
  body.wa .dg.dg-p { grid-template-columns: repeat(4, minmax(0, 1fr)); } body.wa .dg.dg-p .dg-t { background: #4A86D8; color: #fff; } body.wa .dg.dg-p .dg-t b .ar { color: #DDE9FA; } body.wa .dg.dg-p .dg-i { background: rgba(255,255,255,.95); }
  body.wa.p-accueil.e-direction main > :not(.dg):not(.dg-h):not(.flash):not(.incarne) { display: none !important; } body.wa.p-accueil.e-direction main > .dg-h { display: block !important; } }
@media screen and (max-width: 700px) { body.wa .dg.dg-p { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.wa .dg.dg-p .dg-t { aspect-ratio: auto; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; text-align: start; min-height: 72px; } body.wa .dg.dg-p .dg-t b { font-size: 12pt !important; font-weight: 700; } body.wa .dg.dg-p .dg-i { flex: none; }
  body.wa.p-accueil.e-direction main > h2.dg-h { display: block !important; } }
/* 📊 (2026-11-24) ورقة الكونترول: أسطر «Moyenne …» على 20 كما بالبطاقة و Smart School */
.bul.rel table.rk tr.moyr td { background: #f7f9fc; padding-top: 1px; padding-bottom: 1px; border-top: 1px solid #b9c4d0; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .bul.rel table.rk tr.moyr td.mat b { font-size: 9.5pt; font-weight: 600; color: #1f2937; } .bul.rel table.rk tr.moyr td.c { font-weight: 600; color: #1f2937; }
/* 📌 (2026-11-24) عناوين الجدول العريض الملتصقة يدوياً (app.js): فوق الخانات، وبلا تثبيت عند الطباعة */
.scroll > table thead th.th-colle { z-index: 6; box-shadow: 0 2px 4px rgba(0,0,0,.12); } .scroll > table thead th.th-colle.nc-nom { z-index: 8; }
@media print { .scroll > table thead th { transform: none !important; box-shadow: none !important; } }
/* 📱 2026-11-25 carres */ /* «كل عنوان ضمن مربّع» على الهاتف للجميع: مربّعان بالسطر، إطار واضح، أيقونة بمربّع ملوّن، رقم أخضر بالزاوية. */
.pf { display: none; }
@media screen and (max-width: 700px) {
  body.wa .pf { display: block; } body.wa.e-professeur .g-prof { display: none !important; }
  body.wa .fa-grille, body.wa .dg:not(.dg-p) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  body.wa .fa-grille .fa-t, body.wa .dg:not(.dg-p) .dg-t { position: relative; aspect-ratio: 1 / .86; border: 2px solid #c9d6ea; border-radius: 16px; background: #fff; box-shadow: 0 2px 6px rgba(30,60,110,.10); padding: 10px 8px; gap: 8px; }
  body.wa .fa-grille .fa-t:active, body.wa .dg:not(.dg-p) .dg-t:active { border-color: #4A86D8; background: #EDF3FC; }
  body.wa .fa-grille .fa-i, body.wa .dg:not(.dg-p) .dg-i { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--tc, #3b7ddd); color: #fff; font-size: 21pt !important; line-height: 1; }
  body.wa .fa-grille .fa-t b, body.wa .dg:not(.dg-p) .dg-t b { font-size: 12pt !important; font-weight: 700; line-height: 1.2; color: #1c2a3f; }
  body.wa .fa-grille .fa-t b .ar, body.wa .dg:not(.dg-p) .dg-t b .ar { display: block; margin: 2px 0 0; font-weight: 500; color: #3d6fc0; }
  body.wa .fa-grille .fa-t:nth-child(8n+1), body.wa .dg:not(.dg-p) .dg-t:nth-child(8n+1) { --tc: #3b7ddd; } body.wa .fa-grille .fa-t:nth-child(8n+2), body.wa .dg:not(.dg-p) .dg-t:nth-child(8n+2) { --tc: #1f9d55; }
  body.wa .fa-grille .fa-t:nth-child(8n+3), body.wa .dg:not(.dg-p) .dg-t:nth-child(8n+3) { --tc: #c2410c; } body.wa .fa-grille .fa-t:nth-child(8n+4), body.wa .dg:not(.dg-p) .dg-t:nth-child(8n+4) { --tc: #7a52c7; }
  body.wa .fa-grille .fa-t:nth-child(8n+5), body.wa .dg:not(.dg-p) .dg-t:nth-child(8n+5) { --tc: #0f8f9c; } body.wa .fa-grille .fa-t:nth-child(8n+6), body.wa .dg:not(.dg-p) .dg-t:nth-child(8n+6) { --tc: #2563a8; }
  body.wa .fa-grille .fa-t:nth-child(8n+7), body.wa .dg:not(.dg-p) .dg-t:nth-child(8n+7) { --tc: #b0457f; } body.wa .fa-grille .fa-t:nth-child(8n+8), body.wa .dg:not(.dg-p) .dg-t:nth-child(8n+8) { --tc: #55657c; }
  body.wa .fa-grille .fa-b { top: 8px; inset-inline-end: 8px; min-width: 24px; height: 24px; background: #1f9d55; font-size: 10.5pt !important; }
  body.wa .dg:not(.dg-p) .dg-i i { background: #1f9d55; min-width: 22px; height: 22px; }
}
/* 📱 2026-11-25 carres 2 */ /* الأهل/التلميذ على الهاتف: المربّعات مباشرة تحت الترحيب، وتفاصيل اليوم بعدها */
@media screen and (max-width: 700px) { body.wa .fa > .fa-jour { order: 2; } body.wa .fa > .fa-grille { order: 1; } }
/* 📱 2026-11-25 mes classes */
@media screen and (max-width: 700px) {
  body.wa .pf .pf-h2 { margin: 6px 2px 0; font-size: 13pt !important; color: #1c2a3f; } body.wa .pf .pf-h2 .ar { display: block; font-weight: 600; color: #3d6fc0; }
  body.wa .pf-cl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.wa .pf-cl a { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 64px; padding: 10px 6px; border: 2px solid #c9d6ea; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgba(30,60,110,.10); text-decoration: none; color: #1c2a3f; }
  body.wa .pf-cl a:active { border-color: #4A86D8; background: #EDF3FC; }
  body.wa .pf-cl i { flex: 0 0 auto; min-width: 64px; padding: 0 10px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--c, #3b7ddd); color: #fff; font-style: normal; font-weight: 800; font-size: 11.5pt !important; }
  body.wa .pf-cl b { font-size: 11pt !important; font-weight: 700; line-height: 1.2; max-width: 100%; overflow-wrap: break-word; } body.wa .pf-cl b .ar { display: block; font-weight: 500; color: #3d6fc0; }
}
/* 📈 2026-11-25 graphe moyennes */
.gm { margin: 6px 0 12px; } .gm-t { margin: 0 0 4px; font-size: 12pt; } .gm-t b { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #e8eef7; color: #1c2a3f; } .gm-t.up b { background: #dcf3e5; color: #116b38; } .gm-t.dn b { background: #e6ecf7; color: #1e3a8a; }
.gm-l { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; font-size: 11pt; color: #475569; } .gm-l span { display: inline-flex; align-items: center; gap: 6px; } .gm-l i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
/* 📸 2026-11-25 vie de la classe */
.vc { max-width: 720px; margin: 0 auto; display: grid; gap: 14px; }
.vc-new textarea { width: 100%; font: inherit; border: 1.5px solid #cbd5e1; border-radius: 12px; padding: 10px 12px; background: #f8fafc; resize: vertical; } .vc-new textarea:focus { outline: none; border-color: #4A86D8; background: #fff; }
.vc-act { display: flex; gap: 10px; margin-top: 10px; } .vc-act .btn { flex: 1; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; } .vc-ph input { display: none !important; } .vc-ph { background: #EDF3FC; border: 1.5px solid #4A86D8; color: #1f5fbf; cursor: pointer; }
.vc-pv { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .vc-pv div { position: relative; width: 76px; height: 76px; } .vc-pv img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; } .vc-pv button { position: absolute; top: -6px; inset-inline-end: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #1c2a3f; color: #fff; font-size: 12px; cursor: pointer; line-height: 1; }
.vc-msg { color: #64748b; font-size: 11pt; margin: 8px 0 0; } .vc-msg .ar { display: block; } .vc-msg.err { color: #9a3412; font-weight: 600; }
.vc-p header { display: flex; align-items: center; gap: 10px; } .vc-p header div { flex: 1; min-width: 0; } .vc-p header b { display: block; } .vc-p header small { color: #64748b; }
.vc-av { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: #4A86D8; color: #fff; display: grid; place-items: center; font-weight: 700; }
.vc-t { margin: 10px 0 0; white-space: normal; line-height: 1.55; }
.vc-g { display: grid; gap: 4px; margin-top: 10px; border-radius: 12px; overflow: hidden; } .vc-g.n1 { grid-template-columns: 1fr; } .vc-g.n2, .vc-g.n4 { grid-template-columns: 1fr 1fr; } .vc-g.n3 { grid-template-columns: 1fr 1fr 1fr; }
.vc-i { display: block; aspect-ratio: 1 / 1; background: #e8eef7; } .vc-g.n1 .vc-i { aspect-ratio: 4 / 3; } .vc-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc-p footer { margin-top: 10px; display: flex; align-items: center; gap: 12px; color: #64748b; }
.vc-j { font: inherit; font-weight: 700; border: 1.5px solid #cbd5e1; background: #fff; color: #475569; border-radius: 999px; padding: 6px 16px; cursor: pointer; } .vc-j.on { background: #fde7ef; border-color: #d6457f; color: #b0245f; }
.vc-zoom { position: fixed; inset: 0; z-index: 9999; background: rgba(10,18,32,.92); display: grid; place-items: center; } .vc-zoom[hidden] { display: none; } .vc-zoom img { max-width: 96vw; max-height: 92vh; border-radius: 8px; } .vc-zoom button { position: absolute; top: 14px; inset-inline-end: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; font-size: 18px; cursor: pointer; }
/* ⭐ 2026-11-25 bravos */
.bv { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; } .bv-aide { margin: 0 0 10px; color: #475569; } .bv-aide .ar { display: block; }
.bv-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.bv-e { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border: 2px solid #c9d6ea; border-radius: 16px; background: #fff; cursor: pointer; color: #1c2a3f; min-height: 128px; }
.bv-e:active { border-color: #4A86D8; background: #EDF3FC; } .bv-e b { font-size: 10pt !important; line-height: 1.15; max-width: 100%; overflow-wrap: break-word; } .bv-e small { font-size: 8.5pt; color: #64748b; overflow-wrap: anywhere; } .bv-e em { font-style: normal; font-weight: 700; color: #8a6400; background: #fff4cf; border-radius: 999px; padding: 1px 10px; margin-top: 3px; }
.bv-e.tous { background: #EDF3FC; border-color: #4A86D8; } .bv-e.tous .bv-ph { font-size: 30px; height: 54px; display: grid; place-items: center; } .bv-ph { display: block; height: 54px; }
.bv-e em.pop { animation: bvpop .5s ease; } @keyframes bvpop { 40% { transform: scale(1.45); } }
.bv-sh { position: fixed; inset: 0; z-index: 9999; background: rgba(10,18,32,.55); display: flex; align-items: flex-end; justify-content: center; } .bv-sh[hidden] { display: none; }
.bv-bx { width: 100%; max-width: 560px; background: #fff; border-radius: 20px 20px 0 0; padding: 16px 14px 18px; } .bv-bx h3 { margin: 0 0 12px; text-align: center; font-size: 14pt; }
.bv-ch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .bv-ch button { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border: 2px solid #c9d6ea; border-radius: 16px; background: #fff; cursor: pointer; color: #1c2a3f; }
.bv-ch button:active { border-color: #1f9d55; background: #e9f8ef; } .bv-ch i { font-style: normal; font-size: 26px; line-height: 1; } .bv-ch b { font-size: 10pt !important; line-height: 1.2; max-width: 100%; overflow-wrap: break-word; } .bv-ch b .ar { display: block; font-weight: 500; color: #3d6fc0; }
.bv-x { width: 100%; margin-top: 12px; min-height: 44px; }
.bv-ok { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 10000; background: #1f9d55; color: #fff; font-weight: 800; font-size: 26px; padding: 16px 28px; border-radius: 18px; box-shadow: 0 8px 30px rgba(0,0,0,.25); } .bv-ok[hidden] { display: none; }
.bv-tot { text-align: center; } .bv-big { font-size: 26pt; line-height: 1.1; } .bv-tot p { margin: 2px 0 0; color: #475569; }
.bv-comp { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .bv-comp div { display: flex; align-items: center; gap: 8px; border: 1.5px solid #e3e9f2; border-radius: 14px; padding: 8px 10px; } .bv-comp div.z { opacity: .45; }
.bv-comp i { font-style: normal; font-size: 22px; } .bv-comp b { flex: 1; font-size: 10pt !important; line-height: 1.2; min-width: 0; overflow-wrap: break-word; } .bv-comp b .ar { display: block; font-weight: 500; color: #3d6fc0; } .bv-comp strong { font-size: 14pt; color: #8a6400; }
.bv-l { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #eef2f7; } .bv-l:first-of-type { border-top: 0; } .bv-l > i { font-style: normal; font-size: 22px; } .bv-l > div { flex: 1; min-width: 0; } .bv-l b { display: block; } .bv-l small { color: #64748b; }
/* 🧰 2026-11-25 outils de classe */
.ot { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.ot-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .ot-tabs button { font: inherit; font-weight: 700; padding: 10px 4px; border: 2px solid #c9d6ea; border-radius: 14px; background: #fff; color: #1c2a3f; cursor: pointer; } .ot-tabs button.on { background: #4A86D8; border-color: #4A86D8; color: #fff; } .ot-tabs .ar { display: block; font-weight: 500; }
.ot-p { text-align: center; } .ot-go { min-height: 50px; min-width: 200px; font-size: 13pt !important; }
.ot-nom { margin: 14px 0; padding: 26px 10px; border-radius: 18px; background: #EDF3FC; font-weight: 800; font-size: 24pt !important; line-height: 1.2; color: #1c2a3f; overflow-wrap: anywhere; } .ot-nom.ok { background: #dcf3e5; color: #116b38; }
.ot-info { margin: 10px 0 0; color: #64748b; }
.ot-nb { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 14px; } .ot-nb span { width: 100%; color: #475569; } .ot-nb span .ar { display: block; }
.ot-nb button { font: inherit; font-weight: 700; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #c9d6ea; background: #fff; cursor: pointer; } .ot-nb button.on { background: #4A86D8; border-color: #4A86D8; color: #fff; }
.ot-gr { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; text-align: start; } .ot-gr div { border: 2px solid #c9d6ea; border-radius: 14px; padding: 10px 12px; background: #fff; } .ot-gr b { display: block; color: #1f5fbf; margin-bottom: 4px; } .ot-gr span { display: block; overflow-wrap: anywhere; } .ot-gr div { min-width: 0; }
.ot-tps { margin: 6px 0 16px; font-weight: 800; font-size: 60pt !important; line-height: 1.1; font-variant-numeric: tabular-nums; color: #1c2a3f; } .ot-tps.bientot { color: #1e4fa3; } .ot-tps.fin { color: #116b38; }
.ot-2 { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; } .ot-2 .ot-go { min-width: 150px; flex: 1; }
/* 📁 2026-11-25 dossier de l'élève (portfolio) */
.vc-pour { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 600; } .vc-pour select { flex: 1; min-width: 0; font: inherit; padding: 9px 10px; border: 1.5px solid #cbd5e1; border-radius: 12px; background: #f8fafc; }
.vc-f { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .vc-f a { text-align: center; text-decoration: none; font-weight: 700; padding: 10px 6px; border: 2px solid #c9d6ea; border-radius: 14px; background: #fff; color: #1c2a3f; } .vc-f a.on { background: #4A86D8; border-color: #4A86D8; color: #fff; } .vc-f .ar { display: block; font-weight: 500; }
.vc-dos { margin: 10px 0 0; display: block; background: #fff4cf; color: #6b4e00; border-radius: 12px; padding: 6px 12px; font-weight: 600; font-size: 10.5pt; } .vc-dos .ar { margin-inline-start: 6px; }
/* 🌐 2026-11-25 traduire */
.trad-b { display: inline-block; margin: 4px 0 0; font: inherit; font-size: 10pt !important; font-weight: 600; color: #1f5fbf; background: #EDF3FC; border: 1px solid #c9d6ea; border-radius: 999px; padding: 3px 12px; cursor: pointer; } .trad-b:disabled { opacity: .5; }
.trad-r { margin: 6px 0 0; padding: 8px 12px; border-inline-start: 4px solid #4A86D8; background: #f4f7fc; border-radius: 8px; white-space: pre-wrap; line-height: 1.55; } .trad-r.err { border-color: #c2410c; color: #7c2d12; } .trad-r[hidden] { display: none; }
/* 📊 2026-11-25 rapport par matière */
.rm-per { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; padding: 10px 12px; background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(15,23,42,.08); } .rm-per label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; } .rm-per label.vide { color: #94a3b8; font-weight: 400; } .rm-per input { width: 20px; height: 20px; accent-color: #4A86D8; }
.rm-aide { margin: 0 0 10px; color: #475569; } .rm-aide .ar { display: block; }
.rm-t td, .rm-t th { vertical-align: middle; } .rm-m { display: block; text-decoration: none; color: inherit; border-inline-start: 5px solid var(--c, #4A86D8); padding-inline-start: 10px; } .rm-m b { display: block; color: #1f5fbf; } .rm-m small { color: #64748b; }
.rm-c b { font-size: 12.5pt; } .rm-c small { display: block; color: #64748b; font-size: 9.5pt; } .rm-c.bas { background: #fdecea; } .rm-c.bas b { color: #a3261a; } .rm-c i { font-style: normal; font-size: 10pt; } .rm-c i.dn { color: #a3261a; } .rm-c i.up { color: #116b38; }
.rm-t tr.sel td { background: #f1ebfb; } .rm-t tfoot th { background: #f1f5f9; } .rm-qui { margin: 0 0 6px; font-size: 13pt; }
@media print { .rm-c.bas { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* 📊 2026-11-25 rapport : onglets, grille de petits graphiques, impression */
.rm-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; } .rm-tabs a { text-align: center; text-decoration: none; font-weight: 700; padding: 10px 6px; border: 2px solid #c9d6ea; border-radius: 14px; background: #fff; color: #1c2a3f; } .rm-tabs a.on { background: #4A86D8; border-color: #4A86D8; color: #fff; } .rm-tabs .ar { display: block; font-weight: 500; }
.rm-h3 { margin: 12px 0 4px; font-size: 12.5pt; color: #1c2a3f; } .rm-h3 .ar { margin-inline-start: 8px; font-weight: 500; color: #3d6fc0; }
.rm-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px 18px; } .rm-mini > div { min-width: 0; border: 1.5px solid #e3e9f2; border-radius: 14px; padding: 10px 12px; background: #fff; } .rm-mini h3 { margin: 0 0 4px; font-size: 12pt; } .rm-mini h3 a { color: #1f5fbf; text-decoration: none; } .rm-mini h3 .ar { margin-inline-start: 8px; font-weight: 500; color: #3d6fc0; }
@media print {
  .rm-tabs, .rm-per { display: none !important; }
  .card.rm { box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 0 0 6mm !important; break-inside: auto; }
  .rm .gm, .rm-mini > div, .rm-t tr { break-inside: avoid; page-break-inside: avoid; } .rm h2 { break-after: avoid; page-break-after: avoid; }
  .rm-mini { grid-template-columns: 1fr 1fr !important; gap: 4mm !important; } .rm-mini > div { border: 0.3mm solid #b6c2d2 !important; }
  .rm svg, .rm-c.bas, .rm-t tfoot th, .rm-t tr.sel td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rm a { color: inherit !important; text-decoration: none !important; }
}
.rm-pf { display: block; font-size: 10pt !important; font-weight: 700; } .rm .ok { color: #116b38; } .rm .ko { color: #a3261a; } .rm-leg { margin: 0 0 8px; font-size: 11pt; color: #475569; } .rm-leg .ar { margin-inline-start: 4px; }
.rm-t tr.rm-gen td { background: #eef4fd; border-bottom: 2px solid #9db9e6; } .rm-t tr.rm-gen td.bas { background: #fdecea; }
@media print { .rm-t tr.rm-gen td { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* 📄 2026-11-25 rapport : toute la classe sur une page */
.rm-t2 { grid-template-columns: 1fr 1fr !important; }
.rm-tp th, .rm-tp td { padding: 4px 5px !important; font-size: 10.5pt !important; } .rm-tp thead th small { display: block; font-weight: 400; color: #64748b; font-size: 8.5pt !important; } .rm-tp thead th a { color: #1f5fbf; text-decoration: none; }
.rm-tp td.rm-n { white-space: nowrap; font-weight: 600; } .rm-tp td.rm-n .ar { display: none; } .rm-tp td.rm-g { background: #eef4fd; } .rm-tp td.rm-g.bas { background: #fdecea; } .rm-tp td.bas { color: #a3261a; font-weight: 700; }
.rm-cles { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 8px !important; font-size: 10pt; } .rm-pg-g { max-width: 1000px; } .rm-pg-g .rm-h3 { margin: 6px 0 0; font-size: 11pt; }
@media print {
  .rm-page { break-after: page; page-break-after: always; } .rm-page:last-of-type { break-after: auto; page-break-after: auto; }
  .rm-tp th, .rm-tp td { padding: .75mm 1.4mm !important; font-size: 9pt !important; line-height: 1.15 !important; } .rm-tp tfoot th, .rm-tp tfoot th * { display: revert; } .rm-tp tfoot th .ar, .rm-tp tfoot th span, .rm-tp tfoot th i, .rm-tp tfoot th b { display: inline !important; white-space: nowrap; } .rm-tp tfoot th .ar::before { content: '\00a0·\00a0'; } .rm-tp td.rm-g, .rm-tp td.bas { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rm-page .scroll { overflow: visible !important; } .rm-pg-g { max-width: none; break-inside: avoid; page-break-inside: avoid; } .rm-pg-g .rm-h3 { font-size: 8.5pt !important; margin: 1mm 0 0 !important; } .rm-pg-g .gm { margin: 0 !important; } .rm-page h2 { margin: 0 0 1mm !important; } .rm-page .rm-leg, .rm-page .rm-cles { margin: 0 0 1mm !important; font-size: 8pt !important; }
}
.trad-s { margin: 6px 0 2px; font-size: 11pt !important; padding: 6px 14px; } .trad-s[hidden] { display: none; } .trad-sr > div { margin-bottom: 6px; } .trad-sr[hidden] { display: none; }
/* 🧭 2026-11-25 suivi et conseils */
.sv-niv { display: inline-block; font-weight: 700; font-size: 10.5pt; line-height: 1.25; padding: 2px 10px; border-radius: 999px; white-space: nowrap; text-decoration: none; } .sv-niv .ar { margin-inline-start: 5px; font-weight: 600; }
.sv-exc { background: #dcf3e6; color: #0f5a33; } .sv-bien { background: #e3edfb; color: #1b4f9c; } .sv-moy { background: #eef1f5; color: #334155; } .sv-faible { background: #fdecea; color: #a3261a; } .sv-danger { background: #a3261a; color: #fff; }
.sv-td { font-weight: 700; font-size: 10.5pt; white-space: nowrap; } .sv-td .ar { margin-inline-start: 4px; font-weight: 600; } .sv-hausse { color: #116b38; } .sv-baisse { color: #a3261a; } .sv-stable { color: #64748b; }
.sv-tabs a { padding: 9px 4px; } .sv-tabs .ar { display: block; font-weight: 500; }
.sv-items { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 0 6px; } .sv-items a { flex: 0 0 auto; display: flex; flex-direction: column; gap: 1px; text-decoration: none; padding: 7px 12px; border: 2px solid #c9d6ea; border-radius: 12px; background: #fff; color: #1c2a3f; } .sv-items a.on { background: #4A86D8; border-color: #4A86D8; color: #fff; } .sv-items small { font-size: 9.5pt; color: #64748b; } .sv-items a.on small { color: #e6effc; }
.sv-r > h2 { display: flex; flex-direction: column; gap: 2px; border-inline-start: 6px solid var(--c, #1c2a3f); padding-inline-start: 10px; } .sv-r > h2 small { font-weight: 500; color: #64748b; font-size: 10.5pt; }
.sv-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 6px; } .sv-note { white-space: nowrap; } .sv-tete .sv-note b { font-size: 22pt !important; color: #1c2a3f; line-height: 1; } .sv-note small { color: #64748b; }
.sv-constat { margin: 4px 0 10px; font-weight: 600; color: #1c2a3f; } .sv-constat .ar { display: block; font-weight: 600; }
.sv-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; margin: 8px 0; }
.sv-carte { border: 1.5px solid #e3e9f2; border-radius: 14px; padding: 10px 12px; background: #fff; border-top: 5px solid #94a3b8; min-width: 0; } .sv-carte h3 { margin: 0 0 6px; font-size: 11.5pt; } .sv-carte h3 i { font-style: normal; } .sv-carte h3 .ar { display: block; font-weight: 600; color: #3d6fc0; }
.sv-carte ul { margin: 0; padding-inline-start: 18px; } .sv-carte li { margin: 0 0 6px; line-height: 1.35; } .sv-carte li .ar { display: block; color: #475569; }
.sv-c-eleve { border-top-color: #7a52c7; } .sv-c-parent { border-top-color: #1f9d55; } .sv-c-prof { border-top-color: #2f6fd6; } .sv-c-direction { border-top-color: #1c2a3f; }
.sv-stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 10px 0; } .sv-stats .ok { color: #116b38; } .sv-stats .ko { color: #a3261a; }
.sv-rep { display: flex; gap: 3px; margin: 8px 0 4px; } .sv-rep > div { min-width: 46px; border-radius: 10px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; } .sv-rep b { font-size: 14pt; line-height: 1.1; } .sv-rep span { font-size: 9pt; line-height: 1.15; } .sv-rep .ar { display: block; }
.sv-env h2 { margin-bottom: 4px; } .sv-dests { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.sv-dests label { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 8px; border: 2px solid #c9d6ea; border-radius: 14px; padding: 10px; cursor: pointer; background: #fff; } .sv-dests input { width: 20px; height: 20px; } .sv-dests i { font-style: normal; font-size: 20px; } .sv-dests b .ar { display: block; font-weight: 600; color: #3d6fc0; }
.sv-dests label.fait { background: #eef8f1; border-color: #9fd3b3; cursor: default; } .sv-dests label.bloque { opacity: .5; cursor: not-allowed; } .sv-dests small { grid-column: 1 / -1; color: #116b38; font-weight: 600; }
.sv-avert { background: #fff4cf; border-radius: 10px; padding: 8px 12px; color: #6b4e00; } .sv-avert .ar { display: block; } .sv-ret { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sv-env-i { white-space: nowrap; } .sv-env-i i { font-style: normal; font-size: 13pt; margin: 0 1px; } .sv-n { color: #a3261a; }
.sv-t td { vertical-align: middle; } .sv-t .sv-note b { font-size: 12.5pt; }
.sv-etat { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; } .sv-etat a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: #1c2a3f; border: 1.5px solid #e3e9f2; border-inline-start: 5px solid var(--c, #1c2a3f); border-radius: 12px; padding: 8px 10px; background: #fff; } .sv-etat a > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sv-l { border-top: 1px solid #eef2f7; padding: 2px 0; } .sv-l > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 4px; cursor: pointer; list-style: none; } .sv-l > summary::-webkit-details-marker { display: none; } .sv-l > summary::before { content: '›'; font-weight: 800; color: #4A86D8; width: 10px; } .sv-l[open] > summary::before { content: '⌄'; }
.sv-l time { color: #64748b; min-width: 84px; } .sv-lm { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; border-inline-start: 4px solid var(--c, #1c2a3f); padding-inline-start: 8px; } .sv-lm small { color: #64748b; } .sv-l[open] { background: #f8fafc; border-radius: 12px; padding: 2px 10px 10px; }
.sv-suiv > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 7px 0; border-top: 1px solid #eef2f7; } .sv-suiv > div:first-child { border-top: 0; } .sv-suiv > div > a { flex: 0 0 230px; text-decoration: none; color: #1f5fbf; } .sv-suiv > div > span { display: flex; flex-wrap: wrap; gap: 5px; }
.sv-cl { margin-top: 12px; border-top: 2px dashed #e3e9f2; padding-top: 10px; } .sv-cl h3 { margin: 0 0 4px; }
.sv-leg { display: flex; flex-wrap: wrap; gap: 8px 18px; } .sv-bib details { border-top: 1px solid #eef2f7; padding: 6px 0; } .sv-bib summary { cursor: pointer; padding: 4px 0; } .sv-regles td.c input { width: 20px; height: 20px; }
.sv-fam { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; } .sv-gr { max-width: 560px; }
.sv-mini { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #eef2f7; text-decoration: none; color: inherit; } .sv-mini:first-of-type { border-top: 0; } .sv-mini time { color: #64748b; min-width: 78px; } .sv-mini > span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .sv-mini small { color: #64748b; }
@media (max-width: 700px) { .sv-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .sv-cartes { grid-template-columns: 1fr; } .sv-suiv > div > a { flex-basis: 100%; } }
@media print { .sv-items, .sv-tabs, .sv-env { display: none !important; } .sv-carte, .sv-l, .sv-rep, .sv-t tr { break-inside: avoid; page-break-inside: avoid; } .sv-niv, .sv-rep > div, .sv-carte { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .sv-cartes { grid-template-columns: 1fr 1fr; } }
/* 🧭 2026-11-25 suivi 2 : alerte + actions faites */
.sv-jaune { background: #fff4cf; color: #6b4e00; }
.sv-inds { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; } .sv-ind { border: 1.5px solid #cfe8d8; background: #f1faf4; border-radius: 12px; padding: 6px 12px; line-height: 1.3; } .sv-ind .ar { margin-inline-start: 4px; } .sv-ind.i1 { border-color: #f0dc9a; background: #fff9e3; } .sv-ind.i2 { border-color: #e9b4ad; background: #fdecea; color: #7a1c13; }
.sv-alerte { border-inline-start: 8px solid #1f9d55; } .sv-alerte.jaune { border-inline-start-color: #e0b400; } .sv-alerte.rouge { border-inline-start-color: #a3261a; }
.sv-carte li.fait > span { color: #64748b; } .sv-carte li > span { display: block; } .sv-fait { display: block; font-style: normal; font-weight: 700; color: #116b38; font-size: 10pt; margin-top: 2px; }
.sv-ok { font: inherit; font-size: 10pt; font-weight: 700; margin-top: 4px; padding: 4px 14px; white-space: nowrap; border-radius: 999px; border: 1.5px solid #1f9d55; background: #1f9d55; color: #fff; cursor: pointer; } .sv-ok.on { background: #fff; color: #64748b; border-color: #c9d2dc; font-weight: 500; } .sv-ok .ar { display: inline !important; margin-inline-start: 5px; color: inherit !important; }
.sv-apres { margin: 6px 0; padding: 6px 12px; border-radius: 10px; background: #eef4fd; font-weight: 600; } .sv-apres.ok { background: #e3f6ea; color: #0f5a33; } .sv-apres.ko { background: #fdecea; color: #7a1c13; } .sv-apres .ar { display: block; }
.sv-pt { margin: 2px 0 8px; color: #7a1c13; font-weight: 600; } .sv-pt .ar { margin-inline-start: 6px; }
.sv-al td { vertical-align: middle; } .sv-al .sv-ch { display: flex; flex-wrap: wrap; gap: 4px; } .sv-plan { white-space: nowrap; color: #116b38; font-weight: 700; }
@media print { .sv-ind, .sv-apres { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* 🧾 26/11/2026 ~11:45 (المدير: «شوف كيف طالعة البطاقة») — البطاقة المصغَّرة تملأ عرض الورقة (العرض ÷ نسبة التصغير)، على الشاشة بحجمها الطبيعي،
   والعلب السفلية تتوزّع بلا فراغ حين يُستغنى عن واحدة (الغياب أو الملاحظات). */
@media print { .bul:not(.rel):not(.mat) { width: auto !important; max-width: none !important; zoom: var(--bzp, 1) !important; margin-inline: 0 !important; page-break-inside: avoid; break-inside: avoid; } }
@media screen { .bul:not(.rel):not(.mat) { zoom: 1 !important; } }
.bul:not(.rel):not(.mat) .bul-b { display: flex; flex-wrap: wrap; } .bul:not(.rel):not(.mat) .bul-b .bx { flex: 1 1 calc(50% - 8px); }
.bul.sans-abs:not(.rel) .bul-b .o-conseil, .bul.sans-conseil:not(.rel) .bul-b .o-abs { flex-basis: 100%; }

/* 🧾 26/11 ~12:15 — كروم عند الطباعة من النافذة (Ctrl+P / Save as PDF) يرسم الصفحة أعرض بـ1,33 مرّة (A4 ≈ 1056px بدل 794px) فتطلع البطاقة قصيرة بنصف الورقة.
   حين تكون الصفحة عريضة هكذا نكبّر البطاقة بنفس النسبة ⇒ نفس الشكل تماماً بالحالتين (طباعة من النافذة، وتنزيل PDF من السيرفر). */
@media print and (min-width: 900px) { .bul:not(.rel):not(.mat) { zoom: calc(var(--bzp, 1) * 1.33) !important; } }

/* 🧾 26/11 ~12:25 ترويسة البطاقة = ترويسة ورقة العلامات المتّفق عليها، وبنفس حجمها على الورق (لا تُصغَّر مع جدول البطاقة) */
@media print { .bul:not(.rel):not(.mat) .bul-ent { zoom: calc(1 / var(--bzp, 1)) !important; } }
@media print and (min-width: 900px) { .bul:not(.rel):not(.mat) .bul-ent { zoom: calc(1 / (var(--bzp, 1) * 1.33)) !important; } }
.bul-ent { page-break-inside: avoid; }

/* 📋 26/11 ~12:50 (المدير: «بالطباعة دغري عالبرنتر عم بتكون عامودياً بنصف الصفحة، بدّي تعرّض الخطوط تبع الموادّ») — ورقة العلامات: كروم من النافذة يطبع أصغر بـ1,33 مرّة
   من النموذج المتّفق عليه؛ نعيدها لحجمها المتّفق (نفس ما يُنزَّل PDF). المحتوى لم يُمسّ. */
@media print and (min-width: 900px) { .bul.rel:not(.bul-ent) { zoom: calc(var(--rz, 1) * 1.33) !important; } }

/* 📋 26/11 أسطر ورقة العلامات أعلى عند الطباعة لتملأ الصفحة (--rs من releve_un) */
@media print { .bul.rel:not(.bul-ent) table.rk tbody tr, .bul.rel:not(.bul-ent) table.rk tfoot tr { height: var(--rs, auto); } }

/* 26/11: سطر الهاتف/الإيميل بمربّع الترويسة لا يلتفّ */
.bul.rel .rel-top .rt-co span { white-space: nowrap !important; } .bul.rel .rel-top .rt-ec { gap: 8px; }

/* 26/11: مربّع الترويسة يتّسع لمحتواه (سطر الهاتف كان يخرج من الإطار) */
.bul.rel .rel-top { grid-template-columns: minmax(44%, max-content) 1fr auto !important; gap: 22px !important; } .bul.rel .rel-top .rt-ec { padding-inline-end: 14px; }

/* 🧭 26/11/2026 ملفّ التلميذ/الصفّ عند الطباعة: كان 78 صفحة لتلميذ واحد (كل تقرير مفتوح بنصائحه الأربع) وصفحة أولى شبه فارغة.
   الآن: الترويسة + مستوى الإنذار + خطّة المتابعة + وضعه بكل مادّة، ثمّ **لائحة** التقارير سطراً سطراً (التاريخ · المادّة · التقييم · العلامة · المستوى) بلا تفاصيل. */
@media print {
    .card.sv, .card.sv-dos, main > .card { break-inside: auto !important; page-break-inside: auto !important; }
    details.sv-l > *:not(summary) { display: none !important; }
    details.sv-l, details.sv-l[open] { background: none !important; padding: 0 !important; border-radius: 0 !important; }
    details.sv-l > summary { padding: 3px 2px !important; } details.sv-l > summary::before { content: '' !important; }
    .sv-carte { padding: 6px 9px; } .sv-carte li { margin-bottom: 3px; }
    .sv-suiv, .sv-apres .btn, .sv-fb { display: none !important; }
}
@media print { .sv-lm { flex-direction: row !important; flex-wrap: wrap; align-items: baseline; gap: 0 10px; } .sv-lm .bi { display: inline-flex !important; flex-direction: row !important; gap: 6px; align-items: baseline; } .sv-l time { min-width: 70px; } .sv-niv .bi { display: inline-flex !important; flex-direction: row !important; gap: 5px; } }
