Spaces:
Paused

yaz / src /static /css /app-patterns.css
anaselamr's picture
[PLATFORM] fix(endpoints+templates): Sprint 52 — zero-error operational pass
579285c
Raw History Blame Contribute Delete
159 kB
/* ════════════════════════════════════════════════════════════════ YAZ App Patterns — Shared Application UI Components ════════════════════════════════════════════════════════════════ Version: 5.1.0 | Sprint 43 Extracted from per-template <style> blocks into a single source. All values use design tokens from tokens.css — zero hardcoded colors. Namespaces: st-* Stream view (Traces feed) kb-* Kanban board (Traces board view) attn-* Attention/alert banner qa-* Quick-add bar wb-* Workbench (AYRAD cockpit) ayrad-* AYRAD dashboard cc-* Case card (Surgio / cross-domain) sg-* Surgio-specific ════════════════════════════════════════════════════════════════ */ /* ── AYRAD brand accent (centralized so one place to update) ─── */ :root { --ayrad-from: #1a4a6b; --ayrad-to: #0d7377; --ayrad-grad: linear-gradient(135deg, var(--ayrad-from) 0%, var(--ayrad-to) 100%); } /* ════════════════════════════════════════════════════════════════ 1. VIEW TOGGLE (Stream / Board) ════════════════════════════════════════════════════════════════ */ .view-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; } .view-toggle-btn { padding: 0.375rem 0.875rem; font-size: var(--text-sm); font-weight: var(--weight-semibold); border: none; background: transparent; color: var(--text-muted); cursor: pointer; transition: all var(--duration-fast); display: flex; align-items: center; gap: 0.375rem; } .view-toggle-btn.active { background: var(--text); color: var(--bg); } .view-toggle-btn:not(.active):hover { background: var(--border); color: var(--text); } /* ════════════════════════════════════════════════════════════════ 2. STREAM VIEW (st-*) ════════════════════════════════════════════════════════════════ */ .st-section { margin-bottom: 1.25rem; } .st-section-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border); } .st-section-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .st-section-dot--error { background: var(--error); } .st-section-dot--warning { background: var(--warning); } .st-section-dot--success { background: var(--success); } .st-section-dot--info { background: var(--c-primary-400); } .st-section-dot--muted { background: var(--text-muted); } .st-section-dot--teal { background: #0891b2; } .st-section-title { font-size: var(--text-sm); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); } .st-section-count { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-muted); padding: 0.0625rem 0.375rem; background: var(--surface); border-radius: var(--radius-full); border: 1px solid var(--border); } .st-list { display: flex; flex-direction: column; gap: 0.5rem; } .st-card { display: grid; grid-template-columns: 4px 1fr auto; gap: 0 0.75rem; align-items: start; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.625rem 0.75rem 0.625rem 0; cursor: pointer; transition: box-shadow var(--duration-fast), border-color var(--duration-fast); } .st-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); } .st-card.is-blocked { background: var(--error-subtle); } [data-theme="dark"] .st-card.is-blocked { background: rgba(199,75,75,0.06); } .st-pri-bar { border-radius: var(--radius-md) 0 0 var(--radius-md); align-self: stretch; min-height: 100%; } .st-pri-bar.critical { background: var(--priority-critical); } .st-pri-bar.high { background: var(--priority-high); } .st-pri-bar.normal { background: var(--priority-normal); } .st-pri-bar.low { background: var(--priority-low); } .st-card-body { min-width: 0; } .st-card-top { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.125rem; } .st-card-subject { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text); line-height: var(--leading-snug); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .st-card-id { font-size: var(--text-xs); font-family: var(--font-mono); color: var(--text-light); flex-shrink: 0; } .st-card-problem { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-snug); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; } .st-card-blocker { font-size: 0.75rem; color: var(--error); font-weight: var(--weight-semibold); margin-top: 0.125rem; } [data-theme="dark"] .st-card-blocker { color: var(--c-error-400); } .st-card-tags { display: flex; gap: 0.25rem; margin-top: 0.375rem; flex-wrap: wrap; } .st-tag { font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: 0.0625rem 0.375rem; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.03em; } .st-tag--critical { background: var(--c-error-50); color: var(--c-error-700); border: 1px solid var(--c-error-100); } .st-tag--high { background: var(--c-warning-50); color: var(--c-warning-700); border: 1px solid var(--c-warning-100); } .st-tag--ready { background: var(--c-success-50); color: var(--c-success-700); border: 1px solid var(--c-success-100); } .st-tag--muted { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); } .st-card-actions { display: flex; flex-direction: column; gap: 0.375rem; align-items: flex-end; flex-shrink: 0; padding-top: 0.125rem; } .st-next-action { font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: 0.25rem 0.625rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: all var(--duration-fast); white-space: nowrap; min-height: 28px; display: inline-flex; align-items: center; } .st-next-action:hover { background: var(--primary); color: var(--text-inverse); border-color: var(--primary); } .st-next-action--danger { color: var(--error); border-color: var(--c-error-100); } .st-next-action--danger:hover { background: var(--error); border-color: var(--error); color: var(--text-inverse); } .st-state-label { font-size: var(--text-xs); color: var(--text-muted); } .st-done-row { display: flex; gap: 0.375rem; flex-wrap: wrap; } /* ════════════════════════════════════════════════════════════════ 3. KANBAN BOARD (kb-*) ════════════════════════════════════════════════════════════════ */ .kb-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; min-height: 300px; } @media (max-width: 1280px) { .kb-board { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 1024px) { .kb-board { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 640px) { .kb-board { grid-template-columns: 1fr; } } .kb-col { background: var(--surface); border-radius: var(--radius-lg); padding: 0.625rem; min-height: 200px; border: 1px solid var(--border); } .kb-col-header { display: flex; align-items: center; justify-content: space-between; padding: 0.25rem 0.375rem 0.625rem; border-bottom: 2px solid var(--border); margin-bottom: 0.5rem; } .kb-col-title { font-size: var(--text-sm); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.06em; } .kb-col-count { font-size: 0.75rem; font-weight: var(--weight-semibold); padding: 0.125rem 0.5rem; border-radius: var(--radius-full); background: var(--border); } .kb-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.625rem; margin-bottom: 0.5rem; cursor: pointer; transition: box-shadow var(--duration-fast), border-color var(--duration-fast); position: relative; } .kb-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); } .kb-card.pri-critical { border-left: 3px solid var(--priority-critical); } .kb-card.pri-high { border-left: 3px solid var(--priority-high); } .kb-card.pri-normal { border-left: 3px solid var(--priority-normal); } .kb-card.pri-low { border-left: 3px solid var(--priority-low); } .kb-card.is-blocked { background: var(--error-subtle); } [data-theme="dark"] .kb-card.is-blocked { background: rgba(199,75,75,0.06); } .kb-card-subject { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text); line-height: 1.2; margin-bottom: 0.25rem; } .kb-card-problem { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-snug); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .kb-card-meta { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.375rem; flex-wrap: wrap; } .kb-card-badge { font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: 0.0625rem 0.375rem; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.03em; } .kb-card-id { font-size: var(--text-xs); font-family: var(--font-mono); color: var(--text-light); } .kb-advance { position: absolute; top: 0.5rem; right: 0.5rem; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity var(--duration-fast), background var(--duration-fast); z-index: 2; min-width: 24px; /* touch target helper */ } .kb-card:hover .kb-advance { opacity: 1; } .kb-advance:hover { background: var(--primary); border-color: var(--primary); color: var(--text-inverse); } /* ════════════════════════════════════════════════════════════════ 4. ATTENTION / ALERT BANNER (attn-*) ════════════════════════════════════════════════════════════════ */ .attn-bar { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0; margin-bottom: 0.75rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; } .attn-card { flex: 0 0 auto; min-width: 260px; max-width: 340px; background: var(--c-error-50); border: 1px solid var(--c-error-100); border-radius: var(--radius-md); padding: 0.625rem 0.75rem; display: flex; align-items: center; gap: 0.625rem; cursor: pointer; scroll-snap-align: start; transition: box-shadow var(--duration-fast); } [data-theme="dark"] .attn-card { background: rgba(199,75,75,0.08); border-color: rgba(199,75,75,0.2); } .attn-card:hover { box-shadow: var(--shadow-md); } .attn-card-info { flex: 1; min-width: 0; } .attn-card-subject { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--c-error-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } [data-theme="dark"] .attn-card-subject { color: var(--c-error-400); } .attn-card-reason { font-size: 0.75rem; color: var(--c-error-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } [data-theme="dark"] .attn-card-reason { color: var(--c-error-400); } .attn-action { flex-shrink: 0; padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: var(--weight-semibold); border-radius: var(--radius-sm); border: 1px solid var(--c-error-100); background: var(--surface); color: var(--error); cursor: pointer; transition: background var(--duration-fast); white-space: nowrap; min-height: 36px; display: inline-flex; align-items: center; } [data-theme="dark"] .attn-action { background: rgba(0,0,0,.2); border-color: rgba(199,75,75,.3); color: var(--c-error-400); } .attn-action:hover { background: var(--error); color: var(--text-inverse); border-color: var(--error); } .attn-label { font-size: 0.75rem; font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--error); margin-bottom: 0.375rem; } /* ════════════════════════════════════════════════════════════════ 5. QUICK-ADD BAR (qa-*) ════════════════════════════════════════════════════════════════ */ .qa-bar { display: flex; gap: 0.5rem; align-items: stretch; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0.5rem; margin-bottom: 0.75rem; } .qa-bar input, .qa-bar select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.375rem 0.625rem; font-size: var(--text-sm); background: var(--surface); color: var(--text); height: var(--input-height); } .qa-bar input:focus, .qa-bar select:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-glow); } .qa-bar input { flex: 1; min-width: 0; } .qa-create { padding: 0.375rem 1rem; font-size: var(--text-sm); font-weight: var(--weight-semibold); background: var(--text); color: var(--bg); border: none; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; min-height: 36px; transition: opacity var(--duration-fast); } .qa-create:hover { opacity: 0.85; } /* Search row — compact filter toolbar */ .search-row { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; align-items: center; } .search-row input, .search-row select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.3125rem 0.625rem; font-size: var(--text-sm); background: var(--surface); color: var(--text); } .search-row input:focus, .search-row select:focus { outline: none; border-color: var(--primary); } /* Done strip — chip row for completed items */ .done-strip { display: flex; gap: 0.375rem; flex-wrap: wrap; } .done-chip { font-size: 0.75rem; padding: 0.1875rem 0.5rem; border-radius: var(--radius-full); background: var(--c-success-50); color: var(--c-success-700); border: 1px solid var(--c-success-100); cursor: pointer; } [data-theme="dark"] .done-chip { background: rgba(56,161,105,0.1); color: var(--c-success-400); border-color: rgba(56,161,105,0.2); } .done-chip--more { opacity: 0.6; cursor: default; } /* ════════════════════════════════════════════════════════════════ 6. WORKBENCH (wb-*) — AYRAD Surgical Cockpit ════════════════════════════════════════════════════════════════ */ .wb-root { display: flex; flex-direction: column; min-height: 100dvh; background: var(--bg); } /* ── Top bar ── */ .wb-topbar { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--ayrad-grad); color: var(--text-inverse); padding: 0.625rem 1rem 0; box-shadow: var(--shadow-lg); } .wb-topbar-row1 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; } .wb-title { display: flex; align-items: center; gap: 0.5rem; font-weight: var(--weight-bold); font-size: var(--text-md); letter-spacing: var(--tracking-tight); } .wb-title-badge { font-size: var(--text-xs); padding: 0.1rem 0.45rem; border-radius: var(--radius-full); background: rgba(255,255,255,0.2); font-weight: var(--weight-semibold); letter-spacing: 0.05em; } .wb-date { font-size: 0.75rem; opacity: 0.8; font-weight: var(--weight-medium); } .wb-add-btn { display: flex; align-items: center; gap: 0.3rem; padding: 0.4rem 0.875rem; border-radius: var(--radius-full); background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); color: var(--text-inverse); font-size: var(--text-sm); font-weight: var(--weight-semibold); cursor: pointer; transition: background var(--duration-fast); white-space: nowrap; min-height: 36px; } .wb-add-btn:hover { background: rgba(255,255,255,0.3); } /* ── Filter chips row ── */ .wb-filters { display: flex; gap: 0.375rem; overflow-x: auto; scrollbar-width: none; padding: 0 0 0.625rem; margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; } .wb-filters::-webkit-scrollbar { display: none; } .wb-filter { flex: 0 0 auto; padding: 0.3rem 0.75rem; border-radius: var(--radius-full); background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.85); font-size: 0.75rem; font-weight: var(--weight-semibold); cursor: pointer; transition: all var(--duration-fast); white-space: nowrap; min-height: 32px; display: inline-flex; align-items: center; } .wb-filter:hover { background: rgba(255,255,255,0.22); } .wb-filter.is-active { background: var(--text-inverse); color: var(--ayrad-from); border-color: var(--text-inverse); } /* ── Quick add panel ── */ .wb-qa { margin: 0.75rem 1rem; background: var(--surface); border: 2px solid var(--primary); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; } .wb-qa-header { display: flex; align-items: center; justify-content: space-between; padding: 0.625rem 1rem; background: color-mix(in srgb, var(--primary) 6%, transparent); border-bottom: 1px solid var(--border); } .wb-qa-title { font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--text); display: flex; align-items: center; gap: 0.4rem; } .wb-qa-body { padding: 0.875rem 1rem; } .wb-qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; } .wb-qa-full { grid-column: 1 / -1; } .wb-label { font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 0.2rem; } .wb-input, .wb-select { width: 100%; padding: 0.5625rem 0.75rem; font-size: var(--text-base); border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); transition: border-color var(--duration-fast), box-shadow var(--duration-fast); box-sizing: border-box; min-height: var(--btn-height-lg); } .wb-input:focus, .wb-select:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-glow); } .wb-toggle-link { font-size: 0.75rem; color: var(--primary); cursor: pointer; display: flex; align-items: center; gap: 0.25rem; background: none; border: none; padding: 0; font-weight: var(--weight-semibold); } .wb-qa-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; justify-content: flex-end; align-items: center; } .wb-urgent-note { font-size: 0.7rem; color: var(--text-muted); flex: 1; } /* ── Case board ── */ .wb-board { flex: 1; padding: 0 0 5rem; } .wb-board-inner { padding: 0 0.75rem; } .wb-board-loading { padding: 2rem 1rem; text-align: center; color: var(--text-muted); font-size: var(--text-sm); } .wb-empty { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 3rem 1rem; color: var(--text-muted); font-size: var(--text-base); } /* ── Case card ── */ .wb-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); margin-bottom: 0.5rem; box-shadow: var(--shadow-xs); overflow: hidden; cursor: pointer; transition: box-shadow var(--duration-fast), transform var(--duration-fast); -webkit-tap-highlight-color: transparent; } .wb-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); } .wb-card:active { transform: translateY(0); } .wb-card-top { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0.875rem 0.5rem; } .wb-card-verdict { flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--text-inverse); letter-spacing: 0.05em; } .v-go { background: var(--success); } .v-no_go { background: var(--error); } .v-hold { background: var(--warning); } .v-pending { background: var(--text-light); } .v-done { background: var(--primary); } .wb-card-body { flex: 1; min-width: 0; } .wb-card-id { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wb-card-diag { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Chips row */ .wb-chips { display: flex; gap: 0.25rem; flex-wrap: wrap; padding: 0 0.875rem 0.5rem; } .wb-chip { font-size: var(--text-xs); padding: 0.1rem 0.5rem; border-radius: var(--radius-full); font-weight: var(--weight-semibold); border: 1px solid; white-space: nowrap; } .chip-urgent { background: var(--c-error-50); color: var(--c-error-600); border-color: var(--c-error-100); } .chip-go { background: var(--c-success-50); color: var(--c-success-700); border-color: var(--c-success-100); } .chip-no_go { background: var(--c-error-50); color: var(--c-error-600); border-color: var(--c-error-100); } .chip-hold { background: var(--c-warning-50); color: var(--c-warning-700); border-color: var(--c-warning-100); } .chip-pending { background: var(--surface-sunken); color: var(--text-muted); border-color: var(--border); } .chip-private { background: var(--primary-subtle); color: var(--primary-text);border-color: var(--c-primary-200); } .chip-public { background: var(--c-success-50); color: var(--c-success-700); border-color: var(--c-success-100); } .chip-bio-ok { background: var(--c-success-50); color: var(--c-success-700); border-color: var(--c-success-100); } .chip-bio-miss { background: var(--c-error-50); color: var(--c-error-600); border-color: var(--c-error-100); } .chip-img-ok { background: var(--c-success-50); color: var(--c-success-700); border-color: var(--c-success-100); } .chip-img-miss { background: var(--c-warning-50); color: var(--c-warning-700); border-color: var(--c-warning-100); } .chip-pay { background: var(--primary-subtle); color: var(--primary-text);border-color: var(--c-primary-200); } /* Card actions bar */ .wb-card-actions { display: flex; gap: 0; border-top: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; } .wb-card-actions::-webkit-scrollbar { display: none; } .wb-card-act { flex: 0 0 auto; padding: 0.5rem 0.75rem; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--primary); background: none; border: none; border-right: 1px solid var(--border); cursor: pointer; transition: background var(--duration-fast); white-space: nowrap; min-height: 36px; display: inline-flex; align-items: center; } .wb-card-act:last-child { border-right: none; } .wb-card-act:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); } .wb-card-act.act-urgent { color: var(--error); } /* Next action indicator */ .wb-next { font-size: var(--text-xs); font-weight: var(--weight-semibold); display: flex; align-items: center; gap: 0.3rem; padding: 0 0.875rem 0.625rem; color: var(--text-muted); } .wb-next-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warning); flex-shrink: 0; } .wb-next-dot.green { background: var(--success); } .wb-next-dot.red { background: var(--error); } /* ── Drawer overlay ── */ .wb-overlay { position: fixed; inset: 0; z-index: var(--z-overlay); background: var(--scrim); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity var(--duration-normal); } .wb-overlay.open { opacity: 1; pointer-events: all; } /* ── Drawer panel (bottom-sheet on mobile, side-panel on desktop) ── */ .wb-drawer { position: fixed; z-index: calc(var(--z-overlay) + 1); background: var(--surface); transition: transform var(--dur-normal) var(--ease-spring-gentle); overflow-y: auto; display: flex; flex-direction: column; } @media (max-width: 767px) { .wb-drawer { bottom: 0; left: 0; right: 0; height: 91dvh; border-radius: 20px 20px 0 0; transform: translateY(101%); box-shadow: 0 -8px 40px rgba(0,0,0,0.2); } .wb-drawer.open { transform: translateY(0); } } @media (min-width: 768px) { .wb-drawer { top: 0; right: 0; bottom: 0; width: min(520px, 92vw); transform: translateX(101%); box-shadow: -8px 0 40px rgba(0,0,0,0.12); } .wb-drawer.open { transform: translateX(0); } } /* Drag handle (mobile) */ .wb-drawer-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border); margin: 0.625rem auto 0; flex-shrink: 0; } /* Drawer header */ .wb-drawer-head { padding: 0.75rem 1rem 0; border-bottom: 1px solid var(--border); flex-shrink: 0; } .wb-drawer-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.625rem; } .wb-drawer-id { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text); } .wb-drawer-close { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-raised); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background var(--duration-fast); } .wb-drawer-close:hover { background: var(--border); } /* Drawer tabs */ .wb-drawer-tabs { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0; gap: 0; } .wb-drawer-tabs::-webkit-scrollbar { display: none; } .wb-dtab { flex: 0 0 auto; padding: 0.5rem 0.875rem; font-size: 0.75rem; font-weight: var(--weight-semibold); color: var(--text-muted); border-bottom: 2.5px solid transparent; cursor: pointer; transition: color var(--duration-fast), border-color var(--duration-fast); white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; min-height: 36px; display: inline-flex; align-items: flex-end; padding-bottom: 0.375rem; } .wb-dtab:hover { color: var(--text); } .wb-dtab.is-active { color: var(--primary); border-bottom-color: var(--primary); } /* Drawer body */ .wb-drawer-body { flex: 1; overflow-y: auto; padding: 0; } .wb-drawer-loading { padding: 2rem 1rem; text-align: center; color: var(--text-muted); font-size: var(--text-base); } /* Tab panes */ .wb-tab-pane { display: none; padding: 0.875rem 1rem; } .wb-tab-pane.active { display: block; } /* Section headers inside tabs */ .wb-section-title { font-size: 0.75rem; font-weight: var(--weight-bold); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0.75rem 0 0.5rem; display: flex; align-items: center; gap: 0.4rem; } .wb-section-title:first-child { margin-top: 0; } /* Status rows */ .wb-row { display: flex; align-items: center; justify-content: space-between; padding: 0.4375rem 0; border-bottom: 1px solid var(--border); } .wb-row:last-child { border-bottom: none; } .wb-row-label { font-size: var(--text-sm); color: var(--text); } .wb-row-val { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text); } .val-ok { color: var(--success); } .val-missing { color: var(--error); } .val-pending { color: var(--warning); } /* ── Action buttons ── */ .wb-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5625rem 1.125rem; border-radius: var(--radius-md); font-size: var(--text-base); font-weight: var(--weight-semibold); cursor: pointer; border: none; transition: opacity var(--duration-fast), transform var(--duration-fast); white-space: nowrap; min-height: var(--btn-height-lg); } .wb-btn:active { transform: scale(0.98); } .wb-btn--primary { background: var(--primary); color: var(--text-inverse); } .wb-btn--primary:hover { opacity: 0.9; } .wb-btn--success { background: var(--success); color: var(--text-inverse); } .wb-btn--danger { background: var(--error); color: var(--text-inverse); } .wb-btn--warning { background: var(--warning); color: var(--text-inverse); } .wb-btn--ghost { background: var(--surface-raised); color: var(--text); border: 1px solid var(--border); } .wb-btn--sm { padding: 0.375rem 0.875rem; font-size: var(--text-sm); min-height: var(--btn-height); } .wb-btn--full { width: 100%; justify-content: center; } /* Alert banners */ .wb-alert { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.875rem; border-radius: var(--radius-md); font-size: var(--text-sm); margin-bottom: 0.75rem; } .wb-alert--success { background: var(--verdict-go-bg); color: var(--verdict-go-text); border: 1px solid var(--verdict-go-border); } .wb-alert--warning { background: var(--verdict-optimize-bg); color: var(--verdict-optimize-text); border: 1px solid var(--verdict-optimize-border); } .wb-alert--error { background: var(--verdict-nogo-bg); color: var(--verdict-nogo-text); border: 1px solid var(--verdict-nogo-border); } .wb-alert--info { background: var(--primary-subtle); color: var(--primary-text); border: 1px solid var(--c-primary-200); } /* Missing items list */ .wb-missing-list { list-style: none; padding: 0; margin: 0; } .wb-missing-item { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); } .wb-missing-item:last-child { border-bottom: none; } .wb-missing-icon { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--c-error-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .wb-missing-text { flex: 1; font-size: var(--text-sm); color: var(--text); font-weight: var(--weight-medium); } .wb-missing-done { font-size: 0.75rem; color: var(--primary); font-weight: var(--weight-semibold); cursor: pointer; background: none; border: none; } /* Form grid */ .wb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; } .wb-form-full { grid-column: 1 / -1; } /* Save banner */ .wb-saved { background: var(--verdict-go-bg); border: 1px solid var(--verdict-go-border); color: var(--verdict-go-text); padding: 0.5rem 0.875rem; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: var(--weight-semibold); display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.75rem; } /* KPI stat grid */ .wb-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; } .wb-kpi-card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.625rem 0.75rem; text-align: center; } .wb-kpi-val { font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--text); } .wb-kpi-lbl { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; } /* HTMX loading states */ .htmx-indicator { display: none; } .htmx-request .htmx-indicator { display: inline; } .htmx-request .htmx-hide { display: none; } /* Engine dock */ .wb-engine-dock { display: flex; gap: 0.375rem; overflow-x: auto; scrollbar-width: none; padding: 0.5rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); flex-shrink: 0; } .wb-engine-dock::-webkit-scrollbar { display: none; } .wb-engine-btn { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.375rem 0.625rem; border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: background var(--duration-fast), box-shadow var(--duration-fast); min-width: 54px; min-height: 44px; /* WCAG touch target */ justify-content: center; } .wb-engine-btn:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); border-color: var(--primary); box-shadow: var(--focus-glow); } .wb-engine-icon { font-size: 1.125rem; line-height: 1; } .wb-engine-label { font-size: 0.55rem; font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); white-space: nowrap; } /* ════════════════════════════════════════════════════════════════ 7. AYRAD DASHBOARD (ayrad-*) ════════════════════════════════════════════════════════════════ */ .ayrad-identity { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem 0.625rem; } .ayrad-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; background: var(--ayrad-grad); display: flex; align-items: center; justify-content: center; color: var(--text-inverse); font-weight: var(--weight-bold); font-size: var(--text-lg); box-shadow: var(--shadow-md); } .ayrad-name { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text); letter-spacing: var(--tracking-tight); } .ayrad-role { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; } .ayrad-locs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.25rem; } .ayrad-loc-badge { font-size: var(--text-xs); padding: 0.125rem 0.4rem; border-radius: var(--radius-full); background: var(--surface-raised); color: var(--text-muted); border: 1px solid var(--border); } /* Stats strip */ .ayrad-stats { display: flex; gap: 0.5rem; padding: 0 1rem 0.75rem; overflow-x: auto; scrollbar-width: none; } .ayrad-stats::-webkit-scrollbar { display: none; } .ayrad-stat { flex: 0 0 auto; min-width: 72px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.5rem 0.75rem; text-align: center; box-shadow: var(--shadow-xs); } .ayrad-stat-val { font-size: var(--text-2xl); font-weight: var(--weight-bold); color: var(--text); line-height: 1.1; } .ayrad-stat-lbl { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; } .ayrad-stat--success .ayrad-stat-val { color: var(--success); } .ayrad-stat--error .ayrad-stat-val { color: var(--error); } .ayrad-stat--warning .ayrad-stat-val { color: var(--warning); } .ayrad-stat--primary .ayrad-stat-val { color: var(--primary); } .ayrad-stat--info .ayrad-stat-val { color: var(--c-primary-400); } /* Quick-add panel */ #quick-add-panel { margin: 0 1rem 0.75rem; border-radius: var(--radius-xl); background: var(--surface); border: 1.5px solid var(--primary); box-shadow: var(--shadow-md); padding: 1rem; } #quick-add-panel.hidden { display: none; } .qa-title { font-size: var(--text-base); font-weight: var(--weight-bold); margin-bottom: 0.75rem; color: var(--text); display: flex; align-items: center; gap: 0.4rem; } .qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; } .qa-full { grid-column: 1 / -1; } .qa-input, .qa-select { width: 100%; padding: 0.5rem 0.75rem; font-size: var(--text-base); border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); box-sizing: border-box; min-height: var(--btn-height-lg); } .qa-input:focus, .qa-select:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-glow); } .qa-label { font-size: var(--text-xs); color: var(--text-muted); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; display: block; } .qa-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; justify-content: flex-end; } /* Case list items */ .ayrad-case { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--duration-fast); min-height: 56px; /* WCAG touch target */ } .ayrad-case:hover { background: var(--surface-hover); } .ayrad-case:last-child { border-bottom: none; } .ayrad-case-badge { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--text-inverse); text-transform: uppercase; letter-spacing: 0.05em; } .badge--go { background: var(--success); } .badge--no_go { background: var(--error); } .badge--hold { background: var(--warning); } .badge--pending { background: var(--text-light); } .badge--done { background: var(--primary); } .badge--postop { background: var(--c-primary-400); } .badge--urgent { background: var(--error); } .ayrad-case-body { flex: 1; min-width: 0; } .ayrad-case-name { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ayrad-case-meta { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ayrad-case-tags { display: flex; gap: 0.25rem; margin-top: 0.3rem; flex-wrap: wrap; } .ayrad-tag { font-size: var(--text-xs); padding: 0.1rem 0.4rem; border-radius: var(--radius-full); background: var(--surface-raised); color: var(--text-muted); border: 1px solid var(--border); font-weight: var(--weight-medium); } .tag--urgent { background: var(--c-error-50); color: var(--c-error-600); border-color: var(--c-error-100); } .tag--private { background: var(--primary-subtle); color: var(--primary-text); border-color: var(--c-primary-200); } .tag--public { background: var(--c-success-50); color: var(--c-success-700); border-color: var(--c-success-100); } .tag--go { background: var(--c-success-50); color: var(--c-success-700); border-color: var(--c-success-100); } .tag--no_go { background: var(--c-error-50); color: var(--c-error-600); border-color: var(--c-error-100); } .tag--hold { background: var(--c-warning-50); color: var(--c-warning-700); border-color: var(--c-warning-100); } .ayrad-case-action { flex-shrink: 0; display: flex; align-items: center; } .ayrad-case-arrow { color: var(--text-muted); } /* Section headers */ .ayrad-section { background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-xs); margin-bottom: 0.75rem; } .ayrad-section-header { display: flex; align-items: center; justify-content: space-between; padding: 0.625rem 1rem; background: var(--surface-raised); border-bottom: 1px solid var(--border); } .ayrad-section-title { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text); display: flex; align-items: center; gap: 0.4rem; } .ayrad-section-count { font-size: var(--text-xs); background: var(--primary); color: var(--text-inverse); padding: 0.1rem 0.45rem; border-radius: var(--radius-full); font-weight: var(--weight-semibold); } .ayrad-empty { padding: 1.5rem 1rem; text-align: center; color: var(--text-muted); font-size: var(--text-sm); } /* Revenue strip */ .ayrad-revenue { margin: 0 1rem 0.75rem; padding: 0.75rem 1rem; background: var(--ayrad-grad); border-radius: var(--radius-xl); color: var(--text-inverse); display: flex; align-items: center; justify-content: space-between; } .ayrad-revenue-label { font-size: var(--text-xs); opacity: 0.8; text-transform: uppercase; letter-spacing: 0.05em; } .ayrad-revenue-value { font-size: var(--text-xl); font-weight: var(--weight-bold); margin-top: 2px; } .ayrad-revenue-links { display: flex; gap: 0.5rem; } .ayrad-revenue-link { font-size: 0.75rem; padding: 0.3rem 0.75rem; border-radius: var(--radius-full); background: rgba(255,255,255,0.15); color: var(--text-inverse); border: 1px solid rgba(255,255,255,0.25); text-decoration: none; font-weight: var(--weight-semibold); transition: background var(--duration-fast); min-height: 32px; display: inline-flex; align-items: center; } .ayrad-revenue-link:hover { background: rgba(255,255,255,0.25); } /* Tab content panes */ .ayrad-tab-pane { display: none; } .ayrad-tab-pane.active { display: block; } /* HTMX loading spinner */ .htmx-loading-spinner { display: none; } .htmx-request .htmx-loading-spinner { display: inline-block; } /* ── Semantic icon color utilities (replaces inline style="color:#...") ── */ .icon-sm { width: 14px; height: 14px; } .icon-primary { color: var(--primary); } .icon-success { color: var(--success); } .icon-warning { color: var(--warning); } .icon-error { color: var(--error); } .icon-info { color: var(--c-primary-400); } .icon-muted { color: var(--text-muted); } /* ════════════════════════════════════════════════════════════════ 8. MOBILE RESPONSIVE OVERRIDES ════════════════════════════════════════════════════════════════ */ @media (max-width: 640px) { /* Stream: stack actions below content */ .st-card { grid-template-columns: 4px 1fr; } .st-card-actions { flex-direction: row; align-items: center; grid-column: 2; margin-top: 0.375rem; } .st-card-subject { white-space: normal; } /* Done chips: larger touch targets */ .done-chip { font-size: 0.75rem; padding: 0.5rem 0.75rem; min-height: 36px; display: inline-flex; align-items: center; } .done-strip { gap: 0.5rem; } /* Quick add: vertical stack */ .qa-bar { flex-direction: column; } .qa-bar input, .qa-bar select { width: 100% !important; max-width: 100% !important; font-size: var(--text-base); padding: 0.5rem 0.75rem; min-height: 44px; box-sizing: border-box; } .qa-create { min-height: 44px; font-size: var(--text-base); } /* Search row: vertical */ .search-row { flex-direction: column; } .search-row > input { width: 100% !important; min-width: 0 !important; min-height: 44px; font-size: var(--text-base); padding: 0.5rem 0.75rem; } #traces-filters { width: 100%; display: grid !important; grid-template-columns: 1fr 1fr 1fr; } #traces-filters select { min-height: 40px; min-width: 0 !important; font-size: var(--text-sm); } /* Attention cards: full-bleed snap */ .attn-card { min-width: 85vw; max-width: 85vw; } /* Kanban advance button: always visible */ .kb-advance { opacity: 1; width: 32px; height: 32px; } .kb-card { padding: 0.75rem; } .kb-card-problem { -webkit-line-clamp: 3; } } /* ════════════════════════════════════════════════════════════════ 9. ACCESSIBILITY ════════════════════════════════════════════════════════════════ */ /* All interactive elements get visible focus */ .st-card:focus-visible, .kb-card:focus-visible, .wb-card:focus-visible, .attn-card:focus-visible, .ayrad-case:focus-visible { outline: var(--focus-ring); outline-offset: 2px; } /* Ensure min 44px touch targets on mobile */ @media (max-width: 768px) { .wb-filter, .wb-card-act, .wb-engine-btn, .wb-btn, .wb-dtab, .st-next-action, .attn-action { min-height: 44px; } } /* Reduced motion: no transitions */ @media (prefers-reduced-motion: reduce) { .wb-drawer { transition: none; } .wb-overlay { transition: none; } .st-card, .kb-card, .wb-card { transition: none; } } /* ════════════════════════════════════════════════════════════ Shared UI Component Styles (migrated from inline <style> blocks) ════════════════════════════════════════════════════════════ */ /* ── Sidebar Navigation ────────────────────────────────────── * Source: src/ui/templates/shared/sidebar.html */ /* Sidebar sign-in — modern card */ .sidebar-user-signin { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem; margin: 0.125rem 0; color: var(--text); text-decoration: none; border: 1px solid var(--border); border-radius: var(--radius, 8px); background: var(--surface); transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease; cursor: pointer; width: 100%; font-family: inherit; font-size: inherit; text-align: left; } .sidebar-user-signin:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 4%, var(--surface)); box-shadow: 0 1px 4px rgba(0,0,0,0.04); } .sidebar-user-signin:hover .sidebar-signin-icon { background: var(--primary); color: white; } .sidebar-user-signin:hover .sidebar-signin-arrow { opacity: 1; color: var(--primary); transform: translateX(0); } .sidebar-signin-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); flex-shrink: 0; transition: background 0.12s ease, color 0.12s ease; } .sidebar-signin-text { flex: 1; min-width: 0; display: flex; flex-direction: column; } .sidebar-signin-label { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.25; } .sidebar-signin-arrow { flex-shrink: 0; opacity: 0; color: var(--text-muted); transform: translateX(-3px); transition: opacity 0.12s ease, color 0.12s ease, transform 0.12s ease; } /* ── Sidebar nav items (Minimal) ─────────────────────── */ .sidebar { display: flex; flex-direction: column; } .sidebar-nav { flex: 1; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; padding: 0 0 0.25rem; } .nav-group { margin-bottom: 0.125rem; } .nav-group-title { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); padding: 0.375rem 0.5rem 0.125rem; opacity: 0.6; user-select: none; } .nav-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.5rem; border-radius: var(--radius, 6px); color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: background 0.1s ease, color 0.1s ease; border: none; background: none; width: 100%; text-align: left; cursor: pointer; } .nav-item svg { width: 17px; height: 17px; flex-shrink: 0; stroke-width: 1.5; } .nav-item:hover { background: var(--surface); color: var(--text); } .nav-item.active { color: var(--primary); background: var(--primary-light, rgba(92,107,192,0.08)); } /* WCAG 2.2 AA: visible keyboard focus ring on nav items */ .nav-item:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset, 2px); } [data-theme="dark"] .nav-item.active { background: rgba(139,154,216,0.12); } /* Events badge */ .nav-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10px; font-weight: 600; line-height: 18px; text-align: center; color: white; background: var(--primary); border-radius: 9px; } /* Recents toggle — looks like a nav-item but acts as collapsible trigger */ .nav-recents-toggle { position: relative; } .nav-recents-toggle > span { flex: 1; } .nav-recents-chevron { width: 12px !important; height: 12px !important; opacity: 0.4; margin-left: auto; transition: transform 0.2s ease, opacity 0.15s ease; } .nav-recents-toggle:hover .nav-recents-chevron { opacity: 0.9; } .nav-group-collapsible.open > .nav-recents-toggle .nav-recents-chevron { transform: rotate(90deg); } /* Recent item — compact, indented under toggle */ .nav-recent-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.625rem 0.3rem 2.375rem; border-radius: var(--radius, 6px); color: var(--text-muted); text-decoration: none; font-size: 12.5px; font-weight: 400; transition: background 0.1s ease, color 0.1s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nav-recent-item:hover { background: var(--surface); color: var(--text); } .nav-recent-item svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.5; } @media (max-width: 768px) { .sidebar { display: none; } } /* Scrollbar */ .sidebar-nav::-webkit-scrollbar { width: 3px; } .sidebar-nav::-webkit-scrollbar-track { background: transparent; } .sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } /* ── User section ────────────────────────────────────── */ .sidebar-user { border-top: 1px solid var(--border); padding: 0.5rem; margin-top: auto; flex-shrink: 0; /* Reserve fixed height so CLS is zero regardless of which child (auth card vs sign-in) is shown */ min-height: 56px; } .sidebar-user-wrapper { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; border-radius: var(--radius, 6px); cursor: pointer; transition: background 0.15s ease; } .sidebar-user-wrapper:hover { background: var(--surface); } .sidebar-user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent, var(--primary)); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; } .sidebar-user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; } .sidebar-user-name { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar-user-email { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar-user-chevron { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s ease; } .sidebar-user-wrapper.open .sidebar-user-chevron { transform: rotate(180deg); } .sidebar-user-menu { display: none; padding-top: 0.25rem; } .sidebar-user-menu.open { display: block; } .sidebar-user-menu-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: var(--radius, 6px); color: var(--text); text-decoration: none; font-size: 13px; transition: background 0.15s ease; cursor: pointer; border: none; background: none; width: 100%; text-align: left; } .sidebar-user-menu-item:hover { background: var(--surface); } .sidebar-user-menu-item svg { width: 18px; height: 18px; color: var(--text-muted); } .sidebar-user-menu-item.danger { color: var(--error); } .sidebar-user-menu-item.danger svg { color: var(--error); } .sidebar-user-divider { height: 1px; background: var(--border); margin: 0.375rem 0; } /* ── Collapsible group toggle ────────────────────────── */ .nav-group-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0.5rem 0.5rem 0.125rem; border: none; background: none; cursor: pointer; user-select: none; -webkit-user-select: none; } .nav-group-toggle .nav-group-title { padding: 0; pointer-events: none; } .nav-group-chevron { width: 12px; height: 12px; color: var(--text-muted); opacity: 0.5; flex-shrink: 0; transition: transform 0.2s ease, opacity 0.15s ease; } .nav-group-toggle:hover .nav-group-chevron { opacity: 0.9; } /* Collapsed state (default for collapsible groups) */ .nav-group-collapsible .nav-group-items { max-height: 0; overflow: hidden; transition: max-height 0.2s ease; } /* Open state */ .nav-group-collapsible.open .nav-group-items { max-height: 500px; } .nav-group-collapsible.open .nav-group-chevron { transform: rotate(90deg); } /* ── Header Right Actions ───────────────────────────────────── * Source: src/ui/templates/shared/components/header_right.html */ /* ── Header Right Actions ─────────────────────────── */ .hr-actions { display: flex; align-items: center; gap: 1px; flex-shrink: 0; } /* Icon button */ .hr-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: none; border-radius: 7px; background: transparent; color: var(--text-muted); cursor: pointer; transition: background .12s, color .12s; } .hr-btn:hover { background: var(--surface-hover, rgba(128,128,128,.08)); color: var(--text); } .hr-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; } .hr-btn svg, .hr-btn i { width: 17px; height: 17px; } .hr-btn--settings.active { color: var(--primary); background: var(--surface-hover, rgba(128,128,128,.08)); } .hr-btn--settings svg { transition: transform .3s ease; } .hr-btn--settings.active svg { transform: rotate(45deg); } .hr-btn--apps { display: none; } /* Accessible via sidebar Domains; hidden on all screen sizes */ /* AI Assist link */ .hr-btn--ai-mode { color: var(--primary); text-decoration: none; } .hr-btn--ai-mode:hover { color: var(--primary-hover); background: var(--primary-subtle); } /* Badge */ .hr-badge { position: absolute; top: 4px; right: 4px; min-width: 15px; height: 15px; padding: 0 3px; font-size: 9px; font-weight: 700; line-height: 15px; text-align: center; color: #fff; background: var(--error, #e53e3e); border-radius: 8px; } /* Dropdown */ .hr-dropdown { position: relative; } /* ─── Panel shell ─────────────────────────────────────────────────────────── */ .hr-panel { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 0 0 1px rgba(0,0,0,.03), 0 2px 4px rgba(0,0,0,.04), 0 8px 24px -4px rgba(0,0,0,.10), 0 32px 56px -8px rgba(0,0,0,.13); z-index: 1000; overflow: hidden; transform-origin: top right; opacity: 0; transform: scale(.96) translateY(-4px); pointer-events: none; transition: opacity .15s ease, transform .15s ease; } .hr-panel.open { display: block; animation: hr-panel-in .15s cubic-bezier(.16,1,.3,1) both; pointer-events: auto; opacity: 1; transform: scale(1) translateY(0); } @keyframes hr-panel-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: scale(1) translateY(0); } } /* ─── Notifications panel ─────────────────────────────────────────────────── */ .hr-panel--notif { width: 288px; } .hr-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 11px; font-size: 13px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); background: var(--bg-secondary, var(--surface)); letter-spacing: -0.01em; flex-shrink: 0; } .hr-panel-body { max-height: 260px; overflow-y: auto; } .hr-empty { padding: 32px 14px; text-align: center; color: var(--text-muted); font-size: 13px; margin: 0; } /* ─── Settings panel ──────────────────────────────────────────────────────── */ .hr-panel--settings { width: 272px; max-height: calc(100dvh - 68px); } /* Needs higher specificity than .hr-panel.open { display: block } */ .hr-panel--settings.open { display: flex; flex-direction: column; } /* ─── User card ───────────────────────────────────────────────────────────── */ .hr-user-card { display: flex; align-items: center; gap: 10px; padding: 10px 14px 11px; border-bottom: 1px solid var(--border); flex-shrink: 0; } .hr-user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-subtle, rgba(99,102,241,.12)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; font-weight: 700; line-height: 1; color: var(--primary); } .hr-user-avatar svg, .hr-user-avatar i { width: 14px; height: 14px; } .hr-user-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .hr-user-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; } .hr-user-role { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; } .hr-settings-body { flex: 1; min-height: 0; display: block; padding: 4px 0 6px; overflow-y: auto; overscroll-behavior: contain; } /* Section label */ .hr-setting-section-label { display: block; padding: 8px 14px 3px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); opacity: .55; } .hr-setting-section-label:first-child { padding-top: 6px; } /* Setting row (theme + language) */ .hr-setting-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px; gap: 12px; min-height: 34px; } .hr-setting-label { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); font-weight: 450; letter-spacing: -0.01em; white-space: nowrap; } .hr-setting-label svg, .hr-setting-label i { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; } /* ─── Theme toggle ─────────────────────────────────────────────────────────── */ .hr-theme-switch { position: relative; width: 36px; height: 20px; background: var(--border, #d1d5db); border-radius: 10px; cursor: pointer; transition: background .2s; flex-shrink: 0; box-shadow: inset 0 1px 2px rgba(0,0,0,.08); } .hr-theme-switch.on { background: var(--primary); } .hr-theme-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .18s cubic-bezier(.4,0,.2,1); box-shadow: 0 1px 3px rgba(0,0,0,.18), 0 1px 1px rgba(0,0,0,.06); } .hr-theme-switch.on .hr-theme-knob { transform: translateX(16px); } /* ─── Language select ─────────────────────────────────────────────────────── */ .hr-select { padding: 5px 8px; font-size: 12px; font-family: inherit; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-secondary, var(--surface)); color: var(--text); cursor: pointer; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; padding-right: 22px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 7px center; } .hr-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12); } /* ─── Action rows (Tools list items) ─────────────────────────────────────── */ /* Grid: [26px chip] [1fr label] [auto trailing] */ .hr-action-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 9px; width: 100%; box-sizing: border-box; padding: 5px 10px; min-height: 32px; background: none; border: none; outline: none; text-decoration: none; font-size: 13px; font-weight: 400; font-family: inherit; color: var(--text); letter-spacing: -0.01em; text-align: left; white-space: nowrap; cursor: pointer; border-radius: 7px; margin: 1px 4px; width: calc(100% - 8px); transition: background .12s; } .hr-action-row:hover { background: var(--surface-hover, rgba(128,128,128,.07)); } .hr-action-row:focus-visible { outline: 2px solid var(--primary); outline-offset: -1px; } /* Icon chip (column 1) */ .hr-row-icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; background: var(--bg-secondary, rgba(128,128,128,.08)); flex-shrink: 0; transition: background .12s; } .hr-row-icon svg, .hr-row-icon i { width: 12px; height: 12px; color: var(--text-muted); } .hr-action-row:hover .hr-row-icon { background: var(--primary-subtle, rgba(99,102,241,.1)); } .hr-action-row:hover .hr-row-icon svg, .hr-action-row:hover .hr-row-icon i { color: var(--primary); } .hr-action-row.active .hr-row-icon { background: var(--primary-subtle, rgba(99,102,241,.12)); } .hr-action-row.active .hr-row-icon svg, .hr-action-row.active .hr-row-icon i { color: var(--primary); } /* Trailing chevron (column 3) */ .hr-action-chevron { width: 12px !important; height: 12px !important; color: var(--text-muted); opacity: .3; transition: transform .18s ease, opacity .18s; } .hr-action-row.active > .hr-action-chevron { transform: rotate(180deg); opacity: .85; color: var(--primary); } .hr-action-row.active { color: var(--primary); background: var(--primary-subtle, rgba(99,102,241,.05)); } /* External link arrow (share) */ .hr-action-ext { width: 11px !important; height: 11px !important; color: var(--text-muted); opacity: .25; } /* ─── Action row — danger variant (Sign out) ──────────────────────────────── */ .hr-action-row--danger { color: var(--error, #e53e3e); } .hr-action-row--danger .hr-row-icon { background: rgba(229,62,62,.07); } .hr-action-row--danger .hr-row-icon svg, .hr-action-row--danger .hr-row-icon i { color: var(--error, #e53e3e); } .hr-action-row--danger:hover { background: rgba(229,62,62,.05); } .hr-action-row--danger:hover .hr-row-icon { background: rgba(229,62,62,.12); } /* ─── Inline sub-sections ─────────────────────────────────────────────────── */ .hr-subsection { background: var(--bg-secondary, rgba(128,128,128,.03)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); } .hr-subsection-pad { padding: 10px 14px; } .hr-private-textarea { width: 100%; resize: vertical; font-size: 0.8125rem; font-family: inherit; line-height: 1.5; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.625rem; outline: none; box-sizing: border-box; display: block; transition: border-color .15s; } .hr-private-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.1); } /* QR subsection layout */ .hr-qr-tabs { display: flex; border-bottom: 1px solid var(--border); } .hr-qr-body { padding: 14px; text-align: center; } .hr-qr-canvas { border-radius: 8px; image-rendering: pixelated; max-width: 100%; } .hr-qr-url { margin-top: 6px; font-size: 0.6875rem; color: var(--text-muted); word-break: break-all; line-height: 1.3; } /* ─── QR tabs ─────────────────────────────────────────────────────────────── */ .qr-tab { flex: 1; padding: 7px 0; font-size: 12px; font-weight: 600; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); cursor: pointer; transition: all .15s; letter-spacing: -0.01em; } .qr-tab.active { color: var(--primary); border-bottom-color: var(--primary); } .qr-tab:hover { color: var(--text); } /* ─── Bottom links (Account zone) — kept for compat, settings now uses hr-action-row ── */ .hr-panel-links { padding: 2px 0; } .hr-link { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; font-size: 13px; color: var(--text); background: none; border: none; border-radius: 7px; cursor: pointer; text-decoration: none; font-family: inherit; letter-spacing: -0.01em; transition: background .12s; } .hr-link:hover { background: var(--surface-hover, rgba(128,128,128,.06)); } .hr-link svg, .hr-link i { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; } .hr-link--danger { color: var(--error, #e53e3e); font-weight: 500; } .hr-link--danger svg, .hr-link--danger i { color: var(--error, #e53e3e); } .hr-link--danger:hover { background: rgba(229,62,62,.06); } .hr-divider { height: 1px; margin: 4px 0; background: var(--border); opacity: .5; } /* ─── Deprecated (kept for compat, no longer rendered) ────────────────────── */ .hr-tools-row { display: none; } .hr-tool-btn { display: none; } .hr-panel--qr { width: 220px; } @media (max-width: 768px) { .hr-btn { width: 32px; height: 32px; } .hr-panel--settings { width: calc(100vw - 24px); max-width: 280px; max-height: calc(100dvh - 124px); } .hr-panel--settings.open { display: flex; flex-direction: column; } } /* ── Alert Stream / Toast Notifications ─────────────────────── * Source: src/ui/templates/shared/components/alert_stream.html */ .alert-container{ position:fixed;right:1rem;bottom:calc(var(--acb-height,64px) + 1rem); z-index:var(--z-overlay,200); display:flex;flex-direction:column-reverse;gap:.5rem; pointer-events:none;max-width:320px;width:calc(100vw - 2rem);} .alert-bubble{ pointer-events:auto; display:flex;align-items:flex-start;gap:.5rem; padding:.625rem .875rem;border-radius:.5rem; background:var(--surface);border:1px solid var(--border); box-shadow:0 4px 16px rgba(0,0,0,.12); font-size:.8125rem;line-height:1.4;color:var(--text); animation:alert-in var(--dur-normal,280ms) var(--ease-spring-gentle,ease) forwards; max-width:100%;} .alert-bubble[data-severity="critical"]{ border-color:var(--error);background:var(--c-error-50,#fff5f5);} .alert-bubble[data-severity="warning"]{ border-color:var(--warning);background:var(--c-warning-50,#fffbeb);} .alert-bubble[data-severity="success"]{ border-color:var(--success);background:var(--c-success-50,#f0fdf4);} .alert-bubble[data-severity="info"]{ border-color:var(--primary);background:var(--c-primary-50,#eef2ff);} .alert-bubble.alert-out{ animation:alert-out var(--dur-fast,150ms) var(--ease-in-back,ease) forwards;} .alert-icon{flex-shrink:0;width:16px;height:16px;margin-top:.0625rem;} .alert-bubble[data-severity="critical"] .alert-icon{color:var(--error);} .alert-bubble[data-severity="warning"] .alert-icon{color:var(--warning);} .alert-bubble[data-severity="success"] .alert-icon{color:var(--success);} .alert-bubble[data-severity="info"] .alert-icon{color:var(--primary);} .alert-body{flex:1;min-width:0;} .alert-msg{font-weight:500;} .alert-dismiss{ cursor:pointer;background:none;border:none;padding:0; color:var(--text-muted);display:flex;align-items:center; flex-shrink:0;line-height:1;} .alert-dismiss:hover{color:var(--text);} /* sticky critical pin bar */ .alert-pin{ position:fixed;top:0;left:0;right:0;z-index:300; padding:.5rem 1rem;display:flex;align-items:center;gap:.75rem; background:var(--error);color:#fff;font-size:.8125rem;font-weight:600; animation:alert-in var(--dur-normal,280ms) var(--ease-spring-gentle,ease) forwards;} .alert-pin.alert-out{animation:alert-out var(--dur-fast,150ms) ease forwards;} .alert-pin-msg{flex:1;} .alert-pin-close{background:none;border:none;cursor:pointer;color:#fff;opacity:.8;padding:0;} .alert-pin-close:hover{opacity:1;} @keyframes alert-in{ from{opacity:0;transform:translateX(100%);} to{opacity:1;transform:translateX(0);}} @keyframes alert-out{ from{opacity:1;transform:translateX(0);} to{opacity:0;transform:translateX(100%);}} @media(prefers-reduced-motion:reduce){ .alert-bubble,.alert-pin{animation:none;}} [data-theme="dark"] .alert-bubble{ background:var(--c-neutral-800);box-shadow:0 4px 16px rgba(0,0,0,.4);} [data-theme="dark"] .alert-bubble[data-severity="critical"]{background:rgba(140,45,45,.25);} [data-theme="dark"] .alert-bubble[data-severity="warning"]{background:rgba(140,95,23,.2);} [data-theme="dark"] .alert-bubble[data-severity="success"]{background:rgba(30,111,66,.2);} [data-theme="dark"] .alert-bubble[data-severity="info"]{background:rgba(61,75,158,.2);} /* ── Bottom Navigation (Mobile) ──────────────────────────────── * Source: src/ui/templates/shared/components/bottom_nav.html */ /* ── Bottom Navigation ─── */ .bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottom-nav-height, 60px); background: var(--surface); border-top: 1px solid var(--border); z-index: 1000; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); } [data-theme="dark"] .bottom-nav { background: rgba(13, 17, 23, 0.95); } [data-theme="light"] .bottom-nav { background: rgba(250, 251, 252, 0.95); } @media (max-width: 768px) { .bottom-nav { display: flex; align-items: center; justify-content: space-around; } body { padding-bottom: var(--bottom-nav-height, 60px); } } /* Nav Items */ .bottom-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; padding: 0.5rem; min-width: 56px; min-height: 44px; color: var(--text-muted); text-decoration: none; font-size: var(--text-xs, 0.6875rem); font-weight: 500; border: none; background: none; cursor: pointer; transition: color 0.15s ease; position: relative; } .bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); } /* WCAG 2.2 AA: visible keyboard focus ring on mobile nav items */ .bottom-nav-item:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset, 2px); border-radius: var(--radius-md); } .bottom-nav-item svg { width: 22px; height: 22px; stroke-width: 1.5; } /* Center Action Button (Elevated Island) */ .bottom-nav-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 72px; padding: 0; } .bottom-nav-center-btn { width: clamp(52px, 14vw, 64px); height: clamp(52px, 14vw, 64px); border-radius: 50%; background: linear-gradient(135deg, var(--primary, #5c6bc0), var(--primary-hover, #4a5ab0)); color: white; border: 3px solid var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; margin-top: -20px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); text-decoration: none; } .bottom-nav-center-btn:active { transform: scale(0.93); } .bottom-nav-center-btn:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); } .bottom-nav-center-btn svg { width: clamp(22px, 6vw, 28px); height: clamp(22px, 6vw, 28px); stroke-width: 1.5; } .bottom-nav-center-label { font-size: var(--text-xs, 0.6875rem); font-weight: 700; color: var(--primary, #5c6bc0); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; } /* Notification Badge */ .bottom-nav-badge { position: absolute; top: 2px; right: 12px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 9px; font-weight: 600; line-height: 16px; text-align: center; color: white; background: var(--error, #c74b4b); border-radius: 8px; } /* Safe area for notched devices */ @supports (padding-bottom: env(safe-area-inset-bottom)) { .bottom-nav { height: calc(var(--bottom-nav-height, 60px) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); } body { padding-bottom: calc(var(--bottom-nav-height, 60px) + env(safe-area-inset-bottom)); } } /* ── Apps Drawer (Mobile Overlay) ────────────────────────────── * Source: src/ui/templates/shared/components/apps_drawer.html */ /* Apps Drawer Overlay */ .apps-drawer-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 9998; display: none; align-items: flex-end; justify-content: center; } .apps-drawer-overlay.active { display: flex; } /* Drawer Container */ .apps-drawer { width: 100%; max-width: 480px; max-height: 85vh; background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08); overflow: hidden; animation: drawer-slide-up 0.15s ease-out; } @keyframes drawer-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } } /* Drawer Handle */ .apps-drawer-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 12px auto 0; } /* Drawer Header */ .apps-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); } .apps-drawer-header h3 { font-size: 18px; font-weight: 600; margin: 0; color: var(--text); } .apps-drawer-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; transition: background 0.15s ease; } .apps-drawer-close:hover { background: var(--surface-hover, rgba(0,0,0,0.04)); } .apps-drawer-close svg { width: 20px; height: 20px; } /* Drawer Content */ .apps-drawer-content { padding: 1rem; overflow-y: auto; max-height: calc(85vh - 80px); } /* Apps Sections */ .apps-section { margin-bottom: 1.5rem; } .apps-section:last-child { margin-bottom: 0; } .apps-section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.75rem; padding: 0 0.25rem; } /* Apps Grid */ .apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; } @media (max-width: 400px) { .apps-grid { grid-template-columns: repeat(3, 1fr); } } /* App Tile */ .app-tile { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0.75rem 0.5rem; text-decoration: none; border-radius: 12px; transition: background 0.15s ease, transform 0.1s ease; } .app-tile:hover { background: var(--surface-hover, rgba(0,0,0,0.04)); } .app-tile:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; background: var(--surface-hover, rgba(0,0,0,0.04)); } .app-tile:active { opacity: 0.7; } /* Keyboard focus for drawer close button */ .apps-drawer-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; } .app-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: white; } .app-icon svg { width: 24px; height: 24px; stroke: white; } .app-name { font-size: 12px; font-weight: 500; color: var(--text); text-align: center; } /* Desktop behavior */ @media (min-width: 769px) { .apps-drawer-overlay { align-items: center; } .apps-drawer { border-radius: 16px; max-height: 80vh; } .apps-drawer-handle { display: none; } @keyframes drawer-slide-up { from { opacity: 0; } to { opacity: 1; } } } /* Safe area for notched devices */ @supports (padding-bottom: env(safe-area-inset-bottom)) { .apps-drawer-content { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); } } /* ── Search Palette ────────────────────────────────────────────── * Dropdown from header nav. IDs: #sp (overlay), .sp-box (panel). * JS toggles display + .sp--open for the fade-in animation. */ /* overlay = transparent click-catcher, hidden by JS */ .sp{position:fixed;inset:0;z-index:9990} /* panel */ .sp-box{ position:absolute; left:50%; transform:translateX(-50%); width:min(560px,calc(100vw - 2rem)); background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.05); overflow:hidden; display:flex; flex-direction:column; max-height:min(75vh,560px); opacity:0; will-change:transform,opacity; backface-visibility:hidden; transition:opacity .2s cubic-bezier(0.4, 0, 0.2, 1),transform .2s cubic-bezier(0.4, 0, 0.2, 1); transform:translate3d(-50%, 0, 0); } .sp--open .sp-box{ opacity:1; transform:translate3d(-50%, 0, 0); } /* input row */ .sp-inputrow{ display:flex;align-items:center;gap:12px; padding:16px 20px; border-bottom:1px solid var(--border); flex-shrink:0; background: var(--bg); } .sp-ico{ width:20px;height:20px;flex-shrink:0; color:var(--text-muted); opacity: 0.8; } .sp-input{ flex:1;min-width:0; border:0;background:transparent;outline:0; font:inherit;font-size:16px;font-weight:400; color:var(--text); caret-color:var(--primary); line-height: 1.4; } .sp-input::placeholder{ color:var(--text-muted); opacity: 0.7; } .sp-x{ display:flex;align-items:center;justify-content:center; width:32px;height:32px;flex-shrink:0; border:0;background:0;border-radius:8px; color:var(--text-muted);cursor:pointer; transition: all 0.2s ease; opacity: 0.7; } .sp-x:hover{ background: var(--surface-hover); color: var(--text); opacity: 1; } .sp-x svg{ width:16px;height:16px;display:block; } /* scrollable body */ .sp-body{overflow-y:auto;flex:1;overscroll-behavior:contain} .sp-body::-webkit-scrollbar{width:3px} .sp-body::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px} /* section label */ .sp-section{ margin:0;padding:12px 20px 6px; font-size:11px;font-weight:600;letter-spacing:.08em; text-transform:uppercase;color:var(--text-muted); opacity:.8; } /* action rows */ .sp-row{ display:flex;align-items:center;gap:12px; padding:10px 20px;width:100%; font-size:14px;font-weight:400;color:var(--text); text-decoration:none;border:0;background:0;text-align:left;cursor:pointer; transition: background 0.15s ease; border-radius: 6px; margin: 2px 8px; } .sp-row svg{ width:16px;height:16px;flex-shrink:0; color:var(--text-muted); opacity: 0.8; } .sp-row:hover,.sp-row--on{ background: var(--surface-hover); color: var(--text); } .sp-row:hover svg, .sp-row--on svg { opacity: 1; } /* apps 3-column grid */ .sp-apps{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; padding:8px 16px 16px; } .sp-app{ display:block; padding:10px 12px; border-radius:10px; font-size:13px;font-weight:500; color:var(--text);text-decoration:none; border:1px solid var(--border); text-align:center; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); white-space:nowrap;overflow:hidden;text-overflow:ellipsis; background: var(--bg); } .sp-app:hover{ background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 25%, transparent); } /* dark */ [data-theme="dark"] .sp-box{ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1); } /* mobile */ @media(max-width:600px){ .sp-box{ top:56px;left:.75rem;right:.75rem; transform:none; width:auto; border-radius:12px; max-height: calc(100vh - 80px); } .sp--open .sp-box{transform:none} .sp-apps{grid-template-columns:repeat(2,1fr)} .sp-inputrow { padding: 12px 16px; } .sp-section { padding: 8px 16px 4px; } .sp-row { padding: 8px 16px; margin: 1px 4px; } .sp-apps { padding: 6px 12px 12px; } } /* ── Active Case Bar (.acb* classes) ─────────────────────────── * Source: src/ui/templates/shared/components/active_case_bar.html */ /* Active Case Bar v2 — bottom edge, spring reveal */ .acb{position:fixed;bottom:0;left:0;right:0;z-index:var(--acb-z,var(--z-sticky,10)); transform:translateY(100%); transition:transform var(--dur-normal,280ms) var(--ease-spring-gentle,cubic-bezier(.22,1,.36,1)); background:var(--surface);border-top:1px solid var(--border); box-shadow:0 -2px 12px rgba(0,0,0,.06); padding-bottom:env(safe-area-inset-bottom);} .acb[data-active="true"]{transform:translateY(0);} .acb-inner{max-width:960px;margin:0 auto;display:flex;align-items:center;gap:.75rem; padding:.625rem 1rem;min-height:var(--acb-height,64px);position:relative;} /* Priority dot */ .acb-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;background:var(--border);} .acb-dot[data-priority="emergency"]{background:var(--error);animation:acb-pulse 1s ease-in-out infinite;} .acb-dot[data-priority="urgent"]{background:var(--warning);} .acb-dot[data-priority="high"]{background:var(--warning);} .acb-dot[data-priority="elective"],.acb-dot[data-priority="normal"]{background:var(--success);} /* Info */ .acb-info{flex:1;min-width:0;display:flex;align-items:center;gap:.5rem;text-decoration:none;color:inherit;} .acb-title{font-size:.8125rem;font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px;} .acb-sub{font-size:.6875rem;color:var(--text-muted);white-space:nowrap;} /* Status badge */ .acb-status{font-size:.6875rem;font-weight:600;padding:2px 8px;border-radius:9999px;white-space:nowrap;flex-shrink:0;} .acb-status-preparing,.acb-status-scheduled{background:var(--c-primary-100,#dfe2f4);color:var(--c-primary-700,#3d4b9e);} .acb-status-active,.acb-status-in_progress{background:var(--c-success-100,#d1f7e2);color:var(--c-success-700,#1e6f42);} .acb-status-waiting,.acb-status-optimize{background:var(--c-warning-100,#fceec8);color:var(--c-warning-700,#8c5f17);} .acb-status-blocked,.acb-status-critical{background:var(--c-error-100,#fde0e0);color:var(--c-error-700,#8c2d2d);} [data-theme="dark"] .acb-status-preparing,.acb-status-scheduled{background:rgba(61,75,158,.15);color:var(--c-primary-300);} [data-theme="dark"] .acb-status-active,.acb-status-in_progress{background:rgba(30,111,66,.15);color:var(--c-success-400);} [data-theme="dark"] .acb-status-waiting,.acb-status-optimize{background:rgba(140,95,23,.15);color:var(--c-warning-400);} [data-theme="dark"] .acb-status-blocked,.acb-status-critical{background:rgba(140,45,45,.15);color:var(--c-error-400);} /* 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);} /* Actions */ .acb-actions{display:flex;gap:.375rem;flex-shrink:0;} .acb-btn{padding:.3125rem .625rem;font-size:.75rem;font-weight:600;border-radius:.375rem; border:1px solid var(--border);background:var(--surface);color:var(--text); cursor:pointer;white-space:nowrap;min-height:36px;display:inline-flex;align-items:center; gap:.25rem;transition:border-color var(--dur-fast,150ms),background var(--dur-fast,150ms);} .acb-btn:hover{border-color:var(--primary);color:var(--primary);} .acb-btn:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset,2px);} .acb-btn-go{background:var(--success);color:#fff;border-color:var(--success);} .acb-btn-go:hover{opacity:.9;color:#fff;border-color:var(--success);} .acb-close{width:30px;height:30px;border-radius:50%;border:1px solid var(--border); background:var(--surface);display:flex;align-items:center;justify-content:center; cursor:pointer;flex-shrink:0;color:var(--text-muted); transition:background var(--dur-fast,150ms);} .acb-close:hover{background:var(--surface-active);} .acb-close:focus-visible{outline:var(--focus-ring);} /* When ACB active — add clearance to page content */ body[data-acb-active="true"] main, body[data-acb-active="true"] .shell-content{ padding-bottom:calc(var(--acb-height,64px) + 1.5rem) !important;} @media(max-width:640px){ .acb-inner{padding:.5rem .75rem;gap:.5rem;} .acb-title{max-width:130px;font-size:.75rem;} .acb-btn span.acb-btn-label{display:none;} .acb-btn{padding:.3125rem .5rem;} } @media(prefers-reduced-motion:reduce){ .acb{transition:none;} .acb-dot[data-priority="emergency"]{animation:none;} .acb-progress{transition:none;} } [data-theme="dark"] .acb{background:var(--c-neutral-900);box-shadow:0 -2px 12px rgba(0,0,0,.3);} /* ── Auth Modal (.auth-modal-* classes) ──────────────────────── * Source: src/ui/templates/shared/components/auth_modal.html */ /* ── Auth Modal Styles ─────────────────────────── */ .auth-modal-backdrop { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: authModalFadeIn 0.18s ease-out; padding: 1rem; } @keyframes authModalFadeIn { from { opacity: 0; } to { opacity: 1; } } .auth-modal-card { position: relative; width: 100%; max-width: 380px; background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 2.25rem 2rem 1.75rem; animation: authModalSlideIn 0.1s ease-out; } @keyframes authModalSlideIn { from { opacity: 0; } to { opacity: 1; } } [data-theme="dark"] .auth-modal-card { box-shadow: var(--shadow-lg); } .auth-modal-close { position: absolute; top: 0.875rem; right: 0.875rem; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: none; background: none; color: var(--text-muted, #6b7280); cursor: pointer; border-radius: 6px; transition: background 0.12s, color 0.12s; } .auth-modal-close:hover { background: var(--border, #e5e7eb); color: var(--text, #1f2937); } .auth-modal-brand { text-align: center; margin-bottom: 1.5rem; } .auth-modal-wordmark { font-size: 2rem; font-weight: 800; letter-spacing: 0.14em; color: var(--text, #1f2937); } .auth-modal-subtitle { font-size: 0.8125rem; color: var(--text-muted, #6b7280); margin-top: 0.25rem; } .auth-modal-error { background: rgba(220, 107, 107, 0.08); border: 1px solid rgba(220, 107, 107, 0.18); color: var(--error, #dc6b6b); padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.8125rem; margin-bottom: 1rem; } .auth-modal-field { margin-bottom: 1rem; } .auth-modal-label { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--text, #1f2937); margin-bottom: 0.3rem; } .auth-modal-input { width: 100%; height: 42px; padding: 0 0.875rem; background: var(--bg, #f8f9fa); border: 1px solid var(--border, #e5e7eb); border-radius: 6px; color: var(--text, #1f2937); font-family: inherit; font-size: 0.875rem; transition: border-color 0.15s, box-shadow 0.15s; } .auth-modal-input::placeholder { color: var(--text-muted, #9ca3af); opacity: 0.6; } .auth-modal-input:focus { outline: none; border-color: var(--primary, #5c6bc0); box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.15); } [data-theme="dark"] .auth-modal-input:focus { box-shadow: 0 0 0 3px rgba(139, 154, 216, 0.2); } .auth-modal-btn { width: 100%; height: 42px; background: var(--text, #1f2937); color: var(--bg, #fff); border: none; border-radius: 6px; font-family: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: opacity 0.15s; margin-top: 0.375rem; } .auth-modal-btn:hover { opacity: 0.88; } .auth-modal-btn:disabled { opacity: 0.5; cursor: not-allowed; } .auth-modal-guest { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; height: 40px; margin-top: 0.75rem; border: 1.5px dashed var(--border, #d1d5db); border-radius: 6px; color: var(--text-muted, #6b7280); font-size: 0.8125rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; } .auth-modal-guest:hover { border-color: var(--primary, #5c6bc0); color: var(--primary, #5c6bc0); background: rgba(92, 107, 192, 0.04); border-style: solid; } .auth-modal-footer { text-align: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border, #e5e7eb); font-size: 0.8125rem; color: var(--text-muted, #6b7280); } .auth-modal-footer a { color: var(--primary, #5c6bc0); text-decoration: none; font-weight: 500; } .auth-modal-footer a:hover { text-decoration: underline; } /* ── Social buttons ── */ .auth-modal-social { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; margin-bottom: 0.75rem; } .auth-modal-social-btn { display: flex; align-items: center; justify-content: center; gap: 0.375rem; height: 38px; border: 1px solid var(--border, #e5e7eb); border-radius: 6px; background: var(--bg, #f8f9fa); color: var(--text, #1f2937); font-size: 0.75rem; font-weight: 500; font-family: inherit; text-decoration: none; cursor: pointer; transition: border-color 0.12s, background 0.12s; } .auth-modal-social-btn:hover { border-color: var(--primary, #5c6bc0); background: var(--surface, #fff); } /* ── Phone OTP ── */ .auth-modal-phone { background: var(--bg, #f8f9fa); border: 1px solid var(--border, #e5e7eb); border-radius: 8px; padding: 0.875rem; margin-bottom: 0.75rem; animation: authModalSlideIn 0.15s ease-out; } .auth-modal-phone-title { font-size: 0.8125rem; font-weight: 500; color: var(--text, #1f2937); margin-bottom: 0.5rem; } .auth-modal-phone-row { display: flex; gap: 0.375rem; } .auth-modal-btn-sm { height: 38px; padding: 0 1rem; background: var(--text, #1f2937); color: var(--bg, #fff); border: none; border-radius: 6px; font-family: inherit; font-size: 0.8125rem; font-weight: 500; cursor: pointer; transition: opacity 0.12s; white-space: nowrap; } .auth-modal-btn-sm:hover { opacity: 0.88; } .auth-modal-btn-sm:disabled { opacity: 0.5; cursor: not-allowed; } .auth-modal-hint { font-size: 0.75rem; color: var(--text-muted, #6b7280); margin-top: 0.375rem; } /* ── Divider ── */ .auth-modal-divider { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0; color: var(--text-muted, #9ca3af); font-size: 0.75rem; } .auth-modal-divider::before, .auth-modal-divider::after { content: ''; flex: 1; height: 1px; background: var(--border, #e5e7eb); } /* Responsive */ @media (max-width: 480px) { .auth-modal-card { padding: 1.75rem 1.25rem 1.5rem; } .auth-modal-input, .auth-modal-btn { height: 44px; font-size: 16px; } .auth-modal-social { grid-template-columns: 1fr 1fr 1fr; gap: 0.375rem; } .auth-modal-social-btn span { display: none; } } /* ── App Base Tab Animations ─────────────────────────────────── * Source: src/ui/templates/shared/app_base.html */ /* Tab content — animated switch (keyframes work with display changes) */ .app-tab-content { display: none; } .app-tab-content.active { display: block; animation: tabIn 50ms ease both; } @keyframes tabIn { from { opacity: 0; } to { opacity: 1; } } @media (prefers-reduced-motion: reduce) { .app-tab-content.active { animation: none; } } /* Toast handled by y-toast-container in components.css */ /* Table row selection */ tr.selected { background-color: var(--primary-light) !important; } /* Bulk action bar */ .bulk-action-bar { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--text); color: var(--bg); padding: 8px 16px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 999; display: flex; align-items: center; gap: 12px; font-size: 0.8125rem; opacity: 0; visibility: hidden; transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease; } .bulk-action-bar.active { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; } /* Responsive grid fallbacks for stat grids */ @media (max-width: 768px) { .grid-cols-4, .md\\:grid-cols-4 { grid-template-columns: repeat(2, 1fr) !important; } } @media (max-width: 640px) { table { display: block; overflow-x: auto; } } @media (max-width: 480px) { .grid-cols-4, .md\\:grid-cols-4 { grid-template-columns: 1fr !important; } } /* Performance: defer off-screen rendering */ table tbody { content-visibility: auto; contain-intrinsic-block-size: 400px; } .page-transition { transition: opacity var(--transition); } .page-transition.loading { opacity: 0.5; } /* ════════════════════════════════════════════════════════════ Miscellaneous App Templates (extend shared/base.html) ════════════════════════════════════════════════════════════ */ /* ── premium ────────────────────────────────────────────────── */ /* === Pricing Page === */ .px-page{max-width:800px;margin:0 auto;padding-bottom:3rem} /* Hero */ .px-hero{text-align:center;padding:2rem 1rem 1.5rem} .px-badge{display:inline-flex;align-items:center;gap:.25rem;font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;background:var(--primary);color:#fff;padding:3px 10px;border-radius:9999px;margin-bottom:.75rem} .px-h1{font-size:1.75rem;font-weight:800;color:var(--text);line-height:1.2;margin:0 0 .5rem} .px-sub{font-size:.875rem;color:var(--text-muted);max-width:480px;margin:0 auto;line-height:1.6} /* Toggles */ .px-toggles{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;margin:1.25rem 0} .px-freq{display:flex;background:var(--surface);border:1px solid var(--border);border-radius:9999px;overflow:hidden} .px-freq-btn{padding:.375rem .875rem;font-size:.75rem;font-weight:600;cursor:pointer;border:none;background:transparent;color:var(--text-muted);touch-action:manipulation;min-height:36px;transition:all .12s} .px-freq-btn.active{background:var(--primary);color:#fff;border-radius:9999px} .px-cur{display:flex;background:var(--surface);border:1px solid var(--border);border-radius:9999px;overflow:hidden} .px-cur-btn{padding:.375rem .75rem;font-size:.6875rem;font-weight:700;cursor:pointer;border:none;background:transparent;color:var(--text-muted);touch-action:manipulation;min-height:36px;transition:all .12s} .px-cur-btn.active{background:var(--border);color:var(--text);border-radius:9999px} .px-save-badge{font-size:.5625rem;font-weight:700;text-transform:uppercase;background:#059669;color:#fff;padding:2px 8px;border-radius:9999px;margin-left:-.25rem} /* Tier grid */ .px-tiers{display:grid;grid-template-columns:1fr;gap:.75rem;margin-bottom:1.75rem} @media(min-width:600px){.px-tiers{grid-template-columns:repeat(2,1fr)}} .px-tier{border-radius:.875rem;background:var(--surface);border:1.5px solid var(--border);padding:1.25rem;display:flex;flex-direction:column;position:relative;transition:border-color .12s,box-shadow .12s} .px-tier:hover{border-color:var(--primary);box-shadow:0 4px 20px rgba(92,107,192,.08)} .px-tier-pop{border-color:var(--primary)} .px-tier-badge{position:absolute;top:-.5625rem;left:1rem;font-size:.5rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;background:var(--primary);color:#fff;padding:2px 10px;border-radius:9999px} .px-tier-icon{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border:1.5px solid var(--border);border-radius:.5rem;color:var(--text-muted);margin-bottom:.625rem} .px-tier-name{font-size:1rem;font-weight:700;color:var(--text);margin-bottom:.125rem} .px-tier-tagline{font-size:.6875rem;color:var(--text-muted);margin-bottom:.75rem;line-height:1.4} .px-price{display:flex;align-items:baseline;gap:.25rem;margin-bottom:.125rem} .px-price-main{font-size:1.75rem;font-weight:800;color:var(--text)} .px-price-unit{font-size:.75rem;color:var(--text-muted)} .px-price-note{font-size:.625rem;color:var(--text-muted);margin-bottom:.875rem;min-height:.875rem} .px-feats{list-style:none;padding:0;margin:0 0 1rem;flex:1;display:flex;flex-direction:column;gap:.375rem} .px-feat{font-size:.75rem;color:var(--text);display:flex;align-items:flex-start;gap:.5rem;line-height:1.4} .px-feat-check{color:#059669;flex-shrink:0;font-size:.8125rem;margin-top:.0625rem} .px-feat-x{color:var(--text-muted);flex-shrink:0;font-size:.8125rem;margin-top:.0625rem} .px-feat.muted{color:var(--text-muted)} .px-btn{display:block;width:100%;text-align:center;padding:.625rem;border-radius:.5rem;font-size:.8125rem;font-weight:600;border:1.5px solid var(--border);background:var(--bg);color:var(--text);cursor:pointer;text-decoration:none;touch-action:manipulation;min-height:44px;line-height:1.6;transition:all .12s} .px-btn:hover{border-color:var(--primary);color:var(--primary)} .px-btn-primary{background:var(--primary);border-color:var(--primary);color:#fff} .px-btn-primary:hover{opacity:.9;color:#fff} .px-btn-ghost{color:var(--text-muted)} /* Trust bar */ .px-trust{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1rem;margin-bottom:1.75rem} .px-trust-item{display:flex;align-items:center;gap:.375rem;font-size:.6875rem;color:var(--text-muted)} /* Regions */ .px-regions{border-radius:.875rem;background:rgba(5,150,105,.05);border:1px solid rgba(5,150,105,.18);padding:1.25rem;margin-bottom:1.5rem} .px-reg-h{font-size:.875rem;font-weight:700;color:var(--text);display:flex;align-items:center;gap:.5rem;margin-bottom:.375rem} .px-reg-p{font-size:.75rem;color:var(--text-muted);line-height:1.5;margin-bottom:.75rem} .px-reg-chips{display:flex;flex-wrap:wrap;gap:.375rem} .px-reg-chip{font-size:.625rem;font-weight:600;background:var(--surface);border:1px solid var(--border);padding:3px 10px;border-radius:9999px;color:var(--text-muted)} /* Packs */ .px-section{margin-bottom:1.75rem} .px-sh{font-size:1rem;font-weight:700;color:var(--text);margin:0 0 .25rem} .px-ss{font-size:.75rem;color:var(--text-muted);margin-bottom:.875rem} .px-packs{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.5rem} .px-pack{border-radius:.75rem;background:var(--surface);border:1px solid var(--border);padding:.875rem;transition:border-color .12s} .px-pack:hover{border-color:var(--primary)} .px-pack-icon{display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border:1px solid var(--border);border-radius:.375rem;color:var(--text-muted);margin-bottom:.5rem} .px-pack-name{font-size:.8125rem;font-weight:600;color:var(--text)} .px-pack-desc{font-size:.6875rem;color:var(--text-muted);margin-top:.125rem;line-height:1.4} .px-pack-price{font-size:.6875rem;font-weight:700;color:var(--primary);margin-top:.5rem} /* Enterprise */ .px-ent{border-radius:.875rem;background:rgba(92,107,192,.05);border:1px solid var(--border);padding:1.25rem} .px-ent-h{font-size:.875rem;font-weight:700;color:var(--text);margin:0 0 .375rem} .px-ent-p{font-size:.75rem;color:var(--text-muted);line-height:1.5;margin:0 0 .75rem} .px-ent-chips{display:flex;flex-wrap:wrap;gap:.375rem;margin-bottom:.875rem} .px-ent-chip{font-size:.625rem;font-weight:600;background:var(--surface);border:1px solid var(--border);padding:3px 10px;border-radius:9999px;color:var(--text-muted)} /* FAQ */ .px-faq{border-top:1px solid var(--border);padding-top:1.5rem;margin-bottom:1.5rem} .px-faq-h{font-size:1rem;font-weight:700;color:var(--text);margin:0 0 1rem} details.px-fq{border-bottom:1px solid var(--border);padding:.75rem 0;cursor:pointer} details.px-fq summary{font-size:.8125rem;font-weight:600;color:var(--text);list-style:none;display:flex;justify-content:space-between;align-items:center} details.px-fq summary::-webkit-details-marker{display:none} details.px-fq summary::after{content:'+';font-size:1rem;color:var(--text-muted);transition:transform .12s} details.px-fq[open] summary::after{content:'−'} details.px-fq p{font-size:.75rem;color:var(--text-muted);line-height:1.6;margin:.5rem 0 0} /* CTA */ .px-cta{text-align:center;padding:1.75rem 1rem} .px-cta-btn{display:inline-flex;align-items:center;gap:.375rem;padding:.75rem 2rem;border-radius:.5rem;font-size:.875rem;font-weight:700;background:var(--primary);color:#fff;text-decoration:none;min-height:48px;touch-action:manipulation;transition:opacity .1s} .px-cta-btn:hover{opacity:.9} .px-cta-sub{font-size:.6875rem;color:var(--text-muted);margin-top:.625rem} /* OLD classes removed — new page only uses px-* */ /* ── settings ────────────────────────────────────────────────── */ .stab { position:relative; padding:0.625rem 1.25rem; font-size:0.8125rem; font-weight:500; color:var(--text-muted); border-bottom:2px solid transparent; background:none; border-top:none; border-left:none; border-right:none; cursor:pointer; white-space:nowrap; } .stab.active { color:var(--primary); border-bottom-color:var(--primary); } .stab:hover { color:var(--text); } .scard { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg,12px); padding:1.5rem; } .sinput { width:100%; padding:0.625rem 0.875rem; border:1px solid var(--border); border-radius:var(--radius,8px); font-size:0.875rem; font-family:inherit; background:var(--surface); color:var(--text); transition:border-color 0.15s; } .sinput:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 2px var(--focus-ring,rgba(99,102,241,0.18)); } .slabel { display:block; font-size:0.8125rem; font-weight:500; color:var(--text); margin-bottom:0.375rem; } .settings-toggle { position:relative; width:44px; height:24px; background:var(--border); border-radius:12px; cursor:pointer; transition:background 0.2s ease; border:none; padding:0; flex-shrink:0; } .settings-toggle.on { background:var(--primary); } .settings-toggle::after { content:''; position:absolute; top:2px; left:2px; width:20px; height:20px; background:white; border-radius:50%; transition:transform 0.2s ease; } .settings-toggle.on::after { transform:translateX(20px); } .tab-content.hidden { display:none; } .s-avatar { width:96px; height:96px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.75rem; font-weight:700; color:#fff; background:var(--primary); margin:0 auto 1rem; flex-shrink:0; } .s-btn { display:inline-flex; align-items:center; justify-content:center; gap:0.5rem; padding:0.625rem 1.25rem; border-radius:var(--radius,8px); font-size:0.875rem; font-weight:500; font-family:inherit; cursor:pointer; transition:opacity 0.15s; border:none; text-decoration:none; } .s-btn-primary { background:var(--primary); color:#fff; } .s-btn-primary:hover { opacity:0.88; } .s-btn-secondary { background:var(--surface); color:var(--text); border:1px solid var(--border); } .s-btn-secondary:hover { background:var(--surface-hover); } .s-btn-danger { background:transparent; color:var(--error); border:none; cursor:pointer; padding:0.375rem 0.625rem; font-size:0.8125rem; font-weight:500; font-family:inherit; } .s-btn-danger:hover { opacity:0.75; } .s-badge { display:inline-flex; align-items:center; padding:0.2rem 0.625rem; border-radius:var(--radius-full,999px); font-size:0.75rem; font-weight:500; } .s-badge-primary { background:var(--primary-subtle); color:var(--primary); } .s-badge-success { background:var(--c-success-50,rgba(16,185,129,0.1)); color:var(--c-success-700,#065f46); } .s-toggle-row { display:flex; align-items:center; justify-content:space-between; padding:0.875rem 1rem; border:1px solid var(--border); border-radius:var(--radius,8px); } .s-row-icon { width:40px; height:40px; border-radius:var(--radius,8px); display:flex; align-items:center; justify-content:center; flex-shrink:0; } /* ── analytics ────────────────────────────────────────────────── */ .analytics-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6, 1.5rem); } .analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4, 1rem); margin-bottom: var(--space-6, 1.5rem); } .stat-card { background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: var(--space-5, 1.25rem); transition: transform 0.15s, box-shadow 0.15s; } .stat-card:hover { border-color: var(--border-strong, #d1d5db); } .stat-value { font-size: 2rem; font-weight: 700; color: var(--text, #1f2937); } .stat-label { font-size: 0.875rem; color: var(--text-muted, #6b7280); margin-top: 0.25rem; } .stat-trend { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; margin-top: 0.5rem; } .stat-trend.up { background: #d1fae5; color: #065f46; } .stat-trend.down { background: #fee2e2; color: #991b1b; } .chart-container { background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: var(--space-5, 1.25rem); margin-bottom: var(--space-4, 1rem); } .chart-title { font-size: 1rem; font-weight: 600; color: var(--text, #1f2937); margin-bottom: var(--space-3, 0.75rem); } .analytics-row { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-4, 1rem); margin-bottom: var(--space-4, 1rem); } @media (max-width: 768px) { .analytics-row { grid-template-columns: 1fr; } } /* ── get_started ────────────────────────────────────────────────── */ /* === Get Started / Onboarding === */ .gs-page{max-width:680px;margin:0 auto;padding:1.5rem 1rem 3rem} /* Welcome header */ .gs-welcome{text-align:center;padding:1.5rem 0 1.75rem} .gs-avatar{width:52px;height:52px;border-radius:50%;background:var(--primary);display:inline-flex;align-items:center;justify-content:center;font-size:1.25rem;font-weight:800;color:#fff;margin-bottom:.75rem} .gs-h1{font-size:1.5rem;font-weight:800;color:var(--text);margin:0 0 .375rem;line-height:1.2} .gs-sub{font-size:.875rem;color:var(--text-muted);line-height:1.5;margin:0} /* Progress steps */ .gs-steps{display:flex;align-items:center;justify-content:center;gap:0;margin-bottom:2rem} .gs-step{display:flex;align-items:center;gap:.375rem;font-size:.6875rem;font-weight:600;color:var(--text-muted)} .gs-step.active{color:var(--primary)} .gs-step.done{color:#059669} .gs-step-num{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.625rem;font-weight:700;background:var(--border);color:var(--text-muted);flex-shrink:0} .gs-step.active .gs-step-num{background:var(--primary);color:#fff} .gs-step.done .gs-step-num{background:#059669;color:#fff} .gs-step-line{width:2rem;height:1px;background:var(--border);flex-shrink:0} /* Section heading */ .gs-section-h{font-size:.8125rem;font-weight:700;color:var(--text);margin:0 0 .75rem;text-transform:uppercase;letter-spacing:.04em;display:flex;align-items:center;gap:.5rem} .gs-section-sub{font-size:.75rem;color:var(--text-muted);margin:-0.5rem 0 .875rem;line-height:1.5} /* Domain cards */ .gs-domains{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.625rem;margin-bottom:1.75rem} .gs-domain{border-radius:.875rem;background:var(--surface);border:2px solid var(--border);padding:1rem .875rem;cursor:pointer;touch-action:manipulation;transition:all .12s;text-decoration:none;display:block;position:relative} .gs-domain:hover{border-color:var(--primary);box-shadow:0 4px 16px rgba(92,107,192,.1)} .gs-domain.selected{border-color:var(--primary);background:rgba(92,107,192,.05)} .gs-domain-icon{display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;margin-bottom:.625rem;color:var(--text-muted)} .gs-domain-name{font-size:.8125rem;font-weight:700;color:var(--text);margin-bottom:.125rem} .gs-domain-desc{font-size:.625rem;color:var(--text-muted);line-height:1.4} .gs-domain-check{position:absolute;top:.5rem;right:.625rem;font-size:.75rem;display:none} .gs-domain.selected .gs-domain-check{display:block;color:var(--primary)} /* PWA install */ .gs-pwa{border-radius:.875rem;background:rgba(92,107,192,.05);border:1px solid rgba(92,107,192,.2);padding:1.125rem;margin-bottom:1.5rem;display:flex;align-items:flex-start;gap:.875rem} .gs-pwa-icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border:1.5px solid var(--border);border-radius:.5rem;color:var(--text-muted);margin-top:.125rem} .gs-pwa-body{flex:1} .gs-pwa-h{font-size:.875rem;font-weight:700;color:var(--text);margin:0 0 .25rem} .gs-pwa-p{font-size:.75rem;color:var(--text-muted);margin:0 0 .75rem;line-height:1.5} .gs-pwa-btn{display:inline-flex;align-items:center;gap:.375rem;padding:.5rem 1rem;border-radius:.5rem;font-size:.75rem;font-weight:600;background:var(--primary);color:#fff;border:none;cursor:pointer;touch-action:manipulation;min-height:40px;transition:opacity .1s} .gs-pwa-btn:hover{opacity:.9} .gs-pwa-hint{font-size:.625rem;color:var(--text-muted);margin-top:.375rem} /* Team invite */ .gs-invite{border-radius:.875rem;background:var(--surface);border:1px solid var(--border);padding:1.125rem;margin-bottom:1.5rem} .gs-invite-row{display:flex;gap:.5rem} .gs-invite-input{flex:1;padding:.5rem .75rem;border-radius:.5rem;border:1px solid var(--border);background:var(--bg);color:var(--text);font-size:.8125rem;font-family:inherit;min-height:40px;transition:border-color .12s} .gs-invite-input:focus{outline:none;border-color:var(--primary)} .gs-invite-btn{padding:.5rem 1rem;border-radius:.5rem;border:none;background:var(--primary);color:#fff;font-size:.75rem;font-weight:600;cursor:pointer;touch-action:manipulation;min-height:40px;white-space:nowrap;transition:opacity .1s} .gs-invite-btn:hover{opacity:.9} .gs-invite-hint{font-size:.6875rem;color:var(--text-muted);margin-top:.375rem} /* Action buttons */ .gs-actions{display:flex;flex-direction:column;gap:.625rem} .gs-action-btn{display:flex;align-items:center;gap:.75rem;padding:1rem 1.125rem;border-radius:.875rem;background:var(--surface);border:1.5px solid var(--border);cursor:pointer;text-decoration:none;touch-action:manipulation;transition:all .12s} .gs-action-btn:hover{border-color:var(--primary);box-shadow:0 2px 12px rgba(92,107,192,.08)} .gs-action-btn-primary{background:var(--primary);border-color:var(--primary);color:#fff} .gs-action-btn-primary:hover{opacity:.9} .gs-action-icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem} .gs-action-body{flex:1} .gs-action-name{font-size:.875rem;font-weight:700;color:var(--text);margin-bottom:.125rem} .gs-action-btn-primary .gs-action-name{color:#fff} .gs-action-desc{font-size:.6875rem;color:var(--text-muted);line-height:1.4} .gs-action-btn-primary .gs-action-desc{color:rgba(255,255,255,.8)} .gs-action-arrow{font-size:.875rem;color:var(--text-muted);flex-shrink:0} .gs-action-btn-primary .gs-action-arrow{color:rgba(255,255,255,.8)} /* Skip */ .gs-skip{text-align:center;margin-top:1.25rem} .gs-skip a{font-size:.75rem;color:var(--text-muted);text-decoration:none} .gs-skip a:hover{color:var(--primary)} /* ── card_engine ────────────────────────────────────────────────── */ /* Card Engine — scoped design tokens */ .ce-hub-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; background: #4f46e5; color: white; border: none; cursor: pointer; font-size: 14px; font-weight: 500; } .ce-hub-btn i[data-lucide], .ce-hub-btn svg { width: 15px; height: 15px; flex-shrink: 0; } .ce-section-wrap { background: var(--color-surface, #fff); border: 1px solid var(--color-border, #e5e7eb); border-radius: 12px; padding: 20px 24px; margin-bottom: 16px; } .ce-section-title-main { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--color-text, #111827); margin: 0 0 16px; } .ce-section-title-main i[data-lucide], .ce-section-title-main svg { width: var(--icon-sm, 16px); height: var(--icon-sm, 16px); flex-shrink: 0; } /* Card engine title icon: override global .is-title-icon 28px to token md (20px) */ #card-engine-app .is-title-icon i[data-lucide], #card-engine-app .is-title-icon svg { width: var(--icon-md, 20px); height: var(--icon-md, 20px); flex-shrink: 0; } .ce-count { background: #f3f4f6; color: #6b7280; font-size: 12px; padding: 1px 6px; border-radius: 10px; font-weight: 500; } /* Form */ .ce-form { display: flex; flex-direction: column; gap: 14px; } .ce-field { display: flex; flex-direction: column; gap: 5px; } .ce-field--full { width: 100%; } .ce-label { font-size: 13px; font-weight: 600; color: #374151; } .ce-required { color: #ef4444; } .ce-optional { font-weight: 400; color: #9ca3af; font-size: 12px; } .ce-help { font-size: 12px; color: #9ca3af; } .ce-input { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; background: #fff; transition: border-color .15s; font-family: inherit; } .ce-input--lg { padding: 12px 14px; font-size: 15px; } .ce-input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.1); } .ce-select { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; background: #fff; cursor: pointer; font-family: inherit; } .ce-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; } .ce-form-footer { display: flex; align-items: center; gap: 16px; padding-top: 4px; } .ce-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 500; transition: all .15s; } .ce-btn i[data-lucide], .ce-btn svg { width: 15px; height: 15px; flex-shrink: 0; } .ce-btn--primary { background: #4f46e5; color: white; } .ce-btn--primary:hover { background: #4338ca; } .ce-btn--sm { padding: 5px 10px; font-size: 12px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; cursor: pointer; text-decoration: none; color: inherit; } .ce-btn--sm:hover { background: #f3f4f6; } /* Loading */ .ce-loading { display: none; align-items: center; gap: 8px; font-size: 13px; color: #6b7280; } .ce-loading.htmx-request { display: flex; } .ce-spinner { width: 16px; height: 16px; border: 2px solid #e5e7eb; border-top-color: #4f46e5; border-radius: 50%; animation: ce-spin .6s linear infinite; } @keyframes ce-spin { to { transform: rotate(360deg); } } /* Result area */ .ce-result-area { margin-bottom: 16px; } /* Card preview */ .ce-card-preview { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; } .ce-card-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap; gap: 8px; } .ce-card-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .ce-card-actions { display: flex; gap: 6px; flex-wrap: wrap; } .ce-card-sections { padding: 4px 0; } .ce-section { padding: 14px 18px; border-bottom: 1px solid #f3f4f6; } .ce-section--warning { background: #fff7ed; } .ce-section:last-child { border-bottom: none; } .ce-section-title { margin: 0 0 6px; font-size: 13px; color: #374151; font-weight: 600; } .ce-section-body { font-size: 14px; line-height: 1.65; color: #4b5563; white-space: pre-wrap; word-break: break-word; } .ce-card-footer { padding: 8px 16px; background: #f9fafb; border-top: 1px solid #e5e7eb; font-size: 11px; color: #9ca3af; } /* Badges */ .ce-badge { padding: 2px 7px; border-radius: 20px; font-size: 11px; font-weight: 600; display: inline-block; } .ce-badge--anthropic { background: #fef3c7; color: #92400e; } .ce-badge--openai { background: #d1fae5; color: #065f46; } .ce-badge--fallback { background: #f3f4f6; color: #6b7280; } .ce-badge--safe { background: #d1fae5; color: #065f46; } .ce-badge--warn { background: #fef3c7; color: #92400e; } .ce-badge--global { background: #e0e7ff; color: #3730a3; } .ce-badge--custom { background: #fce7f3; color: #9d174d; } /* Tags */ .ce-tag { padding: 1px 6px; border-radius: 4px; font-size: 11px; background: #f3f4f6; color: #6b7280; display: inline-block; } .ce-tag--cat { background: #ede9fe; color: #5b21b6; } .ce-tag--tone { background: #e0f2fe; color: #0369a1; } .ce-tag--lang { background: #d1fae5; color: #065f46; } /* Template grid */ .ce-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; } .ce-template-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; background: #fafafa; transition: all .15s; } .ce-template-card:hover { border-color: #4f46e5; background: #fafffe; } .ce-template-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; } .ce-template-name { font-size: 13px; font-weight: 600; color: #111827; } .ce-template-meta { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; } .ce-template-desc { font-size: 12px; color: #6b7280; margin: 6px 0; line-height: 1.4; } .ce-template-langs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; } .ce-lang-dot { font-size: 10px; font-weight: 700; color: #4f46e5; background: #e0e7ff; padding: 1px 5px; border-radius: 3px; } /* Recent cards list */ .ce-cards-list { display: flex; flex-direction: column; gap: 1px; } .ce-card-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #f3f4f6; text-decoration: none; color: inherit; transition: background .1s; border-radius: 6px; } .ce-card-row:hover { background: #f9fafb; } .ce-card-row-topic { flex: 1; font-size: 14px; color: #111827; font-weight: 500; } .ce-card-row-meta { display: flex; gap: 4px; flex-wrap: wrap; } .ce-card-row-time { font-size: 12px; color: #9ca3af; white-space: nowrap; } /* Error */ .ce-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 16px; border-radius: 8px; font-size: 14px; } /* RTL support for Arabic cards */ [dir="rtl"] .ce-section-body { font-family: inherit; } @media (max-width: 600px) { .ce-grid-4 { grid-template-columns: 1fr 1fr; } .ce-template-grid { grid-template-columns: 1fr; } .ce-card-row { flex-wrap: wrap; } } /* ── traces_detail ────────────────────────────────────────────────── */ /* td- = trace detail */ .td-wrap { max-width: 960px; margin: 0 auto; padding: 1rem; } /* ── Header ── */ .td-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; } .td-back { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.8125rem; color: var(--text-muted); text-decoration: none; padding: 0.25rem 0.5rem; border-radius: 0.375rem; transition: background 0.12s; flex-shrink: 0; } .td-back:hover { background: var(--surface); color: var(--text); } .td-header-main { flex: 1; min-width: 0; } .td-title { font-size: 1.25rem; font-weight: 700; color: var(--text); line-height: 1.3; margin: 0; } .td-id { font-size: 0.8125rem; font-family: monospace; color: var(--text-light); margin-top: 0.125rem; } .td-header-badges { display: flex; gap: 0.375rem; flex-wrap: wrap; margin-top: 0.375rem; } .td-badge { font-size: 0.6875rem; font-weight: 600; padding: 0.125rem 0.5rem; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.03em; } /* ── State tabs ── */ .td-state-bar { display: flex; gap: 0.25rem; margin-bottom: 1.25rem; padding: 0.375rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; overflow-x: auto; } .td-state-step { flex: 1; text-align: center; padding: 0.375rem 0.5rem; font-size: 0.75rem; font-weight: 600; border-radius: 0.5rem; cursor: pointer; white-space: nowrap; transition: all 0.12s; color: var(--text-muted); border: none; background: transparent; } .td-state-step.current { background: var(--text); color: var(--bg); } .td-state-step.past { color: #16a34a; } .td-state-step:not(.current):hover { background: var(--border); } /* ── Grid layout ── */ .td-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; } @media (max-width: 768px) { .td-grid { grid-template-columns: 1fr; } } /* ── Card ── */ .td-card { background: var(--bg); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem; margin-bottom: 1rem; } .td-card-title { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.375rem; } /* ── Field rows ── */ .td-field { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.375rem 0; border-bottom: 1px solid var(--border); } .td-field:last-child { border-bottom: none; } .td-field-label { font-size: 0.8125rem; color: var(--text-muted); flex-shrink: 0; margin-right: 0.75rem; } .td-field-value { font-size: 0.8125rem; color: var(--text); font-weight: 500; text-align: right; word-break: break-word; } /* ── Blocker banner ── */ .td-blocker { background: #fef2f2; border: 1px solid #fecaca; border-radius: 0.75rem; padding: 0.75rem 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; } .dark .td-blocker { background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.2); } .td-blocker-text { flex: 1; font-size: 0.875rem; color: #991b1b; font-weight: 600; } .dark .td-blocker-text { color: #fca5a5; } /* ── Action buttons ── */ .td-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; } .td-btn { padding: 0.375rem 0.875rem; font-size: 0.8125rem; font-weight: 600; border-radius: 0.5rem; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: all 0.12s; white-space: nowrap; } .td-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .td-btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); } .td-btn-primary:hover { opacity: 0.85; } .td-btn-danger { color: #dc2626; border-color: #fecaca; } .td-btn-danger:hover { background: #dc2626; color: white; border-color: #dc2626; } /* ── Timeline ── */ .td-timeline { position: relative; padding-left: 1.25rem; } .td-timeline::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--border); } .td-event { position: relative; padding-bottom: 1rem; } .td-event:last-child { padding-bottom: 0; } .td-event-dot { position: absolute; left: -1.25rem; top: 0.25rem; width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: 2px solid var(--bg); } .td-event-dot.state { background: #6366f1; } .td-event-dot.update { background: #3b82f6; } .td-event-dot.create { background: #10b981; } .td-event-type { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); } .td-event-detail { font-size: 0.8125rem; color: var(--text); margin-top: 0.0625rem; } .td-event-meta { font-size: 0.6875rem; color: var(--text-light); margin-top: 0.125rem; } /* ── Editable fields ── */ .td-edit-trigger { cursor: pointer; border-bottom: 1px dashed var(--border); } .td-edit-trigger:hover { border-color: var(--primary); color: var(--primary); } /* ── Tags ── */ .td-tags { display: flex; gap: 0.25rem; flex-wrap: wrap; } .td-tag { font-size: 0.6875rem; font-weight: 500; padding: 0.125rem 0.375rem; border-radius: 9999px; background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 0.25rem; } .td-tag-remove { cursor: pointer; opacity: 0.5; font-size: 0.625rem; } .td-tag-remove:hover { opacity: 1; color: #dc2626; } /* ── Inline edit form ── */ .td-inline-form { display: flex; gap: 0.375rem; align-items: center; } .td-inline-form input, .td-inline-form textarea, .td-inline-form select { flex: 1; font-size: 0.8125rem; padding: 0.25rem 0.5rem; border: 1px solid var(--primary); border-radius: 0.375rem; background: var(--bg); color: var(--text); } .td-inline-form button { padding: 0.25rem 0.5rem; font-size: 0.75rem; font-weight: 600; border-radius: 0.375rem; border: none; cursor: pointer; } @media (max-width: 640px) { .td-header { flex-direction: column; } .td-state-bar { gap: 0.125rem; } .td-state-step { font-size: 0.6875rem; padding: 0.25rem 0.375rem; } .td-actions { flex-direction: column; } .td-btn { width: 100%; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; } } /* ── traces_import ────────────────────────────────────────────────── */ .imp-page { max-width: 800px; margin: 0 auto; padding: 1.5rem 1rem; } .imp-back { text-decoration: none; color: var(--text-muted); font-size: 0.8125rem; display: inline-flex; align-items: center; gap: 0.25rem; margin-bottom: 1rem; } .imp-back:hover { color: var(--text); } .imp-title { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; } .imp-subtitle { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.5rem; } .imp-section { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem; margin-bottom: 1rem; } .imp-section-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 0.75rem; } .imp-textarea { width: 100%; min-height: 200px; padding: 0.75rem; font-family: monospace; font-size: 0.8125rem; background: var(--bg); border: 1px solid var(--border); border-radius: 0.5rem; color: var(--text); resize: vertical; line-height: 1.5; } .imp-textarea:focus { outline: none; border-color: var(--primary); } .imp-textarea::placeholder { color: var(--text-light); } .imp-hint { font-size: 0.75rem; color: var(--text-light); margin-top: 0.375rem; } .imp-btn { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 1.25rem; border-radius: 0.5rem; font-size: 0.8125rem; font-weight: 600; cursor: pointer; border: 1.5px solid var(--text); background: var(--text); color: var(--bg); transition: opacity 0.12s; } .imp-btn:hover { opacity: 0.85; } .imp-btn:disabled { opacity: 0.4; cursor: not-allowed; } .imp-btn-outline { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); } .imp-btn-outline:hover { border-color: var(--text); } .imp-actions { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; } /* Preview table */ .imp-preview { overflow-x: auto; margin-top: 0.75rem; } .imp-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; } .imp-table th { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); text-align: left; padding: 0.375rem 0.5rem; border-bottom: 2px solid var(--border); } .imp-table td { padding: 0.375rem 0.5rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; } .imp-table tr.invalid { background: #fef2f2; } .dark .imp-table tr.invalid { background: rgba(220,38,38,.06); } .imp-row-err { font-size: 0.6875rem; color: #dc2626; } /* Result */ .imp-result { padding: 1rem; border-radius: 0.75rem; } .imp-result.success { background: #f0fdf4; border: 1px solid #bbf7d0; } .dark .imp-result.success { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.2); } .imp-result-num { font-size: 1.5rem; font-weight: 800; color: #16a34a; } .imp-result-label { font-size: 0.8125rem; color: var(--text-muted); } .imp-example { font-family: monospace; font-size: 0.75rem; background: var(--bg); padding: 0.625rem; border-radius: 0.375rem; border: 1px solid var(--border); line-height: 1.6; white-space: pre; overflow-x: auto; } @media (max-width: 640px) { .imp-textarea { min-height: 150px; font-size: 0.75rem; } .imp-actions { flex-direction: column; } .imp-btn { width: 100%; justify-content: center; min-height: 44px; } } /* ── amraved_webchat ────────────────────────────────────────────────── */ .chat-body { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; height: calc(100vh - 120px); gap: 0; } /* ── Header ─────────────────────────────────────────────────── */ .chat-header { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: .875rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; } .chat-header__title { font-size:.9375rem; font-weight:800; color:var(--text); } .chat-header__sub { font-size:.75rem; color:var(--text-muted); margin-top:.1rem; } .chat-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(16,185,129,.2); animation: pulse 2s infinite; } @keyframes pulse { 0%,100%{box-shadow:0 0 0 3px rgba(16,185,129,.2)} 50%{box-shadow:0 0 0 6px rgba(16,185,129,.08)} } /* ── Messages ───────────────────────────────────────────────── */ .chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .625rem; background: var(--bg); border-left: 1px solid var(--border); border-right: 1px solid var(--border); } .msg { max-width: 75%; padding: .625rem .875rem; border-radius: 1rem; font-size: .875rem; line-height: 1.5; word-break: break-word; } .msg--patient { align-self: flex-end; background: linear-gradient(135deg, #1e40af, #0d9488); color: #fff; border-bottom-right-radius: .25rem; } .msg--agent { align-self: flex-start; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: .25rem; box-shadow: var(--shadow-xs); } .msg--urgent { border-left: 3px solid #ef4444; } .msg--system { align-self: center; background: rgba(245,158,11,.1); color: #92400e; border: 1px solid rgba(245,158,11,.2); border-radius: .75rem; font-size: .75rem; font-weight: 600; max-width: 90%; text-align: center; } .msg-meta { font-size: .625rem; color: var(--text-muted); margin-top: .2rem; } .typing-indicator { align-self: flex-start; display: flex; gap: .3rem; padding: .5rem .875rem; background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; border-bottom-left-radius: .25rem; } .typing-indicator span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: bounce .8s infinite; } .typing-indicator span:nth-child(2) { animation-delay: .15s; } .typing-indicator span:nth-child(3) { animation-delay: .30s; } @keyframes bounce { 0%,80%,100%{transform:scale(0.8)} 40%{transform:scale(1.2)} } /* ── Footer / Input ─────────────────────────────────────────── */ .chat-footer { background: var(--surface); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: .75rem 1rem; display: flex; gap: .5rem; align-items: center; } .chat-input { flex: 1; padding: .625rem .875rem; border: 1.5px solid var(--border); border-radius: .75rem; background: var(--bg); color: var(--text); font-size: .875rem; outline: none; transition: border-color .15s; } .chat-input:focus { border-color: #0284c7; } .chat-send-btn { padding: .625rem 1.125rem; background: linear-gradient(135deg, #1e40af, #0d9488); color: #fff; border: none; border-radius: .75rem; font-size: .875rem; font-weight: 700; cursor: pointer; transition: opacity .15s; white-space: nowrap; } .chat-send-btn:hover { opacity: .9; } .chat-send-btn:disabled { opacity: .5; cursor: default; } /* ── Urgency banner ─────────────────────────────────────────── */ .urgency-banner { display: flex; align-items: center; gap: .5rem; padding: .625rem .875rem; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); border-radius: .625rem; font-size: .8125rem; font-weight: 600; color: #b91c1c; margin: .5rem 0; } /* ── Lang selector ──────────────────────────────────────────── */ .lang-bar { display: flex; gap: .375rem; flex-wrap: wrap; margin-bottom: .5rem; } .lang-btn { padding: .25rem .625rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); font-size: .6875rem; font-weight: 700; cursor: pointer; color: var(--text-muted); transition: all .15s; } .lang-btn.active, .lang-btn:hover { border-color: #0284c7; color: #0284c7; background: rgba(2,132,199,.07); } /* ── study_detail ────────────────────────────────────────────────── */ .metric-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; } .metric-card__label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; } .metric-card__before { font-size: 1.375rem; font-weight: 700; color: #92400e; } .metric-card__after { font-size: 1.375rem; font-weight: 700; color: #065f46; } .metric-card__delta { font-size: 0.8125rem; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; } .delta-positive { color: #dc2626; } /* increase is bad for most metrics */ .delta-negative { color: #16a34a; } /* decrease is good for delay/complication/mortality */ .delta-neutral { color: var(--text-muted); } .group-badge-before { background: #fef3c7; color: #92400e; border-radius: 999px; padding: 2px 10px; font-size: 0.75rem; font-weight: 600; } .group-badge-after { background: #d1fae5; color: #065f46; border-radius: 999px; padding: 2px 10px; font-size: 0.75rem; font-weight: 600; } /* ── Shared Components extras ─────────────────────────────── */ /* ── nav_search ─── */ .nav-search { flex: 1; display: flex; justify-content: center; align-items: center; min-width: 0; padding: 0 16px; position: relative; } .nav-search-trigger { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; min-width: 280px; height: 44px; padding: 0 16px; background: var(--bg); border: 2px solid var(--border); border-radius: 22px; cursor: pointer; color: var(--text-muted); font-size: 14px; font-weight: 500; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); position: relative; overflow: hidden; } .nav-search-trigger::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary) 0%, transparent 100%); opacity: 0; transition: opacity 0.2s ease; border-radius: inherit; } .nav-search-trigger:hover { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); color: var(--text); transform: translateY(-1px); } .nav-search-trigger:hover::before { opacity: 0.05; } .nav-search-trigger:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); } .nav-search-trigger-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; transition: opacity 0.2s ease; } .nav-search-trigger:hover .nav-search-trigger-icon { opacity: 1; } .nav-search-trigger-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; } .nav-search-trigger-kbd { flex-shrink: 0; display: flex; align-items: center; gap: 2px; padding: 4px 8px; font-size: 11px; font-family: var(--font-mono, 'SF Mono', 'Monaco', 'Inconsolata', monospace); color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; opacity: 0.8; pointer-events: none; letter-spacing: 0.025em; font-weight: 500; transition: all 0.2s ease; } .nav-search-trigger:hover .nav-search-trigger-kbd { opacity: 1; background: var(--bg); border-color: var(--primary); } @media (max-width: 1024px) { .nav-search-trigger { max-width: 360px; min-width: 240px; } } @media (max-width: 768px) { .nav-search { padding: 0 6px; } .nav-search-trigger { max-width: 260px; min-width: 44px; /* collapses to icon-only pill at very small widths */ height: 40px; padding: 0 12px; font-size: 13px; } .nav-search-trigger-kbd { display: none; } } /* Extra-narrow: only show the search icon, hide the text label */ @media (max-width: 400px) { .nav-search-trigger { min-width: 40px; padding: 0 10px; gap: 0; } .nav-search-trigger-label { display: none; } } /* ── add_fab ─── */ .fab-wrap{position:fixed;bottom:80px;right:1rem;z-index:80;display:flex;flex-direction:column-reverse;align-items:flex-end;gap:.5rem} @media(max-width:768px){.fab-wrap{display:none}} @media(min-width:769px){.fab-wrap{bottom:1.5rem;right:1.5rem}} .fab-btn{width:52px;height:52px;border-radius:50%;border:none;background:var(--text);color:var(--bg);cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.15);transition:transform .2s,box-shadow .15s;touch-action:manipulation} .fab-btn:hover{transform:scale(1.05);box-shadow:0 6px 20px rgba(0,0,0,.2)} .fab-btn:active{transform:scale(.95)} .fab-btn svg{transition:transform .2s} .fab-btn.fab-open svg{transform:rotate(45deg)} .fab-menu{display:flex;flex-direction:column-reverse;gap:.375rem;opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .15s,transform .15s} .fab-menu.fab-menu-visible{opacity:1;pointer-events:auto;transform:translateY(0)} .fab-item{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-radius:.5rem;background:var(--surface);border:1px solid var(--border);color:var(--text);font-size:.8125rem;font-weight:500;cursor:pointer;white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,.08);transition:border-color .12s,background .12s;min-height:40px} .fab-item:hover{border-color:var(--primary);background:var(--bg)} .fab-item:active{opacity:.85} .fab-item-icon{width:18px;height:18px;flex-shrink:0;color:var(--text-muted)} .fab-backdrop{display:none;position:fixed;inset:0;z-index:79;background:rgba(0,0,0,.1)} .fab-backdrop.fab-backdrop-visible{display:block} /* ── annotation_drawer ─── */ .ca-drawer-header{ display:flex;align-items:center;justify-content:space-between; padding:0 var(--space-4) var(--space-3); border-bottom:1px solid var(--border-subtle, var(--border));} .ca-drawer-title{display:flex;align-items:center;gap:var(--space-2); font-size:var(--text-sm);font-weight:700;color:var(--text);} .ca-tab-btn{ padding:var(--space-1) var(--space-3);border-radius:var(--radius-full); font-size:var(--text-xs);font-weight:600;border:none;cursor:pointer; background:var(--surface-hover);color:var(--text-muted); transition:background var(--dur-fast,150ms),color var(--dur-fast,150ms);} .ca-tab-btn[aria-selected="true"]{background:var(--primary);color:#fff;} .ca-close-btn{ width:32px;height:32px;border-radius:50%;border:1px solid var(--border); background:var(--surface);display:flex;align-items:center;justify-content:center; cursor:pointer;color:var(--text-muted);transition:background var(--dur-fast,150ms);} .ca-close-btn:hover{background:var(--surface-active);} .ca-tab-pane{padding-top:var(--space-3);} .ca-stamp-preview{ font-size:.75rem;font-weight:600;padding:var(--space-1) var(--space-2); background:var(--surface-hover);border-radius:var(--radius-full);color:var(--text-secondary);} /* @keyframes spin — defined in main.css; no duplicate here */ /* ── quick_create ─── */ @keyframes qc-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } .qc-form { animation: qc-fade-in 0.15s ease; } /* Quick-create form utilities (replaces per-element inline styles) */ .qc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; } .qc-close-btn { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text-muted); line-height: 1; padding: 0.25rem; border-radius: var(--radius-sm); } .qc-close-btn:hover { color: var(--text); background: var(--surface-hover); } .qc-field { margin-bottom: 0.75rem; } .qc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; } .qc-subfield-row { display: none; margin-bottom: 0.75rem; } .qc-subfield-row.visible { display: block; } .qc-details { margin-bottom: 0.75rem; } .qc-details summary { font-size: 0.75rem; color: var(--primary); cursor: pointer; font-weight: 500; } .qc-details-body { margin-top: 0.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; } .qc-context-banner { display: none; margin-bottom: 0.75rem; padding: 0.625rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: color-mix(in srgb, var(--primary) 8%, transparent); font-size: 0.75rem; color: var(--text); } .qc-registre-section { display: none; margin-bottom: 0.75rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: color-mix(in srgb, var(--success) 8%, transparent); } .qc-registre-label { font-size: 0.75rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; } /* ── case_products_panel (cpp-*) ─── */ .cpp-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 1.25rem; } .cpp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; } .cpp-header-left { display: flex; align-items: center; gap: 0.5rem; } .cpp-title { font-size: 0.9375rem; font-weight: 700; margin: 0; } .cpp-add-btn { padding: 0.25rem 0.75rem; border-radius: var(--radius-md); border: 1px solid var(--border); background: transparent; color: inherit; font-size: 0.8rem; cursor: pointer; } .cpp-add-btn:hover { background: var(--surface-hover); } .cpp-products { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; } .cpp-product-row { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 0.75rem; background: var(--bg); border-radius: var(--radius-md); } .cpp-product-icon { font-size: 1.2rem; flex-shrink: 0; } .cpp-product-info { flex: 1; min-width: 0; } .cpp-product-name { font-weight: 600; font-size: 0.85rem; } .cpp-product-meta { font-size: 0.72rem; color: var(--text-muted); } .cpp-empty { text-align: center; padding: 1.5rem 1rem; color: var(--text-muted); } .cpp-empty-icon { font-size: 2rem; margin-bottom: 0.5rem; } .cpp-empty-text { font-size: 0.85rem; margin: 0; } .cpp-empty-hint { font-size: 0.8rem; margin: 0.25rem 0 0; opacity: 0.7; } .cpp-section { border-top: 1px solid var(--border); padding-top: 0.875rem; margin-top: 0.75rem; } .cpp-section-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 0.5rem; } .cpp-section-label--error { color: var(--error); } .cpp-action-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; margin-bottom: 0.375rem; } .cpp-action-row--error { color: var(--error); } .cpp-header--compact { margin-bottom: 0.625rem; } .cpp-section-label--flush { margin: 0; } .cpp-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; } .cpp-kpi { background: var(--bg); padding: 0.5rem 0.625rem; border-radius: var(--radius-md); text-align: center; } .cpp-kpi-value { font-size: 1.1rem; font-weight: 700; color: var(--primary); } .cpp-kpi-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; } .cpp-activator { display: none; padding: 1rem; border-top: 1px solid var(--border); margin-top: 0.75rem; } .cpp-activator.visible { display: block; } .cpp-activator-title { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 700; } .cpp-form-label { font-size: 0.8rem; font-weight: 600; display: block; margin-bottom: 0.25rem; } .cpp-select, .cpp-textarea { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); color: var(--text); font-size: 0.875rem; font-family: inherit; } .cpp-textarea { resize: vertical; } .cpp-submit-btn { padding: 0.5rem 1rem; border-radius: var(--radius-md); border: none; background: var(--primary); color: #fff; font-size: 0.875rem; font-weight: 600; cursor: pointer; font-family: inherit; } .cpp-submit-btn:hover { background: var(--primary-hover); } /* ── Sidebar spacer ─── */ .nav-spacer { flex: 1; } /* ── print utility (global) ─── */ @media print { .no-print { display: none; } } /* ── product_registry ─── */ .product-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.1); transform: translateY(-1px); } .domain-filter { transition: all 0.15s; } .domain-filter:hover:not(.active) { border-color: var(--primary, #4f46e5); color: var(--primary, #4f46e5); } .domain-filter.active { background: var(--primary, #4f46e5) !important; color: white !important; border-color: var(--primary, #4f46e5) !important; } @media (max-width: 640px) { #products-grid { grid-template-columns: 1fr; } } /* ── Small Apps ─────────────────────────────────────── */ /* ── pharma ─── */ .queue-item { display: flex; align-items: center; justify-content: space-between; padding: 1rem; } .queue-item:hover { background: var(--surface-hover); } .queue-item + .queue-item { border-top: 1px solid var(--border); } .alert-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; } .alert-badge.critical { background: rgba(239, 68, 68, 0.15); color: var(--danger); } .alert-badge.warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); } .alert-badge.success { background: rgba(16, 185, 129, 0.15); color: var(--success); } [data-theme="dark"] .alert-badge.critical { background: rgba(239, 68, 68, 0.25); } [data-theme="dark"] .alert-badge.warning { background: rgba(245, 158, 11, 0.25); } [data-theme="dark"] .alert-badge.success { background: rgba(16, 185, 129, 0.25); } /* ── labo ─── */ .qc-indicator { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: var(--radius-md); font-size: 0.75rem; font-weight: 600; } .qc-pass { background: rgba(16, 185, 129, 0.15); color: var(--success); } .qc-warn { background: rgba(245, 158, 11, 0.15); color: var(--warning); } .qc-fail { background: rgba(239, 68, 68, 0.15); color: var(--danger); } .tat-badge { font-family: monospace; } .specimen-card { display: flex; align-items: center; gap: 1rem; padding: 0.875rem; } .specimen-card:hover { background: var(--surface-hover); } .specimen-card + .specimen-card { border-top: 1px solid var(--border); } /* ── wb_new_case ─── */ @keyframes wbCardIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } } /* ── Sidebar divider ── */ .nav-stream-sep { height: 1px; background: var(--border, rgba(0,0,0,0.1)); opacity: 0.5; margin: 0.375rem 0.875rem; } @media (max-width: 959px) { .nav-stream-sep { margin: 0.375rem 0.5rem; } } /* ── Events hover flyout ── */ .nav-flyout-wrap { position: relative; } .nav-flyout-panel { display: none; position: absolute; left: calc(100% + 6px); top: 0; min-width: 220px; max-width: 280px; background: var(--bg-primary, #fff); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,0.13); z-index: 300; flex-direction: column; overflow: hidden; } [data-theme="dark"] .nav-flyout-panel { box-shadow: 0 8px 28px rgba(0,0,0,0.45); } .nav-flyout-wrap:hover .nav-flyout-panel, .nav-flyout-wrap:focus-within .nav-flyout-panel { display: flex; } .nav-flyout-head { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); padding: 0.625rem 0.875rem 0.375rem; border-bottom: 1px solid var(--border); } .nav-flyout-empty { display: block; padding: 0.75rem 0.875rem; font-size: 0.8125rem; color: var(--text-muted); } .nav-flyout-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; font-size: 0.8125rem; color: var(--text-secondary); text-decoration: none; transition: background 0.1s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nav-flyout-item:hover { background: var(--surface-hover, rgba(102,126,234,0.07)); color: var(--accent, #667eea); } .nav-flyout-item i, .nav-flyout-item svg { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.55; } .nav-flyout-foot { border-top: 1px solid var(--border); padding: 0.375rem 0.875rem; } .nav-flyout-all { font-size: 0.75rem; color: var(--accent, #667eea); text-decoration: none; font-weight: 600; } .nav-flyout-all:hover { text-decoration: underline; } /* Small chevron on nav item */ .nav-flyout-arrow { width: 10px !important; height: 10px !important; margin-left: auto; opacity: 0.35; flex-shrink: 0; } /* Icon-only tablet: shift flyout right of icon */ @media (max-width: 959px) { .nav-flyout-arrow { display: none; } } /* ── Header Private panel ── */ .hr-panel--private { width: 300px; } .hr-btn--private { position: relative; } .hr-btn--private i { color: var(--text-muted); } .hr-private-badge { display: inline-block; font-size: 0.5625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(107,70,193,0.12); color: #805ad5; border-radius: 20px; padding: 1px 6px; margin-left: auto; } .hr-private-clear { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; transition: background 0.1s; } .hr-private-clear:hover { background: var(--surface-hover); color: var(--danger); } .hr-private-hint { font-size: 0.6875rem; color: var(--text-muted); opacity: 0.6; align-self: center; }
/* ════════════════════════════════════════════════════════════════
YAZ App Patterns — Shared Application UI Components
════════════════════════════════════════════════════════════════
Version: 5.1.0 | Sprint 43
Extracted from per-template <style> blocks into a single source.
All values use design tokens from tokens.css — zero hardcoded colors.
Namespaces:
st-* Stream view (Traces feed)
kb-* Kanban board (Traces board view)
attn-* Attention/alert banner
qa-* Quick-add bar
wb-* Workbench (AYRAD cockpit)
ayrad-* AYRAD dashboard
cc-* Case card (Surgio / cross-domain)
sg-* Surgio-specific
════════════════════════════════════════════════════════════════ */
/* ── AYRAD brand accent (centralized so one place to update) ─── */
:root {
--ayrad-from: #1a4a6b;
--ayrad-to: #0d7377;
--ayrad-grad: linear-gradient(135deg, var(--ayrad-from) 0%, var(--ayrad-to) 100%);
}
/* ════════════════════════════════════════════════════════════════
1. VIEW TOGGLE (Stream / Board)
════════════════════════════════════════════════════════════════ */
.view-toggle {
display: inline-flex;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
overflow: hidden;
}
.view-toggle-btn {
padding: 0.375rem 0.875rem;
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
border: none;
background: transparent;
color: var(--text-muted);
cursor: pointer;
transition: all var(--duration-fast);
display: flex;
align-items: center;
gap: 0.375rem;
}
.view-toggle-btn.active {
background: var(--text);
color: var(--bg);
}
.view-toggle-btn:not(.active):hover {
background: var(--border);
color: var(--text);
}
/* ════════════════════════════════════════════════════════════════
2. STREAM VIEW (st-*)
════════════════════════════════════════════════════════════════ */
.st-section { margin-bottom: 1.25rem; }
.st-section-header {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.375rem 0;
margin-bottom: 0.5rem;
border-bottom: 1px solid var(--border);
}
.st-section-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.st-section-dot--error { background: var(--error); }
.st-section-dot--warning { background: var(--warning); }
.st-section-dot--success { background: var(--success); }
.st-section-dot--info { background: var(--c-primary-400); }
.st-section-dot--muted { background: var(--text-muted); }
.st-section-dot--teal { background: #0891b2; }
.st-section-title {
font-size: var(--text-sm);
font-weight: var(--weight-bold);
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text);
}
.st-section-count {
font-size: var(--text-xs);
font-weight: var(--weight-semibold);
color: var(--text-muted);
padding: 0.0625rem 0.375rem;
background: var(--surface);
border-radius: var(--radius-full);