#cr-resultado {
  margin-top: 16px;
}

.cr-alert {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  margin-bottom: 12px;
  font-size: 16px;
}
.cr-alert--error {
  background: #fff1f2;
  border-color: #fecdd3;
}

.cr-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
  font-size: 14px;
  opacity: 0.9;
}

.cr-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .cr-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cr-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.cr-card--highlight {
  border-width: 2px;
}

.cr-card--highlight,
.cr-card--fgts {
  grid-column: 1 / -1;
}

.cr-card__title {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 20px;
}

.cr-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  font-size: 16px;
}
.cr-row:last-child {
  border-bottom: 0;
}
.cr-row--big {
  font-size: 16px;
  padding-top: 12px;
}

.cr-card--full {
  grid-column: 1 / -1;
}

.cr-row__title {
  opacity: 0.9;
}
.cr-row__value {
  font-variant-numeric: tabular-nums;
}
.cr-row__value.is-neg {
  color: #b42318;
}

.cr-loading {
  padding: 14px;
  border-radius: 10px;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
}

.cr-debug {
  margin-top: 12px;
}
.cr-debug pre {
  white-space: pre-wrap;
}

/* --- FGTS master / opções (UI) --- */
#cr-fgts-opcoes {
  margin-top: 8px;
}
#cr-fgts-opcoes label {
  display: block;
  margin: 6px 0;
}

/* --- Form (UI) --- */
#cr-app {
  max-width: 820px;
}

#cr-form {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

#cr-form label {
  display: block;
  font-weight: 700;
  margin: 20px 0 6px;
  font-size: 18px;
}

#cr-form .cr-subcheck {
  font-weight: 400;
  font-size: 14px;
  opacity: 0.9;
  display: block;
  margin-top: 4px;
}

.cr-actions {
  margin-top: 14px;
}

.cr-actions button {
  width: 100%;
  margin-top: 12px;
  padding: 16px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
}

#cr-form input[type="text"],
#cr-form input[type="number"],
#cr-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  outline: none;
}

#cr-form input[type="text"]:focus,
#cr-form input[type="number"]:focus,
#cr-form select:focus {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}

#cr-form button {
  margin-top: 12px;
  padding: 16px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
}

#cr-form button:hover {
  filter: brightness(1.08);
}

#cr-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#cr-form fieldset.cr-verbas {
  margin-top: 26px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #f9fafb;
}

#cr-form fieldset.cr-verbas legend {
  padding: 0 8px;
  font-weight: 700;
  font-size: 20px;
}

/* Checkbox rows */
#cr-form fieldset.cr-verbas > label,
#cr-fgts-opcoes label,
#cr-periodos-ferias label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin: 8px 0;
  font-size: 16px;
}

#cr-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* Sub-options blocks */
#cr-fgts-opcoes,
#cr-periodos-ferias {
  padding: 8px 10px;
  border-left: 3px solid #e5e7eb;
  border-radius: 10px;
  background: rgba(249, 250, 251, 0.6);
}

/* Make the action buttons align nicely */
#cr-proximo,
#cr-calcular {
  width: 100%;
}

.cr-seo p {
  font-size: 16px;
}

.cr-seo h2 {
  font-size: 24px;
  margin-top: 20px;
  font-weight: 700;
}

.cr-seo h3 {
  font-size: 20px;
  margin-top: 20px;
  font-weight: 700;
}

.cr-seo h4 {
  font-size: 18px;
  margin-top: 20px;
  font-weight: 700;
}

@media (min-width: 860px) {
  /* On large screens, keep inputs comfortable */
  #cr-form {
    padding: 18px;
  }
}
