/**
 * @file
 * BOICAC listing page styles.
 * Figma node 22889:184110.
 */

.boicac-shell {
  max-width: 1280px;
  margin: 0 auto;
}

.boicac-hero {
  padding: 64px 128px 24px;
  background: #fff;
}

.boicac-hero h1 {
  margin: 16px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  color: #0a0a0a;
}

.verificacion-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: #525252;
}

.verificacion-breadcrumb a {
  color: #525252;
  text-decoration: none;
}

.verificacion-breadcrumb .breadcrumb-current {
  color: #0a0a0a;
  font-weight: 500;
}

.breadcrumb-separator {
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.boicac-filters-section {
  padding: 0 128px 24px;
  background: #fff;
}

.boicac-filters-row {
  display: grid;
  grid-template-columns: 344px 344px 344px auto auto;
  gap: 8px;
  align-items: end;
}

.boicac-inline-field {
  min-width: 0;
}

.filter-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-search-wrap svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #525252;
}

.filter-search-input,
.filter-select {
  width: 100%;
  height: 58px;
  padding: 0 14px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  color: #0a0a0a;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  outline: none;
}

.filter-search-input {
  padding-left: 40px;
}

.filter-select {
  padding-right: 38px;
  appearance: none;
  cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
}

.filter-search-input:focus,
.filter-select:focus {
  border-color: #b91c1c;
}

.filter-btn-submit,
.filter-btn-clear,
.btn-view-toggle,
.select-sort {
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.boicac-inline-submit {
  width: 79px;
  align-self: end;
}

.filter-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #b91c1c;
  color: #fafafa;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.boicac-inline-clear {
  width: 148px;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0a0a0a;
  border: 1px solid #e5e5e5;
  text-decoration: none;
}

.boicac-toolbar-section {
  padding: 0 128px 0;
  background: #fff;
}

.boicac-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 52px;
}

.boicac-toolbar__spacer {
  flex: 1;
}

.boicac-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-view-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  background: #fff;
  color: #0a0a0a;
  border: 1px solid #e5e5e5;
  cursor: pointer;
}

.btn-view-toggle svg {
  width: 16px;
  height: 16px;
}

.select-sort {
  padding: 0 34px 0 12px;
  border: 1px solid #e5e5e5;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 10px center / 14px no-repeat;
  appearance: none;
  cursor: pointer;
}

.boicac-separator {
  margin: 16px 0 0;
  border: 0;
  border-top: 1px solid #e5e5e5;
}

.boicac-listing-section {
  padding: 20px 128px 64px;
  background: #fff;
}

.boicac-table-wrapper {
  min-width: 0;
}

.boicac-table-wrapper .views-exposed-form {
  display: none;
}

.boicac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.boicac-table thead th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #0a0a0a;
  border-bottom: 1px solid #e5e5e5;
}

.boicac-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #0a0a0a;
  vertical-align: middle;
}

.boicac-table tbody tr:hover td {
  background: #fafafa;
}

.boicac-table tbody td:first-child img {
  width: 72px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.contabilidad-cards-mode .boicac-card-grid {
  display: grid;
}

.contabilidad-cards-mode .boicac-table-fallback,
.contabilidad-cards-mode table {
  display: none;
}

.boicac-table-mode .boicac-card-grid {
  display: none;
}

/* List / single-column mode for NIIF, BOICAC, Estudios listings */
.is-list-view .boicac-card-grid {
  grid-template-columns: 1fr !important;
}

.is-list-view .boicac-card-grid article {
  flex-direction: row !important;
}

.is-list-view .boicac-card-grid article > div:first-child {
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  flex-basis: 100px !important;
}

.boicac-table-mode .boicac-table-fallback {
  display: table;
}

.boicac-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.boicac-card {
  display: flex;
  min-height: 204px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
}

.boicac-card-cover {
  width: 132.5px;
  flex: 0 0 132.5px;
  border-right: 1px solid #e5e5e5;
  background: #f8fafc;
}

.boicac-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.boicac-card-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #475569;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.boicac-card-body {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.boicac-card-number {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.boicac-card-title {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #0a0a0a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.boicac-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.boicac-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.boicac-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.boicac-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 109px;
  padding: 0 16px;
  background: #b91c1c;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  height: 36px;
}

.boicac-table-wrapper .pager {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.boicac-table-wrapper .pager__items {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.boicac-table-wrapper .pager__item {
  margin: 0;
}

.boicac-table-wrapper .pager__item > a,
.boicac-table-wrapper .pager__item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  color: #0a0a0a;
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  border: 1px solid transparent;
}

.boicac-table-wrapper .pager__item:not(.is-active) > a:hover {
  background: #f8fafc;
}

.boicac-table-wrapper .pager__item.is-active > a,
.boicac-table-wrapper .pager__item.is-active > span {
  background: #f1f5f9;
  color: #dc2626;
}

.boicac-table-wrapper .pager__item--previous > a,
.boicac-table-wrapper .pager__item--next > a {
  background: #e2ebf4;
  min-width: 120px;
  padding: 0 18px;
}

.boicac-table-wrapper .pager__item--first,
.boicac-table-wrapper .pager__item--last {
  display: none;
}

.boicac-empty {
  padding: 40px 0;
  color: #525252;
}

@media (max-width: 1300px) {
  .boicac-hero,
  .boicac-filters-section,
  .boicac-toolbar-section,
  .boicac-listing-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .boicac-filters-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .boicac-card-grid {
    grid-template-columns: 1fr;
  }

  .boicac-filters-row {
    grid-template-columns: 1fr;
  }

  .boicac-card {
    min-height: 0;
  }

  .boicac-card-cover {
    width: 110px;
    flex-basis: 110px;
  }
}

.otras-publicaciones-section {
  padding: 16px 128px 64px;
  background: #fff;
}

.otras-publicaciones-layout {
  display: grid;
  grid-template-columns: 305px minmax(0, 955px);
  gap: 20px;
  align-items: start;
}

.otras-publicaciones-sidebar {
  position: sticky;
  top: 24px;
}

.otras-publicaciones-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.otras-publicaciones-filters__title {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #0a0a0a;
}

.otras-publicaciones-field {
  min-width: 0;
}

.otras-publicaciones-btn-search,
.otras-publicaciones-btn-clear {
  width: 100%;
}

.otras-publicaciones-btn-clear {
  margin-top: 8px;
}

.otras-publicaciones-results {
  min-width: 0;
}

.otras-publicaciones-total {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 20px;
  color: #525252;
}

.otras-publicaciones-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.otras-publicaciones-card {
  width: 100%;
}

.otras-publicaciones-card__cover {
  width: 132.5px;
  flex-basis: 132.5px;
}

.otras-publicaciones-card__body {
  gap: 10px;
}

.otras-publicaciones-card__aux {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: #525252;
}

.otras-publicaciones-table-wrapper .views-exposed-form {
  display: none;
}

.otras-publicaciones-table-wrapper .pager {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.otras-publicaciones-bottombar {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

.otras-publicaciones-per-page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0a0a0a;
  font-size: 14px;
  line-height: 20px;
}

.otras-publicaciones-select {
  width: 72px;
  height: 36px;
  padding: 0 34px 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 10px center / 14px no-repeat;
  appearance: none;
  cursor: pointer;
}

@media (max-width: 1300px) {
  .otras-publicaciones-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .otras-publicaciones-layout {
    grid-template-columns: 1fr;
  }

  .otras-publicaciones-sidebar {
    position: static;
  }
}
