Download src/static/css/cases.css from anaselamr/yaz: direct link, hf CLI and curl.
- Browser
- Download file 38.4 kB
-
https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/static/css/cases.css
- Command line
-
hf download hf://spaces/anaselamr/yaz/src/static/css/cases.css
-
curl -L -o cases.css https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/static/css/cases.css
38.4 kB
| /* ───────────────────────────────────────────────────────────── | |
| * cases.css — YAZ Cases Module | |
| * Migrated from inline <style> blocks | |
| * ─────────────────────────────────────────────────────────── */ | |
| /* ── workstation ────────────────────────────────────────────────── */ | |
| /* ═══════════════════════════════════════════════════════════ | |
| CASE WORKSTATION — Universal rich content editor | |
| ═══════════════════════════════════════════════════════════ */ | |
| /* ── Layout ── */ | |
| .ws-layout { | |
| display: grid; | |
| grid-template-columns: 260px 1fr; | |
| gap: 0; | |
| height: calc(100vh - 52px); | |
| overflow: hidden; | |
| } | |
| @media(max-width:768px){ | |
| .ws-layout { grid-template-columns: 1fr; height: auto; } | |
| .ws-sidebar { display: none; } | |
| .ws-sidebar.open { display: flex; position: fixed; top: 52px; left: 0; bottom: 0; width: 280px; z-index: 200; box-shadow: var(--shadow-lg); } | |
| } | |
| /* ── Sidebar ── */ | |
| .ws-sidebar { | |
| display: flex; flex-direction: column; | |
| background: var(--surface); border-right: 1px solid var(--border); | |
| overflow-y: auto; height: 100%; | |
| } | |
| .ws-sidebar-header { | |
| padding: 16px 14px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; | |
| } | |
| .ws-case-badge { | |
| font-size: 10px; font-family: 'Courier New', monospace; | |
| padding: 3px 8px; border-radius: 6px; font-weight: 700; | |
| background: var(--primary); color: #fff; display: inline-block; margin-bottom: 6px; | |
| } | |
| .ws-case-title { | |
| font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.35; | |
| white-space: nowrap; overflow: hidden; text-overflow: ellipsis; | |
| } | |
| .ws-case-meta { | |
| font-size: 11px; color: var(--text-muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; | |
| } | |
| .ws-case-status { | |
| font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 9999px; | |
| } | |
| /* ── Block Type Picker ── */ | |
| .ws-block-picker { padding: 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; } | |
| .ws-block-picker-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 8px; } | |
| .ws-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; } | |
| .ws-type-btn { | |
| display: flex; flex-direction: column; align-items: center; justify-content: center; | |
| gap: 3px; padding: 6px 4px; border-radius: 7px; border: 1px solid transparent; | |
| background: var(--bg); cursor: pointer; transition: border-color .12s, background .12s, color .12s; | |
| font-size: 9px; font-weight: 600; color: var(--text-muted); | |
| } | |
| .ws-type-btn:hover { border-color: var(--primary); background: #eef2ff; color: var(--primary); } | |
| .ws-type-btn:hover i[data-lucide] { color: var(--primary); } | |
| /* ── Sidebar Nav ── */ | |
| .ws-nav { flex: 1; padding: 12px; } | |
| .ws-nav-section { margin-bottom: 12px; } | |
| .ws-nav-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 6px; padding: 0 2px; } | |
| .ws-nav-link { | |
| display: flex; align-items: center; gap: 8px; padding: 7px 10px; | |
| border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--text-muted); | |
| text-decoration: none; transition: background .12s, color .12s; white-space: nowrap; | |
| } | |
| .ws-nav-link:hover, .ws-nav-link.active { background: var(--bg); color: var(--text); } | |
| /* ── Main area ── */ | |
| .ws-main { | |
| display: flex; flex-direction: column; overflow: hidden; background: var(--bg); | |
| } | |
| .ws-toolbar { | |
| display: flex; align-items: center; gap: 8px; padding: 8px 16px; | |
| background: var(--surface); border-bottom: 1px solid var(--border); | |
| flex-shrink: 0; flex-wrap: wrap; | |
| } | |
| .ws-tb-btn { | |
| display: flex; align-items: center; gap: 5px; padding: 6px 12px; | |
| border-radius: 8px; border: 1px solid var(--border); background: var(--bg); | |
| font-size: 12px; font-weight: 600; color: var(--text); cursor: pointer; transition: border-color .12s, color .12s; | |
| } | |
| .ws-tb-btn:hover { border-color: var(--primary); color: var(--primary); } | |
| .ws-tb-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); } | |
| .ws-tb-btn.primary:hover { opacity: .88; } | |
| /* ── Blocks canvas ── */ | |
| .ws-canvas { flex: 1; overflow-y: auto; padding: 24px; } | |
| .ws-canvas-inner { max-width: 840px; margin: 0 auto; } | |
| /* ── Blocks ── */ | |
| .ws-block { | |
| position: relative; margin-bottom: 14px; | |
| border: 2px solid transparent; border-radius: 10px; | |
| transition: border-color .15s; | |
| } | |
| .ws-block:hover { border-color: var(--border); } | |
| .ws-block-controls { | |
| display: none; position: absolute; top: -1px; right: -1px; | |
| flex-direction: row; gap: 3px; padding: 4px; | |
| background: var(--surface); border: 1px solid var(--border); | |
| border-radius: 0 10px 0 10px; z-index: 10; | |
| } | |
| .ws-block:hover .ws-block-controls { display: flex; } | |
| .ws-block-ctrl { | |
| width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; | |
| border: none; border-radius: 6px; background: var(--bg); cursor: pointer; | |
| font-size: 12px; transition: background .1s; color: var(--text-muted); | |
| } | |
| .ws-block-ctrl:hover { background: var(--border); color: var(--text); } | |
| .ws-block-ctrl.danger:hover { background: #fee2e2; color: #b91c1c; } | |
| /* Block inner styles */ | |
| .ws-block-inner { padding: 14px 16px; background: var(--surface); border-radius: 10px; } | |
| /* ── Heading blocks ── */ | |
| .ws-h1 { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1.2; } | |
| .ws-h2 { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.3; } | |
| .ws-h3 { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.4; } | |
| /* ── Text blocks ── */ | |
| .ws-text { font-size: 14px; line-height: 1.7; color: var(--text); white-space: pre-wrap; } | |
| /* ── Metric card ── */ | |
| .ws-metric-card { | |
| display: flex; align-items: center; gap: 14px; | |
| padding: 16px; border-radius: 10px; background: var(--surface); | |
| } | |
| .ws-metric-icon { font-size: 28px; } | |
| .ws-metric-value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; } | |
| .ws-metric-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; } | |
| /* ── Code block ── */ | |
| .ws-code { | |
| background: #0f172a; color: #e2e8f0; font-family: 'Courier New', monospace; | |
| font-size: 13px; line-height: 1.6; padding: 16px; border-radius: 8px; | |
| overflow-x: auto; white-space: pre; | |
| } | |
| /* ── Quote ── */ | |
| .ws-quote { | |
| border-left: 4px solid var(--primary); padding: 12px 18px; | |
| background: var(--bg); border-radius: 0 8px 8px 0; | |
| font-style: italic; color: var(--text); font-size: 15px; line-height: 1.6; | |
| } | |
| /* ── Divider ── */ | |
| .ws-divider { border: none; border-top: 2px solid var(--border); margin: 8px 0; } | |
| /* ── Table ── */ | |
| .ws-table { width: 100%; border-collapse: collapse; font-size: 13px; } | |
| .ws-table th { background: var(--bg); font-weight: 700; color: var(--text); text-align: left; padding: 8px 12px; border: 1px solid var(--border); } | |
| .ws-table td { padding: 7px 12px; border: 1px solid var(--border); color: var(--text); } | |
| .ws-table tr:hover td { background: var(--bg); } | |
| /* ── Message ── */ | |
| .ws-message { | |
| display: flex; gap: 10px; align-items: flex-start; | |
| padding: 12px 14px; border-radius: 10px; | |
| } | |
| .ws-msg-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; flex-shrink: 0; } | |
| .ws-msg-body { flex: 1; } | |
| .ws-msg-name { font-size: 12px; font-weight: 700; color: var(--text); } | |
| .ws-msg-text { font-size: 13px; color: var(--text-muted); margin-top: 2px; line-height: 1.5; } | |
| /* ── Checklist ── */ | |
| .ws-checklist { list-style: none; padding: 0; margin: 0; } | |
| .ws-checklist li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; color: var(--text); } | |
| .ws-checklist input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; } | |
| .ws-checklist li.done { text-decoration: line-through; color: var(--text-muted); } | |
| /* ── Link card ── */ | |
| .ws-link-card { | |
| display: flex; align-items: center; gap: 12px; padding: 12px 14px; | |
| border: 1px solid var(--border); border-radius: 10px; text-decoration: none; | |
| background: var(--bg); transition: border-color .15s; | |
| } | |
| .ws-link-card:hover { border-color: var(--primary); } | |
| .ws-link-icon { font-size: 22px; } | |
| .ws-link-url { font-size: 11px; color: var(--text-muted); margin-top: 1px; } | |
| .ws-link-title { font-size: 13px; font-weight: 600; color: var(--text); } | |
| /* ── Timeline ── */ | |
| .ws-timeline { position: relative; padding-left: 20px; } | |
| .ws-timeline::before { content:''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); } | |
| .ws-timeline-item { position: relative; margin-bottom: 14px; } | |
| .ws-timeline-dot { position: absolute; left: -20px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); top: 2px; } | |
| .ws-timeline-time { font-size: 10px; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; } | |
| .ws-timeline-text { font-size: 13px; color: var(--text); line-height: 1.5; } | |
| /* ── Video / Short ── */ | |
| .ws-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; background: #000; } | |
| .ws-video-wrap iframe, .ws-video-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; } | |
| .ws-short-wrap { max-width: 320px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #000; } | |
| .ws-short-wrap video { width: 100%; display: block; } | |
| /* ── Gallery ── */ | |
| .ws-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; } | |
| .ws-gallery img { width: 100%; border-radius: 8px; object-fit: cover; cursor: pointer; transition: opacity .15s; } | |
| .ws-gallery img:hover { opacity: .85; } | |
| /* ── Kanban mini ── */ | |
| .ws-kanban { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; } | |
| .ws-kanban-col { min-width: 160px; flex-shrink: 0; background: var(--bg); border-radius: 8px; padding: 8px; } | |
| .ws-kanban-col-title { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; padding: 0 2px; } | |
| .ws-kanban-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 8px; font-size: 12px; color: var(--text); margin-bottom: 6px; cursor: default; } | |
| /* ── Pinned block ── */ | |
| .ws-block.pinned .ws-block-inner { border: 1.5px solid #f59e0b; } | |
| .ws-pin-indicator { position: absolute; top: 8px; left: 8px; font-size: 12px; } | |
| /* ── Add block button ── */ | |
| .ws-add-btn { | |
| display: flex; align-items: center; justify-content: center; gap: 6px; | |
| padding: 12px; margin: 0 auto 24px; max-width: 840px; | |
| border: 2px dashed var(--border); border-radius: 10px; | |
| font-size: 13px; font-weight: 600; color: var(--text-muted); | |
| cursor: pointer; transition: border-color .12s, color .12s, background .12s; background: transparent; | |
| width: 100%; | |
| } | |
| .ws-add-btn:hover { border-color: var(--primary); color: var(--primary); background: #eef2ff10; } | |
| /* ── Block Add Panel (modal-like dropdown) ── */ | |
| .ws-add-panel { | |
| display: none; position: fixed; z-index: 500; | |
| background: var(--surface); border: 1px solid var(--border); | |
| border-radius: 14px; padding: 16px; width: 340px; | |
| box-shadow: var(--shadow-lg); | |
| } | |
| .ws-add-panel.open { display: block; } | |
| .ws-add-panel-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 12px; } | |
| .ws-add-type-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; } | |
| .ws-add-type-item { | |
| display: flex; flex-direction: column; align-items: center; gap: 3px; | |
| padding: 8px 4px; border-radius: 8px; border: 1px solid var(--border); | |
| background: var(--bg); cursor: pointer; transition: border-color .12s, background .12s, color .12s; | |
| font-size: 9px; font-weight: 600; color: var(--text-muted); text-align: center; | |
| } | |
| .ws-add-type-item:hover { border-color: var(--primary); background: #eef2ff; color: var(--primary); } | |
| .ws-add-type-item span { font-size: 18px; } | |
| /* ── Block edit drawer ── */ | |
| .ws-edit-drawer { | |
| position: fixed; right: 0; top: 52px; bottom: 0; width: 360px; | |
| background: var(--surface); border-left: 1px solid var(--border); | |
| z-index: 400; transform: translateX(100%); transition: transform .25s; | |
| display: flex; flex-direction: column; overflow: hidden; | |
| } | |
| .ws-edit-drawer.open { transform: translateX(0); } | |
| .ws-drawer-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; } | |
| .ws-drawer-title { font-size: 13px; font-weight: 700; color: var(--text); } | |
| .ws-drawer-body { flex: 1; overflow-y: auto; padding: 16px; } | |
| .ws-form-group { margin-bottom: 14px; } | |
| .ws-form-label { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; display: block; } | |
| .ws-form-input, .ws-form-textarea, .ws-form-select { | |
| width: 100%; padding: 8px 10px; border: 1px solid var(--border); | |
| border-radius: 8px; background: var(--bg); color: var(--text); font-size: 13px; | |
| outline: none; transition: border-color .12s; | |
| } | |
| .ws-form-input:focus, .ws-form-textarea:focus, .ws-form-select:focus { border-color: var(--primary); } | |
| .ws-form-textarea { resize: vertical; min-height: 100px; font-family: inherit; line-height: 1.5; } | |
| .ws-drawer-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-shrink: 0; } | |
| /* ── Toast ── */ | |
| .ws-toast { | |
| position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); | |
| padding: 10px 22px; background: var(--text); color: var(--bg); | |
| border-radius: 9999px; font-size: 12px; font-weight: 600; | |
| box-shadow: var(--shadow-lg); z-index: 9999; | |
| opacity: 0; transition: opacity .25s; pointer-events: none; | |
| } | |
| .ws-toast.show { opacity: 1; } | |
| /* ── Loading ── */ | |
| .ws-loading { text-align: center; padding: 40px; color: var(--text-muted); } | |
| .ws-loading-icon { | |
| display: inline-block; width: 28px; height: 28px; border-radius: 50%; | |
| border: 3px solid var(--border); border-top-color: var(--primary); | |
| animation: spin .7s linear infinite; | |
| } | |
| @keyframes spin { to { transform: rotate(360deg); } } | |
| /* ── Scrollbar ── */ | |
| .ws-canvas::-webkit-scrollbar { width: 6px; } | |
| .ws-canvas::-webkit-scrollbar-track { background: transparent; } | |
| .ws-canvas::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } | |
| /* ── Responsive canvas padding ── */ | |
| @media(max-width:640px){ .ws-canvas { padding: 14px; } } | |
| /* ── hub ────────────────────────────────────────────────── */ | |
| /* ═══════════════════════════════════════════════════════════ | |
| CASE HUB – Swiss-knife case discovery & command centre | |
| ═══════════════════════════════════════════════════════════ */ | |
| :root { | |
| --hub-radius: 12px; | |
| --hub-card-bg: var(--surface); | |
| } | |
| /* ── Stat Pills ── */ | |
| .hub-stat { | |
| display: flex; align-items: center; gap: 10px; | |
| padding: 14px 18px; border-radius: var(--hub-radius); | |
| background: var(--surface); border: 1px solid var(--border); | |
| transition: transform .15s, box-shadow .15s; | |
| } | |
| .hub-stat:hover { border-color: var(--border-strong); } | |
| .hub-stat-icon { | |
| width: 38px; height: 38px; border-radius: 10px; | |
| display: flex; align-items: center; justify-content: center; | |
| font-size: 18px; flex-shrink: 0; | |
| } | |
| .hub-stat-num { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1; } | |
| .hub-stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; } | |
| /* ── Search & Filters ── */ | |
| .hub-search-wrap { | |
| display: flex; gap: 10px; align-items: center; flex-wrap: wrap; | |
| padding: 14px 18px; background: var(--surface); | |
| border: 1px solid var(--border); border-radius: var(--hub-radius); | |
| margin-bottom: 18px; | |
| } | |
| .hub-search-input { | |
| flex: 1; min-width: 200px; padding: 8px 12px 8px 36px; | |
| border: 1px solid var(--border); border-radius: 8px; | |
| background: var(--bg); color: var(--text); font-size: 13px; | |
| outline: none; transition: border-color .15s; | |
| } | |
| .hub-search-input:focus { border-color: var(--primary); } | |
| .hub-search-icon { | |
| position: absolute; left: 10px; top: 50%; transform: translateY(-50%); | |
| color: var(--text-muted); pointer-events: none; | |
| } | |
| .hub-filter-select { | |
| padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; | |
| background: var(--bg); color: var(--text); font-size: 12px; font-weight: 500; | |
| cursor: pointer; outline: none; | |
| } | |
| .hub-view-btn { | |
| width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; | |
| border-radius: 8px; border: 1px solid var(--border); background: var(--bg); | |
| cursor: pointer; color: var(--text-muted); transition: background .12s, color .12s, border-color .12s; | |
| } | |
| .hub-view-btn.active, .hub-view-btn:hover { | |
| background: var(--primary); color: #fff; border-color: var(--primary); | |
| } | |
| /* ── Domain Filter Pills ── */ | |
| .domain-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; } | |
| .domain-pill { | |
| display: flex; align-items: center; gap: 5px; | |
| padding: 5px 14px; border-radius: 999px; font-size: 11px; font-weight: 600; | |
| border: 1.5px solid var(--border); background: var(--bg); color: var(--text-muted); | |
| cursor: pointer; transition: border-color .12s, color .12s, background .12s; white-space: nowrap; | |
| } | |
| .domain-pill:hover { border-color: var(--primary); color: var(--primary); } | |
| .domain-pill.active { | |
| border-color: var(--primary); background: var(--primary); | |
| color: #fff; | |
| } | |
| /* ── Case Grid ── */ | |
| .hub-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); | |
| gap: 14px; | |
| } | |
| /* ── Case Cards ── */ | |
| .hub-card { | |
| background: var(--surface); border: 1px solid var(--border); | |
| border-radius: var(--hub-radius); padding: 16px; | |
| cursor: pointer; transition: border-color .12s; | |
| position: relative; overflow: hidden; | |
| border-top: 3px solid transparent; | |
| } | |
| .hub-card:hover { border-color: var(--primary); border-top-color: var(--primary); } | |
| .hub-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; } | |
| .hub-card-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; margin: 10px 0 6px; } | |
| .hub-card-footer { | |
| display: flex; align-items: center; justify-content: space-between; | |
| margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); | |
| } | |
| .star-btn { transition: color .12s; } | |
| .star-btn:hover { color: var(--primary); } | |
| /* ── List View ── */ | |
| .hub-list { display: flex; flex-direction: column; gap: 6px; } | |
| .hub-list-row { | |
| display: flex; align-items: center; gap: 14px; padding: 12px 16px; | |
| background: var(--surface); border: 1px solid var(--border); | |
| border-radius: 10px; cursor: pointer; transition: border-color .12s, background .12s; | |
| } | |
| .hub-list-row:hover { border-color: var(--primary); background: var(--surface); } | |
| /* ── Empty State ── */ | |
| .hub-empty { | |
| text-align: center; padding: 80px 20px; | |
| color: var(--text-muted); | |
| } | |
| .hub-empty-icon { font-size: 52px; margin-bottom: 14px; opacity: .6; } | |
| .hub-empty-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; } | |
| /* ── Loading Skeleton ── */ | |
| .hub-skeleton { | |
| background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%); | |
| background-size: 200% 100%; animation: shimmer 1.4s infinite; | |
| border-radius: 8px; | |
| } | |
| @keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} } | |
| /* ── Toast ── */ | |
| .hub-toast { | |
| position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); | |
| padding: 10px 22px; background: var(--text); color: var(--bg); | |
| border-radius: 9999px; font-size: 12px; font-weight: 600; | |
| box-shadow: var(--shadow-lg); z-index: 9999; | |
| opacity: 0; transition: opacity .25s; pointer-events: none; | |
| } | |
| .hub-toast.show { opacity: 1; } | |
| /* Responsive */ | |
| @media (max-width: 640px) { | |
| .hub-grid { grid-template-columns: 1fr; } | |
| .hub-search-wrap { padding: 10px 12px; } | |
| } | |
| /* Keep a single create entry point on Case Hub. | |
| Desktop uses header "New Case"; hide shared desktop FAB here only. */ | |
| #fab-wrap, | |
| #fab-backdrop { | |
| display: none ; | |
| } | |
| /* ── HTMX search spinner ── */ | |
| .hub-spinner { | |
| display: none; | |
| width: 16px; height: 16px; | |
| border: 2px solid var(--border); | |
| border-top-color: var(--primary); | |
| border-radius: 50%; | |
| animation: hub-spin .6s linear infinite; | |
| flex-shrink: 0; | |
| } | |
| .hub-spinner.htmx-request { display: block; } | |
| @keyframes hub-spin { to { transform: rotate(360deg); } } | |
| /* ── cases_list ────────────────────────────────────────────────── */ | |
| /* ══ Cases List — Sprint 43 ══ */ | |
| .cl-wrap { max-width: 780px; margin: 0 auto; padding: 1.5rem 1rem; } | |
| .cl-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; gap: 0.75rem; flex-wrap: wrap; } | |
| .cl-title-group { display: flex; align-items: center; gap: 0.75rem; } | |
| .cl-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--primary-subtle); flex-shrink: 0; } | |
| .cl-btn-primary { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.4375rem 0.875rem; border-radius: 8px; background: var(--primary); color: var(--text-inverse); font-size: 0.8125rem; font-weight: 600; text-decoration: none; transition: opacity .12s; border: none; cursor: pointer; } | |
| .cl-btn-primary:hover { opacity: .88; } | |
| .cl-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 1rem; } | |
| .cl-tab { padding: 0.375rem 1rem; border-radius: 7px; font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: background .12s, color .12s; } | |
| .cl-tab.active { background: var(--primary); color: var(--text-inverse); } | |
| .cl-tab:hover:not(.active) { color: var(--text); background: var(--bg); } | |
| .cl-search-wrap { position: relative; display: flex; align-items: center; margin-bottom: 1rem; } | |
| .cl-search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; } | |
| .cl-search-input { width: 100%; padding: 0.5rem 2.25rem 0.5rem 2.25rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 0.8125rem; outline: none; transition: border-color .15s; } | |
| .cl-search-input:focus { border-color: var(--primary); } | |
| .cl-spinner { display: none; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: cl-spin .6s linear infinite; position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); } | |
| .cl-spinner.htmx-request { display: block; } | |
| @keyframes cl-spin { to { transform: rotate(360deg); } } | |
| .cl-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); } | |
| .cl-item { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); text-decoration: none; transition: background .12s; } | |
| .cl-item:last-child { border-bottom: none; } | |
| .cl-item:hover { background: var(--bg); } | |
| .cl-item-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--bg); flex-shrink: 0; } | |
| .cl-item-body { flex: 1; min-width: 0; } | |
| .cl-item-title { font-size: 0.875rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } | |
| .cl-item-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } | |
| .cl-badge { font-size: 0.6875rem; font-weight: 600; padding: 2px 8px; border-radius: 9999px; border: 1px solid transparent; white-space: nowrap; } | |
| .cl-badge--draft { background: var(--bg); color: var(--text-muted); border-color: var(--border); } | |
| .cl-badge--active { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); } | |
| .cl-badge--completed { background: color-mix(in srgb, var(--success, #16a34a) 12%, transparent); color: var(--success, #16a34a); } | |
| .cl-badge--cancelled { background: var(--error-subtle); color: var(--c-error-700); } | |
| .cl-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 1rem; color: var(--text-muted); text-align: center; } | |
| .cl-empty-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; } | |
| .cl-empty-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; } | |
| .cl-empty-desc { font-size: 0.8125rem; margin-bottom: 1.25rem; } | |
| /* ── sheet_public ────────────────────────────────────────────────── */ | |
| *{box-sizing:border-box;margin:0;padding:0} | |
| :root{--primary:#5c6bc0;--text:#1f2937;--muted:#6b7280;--border:#e5e7eb; | |
| --bg:#f8f9fa;--surface:#fff} | |
| body{font-family:system-ui,-apple-system,sans-serif;background:var(--bg); | |
| color:var(--text);min-height:100vh} | |
| .header{background:var(--surface);border-bottom:1px solid var(--border); | |
| padding:16px 24px;display:flex;align-items:center;justify-content:space-between; | |
| flex-wrap:wrap;gap:12px} | |
| .header .header-brand{display:flex;align-items:center;gap:10px} | |
| .header .header-brand .dot{width:10px;height:10px;border-radius:50%; | |
| background:linear-gradient(135deg,#dc6b6b,#e08040);display:inline-block} | |
| .header-title{font-size:17px;font-weight:800;color:var(--text)} | |
| .header-sub{font-size:12px;color:var(--muted)} | |
| .lang-row{display:flex;gap:6px} | |
| .lang-btn{padding:4px 10px;border-radius:6px;font-size:11px;font-weight:600; | |
| cursor:pointer;border:1.5px solid var(--border);background:none; | |
| color:var(--muted);transition:border-color .12s, color .12s, background .12s} | |
| .lang-btn.active{border-color:var(--primary);color:var(--primary);background:#eef0fb} | |
| .container{max-width:1300px;margin:0 auto;padding:20px 16px} | |
| .stats-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px} | |
| .stat{background:var(--surface);border:1px solid var(--border); | |
| border-radius:8px;padding:10px 18px;display:flex;align-items:center;gap:10px} | |
| .stat-val{font-size:22px;font-weight:800} | |
| .stat-lbl{font-size:11px;color:var(--muted)} | |
| .toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px} | |
| .search-input{padding:8px 12px;border-radius:8px;border:1.5px solid var(--border); | |
| background:var(--surface);color:var(--text);font-size:13px; | |
| width:260px;outline:none} | |
| .search-input:focus{border-color:var(--primary)} | |
| .btn{padding:8px 16px;border-radius:8px;font-size:12px;font-weight:600; | |
| cursor:pointer;border:none;display:inline-flex;align-items:center;gap:6px} | |
| .btn-primary{background:var(--primary);color:#fff} | |
| .btn-ghost{background:none;border:1.5px solid var(--border);color:var(--muted)} | |
| .filters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px} | |
| .pill{padding:5px 14px;border-radius:9999px;font-size:12px;font-weight:600; | |
| cursor:pointer;border:1.5px solid var(--border);background:var(--surface); | |
| color:var(--muted);transition:border-color .12s, color .12s, background .12s;white-space:nowrap} | |
| .pill.active,.pill:hover{border-color:var(--primary);color:var(--primary);background:#eef0fb} | |
| .pill[data-s=urgent].active{border-color:#c2883b;color:#c2883b;background:#fef3c7} | |
| .pill[data-s=transfer].active{border-color:#c74b4b;color:#c74b4b;background:#fee2e2} | |
| .pill[data-s=completed].active{border-color:#56a066;color:#56a066;background:#d1fae5} | |
| .table-wrap{overflow-x:auto;border-radius:10px; | |
| border:1px solid var(--border);background:var(--surface)} | |
| table{border-collapse:collapse;width:100%;min-width:900px} | |
| thead th{padding:10px 12px;font-size:11px;font-weight:700;color:var(--muted); | |
| background:var(--bg);border-bottom:2px solid var(--border); | |
| white-space:nowrap;text-transform:uppercase;letter-spacing:.04em} | |
| tbody tr{border-bottom:1px solid var(--border);transition:background .15s} | |
| tbody tr:hover{background:#f8f9fa} | |
| tbody tr:last-child{border-bottom:none} | |
| td{padding:8px 12px;font-size:12px;vertical-align:middle} | |
| .badge{display:inline-block;padding:2px 10px;border-radius:9999px; | |
| font-size:11px;font-weight:700} | |
| .empty{padding:48px;text-align:center;color:var(--muted)} | |
| .empty-icon{font-size:36px;margin-bottom:10px} | |
| .footer{margin-top:24px;text-align:center;font-size:11px;color:var(--muted)} | |
| .editable-cell{cursor:pointer;border-radius:4px;padding:2px 4px; | |
| transition:background .15s} | |
| .editable-cell:hover{background:#eef0fb} | |
| /* Edit row form */ | |
| .edit-row{display:none;background:#f0f4ff} | |
| .edit-row td{padding:12px} | |
| .edit-row input,.edit-row select,.edit-row textarea{ | |
| padding:6px 10px;border-radius:6px;border:1.5px solid var(--border); | |
| background:#fff;color:var(--text);font-size:12px; | |
| font-family:inherit;width:100%;outline:none;box-sizing:border-box} | |
| .edit-row input:focus,.edit-row select:focus{border-color:var(--primary)} | |
| .edit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:8px} | |
| .edit-grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:8px} | |
| .edit-full{margin-bottom:8px} | |
| .edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px} | |
| @media(max-width:600px){.stat-val{font-size:17px}.header-title{font-size:14px} | |
| .search-input{width:100%}} | |
| /* ── intelligence_options ────────────────────────────────────────────────── */ | |
| /* do- = decision options */ | |
| .do-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.625rem; margin-top: 0.5rem; } | |
| @media (max-width: 640px) { .do-grid { grid-template-columns: 1fr; } } | |
| .do-card { background: var(--bg); border: 1.5px solid var(--border); border-radius: 0.625rem; padding: 0.75rem; position: relative; transition: border-color 0.12s, box-shadow 0.12s; } | |
| .do-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); } | |
| .do-card--selected { border-color: var(--st-done); background: color-mix(in srgb, var(--st-done) 4%, var(--bg)); } | |
| .do-card--rejected { opacity: 0.5; } | |
| .do-status { position: absolute; top: 0.5rem; right: 0.5rem; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.08em; padding: 0.0625rem 0.375rem; border-radius: 0.25rem; } | |
| .do-status--proposed { background: var(--surface); color: var(--text-muted); } | |
| .do-status--evaluating { background: #dbeafe; color: #1d4ed8; } | |
| .do-status--selected { background: #dcfce7; color: #15803d; } | |
| .do-status--rejected { background: #fee2e2; color: #991b1b; } | |
| .do-status--deferred { background: #fef3c7; color: #92400e; } | |
| .do-title { font-size: 0.8125rem; font-weight: 700; color: var(--text); padding-right: 3.5rem; line-height: 1.3; } | |
| .do-desc { font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.25rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } | |
| .do-metrics { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; } | |
| .do-metric { display: flex; flex-direction: column; gap: 0.0625rem; } | |
| .do-metric-label { font-size: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); } | |
| .do-metric-value { font-size: 0.75rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; } | |
| .do-risk--low { color: var(--st-done); } | |
| .do-risk--med { color: var(--st-waiting, #d97706); } | |
| .do-risk--high { color: var(--pri-critical, #dc2626); } | |
| .do-score-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 0.5rem; position: relative; overflow: hidden; } | |
| .do-score-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.3s; } | |
| .do-score-label { position: absolute; right: 0; top: -14px; font-size: 0.5625rem; color: var(--text-muted); } | |
| .do-warnings { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.375rem; font-size: 0.625rem; color: var(--pri-high, #ea580c); } | |
| .do-actions { display: flex; gap: 0.375rem; margin-top: 0.5rem; } | |
| .do-selected-info { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.5rem; font-size: 0.6875rem; color: var(--st-done); font-weight: 500; } | |
| .do-rationale { font-size: 0.625rem; color: var(--text-muted); margin-top: 0.25rem; font-style: italic; } | |
| /* ── cases_detail ────────────────────────────────────────────────── */ | |
| .cd-icon-btn { transition: background .12s; } | |
| .cd-icon-btn:hover { background: var(--bg) ; } | |
| .cd-link-btn { color: var(--primary); background: none; border: none; cursor: pointer; transition: opacity .12s; padding: 0; } | |
| .cd-link-btn:hover { opacity: 0.75; } | |
| .cl-badge { font-size: 0.6875rem; font-weight: 600; padding: 3px 10px; border-radius: 9999px; border: 1px solid transparent; display: inline-block; } | |
| .cl-badge--draft { background: var(--bg); color: var(--text-muted); border-color: var(--border); } | |
| .cl-badge--active { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); } | |
| .cl-badge--completed { background: color-mix(in srgb, var(--success, #16a34a) 12%, transparent); color: var(--success, #16a34a); } | |
| .cl-badge--cancelled { background: #fef2f2; color: #991b1b; } | |
| /* ── Cases Intelligence ───────────────────────────────── */ | |
| /* ── decision_panel ─── */ | |
| /* dp- = decision panel */ | |
| .dp-panel { } | |
| .dp-header { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; margin-bottom: 0.5rem; } | |
| .dp-header-title { display: flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; font-weight: 700; color: var(--text); } | |
| .dp-decision-badge { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.625rem; font-weight: 700; padding: 0.125rem 0.5rem; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.04em; } | |
| .dp-decision-badge--made { background: #dcfce7; color: #15803d; } | |
| .dp-decision-badge--pending { background: var(--surface); color: var(--text-muted); } | |
| .dp-selected { background: color-mix(in srgb, var(--st-done, #16a34a) 6%, var(--bg)); border: 1.5px solid var(--st-done, #16a34a); border-radius: 0.625rem; padding: 0.75rem; margin-bottom: 0.75rem; } | |
| .dp-selected-label { font-size: 0.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--st-done); margin-bottom: 0.125rem; } | |
| .dp-selected-title { font-size: 0.9375rem; font-weight: 700; color: var(--text); } | |
| .dp-selected-rationale { font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.25rem; font-style: italic; } | |
| .dp-selected-metrics { display: flex; gap: 0.75rem; margin-top: 0.375rem; } | |
| .dp-sel-metric { font-size: 0.6875rem; font-weight: 600; color: var(--text); } | |
| .dp-checklist { display: flex; flex-direction: column; gap: 0.375rem; margin-top: 0.5rem; } | |
| .dp-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-muted); padding: 0.375rem 0.5rem; border-radius: 0.375rem; } | |
| .dp-check--done { color: var(--st-done); } | |
| .dp-check--done i { color: var(--st-done); } | |
| /* ── resources ─── */ | |
| /* ra- = resource allocation */ | |
| .ra-list { display: flex; flex-direction: column; gap: 0.375rem; margin-top: 0.5rem; } | |
| .ra-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.625rem; background: var(--bg); border: 1px solid var(--border); border-radius: 0.5rem; transition: border-color 0.12s; } | |
| .ra-row:hover { border-color: var(--text-light); } | |
| .ra-icon { font-size: 1rem; flex-shrink: 0; } | |
| .ra-info { flex: 1; min-width: 0; } | |
| .ra-name { font-size: 0.8125rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } | |
| .ra-role { font-size: 0.625rem; color: var(--text-muted); } | |
| .ra-qty { font-size: 0.6875rem; font-weight: 700; color: var(--text-muted); background: var(--surface); padding: 0.0625rem 0.375rem; border-radius: 0.25rem; } | |
| .ra-status-select { font-size: 0.625rem; padding: 0.125rem 0.25rem; border: 1px solid var(--border); border-radius: 0.25rem; background: var(--bg); color: var(--text); cursor: pointer; } | |
| .ra-summary { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; padding: 0.5rem 0.625rem; background: var(--surface); border-radius: 0.5rem; } | |
| .ra-summary-text { font-size: 0.6875rem; color: var(--text-muted); flex: 1; } | |
| .ra-summary-badge { font-size: 0.5625rem; font-weight: 700; padding: 0.0625rem 0.5rem; border-radius: 9999px; background: var(--border); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; } | |
| .ra-summary-badge--ready { background: #dcfce7; color: #15803d; } | |