@import url("./banco-theme.css");
@import url("./portal-mobile.css");

* {
  box-sizing: border-box;
}

body.bp-portal-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--bp-text);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bp-page-background) 55%, #ffffff) 0%,
    #f8fafc 22rem,
    #ffffff 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-font-smoothing: antialiased;
}

.bp-app {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

body.bp-portal-body > .cms-institutional-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

.bp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bp-primary);
}

.bp-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bp-primary-dark);
}

.bp-header p {
  margin: 0.25rem 0 0;
  color: var(--bp-muted);
  font-size: 0.95rem;
}

.bp-header-text {
  position: relative;
  left: 0;
  top: 0;
}


.bp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bp-actions .bp-btn[hidden],
.bp-actions .bp-btn--list-shortcut {
  display: none !important;
}

.bp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--bp-border);
  background: var(--bp-surface);
  color: var(--bp-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.bp-btn:hover {
  background: var(--bp-primary-muted);
  border-color: var(--bp-primary-mid);
  color: var(--bp-primary-dark);
}

.bp-btn:focus-visible {
  outline: none;
  box-shadow: var(--bp-focus-ring);
}

a.bp-btn.bp-btn-primary,
button.bp-btn.bp-btn-primary,
.bp-btn.bp-btn-primary {
  background: var(--bp-gradient);
  border-color: var(--bp-primary);
  color: #fff;
  box-shadow: var(--bp-shadow-sm);
}

/* Primário + base: .bp-btn:hover define fundo claro; o texto tem de escurecer */
.bp-btn.bp-btn-primary:hover,
button.bp-btn.bp-btn-primary:hover,
a.bp-btn.bp-btn-primary:hover {
  background: var(--bp-primary-muted);
  border-color: var(--bp-primary-mid);
  color: var(--bp-primary-dark);
  filter: none;
  box-shadow: var(--bp-shadow-sm);
}

.bp-btn.bp-btn-danger {
  border-color: #b42318;
  color: #b42318;
}

.bp-btn.bp-btn-danger:hover {
  border-color: #912018;
  background: #fff1f0;
  color: #912018;
}

.bp-card {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border-subtle);
  border-radius: 18px;
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
  margin-bottom: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.bp-search {
  width: 100%;
  max-width: 420px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--bp-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--bp-surface);
}

.bp-search:focus {
  outline: none;
  border-color: var(--bp-primary-mid);
  box-shadow: var(--bp-focus-ring);
}

.bp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bp-list li {
  border-bottom: 1px solid var(--bp-border-subtle);
}

.bp-list a {
  display: block;
  padding: 0.85rem 0.25rem;
  color: inherit;
  text-decoration: none;
}

.bp-list a:hover {
  color: var(--bp-accent);
}

.bp-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--bp-primary-muted);
  color: var(--bp-primary);
  border: 1px solid var(--bp-border-subtle);
  margin-left: 0.5rem;
}

.bp-form label {
  display: block;
  font-weight: 600;
  margin: 0.75rem 0 0.35rem;
  color: var(--bp-text);
}

.bp-form h2,
.bp-detail h2 {
  color: #0f172a;
  letter-spacing: -0.025em;
}

.bp-form input,
.bp-form textarea,
.bp-form select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--bp-border);
  border-radius: 8px;
  font: inherit;
  background: var(--bp-surface);
  color: var(--bp-text);
}

.bp-form input:focus,
.bp-form textarea:focus,
.bp-form select:focus {
  outline: none;
  border-color: var(--bp-primary-mid);
  box-shadow: var(--bp-focus-ring);
}

.bp-form textarea {
  min-height: 100px;
  resize: vertical;
}

.bp-grid {
  display: grid;
  gap: 0.75rem;
}

.bp-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bp-section-title {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.1rem;
  color: var(--bp-primary);
  border-top: 1px solid color-mix(in srgb, var(--bp-border-subtle) 82%, transparent);
  padding-top: 1.1rem;
}

.bp-help {
  font-size: 0.85rem;
  color: var(--bp-muted);
  margin-top: 0.2rem;
}

.bp-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.bp-alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.bp-alert-info {
  background: var(--bp-primary-muted);
  color: var(--bp-primary-dark);
  border: 1px solid var(--bp-border);
}

