.calls-page-shell .main { padding-top: 6px; }
.calls-page-shell .flash-stack:not(:has(.alert)) { display: none; }
.calls-page { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 14px; min-width: 0; min-height: 0; }
.calls-primary { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: 12px; min-width: 0; min-height: 0; }
.calls-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.calls-header-actions { display: flex; align-items: center; gap: 12px; }
.calls-header h1 { margin: 0; color: #202d40; font-size: 26px; }
.calls-header p { margin: 3px 0 0; color: #66758b; font-size: 14px; }
.calls-live-state { display: inline-flex; align-items: center; gap: 7px; color: #087969; font-size: 13px; font-weight: 700; }
.calls-live-state i { width: 8px; height: 8px; border-radius: 50%; background: #18a37a; box-shadow: 0 0 0 4px #e2f5ee; }
.calls-kpis { display: grid; grid-template-columns: repeat(5, minmax(145px, 1fr)); gap: 10px; }
.calls-kpis article { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 82px; padding: 13px 14px; border: 1px solid #d9e3ea; border-radius: 7px; background: #fff; box-shadow: 0 2px 8px rgb(33 48 71 / 4%); }
.calls-kpis article > span:last-child { display: grid; min-width: 0; }
.calls-kpis small { color: #66758b; font-size: 12px; font-weight: 700; }
.calls-kpis strong { color: #1e2a3b; font-size: 23px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.calls-kpi-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 50%; }
.calls-kpi-icon svg { width: 23px; height: 23px; fill: currentColor; }
.calls-kpi-icon.green { color: #14966e; background: #e2f5ee; }.calls-kpi-icon.blue { color: #267ad8; background: #e8f2ff; }.calls-kpi-icon.red { color: #d94b55; background: #fdebed; }.calls-kpi-icon.purple { color: #8256cf; background: #f0eaff; }.calls-kpi-icon.amber { color: #dc8b12; background: #fff3dd; }
.calls-filters { display: grid; gap: 8px; align-items: end; padding: 11px; border: 1px solid #d9e3ea; border-radius: 7px; background: #fff; }
.calls-filters.has-team { grid-template-columns: repeat(2, minmax(100px, .7fr)) minmax(100px, .68fr) minmax(100px, .62fr) minmax(110px, .75fr) minmax(150px, 1.3fr) auto; }
.calls-filters.personal { grid-template-columns: repeat(2, minmax(105px, .7fr)) minmax(105px, .68fr) minmax(115px, .75fr) minmax(160px, 1.3fr) auto; }
.calls-filters label { display: grid; gap: 4px; min-width: 0; }
.calls-filters label > span { color: #66758b; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.calls-filters .input,.calls-filters .select { min-height: 38px; }
.calls-search-field { position: relative; display: block; }
.calls-search-field svg { position: absolute; z-index: 1; left: 11px; top: 10px; width: 18px; height: 18px; color: #748399; }
.calls-search-field .input { width: 100%; padding-left: 36px; }
.calls-history,.calls-detail { border: 0; border-radius: 0; box-shadow: none; }
.calls-history { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid #d9e3ea; border-radius: 7px; background: #fff; }
.calls-history > header { display: flex; align-items: center; min-height: 53px; padding: 10px 14px; border-bottom: 1px solid #d9e3ea; }
.calls-history h2 { margin: 0; color: #243145; font-size: 16px; }.calls-history header p { margin: 2px 0 0; color: #75839a; font-size: 12px; }
.calls-table-wrap { flex: 1; min-height: 0; overflow: auto; }
.calls-table { width: 100%; min-width: 910px; border-collapse: collapse; font-size: 13px; }
.calls-table th { position: sticky; z-index: 1; top: 0; padding: 10px; border-bottom: 1px solid #dbe3ea; color: #68778c; background: #f7f9fb; font-size: 11px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.calls-table td { height: 54px; padding: 8px 10px; border-top: 1px solid #e3e9ee; color: #334155; vertical-align: middle; }
.calls-table tbody tr { cursor: pointer; }.calls-table tbody tr:hover,.calls-table tbody tr.is-selected { background: #edf8f7; }
.calls-table td strong,.calls-table td small { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.calls-table td small { margin-top: 2px; color: #718096; font-size: 11px; }
.call-direction { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 17px; font-weight: 800; }.call-direction.inbound { color: #14966e; background: #e2f5ee; }.call-direction.outbound { color: #267ad8; background: #e8f2ff; }
.call-status,.call-recording { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 5px; font-size: 11px; font-weight: 800; white-space: nowrap; }.call-status.answered,.call-status.ended { color: #087969; background: #e2f5ee; }.call-status.missed,.call-status.failed { color: #c83d49; background: #fdebed; }.call-status.ringing { color: #236dbd; background: #e8f2ff; }.call-status.hangup,.call-status.transferred { color: #9a6800; background: #fff3d6; }.call-status.cdr_missing { color: #a33b42; background: #fff0f1; }.call-recording.available,.call-recording.ready { color: #6941c6; background: #f0eaff; }.call-recording svg { width: 13px; height: 13px; }.call-recording.unavailable { color: #8290a3; background: transparent; }
.calls-row-open { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #d9e3ea; border-radius: 6px; color: #526176; background: #f8fafb; cursor: pointer; }
.calls-row-open svg { width: 17px; height: 17px; }
.calls-detail { min-width: 0; min-height: 0; overflow: auto; border: 1px solid #d9e3ea; border-radius: 7px; background: #fff; }
.calls-detail-empty { display: grid; place-items: center; align-content: center; min-height: 100%; padding: 32px; color: #6b7b90; text-align: center; }.calls-detail-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 50%; color: #078e94; background: #e5f6f5; font-size: 25px; }.calls-detail-empty strong { color: #263447; }.calls-detail-empty p { max-width: 240px; margin: 7px 0 0; font-size: 12px; line-height: 1.45; }
.call-detail-shell { display: grid; min-height: 100%; align-content: start; }.call-detail-section { padding: 14px 15px; border-bottom: 1px solid #dfe6ec; }.call-detail-section h2,.call-detail-section h3 { margin: 0 0 10px; color: #223047; font-size: 14px; }.call-detail-overview { display: grid; grid-template-columns: 46px minmax(0, 1fr) 38px; align-items: center; gap: 11px; }.call-detail-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #087969; background: #e2f5ee; font-size: 14px; font-weight: 800; }.call-detail-contact { display: grid; gap: 3px; min-width: 0; }.call-detail-contact strong,.call-detail-contact span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.call-detail-contact strong { color: #202d40; font-size: 16px; }.call-detail-contact a { color: #078e94; text-decoration: none; }.call-detail-grid { display: grid; grid-template-columns: minmax(105px, 1fr) minmax(0, auto); gap: 9px 12px; margin: 0; font-size: 12px; }.call-detail-grid dt { color: #718096; }.call-detail-grid dd { max-width: 195px; margin: 0; color: #29374a; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.call-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.call-detail-actions a { min-width: 0; justify-content: center; padding-inline: 8px; text-align: center; text-decoration: none; font-size: 12px; }.call-detail-actions a:only-child { grid-column: 1 / -1; }.call-detail-timeline { display: grid; gap: 8px; }.call-detail-event { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 8px; color: #526176; font-size: 11px; }.call-detail-event i { width: 8px; height: 8px; border-radius: 50%; background: #12a187; }.call-detail-event time { color: #8290a3; text-align: right; }
.call-note-form { display: grid; gap: 7px; }.call-note-form[hidden] { display: none; }.call-note-form textarea { min-height: 68px; resize: vertical; }.call-note-form-actions { display: flex; justify-content: flex-end; gap: 6px; }.call-note-icon-btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #d7e1e8; border-radius: 5px; color: #526176; background: #fff; cursor: pointer; }.call-note-icon-btn:hover { border-color: #a9bbc8; background: #f5f8fa; }.call-note-icon-btn.save { border-color: #079ba0; color: #fff; background: #079ba0; }.call-note-icon-btn.save:hover { background: #07878c; }.call-note-icon-btn:disabled { opacity: .55; cursor: wait; }.call-note-icon-btn svg { width: 16px; height: 16px; }.call-note-list { display: grid; gap: 7px; margin-top: 8px; }.call-note { padding: 8px; border-left: 3px solid #12a187; background: #f7fafb; color: #405066; font-size: 12px; }.call-note small { display: block; margin-top: 4px; color: #7b8798; font-size: 11px; }
.calls-empty { display: grid; justify-items: center; gap: 4px; padding: 65px 20px; color: #718096; text-align: center; }.calls-empty span { font-size: 28px; }.calls-empty strong { max-width: none !important; color: #29374a; }.calls-empty p { margin: 0; }

@media (min-width: 981px) { .calls-page { height: calc(100vh - 92px); overflow: hidden; } }
@media (max-width: 1280px) { .calls-page { grid-template-columns: minmax(0, 1fr); }.calls-detail { position: fixed; z-index: 46; top: 66px; right: 0; width: min(380px, 100vw); height: calc(100vh - 66px); border-radius: 0; box-shadow: -12px 0 30px rgb(25 42 63 / 16%); }.calls-detail[data-empty="1"] { display: none; }.calls-kpis { grid-template-columns: repeat(5, minmax(125px, 1fr)); }.calls-filters.has-team,.calls-filters.personal { grid-template-columns: repeat(3, minmax(0, 1fr)); }.calls-search { grid-column: span 2; } }
@media (max-width: 900px) { .calls-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }.calls-history { min-height: 520px; } }
@media (max-width: 620px) { .calls-page { display: block; }.calls-primary { display: grid; }.calls-header { align-items: start; }.calls-live-state { display: none; }.calls-kpis,.calls-filters.has-team,.calls-filters.personal { grid-template-columns: 1fr 1fr; }.calls-kpis article:last-child { grid-column: 1 / -1; }.calls-search { grid-column: 1 / -1; }.calls-filters > button { grid-column: 1 / -1; }.calls-detail { top: 0; height: 100vh; }.calls-table { min-width: 820px; } }

.call-alert-toast { border-left-color: #14865f; }
.call-alert-mark { color: #087969; background: #e2f5ee; }
.call-alert-toast .app-alert-heading small { color: #087969; }

.call-detail-title { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 10px; padding: 11px 15px; border-bottom: 1px solid #dfe6ec; background: #fff; }
.call-detail-title h2 { margin: 0; color: #223047; font-size: 15px; }
.calls-detail-close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 5px; color: #64748b; background: transparent; cursor: pointer; }.calls-detail-close:hover { background: #eef3f6; }.calls-detail-close svg { width: 18px; height: 18px; }
.call-detail-dial { display: grid; place-items: center; width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; color: #fff; background: #0b9a7c; }
.call-detail-dial svg { width: 18px; height: 18px; }
.call-detail-contact > span:not(.call-status) { color: #078e94; }
.call-recording-player { display: block; width: 100%; height: 38px; }
.call-recording-actions { display: flex; justify-content: stretch; margin-top: 9px; }.call-recording-actions .btn { flex: 1; justify-content: center; }
.call-recording-download { min-height: 34px; padding: 7px 10px; text-decoration: none; }
.topbar-call-button { color: #087969; background: #eef7f4; }.topbar-call-button:hover { color: #fff; background: #0b9a7c; }

[data-call-audio] { display: none; }
.call-recording-visual { display: grid; grid-template-columns: 42px minmax(0, 1fr) 34px; align-items: center; gap: 9px; }
.call-audio-round { width: 42px; height: 42px; display: grid; place-items: center; padding: 0 0 0 2px; border: 0; border-radius: 50%; color: #fff; background: #079ba0; cursor: pointer; box-shadow: 0 4px 12px rgb(7 155 160 / 20%); }
.call-audio-round span { display: grid; place-items: center; line-height: 1; }
.call-audio-round svg { display: block; width: 17px; height: 17px; }
.call-waveform { position: relative; display: grid; min-width: 0; grid-template-rows: 24px auto; }
.call-waveform-track { grid-area: 1 / 1; display: flex; align-items: center; gap: 2px; min-width: 0; height: 24px; padding: 0 1px; pointer-events: none; }
.call-waveform-track i { flex: 1 1 2px; width: 2px; min-width: 1px; height: var(--bar-height); border-radius: 2px; background: #9ab0c2; transition: background-color 120ms ease; }
.call-waveform-track i.is-played { background: #079ba0; }
.call-waveform input { z-index: 1; grid-area: 1 / 1; width: 100%; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.call-waveform:focus-within .call-waveform-track { outline: 2px solid #8bd3d4; outline-offset: 2px; border-radius: 3px; }
.call-waveform-times { display: flex; justify-content: space-between; color: #718096; font-size: 10px; }
.call-audio-speed { width: 34px; height: 29px; padding: 0; border: 1px solid #d8e2e9; border-radius: 5px; color: #43536a; background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.call-recording-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.call-recording-actions .btn { min-width: 0; min-height: 36px; gap: 6px; padding: 7px 8px; border-radius: 6px; font-size: 11px; line-height: 1; white-space: nowrap; }
.call-recording-actions .btn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-recording-play { justify-content: center; border: 1px solid #079ba0; color: #fff; background: #079ba0; box-shadow: 0 2px 5px rgb(7 155 160 / 16%); }
.call-recording-play:hover { border-color: #07878c; background: #07878c; }
.call-recording-action-icon { display: grid; place-items: center; flex: 0 0 14px; width: 14px; height: 14px; }
.call-recording-action-icon svg { display: block; width: 14px; height: 14px; }
.call-recording-download { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d7e1e8 !important; color: #253349 !important; background: #fff !important; box-shadow: 0 1px 2px rgb(28 48 68 / 4%); }
.call-recording-download:hover { border-color: #a9bbc8 !important; color: #172438 !important; background: #f9fbfc !important; }
.call-recording-download svg { flex: 0 0 15px; width: 15px; height: 15px; }
.call-detail-quick-actions { padding-top: 10px; padding-bottom: 10px; }
.call-detail-quick-actions .call-detail-actions { gap: 9px; }
.call-detail-quick-actions .call-quick-action { min-height: 36px; gap: 7px; padding: 7px 8px; border: 1px solid #d7e1e8; border-radius: 6px; color: #253349; background: #fff; box-shadow: 0 1px 2px rgb(28 48 68 / 4%); font-size: 11px; line-height: 1; white-space: nowrap; }
.call-detail-quick-actions .call-quick-action:hover { border-color: #a9bbc8; color: #172438; background: #f9fbfc; }
.call-detail-quick-actions .call-quick-action.conversation { border-color: #20adb0; color: #087f83; }
.call-detail-quick-actions .call-quick-action.conversation:hover { color: #fff; background: #079ba0; }
.call-detail-quick-actions .call-quick-action svg { width: 16px; height: 16px; flex: 0 0 16px; }
.call-detail-quick-actions .call-quick-action span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-detail-notes-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }.call-detail-notes-header h3 { margin: 0; }.call-note-edit { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 5px; color: #64748b; background: transparent; cursor: pointer; }.call-note-edit:hover,.call-note-edit[aria-expanded="true"] { color: #078e94; background: #e9f6f5; }.call-note-edit svg { width: 16px; height: 16px; }.call-note-featured { padding: 10px; border: 1px solid #dce5eb; border-radius: 6px; color: #405066; background: #fff; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }.call-note-empty { margin: 0; padding: 8px 10px; border: 1px dashed #d8e2e9; border-radius: 6px; color: #7b8798; font-size: 11px; }.call-note-history { margin-top: 7px; }.call-note-history summary { color: #68778c; font-size: 11px; font-weight: 700; cursor: pointer; }.call-note-list:empty { display: none; }
.call-detail-related h3 small { color: #718096; font-size: 10px; font-weight: 600; }
.call-related-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid #dce5eb; border-radius: 6px; background: #fbfcfd; }
.call-related-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #07845f; background: #dff4e9; font-weight: 800; }
.call-related-icon svg { width: 17px; height: 17px; }
.call-related-card > div { min-width: 0; display: grid; gap: 2px; }
.call-related-card small,.call-related-card span { color: #718096; font-size: 10px; }
.call-related-card strong { overflow: hidden; color: #29374a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.call-related-card > div span { color: #078e94; font-weight: 700; }
.call-related-card .btn { min-height: 30px; padding: 6px 8px; font-size: 10px; }
.call-related-card.empty { border-style: dashed; background: #fff; }
.call-related-card.empty .call-related-icon { color: #607188; background: #edf2f5; }
.call-related-actions { display: flex !important; align-items: center; justify-content: flex-end; gap: 5px !important; }
.call-related-actions .btn { white-space: nowrap; }
.call-related-change { padding: 5px 2px; border: 0; color: #078e94; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.call-related-change:hover { color: #056f73; text-decoration: underline; }
.call-related-link { white-space: nowrap; }

.call-actions-menu { position: fixed; z-index: 120; width: 150px; overflow: hidden; padding: 4px; border: 1px solid #d6e0e7; border-radius: 6px; background: #fff; box-shadow: 0 12px 30px rgb(25 42 63 / 18%); }
.call-actions-menu[hidden] { display: none; }
.call-actions-menu button { width: 100%; min-height: 35px; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 0; border-radius: 4px; color: #334155; background: transparent; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.call-actions-menu button:hover,.call-actions-menu button:focus { outline: 0; background: #eef7f6; }
.call-actions-menu button.danger { color: #b63d46; }
.call-actions-menu button.danger:hover,.call-actions-menu button.danger:focus { background: #fff0f1; }
.call-actions-menu svg { width: 16px; height: 16px; flex: 0 0 16px; }

.call-timeline-dialog,.call-delete-dialog,.call-crm-dialog { width: min(430px, calc(100vw - 28px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 7px; color: #263447; background: transparent; }
.call-crm-dialog { width: min(470px, calc(100vw - 28px)); }
.call-timeline-dialog::backdrop,.call-delete-dialog::backdrop,.call-crm-dialog::backdrop { background: rgb(14 29 45 / 48%); }
.call-dialog-card { overflow: hidden; border: 1px solid #d8e2e9; border-radius: 7px; background: #fff; box-shadow: 0 22px 65px rgb(17 37 57 / 28%); }
.call-dialog-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 15px; border-bottom: 1px solid #e0e7ec; }
.call-dialog-card > header h2 { margin: 0; color: #202d40; font-size: 16px; }
.call-dialog-card > header p { margin: 3px 0 0; color: #718096; font-size: 11px; }
.call-timeline-dialog-body { max-height: min(430px, calc(100vh - 140px)); overflow: auto; padding: 14px 16px; }
.call-timeline-dialog .call-detail-timeline { gap: 0; }
.call-timeline-dialog .call-detail-event { position: relative; min-height: 43px; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: start; }
.call-timeline-dialog .call-detail-event i { position: relative; z-index: 1; margin-top: 3px; box-shadow: 0 0 0 4px #e6f6f2; }
.call-timeline-dialog .call-detail-event:not(:last-child)::after { content: ""; position: absolute; top: 12px; bottom: -2px; left: 3px; width: 1px; background: #cfe4df; }
.call-timeline-dialog .call-detail-event span { color: #344359; font-size: 12px; font-weight: 700; }
.call-timeline-dialog .call-detail-event time { font-size: 10px; }
.call-timeline-empty { padding: 22px 10px; color: #718096; text-align: center; font-size: 12px; }
.call-delete-dialog-body { padding: 15px; color: #526176; font-size: 12px; line-height: 1.55; }
.call-delete-dialog-body p { margin: 0; }
.call-delete-error { margin-top: 11px !important; padding: 8px 9px; border-left: 3px solid #c94650; color: #9d3038; background: #fff0f1; }
.call-crm-dialog-body { display: grid; gap: 10px; padding: 13px 15px 15px; }
.call-crm-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 3px; border: 1px solid #d8e2e9; border-radius: 6px; background: #f3f6f8; }
.call-crm-tabs button { min-height: 31px; padding: 5px 9px; border: 0; border-radius: 4px; color: #607188; background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.call-crm-tabs button.active { color: #fff; background: #078e94; box-shadow: 0 1px 3px rgb(22 48 68 / 18%); }
.call-crm-tabs button:only-child { grid-column: 1 / -1; }
.call-crm-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.call-crm-search > span { position: relative; display: block; }
.call-crm-search svg { position: absolute; z-index: 1; top: 10px; left: 10px; width: 17px; height: 17px; color: #718096; }
.call-crm-search .input { width: 100%; min-height: 37px; padding-left: 34px; }
.call-crm-search .btn { min-height: 37px; }
.call-crm-results { display: grid; gap: 5px; max-height: min(260px, calc(100vh - 330px)); overflow: auto; }
.call-crm-result { display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 9px; width: 100%; min-height: 49px; padding: 7px 9px; border: 1px solid #dce5eb; border-radius: 6px; color: #2d3a4e; background: #fff; text-align: left; cursor: pointer; }
.call-crm-result:hover,.call-crm-result:focus { outline: 0; border-color: #35aaad; background: #f0f9f8; }
.call-crm-result > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.call-crm-result strong,.call-crm-result small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-crm-result strong { font-size: 12px; }
.call-crm-result small { color: #718096; font-size: 10px; }
.call-crm-result-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #087969; background: #e2f5ee; font-size: 11px; font-weight: 800; }
.call-crm-result > svg { width: 17px; height: 17px; color: #7b899b; }
.call-crm-empty { margin: 0; padding: 17px 9px; border: 1px dashed #d8e2e9; border-radius: 6px; color: #718096; text-align: center; font-size: 11px; }
.call-crm-error { margin: 0; padding: 8px 9px; border-left: 3px solid #c94650; color: #9d3038; background: #fff0f1; font-size: 11px; }
.call-crm-create { padding-top: 9px; border-top: 1px solid #e1e8ed; }
.call-crm-create[hidden] { display: none; }
.call-crm-create-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; border: 0; color: #078e94; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.call-crm-create-toggle svg { width: 15px; height: 15px; }
.call-crm-create form { display: grid; gap: 8px; }
.call-crm-create form[hidden] { display: none; }
.call-crm-create label { display: grid; gap: 4px; }
.call-crm-create label > span { color: #607188; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.call-crm-create form p { margin: 0; color: #718096; font-size: 10px; }
.call-crm-create form p strong { color: #334155; }
.call-crm-create form > div { display: flex; justify-content: flex-end; gap: 7px; }
.call-crm-create form .btn { min-height: 33px; padding: 6px 9px; font-size: 11px; }
.call-dialog-card > footer { display: flex; justify-content: flex-end; gap: 7px; padding: 10px 15px; border-top: 1px solid #e0e7ec; background: #f8fafb; }
.call-dialog-card > footer .btn.danger { color: #fff; background: #c94650; }
.call-dialog-card > footer .btn.danger:hover { background: #b13943; }

.telephony-dialog { width: min(430px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 7px; color: #263447; background: transparent; box-shadow: 0 22px 65px rgb(17 37 57 / 28%); }
.telephony-dialog::backdrop { background: rgb(14 29 45 / 48%); }
.telephony-dialog-card { overflow: hidden; border: 1px solid #d8e2e9; border-radius: 7px; background: #fff; }
.telephony-dialog-card > header { display: grid; grid-template-columns: 42px 1fr 32px; align-items: center; gap: 10px; padding: 15px 16px; border-bottom: 1px solid #e0e7ec; }
.telephony-dialog-card h2 { margin: 0; color: #202d40; font-size: 18px; }
.telephony-dialog-card header p { margin: 3px 0 0; color: #68778c; font-size: 12px; }
.telephony-dialog-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 7px; color: #087969; background: #e2f5ee; }
.telephony-dialog-icon svg { width: 21px; height: 21px; }
.telephony-dialog-close { width: 32px; height: 32px; border: 0; color: #64748b; background: transparent; font-size: 24px; cursor: pointer; }
.telephony-dialog-body { display: grid; gap: 13px; padding: 16px; }
.telephony-dialog-body label { display: grid; gap: 5px; }
.telephony-dialog-body label > span,.telephony-contact small,.telephony-extension span { color: #6d7b8f; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.telephony-contact { display: grid; gap: 3px; }
.telephony-contact strong { font-size: 14px; }
.telephony-extension { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid #dce6eb; border-radius: 6px; background: #f7fafb; }
.telephony-extension strong { color: #087969; }
.telephony-dialog-error { margin: 0; padding: 9px 10px; border-left: 3px solid #cf4650; color: #a32f38; background: #fff0f1; font-size: 12px; }
.telephony-dialog-setup { margin: 0; padding: 9px 10px; border-left: 3px solid #d99a24; color: #72500d; background: #fff8e8; font-size: 12px; }
.telephony-dialog-setup a { color: #087969; font-weight: 800; }
.telephony-dialog-card > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 11px 16px; border-top: 1px solid #e0e7ec; background: #f8fafb; }
.telephony-dialog-card footer .btn { display: inline-flex; align-items: center; gap: 7px; }
.telephony-dialog-card footer .btn:disabled { opacity: .48; cursor: not-allowed; }
.telephony-dialog-card footer svg { width: 16px; height: 16px; }
.telephony-toast { position: fixed; right: 20px; bottom: 20px; z-index: 10020; max-width: min(360px, calc(100vw - 32px)); padding: 11px 14px; border-left: 4px solid #14966e; border-radius: 6px; color: #173a31; background: #ecf9f4; box-shadow: 0 12px 34px rgb(17 37 57 / 18%); font-size: 13px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.telephony-toast.visible { opacity: 1; transform: translateY(0); }
.telephony-toast.error { border-left-color: #cf4650; color: #8f2932; background: #fff0f1; }
.telephony-call-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.telephony-call-button svg { width: 16px; height: 16px; }
.subscriber-summary-call { margin-top: 11px; }
.subscriber-contact-actions { display: flex; align-items: flex-start; gap: 7px; }

@media (max-width: 620px) { .calls-header-actions { align-items: flex-end; }.telephony-dialog-card > footer .btn { flex: 1; justify-content: center; }.subscriber-contact-actions { grid-column: 1 / -1; } }
