/* =====================================================
   مطاعم أبوزيد — إنتاجية الموظفين
   productivity.css  v2.0
   ===================================================== */

/* ── Page wrapper ── */
#page-productivity {
  direction: rtl;
  text-align: right;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 24px 28px;
  min-width: 0;
}

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.prod-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.prod-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.prod-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(124,58,237,0.1));
  color: #a78bfa;
  flex-shrink: 0;
  border: 1px solid rgba(167,139,250,0.2);
}
.prod-title h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #e8edf5;
  margin: 0 0 3px;
}
.prod-title p {
  font-size: 0.78rem;
  color: #7a90a8;
  margin: 0;
}
.prod-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.prod-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.76rem;
  color: #7a90a8;
  display: flex; align-items: center; gap: 6px;
}
.prod-badge i { color: #a78bfa; }

.prod-sync-btn {
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 9px;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: #a78bfa;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  display: flex; align-items: center; gap: 7px;
  transition: all 0.2s;
  white-space: nowrap;
}
.prod-sync-btn:hover {
  background: rgba(167,139,250,0.2);
  border-color: #a78bfa;
  transform: translateY(-1px);
}
.prod-sync-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.prod-sync-btn.spinning i { animation: prod-spin 0.8s linear infinite; }
@keyframes prod-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════
   STATUS BAR
══════════════════════════════════════════════════ */
.prod-status-bar {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.76rem;
  color: #7a90a8;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.prod-status-bar .status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.prod-status-bar .status-dot.syncing {
  background: #eab308;
  animation: pulse-green 0.5s infinite;
}
.prod-status-bar .status-dot.error {
  background: #ef4444;
  animation: none;
}

/* ══════════════════════════════════════════════════
   CONNECTION STATUS STRIP
══════════════════════════════════════════════════ */
.prod-conn-status {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(34,197,94,0.04);
  border: 1px solid rgba(34,197,94,0.12);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}
.prod-conn-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 120px;
}
.prod-conn-item > i {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.prod-conn-item.success > i { color: #22c55e; }
.prod-conn-item.error   > i { color: #ef4444; }
.prod-conn-label {
  font-size: 0.68rem;
  color: #7a90a8;
  margin-bottom: 2px;
}
.prod-conn-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e8edf5;
}

/* ══════════════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════════════ */
.prod-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  width: 100%;
  box-sizing: border-box;
}
.prod-filter-search {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.prod-filter-search i {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: #7a90a8;
  font-size: 0.8rem;
  pointer-events: none;
}
.prod-filter-search input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 9px 36px 9px 14px;
  color: #c8d4e0;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}
.prod-filter-search input:focus {
  border-color: rgba(167,139,250,0.4);
}
.prod-filter-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 9px 14px;
  color: #c8d4e0;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  min-width: 180px;
}
.prod-filter-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #4b6080;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   SUMMARY KPI STRIP
══════════════════════════════════════════════════ */
.prod-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  width: 100%;
  box-sizing: border-box;
}
.prod-kpi-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.prod-kpi-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 100%; height: 3px;
  background: var(--pk-color, #a78bfa);
}
.prod-kpi-card.clickable { cursor: pointer; }
.prod-kpi-card.clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  border-color: var(--pk-color, #a78bfa);
  background: rgba(255,255,255,0.05);
}
.pkc-icon {
  font-size: 1.1rem;
  margin-bottom: 6px;
  opacity: 0.8;
}
.pkc-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pk-color, #a78bfa);
  line-height: 1;
  margin-bottom: 5px;
}
.pkc-label {
  font-size: 0.7rem;
  color: #7a90a8;
  font-weight: 600;
  line-height: 1.3;
}
.pkc-sub {
  font-size: 0.65rem;
  color: #4b6080;
  margin-top: 4px;
}
.pkc-click-hint {
  font-size: 0.62rem;
  color: var(--pk-color, #a78bfa);
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.prod-kpi-card.clickable:hover .pkc-click-hint { opacity: 0.8; }

/* ══════════════════════════════════════════════════
   SECTION TITLES
══════════════════════════════════════════════════ */
.prod-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e8edf5;
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prod-section-title i { color: #a78bfa; }

/* ══════════════════════════════════════════════════
   TABS
══════════════════════════════════════════════════ */
.prod-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 0;
}
.prod-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 18px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7a90a8;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  display: flex; align-items: center; gap: 7px;
  transition: all 0.2s;
  white-space: nowrap;
}
.prod-tab:hover { color: #a78bfa; }
.prod-tab.active {
  color: #a78bfa;
  border-bottom-color: #a78bfa;
}

/* ══════════════════════════════════════════════════
   PERFORMERS HIGHLIGHT
══════════════════════════════════════════════════ */
.prod-performers {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.prod-performer {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.prod-performer.top  { border-right: 3px solid #22c55e; }
.prod-performer.bottom { border-right: 3px solid #ef4444; }
.perf-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #7a90a8;
  white-space: nowrap;
}
.perf-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #e8edf5;
  flex: 1;
}
.perf-rate {
  font-size: 1.1rem;
  font-weight: 800;
}

/* ══════════════════════════════════════════════════
   EMPLOYEE TABLE
══════════════════════════════════════════════════ */
.prod-emp-table-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  direction: rtl;
  overflow-x: auto;
  width: 100%;
  box-sizing: border-box;
}
.prod-emp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  direction: rtl;
  min-width: 700px;
}
.prod-emp-table thead tr {
  background: rgba(255,255,255,0.04);
}
.prod-emp-table th {
  padding: 12px 14px;
  text-align: right;
  font-weight: 700;
  color: #7a90a8;
  font-size: 0.72rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}
.prod-emp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #c8d4e0;
  vertical-align: middle;
  text-align: right;
}
.prod-emp-table tr:last-child td { border-bottom: none; }
.prod-emp-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}
.prod-emp-table tbody tr:hover {
  background: rgba(167,139,250,0.06);
}
.prod-emp-table .td-name { font-weight: 700; color: #e8edf5; }

/* Employee avatar */
.prod-emp-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(167,139,250,0.25), rgba(124,58,237,0.15));
  color: #a78bfa;
  border: 1px solid rgba(167,139,250,0.2);
  flex-shrink: 0;
}