.bp-alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.bp-floating-message-host {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.bp-floating-message-host.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bp-floating-message {
  min-width: 260px;
  max-width: min(92vw, 420px);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--bp-border-subtle);
  box-shadow: var(--bp-shadow-sm);
  background: var(--bp-surface);
  font-weight: 600;
}

.bp-floating-message--success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.bp-floating-message--error {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.bp-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(2px);
}

.bp-dialog {
  width: min(100%, 460px);
  background: var(--bp-surface);
  border: 1px solid var(--bp-border-subtle);
  border-radius: 16px;
  box-shadow: var(--bp-shadow-sm);
  padding: 1.25rem;
}

.bp-dialog__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--bp-primary-dark);
}

.bp-dialog__text {
  margin: 0;
  color: var(--bp-muted);
}

.bp-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.bp-submit-success {
  margin-bottom: 1.25rem;
}

.bp-submit-success__title {
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
}

.bp-submit-success p {
  margin: 0;
  line-height: 1.5;
}

.bp-status-banner {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin: 0 0 1.25rem;
  border: 1px solid var(--bp-border-subtle);
  background: var(--bp-surface-raised);
}

.bp-status-submitted {
  border-color: #93c5fd;
  background: #eff6ff;
}

.bp-status-review {
  border-color: #fcd34d;
  background: #fffbeb;
}

.bp-status-adjustment {
  border-color: #fdba74;
  background: #fff7ed;
}

.bp-status-rejected {
  border-color: #fca5a5;
  background: #fef2f2;
}

.bp-status-published {
  border-color: #86efac;
  background: #f0fdf4;
}

.bp-status-draft {
  border-color: var(--bp-border);
  background: var(--bp-surface-raised);
}

.bp-adjustment-feedback {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #f0c36d;
  border-left: 4px solid #e67e22;
  border-radius: 8px;
  background: #fff8e6;
  color: var(--bp-text, #333);
}

.bp-adjustment-feedback strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #9a5b00;
}

.bp-adjustment-feedback__body {
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: normal;
}

.bp-adjustment-msg {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.bp-adjustment-msg__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 1px solid #e67e22;
  border-radius: 999px;
  background: #fff8e6;
  color: #c05621;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.bp-adjustment-msg__btn:hover,
.bp-adjustment-msg__btn[aria-expanded="true"] {
  background: #ffe8b8;
  color: #9a5b00;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.25);
}

.bp-adjustment-msg__btn .bi {
  font-size: 1rem;
}

.bp-adjustment-msg__panel {
  position: fixed;
  z-index: 2000;
  box-sizing: border-box;
  width: max-content;
  min-width: min(20rem, calc(100vw - 1rem));
  max-width: min(36rem, calc(100vw - 1rem));
  padding: 0.85rem 1rem;
  border: 1px solid #f0c36d;
  border-left: 4px solid #e67e22;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bp-adjustment-msg__panel-title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #9a5b00;
}

.bp-adjustment-msg__panel-body {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--bp-text, #333);
  max-height: 12rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
  overflow-y: auto;
}

.bp-adjustment-msg__close {
  margin-top: 0.65rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--bp-border);
  border-radius: 6px;
  background: var(--bp-surface);
  color: var(--bp-primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.bp-adjustment-msg__close:hover {
  background: var(--bp-primary-muted);
}

.bp-my-initiatives-table__status-cell {
  white-space: nowrap;
  overflow: visible;
  position: relative;
}

.bp-my-initiatives-table__status-cell .bp-adjustment-msg {
  margin-left: 0.5rem;
}

.bp-status-workflow__actions .bp-adjustment-msg {
  margin-left: 0;
}

.bp-status-workflow {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--bp-border-subtle);
  border-radius: 10px;
  background: var(--bp-surface);
}

.bp-status-workflow__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.5rem;
}

.bp-status-workflow__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bp-primary-dark);
}

.bp-status-workflow__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.bp-status-workflow__status-help {
  position: relative;
}

.bp-status-workflow__status-help-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid var(--bp-border);
  background: var(--bp-surface);
  color: var(--bp-primary);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
  box-shadow: var(--bp-shadow-sm);
}

.bp-status-workflow__status-help-toggle::-webkit-details-marker {
  display: none;
}

.bp-status-workflow__status-help[open] .bp-status-workflow__status-help-toggle,
.bp-status-workflow__status-help-toggle:hover {
  background: var(--bp-primary-muted);
  color: var(--bp-primary-dark);
}

