/* Laboratórios Acreditados — Portal PALC (Figma) */

:root {
  --palc-lab-bg: #ffffff;
  --palc-lab-text: #101828;
  --palc-lab-muted: #6a7282;
  --palc-lab-muted-2: #99a1af;
  --palc-lab-border: #e5e7eb;
  --palc-lab-border-soft: #f3f4f6;
  --palc-lab-row-border: #f9fafb;
  --palc-lab-head-bg: #f9fafb;
  --palc-lab-uf-bg: #f3f4f6;
  --palc-lab-uf-text: #4a5565;
  --palc-lab-blue: #284bd2;
  --palc-lab-blue-soft: rgba(40, 75, 210, 0.1);
  --palc-lab-blue-border: rgba(40, 75, 210, 0.2);
  --palc-lab-green-bg: #e8f7ee;
  --palc-lab-green: #1a8a40;
  --palc-lab-inscrito-bg: #fff9e6;
  --palc-lab-inscrito: #8a6c00;
  --palc-lab-processo-bg: #eef2ff;
  --palc-lab-processo: #284bd2;
  --palc-lab-sort-active: #d2af28;
  --palc-lab-sort-idle: #d1d5dc;
  --palc-lab-share-bg: #faf9f0;
  --palc-lab-linkedin: #0a66c2;
  --palc-lab-radius: 12px;
  --palc-lab-radius-sm: 8px;
  --palc-lab-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.08);
  --palc-lab-font: "Plus Jakarta Sans", "Arimo", system-ui, sans-serif;
  --palc-lab-mono: Consolas, "Courier New", monospace;
  --palc-lab-max: 1280px;
  --palc-lab-detail-max: 1024px;
}

.palc-lab-page,
.palc-lab-single,
.palc-lab-listing,
.palc-lab-detail {
  font-family: var(--palc-lab-font);
  color: var(--palc-lab-text);
  box-sizing: border-box;
}

.palc-lab-page *,
.palc-lab-single *,
.palc-lab-listing *,
.palc-lab-detail * {
  box-sizing: border-box;
}

.palc-lab-page {
  background: #fafafa;
  padding: 32px 24px 48px;
}

.palc-lab-page__inner {
  max-width: var(--palc-lab-max);
  margin: 0 auto;
}

.palc-lab-page__header {
  margin-bottom: 24px;
}

.palc-lab-page__title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 40px;
  color: var(--palc-lab-text);
}

.palc-lab-page__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--palc-lab-muted);
}

/* Filters */
.palc-lab-filters {
  background: #fff;
  border: 0.8px solid var(--palc-lab-border);
  border-radius: var(--palc-lab-radius);
  box-shadow: var(--palc-lab-shadow);
  padding: 20px;
}

.palc-lab-filters__row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.palc-lab-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: block;
}

.palc-lab-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  display: flex;
  overflow: hidden;
  pointer-events: none;
}

.palc-lab-search__icon img,
.palc-lab-search__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.palc-lab-search__input {
  width: 100%;
  height: 41.6px;
  border: 0.8px solid var(--palc-lab-border);
  border-radius: var(--palc-lab-radius-sm);
  padding: 10px 16px 10px 40px;
  font-size: 14px;
  font-family: "Arimo", var(--palc-lab-font);
  color: var(--palc-lab-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease;
}

.palc-lab-search__input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.palc-lab-search__input:focus {
  border-color: #c4c9d4;
}

.palc-lab-select-wrap {
  position: relative;
  flex: 0 0 162px;
}

.palc-lab-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 41.6px;
  border: 0.8px solid var(--palc-lab-border);
  border-radius: var(--palc-lab-radius-sm);
  padding: 0 36px 0 16px;
  font-size: 14px;
  font-family: var(--palc-lab-font);
  background: #fff;
  color: #000;
  cursor: pointer;
}

.palc-lab-select__chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  pointer-events: none;
  display: flex;
  overflow: hidden;
}

.palc-lab-select__chevron img,
.palc-lab-select__chevron svg {
  width: 100%;
  height: 100%;
  display: block;
}

.palc-lab-filters__tabs {
  margin-top: 16px;
}

.palc-lab-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.palc-lab-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30.925px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 0.8px solid var(--palc-lab-border);
  background: #fff;
  color: #4a5565;
  font-family: var(--palc-lab-font);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.palc-lab-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6a7282;
  font-size: 10px;
  font-weight: 700;
  line-height: 13.333px;
}

.palc-lab-tab.is-active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.palc-lab-tab.is-active .palc-lab-tab__count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.palc-lab-tab:hover:not(.is-active) {
  border-color: #cfd3da;
}

