/* ==========================================================================
   Base & Reset
   ========================================================================== */

/* Prevent Drupal's default wrapper padding/margins */
.dialog-off-canvas-main-canvas {
  padding: 0 !important;
  margin: 0 !important;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.not-main-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  background-color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.not-hero-section {
  position: relative;
  width: 100%;
  height: 288px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0A1413;
}

.not-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: #0A1413;
}

.not-hero-img {
  position: absolute;
  width: 100%;
  height: 355.73%;
  top: -207.33%;
  left: 0;
  object-fit: cover;
}

.not-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 20, 19, 0.6);
}

.not-hero-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 10;
}

.not-hero-content {
  width: 100%;
  max-width: 1152px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Breadcrumbs */
.not-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.not-breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.not-breadcrumb-link {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  transition: color 0.2s ease;
}

.not-breadcrumb-link:hover {
  color: #f3f4f6;
  text-decoration: underline;
}

.not-breadcrumb-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
}

.not-breadcrumb-current {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

/* Hero Title */
.not-hero-title-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.not-hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 40px;
  color: #fafafa;
  margin: 0;
}

/* ==========================================================================
   Content Section & Layout
   ========================================================================== */
.not-content-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 64px;
  padding-bottom: 64px;
  background-color: #ffffff;
}

.not-content-container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}

/* Toolbar */
.not-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.not-btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  background-color: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.not-btn-ghost:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.not-btn-ghost span {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #0a0a0a;
}

/* Custom Select */
.not-select-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.not-select-wrapper.full-width {
  width: 100%;
}

.not-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  height: 36px;
  padding: 8px 36px 8px 12px; /* Extra padding right for icon */
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #525252;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  outline: none;
}

.not-select.full-width {
  width: 100%;
}

.not-select:focus {
  border-color: #b91c1c;
}

.not-select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.not-separator {
  width: 100%;
  height: 1px;
  background-color: #e5e5e5;
}

/* ==========================================================================
   Layout Split (Sidebar + Results)
   ========================================================================== */
.not-layout {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 20px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.not-sidebar {
  width: 305px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.not-sidebar-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.not-sidebar-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #000000;
  margin: 0;
}

.not-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  background-color: transparent;
  border-bottom: 1px solid #e5e5e5;
  padding: 12px;
  gap: 8px;
}

.not-search-icon {
  flex-shrink: 0;
  opacity: 0.5;
}

.not-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #525252;
  outline: none;
}

.not-search-input::placeholder {
  color: #525252;
}

.not-search-clear {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.not-search-clear.visible {
  opacity: 1;
  pointer-events: auto;
}

.not-filter-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.not-filter-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
  color: #0a0a0a;
}

.not-btn-primary {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  gap: 8px;
  background-color: #b91c1c;
  border: none;
  border-radius: 8px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  color: #fafafa;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.not-btn-primary:hover {
  background-color: #991b1b;
}

/* ==========================================================================
   Results Area & Table
   ========================================================================== */
.not-results-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: #f8fafc; /* slate-50 */
  border: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 16px;
  padding: 20px;
  gap: 16px;
}

.not-table-container {
  width: 100%;
  overflow-x: auto;
}

.not-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.not-table th {
  height: 40px;
  padding: 0 8px;
  border-bottom: 1px solid #e5e5e5;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #525252;
}

.not-table td {
  height: 72px;
  padding: 8px;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: middle;
}

/* Column Widths */
.not-col-consulta {
  width: 602px;
}

.not-col-idioma {
  width: 116px;
}

.not-col-acciones {
  width: 84px;
}

.not-text-wrapper {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #0a0a0a;
}

.not-badge-idioma {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 8px;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.not-flag-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  object-fit: cover;
}

.not-badge-idioma span {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: #0a0a0a;
}

.not-actions-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.not-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.not-action-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.not-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 16px;
}

.not-pagination-limit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.not-pagination-limit span {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #0a0a0a;
}

.not-select-wrapper.small .not-select {
  padding-right: 28px;
}

.not-pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.not-pagination-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 8px 10px;
  background-color: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #0a0a0a;
  transition: background-color 0.2s ease;
}

.not-pagination-btn:hover:not(:disabled) {
  background-color: rgba(0, 0, 0, 0.05);
}

.not-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.not-pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.not-pagination-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: transparent;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #0a0a0a;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.not-pagination-page:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.not-pagination-page.active {
  background-color: #f3f4f6; /* gray-100 */
}

.not-pagination-ellipsis {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #0a0a0a;
  padding: 0 8px;
}

/* ===== Action Buttons in Hero (AUD_041) ===== */
.normativa-btn-edit,
.normativa-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.normativa-btn-edit {
  background-color: #b91c1c !important;
  color: #fafafa !important;
}

.normativa-btn-edit:hover {
  background-color: #991b1b !important;
}

.normativa-btn-add {
  background-color: #1e3a8a !important;
  color: #fafafa !important;
}

.normativa-btn-add:hover {
  background-color: #1e40af !important;
}

/* ==========================================================================
   Estado filter (segmented control)
   ========================================================================== */
.not-segmented {
  width: 100%;
  display: flex;
  gap: 4px;
  padding: 4px;
  background-color: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

.not-segmented-btn {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #525252;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.not-segmented-btn:hover {
  color: #0a0a0a;
}

.not-segmented-btn.active {
  background-color: #ffffff;
  color: #b91c1c;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Cards View
   ========================================================================== */
.not-cards-container {
  display: none;
  width: 100%;
}

.not-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .not-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .not-cards-grid { grid-template-columns: 1fr; }
}

.not-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.not-card:hover {
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.not-card-header {
  display: flex;
  align-items: center;
}

.not-card-type {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background-color: #fef2f2;
  color: #b91c1c;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
}

.not-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 22px;
  color: #0a0a0a;
}

.not-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.not-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

