/* wheel-picker.css — محدد التاريخ بكرات التمرير الرأسية (P3-8/9، المالك 2026-10-07): نفس الشكل على iPhone وAndroid.
   ورقة سفلية بثلاث بكرات scroll-snap (يوم/شهر/سنة) وشريط تمييز بالمنتصف. الألوان من متغيرات cb.css مع بدائل. */
body.cbw-open { overflow: hidden; }
.cbw-ov { position: fixed; inset: 0; z-index: 95; background: rgb(15 20 30 / 45%); display: flex; align-items: flex-end; justify-content: center; animation: cbwFade .18s; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-y; }
.cbw-card { width: 100%; max-width: 560px; background: var(--cb-bg, #F2F3F5); color: var(--cb-text, #1b1f27); border-radius: 26px 26px 0 0; padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); animation: cbwRise .22s ease-out; outline: none; }
.cbw-grip { display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--cb-faint, #c4c8cf); margin: 0 auto 10px; }
.cbw-title { margin: 0 0 8px; text-align: center; font-size: 1.15rem; font-weight: 700; }
.cbw-sum { margin: 0 0 8px; text-align: center; color: var(--cb-muted, #6b7280); font-size: .95rem; min-height: 1.4em; font-variant-numeric: tabular-nums; }
.cbw-wheels { position: relative; display: flex; flex-direction: row; gap: 6px; direction: rtl; height: 200px; overflow: hidden; border-radius: 16px; background: var(--cb-surface, var(--cb-card, #fff)); }
.cbw-band { position: absolute; inset-inline: 6px; top: 80px; height: 40px; border-radius: 12px; background: rgb(68 92 128 / 13%); border: 1px solid rgb(68 92 128 / 22%); pointer-events: none; }
.cbw-mask { position: absolute; inset-inline: 0; height: 80px; pointer-events: none; }
.cbw-mask.top { top: 0; background: linear-gradient(to bottom, var(--cb-surface, var(--cb-card, #fff)) 8%, transparent); }
.cbw-mask.bot { bottom: 0; background: linear-gradient(to top, var(--cb-surface, var(--cb-card, #fff)) 8%, transparent); }
.cbw-col { flex: 1 1 0; min-width: 0; height: 200px; overflow-y: auto; overflow-x: hidden; padding: 80px 0; box-sizing: border-box; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: none; outline: none; position: relative; }
.cbw-col::-webkit-scrollbar { display: none; }
.cbw-col:focus-visible { box-shadow: inset 0 0 0 2px var(--cb-tile, #445C80); border-radius: 12px; }
.cbw-col.cbw-yr { flex-grow: 1.2; }
.cbw-it { height: 40px; line-height: 40px; box-sizing: border-box; text-align: center; scroll-snap-align: center; font-size: 1.15rem; color: var(--cb-muted, #6b7280); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; font-variant-numeric: tabular-nums; cursor: pointer; transition: color .12s; }
.cbw-it.on { color: var(--cb-text, #1b1f27); font-weight: 700; }
.cbw-it.off { opacity: .28; }
.cbw-actions { display: flex; gap: 10px; margin-top: 14px; }
.cbw-actions .cb-btn { flex: 1; }
.cbw-clear { display: block; margin: 10px auto 0; background: none; border: none; color: var(--cb-red, #AD5650); font-size: .95rem; padding: 6px 10px; }
/* زر الحقل (يُستعمل بدل input[type=date]) */
.cbw-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--cb-line, #dfe2e7); background: var(--cb-input, #fff); border-radius: var(--cb-r-btn, 14px); text-align: start; font-size: max(16px, 1rem); color: var(--cb-text, inherit); }
.cbw-btn .ph { color: var(--cb-muted, #6b7280); }
.cbw-btn svg { flex: none; color: var(--cb-muted, #6b7280); }
.cbw-btn .cbw-v { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.cbw-btn:focus-visible { border-color: var(--cb-tile, #445C80); box-shadow: 0 0 0 3px rgb(68 92 128 / 22%); }
@keyframes cbwFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cbwRise { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cbw-ov, .cbw-card { animation: none !important; } .cbw-it { transition: none; } }