.palc-lab-summary-wrap {
  margin-top: 16px;
}

.palc-lab-summary {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--palc-lab-muted);
}

/* Table */
.palc-lab-table-wrap {
  margin-top: 16px;
  background: #fff;
  border: 0.8px solid var(--palc-lab-border-soft);
  border-radius: var(--palc-lab-radius);
  box-shadow: var(--palc-lab-shadow);
  overflow: hidden;
}

.palc-lab-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.palc-lab-table thead th {
  background: var(--palc-lab-head-bg);
  border-bottom: 0.8px solid var(--palc-lab-border-soft);
  padding: 13px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--palc-lab-muted);
  white-space: nowrap;
}

.palc-lab-table thead th:nth-child(1) { width: 42%; }
.palc-lab-table thead th:nth-child(2) { width: 18%; }
.palc-lab-table thead th:nth-child(3) { width: 10%; }
.palc-lab-table thead th:nth-child(4) { width: 16%; }
.palc-lab-table thead th:nth-child(5) { width: 14%; text-align: right; }

.palc-lab-sort {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.palc-lab-sort__icon {
  color: var(--palc-lab-sort-idle);
  font-weight: 700;
}

.palc-lab-sort__icon.is-active,
.palc-lab-sort.is-active .palc-lab-sort__icon {
  color: var(--palc-lab-sort-active);
}

.palc-lab-row td {
  padding: 16px 20px;
  border-bottom: 0.8px solid var(--palc-lab-row-border);
  vertical-align: middle;
}

.palc-lab-row:last-child td {
  border-bottom: 0;
}

.palc-lab-row__title,
.palc-lab-row__title a {
  font-family: "Arimo", var(--palc-lab-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--palc-lab-text);
  text-decoration: none;
}

.palc-lab-row__title a:hover {
  color: var(--palc-lab-blue);
}

.palc-lab-row__cnpj {
  font-family: var(--palc-lab-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--palc-lab-muted);
}

.palc-lab-row__action {
  text-align: right;
}

.palc-lab-details-link {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.palc-lab-details-link:hover {
  text-decoration: underline;
}

.palc-lab-details-link--disabled {
  color: #99a1af;
  font-weight: 600;
  cursor: default;
  text-decoration: none;
}

.palc-lab-row--empty td {
  padding: 32px 20px;
  text-align: center;
  color: var(--palc-lab-muted);
  font-size: 14px;
}

.palc-lab-uf {
  display: inline-flex;
  align-items: center;
  height: 19.7px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--palc-lab-uf-bg);
  color: var(--palc-lab-uf-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 15.7px;
}

.palc-lab-uf--lg {
  height: auto;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 16px;
  color: #364153;
}

.palc-lab-badge {
  display: inline-flex;
  align-items: center;
  height: 23.7px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 15.7px;
  white-space: nowrap;
}

.palc-lab-badge--acreditado {
  background: var(--palc-lab-green-bg);
  color: var(--palc-lab-green);
}

.palc-lab-badge--inscrito {
  background: var(--palc-lab-inscrito-bg);
  color: var(--palc-lab-inscrito);
}

.palc-lab-badge--em-processo {
  background: var(--palc-lab-processo-bg);
  color: var(--palc-lab-processo);
}

.palc-lab-pagination-wrap {
  margin-top: 20px;
}

.palc-lab-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.palc-lab-page-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.palc-lab-page-btn,
.palc-lab-page-num {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 0.8px solid var(--palc-lab-border);
  border-radius: var(--palc-lab-radius-sm);
  background: #fff;
  color: #364153;
  font-family: var(--palc-lab-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.palc-lab-page-num.is-active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.palc-lab-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.palc-lab-page-ellipsis {
  padding: 0 4px;
  color: var(--palc-lab-muted);
}

.palc-lab-footnote {
  margin: 24px 0 0;
  font-size: 12px;
  line-height: 17px;
  color: var(--palc-lab-muted-2);
}

.palc-lab-listing.is-loading .palc-lab-table-wrap {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* Detail */
.palc-lab-detail__header {
  background: #fff;
  border-bottom: 0.8px solid var(--palc-lab-border);
  padding: 24px 0;
}

.palc-lab-detail__header-inner,
.palc-lab-detail__body {
  max-width: var(--palc-lab-detail-max);
  margin: 0 auto;
  padding: 0 24px;
}

.palc-lab-back {
  display: inline-flex;
  align-items: center;
  height: 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--palc-lab-muted);
  text-decoration: none;
}

.palc-lab-back:hover {
  color: var(--palc-lab-text);
}

.palc-lab-detail__hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-top: 20px;
}

.palc-lab-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.palc-lab-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16.5px;
}

.palc-lab-chip--programa {
  background: var(--palc-lab-blue-soft);
  border: 0.8px solid var(--palc-lab-blue-border);
  color: var(--palc-lab-blue);
}

.palc-lab-detail__title {
  margin: 12px 0 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 41.25px;
  color: var(--palc-lab-text);
}

.palc-lab-detail__cnpj {
  margin: 4px 0 0;
  font-family: var(--palc-lab-mono);
  font-size: 14px;
  line-height: 20px;
  color: var(--palc-lab-muted-2);
}

.palc-lab-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.palc-lab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 10px 16px;
  border-radius: var(--palc-lab-radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.palc-lab-btn img,
.palc-lab-btn svg {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.palc-lab-btn--primary {
  background: #000;
  color: #fff;
  box-shadow: var(--palc-lab-shadow);
}

.palc-lab-btn--primary:hover {
  opacity: 0.9;
  color: #fff;
}

.palc-lab-btn--ghost {
  background: #fff;
  color: #364153;
  border: 0.8px solid var(--palc-lab-border);
}

.palc-lab-btn--ghost:hover {
  background: #f9fafb;
  color: #364153;
}

.palc-lab-detail__body {
  padding-top: 32px;
  padding-bottom: 48px;
}

.palc-lab-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.palc-lab-detail__main-col,
.palc-lab-detail__side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.palc-lab-card {
  background: #fff;
  border: 0.8px solid var(--palc-lab-border-soft);
  border-radius: var(--palc-lab-radius);
  box-shadow: var(--palc-lab-shadow);
  padding: 24px;
}

.palc-lab-card--side,
.palc-lab-card--share {
  padding: 20px;
}

.palc-lab-card--share {
  background: var(--palc-lab-share-bg);
  border-color: var(--palc-lab-border);
}

.palc-lab-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--palc-lab-text);
}

.palc-lab-card__title img,
.palc-lab-card__title svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

.palc-lab-card__title--plain {
  gap: 0;
}

.palc-lab-card__chips {
  margin-top: 16px;
}

.palc-lab-card__cta {
  margin-top: 16px;
}

.palc-lab-dl {
  margin: 16px 0 0;
}

.palc-lab-dl__row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
}

.palc-lab-dl__row:first-child {
  margin-top: 0;
}

.palc-lab-dl__row dt {
  flex: 0 0 96px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--palc-lab-muted-2);
}