.bp-status-workflow__status-help-card {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 20;
  width: min(18rem, 80vw);
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--bp-border-subtle);
  border-radius: 10px;
  background: var(--bp-surface);
  color: var(--bp-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.bp-status-workflow__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--bp-border-subtle);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bp-primary-dark);
}

.bp-status-workflow__mine {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--bp-border);
  border-radius: 999px;
  background: var(--bp-surface);
  color: var(--bp-primary) !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.bp-status-workflow__mine:hover {
  background: var(--bp-primary-muted);
  color: var(--bp-primary-dark) !important;
}

.bp-list-actions {
  max-width: 1200px;
  margin: 0 auto 1rem;
  padding: 1.25rem 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.bp-list-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--bp-border);
  border-radius: 999px;
  background: var(--bp-surface);
  color: var(--bp-primary) !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--bp-shadow-sm);
}

.bp-list-actions__btn:hover {
  background: var(--bp-primary-muted);
  color: var(--bp-primary-dark) !important;
}

.bp-list-actions__btn--primary {
  background: var(--bp-gradient);
  border-color: var(--bp-primary);
  color: #fff !important;
}

.bp-list-actions__btn--primary:hover {
  background: var(--bp-primary-muted);
  color: var(--bp-primary-dark) !important;
}

.bp-my-initiatives-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid var(--bp-border-subtle);
  border-radius: 12px;
  background: var(--bp-surface);
  box-shadow: var(--bp-shadow-sm);
}

.bp-my-initiatives-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.bp-my-initiatives-table th,
.bp-my-initiatives-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--bp-border-subtle);
  text-align: left;
  vertical-align: middle;
}

