.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.permission-choice {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  background: #fff;
  font-weight: 650;
}
.permission-choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.conditional-fields {
  margin: 2px 0;
  padding: 16px;
  border: 1px solid #d9d2fb;
  border-radius: 13px;
  background: #faf9ff;
}
.conditional-fields h4 {
  margin: 0 0 13px;
  color: #5636a4;
}
.status-notice {
  margin: 0;
  padding: 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff1f2;
  color: #991b1b;
}
.status-hidden { display: none !important; }
.notification-panel {
  border-color: #ddd6fe;
  background: linear-gradient(135deg, #fff 0%, #faf8ff 100%);
}
.notification-list {
  display: grid;
  gap: 9px;
}
.notification-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.notification-item:hover {
  border-color: #8b5cf6;
  box-shadow: 0 5px 14px rgba(124, 58, 237, .09);
}
.notification-item.due {
  border-left: 5px solid #dc2626;
  background: #fffafa;
}
.notification-item span {
  display: grid;
  gap: 4px;
}
.notification-item small { color: var(--muted); }
.notification-item time {
  font-size: 12px;
  font-weight: 750;
  color: #6d28d9;
  white-space: nowrap;
}
.pill.Ringing { background: #f1f5f9; color: #475569; }
.pill.Connected { background: #cffafe; color: #0e7490; }
.pill.Busy { background: #ffedd5; color: #c2410c; }
.pill.Switch-Off,
.pill.Out-of-Network { background: #e5e7eb; color: #4b5563; }
.pill.Call-Back,
.pill.Follow-Up { background: #ede9fe; color: #6d28d9; }
.pill.Site-Visit { background: #f3e8ff; color: #7e22ce; }
.pill.Not-Interested { background: #fee2e2; color: #b91c1c; }

@media (max-width: 760px) {
  .permission-grid { grid-template-columns: 1fr; }
  .notification-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .notification-item time { white-space: normal; }
  .conditional-fields { padding: 13px; }
  .lead-table td:nth-child(4)::before { content: "Status"; }
  .lead-table td:nth-child(5)::before { content: "Agent"; }
  .lead-table td:nth-child(6)::before { content: "Last call"; }
  .lead-table td:nth-child(7)::before { content: "Follow-up"; }
  .lead-table td:nth-child(8)::before {
    content: "Created";
    display: block;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
  }
}
