/* ─── Base ─────────────────────────────────────────────────────────────────── */
.bdmn-chamados {
  font-family: inherit;
  color: #212121;
}

.bdmn-page-badge {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid #EBEBEB;
  border-radius: 20px;
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.bdmn-page-title {
  font-size: 26px;
  font-weight: 800;
  color: #0033CC;
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1.2;
}

.bdmn-page-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 28px;
}

/* ─── Formulário ───────────────────────────────────────────────────────────── */
.bdmn-field {
  margin-bottom: 20px;
}

.bdmn-field--url {
  padding: 0;
}

.bdmn-field--tipo,
.bdmn-field--impacto,
.bdmn-field--prioridade {
  border: 1px solid #EBEBEB;
  border-radius: 10px;
  padding: 16px;
}

.bdmn-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 10px;
}

#bdmn-form-novo-ticket select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #EBEBEB;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', inherit;
  color: #212121;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23878787' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

#bdmn-form-novo-ticket input[type="url"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #EBEBEB;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', inherit;
  color: #878787;
  box-sizing: border-box;
  outline: none;
}

#bdmn-form-novo-ticket textarea {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', inherit;
  color: #878787;
  box-sizing: border-box;
  outline: none;
  background: transparent;
}

#bdmn-form-novo-ticket textarea {
  resize: vertical;
  min-height: 120px;
}

#bdmn-form-novo-ticket textarea[name="descricao"] {
  border: 1px solid #EBEBEB;
}

/* ─── Chips ────────────────────────────────────────────────────────────────── */
.bdmn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.bdmn-chamados .bdmn-chip,
.bdmn-chamados button.bdmn-chip {
  padding: 5px 10px;
  border: 1px solid #1B41D1;
  border-radius: 5px;
  background: #fff;
  font-size: 10px;
  font-weight: 400;
  font-family: 'Plus Jakarta Sans', inherit;
  color: #1B41D1;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.4;
}

.bdmn-chamados .bdmn-chip:hover,
.bdmn-chamados button.bdmn-chip:hover {
  background: #1B41D1;
  color: #fff;
}

.bdmn-chamados .bdmn-chip.active,
.bdmn-chamados button.bdmn-chip.active {
  background: #1B41D1;
  border-color: #1B41D1;
  color: #fff;
}

/* ─── Upload + submit row ──────────────────────────────────────────────────── */
.bdmn-field-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bdmn-upload-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  cursor: pointer;
  font-size: 12px;
  color: #999;
  gap: 8px;
  border: 1px solid #EBEBEB;
  border-radius: 10px;
  padding: 12px 16px;
}

.bdmn-upload-area input[type="file"] {
  display: none;
}

.bdmn-upload-area .iconify {
  font-size: 18px;
  color: #999;
  flex-shrink: 0;
}

/* ─── Botões ───────────────────────────────────────────────────────────────── */
#bdmn-form-novo-ticket .bdmn-btn-submit {
  padding: 12px 28px;
  background: #E53935;
  color: #fff;
  border: none;
  outline: none;
  border-radius: 55px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

#bdmn-form-novo-ticket .bdmn-btn-submit:hover { background: #1B41D1; }
#bdmn-form-novo-ticket .bdmn-btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.bdmn-btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background: #1565C0;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.bdmn-btn-white {
  display: inline-block;
  padding: 10px 24px;
  background: #fff;
  color: #1565C0;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.bdmn-btn-secondary {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #1b41d1;
  color: #1b41d1;
  border-radius: 55px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', inherit;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.bdmn-btn-secondary:hover {
  background: #1b41d1;
  color: #fff;
}

.bdmn-btn-outline {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #333;
  color: #333;
  border-radius: 10px;
  font-size: 13px;
  text-decoration: none;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}

.bdmn-btn-outline-red {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #ff4631;
  color: #ff4631;
  border-radius: 55px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', inherit;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.bdmn-btn-outline-red:hover {
  background: #fff0ee;
}

.bdmn-btn-outline-red:disabled { opacity: 0.7; cursor: not-allowed; }

