:root {
  --fba-green: #0c5735;
  --fba-navy: #122c4b;
  --fba-navy-dark: #09162b;
  --fba-gold: #e5a505;
  --fba-cream: #ebe2d5;
  --fba-cream-light: #f8f3ea;
  --fba-terracotta: #c75a3b;
  --fba-text: #334d54;
  --fba-border: rgba(18, 44, 75, 0.16);
  --fba-shadow: 0 14px 40px rgba(9, 22, 43, 0.08);
}

.fba-shell,
.fba-dashboard,
.fba-directory,
.fba-opportunities {
  color: var(--fba-text);
  font-family: inherit;
}

.fba-shell,
.fba-dashboard-main,
.fba-directory,
.fba-opportunities {
  box-sizing: border-box;
}

.fba-kicker {
  color: var(--fba-green);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.fba-auth {
  background: var(--fba-cream-light);
  border: 1px solid var(--fba-border);
  border-radius: 16px;
  box-shadow: var(--fba-shadow);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(230px, 0.75fr) minmax(320px, 1.25fr);
  margin: 40px auto;
  max-width: 1040px;
  overflow: hidden;
  padding: 0;
}

.fba-auth .fba-intro {
  background: var(--fba-navy);
  color: var(--fba-cream-light);
  padding: 52px 42px;
}

.fba-auth .fba-intro h2 {
  color: var(--fba-cream-light);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.fba-auth .fba-intro .fba-kicker {
  color: var(--fba-gold);
}

.fba-auth > .fba-form,
.fba-auth > form,
.fba-auth > p {
  align-self: center;
  margin: 0;
  padding: 40px 40px 40px 8px;
}

/* Orientacao exibida logo abaixo do campo Usuario no formulario de acesso. */
.fba-auth .login-username::after {
  color: #687a80;
  content: "Use apenas letras minúsculas e sem espaços.";
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 6px;
}

.fba-form label,
.fba-apply-box label,
.fba-filter label {
  color: var(--fba-navy);
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 700;
  gap: 7px;
}

.fba-form input[type="text"],
.fba-form input[type="email"],
.fba-form input[type="password"],
.fba-form input[type="number"],
.fba-form input[type="date"],
.fba-form input[type="time"],
.fba-form select,
.fba-form textarea,
.fba-apply-box select,
.fba-filter select {
  background: #fff;
  border: 1px solid var(--fba-border);
  border-radius: 8px;
  box-sizing: border-box;
  color: var(--fba-navy-dark);
  font: inherit;
  font-weight: 400;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.fba-form textarea {
  min-height: 120px;
  resize: vertical;
}

.fba-form input:focus,
.fba-form select:focus,
.fba-form textarea:focus,
.fba-apply-box select:focus,
.fba-filter select:focus {
  border-color: var(--fba-green);
  box-shadow: 0 0 0 3px rgba(12, 87, 53, 0.1);
  outline: none;
}

.fba-form .fba-is-invalid,
.fba-apply-box .fba-is-invalid,
.fba-auth .fba-is-invalid {
  background: #fff8f6;
  border-color: #a93f2b;
  box-shadow: 0 0 0 3px rgba(169, 63, 43, 0.12);
}

.fba-field-error {
  color: #8f2f1f;
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 2px;
}

.fba-check + .fba-field-error {
  margin: -14px 0 18px;
}

.fba-validation-summary {
  background: #fff8f6;
  border: 1px solid rgba(169, 63, 43, 0.35);
  border-left: 5px solid #a93f2b;
  border-radius: 8px;
  color: #702617;
  margin: 0 0 22px;
  padding: 14px 18px;
}

.fba-validation-summary:focus {
  box-shadow: 0 0 0 3px rgba(169, 63, 43, 0.14);
  outline: none;
}

.fba-validation-summary strong {
  display: block;
  margin-bottom: 7px;
}

.fba-validation-summary ul,
.fba-server-validation ul {
  margin: 0;
  padding-left: 20px;
}

.fba-validation-summary a {
  color: #702617;
  font-weight: 700;
  text-decoration: underline;
}

.fba-apply-box .fba-validation-summary {
  font-size: 13px;
  padding: 11px 13px;
}

.fba-form small {
  color: #6f807c;
  font-size: 12px;
  font-weight: 400;
}

.fba-password-field {
  display: block;
  position: relative;
  width: 100%;
}

.fba-password-field input {
  box-sizing: border-box;
  padding-right: 94px !important;
  width: 100%;
}

.fba-password-toggle {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--fba-green) !important;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  min-height: 38px;
  padding: 0 12px !important;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.fba-password-toggle:focus {
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(12, 87, 53, 0.18) !important;
  outline: none;
}

.fba-private-document,
.fba-uploaded-file {
  background: rgba(12, 87, 53, 0.07);
  border-left: 3px solid var(--fba-green);
  color: var(--fba-navy-dark);
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 4px;
  padding: 9px 11px;
}

.fba-private-document a,
.fba-uploaded-file a {
  color: var(--fba-green);
  font-weight: 800;
}

.fba-grid {
  display: grid;
  gap: 20px;
}

.fba-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fba-form > label,
.fba-form > fieldset,
.fba-form > .fba-grid {
  margin-bottom: 22px;
}

.fba-form fieldset {
  border: 1px solid var(--fba-border);
  border-radius: 10px;
  margin: 0;
  padding: 16px;
}

.fba-form legend {
  color: var(--fba-navy);
  font-weight: 800;
  padding: 0 7px;
}

.fba-check,
.fba-inline-check {
  align-items: center !important;
  display: flex !important;
  flex-direction: row !important;
  font-weight: 400 !important;
  gap: 8px !important;
}

.fba-inline-check {
  font-size: 12px !important;
}

.fba-check-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fba-check-grid label {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  font-weight: 400;
  gap: 7px;
}

.fba-button,
a.fba-button,
button.fba-button {
  align-items: center;
  background: var(--fba-green);
  border: 1px solid var(--fba-green);
  border-radius: 8px;
  box-shadow: none;
  color: var(--fba-cream-light) !important;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 11px 20px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fba-button:hover,
a.fba-button:hover,
button.fba-button:hover {
  background: var(--fba-gold);
  border-color: var(--fba-gold);
  color: var(--fba-navy-dark) !important;
  transform: translateY(-1px);
}

.fba-form-actions .fba-button.fba-button-secondary,
.fba-form-actions button.fba-button.fba-button-secondary {
  background: #fff !important;
  border-color: var(--fba-border) !important;
  color: var(--fba-navy-dark) !important;
}

.fba-form-actions .fba-button.fba-button-secondary:hover,
.fba-form-actions button.fba-button.fba-button-secondary:hover {
  background: #f3f4f5 !important;
  border-color: var(--fba-green) !important;
  color: var(--fba-green) !important;
}

.fba-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}

.fba-login-link {
  margin: 20px 0 0;
}

.fba-dashboard {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--fba-border);
  border-radius: 16px;
  box-shadow: var(--fba-shadow);
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  margin: 40px auto;
  max-width: 1240px;
  min-height: 620px;
  overflow: hidden;
}

.fba-dashboard-nav {
  background: var(--fba-navy-dark);
  display: flex;
  flex-direction: column;
  padding: 22px 0;
}

.fba-user-card {
  border-bottom: 1px solid rgba(248, 243, 234, 0.12);
  color: var(--fba-cream-light);
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  padding: 8px 24px 24px;
}

.fba-user-card span {
  font-size: 12px;
  opacity: 0.7;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fba-dashboard-nav > a {
  align-items: center;
  border-left: 4px solid transparent;
  color: rgba(248, 243, 234, 0.78);
  display: flex;
  gap: 11px;
  padding: 13px 22px;
  text-decoration: none;
}

.fba-dashboard-nav > a:hover,
.fba-dashboard-nav > a.is-active {
  background: rgba(229, 165, 5, 0.1);
  border-left-color: var(--fba-gold);
  color: var(--fba-gold);
}

.fba-dashboard-main {
  min-width: 0;
  padding: 36px;
}

.fba-panel-header {
  align-items: center;
  border-bottom: 1px solid var(--fba-border);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 22px;
}

.fba-panel-header h2,
.fba-directory-header h2 {
  color: var(--fba-navy);
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.1;
  margin: 0;
}

.fba-stat-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fba-stat {
  background: var(--fba-cream-light);
  border: 1px solid var(--fba-border);
  border-radius: 12px;
  padding: 22px;
}

.fba-stat strong {
  color: var(--fba-green);
  display: block;
  font-size: 36px;
  line-height: 1;
}

.fba-stat span {
  display: block;
  margin-top: 8px;
}

.fba-next-steps,
.fba-empty {
  background: var(--fba-cream-light);
  border: 1px dashed rgba(12, 87, 53, 0.35);
  border-radius: 12px;
  margin-top: 26px;
  padding: 28px;
}

.fba-table-wrap {
  overflow-x: auto;
}

.fba-table {
  border-collapse: collapse;
  width: 100%;
}

.fba-table th,
.fba-table td {
  border-bottom: 1px solid var(--fba-border);
  padding: 15px 12px;
  text-align: left;
  vertical-align: middle;
}

.fba-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fba-inline-action {
  display: inline;
  margin: 0;
}

.fba-link-button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  font: inherit;
  min-height: 0 !important;
  padding: 0 !important;
  text-decoration: underline;
}

.fba-link-danger {
  color: #963d27 !important;
}

.fba-link-danger:hover,
.fba-link-danger:focus {
  color: #6f2b1c !important;
}

.fba-table th {
  color: var(--fba-navy);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fba-status {
  background: var(--fba-cream);
  border-radius: 999px;
  color: var(--fba-navy);
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 7px 10px;
  white-space: nowrap;
}

.fba-status-publish,
.fba-status-open,
.fba-status-selected,
.fba-status-contracted {
  background: rgba(12, 87, 53, 0.12);
  color: var(--fba-green);
}

.fba-status-pending,
.fba-status-submitted,
.fba-status-received,
.fba-status-in_review,
.fba-status-preselected {
  background: rgba(229, 165, 5, 0.16);
  color: #7b5700;
}

.fba-status-rejected,
.fba-status-closed {
  background: rgba(199, 90, 59, 0.13);
  color: #963d27;
}

.fba-notice {
  border-left: 5px solid var(--fba-navy);
  border-radius: 6px;
  margin: 18px auto;
  max-width: 1180px;
  padding: 14px 18px;
}

.fba-notice-success {
  background: rgba(12, 87, 53, 0.1);
  border-color: var(--fba-green);
}

.fba-notice-warning {
  background: rgba(229, 165, 5, 0.14);
  border-color: var(--fba-gold);
}

.fba-notice-error {
  background: rgba(199, 90, 59, 0.12);
  border-color: var(--fba-terracotta);
}

.fba-directory,
.fba-opportunities {
  margin: 50px auto;
  max-width: 1240px;
}

.fba-directory-header {
  margin-bottom: 28px;
  max-width: 760px;
}

.fba-filter {
  align-items: end;
  background: var(--fba-cream-light);
  border: 1px solid var(--fba-border);
  border-radius: 12px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  margin-bottom: 30px;
  padding: 18px;
}

.fba-card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fba-card {
  background: #fff;
  border: 1px solid var(--fba-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(9, 22, 43, 0.05);
  overflow: hidden;
}

.fba-card-image {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: var(--fba-cream);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.fba-card-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

.fba-card:hover .fba-card-image img {
  transform: scale(1.035);
}

.fba-card-image .dashicons {
  color: var(--fba-green);
  font-size: 52px;
  height: 52px;
  width: 52px;
}

.fba-card-body {
  padding: 22px;
}

.fba-card-body h3 {
  color: var(--fba-navy);
  font-size: 21px;
  margin: 6px 0 10px;
}

.fba-card-terms {
  color: var(--fba-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fba-text-link {
  color: var(--fba-green);
  font-weight: 800;
  text-decoration: none;
}

.fba-text-link:hover {
  color: var(--fba-gold);
}

.fba-opportunity-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--fba-border);
  border-radius: 12px;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  margin-bottom: 20px;
  padding: 26px;
}

.fba-opportunity-card h3 {
  color: var(--fba-navy);
  font-size: 24px;
  margin: 12px 0 8px;
}

.fba-apply-box {
  background: var(--fba-cream-light);
  border-radius: 10px;
  padding: 18px;
}

.fba-apply-box form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.fba-public-profile {
  border-top: 1px solid var(--fba-border);
  margin-top: 32px;
  padding-top: 26px;
}

.fba-profile-meta {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fba-profile-meta > div {
  background: var(--fba-cream-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.fba-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.fba-profile-links a {
  border: 1px solid var(--fba-green);
  border-radius: 999px;
  color: var(--fba-green);
  font-weight: 700;
  padding: 8px 13px;
  text-decoration: none;
}

.fba-contact-card {
  background: var(--fba-navy);
  border-radius: 10px;
  color: var(--fba-cream-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 22px;
  padding: 22px;
}

.fba-contact-card h3,
.fba-contact-card a {
  color: var(--fba-cream-light);
}

.fba-directed-section {
  background: #f4f8f5;
  border: 1px solid #bed7c7;
  border-left: 5px solid var(--fba-green);
  border-radius: 10px;
  margin-bottom: 28px;
  padding: 22px;
}

.fba-directed-section .fba-panel-header {
  margin-bottom: 16px;
}

.fba-opportunity-directed {
  border-color: #8eb79d;
}

.fba-status-directed {
  background: #e0efe5;
  color: #075b32;
}

.fba-public-opportunities-heading {
  margin-top: 24px;
}

.fba-opportunity-application-status {
  background: #f4f7f5;
  border-left: 3px solid var(--fba-green);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px;
}

body.fba-proposal-screen .el-share-social,
body.fba-proposal-screen .share-social,
body.fba-proposal-screen .share_social,
body.fba-proposal-screen .ova-share,
body.fba-proposal-screen .ova_social,
body.fba-proposal-screen .event-share,
body.fba-proposal-screen .event_share,
body.fba-proposal-screen .post-share,
body.fba-proposal-screen .social-share,
body.fba-proposal-screen main [class*="share"],
body.fba-proposal-screen main [id*="share"],
body.fba-proposal-screen main [class*="share-social"],
body.fba-proposal-screen main [class*="share_social"],
body.fba-proposal-screen main [class*="social-share"],
body.fba-proposal-screen main [class*="social_share"] {
  display: none !important;
}

.fba-proposal-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fba-inline-action {
  display: inline-flex;
  margin: 0;
}

.fba-inline-action .fba-button {
  margin: 0;
  padding: 7px 12px;
}

@media (max-width: 960px) {
  .fba-auth,
  .fba-dashboard,
  .fba-opportunity-card {
    grid-template-columns: 1fr;
  }

  .fba-auth > .fba-form,
  .fba-auth > form,
  .fba-auth > p {
    padding: 0 28px 32px;
  }

  .fba-dashboard-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fba-user-card {
    grid-column: 1 / -1;
  }

  .fba-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .fba-grid-2,
  .fba-stat-grid,
  .fba-card-grid,
  .fba-filter,
  .fba-profile-meta {
    grid-template-columns: 1fr;
  }

  .fba-dashboard-nav {
    grid-template-columns: 1fr 1fr;
  }

  .fba-dashboard-nav > a {
    border-bottom: 1px solid rgba(248, 243, 234, 0.08);
    border-left: 0;
    font-size: 12px;
    padding: 11px 13px;
  }

  .fba-dashboard-nav > a.is-active {
    border-bottom-color: var(--fba-gold);
  }

  .fba-dashboard-main {
    padding: 24px 18px;
  }

  .fba-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fba-check-grid {
    grid-template-columns: 1fr;
  }

}