.bp-my-initiatives-table th {
  background: var(--bp-surface-raised);
  color: var(--bp-text);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bp-my-initiatives-table tbody tr:hover {
  background: var(--bp-primary-soft);
}

.bp-my-initiatives-table tbody tr:last-child td {
  border-bottom: 0;
}

.bp-my-initiatives-table__title-link {
  color: var(--bp-primary) !important;
  font-weight: 800;
  text-decoration: none;
}

.bp-my-initiatives-table__title-button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.bp-my-initiatives-table__title-link:hover {
  color: var(--bp-primary-dark) !important;
  text-decoration: underline;
}

.bp-my-initiatives-table__title-button[aria-expanded="true"] {
  color: var(--bp-primary-dark) !important;
  text-decoration: underline;
}

.bp-my-initiatives-table__code-cell {
  color: var(--bp-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.bp-my-initiatives-table__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--bp-border-subtle);
  border-radius: 999px;
  color: var(--bp-primary-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bp-my-initiatives-table__detail-row:hover {
  background: transparent !important;
}

.bp-my-initiatives-table__detail-cell {
  padding: 0 !important;
  border-bottom: 0 !important;
}

.bp-my-initiatives-table__detail-cell::before {
  content: none !important;
}

.bp-my-initiatives-table__detail-cell .bp-detail--inline {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--bp-border-subtle);
  border-radius: 0;
  box-shadow: none;
}

.bp-inline-detail-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.bp-inline-detail-actions__edit,
.bp-inline-detail-actions__delete,
.bp-inline-detail-actions__collapse {
  border-radius: 0.65rem;
  padding: 0.42rem 0.85rem;
}

.bp-detail-actions--align-right {
  display: flex;
  justify-content: flex-end;
}

.bp-status-workflow .bp-status-banner {
  margin-bottom: 0.75rem;
}

.bp-readonly {
  background: #f1f5f9;
  cursor: not-allowed;
}

.bp-detail-meta {
  margin: 0 0 1.35rem;
  display: grid;
  gap: 0.7rem;
}

.bp-detail dl {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.bp-detail dt {
  font-weight: 600;
  margin-top: 0;
  color: var(--bp-primary);
  min-width: 0;
  max-width: 100%;
}

.bp-detail dd {
  margin: 0.18rem 0 0;
  margin-inline-start: 0;
  min-width: 0;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bp-detail--public-read {
  margin: 1.25rem auto 3rem;
  max-width: 960px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.bp-detail--public-read__title {
  color: #0f172a;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.bp-detail--public-read__section + .bp-detail--public-read__section {
  margin-top: 1.5rem;
}

.bp-detail--public-read__section dd + dt {
  margin-top: clamp(0.9rem, 1.4vw, 1.15rem);
}

.bp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.25rem 0;
  text-align: center;
  color: var(--bp-primary-dark);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bp-loading--initial {
  min-height: 8rem;
}

.bp-loading__spinner {
  display: block;
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto;
  border-radius: 999px;
  border: 4px solid rgba(176, 30, 62, 0.12);
  border-top-color: var(--bp-primary);
  border-right-color: var(--bp-primary-mid);
  border-bottom-color: rgba(176, 30, 62, 0.18);
  box-shadow:
    0 0 0 5px rgba(176, 30, 62, 0.05),
    0 12px 28px rgba(176, 30, 62, 0.14);
  animation: bp-loading-spin 0.85s linear infinite;
}

.bp-loading__label {
  font-size: 0.95rem;
  color: var(--bp-primary-dark);
}

.bp-loading::before {
  content: "";
  display: block;
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto;
  border-radius: 999px;
  border: 4px solid rgba(176, 30, 62, 0.12);
  border-top-color: var(--bp-primary);
  border-right-color: var(--bp-primary-mid);
  border-bottom-color: rgba(176, 30, 62, 0.18);
  box-shadow:
    0 0 0 5px rgba(176, 30, 62, 0.05),
    0 12px 28px rgba(176, 30, 62, 0.14);
  animation: bp-loading-spin 0.85s linear infinite;
}

.bp-loading--initial::after {
  content: "Carregando conteúdo...";
  font-size: 0.95rem;
  color: var(--bp-primary-dark);
}

.bp-loading.bp-loading--fallback::before,
.bp-loading.bp-loading--fallback::after {
  content: none !important;
  display: none !important;
}

@keyframes bp-loading-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bp-muted {
  color: var(--bp-muted);
  font-size: 0.9rem;
}

.bp-attachments {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.bp-attachments li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--bp-border-subtle);
}

.bp-attachments a {
  color: var(--bp-accent);
}

.bp-attachments a:hover {
  color: var(--bp-accent-hover);
}

.bp-attach-upload {
  margin-top: 0.75rem;
}

.bp-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.bp-attach-del {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  margin-left: 0.5rem;
}

.bp-wizard-step {
  font-size: 0.9rem;
  color: var(--bp-muted);
  margin-bottom: 1rem;
}

.bp-wizard-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--bp-border);
  margin-right: 0.35rem;
  font-weight: 600;
}

.bp-step-active {
  background: var(--bp-gradient);
  color: #fff !important;
  border-color: var(--bp-primary) !important;
}

.bp-step-muted {
  margin: 0 0.35rem;
}

.bp-group {
  border: 1px solid color-mix(in srgb, var(--bp-border-subtle) 88%, transparent);
  border-radius: 16px;
  padding: 1.1rem 1.25rem 0.7rem;
  margin: 1.15rem 0;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.bp-group legend {
  font-weight: 700;
  color: var(--bp-primary);
  padding: 0 0.45rem;
  font-size: 1rem;
  background: #ffffff;
}

.bp-field {
  margin-bottom: 0.75rem;
}

.bp-cover-block {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--bp-border-subtle);
  border-radius: 16px;
  background: #ffffff;
}

.bp-cover-preview {
  margin-bottom: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
  max-width: 320px;
  border: 1px solid var(--bp-border-subtle);
}

.bp-cover-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
}

.bp-cover-preview--compact {
  width: 112px;
  height: 112px;
  max-width: 112px;
  margin-bottom: 0.5rem;
  background: #fff;
}

.bp-cover-preview--compact img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.bp-cover-status {
  margin: 0 0 0.75rem;
}

.bp-cover-actions {
  display: grid;
  gap: 0.5rem;
  align-items: start;
}

.bp-cover-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.bp-cover-upload-option {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--bp-border-subtle);
  border-radius: 12px;
  background: var(--bp-surface, #fff);
}

.bp-cover-upload-option .bp-help,
.bp-cover-guidance {
  margin: 0;
}

.bp-detail-cover {
  margin: 0 0 1.35rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--bp-border-subtle);
  height: 300px;
  max-height: 300px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bp-detail-cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.bp-detail-cover .bp-detail-cover__image {
  position: relative;
  z-index: 1;
  object-fit: cover;
}

.bp-check-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.bp-check-single,
.bp-check-multi {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

.bp-check-single input,
.bp-check-multi input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: auto;
  min-height: 1.15rem;
  min-width: 1.15rem;
}

.bp-toggle-single {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.45rem;
  min-height: 2.25rem;
  flex-wrap: nowrap;
  max-width: 100%;
  user-select: none;
}

.bp-toggle-single input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.bp-toggle-single__control {
  position: relative;
  display: inline-flex;
  width: 4rem;
  height: 2.25rem;
  flex: 0 0 4rem;
  margin: 0 0.2rem;
}

.bp-toggle-single__track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d8d8dc;
  border: 0;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.bp-toggle-single__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}

