Files
optima/src/styles/sales/sales.css
T

572 lines
10 KiB
CSS

/* ═══════════════════════════════════════════════════
Sales — Opportunities Table
═══════════════════════════════════════════════════ */
.sales-page {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
overflow: hidden;
width: 100%;
}
.sales-pane {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
background: var(--bg-surface);
border-radius: 12px;
box-shadow: var(--header-shadow);
overflow: hidden;
}
.sales-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px;
padding: 18px 24px 14px;
border-bottom: 1px solid var(--border-subtle);
flex-shrink: 0;
}
.sales-header-left {
display: flex;
align-items: baseline;
gap: 12px;
}
.sales-title {
margin: 0;
font-size: 20px;
font-weight: 600;
color: var(--text-primary);
}
.sales-result-count {
font-size: 13px;
font-weight: 500;
color: var(--text-secondary);
}
.sales-header-actions {
display: flex;
align-items: center;
gap: 8px;
}
/* ── Search ── */
.sales-search-bar {
position: relative;
width: 280px;
}
.sales-search-bar input {
width: 100%;
padding: 9px 34px 9px 38px;
border: 1px solid var(--input-border);
border-radius: 8px;
font-size: 14px;
outline: none;
background: var(--input-bg);
color: var(--input-text);
transition:
border-color 0.2s,
box-shadow 0.2s;
}
.sales-search-bar input::placeholder {
color: var(--input-placeholder);
}
.sales-search-bar input:focus {
border-color: var(--input-focus-border);
box-shadow: 0 0 0 3px var(--input-focus-ring);
background: var(--input-focus-bg);
}
.sales-search-icon {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
width: 16px;
height: 16px;
color: var(--text-faint);
pointer-events: none;
}
.sales-search-clear {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
color: var(--text-faint);
cursor: pointer;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition:
color 0.15s,
background 0.15s;
}
.sales-search-clear:hover {
color: var(--input-text);
background: var(--nav-hover-bg);
}
/* ── Filter button ── */
.sales-filter-wrap {
position: relative;
}
.sales-filter-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
border: 1px solid var(--border-subtle);
border-radius: 8px;
background: var(--bg-inset);
color: var(--text-secondary);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition:
border-color 0.15s,
color 0.15s,
background 0.15s;
white-space: nowrap;
}
.sales-filter-btn:hover {
border-color: var(--input-focus-border);
color: var(--text-primary);
}
.sales-filter-btn.has-filters {
border-color: var(--accent-color, #0066cc);
color: var(--accent-color, #0066cc);
}
.sales-filter-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: 9px;
background: var(--accent-color, #0066cc);
color: #fff;
font-size: 11px;
font-weight: 600;
line-height: 1;
}
.sales-filter-popover {
position: absolute;
top: calc(100% + 6px);
right: 0;
z-index: 20;
min-width: 220px;
padding: 8px 4px;
border: 1px solid var(--card-border);
border-radius: 8px;
background: var(--bg-surface);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.sales-filter-option {
display: flex;
align-items: center;
gap: 8px;
padding: 7px 12px;
border-radius: 5px;
font-size: 13px;
color: var(--text-primary);
cursor: pointer;
transition: background 0.12s;
user-select: none;
}
.sales-filter-option:hover {
background: var(--card-hover-bg);
}
.sales-filter-option input[type="checkbox"] {
width: 15px;
height: 15px;
accent-color: var(--accent-color, #0066cc);
cursor: pointer;
flex-shrink: 0;
}
.sales-body {
position: relative;
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
overflow: hidden;
padding: 16px 24px 8px;
}
.sales-table-wrap {
position: relative;
flex: 1;
min-height: 0;
overflow: auto;
border: 1px solid var(--card-border);
border-radius: 10px;
}
.sales-loading-overlay {
position: absolute;
inset: 0;
background: var(--overlay-bg);
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
backdrop-filter: blur(2px);
}
.sales-spinner {
width: 32px;
height: 32px;
border-radius: 50%;
border: 4px solid var(--spinner-track);
border-top-color: var(--spinner-accent);
animation: sales-spin 0.7s linear infinite;
}
@keyframes sales-spin {
to {
transform: rotate(360deg);
}
}
.sales-empty {
display: flex;
align-items: center;
justify-content: center;
padding: 48px 16px;
min-height: 200px;
}
/* ── Table ── */
.sales-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.sales-table thead {
position: sticky;
top: 0;
z-index: 5;
background: var(--bg-inset);
}
.sales-table th {
padding: 10px 16px;
text-align: left;
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.04em;
border-bottom: 1px solid var(--card-border);
white-space: nowrap;
}
.sales-table td {
padding: 12px 16px;
color: var(--text-primary);
border-bottom: 1px solid var(--border-subtle);
vertical-align: middle;
}
.sales-table tbody tr:last-child td {
border-bottom: none;
}
.sales-row {
transition: background 0.15s;
}
.sales-row:hover {
background: var(--card-hover-bg);
}
.sales-row.closed-row {
opacity: 0.65;
}
/* ── Column widths ── */
.col-opportunity {
min-width: 220px;
}
.col-company {
min-width: 160px;
}
.col-status,
.col-rating {
min-width: 120px;
}
.col-owner {
min-width: 150px;
}
.col-close,
.col-updated {
min-width: 120px;
white-space: nowrap;
}
.sales-opportunity {
display: flex;
flex-direction: column;
gap: 2px;
}
.opp-name {
font-weight: 600;
color: var(--text-primary);
}
.opp-meta {
font-size: 11px;
color: var(--text-muted);
}
.mono {
font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
font-size: 12px;
}
.sales-status-badge {
display: inline-block;
padding: 3px 10px;
border-radius: 10px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.03em;
}
/* ── FutureLead: muted purple — not yet in pipeline ── */
.sales-status-badge.status-future {
background: rgba(139, 92, 246, 0.12);
color: #7c3aed;
}
/* ── New: teal — freshly entered ── */
.sales-status-badge.status-new {
background: rgba(20, 184, 166, 0.12);
color: #0d9488;
}
/* ── Internal Review: amber — needs internal action ── */
.sales-status-badge.status-review {
background: rgba(245, 158, 11, 0.12);
color: #d97706;
}
/* ── Active: green — actively being worked ── */
.sales-status-badge.status-active {
background: rgba(34, 197, 94, 0.12);
color: #16a34a;
}
.sales-status-badge.status-open {
background: rgba(34, 197, 94, 0.12);
color: #16a34a;
}
.sales-status-badge.status-won {
background: #dbeafe;
color: #2563eb;
}
.sales-status-badge.status-lost {
background: #fee2e2;
color: #dc2626;
}
.sales-status-badge.status-inactive {
background: #f3f4f6;
color: #6b7280;
}
.sales-status-badge.status-closed {
background: #f3f4f6;
color: #6b7280;
}
.sales-status-badge.status-equiv {
border: 1px dashed currentColor;
cursor: default;
position: relative;
}
.sales-status-badge.status-equiv[data-tooltip]::after {
content: attr(data-tooltip);
position: absolute;
bottom: calc(100% + 6px);
left: 50%;
transform: translateX(-50%);
background: var(--tooltip-bg, #1e293b);
color: var(--tooltip-color, #f8fafc);
font-size: 11px;
font-weight: 500;
text-transform: none;
letter-spacing: 0;
white-space: nowrap;
padding: 4px 8px;
border-radius: 5px;
pointer-events: none;
opacity: 0;
transition: opacity 0.15s ease;
z-index: 10;
}
.sales-status-badge.status-equiv[data-tooltip]:hover::after {
opacity: 1;
}
/* ── Rating badge (heat dots) ── */
.sales-rating-badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 8px;
border-radius: 5px;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
white-space: nowrap;
}
.sales-rating-badge.heat-hot {
background: rgba(239, 68, 68, 0.15);
color: #ef4444;
}
.sales-rating-badge.heat-warm {
background: rgba(245, 158, 11, 0.14);
color: #d97706;
}
.sales-rating-badge.heat-cold {
background: rgba(56, 189, 248, 0.12);
color: #0ea5e9;
}
.sales-rating-badge.heat-neutral {
background: var(--nav-hover-bg);
color: var(--text-secondary);
}
.sales-heat-dots {
display: inline-flex;
gap: 2px;
align-items: center;
}
.sales-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 24px 18px;
flex-shrink: 0;
}
.sales-page-info {
font-size: 13px;
color: var(--text-secondary);
}
.sales-pagination {
display: flex;
align-items: center;
gap: 4px;
}
.sales-page-btn {
display: flex;
align-items: center;
justify-content: center;
min-width: 32px;
height: 32px;
padding: 0 8px;
border: 1px solid var(--border-subtle);
border-radius: 6px;
background: var(--bg-surface);
color: var(--text-primary);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition:
background 0.15s,
border-color 0.15s;
}
.sales-page-btn:hover:not(:disabled) {
background: var(--hover-bg);
border-color: var(--input-focus-border);
}
.sales-page-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.sales-page-btn.active {
background: var(--accent-color, #0066cc);
color: #fff;
border-color: var(--accent-color, #0066cc);
}
.sales-page-ellipsis {
padding: 0 4px;
color: var(--text-muted);
font-size: 14px;
}
@media (max-width: 1024px) {
.sales-search-bar {
width: 220px;
}
}
@media (max-width: 768px) {
.sales-header-actions {
width: 100%;
justify-content: space-between;
}
.sales-search-bar {
flex: 1;
}
.sales-footer {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
}