/* Inline Callcenter Settings: intentionally follows the native Settings palette and spacing. */
#callcenter-settings-panel {
  width: 100%;
  max-width: 1340px;
  margin: 24px auto 48px;
  padding: 18px;
  color: #e9eef3;
  background: linear-gradient(180deg, #11151c, #161b23);
  border: 1px solid #212832;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

.ccs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #212832;
}

.ccs-header p {
  margin: 0 0 4px;
  color: #d4af37;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ccs-header h2 {
  margin: 0;
  color: #e9eef3;
  font-family: Sora, "IBM Plex Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.ccs-header span {
  display: block;
  max-width: 720px;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
}

.ccs-message {
  min-height: 16px;
  margin: -12px 0 12px;
  color: #22c55e;
  font-size: 12px;
  font-weight: 600;
}

.ccs-message[data-error="true"] { color: #ef4444; }

.ccs-presence {
  display: inline-flex;
  align-items: center;
  min-width: 72px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.ccs-presence.online { color: #86efac; background: rgba(34, 197, 94, .14); }
.ccs-presence.offline { color: #94a3b8; background: rgba(100, 116, 139, .16); }

.ccs-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding-bottom: 16px;
  overflow-x: auto;
  border-bottom: 1px solid #212832;
  scrollbar-width: none;
  white-space: nowrap;
}

.ccs-tabs::-webkit-scrollbar { display: none; }

.ccs-tabs button {
  min-height: 34px;
  padding: 7px 12px;
  color: #99a5b1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.ccs-tabs button:hover { color: #e9eef3; background: #161b23; }
.ccs-tabs button.active { color: #d4af37; background: rgba(212, 175, 55, .1); border-color: #d4af37; }

.ccs-tenant-picker {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.ccs-tenant-picker label {
  display: grid;
  grid-template-columns: auto minmax(220px, 340px);
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ccs-panel input,
.ccs-panel select {
  width: 100%;
  min-width: 0;
  padding: 10px 16px;
  color: #fff;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  font: 14px/20px "IBM Plex Sans", sans-serif;
  outline: none;
}

.ccs-panel input::placeholder { color: #475569; }
.ccs-panel input:focus,
.ccs-panel select:focus { border-color: #d4af37; }

.ccs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.ccs-metrics > div,
.ccs-card {
  padding: 20px;
  background: #0b111a;
  border: 1px solid #1e293b;
  border-radius: 12px;
}

.ccs-metrics small {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ccs-metrics strong {
  display: block;
  margin-top: 8px;
  color: #e9eef3;
  font-family: Sora, "IBM Plex Sans", sans-serif;
  font-size: 24px;
}

.ccs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ccs-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }

.ccs-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
}

.ccs-card p,
.ccs-card ol {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
}

.ccs-card ol { padding-left: 18px; }
.ccs-card + .ccs-card { margin-top: 16px; }

.ccs-form { display: grid; gap: 12px; }
.ccs-form.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }

.ccs-form label {
  display: grid;
  gap: 8px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ccs-form button,
.ccs-small,
.ccs-agent-checks button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  color: #fff;
  background: #d4af37;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: 14px/20px "IBM Plex Sans", sans-serif;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(212, 175, 55, .22);
  transition: background .15s ease, transform .15s ease;
}

.ccs-form button:hover,
.ccs-small:hover,
.ccs-agent-checks button:hover { background: #b5952f; transform: translateY(-1px); }

.ccs-table-wrap {
  overflow: hidden;
  overflow-x: auto;
  background: #0b111a;
  border: 1px solid #1e293b;
  border-radius: 12px;
}

.ccs-card table { width: 100%; border-collapse: collapse; font-size: 12px; }

.ccs-card th,
.ccs-card td {
  padding: 12px 16px;
  border-bottom: 1px solid #1e293b;
  color: #cbd5e1;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.ccs-card tr:last-child td { border-bottom: 0; }
.ccs-card tbody tr:hover { background: #0f172a; }

.ccs-card th {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ccs-card td strong { color: #e9eef3; }

.ccs-small {
  min-height: 30px;
  margin: 2px;
  padding: 5px 9px;
  font-size: 11px;
  box-shadow: none;
}

.ccs-small.secondary {
  color: #fff;
  background: rgba(30, 41, 59, .5);
  border: 1px solid #1e293b;
}

.ccs-small.secondary:hover { background: #1e293b; }

.ccs-route {
  display: block;
  padding: 12px;
  color: #d4af37;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ccs-hash { max-width: 190px; overflow: hidden; font-family: "IBM Plex Mono", monospace; text-overflow: ellipsis; }
.ccs-assignment { margin-bottom: 16px; }

.ccs-agent-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.ccs-agent-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: #e9eef3;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  cursor: pointer;
}

.ccs-agent-checks label:hover { border-color: #d4af37; }
.ccs-agent-checks input { width: 16px; height: 16px; accent-color: #d4af37; }
.ccs-agent-checks strong,
.ccs-agent-checks small { display: block; }
.ccs-agent-checks strong { font-size: 12px; }
.ccs-agent-checks small { margin-top: 2px; color: #64748b; font-size: 10px; }
.ccs-agent-checks button { grid-column: 1 / -1; justify-self: start; }

.ccs-login {
  max-width: 470px;
  margin: 24px auto 0;
  padding: 20px;
  background: #0b111a;
  border: 1px solid #1e293b;
  border-radius: 12px;
}

.ccs-login h3 { margin: 0 0 4px; color: #94a3b8; font-size: 14px; }
.ccs-login p { margin: 0 0 16px; color: #64748b; font-size: 12px; line-height: 16px; }

@media (max-width: 760px) {
  #callcenter-settings-panel { width: calc(100% - 16px); margin: 16px auto 32px; padding: 14px; }
  .ccs-header { display: block; }
  .ccs-tenant-picker { justify-content: stretch; }
  .ccs-tenant-picker label { grid-template-columns: 1fr; width: 100%; }
  .ccs-metrics,
  .ccs-grid,
  .ccs-grid.two,
  .ccs-form.compact { grid-template-columns: 1fr; }
}
