#call-history-dialog{width:min(1100px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:28px;border:1px solid var(--border,#dce2ea);border-radius:18px;background:var(--panel,#fff);color:var(--text,#192334)}
.cdr-heading,.cdr-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.cdr-heading h2{margin:0}.cdr-heading p{margin:8px 0 20px}.cdr-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:16px;align-items:end}.cdr-filters label{display:grid;gap:8px}.cdr-table-wrap{overflow:auto;margin:20px 0}.cdr-table{width:100%;border-collapse:collapse;text-align:left}.cdr-table th,.cdr-table td{padding:14px 12px;border-bottom:1px solid var(--border,#dce2ea);white-space:nowrap}.cdr-table th{font-size:.85rem;color:var(--muted,#657084)}.cdr-footer{margin:18px 0}.cdr-admin-switch{display:flex;gap:12px;align-items:center}.cdr-admin-switch input{width:auto}
html[data-theme=dark] #call-history-dialog{background:#17202e;color:#e5edf7;border-color:#344258}html[data-theme=dark] .cdr-table th,html[data-theme=dark] .cdr-table td{border-color:#344258}
@media(max-width:650px){#call-history-dialog{padding:18px;width:calc(100vw - 20px)}.cdr-filters{grid-template-columns:1fr 1fr}.cdr-filters label:first-child{grid-column:1/-1}.cdr-table th,.cdr-table td{padding:12px 10px}.cdr-heading{align-items:flex-start}}

#call-history-dialog[open]{display:flex;flex-direction:column;height:min(780px,calc(100dvh - 40px))}#call-history-dialog .cdr-heading{padding:0;background:none;border:0}#call-history-dialog .cdr-filters{padding:0;background:none;border:0}#call-history-dialog .cdr-table-wrap{flex:1;min-height:100px}#call-history-dialog .cdr-footer{padding:0;background:none;border:0}#call-history-dialog>p:last-child{margin-bottom:0;font-size:.85rem}

#call-history-dialog .cdr-table th,#call-history-dialog .cdr-table td{padding:12px 9px}#call-history-dialog .cdr-table td:first-child{white-space:normal;min-width:108px}#call-history-dialog .cdr-table td:nth-child(3){white-space:normal;min-width:90px;max-width:130px}#call-history-dialog .cdr-table th:last-child{white-space:normal;min-width:58px}
