* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --sidebar-width: 240px;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--gray-100); color: var(--gray-800); line-height: 1.5; overflow-x: hidden; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.login-card { background: white; padding: 2.5rem; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); width: 100%; max-width: 400px; }
.login-card h1 { text-align: center; margin-bottom: 0.5rem; }
.login-subtitle { text-align: center; color: var(--gray-500); margin-bottom: 2rem; }

/* Layout */
.app-layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: var(--sidebar-width); background: var(--gray-900); color: white; padding: 1.5rem 0; position: fixed; height: 100vh; }
.sidebar-logo { padding: 0 1.5rem 2rem; border-bottom: 1px solid var(--gray-700); }
.sidebar-logo h2 { font-size: 1.25rem; font-weight: 600; }
.sidebar-nav { padding: 1rem 0; }
.nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.5rem; color: var(--gray-300); text-decoration: none; transition: all 0.2s; }
.nav-item:hover { background: var(--gray-800); color: white; }
.nav-item.active { background: var(--primary); color: white; }
.nav-icon { font-size: 1.2rem; }

.main-content { margin-left: var(--sidebar-width); flex: 1; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.header { background: white; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gray-200); flex-shrink: 0; z-index: 10; position: relative; }
.header-left h1 { font-size: 1.5rem; }
.header-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.status-selector { display: flex; align-items: center; gap: 0.5rem; }
.status-selector select { padding: 0.4rem 0.75rem; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 0.875rem; }
.user-info { display: flex; flex-direction: column; align-items: flex-end; }
.user-name { font-weight: 600; font-size: 0.9rem; }
.user-number { font-size: 0.75rem; color: var(--gray-500); }
.btn-logout { padding: 0.5rem 1rem; background: var(--gray-200); border: none; border-radius: 6px; cursor: pointer; font-size: 0.875rem; text-decoration: none; color: var(--gray-800); }
.btn-logout:hover { background: var(--gray-300); }
.page-content { padding: 2rem; flex: 1; overflow-y: auto; overflow-x: hidden; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; color: var(--gray-700); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 0.9rem; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

/* Buttons */
.btn-primary { background: var(--primary); color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 6px; cursor: pointer; font-size: 0.9rem; font-weight: 500; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-full { width: 100%; }
.btn-danger { background: var(--danger); color: white; border: none; padding: 0.4rem 0.8rem; border-radius: 6px; cursor: pointer; font-size: 0.8rem; }
.btn-secondary { background: var(--gray-200); color: var(--gray-700); border: none; padding: 0.4rem 0.8rem; border-radius: 6px; cursor: pointer; font-size: 0.8rem; }
.btn-success { background: var(--success); color: white; border: none; padding: 0.4rem 0.8rem; border-radius: 6px; cursor: pointer; font-size: 0.8rem; }
.btn-compact { padding: 0.25rem 0.6rem; font-size: 0.78rem; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.data-table th { background: var(--gray-50); padding: 0.75rem 1rem; text-align: left; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; color: var(--gray-500); border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.data-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; }
.data-table tr:hover { background: var(--gray-50); }
.data-table .actions { display: flex; gap: 0.5rem; }

/* Compact table */
.data-table-compact th { padding: 0.4rem 0.6rem; font-size: 0.75rem; }
.data-table-compact td { padding: 0.4rem 0.6rem; font-size: 0.85rem; }

/* Scrollable table container */
.table-container { max-height: 65vh; overflow-y: auto; border-radius: 8px; }
.table-container table { position: sticky; }

/* Row callback highlight */
.row-callback { background: #f0fdf4; }

/* Badges */
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 500; }
.badge-new { background: #dbeafe; color: #1d4ed8; }
.badge-callback { background: #d1fae5; color: #16a34a; }
.badge-answered { background: #dbeafe; color: #1d4ed8; }
.badge-closed { background: #d1fae5; color: #065f46; }
.badge-missed { background: #fee2e2; color: #b91c1c; }
.badge-no-callback { background: #fee2e2; color: #b91c1c; }
.badge-online { background: #d1fae5; color: #065f46; }
.badge-offline { background: var(--gray-200); color: var(--gray-500); }

/* Cards */
.card { background: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 1.5rem; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.card-title { font-size: 1.1rem; font-weight: 600; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); text-align: center; }
.stat-card h3 { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.5rem; font-weight: 500; }
.stat-card p { font-size: 2rem; font-weight: 700; }

/* Error */
.error-message { background: #fee2e2; color: #b91c1c; padding: 0.6rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 1rem; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: white; padding: 2rem; border-radius: 12px; width: 100%; max-width: 500px; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* Softphone */
.softphone { background: var(--gray-800); color: white; border-radius: 12px; padding: 1.5rem; }
.softphone-display { background: var(--gray-900); padding: 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 1.5rem; text-align: center; font-family: monospace; min-height: 56px; display: flex; align-items: center; justify-content: center; }
.softphone-status { text-align: center; color: var(--gray-400); font-size: 0.85rem; margin-top: 0.5rem; }
.softphone-buttons { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1rem; }
.sp-btn { width: 60px; height: 60px; border-radius: 50%; border: none; font-size: 1.5rem; cursor: pointer; }
.sp-btn.call { background: var(--success); color: white; }
.sp-btn.hangup { background: var(--danger); color: white; }
.sp-btn.mute { background: var(--gray-600); color: white; }
.sp-btn:hover { transform: scale(1.1); }
.sp-input-field { width: 100%; padding: 0.5rem; margin-bottom: 0.5rem; background: var(--gray-700); border: 1px solid var(--gray-600); border-radius: 6px; color: white; font-size: 1rem; text-align: center; }

/* Chat */
.chat-container { display: flex; height: calc(100vh - 140px); gap: 1rem; }
.chat-sessions { width: 300px; background: white; border-radius: 8px; overflow: hidden; }
.chat-sessions-header { padding: 1rem; border-bottom: 1px solid var(--gray-200); font-weight: 600; }
.chat-session-item { display: block; padding: 1rem; border-bottom: 1px solid var(--gray-100); cursor: pointer; text-decoration: none; color: inherit; }
.chat-session-item:hover { background: var(--gray-50); }
.chat-session-item.active { background: #eff6ff; }
.chat-window { flex: 1; background: white; border-radius: 8px; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; }
.chat-message { margin-bottom: 1rem; display: flex; }
.chat-message.operator { justify-content: flex-end; }
.chat-bubble { max-width: 70%; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.9rem; }
.chat-message.client .chat-bubble { background: var(--gray-100); border-bottom-left-radius: 4px; }
.chat-message.operator .chat-bubble { background: var(--primary); color: white; border-bottom-right-radius: 4px; }
.chat-message-time { font-size: 0.7rem; color: var(--gray-400); margin-top: 0.25rem; }
.chat-input { display: flex; gap: 0.5rem; padding: 1rem; border-top: 1px solid var(--gray-200); }
.chat-input input { flex: 1; padding: 0.6rem 0.75rem; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 0.9rem; }

/* Filters bar */
.filters-bar { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1.5rem; padding: 1rem; background: var(--gray-50); border-radius: 8px; }
.filters-bar .form-group { margin-bottom: 0; }
.filters-bar .form-group input, .filters-bar .form-group select { min-width: 120px; max-width: 100%; }

/* Empty state */
.empty-state { text-align: center; padding: 2rem; color: var(--gray-500); }

/* Date range */
.date-range { display: flex; gap: 1rem; align-items: flex-end; margin-bottom: 1.5rem; }
.date-range .form-group { margin-bottom: 0; }

/* Charts */
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 1.5rem; }

/* Dashboard grid */
.dashboard-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
.dashboard-main .card { display: flex; flex-direction: column; }
.dashboard-main .card-header { flex-shrink: 0; }
#calls-table-container { overflow-y: auto; max-height: calc(100vh - 280px); }
#calls-table-container::-webkit-scrollbar { width: 6px; }
#calls-table-container::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
#calls-table-container .data-table th { padding: 0.6rem 1rem; font-size: 0.85rem; }
#calls-table-container .data-table td { padding: 0.6rem 1rem; font-size: 0.95rem; }
#calls-table-container .data-table td strong { font-size: 1.05rem; }

#operator-report-container { overflow-x: auto; width: 100%; }
#operator-report-container .data-table { width: max-content; min-width: 100%; font-size: 0.75rem; }
#operator-report-container .data-table th { padding: 0.3rem 0.5rem; font-size: 0.7rem; }
#operator-report-container .data-table td { padding: 0.3rem 0.5rem; }

/* Form row */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Softphone - MicroSIP Style */
.softphone {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    min-width: 260px;
}
.sp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-bottom: 1px solid #444;
}
.sp-account {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sp-account-icon {
    font-size: 18px;
}
.sp-account-num {
    font-size: 14px;
    font-weight: 600;
    color: #4CAF50;
}
.sp-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #888;
}
.sp-status-indicator.connected {
    background: #4CAF50;
    box-shadow: 0 0 6px #4CAF50;
}
.sp-status-indicator.disconnected {
    background: #f44336;
    box-shadow: 0 0 6px #f44336;
}
.sp-dnd-btn {
    background: none;
    border: none;
    font-size: 16px;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s, background 0.2s;
}
.sp-dnd-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}
.sp-dnd-btn.active {
    opacity: 1;
    background: rgba(244,67,54,0.25);
    box-shadow: 0 0 8px rgba(244,67,54,0.4);
}

.sp-tabs {
    display: flex;
    background: #252525;
    border-bottom: 1px solid #444;
}
.sp-tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}
.sp-tab:hover { color: #ccc; }
.sp-tab.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
    background: #1a1a1a;
}

.sp-content {
    padding: 12px;
}
.sp-content.hidden { display: none; }

.sp-display-container {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.sp-input-field {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Consolas', monospace;
    text-align: left;
    background: #1a1a1a;
    color: #fff;
}
.sp-input-field:focus { outline: none; border-color: #4CAF50; }
.sp-clear-btn {
    width: 40px;
    background: #333;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-clear-btn:hover { background: #444; color: #fff; }

.sp-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}
.sp-num-btn {
    padding: 10px 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sp-num-btn:hover {
    background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
    border-color: #555;
}
.sp-num-btn:active {
    background: linear-gradient(180deg, #2a2a2a 0%, #3a3a3a 100%);
    transform: scale(0.97);
}
.sp-num-btn .digit {
    font-size: 18px;
    font-weight: 600;
}
.sp-num-btn .letters {
    font-size: 8px;
    color: #666;
    margin-top: 1px;
    letter-spacing: 1px;
}

.sp-call-actions {
    display: flex;
    gap: 8px;
}
.sp-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sp-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sp-call-btn, .sp-hangup-btn, .sp-accept-btn, .sp-transfer-btn {
    background: linear-gradient(180deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76,175,80,0.3);
}
.sp-call-btn:hover:not(:disabled), .sp-hangup-btn:hover:not(:disabled),
.sp-accept-btn:hover:not(:disabled), .sp-transfer-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #5CBF60 0%, #4CAF50 100%);
    box-shadow: 0 2px 12px rgba(76,175,80,0.4);
}
.sp-hangup-btn {
    background: linear-gradient(180deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 2px 8px rgba(244,67,54,0.3);
}
.sp-hangup-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #ff5252 0%, #f44336 100%);
    box-shadow: 0 2px 12px rgba(244,67,54,0.4);
}
.sp-accept-btn {
    background: linear-gradient(180deg, #2196F3 0%, #1976D2 100%);
    box-shadow: 0 2px 8px rgba(33,150,243,0.3);
}
.sp-accept-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #42A5F5 0%, #2196F3 100%);
    box-shadow: 0 2px 12px rgba(33,150,243,0.4);
}
.sp-transfer-btn {
    background: linear-gradient(180deg, #FF9800 0%, #F57C00 100%);
    box-shadow: 0 2px 8px rgba(255,152,0,0.3);
}
.sp-transfer-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #FFB74D 0%, #FF9800 100%);
    box-shadow: 0 2px 12px rgba(255,152,0,0.4);
}
.sp-transfer-btn svg {
    width: 24px;
    height: 24px;
}
.sp-transfer-container {
    margin-top: 8px;
    padding: 12px;
    background: var(--gray-700);
    border-radius: 8px;
}
.sp-transfer-container.hidden { display: none; }
.sp-transfer-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.sp-transfer-confirm-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #2196F3;
    color: white;
}
.sp-transfer-cancel-btn {
    padding: 8px 12px;
    border: 1px solid var(--gray-600);
    border-radius: 4px;
    background: transparent;
    color: var(--gray-300);
    font-size: 12px;
    cursor: pointer;
}

.sp-history-list {
    max-height: 280px;
    overflow-y: auto;
}
.sp-history-empty {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 20px;
}
.sp-history-items { display: flex; flex-direction: column; }
.sp-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background 0.1s;
}
.sp-history-item:hover { background: #252525; }
.sp-history-item:last-child { border-bottom: none; }
.sp-history-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}
.sp-history-item.outgoing .sp-history-icon { background: #4CAF50; color: #fff; }
.sp-history-item.incoming .sp-history-icon { background: #2196F3; color: #fff; }
.sp-history-item.missed .sp-history-icon { background: #f44336; color: #fff; }
.sp-history-info { flex: 1; }
.sp-history-number { font-size: 13px; font-weight: 500; color: #fff; }
.sp-history-meta { font-size: 11px; color: #666; margin-top: 2px; }
.sp-history-call-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0.6;
    transition: all 0.1s;
}
.sp-history-call-btn:hover {
    background: #4CAF50;
    opacity: 1;
}

.sp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #1a1a1a;
    border-top: 1px solid #333;
}
.sp-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sp-timer {
    font-family: 'Consolas', monospace;
    font-size: 14px;
    color: #4CAF50;
    min-width: 45px;
}
.sp-status-text {
    font-size: 12px;
    color: #888;
}

/* Action groups (3-column layout for both rows) */
.sp-call-actions { display: flex; gap: 6px; }
.sp-call-actions-row2 { display: flex; gap: 6px; margin-top: 6px; }
.sp-action-group { flex: 1; position: relative; min-height: 48px; }
.sp-action-center { flex: 2; position: relative; }
.sp-action-group .sp-btn {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    padding: 8px;
    box-sizing: border-box;
}
.sp-action-center .sp-btn { position: absolute; top: 0; left: 0; }

/* Mute mic button */
.sp-mute-btn { background: #333; color: #aaa; }
.sp-mute-btn:hover:not(:disabled) { background: #444; color: #fff; }
.sp-mute-btn .mic-off { display: none; }
.sp-mute-btn.muted { color: #f44336; }
.sp-mute-btn.muted svg { fill: #f44336; }
.sp-mute-btn.muted .mic-on { display: none; }
.sp-mute-btn.muted .mic-off { display: block; }

/* Speaker mute button */
.sp-speaker-mute-btn { background: #333; color: #aaa; }
.sp-speaker-mute-btn:hover:not(:disabled) { background: #444; color: #fff; }
.sp-speaker-mute-btn .speaker-off { display: none; }
.sp-speaker-mute-btn.muted { color: #f44336; }
.sp-speaker-mute-btn.muted svg { fill: #f44336; }
.sp-speaker-mute-btn.muted .speaker-on { display: none; }
.sp-speaker-mute-btn.muted .speaker-off { display: block; }

/* Hold button */
.sp-hold-btn { background: #333; color: #aaa; }
.sp-hold-btn:hover:not(:disabled) { background: #444; color: #fff; }
.sp-hold-btn.muted { color: #FF9800; }
.sp-hold-btn.muted svg { fill: #FF9800; }

/* Missed calls cards */
.mc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mc-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px;
    transition: box-shadow 0.15s;
}
.mc-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.mc-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.mc-card-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.mc-status-missed {
    background: #fee2e2;
    color: #b91c1c;
}
.mc-status-offhours {
    background: #fef3c7;
    color: #92400e;
}
.mc-status-callback {
    background: #dbeafe;
    color: #1d4ed8;
}
.mc-time {
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
}
.mc-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.mc-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    padding: 4px 0;
}
.mc-number:hover {
    color: var(--primary);
}
.mc-actions {
    flex-shrink: 0;
}
.mc-take-btn {
    white-space: nowrap;
}
.mc-done {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
}
.mc-taken {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}
.mc-taken-icon {
    font-size: 14px;
}
.mc-taken-time {
    color: var(--gray-400);
    font-weight: 400;
    margin-left: 2px;
}
.mc-indicator-spam {
    cursor: help;
    font-size: 14px;
    opacity: 0.7;
    flex-shrink: 0;
}
.mc-indicator-good {
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
    white-space: nowrap;
}
.mc-reassign-btn {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    line-height: 1;
    margin-left: 4px;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.mc-reassign-btn:hover {
    opacity: 1;
}

/* Missed card new highlight */
.mc-card-new {
    border-color: var(--danger);
    background: #fef2f2;
    box-shadow: 0 0 0 2px rgba(239,68,68,0.2), 0 2px 8px rgba(239,68,68,0.15);
    animation: mc-new-pulse 1.5s ease-in-out infinite;
}
@keyframes mc-new-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
