/* Takvim slot: + / kaydırma / mesafe — hover’da görünür */
.takvim-slot-el .tak-slot-move,
.takvim-slot-el .tak-slot-dist,
.takvim-slot-el .tak-slot-add-wrap {
  opacity: 0;
  transition: opacity 0.12s ease;
  pointer-events: none;
}
.takvim-slot-el:hover .tak-slot-move,
.takvim-slot-el:hover .tak-slot-dist,
.takvim-slot-el:hover .tak-slot-add-wrap {
  opacity: 1;
  pointer-events: auto;
}
.btn-tak-shift {
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  font-family: var(--mono, monospace);
}
.takvim-slot-el .tak-slot-move {
  box-sizing: border-box;
}
.takvim-slot-el .tak-slot-move .btn-tak-shift {
  width: 100%;
  min-height: 17px;
  padding: 0;
  text-align: center;
  flex-shrink: 0;
}
.btn-tak-shift:hover {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}
.btn-tak-dist {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.btn-tak-dist:hover {
  background: var(--accent);
  color: #fff;
}

.tak-slot-add-wrap {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 24;
  transition: opacity 0.12s ease;
}
.btn-tak-slot-add {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}
.btn-tak-slot-add:hover {
  background: var(--accent);
  color: #fff;
}

.takvim-slot-el.takvim-slot-many {
  font-size: 9px;
}
.takvim-slot-card {
  min-width: 0;
}
.tak-slot-card-name,
.tak-slot-card-addr {
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
}
.tak-slot-card-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.2;
}
.tak-slot-card-name--dense {
  -webkit-line-clamp: 2;
  font-size: 10px;
}
.tak-slot-card-addr {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.15;
}
.tak-slot-card-addr--dense {
  -webkit-line-clamp: 2;
}
/* —— Shared empty / loading hints (use class="mb-empty-hint" on no-data rows) */
.mb-empty-hint {
  text-align: center;
  padding: 24px 20px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.45;
}
.mb-skeleton-line {
  height: 10px;
  border-radius: 5px;
  max-width: 100%;
  background: linear-gradient(
    90deg,
    var(--bg-3) 0%,
    var(--bg-4) 45%,
    var(--bg-3) 90%
  );
  background-size: 200% 100%;
  animation: mb-skel 1.15s ease-in-out infinite;
}
@keyframes mb-skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Supervisor Panel ─────────────────────────────── */
.sup-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.sup-pill {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.sup-pill-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  font-family: var(--mono);
  color: var(--text);
}
.sup-pill-lbl {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-top: 5px;
}
.sup-pill--offline .sup-pill-num { opacity: 1; }
.sup-toolbar { margin: -8px 0 16px; max-width: 420px; }
.sup-live-card { padding: 14px 16px; margin-bottom: 16px; }
.sup-live-board { margin-top: 10px; overflow-x: auto; }
.sup-live-empty { color: var(--text-3); font-size: 13px; padding: 8px 0 2px; }
.sup-live-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sup-live-table th { text-align: left; font-size: 11px; color: var(--text-3); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.sup-live-table td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.sup-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); display: inline-block; margin-right: 8px; }
.sup-mono { font-family: var(--mono); }
.muh-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.muh-fx-inline {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 2px 2px 8px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border);
}
#muh-fx-rate { font-size: 12px; font-weight: 700; font-family: var(--mono); line-height: 1; }
.muh-fx-refresh {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.muh-fx-refresh:hover { color: var(--text); background: var(--bg-2); }
.muh-cur-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.muh-cur-btn {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  cursor: pointer;
}
.muh-cur-btn.is-on { background: var(--accent); color: #fff; }
.muh-fx-alt { font-size: 10px; color: var(--text-3); font-weight: 600; margin-top: 2px; }
.jm-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.jm-sum-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--bg-2); }
.jm-sum-lbl { font-size: 11px; color: var(--text-3); }
.jm-sum-val { font-size: 16px; font-weight: 800; margin-top: 2px; word-break: break-word; }
.jm-empty { font-size: 12px; color: var(--text-3); padding: 10px; }

