#callCenterSettings{max-width:1000px;margin:0 auto}
#callCenterSettings .cc-form{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end;margin-top:18px}
#callCenterSettings .cc-pairing{display:flex;gap:24px;align-items:center;margin-top:20px;flex-wrap:wrap}
#callCenterSettings .cc-qr{background:#fff;border:1px solid var(--ps-line);border-radius:12px;padding:10px;line-height:0}
#callCenterSettings .cc-qr img{width:220px;height:220px;image-rendering:pixelated}
#callCenterSettings .cc-code{font:700 28px/1 ui-monospace,Menlo,Consolas,monospace;letter-spacing:3px;margin-bottom:8px}
#callCenterSettings .cc-state{font-size:13px;color:var(--ps-muted)}
#callCenterSettings .cc-state.ok{color:#278954;font-weight:600}
#callCenterSettings .cc-state.bad{color:#c72e3e}
#callCenterSettings .cc-devices{margin-top:16px;display:grid;gap:14px}
#callCenterSettings .cc-device{border:1px solid var(--ps-line);border-radius:12px;padding:18px}
#callCenterSettings .cc-device.old{opacity:.6}
#callCenterSettings .cc-device-head{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
#callCenterSettings h3{font-size:16px;margin:0}
#callCenterSettings h4{font-size:13px;margin:16px 0 6px}
#callCenterSettings .cc-device-head small{color:var(--ps-muted);font-size:12px}
#callCenterSettings .cc-pills{display:flex;gap:6px;flex-wrap:wrap;align-items:flex-start}
#callCenterSettings .cc-pill{font-size:12px;padding:3px 9px;border-radius:999px;background:#f3f7f6;color:var(--ps-muted);border:1px solid var(--ps-line)}
#callCenterSettings .cc-pill.ok{background:#e9f7ef;color:#1f7a47;border-color:#c5ead4}
#callCenterSettings .cc-pill.warn{background:#fff4e6;color:#b25b00;border-color:#ffd9a8}
#callCenterSettings .cc-pill.bad{background:#fdecee;color:#c72e3e;border-color:#f6c9cf}
#callCenterSettings .cc-facts{display:grid;grid-template-columns:max-content 1fr;gap:4px 16px;margin:14px 0 0;font-size:13px}
#callCenterSettings .cc-facts dt{color:var(--ps-muted)}
#callCenterSettings .cc-facts dd{margin:0}
#callCenterSettings .cc-checklist{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:13px}
#callCenterSettings .cc-checklist li{display:flex;gap:9px;align-items:flex-start}
#callCenterSettings .cc-checklist small{display:block;color:var(--ps-muted);font-size:12px}
#callCenterSettings .cc-check{flex:none;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;color:#fff;background:#3aa76d}
#callCenterSettings .todo .cc-check{background:#ff8b29}
#callCenterSettings .cc-actions{margin-top:16px}
#callCenterSettings .cc-danger{color:#c72e3e;border-color:#f6c9cf}
@media(max-width:650px){#callCenterSettings .cc-form{grid-template-columns:1fr}}
#callCenterSettings .cc-test-number{max-width:320px;margin:14px 0}
#callCenterSettings .cc-latest{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:14px}
#callCenterSettings .cc-latest-title{font-size:16px;font-weight:600;display:flex;gap:8px;align-items:center}
#callCenterSettings .cc-latest small,#callCenterSettings .cc-version small{color:var(--ps-muted);font-size:12px}
#callCenterSettings a.pricing-button{text-decoration:none;display:inline-block}
#callCenterSettings .cc-download{padding:12px 20px}
#callCenterSettings .cc-notes{margin:12px 0 0;padding-left:18px;font-size:13px}
#callCenterSettings .cc-notes li{margin:3px 0}
#callCenterSettings .cc-hint{margin-top:12px!important;font-size:12px!important}
#callCenterSettings .cc-history{margin-top:16px;border-top:1px solid var(--ps-line);padding-top:12px;font-size:13px}
#callCenterSettings .cc-history summary{cursor:pointer;color:var(--ps-muted)}
#callCenterSettings .cc-version{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:12px 0;border-bottom:1px solid var(--ps-line)}
#callCenterSettings .cc-sub{font-size:14px;margin:20px 0 6px}
#callCenterSettings .cc-order{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
#callCenterSettings .cc-order li{display:grid;grid-template-columns:44px 1fr auto auto;gap:12px;align-items:center;padding:8px 10px;border:1px solid var(--ps-line);border-radius:10px;background:#fff}
#callCenterSettings .cc-order li.off{opacity:.55}
#callCenterSettings .cc-rank{font-weight:700;color:var(--ps-orange);font-size:13px}
#callCenterSettings .cc-move{display:flex;gap:4px}#callCenterSettings .cc-move .pricing-button{padding:6px 10px}
#callCenterSettings .cc-rule-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin:8px 0;align-items:start}
#callCenterSettings .cc-rule-field{font-size:12px;color:var(--ps-muted);display:grid;gap:6px}
#callCenterSettings .cc-rule-field input{font:inherit;color:var(--ps-text);border:1px solid var(--ps-line);border-radius:8px;padding:9px 10px}
#callCenterSettings .cc-rule-field small{font-size:11px}
#callCenterSettings .cc-days{display:flex;gap:14px;flex-wrap:wrap;margin:8px 0 12px}
@media(max-width:650px){#callCenterSettings .cc-order li{grid-template-columns:36px 1fr auto}#callCenterSettings .cc-move{grid-column:2/4}}

#ccReport select.cc-range{width:auto;max-width:180px;flex:0 0 auto;font:inherit;padding:6px 10px;border:1px solid #dce5e5;border-radius:8px;background:#fff}
.cc-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:12px 0}
.cc-tile{border:1px solid #dce5e5;border-radius:12px;padding:12px;background:#fff;display:grid;gap:2px}
.cc-tile small{color:#52646b}.cc-tile strong{font-size:24px;color:#203238}.cc-tile span{font-size:12px;color:#52646b}
.cc-bars{display:flex;gap:4px;align-items:flex-end;height:120px;margin:16px 0 4px;overflow-x:auto}
.cc-bar{flex:1;min-width:14px;display:grid;grid-template-rows:1fr auto;height:100%;text-align:center}
.cc-bar-stack{display:flex;flex-direction:column-reverse;justify-content:flex-start;height:100%;border-radius:4px;background:#f2f6f6;overflow:hidden}
.cc-bar-stack i{display:block}.cc-bar small{font-size:10px;color:#52646b}
.cc-bars .out,.cc-legend .out::before{background:#1f6f8b}.cc-bars .in,.cc-legend .in::before{background:#25a35a}.cc-bars .miss,.cc-legend .miss::before{background:#d98a1f}
.cc-legend{display:flex;gap:14px;font-size:12px;color:#52646b}.cc-legend span::before{content:"";display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}
.cc-table-wrap{overflow-x:auto}.cc-table{width:100%;border-collapse:collapse;font-size:13px;margin-top:8px}
.cc-table th,.cc-table td{text-align:left;padding:8px 10px;border-bottom:1px solid #e8eeee;white-space:nowrap}.cc-table th{color:#52646b;font-weight:600}
.cc-table td.cc-warn{color:#b25b00;font-weight:600}

/* Report filters use the same compact, rounded controls as the CRM. */
#ccReport .cc-report-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#ccReport .cc-report-head h2{margin:0}
#ccReport .cc-report-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#ccReport .cc-user-picker{position:relative;min-width:160px;font-size:13px}
#ccReport .cc-user-picker>summary{list-style:none;cursor:pointer;padding:8px 30px 8px 12px;border:1px solid #dce5e5;border-radius:9px;background:#fff;color:#203238;position:relative}
#ccReport .cc-user-picker>summary::-webkit-details-marker{display:none}
#ccReport .cc-user-picker>summary:after{content:'⌄';position:absolute;right:12px}
#ccReport .cc-user-options{position:absolute;top:calc(100% + 7px);right:0;z-index:2980;width:250px;max-width:calc(100vw - 44px);max-height:300px;overflow:auto;background:#fff;border:1px solid #dce5e5;border-radius:12px;padding:7px;box-shadow:0 10px 28px #14252a25}
#ccReport .cc-user-choice{display:flex;align-items:center;gap:10px;padding:9px 8px;color:#203238;cursor:pointer;white-space:normal}
#ccReport .cc-user-choice:hover{background:#f3f7f6;border-radius:7px}
#ccReport .cc-user-choice input{width:16px;height:16px;margin:0;accent-color:#ff790c;flex:none}
#ccReport .cc-user-all{border-bottom:1px solid #edf2f2;margin-bottom:4px;font-weight:600}
#consoleSettings #settings-tab-panel:has(#callCenterSettings){max-height:calc(100dvh - 150px);overflow-y:auto;min-height:0;padding-bottom:24px;overscroll-behavior:contain}
/* Report user picker: keep the checkbox small (Settings panels stretch inputs to full width)
   and use the CRM's orange box with a white tick. */
#consoleSettings #ccReport .cc-user-choice{display:flex;flex-direction:row;align-items:center;gap:11px;font-size:13px;line-height:1.35;color:#203238}
#consoleSettings #ccReport .cc-user-choice>input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 18px;width:18px;min-width:18px;height:18px;margin:0;padding:0;border:1px solid #cddadd;border-radius:5px;background:linear-gradient(#fff,#edf2f2);box-shadow:none;cursor:pointer}
#consoleSettings #ccReport .cc-user-choice>input[type=checkbox]:checked{background:linear-gradient(180deg,#ffad56,#ff8b29 44%,#ff710b 52%,#ef6400);border-color:#f17516;box-shadow:inset 0 1px 1px #ffffff99,0 1px 3px #d5651738}
#consoleSettings #ccReport .cc-user-choice>input[type=checkbox]:checked:after{content:'';position:absolute;left:5.5px;top:2px;width:4px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
#consoleSettings #ccReport .cc-user-choice>input[type=checkbox]:indeterminate{background:linear-gradient(180deg,#ffad56,#ff8b29 44%,#ff710b 52%,#ef6400);border-color:#f17516}
#consoleSettings #ccReport .cc-user-choice>input[type=checkbox]:indeterminate:after{content:'';position:absolute;left:4px;top:7.5px;width:8px;height:2px;border-radius:1px;background:#fff}
#consoleSettings #ccReport .cc-user-choice>input[type=checkbox]:focus-visible{outline:2px solid #ff790c;outline-offset:2px}
#consoleSettings #ccReport .cc-user-all{font-weight:700}
