/* إنصاف — الثيم الوطني المؤقت (نوفمبر). بصري فقط، لا يغيّر الأزرار أو الجداول. */
:root{--om-red:#c8102e;--om-green:#008751;--om-white:#ffffff}

/* شريط العلم أعلى الصفحة: أبيض / أحمر / أخضر */
body::before{
  content:"";position:fixed;top:0;left:0;right:0;height:9px;z-index:2147483000;pointer-events:none;
  background:linear-gradient(to bottom,var(--om-white) 0 33.33%,var(--om-red) 33.33% 66.66%,var(--om-green) 66.66% 100%);
  box-shadow:0 1px 0 rgba(0,0,0,.08);
}
/* الشريط الأحمر الجانبي (جهة السارية) */
body::after{
  content:"";position:fixed;top:0;bottom:0;right:0;width:4px;z-index:2147483000;pointer-events:none;
  background:var(--om-red);opacity:.85;
}

/* لمسة على اسم إنصاف في شريط التنقل: النقطة بألوان العلم */
.ensaf-global-nav-brand::before{
  background:var(--om-red)!important;
  box-shadow:0 0 0 3px #fff,0 0 0 5px var(--om-green)!important;
}

/* شارة التهنئة */
.ensaf-national-badge{
  position:fixed;bottom:14px;left:14px;z-index:2147483001;
  display:flex;align-items:center;gap:8px;
  background:#fff;color:#3a3a3a;border-radius:999px;padding:6px 8px 6px 14px;
  font:600 .85rem/1.3 inherit;font-family:inherit;direction:rtl;
  box-shadow:0 4px 14px rgba(0,0,0,.14);border:1px solid #eee;
  }
.ensaf-national-badge .om-flag{
  width:22px;height:15px;border-radius:2px;flex:0 0 auto;
  background:
    linear-gradient(var(--om-red),var(--om-red)) left/32% 100% no-repeat,
    linear-gradient(to bottom,var(--om-white) 0 33.33%,var(--om-red) 33.33% 66.66%,var(--om-green) 66.66% 100%);
  box-shadow:0 0 0 1px rgba(0,0,0,.12);
}
.ensaf-national-badge button{
  border:0;background:#f3f3f3;color:#777;border-radius:50%;width:24px;height:24px;
  line-height:24px;padding:0;font-size:14px;cursor:pointer;
}
.ensaf-national-badge button:hover{background:#e8e8e8}

/* لوحة التحكم فقط: صف أعلام صغيرة بألوان العلم فوق خلفية اللوحة (شفاف، يضيفه js/ensaf-national.js) */
body.ensaf-has-bunting{margin-top:calc(3rem + 6px)!important}
body.ensaf-has-bunting::before{display:none}
body.ensaf-has-bunting .ensaf-clock-wrap{top:50px}
.ensaf-night{
  position:absolute;top:0;left:0;right:0;height:40px;z-index:5;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='36' viewBox='0 0 96 36'%3E%3Cpath d='M0 3H96' stroke='%23a99f8a' stroke-width='1.2'/%3E%3Cg stroke='%23000' stroke-opacity='.22' stroke-width='.7'%3E%3Cpath d='M4 3h24L16 31z' fill='%23ffffff'/%3E%3Cpath d='M36 3h24L48 31z' fill='%23008751'/%3E%3Cpath d='M68 3h24L80 31z' fill='%23c8102e'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 2px/96px 36px;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.12));
}
@media (max-width:576px){
  .ensaf-night{height:32px;background-size:72px 27px}
}
@media print{.ensaf-night{display:none!important}body.ensaf-has-bunting{margin-top:0!important}}

@media print{
  body::before,body::after,.ensaf-national-badge{display:none!important}
}
@media (max-width:576px){
  .ensaf-national-badge{bottom:10px;left:10px;font-size:.78rem}
}