.sup-agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.sup-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-3);
  padding: 48px 0;
  font-size: 14px;
}
.sup-card {
  border: 0;
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.sup-card .sup-agent-name,
.sup-card .sup-dur,
.sup-card .sup-call-val,
.sup-card .sup-status,
.sup-card .sup-call-lbl,
.sup-card .sup-avatar { color: inherit; }
.sup-card .sup-call-lbl { opacity: 0.75; }
.sup-card .sup-call-info { border-top-color: color-mix(in srgb, var(--ink) 18%, transparent); }
.sup-card .sup-avatar {
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  border-color: transparent;
}
.sup-card .sup-status {
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  border-color: transparent;
}
button.sup-pill { font: inherit; text-align: center; cursor: pointer; width: 100%; color: inherit; }
button.sup-pill.inactive { opacity: 0.42; }
.sup-pill--oncall .sup-pill-num { color: #16a34a; }
.sup-pill--ready .sup-pill-num { color: #a16207; }
.sup-pill--wrap .sup-pill-num { color: #2563eb; }
.sup-pill--break .sup-pill-num { color: #8b5a2b; }
.sup-pill--offline .sup-pill-num { color: #78716c; opacity: 1; }
.sup-agent-grid--rows { display: block; overflow-x: auto; }
.sup-live-dot { background: #16a34a; }
.sup-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sup-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  flex-shrink: 0;
}
.sup-agent-info { flex: 1; min-width: 0; }
.sup-agent-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sup-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 7px;
  margin-top: 3px;
  letter-spacing: .2px;
}
.sup-status--oncall,
.sup-status--ready,
.sup-status--wrap,
.sup-status--break { background: var(--bg-3); color: var(--text); border: 1px solid var(--border); }
.sup-status--offline { background: transparent; color: var(--text-3); border: 1px solid var(--border); }

.sup-dur {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text-3);
  flex-shrink: 0;
  min-width: 38px;
  text-align: right;
}
.sup-dur--live { color: var(--text); }

.sup-call-info {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sup-call-row { display: flex; gap: 8px; align-items: baseline; }
.sup-call-lbl {
  font-size: 11px;
  color: var(--text-3);
  min-width: 54px;
  flex-shrink: 0;
}
.sup-call-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

/* ── Çağrı Transfer Butonu ─────────────────── */
.call-action-btn--transfer {
  color: var(--accent);
  border-color: var(--accent);
}
.call-action-btn--transfer:hover {
  background: rgba(var(--accent-rgb, 99,102,241), 0.1);
}
/* only show during active calls (not in pre-call mode) */
.call-actions--pre-call #btn-transfer {
  display: none !important;
}

/* ── Transfer Agent Picker ─────────────────── */
.transfer-agent-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.transfer-agent-btn:hover {
  background: var(--bg-3);
  border-color: var(--accent);
}
.transfer-agent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.transfer-agent-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.transfer-agent-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(34,197,94,0.15);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.3);
}

/* ── 8.25 sade yüzey: renksiz çizgi simge, takvim, çağrı ── */
i.ph {
  color: currentColor !important;
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  vertical-align: -0.12em;
  font-weight: 400;
}
.btn svg, .btn i.ph { flex-shrink: 0; }
.upload-icon { font-size: 0; line-height: 0; color: var(--text-2); }
.upload-icon svg { display: block; margin: 0 auto 8px; }
.sb-item-icon svg,
.tk-nav-btn svg,
.page-title svg {
  display: block;
  stroke: currentColor;
}
.rank-mark {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.rank-card {
  border-top: 1px solid var(--border);
}

#page-dialer #customer-card.customer-card--empty {
  background: transparent;
  border: none;
  border-radius: 18px;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}
#page-dialer #customer-card.customer-card--wait {
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: none;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  max-height: 100%;
}
#page-dialer #customer-card.customer-card--wait > .cust-outbound-wait {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: auto;
  max-height: 100%;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}
