/* ── Admin-specific additions on top of dashboard.css ───── */

/* Wider main for admin tables */
.dash-main {
  padding: 112px 36px 40px;
  max-width: none !important;
}

/* Textarea inside crm-label */
.crm-label textarea {
  border: 1.5px solid #2a2a2a;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: #ffffff;
  background: #111111;
  outline: none;
  width: 100%;
  resize: vertical;
  transition: border-color 0.2s;
  font-family: inherit;
}
.crm-label textarea:focus { border-color: var(--accent); }

/* Full-width crm-label */
.crm-label-full {
  flex: 1 1 100% !important;
  min-width: 100% !important;
}

/* Checkbox label variant */
.crm-label-check {
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.88rem;
  font-weight: 600;
  color: #aaaaaa;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.crm-label-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Modal size variants */
.crm-modal-sm {
  max-width: 400px;
}

/* Modal footer actions */
.modal-actions {
  margin-top: 20px;
  gap: 10px;
}

/* Table action column */
.td-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

/* Edit action button */
.crm-action-btn {
  background: transparent;
  border: 1.5px solid #2a2a2a;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #aaaaaa;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.crm-action-btn:hover {
  background: #2b2d30;
  color: #ffffff;
  border-color: #555555;
}

/* Delete variant */
.crm-action-btn.btn-del {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.25);
}
.crm-action-btn.btn-del:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(248, 113, 113, 0.5);
}

/* Delete confirmation message */
.delete-msg {
  color: #aaaaaa;
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Red toast variant */
.crm-toast.toast-err {
  border-color: rgba(248, 113, 113, 0.4);
  color: #f87171;
}

/* KPI value color helpers already in dashboard.css (pos/neg),
   but ensure they apply inside kpi-value */
.kpi-value.pos { color: #4ade80; }
.kpi-value.neg { color: #f87171; }

/* Select option legibility (browser default in dark) */
select option {
  background: #1a1a1a;
  color: #ffffff;
}

/* Ensure panel gap */
.panel {
  gap: 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dash-main {
    padding: 100px 16px 32px;
  }
}
