.es-req-public {
  --req-red: #A51A3C;
  --req-green: #008d45;
  --req-orange: #f6a303;
  --req-ink: #33333a;
  --req-muted: #737782;
  --req-line: #e6e8ec;
  --req-soft: #f6f7f8;
  --req-panel: rgba(255, 255, 255, .82);
  color: var(--req-ink);
  font-family: "Lato", sans-serif;
  margin: 0;
  padding: clamp(28px, 4vw, 58px);
  position: relative;
  background: #E0E0E0;
}

.es-req-public__toolbar {
  display: flex;
  align-items: center;
  min-height: 50px;
  background: #FFFFFF;
  overflow: hidden;
  border: none;
  border-radius: 18.9px;
  margin: 0 auto 18px;
  padding: 21px;
  gap: 5px
}

.es-req-public__search-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.es-req-public__search {
  flex: 1;
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(51, 51, 58, .07);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 62px;
  overflow: hidden;
}

.es-req-public__search input {
  border: 0;
  color: var(--req-ink);
  font-size: 15px;
  min-width: 0;
  padding: 0 18px;
  background: #F3F4F7;
}

.es-req-public__search input::placeholder {
  color: #828282;
  font-style: italic;
}

.es-req-public__search-button,
.es-req-zip {
  align-items: center;
  background: #D2A437;
  border-radius: 10.47px;
  color: #fff !important;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 65.95px;
  min-height: 65.95px;
  height: 65.95px;
  padding: 0 18px;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.es-req-public__search-button:hover,
.es-req-zip:hover {
  background: rgb(115, 18, 42);
  color: #fff !important;
  transform: translateY(-1px);
}

.es-req-public__button-icon {
  display: inline-block;
  flex: 0 0 auto;
  height: 15px;
  position: relative;
  width: 15px;
}

.es-req-public__button-icon--search::before {
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 20px;
  left: -5px;
  position: absolute;
  top: -5px;
  width: 20px;
}

.es-req-public__button-icon--search::after {
  background: currentColor;
  border-radius: 2px;
  content: "";
  height: 12px;
  left: 11px;
  position: absolute;
  top: 11px;
  transform: rotate(-45deg);
  transform-origin: top center;
  width: 2px;
}

.es-req-public__actions {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
}

.es-req-public__meta,
.es-req-public__pagination {
  margin-left: auto;
  margin-right: auto;
}

.es-req-public__meta {
  color: #5c6572;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
  min-height: 18px;
}

.es-req-public__meta span {
  background: rgba(255, 255, 255, .64);
  border: 1px solid rgba(51, 51, 58, .08);
  border-radius: 999px;
  display: inline-flex;
  padding: 7px 12px;
}

.es-req-public__list {
  display: grid;
  gap: 16px;
}

.es-req-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(51, 51, 58, .08);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(36, 40, 48, .09);
  overflow: hidden;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.es-req-card:hover {
  border-color: rgba(200, 0, 69, .18);
  box-shadow: 0 22px 52px rgba(36, 40, 48, .12);
  transform: translateY(-2px);
}

.es-req-card::before {
  background: linear-gradient(180deg, var(--req-red), var(--req-orange));
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 4px;
}

.es-req-card__summary {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 18px 20px 18px 24px;
}

.es-req-card__metric {
  border-right: 1px solid var(--req-line);
  min-width: 0;
  padding: 4px 18px;
  text-align: center;
}

.es-req-card__metric:last-child {
  border-right: 0;
}

.es-req-card__metric span {
  color: var(--req-red);
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.es-req-card__metric strong {
  color: var(--req-ink);
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.es-req-card__metric--status strong.is-open {
  color: var(--req-green);
}

.es-req-card__metric--status strong.is-closed {
  color: #9a1c32;
}

.es-req-card__toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--req-line);
  border-radius: 999px;
  color: var(--req-ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  min-height: 34px;
  padding: 0 13px;
}

.es-req-card__toggle i {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: block;
  height: 7px;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
  width: 7px;
}

.es-req-card__toggle[aria-expanded="true"] i {
  transform: rotate(225deg) translateY(-1px);
}

.es-req-card__details {
  border-top: 1px solid var(--req-line);
  padding: 24px;
}

.es-req-card__detail-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
}

.es-req-card__details h3 {
  color: var(--req-red);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 8px;
}

.es-req-card__details p,
.es-req-card__requirements {
  color: #555963;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.es-req-documents {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.es-req-document {
  align-items: center;
  background: var(--req-soft);
  border: 1px solid var(--req-line);
  border-radius: 8px;
  color: var(--req-ink) !important;
  display: grid;
  gap: 12px;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  min-height: 58px;
  padding: 10px 12px;
  text-decoration: none !important;
}

.es-req-document:hover {
  border-color: rgba(200, 0, 69, .35);
  transform: translateY(-1px);
}

.es-req-document img {
  display: block;
  max-height: 30px;
  width: 100%;
}

.es-req-document span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.es-req-zip {
  border-radius: 999px;
  margin-top: 16px;
}

.es-req-empty {
  align-items: center;
  background: rgba(255, 255, 255, .86);
  border: 1px dashed rgba(51, 51, 58, .22);
  border-radius: 27.65px;
  color: var(--req-muted);
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 132px;
  padding: 30px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.es-req-empty span {
  align-items: center;
  background: var(--req-orange);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.es-req-pager {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.es-req-pager button {
  background: #fff;
  border: 1px solid var(--req-line);
  border-radius: 999px;
  color: var(--req-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  padding: 0 16px;
}

.es-req-pager button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

/* Single-page pager (when we have results but only 1 page) looks clean */
.es-req-pager span {
  padding: 0 8px;
}

/* Empty state indicator in the pagination zone (so the component is always visible) */
.es-req-pager--empty {
  color: var(--req-muted);
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .7;
}

.es-req-pager span {
  color: var(--req-muted);
  font-size: 13px;
  font-weight: 800;
}

.es-req-public.is-loading {
  opacity: .72;
  pointer-events: none;
}

@media (min-width: 900px) {
  .es-req-public__toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 980px) {
  .es-req-card__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 14px;
  }

  .es-req-card__metric {
    border-right: 0;
    text-align: left;
  }

  .es-req-card__detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .es-req-public {
    padding: 20px 14px;
  }

  .es-req-public__search {
    grid-template-columns: 1fr;
  }

  .es-req-public__search input {
    min-height: 52px;
  }

  .es-req-public__actions {
    width: 100%;
  }

  .es-req-card__summary {
    grid-template-columns: 1fr;
    padding: 18px 18px 18px 22px;
  }

  .es-req-card__metric {
    border-bottom: 1px solid var(--req-line);
    padding: 12px 4px;
  }

  .es-req-card__metric:last-child {
    border-bottom: 0;
  }

  .es-req-card__details {
    padding: 20px;
  }
}


/* Language toggle buttons in requisitions toolbar - match header switch logic + nice active states */
.req-lang-btn-es,
.req-lang-btn-en {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 65.95px;
  padding: 0 18px;
  border-radius: 10.47px;
  border: 1px solid #A51A3C;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
  white-space: nowrap;
}

/* Non-active = outline style (white bg) */
.req-lang-btn-es:not(.active),
.req-lang-btn-en:not(.active) {
  background: #fff;
  color: #A51A3C;
}

/* Active (current language) or hover = filled maroon, like the header selection */
.req-lang-btn-es.active,
.req-lang-btn-en.active,
.req-lang-btn-es:hover,
.req-lang-btn-en:hover {
  background: #A51A3C;
  color: #fff;
  border-color: #A51A3C;
}

/* Slightly deeper on active click feel */
.req-lang-btn-es:active,
.req-lang-btn-en:active {
  background: rgb(115, 18, 42);
  transform: translateY(0);
}

.req-lang-btn-es img,
.req-lang-btn-en img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  object-fit: cover;
  display: inline-block;
}

/* Make sure flags look crisp */
.req-lang-btn-es img,
.req-lang-btn-en img {
  image-rendering: -webkit-optimize-contrast;
}

.req-download-btn {
  height: 65.95px;
  padding: 0 28px;
  border: none;
  border-radius: 10.47px;
  background: #A51A3C;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}

.req-download-btn:hover {
  transform: translateY(-1px);
  opacity: .9;
  background-color: rgb(115, 18, 42);
}

@media (max-width: 990px) {
  .es-req-public__toolbar {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .es-req-public__search-wrapper {
    width: 100%;
  }

  .es-req-public__actions {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }
}