/* ─── Erro / Alerta ────────────────────────────────────────────────────────── */
.bdmn-error {
  background: #FFEBEE;
  border: 1px solid #EF9A9A;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #C62828;
  margin-top: 12px;
}

.bdmn-alert-success {
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: #1B5E20;
  margin-bottom: 24px;
}

/* ─── Status badges ────────────────────────────────────────────────────────── */
.bdmn-status {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 400;
  font-family: 'Plus Jakarta Sans', inherit;
  white-space: nowrap;
}

.bdmn-status--aguardando   { background: #ffbaa6; color: #212121; }
.bdmn-status--em-andamento { background: #ffeebc; color: #212121; }
.bdmn-status--finalizado   { background: #adf5da; color: #212121; }
.bdmn-status--cancelado    { background: #FFEBEE; color: #C62828; }

/* ─── Lista de tickets ─────────────────────────────────────────────────────── */
.bdmn-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.bdmn-ticket-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  flex-wrap: wrap;
}

.bdmn-ticket-domain {
  flex: 1;
  min-width: 140px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', inherit;
  color: #212121;
}

.bdmn-ticket-meta {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', inherit;
  color: #212121;
  white-space: nowrap;
}

.bdmn-ticket-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.bdmn-empty {
  text-align: center;
  padding: 48px 20px;
  color: #999;
  font-size: 15px;
}

/* Confirmação inline de cancelamento */
.bdmn-confirm-cancel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 0;
  font-size: 13px;
  color: #555;
  flex-basis: 100%;
}

/* ─── CTAs ─────────────────────────────────────────────────────────────────── */
.bdmn-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .bdmn-cta-row { grid-template-columns: 1fr; }
}

.bdmn-cta-card {
  padding: 28px 32px;
  border-radius: 10px;
}

.bdmn-cta-card h3 {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', inherit;
  margin: 0 0 8px;
  line-height: 1.4;
}
.bdmn-cta-card p {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Plus Jakarta Sans', inherit;
  margin: 0 0 20px;
  line-height: 1.4;
}

.bdmn-cta-card--new {
  background: #1b41d1;
}

.bdmn-cta-card--new h3 { color: #fff; }
.bdmn-cta-card--new p  { color: #fff; }

.bdmn-cta-card--whatsapp {
  background: #f7f7f7;
  border: 1px solid #eaeaea;
}

.bdmn-cta-card--whatsapp h3 { color: #212121; }
.bdmn-cta-card--whatsapp p  { color: #929292; }

/* ─── Detalhe ──────────────────────────────────────────────────────────────── */
.bdmn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #1565C0;
  text-decoration: none;
  margin-bottom: 20px;
}

.bdmn-back-link:hover { text-decoration: underline; }

.bdmn-detail-card {
  border: 1px solid #EBEBEB;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.bdmn-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .bdmn-detail-grid { grid-template-columns: 1fr; }
  .bdmn-detail-cell { border-right: none !important; }
}

.bdmn-detail-cell {
  padding: 16px 20px;
  border-bottom: 1px solid #E0E0E0;
  border-right: 1px solid #E0E0E0;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.bdmn-detail-cell:nth-child(even) {
  border-right: none;
}

.bdmn-detail-cell strong {
  color: #555;
  font-weight: 500;
}

.bdmn-detail-description {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.bdmn-detail-description strong {
  display: block;
  color: #555;
  font-weight: 500;
  margin-bottom: 8px;
}

.bdmn-detail-description p {
  margin: 0;
}

/* ─── Responsivo ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bdmn-ticket-row {
    gap: 10px;
    padding: 14px 18px;
  }
  .bdmn-ticket-domain {
    flex-basis: 100%;
  }
  .bdmn-ticket-actions {
    flex-basis: 100%;
  }
}

@media (max-width: 480px) {
  .bdmn-ticket-row {
    padding: 12px 16px;
  }
  .bdmn-ticket-meta {
    font-size: 12px;
    flex-basis: 100%;
  }
  .bdmn-cta-card {
    padding: 20px;
  }
  .bdmn-cta-card h3 { font-size: 16px; }
  .bdmn-cta-card p  { font-size: 14px; }
}
