.rate-hint{font-size:12px;color:#6e7e8d;min-height:17px}.rate-hint strong{color:#41606a}.tabs{display:flex;gap:6px;border-bottom:1px solid #e5ebee;margin-bottom:20px}.tab{padding:10px 13px;border:0;background:transparent;color:#6e7e8d;font:600 14px Inter,ui-sans-serif,sans-serif;cursor:pointer;border-bottom:2px solid transparent}.tab.active{color:#087c78;border-bottom-color:#087c78}

/* Modal Wide para Cadastro de Atos */
.modal.wide {
  width: min(840px, 94vw);
  max-height: min(90vh, 850px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 28px;
}
.modal.wide h2 {
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 12px;
}
.modal.wide .modal-fields {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal.wide .primary {
  flex-shrink: 0;
  margin-top: 14px;
}

/* Checkbox Groups with Search Filter and Badges */
.checkbox-group-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.checkbox-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.checkbox-group-header label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.checkbox-group-header .badge {
  background: #e6f4f0;
  color: #087c78;
  border: 1px solid #b2ded7;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
}
.multi-group {
  border: 1px solid #ccd8dc;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
  background: #fafbfc;
}
.multi-group label {
  font-weight: 400;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.35;
  font-size: 12.5px;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.multi-group label:hover {
  background: #eef5f7;
}
.multi-group label.is-checked {
  background: #e6f4f0;
  font-weight: 500;
  color: #087c78;
}
.multi-group input {
  flex: 0 0 auto;
  margin-top: 2px;
  width: auto;
}

/* Database Sync Badge & Toasts */
.db-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f0f7f6;
  border: 1px solid #cfdedc;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #1e524e;
  user-select: none;
  transition: all 0.2s ease;
}
.db-sync-badge.saving {
  background: #fff8eb;
  border-color: #fae0b0;
  color: #8c5b08;
}
.db-sync-badge.error {
  background: #fdf2f2;
  border-color: #f5c6c6;
  color: #a82a2a;
}
.db-sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1cb57b;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(28, 181, 123, 0.25);
  transition: background-color 0.2s ease;
}
.db-sync-badge.saving .db-sync-dot {
  background: #e59b15;
  box-shadow: 0 0 0 2px rgba(229, 155, 21, 0.25);
  animation: syncPulse 1s infinite alternate;
}
.db-sync-badge.error .db-sync-dot {
  background: #e03838;
  box-shadow: 0 0 0 2px rgba(224, 56, 56, 0.25);
}
@keyframes syncPulse {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast-msg {
  pointer-events: auto;
  background: #102b38;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastFadeIn 0.25s ease-out;
  border-left: 4px solid #1cb57b;
  max-width: 380px;
}
.toast-msg.error {
  border-left-color: #e03838;
}
@keyframes toastFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