/* Rank badge */
.prod-rank-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 800;
  background: rgba(122,144,168,0.1);
  color: #7a90a8;
  flex-shrink: 0;
}
.prod-rank-badge.rank-1 { background: rgba(212,175,55,0.2);  color: #D4AF37; }
.prod-rank-badge.rank-2 { background: rgba(148,163,184,0.2); color: #94a3b8; }
.prod-rank-badge.rank-3 { background: rgba(205,127,50,0.2);  color: #cd7f32; }

/* Mini progress bar in table */
.prod-mini-bar {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
  width: 80px;
  display: inline-block;
  vertical-align: middle;
}
.prod-mini-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

/* Status badge */
.prod-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
.prod-status-badge.green  { background: rgba(34,197,94,0.12);  color: #22c55e; }
.prod-status-badge.yellow { background: rgba(234,179,8,0.12);  color: #eab308; }
.prod-status-badge.red    { background: rgba(239,68,68,0.12);  color: #ef4444; }
.prod-status-badge.neutral{ background: rgba(122,144,168,0.12);color: #7a90a8; }

/* ══════════════════════════════════════════════════
   CHARTS ROW
══════════════════════════════════════════════════ */
.prod-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.prod-chart-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 18px 20px;
}
.prod-chart-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.prod-chart-wrap {
  position: relative;
  height: 260px;
}

/* ══════════════════════════════════════════════════
   BLOCKERS TABLE
══════════════════════════════════════════════════ */
.prod-blockers-wrap {
  background: rgba(239,68,68,0.02);
  border: 1px solid rgba(239,68,68,0.1);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  width: 100%;
  box-sizing: border-box;
}
.prod-blockers-header {
  padding: 12px 18px;
  background: rgba(239,68,68,0.06);
  font-size: 0.8rem;
  font-weight: 700;
  color: #ef4444;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(239,68,68,0.1);
}

/* ══════════════════════════════════════════════════
   MODAL OVERLAY — Employee Detail
══════════════════════════════════════════════════ */
.prod-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 9100;
  align-items: flex-start;
  justify-content: flex-end;
}
.prod-modal-overlay.open {
  display: flex;
  animation: prodOverlayIn 0.2s ease;
}
@keyframes prodOverlayIn { from { opacity:0; } to { opacity:1; } }

.prod-modal-drawer {
  background: #0d1e35;
  border-left: 1px solid rgba(255,255,255,0.08);
  width: 520px;
  max-width: 100vw;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: prodDrawerIn 0.3s cubic-bezier(0.16,1,0.3,1);
  direction: rtl;
}
@keyframes prodDrawerIn {
  from { transform: translateX(-50px); opacity:0; }
  to   { transform: translateX(0);     opacity:1; }
}

.prod-modal-header {
  padding: 22px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
}
.prod-modal-close {
  position: absolute; top: 14px; left: 14px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #7a90a8;
  font-size: 0.88rem;
  transition: all 0.2s;
}
.prod-modal-close:hover {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border-color: rgba(239,68,68,0.4);
}
.prod-modal-emp-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #e8edf5;
  margin-bottom: 3px;
  padding-left: 44px;
}
.prod-modal-emp-email {
  font-size: 0.76rem;
  color: #7a90a8;
  padding-left: 44px;
  margin-bottom: 8px;
}
.prod-modal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.prod-modal-metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.prod-modal-metric-label {
  font-size: 0.65rem;
  color: #7a90a8;
  margin-bottom: 5px;
  line-height: 1.3;
}
.prod-modal-metric-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #a78bfa;
}
.prod-modal-body {
  padding: 16px 20px;
  flex: 1;
  overflow-y: auto;
}
.prod-modal-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #7a90a8;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  line-height: 1.5;
}

/* Task rows in modal */
.prod-task-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8rem;
  transition: background 0.15s;
}
.prod-task-row:last-child { border-bottom: none; }
.prod-task-row.late  { background: rgba(239,68,68,0.03); }
.prod-task-row.done  { opacity: 0.75; }
.prod-task-row:hover { background: rgba(255,255,255,0.02); }
.prod-task-icon { font-size: 0.85rem; margin-top: 2px; flex-shrink: 0; }
.prod-task-info { flex: 1; min-width: 0; }
.prod-task-name {
  color: #e8edf5;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.4;
  word-break: break-word;
}
.prod-task-meta {
  font-size: 0.68rem;
  color: #7a90a8;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.prod-task-meta i { font-size: 0.62rem; margin-left: 2px; }
.prod-task-link {
  font-size: 0.7rem;
  color: #1eb8d8;
  text-decoration: none;
  flex-shrink: 0;
  margin-top: 2px;
  padding: 3px 8px;
  border: 1px solid rgba(30,184,216,0.2);
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.prod-task-link:hover {
  background: rgba(30,184,216,0.1);
  border-color: #1eb8d8;
}

/* ══════════════════════════════════════════════════
   LOADING STATE
══════════════════════════════════════════════════ */
.prod-loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  padding: 60px 20px;
}
.prod-loading-icon {
  width: 70px; height: 70px;
  border-radius: 20px;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: #a78bfa;
  margin-bottom: 20px;
  animation: prod-spin 2s linear infinite;
}
.prod-loading-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #e8edf5;
  margin-bottom: 8px;
}
.prod-loading-msg {
  font-size: 0.85rem;
  color: #7a90a8;
  margin-bottom: 6px;
}
.prod-loading-sub {
  font-size: 0.75rem;
  color: #4b6080;
  margin-bottom: 24px;
}
.prod-progress-bar {
  width: 280px;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}
.prod-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
  border-radius: 99px;
  animation: prod-progress 2s ease-in-out infinite;
  width: 60%;
}
@keyframes prod-progress {
  0%   { transform: translateX(200%); }
  100% { transform: translateX(-200%); }
}

