/* Calls: the Calls tab and the account Quick View section. Colours: green answered, amber voicemail, red missed, grey hung up in the menu, blue called back or outgoing. */
.pc-pill { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; white-space: nowrap; background: #e5f4e8; color: #2f6b3a; }
.pc-pill.k-voicemail { background: #fff4d6; color: #85620b; }
.pc-pill.k-missed { background: #fde8e6; color: #a33a2c; }
.pc-pill.k-menu, .pc-pill.k-failed { background: #eceff1; color: #5d6b75; }
.pc-pill.k-returned, .pc-pill.k-outbound { background: #e6f1fb; color: #1d5f99; }
.pc-muted { color: #6b7780; font-size: 11px; }
.pc-error { color: #a33a2c; font-size: 12px; padding: 2px 0; }
.pc-late { color: #a33a2c; font-weight: 600; }
.pc-nowrap { white-space: nowrap; }
.pc-spacer { flex: 1 1 auto; }
.pc-link { border: 0; background: transparent; color: #176788; padding: 0 4px; font-size: 11px; cursor: pointer; text-decoration: underline; }
.pc-call { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; font-size: 11px; white-space: nowrap; cursor: pointer; }
.pc-dial { font-size: 12px; color: #1d5f99; padding: 2px 4px; }
.pc-inline-call { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: 6px; vertical-align: middle; font-weight: normal; }

/* Calls tab */
.pc-empty-state { padding: 24px; color: #6b7780; }
.pc-tab { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 0; padding: 6px 8px; box-sizing: border-box; font-size: 12px; color: #253746; }
.pc-views { display: flex; align-items: stretch; margin-left: 12px; }
.pc-view { border: 0; background: transparent; color: inherit; display: flex; align-items: center; gap: 4px; padding: 0 8px; cursor: pointer; }
.pc-view-active { box-shadow: inset 0 -3px 0 #168aaf; font-weight: 600; }
.pc-sync { color: #6b7780; font-size: 11px; }
.pc-sync.pc-sync-failed { color: #a33a2c; }
.pc-filters { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-end; }
.pc-filters > label { display: flex; flex-direction: column; gap: 2px; color: #455a66; font-size: 11px; }
.pc-filters > label.pc-check, .pc-check { flex-direction: row; align-items: center; gap: 4px; font-size: 12px; color: #253746; }
.pc-filters select { font-size: 12px; height: 24px; }
.pc-count { margin-left: auto; color: #6b7780; font-size: 11px; }
.pc-table-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; }
.pc-table { width: 100%; border-collapse: collapse; }
.pc-table th { position: sticky; top: 0; background: #eef2f5; text-align: left; font-weight: 600; padding: 4px 6px; border-bottom: 1px solid #d6e0e6; white-space: nowrap; }
.pc-table td { padding: 4px 6px; border-bottom: 1px solid #e8e8e8; vertical-align: top; }
.pc-table tbody tr.k-missed td:first-child { box-shadow: inset 3px 0 0 #d64b3c; }
.pc-table tbody tr.k-voicemail td:first-child { box-shadow: inset 3px 0 0 #e0a100; }
.pc-table tfoot th { position: static; border-top: 1px solid #d6e0e6; }
.pc-actions { text-align: right; white-space: nowrap; }
.pc-actions button { height: 22px; padding: 0 8px; font-size: 11px; }
.pc-record { border: 0; background: transparent; color: #176788; padding: 0; font-size: 12px; text-align: left; cursor: pointer; text-decoration: underline; }
.pc-empty { padding: 8px 4px; }

/* Phone setup */
.pc-setup { display: flex; flex-direction: column; gap: 14px; overflow: auto; min-height: 0; }
.pc-setup-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-bottom: 4px; }
.pc-setup-head button { margin-left: auto; height: 24px; padding: 0 10px; font-size: 12px; }
.pc-names input[type=text] { width: 100%; box-sizing: border-box; font-size: 12px; }
.pc-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 12px; margin-top: 8px; padding: 8px; border: 1px solid #d6e0e6; border-radius: 6px; background: #fbfcfd; }
.pc-editor > label { display: flex; flex-direction: column; gap: 2px; color: #455a66; }
.pc-editor input, .pc-editor select, .pc-editor textarea { font-family: inherit; font-size: 12px; box-sizing: border-box; width: 100%; }
.pc-editor input[type=checkbox] { width: auto; }
.pc-editor fieldset { border: 1px solid #e1e7eb; border-radius: 4px; display: flex; flex-direction: column; gap: 2px; max-height: 140px; overflow: auto; }
.pc-editor-wide { grid-column: 1 / -1; }
.pc-editor-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pc-editor-actions button { height: 26px; padding: 0 10px; font-size: 12px; }
.pc-primary { background: #168aaf; color: white; border: 1px solid #168aaf; }

/* Quick View section */
.pc-panel { display: grid; gap: 2px; font-size: 12px; color: #253746; }
.pc-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 0 0 2px; font-weight: bold; }
.pc-panel-title { flex: 1 1 auto; }
.pc-panel-head .pc-call { font-weight: normal; }
.pc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: start; padding: 4px; border-left: 3px solid #3a9a4f; border-bottom: 1px solid #e8e8e8; }
.pc-row.k-voicemail { border-left-color: #e0a100; }
.pc-row.k-missed { border-left-color: #d64b3c; }
.pc-row.k-menu, .pc-row.k-failed { border-left-color: #9aa5ad; }
.pc-row.k-returned, .pc-row.k-outbound { border-left-color: #2d7dd2; }
.pc-row-main { min-width: 0; }
.pc-row-line { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.pc-row-meta { margin-top: 2px; color: #6b7780; font-size: 11px; overflow-wrap: anywhere; }
