﻿.wf-bot-page {
  --wf-border: #d9e3f2;
  --wf-text: #123661;
  --wf-muted: #5d6f88;
  --wf-bg-soft: #f7faff;
  --wf-primary: #1f66db;
  --wf-primary-soft: #e8f0ff;
  --wf-ok: #1f9d62;

  display: grid;
  gap: 14px;
  padding: 16px;
}

.wf-bot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--wf-border);
  border-radius: 12px;
  background: #fff;
}

.wf-bot-head__copy {
  display: grid;
  gap: 4px;
}

.wf-bot-head__copy strong {
  color: var(--wf-text);
  font-size: 20px;
  line-height: 1.15;
}

.wf-bot-head__copy small {
  color: var(--wf-muted);
}

.wf-bot-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wf-bot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d7dfe9;
  color: #6a7c94;
  background: #f5f8fc;
  font-weight: 700;
}

.wf-bot-badge.is-active {
  color: #0f7a49;
  background: #e9f9f1;
  border-color: #bde9d2;
}

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

.wf-bot-page .field {
  display: grid;
  gap: 6px;
}

.wf-bot-page .field > span {
  color: var(--wf-text);
  font-weight: 700;
  font-size: 13px;
}

.wf-bot-page input,
.wf-bot-page select,
.wf-bot-page textarea {
  width: 100%;
  border: 1px solid var(--wf-border);
  background: #fff;
  border-radius: 10px;
  color: #183a67;
  padding: 10px 11px;
  font: inherit;
}

.wf-bot-page textarea {
  resize: vertical;
  min-height: 92px;
}

.wf-bot-page input:focus,
.wf-bot-page select:focus,
.wf-bot-page textarea:focus {
  outline: 0;
  border-color: #85aaf0;
  box-shadow: 0 0 0 3px rgba(31, 102, 219, 0.16);
}

.wf-bot-page input:disabled,
.wf-bot-page select:disabled,
.wf-bot-page textarea:disabled {
  background: #f1f5fb;
  color: #7890af;
  cursor: not-allowed;
}

.wf-days {
  display: grid;
  gap: 8px;
  border: 1px solid var(--wf-border);
  border-radius: 12px;
  padding: 11px;
  background: var(--wf-bg-soft);
}

.wf-days > span {
  color: var(--wf-text);
  font-weight: 700;
  font-size: 13px;
}

.wf-days-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wf-day-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cad7ec;
  border-radius: 999px;
  background: #fff;
  padding: 6px 10px;
  color: #1b416f;
}

.wf-day-item input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.wf-bot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wf-bot-page .msg {
  margin: 0;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #f8fbff;
  color: var(--wf-muted);
}

.wf-bot-page .msg.msg-ok {
  border-color: #bde9d2;
  color: #0f7a49;
  background: #effbf4;
}

.wf-bot-page .msg.msg-error {
  border-color: #f2c7cf;
  color: #b23348;
  background: #fff4f6;
}

@media (max-width: 1024px) {
  .wf-bot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wf-bot-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .wf-bot-grid {
    grid-template-columns: 1fr;
  }
}