.prod-loading-state {
  text-align: center;
  padding: 60px 20px;
  color: #7a90a8;
}
.prod-loading-state .prod-spinner,
.prod-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(167,139,250,0.15);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: prod-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
.prod-loading-state p { font-size: 0.88rem; margin: 0; }

.prod-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #7a90a8;
}
.prod-empty-state i {
  font-size: 2.5rem;
  margin-bottom: 14px;
  opacity: 0.25;
  display: block;
}
.prod-empty-state p { font-size: 0.9rem; margin: 0 0 8px; }

/* ══════════════════════════════════════════════════
   ERROR STATE
══════════════════════════════════════════════════ */
.prod-error-card {
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 700px;
  margin: 20px auto;
}
.prod-error-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 12px;
}
.prod-error-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ef4444;
  text-align: center;
  margin-bottom: 8px;
}
.prod-error-detail {
  font-size: 0.85rem;
  color: #c8d4e0;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.6;
}
.prod-error-msg {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 0.78rem;
  color: #ef4444;
  margin-bottom: 24px;
  word-break: break-all;
}
.prod-error-section {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.prod-error-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #7a90a8;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.prod-error-checklist { display: flex; flex-direction: column; gap: 8px; }
.prod-check-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem;
  color: #c8d4e0;
}
.prod-check-item.failed  i { color: #ef4444; }
.prod-check-item.success i { color: #22c55e; }
.prod-check-item.pending i { color: #7a90a8; }
.check-status { font-weight: 700; color: #7a90a8; }
.prod-error-fix {
  font-size: 0.82rem;
  color: #c8d4e0;
  line-height: 1.7;
}
.prod-error-config {
  font-size: 0.78rem;
  color: #7a90a8;
  display: flex; flex-direction: column; gap: 6px;
}
.prod-error-config span { color: #4b6080; margin-left: 6px; }
.prod-error-config code {
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  color: #1eb8d8;
}
.prod-error-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 20px;
  justify-content: center;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .prod-charts-row { grid-template-columns: 1fr; }
  .prod-conn-status { gap: 8px; }
}
@media (max-width: 768px) {
  #page-productivity { padding: 16px; }
  .prod-summary-strip { grid-template-columns: repeat(2, 1fr); }
  .prod-modal-drawer { width: 100vw; }
  .prod-modal-metrics { grid-template-columns: repeat(2, 1fr); }
  .prod-performers { flex-direction: column; }
  .prod-conn-status { flex-direction: column; }
  .prod-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .prod-summary-strip { grid-template-columns: 1fr 1fr; }
  .prod-filter-bar { flex-direction: column; }
  .prod-filter-search,
  .prod-filter-select { width: 100%; min-width: unset; }
}
