/* ===== MODAIS (Global) ===== */
.tfs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 9990;
  display: none;
}

.tfs-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 24px));
  background: #ffffff;
  border-radius: 18px;
  z-index: 9999;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  display: none;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.tfs-modal.is-open {
  display: block;
}

.tfs-modal-backdrop.is-open {
  display: block;
}

.tfs-modal-sm {
  width: min(560px, calc(100vw - 24px));
}

.tfs-modal-header,
.tfs-modal-footer {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tfs-modal-header {
  border-bottom: 1px solid #eef2f7;
}

.tfs-modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.tfs-modal-footer {
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
}

.tfs-modal-footer-right {
  justify-content: flex-end;
}

.tfs-modal-body {
  padding: 18px;
}

#tfsAlertMessage,
#tfsConfirmMessage {
  white-space: pre-line;
}

.icon-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}

.icon-btn:hover {
  background: #f1f5f9;
}

body.tfs-modal-open {
  overflow: hidden;
}

.callout {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.callout-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.tfs-tone-info #tfsAlertMessage {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.tfs-tone-success #tfsAlertMessage {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.tfs-tone-warning #tfsAlertMessage {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.tfs-tone-danger #tfsAlertMessage {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background: #dc2626;
}

@media (max-width: 520px) {
  .tfs-modal-header,
  .tfs-modal-footer {
    flex-wrap: wrap;
  }

  .tfs-modal-footer .btn {
    width: 100%;
  }
}