.bp-toggle-single input:checked ~ .bp-toggle-single__control .bp-toggle-single__track {
  background: var(--bp-primary);
}

.bp-toggle-single input:checked ~ .bp-toggle-single__control .bp-toggle-single__track::after {
  transform: translateX(28px);
}

.bp-toggle-single input:focus-visible ~ .bp-toggle-single__control .bp-toggle-single__track {
  box-shadow: var(--bp-focus-ring);
}

.bp-toggle-single__label {
  color: var(--bp-text);
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
}

.bp-toggle-single__label--off,
.bp-toggle-single__label--on {
  font-size: 0.92rem;
  font-weight: 700;
}

.bp-toggle-single__label--off {
  color: var(--bp-muted);
  margin-right: 0.15rem;
}

.bp-toggle-single__label--on {
  color: var(--bp-text);
  margin-left: 0.15rem;
}

@media (max-width: 576px) {
  .bp-my-initiatives-table-wrap,
  .bp-my-initiatives-table-wrap .bp-my-initiatives-table,
  .bp-my-initiatives-table-wrap .bp-my-initiatives-table tbody,
  .bp-my-initiatives-table-wrap .bp-my-initiatives-table__detail-row,
  .bp-my-initiatives-table-wrap .bp-my-initiatives-table__detail-cell,
  .bp-my-initiatives-table-wrap .bp-detail--inline {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .bp-my-initiatives-table-wrap .bp-detail--inline .bp-inline-detail-actions,
  .bp-my-initiatives-table-wrap .bp-detail--inline .bp-inline-detail-actions__edit,
  .bp-my-initiatives-table-wrap .bp-detail--inline .bp-inline-detail-actions__delete,
  .bp-my-initiatives-table-wrap .bp-detail--inline .bp-inline-detail-actions__collapse,
  .bp-my-initiatives-table-wrap .bp-detail--inline .bp-status-workflow,
  .bp-my-initiatives-table-wrap .bp-detail--inline .bp-status-workflow__head,
  .bp-my-initiatives-table-wrap .bp-detail--inline .bp-status-workflow__actions,
  .bp-my-initiatives-table-wrap .bp-detail--inline .bp-detail-cover,
  .bp-my-initiatives-table-wrap .bp-detail--inline .bp-detail-cover img,
  .bp-my-initiatives-table-wrap .bp-detail--inline h2,
  .bp-my-initiatives-table-wrap .bp-detail--inline h3,
  .bp-my-initiatives-table-wrap .bp-detail--inline dl,
  .bp-my-initiatives-table-wrap .bp-detail--inline dt,
  .bp-my-initiatives-table-wrap .bp-detail--inline dd,
  .bp-my-initiatives-table-wrap .bp-detail--inline p,
  .bp-my-initiatives-table-wrap .bp-detail--inline a,
  .bp-my-initiatives-table-wrap .bp-detail--inline span,
  .bp-my-initiatives-table-wrap .bp-detail--inline strong,
  .bp-my-initiatives-table-wrap .bp-detail--inline div,
  .bp-my-initiatives-table-wrap .bp-detail--inline section {
    width: auto;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .bp-my-initiatives-table-wrap .bp-detail--inline dl {
    margin: 0 !important;
  }

  .bp-my-initiatives-table-wrap .bp-detail--inline dd {
    margin: 0.25rem 0 0 !important;
    margin-inline-start: 0 !important;
    white-space: pre-wrap;
  }

  .bp-my-initiatives-table-wrap .bp-detail--inline .bp-inline-detail-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .bp-my-initiatives-table-wrap .bp-detail--inline .bp-inline-detail-actions__edit,
  .bp-my-initiatives-table-wrap .bp-detail--inline .bp-inline-detail-actions__delete,
  .bp-my-initiatives-table-wrap .bp-detail--inline .bp-inline-detail-actions__collapse {
    display: flex;
    width: 100% !important;
    justify-content: center;
  }
}
