This commit is contained in:
odzugkoev
2026-03-01 17:10:03 -05:00
parent 7e0887c62d
commit 85cf732a61
19 changed files with 2284 additions and 32 deletions

View File

@@ -1602,3 +1602,388 @@ button, a, input, select, textarea {
}
}
/* ===== Abandoned Calls ===== */
/* Dashboard notification badge */
.abandoned-calls-link {
position: relative;
display: inline-flex;
align-items: center;
gap: 6px;
}
.abandoned-calls-icon {
font-size: 16px;
}
.abandoned-calls-badge {
background: #dc3545;
color: #fff;
font-size: 11px;
font-weight: 700;
min-width: 20px;
height: 20px;
line-height: 20px;
text-align: center;
border-radius: 10px;
padding: 0 6px;
}
.abandoned-calls-link.pulse {
animation: badgePulse 0.6s ease-in-out 3;
}
@keyframes badgePulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
/* Back link in header */
.header-title-group {
display: flex;
align-items: center;
gap: 12px;
}
.back-link {
font-size: 24px;
color: #fff;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border-radius: 8px;
background: rgba(255,255,255,0.15);
transition: background 0.2s;
}
.back-link:hover {
background: rgba(255,255,255,0.25);
}
/* Abandoned call cards */
.abandoned-call-card {
border-left-width: 5px;
border-left-style: solid;
cursor: pointer;
transition: box-shadow 0.2s, transform 0.15s;
}
.abandoned-call-card:active {
transform: scale(0.99);
}
.abandoned-call-card.priority-critical { border-left-color: #dc3545; }
.abandoned-call-card.priority-high { border-left-color: #fd7e14; }
.abandoned-call-card.priority-medium { border-left-color: #ffc107; }
.abandoned-call-card.priority-low { border-left-color: #adb5bd; }
.abandoned-call-card.priority-none { border-left-color: #dee2e6; }
.abandoned-call-card.ac-done {
opacity: 0.65;
}
/* Card header */
.ac-header {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}
.ac-header-left {
display: flex;
align-items: center;
gap: 8px;
}
.ac-priority-badge {
display: inline-block;
padding: 3px 10px;
border-radius: 12px;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.badge-critical { background: #dc3545; color: #fff; }
.badge-high { background: #fd7e14; color: #fff; }
.badge-medium { background: #ffc107; color: #333; }
.badge-low { background: #e9ecef; color: #666; }
.badge-none { background: #f8f9fa; color: #999; }
.ac-time-ago {
font-size: 13px;
color: #888;
}
.ac-score {
font-size: 13px;
font-weight: 600;
color: #555;
}
/* Caller info */
.ac-caller-info {
margin: 10px 0 6px;
}
.ac-phone {
font-size: 18px;
font-weight: 700;
color: #333;
letter-spacing: 0.5px;
}
.ac-name {
font-size: 14px;
color: #555;
margin-top: 2px;
}
.known-customer-badge {
display: inline-block;
margin-top: 4px;
padding: 2px 8px;
background: #e8f5e9;
color: #2e7d32;
border-radius: 10px;
font-size: 12px;
font-weight: 600;
}
/* Stage and duration */
.ac-stage {
font-size: 14px;
color: #444;
margin: 8px 0 2px;
line-height: 1.4;
}
.ac-duration {
font-size: 12px;
color: #999;
margin-bottom: 6px;
}
/* Items */
.ac-items {
background: #f8f9fa;
border-radius: 6px;
padding: 8px 10px;
margin: 6px 0;
}
.ac-items-title {
font-size: 12px;
font-weight: 600;
color: #666;
margin-bottom: 4px;
}
.ac-item {
font-size: 13px;
color: #333;
padding: 1px 0;
}
.ac-item-value {
font-size: 13px;
font-weight: 600;
color: #28a745;
margin-top: 4px;
}
/* LLM summary */
.ac-summary {
font-size: 13px;
color: #555;
font-style: italic;
margin: 6px 0;
line-height: 1.4;
}
/* Callback script */
.ac-callback-script {
background: #fff8e1;
border-left: 3px solid #ffc107;
border-radius: 4px;
padding: 8px 10px;
margin: 8px 0;
}
.ac-script-label {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
color: #e65100;
margin-bottom: 3px;
}
.ac-script-text {
font-size: 13px;
color: #333;
line-height: 1.4;
}
/* Actions */
.ac-actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid #eee;
}
.ac-action-btn {
min-height: 44px;
min-width: 44px;
padding: 8px 14px;
font-size: 13px;
font-weight: 600;
border-radius: 8px;
flex: 1 1 auto;
}
.ac-action-converted {
border: 2px solid #28a745;
}
.ac-action-reprint {
flex: 0 0 44px;
padding: 8px;
font-size: 16px;
}
.ac-status-done {
font-size: 13px;
font-weight: 600;
color: #666;
text-transform: capitalize;
padding: 8px 0;
}
/* Stats for abandoned calls page */
.stat-abandoned-pending {
border-left: 4px solid #dc3545;
}
.stat-converted {
border-left: 4px solid #28a745;
}
/* Controls layout */
.controls-right {
display: flex;
align-items: center;
gap: 12px;
}
/* Toggle switch */
.toggle-switch {
display: inline-flex;
align-items: center;
gap: 8px;
cursor: pointer;
user-select: none;
-webkit-tap-highlight-color: transparent;
padding: 6px 0;
}
.toggle-switch input {
display: none;
}
.toggle-slider {
position: relative;
width: 44px;
height: 24px;
background: #ccc;
border-radius: 12px;
transition: background 0.25s;
flex-shrink: 0;
}
.toggle-slider::after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 20px;
height: 20px;
background: #fff;
border-radius: 50%;
transition: transform 0.25s;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
background: #667eea;
}
.toggle-switch input:checked + .toggle-slider::after {
transform: translateX(20px);
}
.toggle-label {
font-size: 13px;
color: #666;
white-space: nowrap;
}
/* Filter button colors for abandoned calls page */
.filter-critical { color: #dc3545; }
.filter-critical.active { background: #dc3545; color: #fff; }
.filter-high { color: #fd7e14; }
.filter-high.active { background: #fd7e14; color: #fff; }
.filter-medium { color: #856404; }
.filter-medium.active { background: #ffc107; color: #333; }
/* Responsive */
@media (max-width: 768px) {
.ac-phone {
font-size: 16px;
}
.ac-action-btn {
font-size: 12px;
padding: 8px 10px;
}
.back-link {
width: 38px;
height: 38px;
font-size: 20px;
}
}
@media (max-width: 480px) {
.ac-actions {
gap: 4px;
}
.ac-action-btn {
min-height: 40px;
padding: 6px 8px;
font-size: 11px;
}
.abandoned-calls-link span:not(.abandoned-calls-badge):not(.abandoned-calls-icon) {
display: none;
}
.controls-right {
flex-wrap: wrap;
gap: 8px;
}
.toggle-label {
font-size: 12px;
}
}