/**
 * Pharmacist Workspace content area — reuses the existing ERP Portal
 * sidebar/topbar (no fullBleed; unlike Driver, this mockup's own
 * sidebar was visually identical to the shell's real one, so
 * building a second one would be exactly the duplication §9.1 rules
 * out). Only the content region below is ported from the mockup.
 *
 * Column labels are the REAL OrderStatus values (pending/confirmed/
 * processing/out_for_delivery), not the mockup's aspirational
 * جديد/مراجعة الوصفة/تجهيز/جاهز للتسليم — those map onto Order
 * Workflow §3, which is frozen as a target but explicitly not
 * implemented until Inventory & Warehouse closes (§3's sequencing
 * rule). Building the mockup's literal columns here would fabricate
 * states that don't exist yet.
 */
.ph-workspace { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.ph-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ph-col { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 10px; min-height: 300px; }
.ph-col-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.ph-col-head strong { font-size: 12.5px; }
.ph-col-count { background: var(--mint); color: var(--primary-dark); font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 20px; }
.ph-card { background: var(--mint-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-bottom: 8px; cursor: pointer; }
.ph-card:hover, .ph-card.selected { border-color: var(--primary); background: var(--mint); }
.ph-card .top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.ph-card .id { font-weight: 800; font-size: 12px; }
.ph-card .time { font-size: 10.5px; color: var(--muted); }
.ph-card .name { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.ph-tag { font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 20px; background: #FEE2E2; color: #991B1B; }

.ph-panel { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.ph-empty { color: var(--muted); text-align: center; padding: 30px 10px; font-size: 12.5px; }

.ph-cust-card { background: var(--mint-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.ph-cust-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ph-cust-head .av { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.ph-cust-head strong { display: block; font-size: 13px; }
.ph-cust-head span { font-size: 11px; color: var(--muted); }
.ph-cust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.ph-cust-stat { background: #fff; border-radius: 8px; padding: 6px 8px; }
.ph-cust-stat strong { display: block; font-size: 12px; color: var(--dark-green); }
.ph-cust-stat span { font-size: 9.5px; color: var(--muted); }
.ph-cust-touch { display: flex; justify-content: space-between; font-size: 10.5px; padding: 4px 2px; border-top: 1px dashed var(--border); }
.ph-cust-unavailable { font-size: 10px; color: var(--muted); font-style: italic; }

/* ---------- Dashboard (added — see WORKSPACE_TRACKER.md Pharmacist entry) ---------- */
.ph-cmdbar { display: flex; align-items: center; gap: 10px; background: var(--mint-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px; margin-bottom: 18px; }
.ph-cmdbar input { border: 0; outline: 0; flex: 1; background: transparent; font-family: inherit; font-size: 13px; }
.ph-need-attention { background: linear-gradient(135deg, var(--dark-green), var(--primary-dark)); color: #fff; border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; }
.ph-na-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.ph-na-item { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px; text-align: center; }
.ph-na-item strong { font-size: 20px; display: block; }
.ph-na-item span { font-size: 10px; opacity: .85; }
.ph-dash-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.ph-ai-card { background: linear-gradient(135deg, #F3E8FF, #EAF9EF); border: 1px solid #E9D5FF; }
.ph-chat-msg { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; }
.ph-chat-av { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.ph-qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ph-qa-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; background: var(--mint-2); border: 1px solid var(--border); font-size: 10.5px; font-weight: 700; color: var(--dark-green); text-decoration: none; }
.ph-api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-api-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--mint-2); }
.ph-api-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ph-api-dot.on { background: var(--secondary); }
.ph-api-dot.off { background: #CBD5E1; }