#page-dialer .cust-empty {
  margin: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  color: #fff;
  border-radius: 18px;
}
#page-dialer .cust-empty-default,
#page-dialer .cust-empty-stage {
  border-radius: 18px;
}
#page-dialer .cust-empty-stage {
  background:
    radial-gradient(ellipse 70% 55% at 18% 22%, rgba(56, 189, 248, 0.95), transparent 58%),
    radial-gradient(ellipse 60% 50% at 82% 16%, rgba(167, 139, 250, 0.9), transparent 60%),
    radial-gradient(ellipse 68% 58% at 72% 86%, rgba(244, 114, 182, 0.82), transparent 62%),
    linear-gradient(155deg, #1d4ed8 0%, #6d28d9 48%, #0f766e 100%);
}
#page-dialer .cust-empty-stage::after { background: none; }
#page-dialer .cust-empty-aurora { opacity: 0.72; filter: blur(42px) saturate(1.25); }
#page-dialer .customer-card--empty .cust-empty-text {
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}
#page-dialer .customer-card--empty .cust-empty-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}
.dialer-page-hdr {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
#page-dialer .dialer-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
#page-dialer .dialer-live-chip,
#page-dialer .dialer-mic-chip,
#page-dialer .dialer-conn-chip {
  height: 36px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#page-dialer .dialer-live-chip .status-label {
  font-size: 12px;
  font-weight: 750;
}
#page-dialer #status-elapsed {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text-3);
}
#page-dialer .dialer-mic-chip {
  cursor: pointer;
  background: var(--bg-3);
  color: var(--text);
  font: inherit;
  line-height: 1;
}
#page-dialer .dialer-mic-chip i.ph { font-size: 16px; }
#page-dialer .dialer-mic-chip__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
#page-dialer .dialer-mic-chip__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
#page-dialer .dialer-mic-chip__hint {
  font-size: 9px;
  font-weight: 650;
  color: var(--text-3);
}
#page-dialer .dialer-mic-chip.is-off {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 40%, var(--border));
}
#page-dialer .dialer-mic-chip.is-on { color: var(--green); }
#page-dialer .dialer-conn-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
}
#page-dialer .dialer-conn-chip span {
  font-size: 11px !important;
}
#page-dialer #test-mode-btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
}
.dialer-test-lab {
  margin: 0 16px 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--yellow) 45%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--yellow) 10%, var(--bg-2));
}
.dialer-test-lab__bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dialer-test-lab__bar strong { font-size: 13px; font-weight: 800; }
.dialer-test-lab__lead { font-size: 12px; font-weight: 650; color: var(--text-2); }
.dialer-test-lab__now { display: none; font-style: normal; font-size: 12px; font-weight: 800; color: var(--text); }
.dialer-test-lab__more { display: none; margin-left: auto; }
.dialer-test-lab__groups { display: flex; flex-direction: column; gap: 8px; }
.dialer-test-lab__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dialer-test-lab__group > span {
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-right: 2px;
}
.dialer-test-lab__group button, .dialer-test-lab__more {
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.dialer-test-lab__group button.is-on { background: var(--accent); color: #fff; border-color: transparent; }
.dialer-test-lab__group button:hover { border-color: var(--accent); }
.dialer-test-lab__steps {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}
.dialer-test-lab.is-compact { padding: 6px 10px; margin-bottom: 8px; }
.dialer-test-lab.is-compact .dialer-test-lab__bar { margin: 0; }
.dialer-test-lab.is-compact .dialer-test-lab__lead,
.dialer-test-lab.is-compact .dialer-test-lab__groups,
.dialer-test-lab.is-compact .dialer-test-lab__steps { display: none; }
.dialer-test-lab.is-compact .dialer-test-lab__now,
.dialer-test-lab.is-compact .dialer-test-lab__more { display: inline-flex; }
.outcome-btn {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
  min-height: 56px !important;
}
.outcome-btn .icon svg {
  stroke: currentColor;
}
.ob-appointment,
.ob-negative,
.ob-callback,
.ob-noanswer,
.ob-voicemail {
  background: var(--bg-2);
  color: var(--text-2);
  border-color: var(--border);
}
.ob-appointment:hover,
.ob-negative:hover,
.ob-callback:hover,
.ob-noanswer:hover,
.ob-voicemail:hover {
  background: var(--bg-3);
  color: var(--text);
}
.outcome-btn.active,
.ob-appointment.active,
.ob-negative.active,
.ob-callback.active,
.ob-noanswer.active,
.ob-voicemail.active {
  transform: none;
  filter: none;
  background: var(--bg-3);
  color: var(--text);
  border-color: var(--text) !important;
  box-shadow: none;
}
.outcome-form {
  border-width: 1px;
  border-color: var(--border);
  box-shadow: none;
}

.page.page-takvim #takvim-main {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.takvim-seg button.is-on,
.takvim-seg button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg-2);
}
.tk-nav-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.takvim-week-grid-inner {
  background: var(--bg-2);
}
.tk-gutter--corner,
.tk-head,
.tk-hour,
.tk-cell,
.tk-month,
.tk-month-head {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  box-sizing: border-box;
}
.tk-gutter--corner,
.tk-head,
.tk-month-head {
  background: var(--bg-3);
}
.tk-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}
.tk-head-wd {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-3);
}
.tk-head-d {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.tk-head--today {
  box-shadow: inset 0 -2px 0 var(--text);
}
.tk-head--closed .tk-head-wd,
.tk-head--closed .tk-head-d {
  color: var(--text-3);
  text-decoration: line-through;
}
.tk-head--click { cursor: pointer; }
.tk-hour {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 4px 8px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  background: var(--bg-2);
}
.tk-cell {
  position: relative;
  min-height: 0;
  height: 100%;
  background: var(--bg-2);
}
.tk-cell--today {
  background: color-mix(in srgb, var(--text) 4%, var(--bg-2));
}
.tk-cell--off,
.tk-cell--closed {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    color-mix(in srgb, var(--text) 6%, transparent) 6px,
    color-mix(in srgb, var(--text) 6%, transparent) 7px
  );
}
.tk-cell--click { cursor: pointer; }
.tk-cell--click:hover {
  background: color-mix(in srgb, var(--text) 5%, var(--bg-2));
}
.tk-month-head {
  padding: 8px 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text-3);
}
.tk-month {
  min-height: 88px;
  background: var(--bg-2);
  padding: 6px;
  overflow: hidden;
}
.tk-month--other { background: var(--bg); }
.tk-month--today .tk-month-d {
  color: var(--bg-2);
  background: var(--text);
  border-radius: 999px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tk-month-d {
  font-size: 12px;
  font-weight: 650;
  color: var(--text-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tk-month-slots {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.tk-slot-meta {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.85;
}
.takvim-slot-el {
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}
#s-appt-results-rows { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ar-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.15fr) minmax(0, 1fr) 96px minmax(140px, auto) auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
}
.ar-grip {
  width: 28px; height: 36px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-3); cursor: grab; align-self: end;
}
.ar-grip:active { cursor: grabbing; }
.ar-row.is-dragging { opacity: .45; }
.ar-row .form-row { margin: 0; min-width: 0; }
.ar-row .form-input { width: 100%; min-width: 0; box-sizing: border-box; }
.ar-row input[type="color"] {
  height: 36px;
  padding: 3px;
  cursor: pointer;
  background: var(--bg-2);
}
.ar-colors { width: 96px; }
.ar-grad { display: flex; flex-wrap: wrap; gap: 4px; }
.ar-grad input[type="color"] { width: 44px; flex: 1 1 40px; }
.ar-grad-bar {
  flex: 1 1 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
#s-bos-color-row { margin-bottom: 8px; }
.ar-row-bos .ar-grip { visibility: hidden; pointer-events: none; }
.ar-row-bos .form-input:disabled { opacity: 1; color: var(--text); background: var(--bg-3); }
.ar-move {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.3;
  min-width: 0;
  padding-bottom: 8px;
}
@media (max-width: 1100px) {
  .ar-row { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); }
  .ar-move { grid-column: 1 / -1; }
}
.mesai-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--bg-3);
  border-radius: 6px;
  min-width: 0;
}
.mesai-gun { font-size: 12px; font-weight: 600; flex: 1 1 88px; min-width: 0; }
.mesai-sep { font-size: 11px; color: var(--text-3); flex: 0 0 auto; }
.mesai-row input[type="time"] {
  flex: 1 1 128px;
  width: auto;
  min-width: 0;
  max-width: 160px;
  font-size: 12px;
  padding: 4px 6px;
  box-sizing: border-box;
}
.leave-cal-week, .leave-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.leave-cal-week { margin-top: 10px; }
.leave-cal-grid { margin-top: 6px; }
.leave-cal-w {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
}
.leave-day {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text-1);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.leave-day.out { opacity: 0.35; }
.leave-day.off { opacity: 0.4; cursor: default; }
.leave-day.today { box-shadow: inset 0 0 0 2px #60a5fa; }
.leave-day.paid { background: color-mix(in srgb, #10b981 24%, var(--bg-2)); }
.leave-day.unpaid { background: color-mix(in srgb, #8b5cf6 24%, var(--bg-2)); }
.leave-day.team { background: color-mix(in srgb, #f59e0b 22%, var(--bg-2)); }
.leave-day.late { background: color-mix(in srgb, #f97316 24%, var(--bg-2)); }
.leave-day.picked { outline: 2px solid #3b82f6; outline-offset: 1px; }
.leave-day.forced { outline: 2px dashed #f59e0b; outline-offset: 1px; }
.leave-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}
.leave-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.leave-sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--bg-3); }
.leave-sw.paid { background: #34d399; }
.leave-sw.unpaid { background: #a78bfa; }
.leave-sw.team { background: #fbbf24; }
.leave-sw.late { background: #fb923c; }
.leave-sw.picked { background: #3b82f6; }
.leave-sw.forced { background: transparent; border: 2px dashed #f59e0b; }
.leave-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border);
}
.leave-chip.forced { border-style: dashed; }
#page-stats thead th,
#page-callhistory thead th { vertical-align: top; }
#page-stats .stats-sort,
#page-callhistory .stats-sort {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
#page-stats .stats-sort.is-on,
#page-callhistory .stats-sort.is-on { color: var(--text-1); }
#page-stats .camp-col-filter { min-width: 88px; }
#page-callhistory .ch-note {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--text-2);
}
#page-callhistory .ch-cb { font-size: 10px; color: var(--yellow); margin-top: 2px; }
#page-callhistory .card { min-width: 0; max-width: 100%; overflow: hidden; }
#page-qc.page.active { overflow: hidden; }
#page-qc .qc-table-card {
  flex: 1 1 auto;
  min-height: 160px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
#page-qc #qc-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: scroll;
  overflow-y: auto;
  scrollbar-width: auto;
  scrollbar-color: #2563eb var(--bg-3);
}
#page-qc #qc-scroll::-webkit-scrollbar { width: 12px; height: 14px; }
#page-qc #qc-scroll::-webkit-scrollbar-track { background: var(--bg-3); }
#page-qc #qc-scroll::-webkit-scrollbar-thumb { background: #2563eb; border-radius: 8px; }
#page-qc #qc-scroll::-webkit-scrollbar-corner { background: var(--bg-3); }
#page-qc #qc-scroll table { width: max-content; min-width: 100%; }
#page-qc #qc-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-3);
  vertical-align: top;
}
#page-qc #qc-job-queue-card { flex: 0 1 auto; max-height: 180px; overflow: auto; }
#page-qc #qc-near-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.qc-result-menu {
  position: fixed;
  z-index: 420;
  min-width: 180px;
  max-width: 280px;
  max-height: 280px;
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qc-result-menu .qc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.qc-result-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.qc-result-opt:hover { background: var(--bg-3); }
#page-callhistory .tbl-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
#page-callhistory .tbl-wrap::-webkit-scrollbar { height: 10px; }
#page-callhistory .tbl-wrap table { width: max-content; min-width: 100%; }
#page-callhistory .tbl-wrap th,
#page-callhistory .tbl-wrap td { white-space: nowrap; }
.ch-rec-dl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.mb-rec {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 220px;
  vertical-align: middle;
}
.mb-rec-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mb-rec-side {
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--text-3);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
}
.mb-rec-side.is-on {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.mb-rec audio { display: none; }
.mb-rec-bar {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  cursor: pointer;
  touch-action: none;
}
.mb-rec-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2, var(--accent)));
  pointer-events: none;
}
.mb-rec-btn {
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.4;
}
.mb-rec-time {
  font-size: 11px;
  color: var(--text-2);
  font-family: var(--mono);
  white-space: nowrap;
}
#takvim-appt-recs .mb-rec,
.prev-call-audio-wrap .mb-rec {
  width: 100%;
  min-width: 0;
}
#ops-notif-firm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
}
#ops-notif-firm[hidden] { display: none !important; }
#ops-notif-firm .form-label { margin: 0; }
#ops-notif-firm select { max-width: 280px; }
#ops-notif-firm small { color: var(--text-3); font-size: 11px; }
#qc-review-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px dashed var(--accent);
}
.qc-review-form-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.qc-review-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qc-review-form-hint { margin-top: 6px; font-size: 11px; color: var(--text-3); }
.qc-scope-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--bg-2);
}
.qc-scope-name { font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.qc-scope-name small { margin-left: 6px; font-weight: 500; color: var(--text-3); }
.qc-scope-all, .qc-scope-jobs, .qc-scope-picks label { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.qc-scope-jobs { margin-top: 8px; }
.qc-scope-picks { display: flex; flex-direction: column; gap: 4px; max-height: 160px; overflow: auto; margin-top: 6px; }
.qc-scope-picks[hidden] { display: none !important; }
.agent-qc-scope { margin-top: 4px; font-size: 11px; color: var(--text-2); }
#am-qc-scope[hidden] { display: none !important; }
#fieldops-tbody tr.fieldops-row { cursor: pointer; }
#fieldops-tbody tr.fieldops-row:hover td { background: var(--bg-3); }

.field-route { padding: 14px; margin-bottom: 12px; }
.field-route-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.field-route-date { min-width: 180px; }
#field-route-kicker { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--text-3); text-transform: uppercase; }
#field-route-title { font-size: 18px; font-weight: 800; }
.field-route-stats { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.field-route-grid { display: grid; grid-template-columns: minmax(280px, 1.1fr) minmax(260px, .9fr); gap: 12px; margin-top: 10px; }
#field-route-map { width: 100%; height: 360px; border-radius: 12px; background: var(--bg-3); display: block; }
.field-route-stops { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; }
.field-stop { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: start; text-align: left; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); cursor: pointer; color: inherit; }
.field-stop:hover { border-color: var(--accent); }
.field-stop-no { width: 28px; height: 28px; border-radius: 50%; background: #111827; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.field-stop-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.field-stop-time { font-size: 12px; font-weight: 800; color: var(--accent); }
.field-stop-name { font-size: 14px; font-weight: 800; }
.field-stop-addr, .field-stop-meta, .field-stop-hop { font-size: 12px; color: var(--text-3); }
.field-stop-status { font-size: 11px; font-weight: 800; color: var(--text-2); }
@media (max-width: 800px) {
  .field-route-grid { grid-template-columns: 1fr; }
  #field-route-map, .field-route-stops { height: auto; max-height: 280px; }
}
.field-cat-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.field-cat-chip { display: flex; gap: 4px; align-items: center; }
.field-cat-chip .form-input { width: 160px; }
.field-cat-group { display: flex; flex-direction: column; gap: 8px; }
.field-cat-head { font-size: 12px; font-weight: 800; color: var(--text-2); }
.field-cat-row { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); }
.field-cat-photo { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--bg-3); display: block; }
.field-cat-photo-empty { border: 1px dashed var(--border); }
.field-cat-photo-empty.cat_modul { background: #1e4b96; border: none; }
.field-cat-photo-empty.cat_wr { background: #2c3038; border: none; }
.field-cat-photo-empty.cat_speicher { background: #16824e; border: none; }
.field-cat-photo-empty.cat_wallbox { background: #0e7490; border: none; }
.field-cat-photo-empty.cat_wp { background: #c25a1c; border: none; }
@media (max-width: 640px) {
  #fieldops-pdf-body div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
#page-muhasebe .muh-hint { font-size: 11px; color: var(--text-3); margin-top: 4px; line-height: 1.4; }
#page-muhasebe .muh-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
#page-muhasebe .muh-tabbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 2px 0 4px;
}
#page-muhasebe .muh-tab-btn {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font-weight: 700;
  padding: 10px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
#page-muhasebe .muh-tab-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  box-shadow: 0 6px 14px rgba(15, 23, 42, .18);
}
#page-muhasebe .stats-grid,
#page-maasim .stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
#page-muhasebe .stat-card,
#page-maasim .stat-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: 16px;
  padding: 18px 16px 16px 18px;
}
#page-muhasebe .stat-lbl,
#page-maasim .stat-lbl,
#page-muhasebe .stat-meta,
#page-maasim .stat-meta,
#page-muhasebe .muh-fx-alt,
#page-maasim .muh-fx-alt {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
#page-muhasebe .stat-val,
#page-maasim .stat-val {
  max-width: 100%;
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
#page-muhasebe .stat-card::before,
#page-maasim .stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #3b82f6;
}
#page-muhasebe .stat-card.stat-green::before,
#page-maasim .stat-card.stat-green::before { background: #10b981; }
#page-muhasebe .stat-card.stat-red::before,
#page-maasim .stat-card.stat-red::before { background: #ef4444; }
#page-muhasebe .stat-card.stat-blue::before,
#page-maasim .stat-card.stat-blue::before { background: #0ea5e9; }
#page-muhasebe .stat-card.stat-purple::before,
#page-maasim .stat-card.stat-purple::before { background: #8b5cf6; }
#page-muhasebe .tbl-wrap table,
#page-maasim .tbl-wrap table { border-collapse: separate; border-spacing: 0; }
#page-muhasebe .muh-pay-note,
#page-maasim .muh-pay-note {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  margin: 0 0 8px;
}
#page-muhasebe .muh-pay-table,
#page-maasim .muh-pay-table { width: max-content; min-width: 100%; }
#page-muhasebe .muh-pay-table th,
#page-muhasebe .muh-pay-table td,
#page-maasim .muh-pay-table th,
#page-maasim .muh-pay-table td {
  white-space: nowrap;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
#page-muhasebe .muh-pay-person,
#page-maasim .muh-pay-person { display: inline-flex; align-items: baseline; gap: 8px; }
#page-muhasebe .muh-meta,
#page-maasim .muh-meta { color: var(--text-3); font-size: 11px; font-weight: 600; }
#page-muhasebe .muh-row-acts,
#page-maasim .muh-row-acts { display: flex; flex-wrap: nowrap; gap: 4px; align-items: center; }
#page-muhasebe .tbl-wrap thead th,
#page-maasim .tbl-wrap thead th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-3);
  white-space: nowrap;
}
#page-muhasebe .tbl-wrap tbody tr:hover td,
#page-maasim .tbl-wrap tbody tr:hover td { background: var(--bg-3); }
#page-muhasebe .muh-total td,
#page-maasim .muh-total td {
  font-weight: 800;
  background: var(--bg-3);
  border-top: 2px solid var(--border);
  position: sticky;
  bottom: 0;
}
.muh-adj-types { display: flex; gap: 8px; }
.muh-adj-type {
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font-weight: 800;
  padding: 10px 12px;
  cursor: pointer;
}
.muh-adj-type.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.muh-adj-type[data-adj="deduct"].is-on { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.firms-tools { margin-bottom: 12px; }
.firms-tools .form-input { max-width: 360px; }
.firms-list { display: flex; flex-direction: column; gap: 12px; }
.firm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.firm-name { font-size: 16px; font-weight: 800; }
.firm-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.firm-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.firm-bal { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm); min-width: 0; }
.firm-bal-lbl { font-size: 11px; color: var(--text-3); }
.firm-bal-val { font-size: 14px; font-weight: 800; color: var(--green); font-family: var(--mono); }
.firm-bal-note { font-size: 11px; color: var(--text-3); max-width: 240px; overflow-wrap: anywhere; }
.firm-users { display: flex; flex-direction: column; gap: 4px; }
.firm-user { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg-3); border-radius: var(--radius-xs); cursor: pointer; flex-wrap: wrap; }
.firm-user-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.firm-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.firm-user-name { font-size: 12px; font-weight: 700; }
.firm-user-mail { font-size: 11px; color: var(--text-3); overflow-wrap: anywhere; }
.firm-user-actions { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.firm-role, .firm-cat { font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 700; white-space: nowrap; }
.firm-role { background: var(--accent-soft); color: var(--accent); }
.firm-cat { background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border); }
.firm-mini { padding: 2px 6px; font-size: 11px; }
.firm-mini.is-off { color: var(--red); }
.firm-led-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.firm-led-filters button.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.firm-led-sum { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.firm-led-list { display: flex; flex-direction: column; max-height: 360px; overflow: auto; }
.firm-led-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.firm-led-kind { font-size: 12px; font-weight: 800; }
.firm-led-meta { font-size: 11px; color: var(--text-3); overflow-wrap: anywhere; }
.firm-led-amt { font-family: var(--mono); font-weight: 800; font-size: 13px; white-space: nowrap; }
.firm-led-amt.is-plus { color: var(--green); }
.firm-led-amt.is-minus { color: var(--red); }
.firm-none, .firm-log { font-size: 12px; color: var(--text-3); }
.firm-log { display: flex; flex-direction: column; gap: 4px; font-size: 11px; }
.firm-rate-row { display: grid; grid-template-columns: 90px 1fr 100px auto; gap: 6px; align-items: center; }
.stats-hours { display: flex; flex-direction: column; gap: 4px; }
.stats-hour { display: grid; grid-template-columns: 42px 1fr 36px 88px; gap: 8px; align-items: center; font-size: 11px; color: var(--text-2); }
.stats-hour-track { height: 8px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.stats-hour-bar { display: block; height: 100%; background: var(--accent); }
#stats-hour-tools .dash-range-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.rep-appt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 980px) { .rep-appt-grid { grid-template-columns: 1fr; } }
.rep-hour-canvas { height: 280px; margin: 6px 0 16px; }
.rep-credit-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
@media (max-width: 980px) { .rep-credit-kpis { grid-template-columns: 1fr 1fr; } }
.rep-kpi { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.rep-kpi span, .rep-kpi small { display: block; font-size: 12px; color: var(--text-3); }
.rep-kpi b { display: block; margin: 4px 0; font-size: 22px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-kpi.is-a { box-shadow: inset 3px 0 0 #fb923c; }
.rep-kpi.is-b { box-shadow: inset 3px 0 0 #38bdf8; }
.rep-kpi.is-c { box-shadow: inset 3px 0 0 #4ade80; }
.rep-kpi.is-d { box-shadow: inset 3px 0 0 #a78bfa; }
.rep-credit-canvas { height: 320px; }
.rep-group-canvas { height: 240px; }
.rep-group-name { font-weight: 700; margin-bottom: 4px; }
.rep-share { height: 8px; margin-bottom: 4px; background: var(--bg-3); border-radius: 99px; overflow: hidden; min-width: 72px; }
.rep-share span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #38bdf8, #fb923c); }
.rep-credit-total td { font-weight: 800; }
.rep-clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-perf-switch { display: flex; gap: 8px; margin-bottom: 12px; }
.rep-perf-switch button { border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); border-radius: 999px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.rep-perf-switch button.is-on { background: var(--accent); color: #fff; border-color: transparent; }
.rep-pill { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.rep-pill.on { background: #dcfce7; color: #166534; }
.rep-pill.off { background: #fee2e2; color: #991b1b; }
#stats-extra tr.rep-perf-on { background: color-mix(in srgb, #16a34a 14%, transparent); }
#stats-extra tr.rep-perf-off { background: color-mix(in srgb, #ef4444 10%, transparent); }
.rep-op-grid { display: grid; grid-template-columns: minmax(220px, 280px) 1fr 1fr; gap: 12px; align-items: stretch; }
@media (max-width: 980px) { .rep-op-grid { grid-template-columns: 1fr; } }
.rep-person-name { font-size: 18px; font-weight: 800; }
.rep-person-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 8px; }
.rep-donut-wrap { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.rep-donut { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.rep-donut-hole { width: 84px; height: 84px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-weight: 800; font-size: 13px; text-align: center; padding: 6px; }
.rep-legend { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.rep-legend-row { display: grid; grid-template-columns: 8px 1fr auto; gap: 6px; align-items: center; font-size: 12px; }
.rep-legend-row i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.rep-legend-row b { font-variant-numeric: tabular-nums; }
#stats-extra .tbl-wrap th { white-space: nowrap; }
