=== DONE === - MCP Apps UI system added (11 apps with _meta.ui.resourceUri) - 19 new tool modules added - Tool count: 269 → 461 across 38 categories - Upstream changes merged - All tools tagged with _meta labels - Package lock updated === TO-DO === - [ ] Fix 42 failing edge case tests (BLOCKER — Stage 11) - [ ] Live API testing with GHL credentials - [ ] App design approval for Stage 7→8
974 lines
50 KiB
TypeScript
974 lines
50 KiB
TypeScript
/**
|
|
* Inlined CSS styles for the GHL Dynamic View app.
|
|
* Matches the polish of existing MCP App UIs.
|
|
*/
|
|
export const STYLES = `
|
|
/* ─── Reset & Base ────────────────────────────────────── */
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: white;
|
|
color: #1f2937;
|
|
line-height: 1.4;
|
|
font-size: 12px;
|
|
-webkit-font-smoothing: antialiased;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#app { padding: 4px; }
|
|
|
|
/* ─── Compact Chat Overrides ──────────────────────────── */
|
|
/* Scale everything down for inline chat MCP App display */
|
|
|
|
a { color: #4f46e5; text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
|
|
.font-medium { font-weight: 500; }
|
|
.font-mono { font-family: 'SF Mono', 'Fira Code', monospace; }
|
|
.text-sm { font-size: 13px; }
|
|
.text-muted { color: #9ca3af; }
|
|
.text-secondary { color: #6b7280; }
|
|
.text-left { text-align: left; }
|
|
.text-center { text-align: center; }
|
|
.text-right { text-align: right; }
|
|
|
|
/* ─── Loading & Error States ──────────────────────────── */
|
|
.loading-state {
|
|
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
|
min-height: 120px; color: #6b7280;
|
|
}
|
|
.loading-spinner {
|
|
width: 24px; height: 24px; border: 2px solid #e5e7eb; border-top-color: #4f46e5;
|
|
border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 8px;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
.loading-state p { font-size: 12px; }
|
|
|
|
.error-state {
|
|
padding: 12px; margin: 8px; background: #fef2f2; border: 1px solid #fecaca;
|
|
border-radius: 8px; color: #dc2626;
|
|
}
|
|
.error-state h3 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
|
|
.error-state p { font-size: 12px; color: #991b1b; }
|
|
|
|
/* ─── Status Badges ───────────────────────────────────── */
|
|
.status-badge, .status-badge-sm {
|
|
display: inline-flex; align-items: center; border-radius: 9999px;
|
|
font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
|
|
}
|
|
.status-badge { padding: 4px 12px; font-size: 11px; }
|
|
.status-badge-sm { padding: 2px 6px; font-size: 9px; }
|
|
|
|
.status-active { background: #dbeafe; color: #1e40af; }
|
|
.status-complete { background: #dcfce7; color: #166534; }
|
|
.status-paused { background: #fef3c7; color: #92400e; }
|
|
.status-draft { background: #e5e7eb; color: #4b5563; }
|
|
.status-error { background: #fee2e2; color: #991b1b; }
|
|
.status-sent { background: #dbeafe; color: #1e40af; }
|
|
.status-paid { background: #dcfce7; color: #166534; }
|
|
.status-pending { background: #fef3c7; color: #92400e; }
|
|
.status-open { background: #dbeafe; color: #1d4ed8; }
|
|
.status-won { background: #dcfce7; color: #15803d; }
|
|
.status-lost { background: #fee2e2; color: #b91c1c; }
|
|
|
|
/* ─── Page Header ─────────────────────────────────────── */
|
|
.page-header {
|
|
background: white; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.06);
|
|
}
|
|
.page-header-gradient {
|
|
background: linear-gradient(135deg, #4f46e5, #7c3aed);
|
|
color: white; padding: 8px 12px; position: sticky; top: 0; z-index: 50;
|
|
border-radius: 8px; margin-bottom: 8px;
|
|
box-shadow: 0 1px 4px rgba(79,70,229,0.3);
|
|
}
|
|
.page-header-top { display: flex; align-items: center; justify-content: space-between; }
|
|
.page-header-title { font-size: 14px; font-weight: 700; color: #111827; }
|
|
.page-header-title-light { font-size: 13px; font-weight: 600; }
|
|
.page-header-subtitle { font-size: 11px; color: #6b7280; margin-top: 2px; }
|
|
.page-header-subtitle-light { font-size: 10px; opacity: 0.8; margin-top: 1px; }
|
|
.badge-light { padding: 2px 8px; border-radius: 9999px; font-size: 10px; font-weight: 600; background: rgba(255,255,255,0.2); }
|
|
.page-header-stats { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
|
|
.page-header-stats-light { display: flex; gap: 10px; margin-top: 4px; }
|
|
.stat-item { font-size: 11px; color: #6b7280; }
|
|
.stat-value { font-weight: 500; color: #374151; }
|
|
.stat-item-light { font-size: 10px; display: flex; align-items: center; gap: 4px; }
|
|
.stat-value-light { font-weight: 600; }
|
|
.stat-label-light { opacity: 0.7; }
|
|
|
|
/* ─── Card ────────────────────────────────────────────── */
|
|
.card {
|
|
background: white; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.06);
|
|
overflow: hidden; margin-bottom: 8px;
|
|
}
|
|
.card.no-border { box-shadow: none; }
|
|
.card-header { padding: 8px 12px; border-bottom: 1px solid #e5e7eb; }
|
|
.card-title { font-size: 13px; font-weight: 600; color: #111827; }
|
|
.card-subtitle { font-size: 11px; color: #6b7280; margin-top: 1px; }
|
|
.card-body.p-0 { padding: 0; }
|
|
.card-body.p-sm { padding: 8px; }
|
|
.card-body.p-md { padding: 10px; }
|
|
.card-body.p-lg { padding: 12px; }
|
|
|
|
/* ─── Stats Grid ──────────────────────────────────────── */
|
|
.stats-grid { display: grid; gap: 8px; margin-bottom: 8px; }
|
|
.stats-grid-2 { grid-template-columns: repeat(2, 1fr); }
|
|
.stats-grid-3 { grid-template-columns: repeat(2, 1fr); }
|
|
.stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
|
|
.stats-grid-6 { grid-template-columns: repeat(2, 1fr); }
|
|
@media (min-width: 640px) {
|
|
.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
|
|
.stats-grid-4 { grid-template-columns: repeat(4, 1fr); }
|
|
.stats-grid-6 { grid-template-columns: repeat(3, 1fr); }
|
|
}
|
|
@media (min-width: 1024px) {
|
|
.stats-grid-6 { grid-template-columns: repeat(6, 1fr); }
|
|
}
|
|
|
|
/* ─── Split Layout ────────────────────────────────────── */
|
|
.split-layout { display: grid; }
|
|
.split-50-50 { grid-template-columns: 1fr; }
|
|
.split-33-67 { grid-template-columns: 1fr; }
|
|
.split-67-33 { grid-template-columns: 1fr; }
|
|
.gap-sm { gap: 6px; }
|
|
.gap-md { gap: 10px; }
|
|
.gap-lg { gap: 14px; }
|
|
@media (min-width: 640px) {
|
|
.split-50-50 { grid-template-columns: 1fr 1fr; }
|
|
.split-33-67 { grid-template-columns: 1fr 2fr; }
|
|
.split-67-33 { grid-template-columns: 2fr 1fr; }
|
|
}
|
|
|
|
/* ─── Section ─────────────────────────────────────────── */
|
|
.section { margin-bottom: 8px; }
|
|
.section-header { margin-bottom: 6px; }
|
|
.section-title { font-size: 13px; font-weight: 600; color: #111827; }
|
|
.section-desc { font-size: 11px; color: #6b7280; margin-top: 1px; }
|
|
|
|
/* ─── Metric Card ─────────────────────────────────────── */
|
|
.metric-card {
|
|
background: rgba(255,255,255,0.95); border-radius: 8px; padding: 10px;
|
|
text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,0.06);
|
|
}
|
|
.metric-value { font-size: 18px; font-weight: 700; color: #111827; }
|
|
.metric-green { color: #059669; }
|
|
.metric-blue { color: #2563eb; }
|
|
.metric-purple { color: #7c3aed; }
|
|
.metric-yellow { color: #d97706; }
|
|
.metric-red { color: #dc2626; }
|
|
.metric-label { font-size: 10px; color: #6b7280; margin-top: 2px; }
|
|
.metric-trend { font-size: 11px; font-weight: 600; margin-top: 4px; }
|
|
.trend-up { color: #059669; }
|
|
.trend-down { color: #dc2626; }
|
|
.trend-flat { color: #6b7280; }
|
|
|
|
/* ─── Data Table ──────────────────────────────────────── */
|
|
.data-table-wrap {
|
|
background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
overflow: hidden;
|
|
}
|
|
.table-container { overflow-x: auto; }
|
|
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
|
|
.data-table th {
|
|
text-align: left; padding: 6px 8px; background: #f9fafb; color: #6b7280;
|
|
font-weight: 500; font-size: 10px; text-transform: uppercase; letter-spacing: 0.3px;
|
|
border-bottom: 1px solid #e5e7eb; white-space: nowrap;
|
|
}
|
|
.data-table th.sortable { cursor: pointer; user-select: none; }
|
|
.data-table th.sortable:hover { background: #f3f4f6; }
|
|
.data-table td { padding: 5px 8px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
|
|
.data-table tr:hover { background: #f9fafb; }
|
|
.data-table .checkbox-col { width: 40px; }
|
|
.data-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: #4f46e5; cursor: pointer; }
|
|
|
|
.avatar-cell { display: flex; align-items: center; gap: 12px; }
|
|
.avatar {
|
|
width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
|
|
justify-content: center; color: white; font-weight: 600; font-size: 12px; flex-shrink: 0;
|
|
}
|
|
.tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 200px; }
|
|
.tag {
|
|
display: inline-block; padding: 2px 8px; background: #eef2ff; color: #4f46e5;
|
|
border-radius: 12px; font-size: 11px; font-weight: 500;
|
|
}
|
|
.tag-more { background: #f3f4f6; color: #6b7280; }
|
|
.link { color: #4f46e5; text-decoration: none; }
|
|
.link:hover { text-decoration: underline; }
|
|
|
|
.table-pagination {
|
|
padding: 12px 20px; border-top: 1px solid #e5e7eb; display: flex;
|
|
justify-content: space-between; align-items: center;
|
|
}
|
|
.pagination-info { font-size: 13px; color: #6b7280; }
|
|
.pagination-buttons { display: flex; gap: 8px; }
|
|
|
|
.empty-state { padding: 60px 20px; text-align: center; }
|
|
.empty-icon { font-size: 48px; margin-bottom: 16px; }
|
|
.empty-state p { color: #6b7280; font-size: 15px; }
|
|
|
|
/* ─── Kanban Board ────────────────────────────────────── */
|
|
.kanban-wrap { padding: 8px; overflow-x: auto; overflow-y: auto; max-height: calc(100vh - 80px); }
|
|
.kanban-cols { display: flex; gap: 8px; min-width: max-content; }
|
|
.kanban-col {
|
|
background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
display: flex; flex-direction: column; width: 210px; min-width: 210px;
|
|
max-height: calc(100vh - 100px);
|
|
}
|
|
.kanban-col-header {
|
|
padding: 10px 12px; border-bottom: 1px solid #e5e7eb;
|
|
position: sticky; top: 0; background: white; border-radius: 8px 8px 0 0;
|
|
}
|
|
.kanban-col-title-row { display: flex; align-items: center; justify-content: space-between; }
|
|
.kanban-col-title { font-weight: 600; font-size: 12px; color: #1f2937; }
|
|
.kanban-col-count {
|
|
background: #e5e7eb; color: #4b5563; padding: 1px 6px; border-radius: 9999px;
|
|
font-size: 10px; font-weight: 500;
|
|
}
|
|
.kanban-col-value { font-size: 10px; color: #6b7280; margin-top: 2px; }
|
|
.kanban-col-body { padding: 6px; overflow-y: auto; flex: 1; min-height: 60px; max-height: 320px; }
|
|
.kanban-empty { text-align: center; padding: 16px; color: #9ca3af; font-size: 10px; }
|
|
.kanban-card {
|
|
background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px;
|
|
padding: 8px 10px; margin-bottom: 6px; cursor: pointer;
|
|
transition: box-shadow 0.15s, border-color 0.15s;
|
|
}
|
|
.kanban-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-color: #4f46e5; }
|
|
.kanban-card-title { font-weight: 600; font-size: 11px; color: #111827; margin-bottom: 4px; line-height: 1.3; }
|
|
.kanban-card-subtitle { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #6b7280; margin-bottom: 4px; }
|
|
.kanban-avatar {
|
|
width: 16px; height: 16px; background: #e5e7eb; border-radius: 50%;
|
|
display: flex; align-items: center; justify-content: center; font-size: 7px;
|
|
font-weight: 700; color: #4b5563;
|
|
}
|
|
.kanban-card-value { font-size: 12px; font-weight: 700; color: #059669; margin-bottom: 4px; }
|
|
.kanban-card-footer { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: #9ca3af; }
|
|
|
|
/* ─── Timeline ────────────────────────────────────────── */
|
|
.timeline { position: relative; padding-left: 24px; }
|
|
.timeline-line { position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: #e5e7eb; }
|
|
.timeline-item { position: relative; margin-bottom: 16px; }
|
|
.timeline-item:last-child { margin-bottom: 0; }
|
|
.timeline-dot {
|
|
position: absolute; left: -16px; top: 4px; width: 16px; height: 16px;
|
|
border-radius: 50%; border: 2px solid; background: white;
|
|
display: flex; align-items: center; justify-content: center; font-size: 8px;
|
|
}
|
|
.tl-border-default { border-color: #d1d5db; }
|
|
.tl-border-success { border-color: #4ade80; }
|
|
.tl-border-warning { border-color: #facc15; }
|
|
.tl-border-error { border-color: #f87171; }
|
|
.timeline-content { margin-left: 8px; }
|
|
.timeline-title { font-weight: 500; font-size: 14px; color: #111827; }
|
|
.timeline-desc { font-size: 14px; color: #6b7280; margin-top: 2px; }
|
|
.timeline-time { font-size: 12px; color: #9ca3af; margin-top: 2px; }
|
|
|
|
/* ─── Progress Bar ────────────────────────────────────── */
|
|
.progress-wrap { margin-bottom: 20px; }
|
|
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
|
|
.progress-label { font-size: 14px; font-weight: 500; color: #374151; }
|
|
.progress-value { font-size: 14px; color: #6b7280; }
|
|
.progress-value strong { color: #111827; }
|
|
.progress-track { position: relative; height: 24px; background: #e5e7eb; border-radius: 12px; overflow: hidden; }
|
|
.progress-bar { height: 100%; border-radius: 12px; transition: width 0.5s; }
|
|
.bar-green { background: linear-gradient(to right, #10b981, #059669); }
|
|
.bar-blue { background: linear-gradient(to right, #3b82f6, #2563eb); }
|
|
.bar-purple { background: linear-gradient(to right, #8b5cf6, #7c3aed); }
|
|
.bar-yellow { background: linear-gradient(to right, #f59e0b, #d97706); }
|
|
.bar-red { background: linear-gradient(to right, #ef4444, #dc2626); }
|
|
.progress-benchmark { position: absolute; top: 0; height: 100%; width: 2px; background: rgba(0,0,0,0.35); }
|
|
.progress-benchmark-label { position: absolute; top: -16px; font-size: 10px; color: #6b7280; transform: translateX(-50%); }
|
|
|
|
/* ─── Detail Header ───────────────────────────────────── */
|
|
.detail-header {
|
|
background: white; border-radius: 12px; padding: 24px; margin-bottom: 20px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
}
|
|
.detail-header-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; }
|
|
.detail-title { font-size: 24px; font-weight: 700; color: #111827; }
|
|
.detail-entity-id { font-size: 14px; color: #9ca3af; margin-top: 2px; }
|
|
.detail-subtitle { font-size: 14px; color: #6b7280; margin-top: 4px; }
|
|
|
|
/* ─── Key-Value List ──────────────────────────────────── */
|
|
.kv-list { background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden; }
|
|
.kv-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; border-bottom: 1px solid #f3f4f6; }
|
|
.kv-row:last-child { border-bottom: none; }
|
|
.kv-compact { padding: 8px 24px; }
|
|
.kv-total { background: #1e3a5f; color: white; padding: 16px 24px; border-bottom: none; }
|
|
.kv-success { background: #f0fdf4; }
|
|
.kv-highlight { background: #f9fafb; font-weight: 600; }
|
|
.kv-muted .kv-label, .kv-muted .kv-value { color: #9ca3af; }
|
|
.kv-label { font-size: 14px; color: #6b7280; }
|
|
.kv-total .kv-label { font-size: 16px; font-weight: 600; color: white; }
|
|
.kv-value { font-family: 'SF Mono', 'Fira Code', monospace; font-weight: 500; color: #111827; }
|
|
.kv-value-bold { font-family: 'SF Mono', 'Fira Code', monospace; font-weight: 600; color: #111827; }
|
|
.kv-value-total { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 20px; font-weight: 700; color: white; }
|
|
.kv-value-success { font-family: 'SF Mono', 'Fira Code', monospace; font-weight: 500; color: #059669; }
|
|
.kv-value-danger { font-family: 'SF Mono', 'Fira Code', monospace; font-weight: 500; color: #dc2626; }
|
|
.kv-success .kv-label { color: #15803d; }
|
|
|
|
/* ─── Line Items Table ────────────────────────────────── */
|
|
.line-items-wrap {
|
|
background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
overflow: hidden; margin-bottom: 20px;
|
|
}
|
|
.line-items-table { width: 100%; border-collapse: collapse; }
|
|
.line-items-table th {
|
|
background: #f9fafb; padding: 12px 16px; font-size: 12px; font-weight: 600;
|
|
color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
.line-items-table td { padding: 16px; border-bottom: 1px solid #f3f4f6; }
|
|
.line-items-table tr:last-child td { border-bottom: none; }
|
|
|
|
/* ─── Info Block ──────────────────────────────────────── */
|
|
.info-block { margin-bottom: 16px; }
|
|
.info-block-label { font-size: 11px; text-transform: uppercase; color: #9ca3af; letter-spacing: 0.05em; font-weight: 500; margin-bottom: 8px; }
|
|
.info-block-name { font-size: 16px; font-weight: 600; color: #111827; }
|
|
.info-block-lines { font-size: 14px; color: #6b7280; line-height: 1.6; margin-top: 4px; }
|
|
|
|
/* ─── Search Bar ──────────────────────────────────────── */
|
|
.search-bar { padding: 12px 20px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
|
|
.search-input {
|
|
width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px;
|
|
font-size: 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
.search-input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
|
|
|
|
/* ─── Filter Chips ────────────────────────────────────── */
|
|
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 20px; border-bottom: 1px solid #e5e7eb; }
|
|
.chip {
|
|
padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 500;
|
|
background: #f3f4f6; color: #4b5563; border: none; cursor: pointer;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
.chip:hover { background: #e5e7eb; }
|
|
.chip-active { background: #4f46e5; color: white; }
|
|
.chip-active:hover { background: #4338ca; }
|
|
|
|
/* ─── Tab Group ───────────────────────────────────────── */
|
|
.tab-group { display: flex; border-bottom: 1px solid #e5e7eb; margin-bottom: 16px; }
|
|
.tab {
|
|
padding: 8px 16px; font-size: 14px; font-weight: 500; border: none; background: none;
|
|
border-bottom: 2px solid transparent; color: #6b7280; cursor: pointer;
|
|
transition: color 0.15s, border-color 0.15s;
|
|
}
|
|
.tab:hover { color: #374151; border-bottom-color: #d1d5db; }
|
|
.tab-active { color: #4f46e5; border-bottom-color: #4f46e5; }
|
|
.tab-count {
|
|
margin-left: 6px; padding: 1px 6px; background: #f3f4f6; color: #6b7280;
|
|
border-radius: 9999px; font-size: 12px;
|
|
}
|
|
|
|
/* ─── Buttons ─────────────────────────────────────────── */
|
|
.btn {
|
|
display: inline-flex; align-items: center; border-radius: 8px; font-weight: 500;
|
|
cursor: pointer; transition: background 0.15s, box-shadow 0.15s; border: none;
|
|
}
|
|
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
.btn-primary { background: #4f46e5; color: white; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
|
|
.btn-primary:hover:not(:disabled) { background: #4338ca; }
|
|
.btn-secondary { background: white; color: #374151; border: 1px solid #d1d5db; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
|
|
.btn-secondary:hover:not(:disabled) { background: #f9fafb; }
|
|
.btn-danger { background: #dc2626; color: white; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
|
|
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
|
|
.btn-ghost { background: none; color: #6b7280; }
|
|
.btn-ghost:hover:not(:disabled) { background: #f3f4f6; color: #111827; }
|
|
.btn-sm { padding: 6px 12px; font-size: 12px; }
|
|
.btn-md { padding: 8px 16px; font-size: 14px; }
|
|
.btn-lg { padding: 10px 24px; font-size: 16px; }
|
|
|
|
/* ─── Action Bar ──────────────────────────────────────── */
|
|
.action-bar { display: flex; gap: 12px; margin-top: 20px; }
|
|
.align-left { justify-content: flex-start; }
|
|
.align-center { justify-content: center; }
|
|
.align-right { justify-content: flex-end; }
|
|
|
|
/* ─── Currency Display ────────────────────────────────── */
|
|
.currency-display { font-family: 'SF Mono', 'Fira Code', monospace; font-weight: 600; }
|
|
.currency-sm { font-size: 14px; }
|
|
.currency-md { font-size: 20px; }
|
|
.currency-lg { font-size: 32px; }
|
|
.currency-positive { color: #059669; }
|
|
.currency-negative { color: #dc2626; }
|
|
|
|
/* ─── Tag List ────────────────────────────────────────── */
|
|
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
|
.tag-list-sm .tag-pill { padding: 2px 8px; font-size: 11px; }
|
|
.tag-list-md .tag-pill { padding: 4px 10px; font-size: 12px; }
|
|
.tag-pill {
|
|
display: inline-flex; align-items: center; border-radius: 9999px;
|
|
font-weight: 500; transition: opacity 0.15s;
|
|
}
|
|
.tag-pill-blue { background: #dbeafe; color: #1e40af; }
|
|
.tag-pill-green { background: #dcfce7; color: #166534; }
|
|
.tag-pill-red { background: #fee2e2; color: #991b1b; }
|
|
.tag-pill-yellow { background: #fef3c7; color: #92400e; }
|
|
.tag-pill-purple { background: #ede9fe; color: #5b21b6; }
|
|
.tag-pill-gray { background: #e5e7eb; color: #4b5563; }
|
|
.tag-pill-indigo { background: #e0e7ff; color: #3730a3; }
|
|
.tag-pill-pink { background: #fce7f3; color: #9d174d; }
|
|
.tag-pill-outlined { background: transparent; border: 1.5px solid currentColor; }
|
|
.tag-pill-more { background: #f3f4f6; color: #6b7280; }
|
|
|
|
/* ─── Card Grid ───────────────────────────────────────── */
|
|
.card-grid { display: grid; gap: 16px; }
|
|
.card-grid-1 { grid-template-columns: 1fr; }
|
|
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
|
|
.card-grid-3 { grid-template-columns: repeat(2, 1fr); }
|
|
.card-grid-4 { grid-template-columns: repeat(2, 1fr); }
|
|
@media (min-width: 640px) {
|
|
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
|
|
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
|
|
}
|
|
.card-grid-item {
|
|
background: white; border-radius: 10px; overflow: hidden;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: box-shadow 0.2s, transform 0.2s;
|
|
}
|
|
.card-grid-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); transform: translateY(-2px); }
|
|
.card-grid-image {
|
|
height: 140px; background-size: cover; background-position: center; background-color: #f3f4f6;
|
|
}
|
|
.card-grid-image-placeholder {
|
|
display: flex; align-items: center; justify-content: center;
|
|
background: linear-gradient(135deg, #eef2ff, #e0e7ff); font-size: 32px;
|
|
}
|
|
.card-grid-body { padding: 12px 14px; }
|
|
.card-grid-title { font-weight: 600; font-size: 14px; color: #111827; margin-bottom: 2px; }
|
|
.card-grid-subtitle { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
|
|
.card-grid-desc { font-size: 13px; color: #6b7280; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.card-grid-footer { display: flex; align-items: center; justify-content: space-between; }
|
|
.cg-status-active { background: #dbeafe; color: #1e40af; }
|
|
.cg-status-complete { background: #dcfce7; color: #166534; }
|
|
.cg-status-draft { background: #e5e7eb; color: #4b5563; }
|
|
.cg-status-error { background: #fee2e2; color: #991b1b; }
|
|
.cg-status-pending { background: #fef3c7; color: #92400e; }
|
|
|
|
/* ─── Avatar Group ────────────────────────────────────── */
|
|
.avatar-group { display: flex; align-items: center; }
|
|
.ag-avatar {
|
|
border-radius: 50%; display: flex; align-items: center; justify-content: center;
|
|
color: white; font-weight: 600; border: 2px solid white; margin-left: -8px;
|
|
overflow: hidden; flex-shrink: 0;
|
|
}
|
|
.ag-avatar:first-child { margin-left: 0; }
|
|
.ag-sm .ag-avatar { width: 28px; height: 28px; font-size: 10px; }
|
|
.ag-md .ag-avatar { width: 36px; height: 36px; font-size: 12px; }
|
|
.ag-lg .ag-avatar { width: 44px; height: 44px; font-size: 14px; }
|
|
.ag-img { width: 100%; height: 100%; object-fit: cover; }
|
|
.ag-initials { line-height: 1; }
|
|
.ag-overflow { background: #e5e7eb; color: #4b5563; }
|
|
|
|
/* ─── Star Rating ─────────────────────────────────────── */
|
|
.star-rating-wrap { display: flex; flex-direction: column; gap: 10px; }
|
|
.star-rating-summary { display: flex; align-items: center; gap: 8px; }
|
|
.star-rating-value { font-size: 24px; font-weight: 700; color: #111827; }
|
|
.star-rating-stars { font-size: 18px; color: #f59e0b; letter-spacing: 2px; }
|
|
.star-rating-count { font-size: 13px; color: #6b7280; }
|
|
.star-rating-distribution { display: flex; flex-direction: column; gap: 4px; }
|
|
.star-dist-row { display: flex; align-items: center; gap: 8px; }
|
|
.star-dist-label { font-size: 12px; color: #6b7280; width: 24px; text-align: right; flex-shrink: 0; }
|
|
.star-dist-track { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
|
|
.star-dist-bar { height: 100%; background: #f59e0b; border-radius: 4px; transition: width 0.3s; }
|
|
.star-dist-count { font-size: 12px; color: #6b7280; width: 32px; flex-shrink: 0; }
|
|
|
|
/* ─── Stock Indicator ─────────────────────────────────── */
|
|
.stock-indicator {
|
|
display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
|
|
border-radius: 10px; border: 1px solid #e5e7eb; background: white;
|
|
}
|
|
.stock-icon { font-size: 20px; }
|
|
.stock-info { display: flex; flex-direction: column; }
|
|
.stock-label { font-size: 13px; font-weight: 600; color: #111827; }
|
|
.stock-qty { font-size: 14px; font-weight: 500; color: #374151; }
|
|
.stock-level { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
.stock-ok .stock-level { color: #059669; }
|
|
.stock-ok { border-color: #bbf7d0; background: #f0fdf4; }
|
|
.stock-low .stock-level { color: #d97706; }
|
|
.stock-low { border-color: #fde68a; background: #fffbeb; }
|
|
.stock-critical .stock-level { color: #dc2626; }
|
|
.stock-critical { border-color: #fecaca; background: #fef2f2; }
|
|
|
|
/* ─── Chat Thread ─────────────────────────────────────── */
|
|
.chat-thread {
|
|
background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden;
|
|
}
|
|
.chat-thread-header {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 14px 20px; border-bottom: 1px solid #e5e7eb; background: #f9fafb;
|
|
}
|
|
.chat-thread-title { font-size: 16px; font-weight: 600; color: #111827; }
|
|
.chat-thread-count { font-size: 12px; color: #6b7280; background: #e5e7eb; padding: 2px 8px; border-radius: 9999px; }
|
|
.chat-thread-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; max-height: 600px; overflow-y: auto; }
|
|
.chat-msg { display: flex; align-items: flex-end; gap: 8px; }
|
|
.chat-msg-outbound { flex-direction: row; justify-content: flex-end; }
|
|
.chat-msg-inbound { flex-direction: row; }
|
|
.chat-avatar {
|
|
width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
|
|
justify-content: center; color: white; font-weight: 600; font-size: 11px; flex-shrink: 0;
|
|
}
|
|
.chat-avatar-outbound { order: 2; }
|
|
.chat-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
|
|
.chat-bubble-wrap { display: flex; flex-direction: column; max-width: 70%; }
|
|
.chat-bubble-wrap-right { align-items: flex-end; }
|
|
.chat-sender { font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 2px; padding: 0 4px; }
|
|
.chat-bubble {
|
|
padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45;
|
|
word-break: break-word;
|
|
}
|
|
.chat-bubble-inbound {
|
|
background: #f3f4f6; color: #1f2937;
|
|
border-bottom-left-radius: 4px;
|
|
}
|
|
.chat-bubble-outbound {
|
|
background: #4f46e5; color: white;
|
|
border-bottom-right-radius: 4px;
|
|
}
|
|
.chat-meta { font-size: 11px; color: #9ca3af; margin-top: 3px; padding: 0 4px; }
|
|
|
|
/* ─── Email Preview ───────────────────────────────────── */
|
|
.email-preview {
|
|
background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden;
|
|
}
|
|
.email-header {
|
|
padding: 16px 20px; border-bottom: 1px solid #e5e7eb; background: #f9fafb;
|
|
}
|
|
.email-subject { font-size: 18px; font-weight: 600; color: #111827; margin-bottom: 10px; }
|
|
.email-header-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; }
|
|
.email-header-row:last-child { margin-bottom: 0; }
|
|
.email-label {
|
|
font-weight: 600; color: #6b7280; min-width: 40px; text-transform: uppercase;
|
|
font-size: 10px; letter-spacing: 0.05em;
|
|
}
|
|
.email-value { color: #374151; }
|
|
.email-attachments {
|
|
padding: 10px 20px; border-bottom: 1px solid #e5e7eb; display: flex; flex-wrap: wrap; gap: 8px;
|
|
}
|
|
.email-attachment {
|
|
display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
|
|
background: #f3f4f6; border-radius: 6px; font-size: 12px; color: #374151;
|
|
}
|
|
.email-body { padding: 20px; font-size: 14px; line-height: 1.6; color: #374151; }
|
|
.email-body img { max-width: 100%; height: auto; }
|
|
|
|
/* ─── Content Preview ─────────────────────────────────── */
|
|
.content-preview {
|
|
background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden;
|
|
}
|
|
.content-preview-header {
|
|
padding: 14px 20px; border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
.content-preview-title { font-size: 16px; font-weight: 600; color: #111827; }
|
|
.content-preview-body {
|
|
padding: 20px; font-size: 14px; line-height: 1.7; color: #374151;
|
|
}
|
|
.content-preview-body h1 { font-size: 24px; font-weight: 700; margin: 16px 0 8px; color: #111827; }
|
|
.content-preview-body h2 { font-size: 20px; font-weight: 600; margin: 14px 0 6px; color: #111827; }
|
|
.content-preview-body h3 { font-size: 16px; font-weight: 600; margin: 12px 0 4px; color: #111827; }
|
|
.content-preview-body a { color: #4f46e5; }
|
|
.content-preview-body a:hover { text-decoration: underline; }
|
|
.content-preview-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
|
|
.content-preview-pre {
|
|
background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px;
|
|
padding: 16px; font-family: 'SF Mono', 'Fira Code', monospace;
|
|
font-size: 13px; white-space: pre-wrap; word-break: break-word; overflow-x: auto;
|
|
}
|
|
|
|
/* ─── Transcript View ─────────────────────────────────── */
|
|
.transcript-view {
|
|
background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden;
|
|
}
|
|
.transcript-header {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 14px 20px; border-bottom: 1px solid #e5e7eb; background: #f9fafb;
|
|
}
|
|
.transcript-title { font-size: 16px; font-weight: 600; color: #111827; }
|
|
.transcript-meta { display: flex; align-items: center; gap: 12px; }
|
|
.transcript-duration { font-size: 13px; color: #4f46e5; font-weight: 500; }
|
|
.transcript-count { font-size: 12px; color: #6b7280; background: #e5e7eb; padding: 2px 8px; border-radius: 9999px; }
|
|
.transcript-body { padding: 8px 0; }
|
|
.transcript-entry {
|
|
display: flex; gap: 16px; padding: 10px 20px;
|
|
transition: background 0.15s;
|
|
}
|
|
.transcript-entry:hover { background: #f9fafb; }
|
|
.transcript-timestamp {
|
|
font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; color: #9ca3af;
|
|
min-width: 60px; flex-shrink: 0; padding-top: 2px;
|
|
}
|
|
.transcript-content { flex: 1; min-width: 0; }
|
|
.transcript-speaker { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
|
|
.transcript-speaker-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
|
|
.transcript-speaker-name { font-size: 13px; font-weight: 600; color: #374151; }
|
|
.transcript-role-badge {
|
|
font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 4px;
|
|
text-transform: uppercase; letter-spacing: 0.03em;
|
|
}
|
|
.transcript-text { font-size: 14px; color: #4b5563; line-height: 1.5; }
|
|
|
|
/* ─── Audio Player ────────────────────────────────────── */
|
|
.audio-player {
|
|
background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
padding: 16px 20px; display: flex; flex-direction: column; gap: 12px;
|
|
}
|
|
.audio-player-info { display: flex; align-items: center; gap: 10px; }
|
|
.audio-player-icon { font-size: 24px; }
|
|
.audio-player-title { font-size: 14px; font-weight: 600; color: #111827; }
|
|
.audio-player-type { font-size: 12px; color: #6b7280; }
|
|
.audio-player-controls { display: flex; align-items: center; gap: 12px; }
|
|
.audio-play-btn {
|
|
width: 40px; height: 40px; border-radius: 50%; border: none;
|
|
background: #4f46e5; color: white; display: flex; align-items: center;
|
|
justify-content: center; cursor: pointer; flex-shrink: 0;
|
|
transition: background 0.15s, transform 0.1s;
|
|
box-shadow: 0 2px 6px rgba(79,70,229,0.3);
|
|
}
|
|
.audio-play-btn:hover { background: #4338ca; transform: scale(1.05); }
|
|
.audio-play-btn:active { transform: scale(0.97); }
|
|
.audio-waveform {
|
|
flex: 1; display: flex; align-items: flex-end; gap: 2px; height: 36px;
|
|
padding: 0 4px;
|
|
}
|
|
.audio-bar {
|
|
flex: 1; min-width: 2px; border-radius: 1px;
|
|
background: #d1d5db; transition: background 0.2s;
|
|
}
|
|
.audio-bar-played { background: #4f46e5; }
|
|
.audio-duration {
|
|
font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px;
|
|
color: #6b7280; min-width: 40px; text-align: right; flex-shrink: 0;
|
|
}
|
|
|
|
/* ─── Checklist View ──────────────────────────────────── */
|
|
.checklist-view {
|
|
background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden;
|
|
}
|
|
.checklist-header {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 14px 20px; border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
.checklist-title { font-size: 16px; font-weight: 600; color: #111827; }
|
|
.checklist-progress-wrap { display: flex; align-items: center; gap: 10px; }
|
|
.checklist-progress-text { font-size: 12px; color: #6b7280; white-space: nowrap; }
|
|
.checklist-progress-track { width: 80px; height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
|
|
.checklist-progress-bar { height: 100%; background: #4f46e5; border-radius: 3px; transition: width 0.3s; }
|
|
.checklist-body { padding: 4px 0; }
|
|
.checklist-item {
|
|
display: flex; align-items: flex-start; gap: 12px; padding: 12px 20px;
|
|
border-bottom: 1px solid #f3f4f6; transition: background 0.15s;
|
|
}
|
|
.checklist-item:last-child { border-bottom: none; }
|
|
.checklist-item:hover { background: #f9fafb; }
|
|
.checklist-item-done { opacity: 0.7; }
|
|
.checklist-checkbox {
|
|
width: 20px; height: 20px; border-radius: 6px; border: 2px solid #d1d5db;
|
|
display: flex; align-items: center; justify-content: center;
|
|
flex-shrink: 0; margin-top: 1px; transition: all 0.15s;
|
|
}
|
|
.checklist-checkbox-checked {
|
|
background: #4f46e5; border-color: #4f46e5; color: white;
|
|
}
|
|
.checklist-item-content { flex: 1; min-width: 0; }
|
|
.checklist-item-title { font-size: 14px; font-weight: 500; color: #111827; }
|
|
.checklist-item-title-done { text-decoration: line-through; color: #9ca3af; }
|
|
.checklist-item-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
|
|
.checklist-due, .checklist-assignee { font-size: 12px; color: #6b7280; }
|
|
.checklist-priority {
|
|
font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
|
|
padding: 1px 6px; border: 1px solid; border-radius: 4px;
|
|
}
|
|
|
|
/* ─── CalendarView ────────────────────────────────────── */
|
|
.cal-view {
|
|
background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
padding: 20px; margin-bottom: 16px;
|
|
}
|
|
.cal-title { font-size: 18px; font-weight: 600; color: #111827; margin-bottom: 4px; }
|
|
.cal-header-month { font-size: 15px; font-weight: 500; color: #4f46e5; margin-bottom: 12px; }
|
|
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: #e5e7eb; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
|
|
.cal-day-header {
|
|
background: #f9fafb; padding: 8px 4px; text-align: center; font-size: 11px;
|
|
font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em;
|
|
}
|
|
.cal-cell {
|
|
background: white; min-height: 80px; padding: 4px 6px; position: relative;
|
|
display: flex; flex-direction: column;
|
|
}
|
|
.cal-cell-empty { background: #f9fafb; }
|
|
.cal-today { background: #eef2ff; }
|
|
.cal-day-num { font-size: 12px; font-weight: 500; color: #374151; margin-bottom: 2px; }
|
|
.cal-day-today {
|
|
background: #4f46e5; color: white; border-radius: 50%; width: 22px; height: 22px;
|
|
display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
|
|
}
|
|
.cal-evts { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: hidden; }
|
|
.cal-evt {
|
|
padding: 1px 4px; border-radius: 3px; font-size: 10px; color: white;
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4;
|
|
}
|
|
.cal-evt-more { font-size: 9px; color: #6b7280; padding-left: 2px; }
|
|
|
|
/* ─── FlowDiagram ─────────────────────────────────────── */
|
|
.flow-diagram {
|
|
background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
padding: 20px; margin-bottom: 16px; overflow-x: auto;
|
|
}
|
|
.flow-title { font-size: 18px; font-weight: 600; color: #111827; margin-bottom: 16px; }
|
|
.flow-container { display: flex; align-items: center; gap: 0; padding: 12px 0; }
|
|
.flow-horizontal { flex-direction: row; }
|
|
.flow-vertical { flex-direction: column; }
|
|
.flow-node {
|
|
padding: 12px 20px; border-radius: 10px; border: 2px solid; text-align: center;
|
|
min-width: 120px; flex-shrink: 0; position: relative;
|
|
}
|
|
.flow-node-start { border-color: #059669; background: #ecfdf5; }
|
|
.flow-node-action { border-color: #3b82f6; background: #eff6ff; }
|
|
.flow-node-condition { border-color: #d97706; background: #fffbeb; }
|
|
.flow-diamond { border-radius: 4px; border-style: dashed; }
|
|
.flow-node-end { border-color: #6b7280; background: #f3f4f6; }
|
|
.flow-node-label { font-size: 13px; font-weight: 600; color: #111827; }
|
|
.flow-node-desc { font-size: 11px; color: #6b7280; margin-top: 4px; }
|
|
.flow-arrow {
|
|
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
|
font-size: 20px; color: #9ca3af; padding: 0 8px; flex-shrink: 0;
|
|
}
|
|
.flow-arrow-vert { padding: 8px 0; }
|
|
.flow-edge-label { font-size: 10px; color: #6b7280; white-space: nowrap; }
|
|
|
|
/* ─── TreeView ────────────────────────────────────────── */
|
|
.tree-view {
|
|
background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
padding: 16px 20px; margin-bottom: 16px;
|
|
}
|
|
.tree-title { font-size: 18px; font-weight: 600; color: #111827; margin-bottom: 12px; }
|
|
.tree-list { display: flex; flex-direction: column; }
|
|
.tree-item {
|
|
display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px;
|
|
cursor: default; transition: background 0.1s;
|
|
}
|
|
.tree-item:hover { background: #f9fafb; }
|
|
.tree-chevron { width: 16px; font-size: 12px; color: #9ca3af; flex-shrink: 0; text-align: center; }
|
|
.tree-icon { font-size: 14px; flex-shrink: 0; }
|
|
.tree-label { font-size: 14px; color: #111827; font-weight: 500; }
|
|
.tree-badge {
|
|
padding: 1px 8px; border-radius: 9999px; font-size: 10px; font-weight: 600;
|
|
background: #eef2ff; color: #4f46e5; margin-left: 6px;
|
|
}
|
|
|
|
/* ─── MediaGallery ────────────────────────────────────── */
|
|
.mg-gallery {
|
|
background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
padding: 20px; margin-bottom: 16px;
|
|
}
|
|
.mg-title { font-size: 18px; font-weight: 600; color: #111827; margin-bottom: 12px; }
|
|
.mg-grid { display: grid; gap: 12px; }
|
|
.mg-card {
|
|
border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden;
|
|
transition: box-shadow 0.15s, border-color 0.15s;
|
|
}
|
|
.mg-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-color: #4f46e5; }
|
|
.mg-thumb {
|
|
width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #f3f4f6; position: relative;
|
|
}
|
|
.mg-img { width: 100%; height: 100%; object-fit: cover; }
|
|
.mg-placeholder {
|
|
width: 100%; height: 100%; display: flex; flex-direction: column;
|
|
align-items: center; justify-content: center; gap: 6px; color: #9ca3af;
|
|
}
|
|
.mg-placeholder-icon { font-size: 32px; }
|
|
.mg-type-badge {
|
|
padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700;
|
|
background: #e5e7eb; color: #4b5563;
|
|
}
|
|
.mg-info { padding: 10px 12px; }
|
|
.mg-name {
|
|
font-size: 13px; font-weight: 600; color: #111827; white-space: nowrap;
|
|
overflow: hidden; text-overflow: ellipsis;
|
|
}
|
|
.mg-meta { display: flex; gap: 12px; margin-top: 4px; font-size: 11px; color: #9ca3af; }
|
|
|
|
/* ─── DuplicateCompare ────────────────────────────────── */
|
|
.dc-compare {
|
|
background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
overflow: hidden; margin-bottom: 16px;
|
|
}
|
|
.dc-title { font-size: 18px; font-weight: 600; color: #111827; padding: 16px 20px 0; }
|
|
.dc-header-row {
|
|
display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px;
|
|
background: #f9fafb; border-bottom: 2px solid #e5e7eb;
|
|
}
|
|
.dc-header-label {
|
|
padding: 10px 16px; font-size: 12px; font-weight: 600; color: #6b7280;
|
|
text-transform: uppercase; letter-spacing: 0.05em;
|
|
}
|
|
.dc-body { }
|
|
.dc-row {
|
|
display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px;
|
|
border-bottom: 1px solid #f3f4f6;
|
|
}
|
|
.dc-row:last-child { border-bottom: none; }
|
|
.dc-field { padding: 10px 16px; font-size: 13px; color: #6b7280; font-weight: 500; background: #f9fafb; }
|
|
.dc-val { padding: 10px 16px; font-size: 13px; color: #111827; }
|
|
.dc-diff { background: #fefce8; }
|
|
|
|
/* ─── Chart Components ────────────────────────────────── */
|
|
.chart-container {
|
|
background: white; border-radius: 12px; padding: 16px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 16px;
|
|
}
|
|
.chart-title {
|
|
font-size: 15px; font-weight: 600; color: #111827; margin-bottom: 12px;
|
|
}
|
|
.chart-scroll { overflow-x: auto; }
|
|
.chart-empty { text-align: center; color: #9ca3af; padding: 32px; font-size: 14px; }
|
|
|
|
/* Bar Chart - Horizontal */
|
|
.bar-chart-h { display: flex; flex-direction: column; gap: 10px; }
|
|
.bar-h-row { display: flex; align-items: center; gap: 10px; }
|
|
.bar-h-label { width: 90px; font-size: 13px; color: #374151; font-weight: 500; text-align: right; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.bar-h-track { flex: 1; height: 24px; background: #f3f4f6; border-radius: 6px; overflow: hidden; }
|
|
.bar-h-fill { height: 100%; border-radius: 6px; transition: width 0.4s ease; min-width: 2px; }
|
|
.bar-h-value { width: 60px; font-size: 13px; font-weight: 600; color: #111827; font-family: 'SF Mono', 'Fira Code', monospace; }
|
|
|
|
/* Bar Chart - Vertical SVG */
|
|
.bar-chart-svg { width: 100%; height: auto; max-height: 200px; }
|
|
.bar-v-rect { transition: opacity 0.2s; }
|
|
.bar-v-rect:hover { opacity: 0.8; }
|
|
.bar-v-val { font-size: 11px; fill: #374151; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
|
|
.bar-v-label { font-size: 10px; fill: #6b7280; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
|
|
|
|
/* Line Chart SVG */
|
|
.line-chart-svg { width: 100%; height: auto; max-height: 200px; }
|
|
.chart-axis-text { font-size: 10px; fill: #9ca3af; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
|
|
.chart-axis-label { font-size: 10px; fill: #6b7280; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
|
|
|
|
/* Pie Chart */
|
|
.pie-chart-layout { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
|
|
.pie-chart-svg { width: 160px; height: 160px; flex-shrink: 0; }
|
|
.pie-center-text { font-size: 18px; font-weight: 700; fill: #111827; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
|
|
.pie-legend { display: flex; flex-direction: column; gap: 6px; min-width: 120px; }
|
|
.pie-legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
|
|
.pie-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
|
|
.pie-legend-label { color: #374151; flex: 1; }
|
|
.pie-legend-value { color: #6b7280; font-weight: 500; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; }
|
|
|
|
/* Funnel Chart */
|
|
.funnel-chart { display: flex; flex-direction: column; gap: 8px; }
|
|
.funnel-stage { display: flex; align-items: center; gap: 12px; }
|
|
.funnel-label-col { width: 100px; flex-shrink: 0; text-align: right; }
|
|
.funnel-label { display: block; font-size: 13px; font-weight: 500; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.funnel-value { display: block; font-size: 11px; color: #6b7280; font-family: 'SF Mono', 'Fira Code', monospace; }
|
|
.funnel-bar-col { flex: 1; }
|
|
.funnel-bar { height: 28px; border-radius: 6px; transition: width 0.4s ease; min-width: 4px; }
|
|
.funnel-dropoff { width: 50px; font-size: 11px; color: #ef4444; font-weight: 600; text-align: left; flex-shrink: 0; }
|
|
|
|
/* Sparkline */
|
|
.sparkline-svg { display: inline-block; vertical-align: middle; }
|
|
.sparkline-empty { display: inline-flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 12px; vertical-align: middle; }
|
|
|
|
/* ─── Interactive: Drag & Drop ────────────────────────── */
|
|
.kanban-card[draggable] { cursor: grab; transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s; }
|
|
.kanban-card[draggable]:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); transform: translateY(-1px); }
|
|
.kanban-card-dragging { opacity: 0.4; transform: scale(0.95); }
|
|
.kanban-drop-target { background: #eef2ff; border: 2px dashed #818cf8; border-radius: 6px; min-height: 40px; transition: background 0.15s; }
|
|
|
|
/* ─── Interactive: Clickable Rows ─────────────────────── */
|
|
.clickable-row { cursor: pointer; transition: background 0.1s; }
|
|
.clickable-row:hover { background: #f0f4ff !important; }
|
|
|
|
/* ─── Modal ───────────────────────────────────────────── */
|
|
.mcp-modal-overlay {
|
|
position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex;
|
|
align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(2px);
|
|
}
|
|
.mcp-modal {
|
|
background: white; border-radius: 10px; width: 90%; max-width: 360px;
|
|
box-shadow: 0 8px 30px rgba(0,0,0,0.2); overflow: hidden;
|
|
}
|
|
.mcp-modal-header {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 10px 14px; border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
.mcp-modal-title { font-size: 13px; font-weight: 600; color: #111827; }
|
|
.mcp-modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: #6b7280; padding: 0 4px; }
|
|
.mcp-modal-close:hover { color: #111827; }
|
|
.mcp-modal-body { padding: 12px 14px; }
|
|
.mcp-modal-footer { padding: 8px 14px; border-top: 1px solid #e5e7eb; display: flex; gap: 8px; justify-content: flex-end; }
|
|
|
|
.mcp-field { margin-bottom: 10px; }
|
|
.mcp-field-label { display: block; font-size: 11px; font-weight: 500; color: #374151; margin-bottom: 3px; }
|
|
.mcp-field-input {
|
|
width: 100%; padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px;
|
|
font-size: 12px; outline: none; transition: border-color 0.15s;
|
|
}
|
|
.mcp-field-input:focus { border-color: #4f46e5; box-shadow: 0 0 0 2px rgba(79,70,229,0.15); }
|
|
|
|
/* ─── Toast ───────────────────────────────────────────── */
|
|
.mcp-toast {
|
|
position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%) translateY(20px);
|
|
padding: 6px 16px; border-radius: 8px; font-size: 11px; font-weight: 500;
|
|
z-index: 2000; opacity: 0; transition: opacity 0.2s, transform 0.2s;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.15); pointer-events: none;
|
|
}
|
|
.mcp-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
|
|
.mcp-toast-success { background: #059669; color: white; }
|
|
.mcp-toast-error { background: #dc2626; color: white; }
|
|
.mcp-toast-info { background: #1f2937; color: white; }
|
|
|
|
/* ─── Interactive Components ──────────────────────────── */
|
|
.interactive-wrap {
|
|
background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
overflow: hidden; margin-bottom: 8px;
|
|
}
|
|
|
|
/* Contact Picker */
|
|
.contact-picker { padding: 12px; }
|
|
.cp-search-wrap { position: relative; }
|
|
.cp-input { width: 100%; }
|
|
.cp-results {
|
|
position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
|
|
background: white; border: 1px solid #e5e7eb; border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.15); max-height: 200px; overflow-y: auto; margin-top: 4px;
|
|
}
|
|
.cp-result-item { padding: 8px 12px; cursor: pointer; font-size: 13px; border-bottom: 1px solid #f3f4f6; }
|
|
.cp-result-item:hover { background: #f0f4ff; }
|
|
.cp-selected {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 6px 10px; background: #eef2ff; border-radius: 6px; margin-bottom: 8px;
|
|
font-size: 13px; font-weight: 500; color: #4f46e5;
|
|
}
|
|
.cp-clear { background: none; border: none; cursor: pointer; font-size: 16px; color: #6b7280; padding: 0 4px; }
|
|
.cp-clear:hover { color: #dc2626; }
|
|
|
|
/* Invoice Builder */
|
|
.invoice-builder .ib-items td { padding: 6px 4px; }
|
|
.invoice-builder .ib-items input { font-size: 12px; }
|
|
.invoice-builder .ib-line-total { font-family: 'SF Mono', monospace; font-weight: 500; text-align: right; padding-right: 8px; white-space: nowrap; }
|
|
.invoice-builder .ib-grand-total { font-size: 14px; }
|
|
.invoice-builder .ib-remove-row { color: #dc2626; }
|
|
.invoice-builder .ib-add-row { color: #4f46e5; }
|
|
|
|
/* Opportunity Editor */
|
|
.opportunity-editor select.mcp-field-input {
|
|
appearance: auto; padding: 6px 8px; background: white;
|
|
}
|
|
|
|
/* Editable Field */
|
|
.editable-field {
|
|
display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
|
|
padding: 2px 4px; border-radius: 4px; transition: background 0.15s;
|
|
}
|
|
.editable-field:hover { background: #f3f4f6; }
|
|
.ef-edit-icon { font-size: 12px; opacity: 0; transition: opacity 0.15s; }
|
|
.editable-field:hover .ef-edit-icon { opacity: 0.6; }
|
|
.ef-input { font-size: inherit; }
|
|
|
|
/* Amount Input */
|
|
.amount-input { display: inline-flex; align-items: center; cursor: pointer; }
|
|
.ai-display { cursor: pointer; }
|
|
.ai-raw { font-size: 16px; width: 120px; }
|
|
|
|
/* Select Dropdown */
|
|
.select-dropdown { appearance: auto; background: white; }
|
|
`;
|