/* Phase 2 area F6 styles — owned by agent F6.
   Activities feed, Alerts triage queue, alert drawer comments, email compose, fallback toasts. */

/* ── shared bits ─────────────────────────────────────────────────────────── */
.f6-av { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 10px; font-weight: 700; flex-shrink: 0; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(16,24,40,.08); }
.f6-av.sm { width: 22px; height: 22px; font-size: 9.5px; }
.f6-av.lg { width: 34px; height: 34px; font-size: 12px; }
.f6-av.none { background: var(--surface-2); color: var(--text-3); box-shadow: none; border-color: var(--border); }
.f6-st { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; letter-spacing: .01em; white-space: nowrap; }
.f6-st-open { background: var(--error-50); color: var(--error-700); }
.f6-st-acknowledged { background: var(--brand-50); color: var(--brand-700); }
.f6-st-in_progress { background: var(--warning-50); color: var(--warning-800); }
.f6-st-snoozed { background: var(--surface-2); color: var(--text-2); }
.f6-st-resolved { background: var(--success-50); color: var(--success-700); }
.f6-type-pill { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.f6-al-id { font-size: 11px; color: var(--text-3); align-self: center; }
.f6-select { height: 30px; border: 1px solid var(--border); border-radius: 7px; background: #fff; font-size: 12px; color: var(--text-1, #101828); padding: 0 8px; font-family: inherit; cursor: pointer; }
.f6-empty { padding: 48px 24px; text-align: center; color: var(--text-3); font-size: 13px; }
.f6-more { padding: 14px; text-align: center; }
.f6-clickable { cursor: pointer; }
.f6-link { background: none; border: 0; padding: 0; color: var(--brand-700, #3E4784); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.f6-link:hover { text-decoration: underline; }

/* ── comments ────────────────────────────────────────────────────────────── */
.f6-cmts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.f6-cmt { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.f6-cmt-text { font-size: 12.5px; color: var(--neutral-900, #101828); white-space: pre-wrap; word-break: break-word; }
.f6-cmt-time { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.f6-cmt-empty { font-size: 12px; color: var(--text-3); padding: 4px 0; }
.f6-cmt-form { display: flex; gap: 8px; align-items: flex-end; }
.f6-cmt-input { flex: 1; min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; font-family: inherit; resize: vertical; outline: 0; }
.f6-cmt-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(94,80,153,.15); }

/* ── Activities feed ─────────────────────────────────────────────────────── */
.view-activities .co-toolbar-right { gap: 8px; }
.f6-live { margin: 0 32px 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.f6-live-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.f6-live-title { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--neutral-900, #101828); }
.f6-live-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success-500, #12B76A); box-shadow: 0 0 0 0 rgba(18,183,106,.5); animation: f6pulse 2s infinite; }
@keyframes f6pulse { 0% { box-shadow: 0 0 0 0 rgba(18,183,106,.45); } 70% { box-shadow: 0 0 0 7px rgba(18,183,106,0); } 100% { box-shadow: 0 0 0 0 rgba(18,183,106,0); } }
.f6-live-row { display: grid; grid-template-columns: 10px 44px 1fr auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 12px; border-top: 1px dashed var(--border); }
.f6-live-row:first-of-type { border-top: 0; }
.f6-live-row.f6-clickable:hover .f6-live-text { color: var(--brand-700, #3E4784); text-decoration: underline; }
.f6-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.f6-live-dot.session { background: var(--brand, #5E509A); }
.f6-live-dot.warn { background: var(--warning-500, #F79009); }
.f6-live-dot.live { background: var(--success-500, #12B76A); }
.f6-live-who { font-size: 10.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.f6-live-text { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f6-live-when { color: var(--text-3); font-size: 11px; white-space: nowrap; }

.f6-card .act-card-row { align-items: flex-start; }
.f6-card .act-card-main { flex: 1; min-width: 0; cursor: pointer; }
.f6-card .act-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f6-card .act-card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.f6-card-times { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.f6-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.f6-foot .act-card-action { margin-left: auto; }
.f6-cb { display: none; padding: 2px 10px 0 0; cursor: pointer; }
.f6-checkbox { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.view-activities[data-ws-mode="select"] .f6-cb { display: block; }
.view-activities[data-ws-mode="select"] .f6-foot,
.view-activities[data-ws-mode="select"] .f6-cmt-wrap { display: none; }
.f6-card.f6-selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-200, #D9D6FE); }
.f6-card.f6-done .act-card-title { color: var(--text-3); }
.f6-cmt-wrap { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.f6-group .act-group-item { cursor: pointer; }
.f6-group .act-group-item:hover .act-group-item-title { color: var(--brand-700, #3E4784); }

.f6-bulk[hidden] { display: none !important; }
/* keep "Clear selection" clear of the fixed Reset demo button in the bottom-right corner */
.view-activities .f6-bulk { padding-right: 150px; }
.f6-assign-wrap { position: relative; }
.f6-assign-menu { top: auto; bottom: calc(100% + 6px); right: auto; left: 0; max-height: 320px; overflow: auto; }
.f6-assign-menu .al-assign-opt { grid-template-columns: 30px 1fr; }

/* ── Alerts triage ───────────────────────────────────────────────────────── */
.view-alerts .al-filter-tabs { flex-wrap: wrap; }
.view-alerts .al-filter-tab { flex: 1 0 auto; padding: 6px 8px; }
.f6-al-tools { display: flex; gap: 8px; margin-top: 10px; }
.f6-al-search { flex: 1; height: 30px; border: 1px solid var(--border); border-radius: 7px; padding: 0 10px; font-size: 12px; font-family: inherit; outline: 0; }
.f6-al-search:focus { border-color: var(--brand); }
.view-alerts .al-card .al-card-top .f6-type-pill { flex-shrink: 0; }
.view-alerts .al-assign-opt { grid-template-columns: 36px 1fr 18px; }
.view-alerts .al-context { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* ── alert drawer ────────────────────────────────────────────────────────── */
.alert-drawer .ad-comments:empty { display: none; }
.alert-drawer .ad-comments { margin-top: 16px; }
.alert-drawer .ad-footer { flex-wrap: wrap; }

/* ── fallback toasts (when the shell toast container is unavailable) ─────── */
.f6-toasts { position: fixed; right: 20px; bottom: 60px; display: flex; flex-direction: column; gap: 8px; z-index: 10000; pointer-events: none; }
.f6-toast { min-width: 260px; max-width: 380px; background: #101828; color: #fff; border-radius: 10px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(16,24,40,.25); transition: opacity .25s, transform .25s; }
.f6-toast.out { opacity: 0; transform: translateY(6px); }
.f6-toast-t { font-size: 13px; font-weight: 600; }
.f6-toast-d { font-size: 12px; opacity: .8; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f6-toast-error { background: var(--error-700, #B42318); }

/* Work sessions apply to every tab (bulk resolve / snooze / assign), not only Cases. */
.view-activities[data-act-tab="all"][data-ws-mode="browse"] #actStartWsBtn,
.view-activities[data-act-tab="inventory"][data-ws-mode="browse"] #actStartWsBtn { display: inline-flex !important; }
.view-activities[data-act-tab="all"][data-ws-mode="select"] #actCancelWsBtn,
.view-activities[data-act-tab="inventory"][data-ws-mode="select"] #actCancelWsBtn { display: inline-flex !important; }
.view-activities[data-ws-mode="select"] #actStartWsBtn { display: none !important; }

/* Kind pills for the neutral exception kinds. */
.act-kind-pill.kind-delay, .act-kind-pill.kind-pickup, .act-kind-pill.kind-premium, .act-kind-pill.kind-stockout { background: rgba(180,83,9,0.06); color: var(--warning-700, #B45309); border-color: rgba(180,83,9,0.18); }
.act-kind-pill.kind-line_stop, .act-kind-pill.kind-temperature, .act-kind-pill.kind-shelf_life { background: rgba(163,45,45,0.06); color: var(--error-700, #A32D2D); border-color: rgba(163,45,45,0.18); }

