Spaces:
Paused

yaz / src /static /css /card-feed.css
anaselamr's picture
[PLATFORM] fix(endpoints+templates): Sprint 52 — zero-error operational pass
579285c
Raw History Blame Contribute Delete
62.6 kB
/* ════════════════════════════════════════════════════════════════ Card Feed System — YAZ Design System v5.1 ════════════════════════════════════════════════════════════════ Reusable card-based, scroll-driven UI components. Domain-agnostic: works for SURGIO, MEDIO, CLINICA, etc. Inspired by modern feed interfaces — vertical scroll = main flow. Prefixes: .cf- Card Feed (container + layout) .cc- Case Card (individual cards) .hs- Horizontal Strip (grouped series) .fab- Floating Action Button .acb- Active Case Bar ════════════════════════════════════════════════════════════════ */ /* ── Feed Container ─────────────────────────────────────────── */ .cf-feed { max-width: 680px; margin: 0 auto; padding: 0 0.75rem 6rem; } .cf-section { margin-bottom: 1.25rem; } .cf-section-header { display: flex; align-items: center; justify-content: space-between; padding: 0.375rem 0; margin-bottom: 0.5rem; } .cf-section-title { font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); display: flex; align-items: center; gap: 0.375rem; } .cf-section-count { font-size: var(--text-xs); font-weight: 700; padding: 0.0625rem 0.4375rem; border-radius: 9999px; background: var(--border); color: var(--text-muted); } .cf-dot { width: 0.5625rem; height: 0.5625rem; border-radius: 50%; flex-shrink: 0; } .cf-dot--red { background: var(--error); } .cf-dot--amber { background: var(--warning); } .cf-dot--green { background: var(--success); animation: acb-pulse 2s ease-in-out infinite; } .cf-dot--blue { background: var(--info); } .cf-dot--purple { background: var(--text-light); } .cf-dot--gray { background: var(--text-light); } .cf-empty { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); font-size: var(--text-sm); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; } .cf-empty-icon { width: 3rem; height: 3rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); } .cf-empty-title { font-size: var(--text-base); font-weight: 600; color: var(--text); margin: 0; } .cf-empty-body { color: var(--text-muted); margin: 0; font-size: var(--text-sm); max-width: 22ch; line-height: 1.5; } /* ── Search Bar ─────────────────────────────────────────────── */ .cf-search { display: flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0.875rem; padding: 0.5625rem 0.875rem; margin-bottom: 0.75rem; box-shadow: var(--shadow-xs); transition: border-color var(--duration-fast) var(--ease-default), box-shadow var(--duration-fast) var(--ease-default); } .cf-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent), var(--shadow-xs); } .cf-search input { flex: 1; border: none; background: transparent; font-size: var(--text-base); color: var(--text); outline: none; font-family: var(--font-sans); } .cf-search input::placeholder { color: var(--text-light); } .cf-search svg, .cf-search i { width: 1rem; height: 1rem; color: var(--text-muted); flex-shrink: 0; } /* ── Filter Chips (horizontal scroll) ───────────────────────── */ .cf-filters { display: flex; gap: 0.3125rem; overflow-x: auto; padding: 0 0.125rem 0.75rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .cf-filters::-webkit-scrollbar { display: none; } .cf-chip { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.3125rem 0.875rem; border-radius: 9999px; font-size: var(--text-sm); font-weight: 500; white-space: nowrap; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); transition: background var(--duration-fast) var(--ease-default), border-color var(--duration-fast) var(--ease-default), color var(--duration-fast) var(--ease-default), transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-fast) var(--ease-default); text-decoration: none; } .cf-chip:hover { border-color: var(--primary); color: var(--text); background: var(--surface-hover); } .cf-chip:active { opacity: 0.8; } .cf-chip.active { background: var(--primary); color: white; border-color: var(--primary); font-weight: 600; } .cf-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; } .cf-chip-count { font-size: var(--text-xs); font-weight: 700; opacity: 0.8; } /* ── Stats Strip (horizontal pills) ─────────────────────────── */ .cf-stats { display: flex; gap: 0.5rem; padding: 0 0.25rem 0.75rem; overflow-x: auto; scrollbar-width: none; } .cf-stats::-webkit-scrollbar { display: none; } .cf-stat { display: flex; flex-direction: column; align-items: center; padding: 0.5rem 0.875rem; border-radius: 0.75rem; background: var(--surface); border: 1px solid var(--border); min-width: 4rem; flex-shrink: 0; } .cf-stat-value { font-size: var(--text-lg); font-weight: 700; line-height: 1; } .cf-stat-label { font-size: var(--text-xs); color: var(--text-muted); margin-top: 0.125rem; } /* ── Case Card ──────────────────────────────────────────────── */ .cc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.875rem; padding: 1rem; margin-bottom: 0.5rem; cursor: pointer; box-shadow: var(--shadow-xs); transition: box-shadow var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) var(--ease-default), transform var(--duration-normal) var(--ease-spring); display: block; text-decoration: none; color: inherit; } .cc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); will-change: transform; } .cc-card:active { transform: scale(0.985) translateY(0); box-shadow: var(--shadow-xs); transition-duration: var(--duration-instant); } /* Priority accents */ .cc-card--critical { border-left: 3px solid var(--error); } .cc-card--high { border-left: 3px solid var(--warning); } .cc-card--blocked { border-left: 3px solid var(--error); } .cc-card--ready { border-left: 3px solid var(--success); } .cc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.375rem; } .cc-name { font-size: 0.9375rem; font-weight: 600; color: var(--text); line-height: 1.25; letter-spacing: -0.005em; } .cc-readiness { display: inline-flex; align-items: center; gap: 0.1875rem; padding: 0.1875rem 0.5625rem; border-radius: 9999px; font-size: 0.6875rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; letter-spacing: 0.02em; } .cc-readiness--go { background: var(--c-success-50); color: var(--c-success-700); } .cc-readiness--no-go { background: var(--c-error-50); color: var(--c-error-700); } .cc-readiness--optimize { background: var(--c-warning-50); color: var(--c-warning-700); } .cc-readiness--pending { background: var(--surface-active); color: var(--text-secondary); } .cc-diagnosis { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.4; margin-bottom: 0.375rem; } .cc-blockers { background: color-mix(in srgb, var(--error) 6%, var(--surface)); border: 1px solid color-mix(in srgb, var(--error) 18%, transparent); border-radius: 0.5rem; padding: 0.375rem 0.625rem; margin-bottom: 0.375rem; font-size: 0.75rem; color: var(--c-error-700); line-height: 1.45; } [data-theme="dark"] .cc-blockers { background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.2); color: #fca5a5; } .cc-next-action { font-size: 0.75rem; font-weight: 500; color: var(--primary); display: flex; align-items: center; gap: 0.25rem; margin-bottom: 0.5rem; } .cc-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.375rem; margin-top: 0.375rem; } .cc-meta { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; } .cc-badge { display: inline-flex; align-items: center; gap: 0.1875rem; padding: 0.1875rem 0.5rem; border-radius: 9999px; font-size: 0.6875rem; font-weight: 600; white-space: nowrap; letter-spacing: 0.015em; } .cc-badge--category { background: var(--c-neutral-100); color: var(--c-neutral-600); } .cc-badge--date { background: var(--c-neutral-100); color: var(--c-neutral-700); } .cc-badge--critical { background: var(--c-error-50); color: var(--c-error-600); font-weight: 700; } .cc-badge--high { background: var(--c-warning-50); color: var(--c-warning-700); } .cc-badge--fast { background: var(--c-success-50); color: var(--c-success-600); font-weight: 700; } .cc-badge--state { background: var(--c-neutral-100); color: var(--c-neutral-700); } .cc-badge--logistics { background: var(--c-warning-50); color: var(--c-warning-700); } [data-theme="dark"] .cc-badge--category { background: rgba(107, 114, 128, 0.12); } [data-theme="dark"] .cc-badge--date { background: rgba(107, 114, 128, 0.12); } [data-theme="dark"] .cc-badge--critical { background: rgba(199, 75, 75, 0.12); } [data-theme="dark"] .cc-badge--fast { background: rgba(56, 161, 105, 0.12); } [data-theme="dark"] .cc-badge--state { background: rgba(107, 114, 128, 0.12); } /* Quick action buttons inside card */ .cc-actions { display: flex; gap: 0.25rem; } .cc-action-btn { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color 0.12s, color 0.12s, transform 0.15s var(--ease-spring), box-shadow 0.15s; color: var(--text-muted); } .cc-action-btn:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.08); box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 20%, transparent); } .cc-action-btn:active { transform: scale(0.95); } .cc-action-btn svg { width: 0.875rem; height: 0.875rem; } .cc-action-btn--go { background: var(--c-success-50); border-color: var(--c-success-100); color: var(--c-success-700); } .cc-bloc-btn { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 600; background: var(--primary); color: white; border: none; cursor: pointer; text-decoration: none; transition: background 0.12s, transform 0.15s var(--ease-spring), box-shadow 0.15s; } .cc-bloc-btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 3px 10px color-mix(in srgb, var(--primary) 30%, transparent); } .cc-bloc-btn:active { transform: translateY(0) scale(0.97); } /* Progress bar inside card */ .cc-progress { margin-bottom: 0.5rem; } .cc-progress-bar { display: flex; align-items: center; gap: 0.375rem; } .cc-progress-track { flex: 1; height: 0.25rem; background: var(--border); border-radius: 0.125rem; overflow: hidden; } .cc-progress-fill { height: 100%; border-radius: 0.125rem; } .cc-progress-label { font-size: 0.625rem; color: var(--text-muted); white-space: nowrap; } /* ── Horizontal Strip (grouped case series) ─────────────────── */ .hs-strip { margin-bottom: 1.25rem; } .hs-header { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0 0.625rem; margin-bottom: 0.625rem; border-bottom: 1px solid var(--border-subtle); } .hs-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-secondary); display: flex; align-items: center; gap: 0.4375rem; } .hs-count { font-size: 0.625rem; font-weight: 800; padding: 0.1875rem 0.5625rem; border-radius: 9999px; background: var(--surface-active); color: var(--text-secondary); min-width: 1.5rem; text-align: center; letter-spacing: 0.04em; } .hs-scroll { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0.25rem 0.75rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x mandatory; } .hs-scroll::-webkit-scrollbar { display: none; } .hs-card { flex-shrink: 0; width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 0.875rem; padding: 0.875rem; cursor: pointer; box-shadow: var(--shadow-xs); transition: box-shadow var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) var(--ease-default), transform var(--duration-normal) var(--ease-spring); scroll-snap-align: start; text-decoration: none; color: inherit; display: block; } .hs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); will-change: transform; } .hs-card-name { font-size: var(--text-base); font-weight: 600; color: var(--text); margin-bottom: 0.125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hs-card-diag { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hs-card-meta { display: flex; gap: 0.25rem; flex-wrap: wrap; } /* ── Floating Action Button ─────────────────────────────────── */ .fab { position: fixed; bottom: 5.5rem; right: 1.25rem; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--text); color: var(--bg); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); z-index: 100; transition: transform 0.15s, box-shadow 0.15s; } .fab:hover { transform: scale(1.08) translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); } .fab:active { transform: scale(0.95); } .fab svg { width: 1.375rem; height: 1.375rem; } /* FAB Menu */ .fab-menu { position: fixed; bottom: 9.5rem; right: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 100; opacity: 0; visibility: hidden; transform: translateY(0.625rem) scale(0.96); transition: opacity 0.2s var(--ease-spring), visibility 0.2s, transform 0.2s var(--ease-spring); } .fab-menu.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); } .fab-menu-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; border-radius: 0.75rem; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); font-size: var(--text-sm); font-weight: 500; color: var(--text); cursor: pointer; white-space: nowrap; text-decoration: none; transition: border-color 0.12s, color 0.12s, transform 0.18s var(--ease-spring), box-shadow 0.18s; } .fab-menu-item:hover { border-color: var(--primary); color: var(--primary); transform: translateX(-2px); box-shadow: 0 3px 12px color-mix(in srgb, var(--primary) 15%, transparent); } .fab-menu-item svg { width: 1rem; height: 1rem; color: var(--text-muted); } /* ── Active Case Bar (floating) ─────────────────────────────── */ .acb { position: fixed; bottom: 4rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.875rem; border-radius: 0.75rem; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); z-index: 90; max-width: 90vw; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; } .acb.active { opacity: 1; visibility: visible; } .acb-info { display: flex; flex-direction: column; min-width: 0; } .acb-name { font-size: var(--text-sm); font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .acb-diag { font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .acb-action { padding: 0.25rem 0.75rem; border-radius: 0.5rem; font-size: var(--text-xs); font-weight: 600; background: var(--text); color: var(--bg); border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0; } .acb-action:hover { opacity: 0.88; } .acb-close { width: 1.25rem; height: 1.25rem; border: none; background: none; cursor: pointer; color: var(--text-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } /* ── Quick Add Strip ────────────────────────────────────────── */ .cf-quick-add { display: flex; gap: 0.5rem; padding: 0.5rem 0; margin-bottom: 0.75rem; overflow-x: auto; scrollbar-width: none; } .cf-quick-add::-webkit-scrollbar { display: none; } @media (max-width: 520px) { .cf-quick-add { flex-wrap: wrap; overflow-x: visible; gap: 0.25rem; } } .cf-quick-btn { display: inline-flex; align-items: center; gap: 0.3125rem; padding: 0.375rem 0.8125rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); cursor: pointer; min-height: 32px; /* accessible touch target base */ transition: border-color var(--duration-fast) var(--ease-default), color var(--duration-fast) var(--ease-default), background var(--duration-fast) var(--ease-default); white-space: nowrap; text-decoration: none; letter-spacing: 0.01em; } .cf-quick-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-subtle); } .cf-quick-btn:active { opacity: 0.8; } .cf-quick-btn i, .cf-quick-btn svg { width: 0.875rem; height: 0.875rem; } .cf-quick-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; } .cf-quick-btn--primary { background: var(--primary); color: white; border-color: var(--primary); } .cf-quick-btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: white; box-shadow: 0 3px 10px color-mix(in srgb, var(--primary) 30%, transparent); } /* ── Bloc Queue Card (operation-specific) ───────────────────── */ .cc-order { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); min-width: 1.5rem; text-align: center; flex-shrink: 0; } .cc-order-dot { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: white; flex-shrink: 0; } .cc-order-dot--fast { background: #059669; } .cc-order-dot--standard { background: #2563eb; } .cc-order-dot--complex { background: #dc2626; } /* ── Inline Quick Add Form ──────────────────────────────────── */ .cf-inline-form { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.75rem; margin-bottom: 0.75rem; } .cf-inline-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: flex-end; } .cf-inline-field { flex: 1; min-width: 120px; } .cf-inline-label { font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 0.125rem; } /* ── Pipeline Progress (compact) ────────────────────────────── */ .cf-pipeline { display: flex; gap: 0.125rem; height: 0.375rem; border-radius: 0.1875rem; overflow: hidden; margin-bottom: 0.75rem; } .cf-pipeline-seg { flex: 1; border-radius: 0.1875rem; } .cf-pipeline-legend { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: var(--text-xs); color: var(--text-muted); margin-bottom: 1rem; } .cf-pipeline-item { display: flex; align-items: center; gap: 0.25rem; } /* ── Horizontal Strip Section ───────────────────────────────── */ .hs-section { margin-bottom: 1.25rem; } .hs-section-header { display: flex; align-items: center; justify-content: space-between; padding: 0.25rem 0; margin-bottom: 0.5rem; } .hs-section-title { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); display: flex; align-items: center; gap: 0.375rem; } .hs-section-count { font-size: var(--text-xs); font-weight: 700; padding: 0 0.375rem; border-radius: 9999px; background: var(--border); color: var(--text-muted); } .hs-section-link { font-size: var(--text-xs); color: var(--primary); text-decoration: none; font-weight: 500; } .hs-section-link:hover { text-decoration: underline; } /* ── Bloc Queue Card ────────────────────────────────────────── */ .bq-card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.875rem; padding: 0.875rem; margin-bottom: 0.5rem; display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; transition: box-shadow 0.12s, border-color 0.12s; text-decoration: none; color: inherit; } .bq-card:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); border-color: var(--primary); } .bq-card--blocked { border-left: 3px solid var(--error); } .bq-card--ready { border-left: 3px solid var(--success); } .bq-card--optimize { border-left: 3px solid var(--warning); } .bq-order { width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: white; flex-shrink: 0; background: var(--text-light); } .bq-order--go { background: var(--success); } .bq-order--optimize { background: var(--warning); } .bq-order--blocked { background: var(--error); } .bq-order--special { background: var(--c-neutral-500); } .bq-body { flex: 1; min-width: 0; } .bq-name { font-size: 0.9375rem; font-weight: 600; color: var(--text); line-height: 1.2; margin-bottom: 0.125rem; } .bq-diag { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.3; margin-bottom: 0.375rem; } .bq-action { font-size: 0.75rem; font-weight: 500; color: var(--primary); display: flex; align-items: center; gap: 0.25rem; } /* ── Active Case Bar (enhanced) ─────────────────────────────── */ .acb-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex-shrink: 0; animation: acb-pulse 2s infinite; } @keyframes acb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } } /* ── Entry animations ────────────────────────────────────────── */ @keyframes cf-slide-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @media (prefers-reduced-motion: no-preference) { .cc-card { animation: cf-slide-up var(--duration-slow) var(--ease-spring) backwards; } .cc-card:nth-child(1) { animation-delay: 0ms; } .cc-card:nth-child(2) { animation-delay: 35ms; } .cc-card:nth-child(3) { animation-delay: 70ms; } .cc-card:nth-child(4) { animation-delay: 105ms; } .cc-card:nth-child(5) { animation-delay: 140ms; } .cc-card:nth-child(6) { animation-delay: 175ms; } .cc-card:nth-child(7) { animation-delay: 210ms; } .cc-card:nth-child(8) { animation-delay: 245ms; } } /* ── Skeleton Shimmer ────────────────────────────────────────── */ @keyframes cf-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } } .cc-skeleton-line { border-radius: 0.25rem; background: linear-gradient( 90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75% ); background-size: 200% 100%; animation: cf-shimmer 1.4s ease-in-out infinite; } /* ── Responsive ─────────────────────────────────────────────── */ @media (max-width: 640px) { .cf-feed { padding: 0 0.5rem 6rem; } .hs-card { width: 220px; } .fab { bottom: 5rem; right: 1rem; width: 3rem; height: 3rem; } .fab-menu { bottom: 8.75rem; right: 1rem; } .acb { bottom: 3.5rem; } /* Larger touch targets on mobile */ .cf-chip { padding: 0.4375rem 1rem; min-height: 36px; } .cf-quick-btn { padding: 0.4375rem 0.875rem; min-height: 36px; } .cf-view-btn { width: 36px; height: 36px; } } @media (min-width: 1024px) { .cf-feed { max-width: 720px; } } /* ── Case Thumbnail System ──────────────────────────────────── */ /* Best-practice visual identifiers for cases: compact pictogram with semantic status ring. Domain-agnostic, works across engines. */ .cc-thumb { position: relative; flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; background: var(--surface-sunken); color: var(--text-secondary); font-size: 1.125rem; overflow: hidden; } .cc-thumb svg { width: 1.25rem; height: 1.25rem; color: var(--text-secondary); } .cc-thumb img { width: 100%; height: 100%; object-fit: cover; } /* Status ring — semantic overlay dot */ .cc-thumb-status { position: absolute; bottom: -1px; right: -1px; width: 0.625rem; height: 0.625rem; border-radius: 50%; border: 2px solid var(--bg); } .cc-thumb-status--ok { background: var(--success); } .cc-thumb-status--warn { background: var(--warning); } .cc-thumb-status--error { background: var(--error); } .cc-thumb-status--idle { background: var(--c-neutral-400); } /* Card layout with thumbnail */ .cc-card-row { display: flex; gap: 0.75rem; align-items: flex-start; } .cc-card-body { flex: 1; min-width: 0; } /* Larger thumbnail for detail views */ .cc-thumb--lg { width: 3.5rem; height: 3.5rem; border-radius: var(--radius-lg); font-size: 1.5rem; } .cc-thumb--lg svg { width: 1.75rem; height: 1.75rem; } /* Thumbnail category tinting — neutral by default, semantic for status */ .cc-thumb--surgery { background: var(--c-neutral-100); color: var(--c-neutral-600); } .cc-thumb--medicine { background: var(--c-neutral-100); color: var(--c-neutral-600); } .cc-thumb--clinical { background: var(--c-neutral-100); color: var(--c-neutral-600); } .cc-thumb--lab { background: var(--c-neutral-100); color: var(--c-neutral-600); } .cc-thumb--pharmacy { background: var(--c-neutral-100); color: var(--c-neutral-600); } .cc-thumb--logistics { background: var(--c-neutral-100); color: var(--c-neutral-600); } [data-theme="dark"] .cc-thumb { background: var(--c-neutral-800); color: var(--c-neutral-400); } [data-theme="dark"] .cc-thumb svg { color: var(--c-neutral-400); } [data-theme="dark"] .cc-thumb-status { border-color: var(--surface); } [data-theme="dark"] .cc-thumb--surgery, [data-theme="dark"] .cc-thumb--medicine, [data-theme="dark"] .cc-thumb--clinical, [data-theme="dark"] .cc-thumb--lab, [data-theme="dark"] .cc-thumb--pharmacy, [data-theme="dark"] .cc-thumb--logistics { background: var(--c-neutral-800); color: var(--c-neutral-400); } /* ══════════════════════════════════════════════ APP CHROME — Identity header for all app pages gradient icon · name + desc · compact stat pills · CTA v8.5 — Minimalist, well-proportioned, modern ══════════════════════════════════════════════ */ .app-container { max-width: 1140px; margin: 0 auto; width: 100%; } .app-chrome { background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--chrome-from, var(--primary)); border-radius: 12px 12px 0 0; padding: 0.875rem 1.125rem 0; margin-bottom: 0; } .app-chrome__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; } /* Identity: icon + name + desc */ .app-chrome__identity { display: flex; align-items: center; gap: 0.625rem; min-width: 0; } .app-chrome__icon { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--chrome-from, var(--primary)), var(--chrome-to, var(--primary)) ); display: flex; align-items: center; justify-content: center; flex-shrink: 0; opacity: 0.9; } .app-chrome__icon svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.95); fill: none; stroke-width: 1.5; } .app-chrome__meta { min-width: 0; } .app-chrome__name { font-size: 0.9375rem; font-weight: 600; color: var(--text); margin: 0; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; } .app-chrome__desc { font-size: 0.8125rem; color: var(--text-muted); margin: 0.125rem 0 0; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Stat pills + CTA on the right */ .app-chrome__right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; } .app-chrome__stats { display: flex; align-items: center; gap: 0.125rem; } .app-chrome__stat { display: flex; flex-direction: column; align-items: center; padding: 0 0.75rem; border-right: 1px solid var(--border-subtle); } .app-chrome__stat:first-child { padding-left: 0.125rem; } .app-chrome__stat:last-child { border-right: none; padding-right: 0; } .app-chrome__stat-value { font-size: 1.125rem; font-weight: 700; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; } /* Stat value color variants — use semantic tokens so dark mode adapts */ .app-chrome__stat-value.stat--success { color: var(--success); } .app-chrome__stat-value.stat--error { color: var(--error); } .app-chrome__stat-value.stat--warning { color: var(--warning); } .app-chrome__stat-value.stat--muted { color: var(--text-muted); } .app-chrome__stat-label { font-size: 0.625rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-top: 0.1875rem; white-space: nowrap; } .app-chrome__sep { width: 1px; height: 1.5rem; background: var(--border-subtle); flex-shrink: 0; } /* Primary CTA button */ .app-chrome__cta { display: inline-flex; align-items: center; gap: 0.3125rem; padding: 0.375rem 0.875rem; border-radius: 8px; background: var(--primary); color: #fff; font-size: 0.8125rem; font-weight: 500; border: none; cursor: pointer; white-space: nowrap; letter-spacing: 0.005em; transition: opacity var(--duration-fast) var(--ease-default), box-shadow var(--duration-fast) var(--ease-default); } .app-chrome__cta:hover { opacity: 0.88; box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 30%, transparent); } .app-chrome__cta:active { opacity: 0.95; box-shadow: none; } /* Tabs inside chrome — flush at bottom */ .app-chrome .y-tabs { margin-bottom: 0; border-bottom-color: transparent; } /* Content panel below chrome — card continuation for ALL tabs */ .app-chrome ~ .app-tab-content { border: 1px solid var(--border); border-top: none; border-radius: 0 0 12px 12px; padding-top: 0.875rem; } /* Dark theme adjustments */ [data-theme="dark"] .app-chrome { background: var(--surface); border-color: var(--border); } [data-theme="dark"] .app-chrome__icon { opacity: 0.85; } /* ── Responsive ── */ @media (max-width: 640px) { .app-chrome__top { flex-direction: column; align-items: flex-start; gap: 0.5rem; } .app-chrome__right { width: 100%; justify-content: space-between; } .app-chrome__stats { flex: 1; } .app-chrome__stat { padding: 0 0.5rem; flex: 1; } .app-chrome__stat:first-child { padding-left: 0; } } @media (max-width: 480px) { .app-chrome__stat-value { font-size: 1rem; } .app-chrome__cta { padding: 0.375rem 0.75rem; font-size: 0.75rem; } } /* ════════════════════════════════════════════════════════════════ Feed View Switcher (v8.4 — snap-feed pattern) ════════════════════════════════════════════════════════════════ */ /* Controls row — filter chips + view switcher side by side */ .cf-controls { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; } .cf-controls .cf-filters { flex: 1; padding-bottom: 0; margin-bottom: 0; } /* View switcher button group */ .cf-view-switcher { display: flex; gap: 3px; flex-shrink: 0; align-self: center; } .cf-view-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.12s var(--ease-spring); padding: 0; } .cf-view-btn i, .cf-view-btn svg { width: 15px; height: 15px; } .cf-view-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); } .cf-view-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); } .cf-view-btn:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); } /* ════ Grid View (2-col card layout) ══════════════════════════ */ #case-feed[data-view="grid"] { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.625rem; } #case-feed[data-view="grid"] .cc-card { margin-bottom: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; } #case-feed[data-view="grid"] .cc-card-row { flex-direction: column; gap: 0; height: 100%; } /* Thumbnail banner in grid mode */ #case-feed[data-view="grid"] .cc-thumb { width: 100%; height: 96px; border-radius: var(--radius-md) var(--radius-md) 0 0; font-size: 2rem; flex-shrink: 0; } #case-feed[data-view="grid"] .cc-card-body { padding: 0.625rem 0.75rem 0.75rem; flex: 1; } #case-feed[data-view="grid"] .cc-name { font-size: 0.8125rem; } #case-feed[data-view="grid"] .cc-diagnosis { font-size: 0.6875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* Mobile: grid → single column */ @media (max-width: 480px) { #case-feed[data-view="grid"] { grid-template-columns: 1fr; } #case-feed[data-view="grid"] .cc-thumb { height: 80px; } } /* ════ Compact View (dense list) ════════════════════════════════ */ #case-feed[data-view="compact"] .cc-card { padding: 0.5rem 0.75rem; margin-bottom: 0.25rem; } #case-feed[data-view="compact"] .cc-thumb { display: none; } #case-feed[data-view="compact"] .cc-content-types { display: none; } #case-feed[data-view="compact"] .cc-diagnosis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ════ Content Type Indicators ══════════════════════════════════ */ .cc-content-types { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 0.375rem; } .cc-ctype { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 9999px; font-size: 0.625rem; font-weight: 600; background: var(--surface-active); color: var(--text-muted); border: 1px solid var(--border); white-space: nowrap; letter-spacing: 0.01em; } .cc-ctype--imaging { background: var(--c-primary-100,#e8eaf6); color: var(--c-primary-700,#3949ab); border-color: var(--c-primary-100,#e8eaf6); } .cc-ctype--labs { background: var(--c-success-50,#f0fdf4); color: var(--c-success-700,#15803d); border-color: var(--c-success-100,#dcfce7); } .cc-ctype--notes { background: var(--surface-active); color: var(--text-secondary); } .cc-ctype--anesthesia { background: #fdf4ff; color: #7c3aed; border-color: #ede9fe; } .cc-ctype--video { background: #fff1f2; color: #be123c; border-color: #ffe4e6; } .cc-ctype--audio { background: #f0f4ff; color: #4338ca; border-color: #e0e7ff; } .cc-ctype--photo { background: #fffbeb; color: #92400e; border-color: #fef3c7; } [data-theme="dark"] .cc-ctype--imaging { background: rgba(57,73,171,0.15); color: #9fa8da; border-color: rgba(57,73,171,0.2); } [data-theme="dark"] .cc-ctype--labs { background: rgba(21,128,61,0.12); color: #86efac; border-color: rgba(21,128,61,0.2); } [data-theme="dark"] .cc-ctype--anesthesia { background: rgba(124,58,237,0.12); color: #c4b5fd; border-color: rgba(124,58,237,0.2); } /* ════ ASA Score Badge ══════════════════════════════════════════ */ .cc-asa { display: inline-flex; align-items: center; padding: 1px 5px; border-radius: 4px; font-size: 0.625rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; background: var(--surface-active); color: var(--text-muted); flex-shrink: 0; } .cc-asa--1, .cc-asa--2 { background: var(--c-success-50,#f0fdf4); color: var(--c-success-700,#15803d); } .cc-asa--3 { background: var(--c-warning-50,#fffbeb); color: var(--c-warning-700,#b45309); } .cc-asa--4, .cc-asa--5 { background: var(--c-error-50,#fff1f2); color: var(--c-error-700,#b91c1c); } [data-theme="dark"] .cc-asa--1, [data-theme="dark"] .cc-asa--2 { background: rgba(21,128,61,0.12); color: #86efac; } [data-theme="dark"] .cc-asa--3 { background: rgba(180,83,9,0.12); color: #fcd34d; } [data-theme="dark"] .cc-asa--4, [data-theme="dark"] .cc-asa--5 { background: rgba(185,28,28,0.12); color: #fca5a5; } /* ════════════════════════════════════════════════════════════════ TRIAGE FEED — Full-screen case review (snap-feed pattern) Snap-scroll triage pattern for case management. Activate with: <div class="cf-triage-feed"> One case per 100dvh slot. Swipe to navigate. ════════════════════════════════════════════════════════════════ */ .cf-triage-feed { height: 100dvh; overflow-y: scroll; overflow-x: hidden; scroll-snap-type: y mandatory; overscroll-behavior: none; /* prevents browser chrome bounce */ background: var(--surface-sunken); -webkit-overflow-scrolling: touch; } .cf-triage-item { height: var(--triage-item-h, 100dvh); scroll-snap-align: start; scroll-snap-stop: always; /* never accidentally skip a case */ display: flex; flex-direction: column; position: relative; overflow: hidden; } /* Context strip overlay (replaces video caption) */ .cf-triage-item .cc-context-strip { background: linear-gradient(transparent, rgba(0,0,0,0.72)); padding: var(--space-6) var(--space-4) var(--space-4); position: absolute; bottom: 0; left: 0; right: 0; color: #fff; pointer-events: none; } .cf-triage-item .cc-context-strip.is-interactive { pointer-events: all; } /* Navigation hint (fades after 3s idle) */ .cf-triage-nav-hint { position: absolute; top: 50%; right: var(--space-4); transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--space-2); opacity: 0.5; transition: opacity var(--dur-normal, 250ms) var(--ease-spring-gentle, ease-out); pointer-events: none; font-size: 11px; color: #fff; } .cf-triage-feed:is(:hover, :focus-within) .cf-triage-nav-hint { opacity: 0; } /* Triage mode toggle button */ .cf-triage-toggle { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1-5) var(--space-3); border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--border); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: background var(--dur-fast, 150ms); } .cf-triage-toggle:hover { background: var(--surface-hover); } .cf-triage-toggle[data-active="true"] { background: var(--primary); color: #fff; border-color: transparent; } /* Within triage: hide feed header/filters (immersive) */ .cf-triage-mode .cf-section-header { display: none; } .cf-triage-mode .cf-feed { padding: 0; max-width: 100%; } /* ════════════════════════════════════════════════════════════════ CASE PHASE TIMELINE — replaces video progress bar Shows case pipeline progress with phase chapters. ════════════════════════════════════════════════════════════════ */ .cd-timeline { height: 4px; background: var(--border); border-radius: var(--radius-sm); position: relative; cursor: pointer; transition: height var(--dur-fast, 150ms) var(--ease-spring-gentle, ease-out); overflow: visible; } .cd-timeline:hover, .cd-timeline:focus-within { height: 8px; } .cd-phase { position: absolute; top: 0; bottom: 0; background: var(--primary); border-radius: var(--radius-sm); transition: width var(--dur-slow, 400ms) var(--ease-spring-gentle, ease-out); } .cd-phase--completed { background: var(--success); } .cd-phase--current { background: var(--primary); } .cd-phase--pending { background: var(--border); } /* Phase gap = visual chapter break between phases */ .cd-phase-gap { position: absolute; width: 3px; top: -2px; bottom: -2px; background: var(--bg); z-index: 1; } /* Phase label tooltip (appears on hover/touch) */ .cd-phase-label { position: absolute; bottom: calc(100% + var(--space-2)); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 600; padding: 2px 8px; background: var(--c-neutral-800); color: #fff; border-radius: var(--radius-sm); opacity: 0; pointer-events: none; transition: opacity var(--dur-fast, 150ms); } .cd-phase:hover .cd-phase-label { opacity: 1; } [data-theme="dark"] .cd-phase-label { background: var(--c-neutral-700); } /* ════════════════════════════════════════════════════════════════ ACTION RAIL ISLAND — floating vertical case actions Domain-agnostic. Positioned fixed right edge. ════════════════════════════════════════════════════════════════ */ .ci-rail { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: var(--space-5); z-index: var(--z-overlay); /* Only visible in triage/detail mode */ opacity: 0; pointer-events: none; transition: opacity var(--dur-normal, 250ms) var(--ease-spring-gentle, ease-out); } .cf-triage-feed:hover .ci-rail, .cf-detail-active .ci-rail { opacity: 1; pointer-events: all; } .ci-action { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); background: none; border: none; cursor: pointer; padding: var(--space-2); min-width: 44px; min-height: 44px; /* gloved touch requirement */ border-radius: var(--radius-full); color: var(--text-secondary); transition: color var(--dur-micro, 80ms), background var(--dur-fast, 150ms); } .ci-action:hover { background: var(--surface-hover); } .ci-action:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); } .ci-action[data-active="true"] { color: var(--primary); } /* Flag/escalate pop animation (replaces Like heart bounce) */ .ci-action[data-action="flag"][data-active="true"] i, .ci-action[data-action="escalate"][data-active="true"] i { animation: ci-flag-pop var(--dur-slow, 400ms) var(--ease-spring-snappy, cubic-bezier(0.34,1.56,0.64,1)) forwards; } @keyframes ci-flag-pop { 0% { transform: scale(0); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } } /* Counter slide-up (optimistic update) */ .ci-counter { font-size: 11px; font-weight: 700; color: var(--text-muted); line-height: 1; display: block; overflow: hidden; height: 14px; } .ci-counter span { display: block; transition: transform var(--dur-fast, 150ms) var(--ease-spring-gentle, ease-out), opacity var(--dur-fast, 150ms); } .ci-action[data-updating="true"] .ci-counter span { transform: translateY(-100%); opacity: 0; } /* ════════════════════════════════════════════════════════════════ GO / NO-GO DECISION ISLAND — binary validation overlay Active during pre-op validation, triage, dispatch confirm. Swipe right = GO | Swipe left = NO-GO (or tap zones). ════════════════════════════════════════════════════════════════ */ .ci-decision-island { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr 1fr; pointer-events: none; opacity: 0; z-index: var(--z-modal); transition: opacity var(--dur-normal, 250ms) var(--ease-spring-gentle, ease-out); } .ci-decision-island[data-active="true"] { pointer-events: all; opacity: 1; } .ci-go, .ci-no-go { display: flex; align-items: flex-end; padding: 2rem; font-size: 1.5rem; font-weight: 800; cursor: pointer; border: none; background: transparent; transition: background var(--dur-fast, 150ms); } .ci-go { background: linear-gradient(135deg, transparent 60%, rgba(56,161,105,.12)); color: var(--success); justify-content: flex-end; /* right-aligned in left zone */ } .ci-no-go { background: linear-gradient(225deg, transparent 60%, rgba(199,75,75,.12)); color: var(--error); justify-content: flex-start; } .ci-go:hover { background: rgba(56,161,105,.18); } .ci-no-go:hover { background: rgba(199,75,75,.18); } /* Decision confirmation flash */ .ci-decision-island[data-decision="go"] { animation: decision-flash-go var(--dur-ambient, 600ms) var(--ease-spring-gentle, ease-out); } .ci-decision-island[data-decision="no-go"] { animation: decision-flash-nogo var(--dur-ambient, 600ms) var(--ease-spring-gentle, ease-out); } @keyframes decision-flash-go { 0%,100% { background: none; } 40% { background: rgba(56,161,105,.18); } } @keyframes decision-flash-nogo { 0%,100% { background: none; } 40% { background: rgba(199,75,75,.18); } } /* Reduced motion: no flash */ @media (prefers-reduced-motion: reduce) { .ci-decision-island[data-decision] { animation: none; } } /* ════════════════════════════════════════════════════════════════ ANNOTATION DRAWER — bottom sheet for case notes & events Replaces "Comment Drawer" from media platform pattern. ════════════════════════════════════════════════════════════════ */ .ca-drawer { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; border-top: 1px solid var(--border); box-shadow: var(--shadow-xl); z-index: var(--z-modal); transform: translateY(100%); transition: transform var(--dur-normal, 280ms) var(--ease-spring-gentle, ease-out); max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-2) 0 calc(var(--space-6) + env(safe-area-inset-bottom)); } .ca-drawer[data-open="true"] { transform: translateY(0); } /* Full expand — spring animation to full viewport */ .ca-drawer[data-expanded="true"] { max-height: 100dvh; border-radius: 0; } /* Drag handle */ .ca-handle { width: 36px; height: 4px; background: var(--border); border-radius: var(--radius-full); margin: var(--space-2) auto var(--space-4); cursor: grab; flex-shrink: 0; } /* Quick stamp row (replaces emoji reaction row) */ .ca-stamps { display: flex; gap: var(--space-2); overflow-x: auto; padding: 0 var(--space-4) var(--space-3); scrollbar-width: none; -webkit-overflow-scrolling: touch; } .ca-stamps::-webkit-scrollbar { display: none; } .ca-stamp { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1-5) var(--space-3); background: var(--surface-hover); border: 1px solid var(--border); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; cursor: pointer; min-height: 44px; /* gloved touch minimum */ transition: background var(--dur-micro, 80ms), transform var(--dur-micro, 80ms) var(--ease-spring-snappy, ease-out); } .ca-stamp:active { transform: scale(0.94); } .ca-stamp:hover { background: var(--surface-active); } /* Note input */ .ca-note-input { width: 100%; min-height: 80px; padding: var(--space-3) var(--space-4); background: var(--surface-hover); border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: var(--text-base); color: var(--text); resize: vertical; font-family: inherit; transition: border-color var(--dur-fast, 150ms); margin: 0 var(--space-4); width: calc(100% - 2 * var(--space-4)); } .ca-note-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(92,107,192,.12); } /* Backdrop */ .ca-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: calc(var(--z-modal) - 1); opacity: 0; transition: opacity var(--dur-normal, 280ms) var(--ease-spring-gentle, ease-out); pointer-events: none; } .ca-backdrop[data-open="true"] { opacity: 1; pointer-events: all; } [data-theme="dark"] .ca-drawer { background: var(--c-neutral-900); } /* ════════════════════════════════════════════════════════════════ REAL-TIME ALERT STREAM — floating case events & alerts Replaces "Live Reaction / Emoji Float" from media platform. Severity tiers replace Super Chat tiers. ════════════════════════════════════════════════════════════════ */ .ca-alert-container { position: fixed; right: 64px; bottom: calc(var(--acb-height, 64px) + var(--space-4)); display: flex; flex-direction: column-reverse; gap: var(--space-2); z-index: var(--z-toast); pointer-events: none; max-width: 320px; } .ca-alert-bubble { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); font-size: var(--text-sm); animation: alert-float 3s var(--ease-out-expo, ease-out) forwards; pointer-events: none; } @keyframes alert-float { 0% { transform: translateY(0) scale(0.9); opacity: 0; } 10% { transform: translateY(0) scale(1); opacity: 1; } 75% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-20px); opacity: 0; } } /* Severity tiers (replaces Super Chat tiers) */ .ca-alert-bubble[data-severity="warning"] { background: var(--c-warning-50); border-left: 3px solid var(--warning); } .ca-alert-bubble[data-severity="critical"] { background: var(--c-error-50); border-left: 3px solid var(--error); animation-duration: 6s; /* linger longer for critical events */ } .ca-alert-bubble[data-severity="emergency"] { background: var(--c-error-50); border-left: 3px solid var(--error); animation-duration: 8s; animation-name: alert-float-emergency; } @keyframes alert-float-emergency { 0% { transform: translateY(0) scale(0.9); opacity: 0; } 8% { transform: translateY(0) scale(1.05); opacity: 1; } 15% { transform: translateY(0) scale(1); } 90% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-20px); opacity: 0; } } /* Critical alert: pin to top of screen (replaces Super Chat pin) */ .ca-alert-pin { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--c-error-100); border-bottom: 2px solid var(--error); padding: var(--space-2) var(--space-4); font-size: var(--text-sm); font-weight: 600; color: var(--c-error-700); transform: translateY(-100%); animation: alert-pin-in var(--dur-slow, 400ms) var(--ease-spring-gentle, ease-out) forwards; } @keyframes alert-pin-in { to { transform: translateY(0); } } [data-theme="dark"] .ca-alert-bubble { background: var(--c-neutral-800); } [data-theme="dark"] .ca-alert-bubble[data-severity="warning"] { background: rgba(212,150,48,.12); } [data-theme="dark"] .ca-alert-bubble[data-severity="critical"] { background: rgba(199,75,75,.12); } @media (prefers-reduced-motion: reduce) { .ca-alert-bubble { animation: none; opacity: 1; } .ca-alert-pin { animation: none; transform: translateY(0); } } /* ════════════════════════════════════════════════════════════════ ACTIVE CASE BAR (ACB) — pinned mini-player dock Persistent control strip showing the open/active case. Swipe up = expand detail. Swipe down = dismiss. ════════════════════════════════════════════════════════════════ */ .acb { position: fixed; bottom: 0; left: 0; right: 0; height: var(--acb-height, 64px); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -2px 12px rgba(0,0,0,.06); display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-4); padding-bottom: env(safe-area-inset-bottom); z-index: var(--acb-z, var(--z-sticky)); /* Spring reveal */ transform: translateY(100%); transition: transform var(--dur-normal, 280ms) var(--ease-spring-gentle, ease-out); cursor: pointer; } .acb[data-active="true"] { transform: translateY(0); } /* Expand to full detail */ .acb[data-expanded="true"] { height: 100dvh; transition: height var(--dur-slow, 350ms) var(--ease-spring-gentle, ease-out), transform var(--dur-normal, 280ms) var(--ease-spring-gentle, ease-out); } .acb-priority-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; } .acb-priority-dot[data-priority="emergency"] { background: var(--error); animation: acb-pulse 1s ease-in-out infinite; } .acb-priority-dot[data-priority="urgent"] { background: var(--warning); } .acb-priority-dot[data-priority="elective"] { background: var(--success); } @keyframes acb-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.85); } } .acb-info { flex: 1; min-width: 0; overflow: hidden; } .acb-title { font-size: var(--text-sm); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); } .acb-sub { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Inline pipeline progress bar */ .acb-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--primary); border-radius: 0; transition: width var(--dur-slow, 400ms) var(--ease-spring-gentle, ease-out); } .acb-actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; } .acb-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-full); border: none; background: none; color: var(--text-secondary); cursor: pointer; transition: background var(--dur-fast, 150ms), color var(--dur-fast, 150ms); } .acb-btn:hover { background: var(--surface-hover); } .acb-btn:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); } [data-theme="dark"] .acb { background: var(--c-neutral-900); box-shadow: 0 -2px 12px rgba(0,0,0,.3); } /* When ACB is visible, add bottom clearance to feed */ body[data-acb-active="true"] .cf-feed { padding-bottom: calc(var(--acb-height, 64px) + 4rem); } /* ════════════════════════════════════════════════════════════════ CASE VERDICT BADGE — GO / NO-GO / OPTIMIZE Used in card, detail, ACB, triage strip. ════════════════════════════════════════════════════════════════ */ .cc-verdict { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: var(--radius-full); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid transparent; flex-shrink: 0; } .cc-verdict[data-verdict="go"] { background: var(--verdict-go-bg); color: var(--verdict-go-text); border-color:var(--verdict-go-border); } .cc-verdict[data-verdict="no-go"] { background: var(--verdict-nogo-bg); color: var(--verdict-nogo-text); border-color:var(--verdict-nogo-border); } .cc-verdict[data-verdict="optimize"] { background: var(--verdict-optimize-bg); color: var(--verdict-optimize-text); border-color:var(--verdict-optimize-border); } .cc-verdict[data-verdict="hold"] { background: var(--verdict-hold-bg); color: var(--verdict-hold-text); border-color:var(--verdict-hold-border); } /* ════════════════════════════════════════════════════════════════ CARD ENTRANCE STAGGER — consistent across all views ════════════════════════════════════════════════════════════════ */ .cc-card { animation: cc-card-enter var(--dur-normal, 250ms) var(--ease-spring-gentle, ease-out) both; animation-delay: calc(var(--card-index, 0) * 35ms); } @keyframes cc-card-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } /* Tappable press feedback (touchstart/touchend via JS) */ .cc-card[data-pressed="true"] { transform: scale(0.98); } @media (prefers-reduced-motion: reduce) { .cc-card { animation: none; } .ci-flag-pop { animation: none; } } /* ════════════════════════════════════════════════════════════════ SLA PILL — duration/deadline indicator ════════════════════════════════════════════════════════════════ */ .cc-sla-pill { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(0,0,0,.72); color: #fff; white-space: nowrap; } .cc-sla-pill[data-overdue="true"] { background: var(--error); } .cc-sla-pill[data-at-risk="true"] { background: var(--warning); color: #1a1a1a; } .cc-sla-pill[data-on-time="true"] { background: rgba(0,0,0,.72); }
/* ════════════════════════════════════════════════════════════════
Card Feed System — YAZ Design System v5.1
════════════════════════════════════════════════════════════════
Reusable card-based, scroll-driven UI components.
Domain-agnostic: works for SURGIO, MEDIO, CLINICA, etc.
Inspired by modern feed interfaces — vertical scroll = main flow.
Prefixes:
.cf- Card Feed (container + layout)
.cc- Case Card (individual cards)
.hs- Horizontal Strip (grouped series)
.fab- Floating Action Button
.acb- Active Case Bar
════════════════════════════════════════════════════════════════ */
/* ── Feed Container ─────────────────────────────────────────── */
.cf-feed {
max-width: 680px;
margin: 0 auto;
padding: 0 0.75rem 6rem;
}
.cf-section { margin-bottom: 1.25rem; }
.cf-section-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.375rem 0;
margin-bottom: 0.5rem;
}
.cf-section-title {
font-size: var(--text-sm);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 0.375rem;
}
.cf-section-count {
font-size: var(--text-xs);
font-weight: 700;
padding: 0.0625rem 0.4375rem;
border-radius: 9999px;
background: var(--border);
color: var(--text-muted);
}
.cf-dot {
width: 0.5625rem;
height: 0.5625rem;
border-radius: 50%;
flex-shrink: 0;
}
.cf-dot--red { background: var(--error); }
.cf-dot--amber { background: var(--warning); }
.cf-dot--green { background: var(--success); animation: acb-pulse 2s ease-in-out infinite; }
.cf-dot--blue { background: var(--info); }
.cf-dot--purple { background: var(--text-light); }
.cf-dot--gray { background: var(--text-light); }
.cf-empty {
text-align: center;
padding: 3rem 1.5rem;
color: var(--text-muted);
font-size: var(--text-sm);
display: flex;
flex-direction: column;
align-items: center;
gap: 0.75rem;
}
.cf-empty-icon {
width: 3rem;
height: 3rem;
border-radius: 50%;
background: var(--surface);
border: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: center;
color: var(--text-muted);
}
.cf-empty-title {
font-size: var(--text-base);
font-weight: 600;
color: var(--text);
margin: 0;
}
.cf-empty-body {
color: var(--text-muted);
margin: 0;
font-size: var(--text-sm);