/* =====================================================
   Verificación – Normas técnicas de verificación
   Figma node: 22889:186717
   ===================================================== */

/* --- Hero Section --- */
.verificacion-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 0 28px;
}
.verificacion-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #525252;
}
.verificacion-breadcrumb a {
  color: #525252;
  text-decoration: none;
}
.verificacion-breadcrumb a:hover {
  text-decoration: underline;
}
.verificacion-breadcrumb .breadcrumb-separator {
  display: inline-flex;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #525252;
  stroke-width: 2;
}
.verificacion-breadcrumb .breadcrumb-current {
  color: #0a0a0a;
}
.verificacion-hero h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 40px;
  color: #0a0a0a;
  margin: 0;
  max-width: 1152px;
}

/* --- Top Bar --- */
.verificacion-topbar {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-bottom: 16px;
}
.verificacion-topbar .btn-view-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #0a0a0a;
}
.verificacion-topbar .btn-view-toggle:hover {
  background: #f5f5f5;
}
.verificacion-topbar .btn-view-toggle svg {
  width: 16px;
  height: 16px;
}
.verificacion-topbar .select-sort {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #525252;
  height: 36px;
  padding: 8px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  cursor: pointer;
  appearance: auto;
}

/* --- Main Content Layout --- */
.verificacion-main {
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 64px;
}
.verificacion-separator {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 0 0 0;
}
.verificacion-content {
  display: flex;
  gap: 20px;
  padding-top: 16px;
}

/* --- Left Sidebar Filter Panel --- */
.verificacion-filter-panel {
  width: 305px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}
.verificacion-filter-panel .filter-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.verificacion-filter-panel .filter-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #000;
}
.verificacion-filter-panel .filter-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 12px;
  border-bottom: 1px solid #e5e5e5;
  background: transparent;
}
.verificacion-filter-panel .filter-search-wrap svg {
  opacity: 0.5;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.verificacion-filter-panel .filter-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #0a0a0a;
  background: transparent;
}
.verificacion-filter-panel .filter-search-input::placeholder {
  color: #525252;
}
.verificacion-filter-panel .filter-select-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.verificacion-filter-panel .filter-select-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #0a0a0a;
}
.verificacion-filter-panel .filter-select {
  width: 100%;
  height: 36px;
  padding: 8px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #525252;
  cursor: pointer;
}
.verificacion-filter-panel .filter-btn-submit {
  width: 100%;
  height: 36px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: #b91c1c;
  color: #fafafa;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: background 0.2s;
}
.verificacion-filter-panel .filter-btn-submit:hover {
  background: #991b1b;
}

/* --- Right Table Area --- */
.verificacion-table-wrapper {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Override Drupal views table */
.verificacion-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
}
.verificacion-table-wrapper table thead th {
  height: 40px;
  padding: 0 8px;
  border-bottom: 1px solid #e5e5e5;
  font-weight: 500;
  font-size: 14px;
  color: #525252;
  text-align: left;
  background: transparent;
}
.verificacion-table-wrapper table thead th:last-child {
  text-align: right;
}
.verificacion-table-wrapper table tbody tr {
  height: 72px;
  border-bottom: 1px solid #e5e5e5;
}
.verificacion-table-wrapper table tbody tr:last-child {
  border-bottom: none;
}
.verificacion-table-wrapper table tbody td {
  padding: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #0a0a0a;
  vertical-align: middle;
}
.verificacion-table-wrapper table tbody td:last-child {
  text-align: right;
}

/* Action buttons */
.norma-actions,
.contabilidad-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}
.norma-action-btn,
.contabilidad-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 10px 8px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  color: #0a0a0a;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.norma-action-btn {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}
.norma-action-btn:hover,
.contabilidad-action-btn:hover {
  background-color: #f5f5f5;
  border-color: #d5d5d5;
}
/* Download icon via data URI */
.norma-action-btn.norma-download,
.norma-action-btn:first-child {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}
/* ArrowUpRight icon via data URI */
.norma-action-btn.norma-external,
.norma-action-btn:last-child {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E");
}

/* --- Pagination --- */
.verificacion-table-wrapper .pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}
.verificacion-table-wrapper .pager__items {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.verificacion-table-wrapper .pager__item a,
.verificacion-table-wrapper .pager__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #0a0a0a;
  text-decoration: none;
  background: transparent;
}
.verificacion-table-wrapper .pager__item a:hover {
  background: #f5f5f5;
}
.verificacion-table-wrapper .pager__item--active a,
.verificacion-table-wrapper .pager__item.is-active a {
  background: #0a0a0a;
  color: white;
  border-radius: 8px;
}
.verificacion-table-wrapper .pager__item--previous a,
.verificacion-table-wrapper .pager__item--next a {
  gap: 4px;
  padding: 8px 16px;
}

/* --- Views Exposed Form Override --- */
.verificacion-table-wrapper .views-exposed-form {
  display: none; /* We handle the form in the sidebar */
}

/* --- Card View (toggle) --- */
.contabilidad-cards-mode table {
  display: none;
}
.contabilidad-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.contabilidad-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.contabilidad-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.contabilidad-card__title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #0a0a0a;
  margin: 0;
  flex: 1;
}
.contabilidad-card__title a {
  color: inherit;
  text-decoration: none;
}
.contabilidad-card__title a:hover {
  text-decoration: underline;
}
.contabilidad-card__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .verificacion-content {
    flex-direction: column;
  }
  .verificacion-filter-panel {
    width: 100%;
  }
  .verificacion-table-wrapper {
    border-radius: 12px;
  }
  .verificacion-hero h1 {
    font-size: 28px;
    line-height: 34px;
  }
  .verificacion-hero,
  .verificacion-topbar,
  .verificacion-main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .contabilidad-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* --- Language Badge --- */
.ley-reglamento-badge-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 2px 8px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #0a0a0a;
  white-space: nowrap;
}
.ley-reglamento-badge-lang .ley-reglamento-flag {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