.palc-lab-dl__row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--palc-lab-text);
}

.palc-lab-mono {
  font-family: var(--palc-lab-mono);
  font-weight: 400 !important;
}

.palc-lab-side-meta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.palc-lab-side-meta__label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: var(--palc-lab-muted-2);
}

.palc-lab-share__title {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: #000;
}

.palc-lab-share__actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.palc-lab-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--palc-lab-radius-sm);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-decoration: none;
}

.palc-lab-share-btn img,
.palc-lab-share-btn svg {
  width: 12px;
  height: 12px;
  display: block;
  overflow: hidden;
}

.palc-lab-share-btn--linkedin {
  background: var(--palc-lab-linkedin);
}

.palc-lab-share-btn--instagram {
  background: linear-gradient(90deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.palc-lab-share-btn:hover {
  opacity: 0.92;
  color: #fff;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .palc-lab-detail__grid {
    grid-template-columns: 1fr;
  }

  .palc-lab-detail__hero {
    flex-direction: column;
  }

  .palc-lab-filters__row {
    flex-direction: column;
  }

  .palc-lab-select-wrap {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .palc-lab-page {
    padding: 24px 16px 40px;
  }

  .palc-lab-page__title {
    font-size: 26px;
    line-height: 34px;
  }

  .palc-lab-detail__title {
    font-size: 24px;
    line-height: 32px;
  }

  .palc-lab-table thead {
    display: none;
  }

  .palc-lab-table,
  .palc-lab-table tbody,
  .palc-lab-row {
    display: block;
    width: 100%;
  }

  .palc-lab-row {
    padding: 16px;
    border-bottom: 0.8px solid var(--palc-lab-row-border);
  }

  .palc-lab-row td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 6px 0;
    border: 0;
    text-align: right;
  }

  .palc-lab-row td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--palc-lab-muted);
    text-align: left;
  }

  .palc-lab-row__title {
    text-align: left;
    flex-direction: column;
    gap: 4px;
  }

  .palc-lab-row__title::before {
    display: none;
  }

  .palc-lab-row__action {
    justify-content: flex-end;
  }

  .palc-lab-row__action::before {
    display: none;
  }

  .palc-lab-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .palc-lab-tab {
    flex: 0 0 auto;
  }
}
