/* الصيدليات المناوبة — العرض المشترك (on-duty.js) للصفحة العامة /on-duty/{slug} وقسم المناوبة /app/on-duty.
   كل الأصناف تحت .od حتى لا تتداخل مع أنماط التطبيق. */
.od{
  --od-primary:#1e7d5c; --od-primary-dark:#145a41; --od-soft:#eaf6f0; --od-ink:#12241d; --od-muted:#5b6b64;
  --od-card:#fff; --od-border:#dfe9e3; --od-amber:#b26a00; --od-amber-soft:#fff4dc; --od-red:#c62828; --od-red-soft:#fdecea;
  --od-blue:#1565c0; --od-blue-soft:#e8f1fc;
  color:var(--od-ink); font-family:'Vazirmatn', sans-serif; line-height:1.6;
}
.od *{ box-sizing:border-box; }
.od button{ font-family:inherit; }
.od-head{ margin-bottom:12px; }
.od-title{ font-size:1.35rem; font-weight:800; margin:0; }
.od-sub{ color:var(--od-muted); font-size:.92rem; }
.od-note{ display:inline-block; margin-top:6px; background:var(--od-soft); color:var(--od-primary-dark); border-radius:8px; padding:3px 10px; font-size:.85rem; }

.od-status{ border-radius:12px; padding:12px 14px; margin:10px 0; font-weight:700; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.od-status.on{ background:var(--od-soft); color:var(--od-primary-dark); }
.od-status.late{ background:var(--od-amber-soft); color:var(--od-amber); }
.od-status.before{ background:var(--od-blue-soft); color:var(--od-blue); }
.od-status.none{ background:#f3f3f3; color:var(--od-muted); }
.od-status .od-dot{ width:10px; height:10px; border-radius:50%; background:currentColor; flex:none; }
.od-status.on .od-dot{ animation:od-pulse 1.6s infinite; }
@keyframes od-pulse{ 0%{ box-shadow:0 0 0 0 rgba(30,125,92,.5);} 100%{ box-shadow:0 0 0 10px rgba(30,125,92,0);} }
.od-status small{ font-weight:500; }
.od-mine{ background:#fff8e1; border:1px solid #ffe08a; color:#7a5800; border-radius:12px; padding:10px 14px; margin:10px 0; font-weight:700; }

.od-tools{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:10px 0; }
.od-search{ flex:1 1 220px; min-width:0; padding:10px 14px; border:1px solid var(--od-border); border-radius:99px; font-size:.95rem; font-family:inherit; background:#fff; }
.od-select{ padding:9px 12px; border:1px solid var(--od-border); border-radius:99px; font-family:inherit; font-size:.9rem; background:#fff; }
.od-chips{ display:flex; gap:6px; overflow-x:auto; padding:2px 0 8px; scrollbar-width:thin; }
.od-chip{ flex:none; border:1px solid var(--od-border); background:#fff; color:var(--od-ink); border-radius:99px; padding:6px 14px; font-size:.88rem; cursor:pointer; white-space:nowrap; }
.od-hint{ color:var(--od-muted); font-size:.82rem; margin:-4px 0 6px; }
.od-chip.active{ background:var(--od-primary); border-color:var(--od-primary); color:#fff; font-weight:700; }

.od-actions-bar{ display:flex; gap:8px; flex-wrap:wrap; margin:6px 0 14px; }
.od-btn{ display:inline-flex; align-items:center; gap:6px; border:1px solid var(--od-border); background:#fff; color:var(--od-ink); border-radius:99px; padding:8px 14px; font-size:.88rem; font-weight:600; cursor:pointer; text-decoration:none; }
.od-btn:hover{ border-color:var(--od-primary); color:var(--od-primary-dark); }
.od-btn.primary{ background:var(--od-primary); border-color:var(--od-primary); color:#fff; }
.od-btn.primary:hover{ background:var(--od-primary-dark); color:#fff; }
.od-btn.wa{ background:#25d366; border-color:#25d366; color:#fff; }
.od-btn:disabled{ opacity:.55; cursor:wait; }

.od-group{ margin:16px 0 6px; font-weight:800; font-size:1rem; color:var(--od-primary-dark); display:flex; justify-content:space-between; gap:8px; }
.od-group small{ color:var(--od-muted); font-weight:500; white-space:nowrap; }
.od-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:10px; }
.od-card{ background:var(--od-card); border:1px solid var(--od-border); border-radius:14px; padding:12px 14px; display:flex; flex-direction:column; gap:6px; min-width:0; }
.od-card.pinned{ border-color:var(--od-primary); background:var(--od-soft); }
.od-card.mine{ border:2px solid #f5b400; background:#fffaf0; }
.od-card.closed{ opacity:.55; }
.od-card-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.od-name{ font-weight:800; font-size:1rem; overflow-wrap:anywhere; }
.od-addr{ color:var(--od-muted); font-size:.9rem; overflow-wrap:anywhere; }
.od-badge{ flex:none; border-radius:99px; padding:2px 10px; font-size:.78rem; font-weight:700; background:var(--od-soft); color:var(--od-primary-dark); white-space:nowrap; }
.od-badge.until_morning{ background:#ede7f6; color:#4527a0; }
.od-badge.h24{ background:var(--od-primary); color:#fff; }
.od-card-links{ display:flex; gap:8px; flex-wrap:wrap; margin-top:2px; }
.od-card-links a{ font-size:.85rem; font-weight:700; color:var(--od-primary); text-decoration:none; border:1px solid var(--od-border); border-radius:99px; padding:4px 12px; }
.od-card-links a:hover{ background:var(--od-soft); }
.od-empty{ text-align:center; color:var(--od-muted); padding:30px 10px; }
.od-error{ text-align:center; color:var(--od-red); background:var(--od-red-soft); border-radius:12px; padding:14px; }
.od-more{ text-align:center; margin:10px 0; }
.od-foot{ color:var(--od-muted); font-size:.8rem; text-align:center; margin:22px 0 6px; }

/* نافذة: النشرة الرسمية / ملصق الباب */
.od-modal{ position:fixed; inset:0; z-index:10000; background:rgba(0,0,0,.72); display:flex; align-items:flex-start; justify-content:center; overflow:auto; padding:20px 12px; }
.od-modal-box{ background:#fff; border-radius:14px; max-width:820px; width:100%; padding:14px; position:relative; }
.od-modal-box h3{ margin:0 0 10px; font-size:1.05rem; }
.od-modal-close{ position:absolute; top:8px; left:8px; border:none; background:#f1f1f1; border-radius:50%; width:34px; height:34px; font-size:1.1rem; cursor:pointer; }
.od-modal img{ width:100%; height:auto; border-radius:8px; border:1px solid var(--od-border); margin-bottom:10px; display:block; }
.od-field{ display:flex; flex-direction:column; gap:4px; margin-bottom:10px; font-size:.9rem; }
.od-toast{ position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:#222; color:#fff; padding:10px 18px; border-radius:99px; font-size:.9rem; z-index:10001; max-width:90vw; text-align:center; }

@media (max-width:600px){
  .od-title{ font-size:1.15rem; }
  .od-grid{ grid-template-columns:1fr; }
}
