/* ============================================================
   Portal Denúncia — CSS completo (sem dependência de @apply)
   ============================================================ */

/* ── Variáveis ── */
:root {
  --primary:       #1a56db;
  --primary-dark:  #1447c0;
  --primary-light: #3b82f6;
  --success:       #16a34a;
  --warning:       #d97706;
  --danger:        #dc2626;
  --info:          #0284c7;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white:    #ffffff;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 0.25rem;
  --radius:    0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:    0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --t: 150ms ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  margin: 0; padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Tipografia ── */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  line-height: 1.25;
  color: var(--gray-900);
  font-weight: 600;
}
h1 { font-size: clamp(1.375rem, 4vw, 2rem); }
h2 { font-size: clamp(1.125rem, 3vw, 1.5rem); }
h3 { font-size: clamp(1rem, 2.5vw, 1.25rem); }
h4 { font-size: 1rem; }
h5, h6 { font-size: 0.875rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ── Layout ── */
.container {
  width: 100%;
  padding-inline: 1rem;
  margin-inline: auto;
  max-width: 1280px;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: var(--shadow);
}
.header-inner { position: relative; }
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}
.header + .container,
.header ~ .container { padding-top: 1.5rem; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--primary-dark); text-decoration: none; }
.brand-icon {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Hamburger */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0.375rem;
  color: var(--gray-700);
  transition: all var(--t);
  min-width: 40px;
  min-height: 40px;
}
.mobile-menu-toggle:hover { background: var(--gray-100); border-color: var(--gray-300); }
.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle.is-open .icon-menu  { display: none; }
.mobile-menu-toggle.is-open .icon-close { display: block; }

/* Nav mobile */
.nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 56px; left: 0; right: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 100;
  padding: 0.5rem;
  border-top: 2px solid var(--primary);
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
  animation: slideDown 0.15s ease;
}
.nav.show { display: flex; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all var(--t);
  min-height: 48px;
  text-decoration: none;
}
.nav-item:hover { background: var(--gray-100); color: var(--primary); text-decoration: none; }
.nav-item.active { background: #e0f2fe; color: var(--primary); font-weight: 600; }

/* Nav desktop */
@media (min-width: 768px) {
  .mobile-menu-toggle { display: none; }
  .nav {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-top: none;
    gap: 0.125rem;
    max-height: none;
    overflow: visible;
    animation: none;
  }
  .nav-item { padding: 0.4375rem 0.75rem; font-size: 0.875rem; min-height: auto; }
}

/* ── Footer ── */
.footer {
  margin-top: auto;
  background: var(--white);
  padding: 1.25rem 0;
  color: var(--gray-500);
  font-size: 0.8125rem;
  border-top: 1px solid var(--gray-200);
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.card-title { font-size: 0.9375rem; font-weight: 600; color: var(--gray-900); margin: 0; }
.card-body  { padding: 1rem; color: var(--gray-700); }
.card-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: var(--gray-50);
}
@media (min-width: 640px) {
  .card-header { padding: 1rem 1.25rem; }
  .card-body   { padding: 1.25rem; }
  .card-footer { padding: 0.875rem 1.25rem; }
  .card-title  { font-size: 1rem; }
}
@media (min-width: 1024px) {
  .card-header { padding: 1.125rem 1.5rem; }
  .card-body   { padding: 1.5rem; }
  .card-footer { padding: 1rem 1.5rem; }
  .card-title  { font-size: 1.0625rem; }
}

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-700);
}
.form-control {
  display: block;
  width: 100%;
  padding: 0.6875rem 0.875rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--t), box-shadow var(--t);
  min-height: 48px;
}
.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}
.form-control-sm {
  padding: 0.4375rem 0.625rem;
  font-size: 0.875rem;
  min-height: 36px;
  border-radius: var(--radius);
}
.form-control.is-invalid { border-color: var(--danger); }
.form-text  { display: block; margin-top: 0.375rem; font-size: 0.8125rem; }
.text-muted { color: var(--gray-500) !important; }
.required   { color: var(--danger); }
.error-message { color: var(--danger); font-size: 0.8125rem; margin-top: 0.3rem; }

.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 576px) { .form-row-2 { grid-template-columns: 1fr 1fr; gap: 1rem; } }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-weight: 500;
  font-family: var(--font-sans);
  white-space: nowrap;
  border: 1.5px solid transparent;
  padding: 0.6875rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  border-radius: var(--radius-md);
  transition: all var(--t);
  cursor: pointer;
  min-height: 48px;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.btn-primary       { color: var(--white); background: var(--primary);      border-color: var(--primary); }
.btn-primary:hover { color: var(--white); background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary       { color: var(--white); background: var(--gray-500); border-color: var(--gray-500); }
.btn-secondary:hover { color: var(--white); background: var(--gray-600); border-color: var(--gray-600); }
.btn-success       { color: var(--white); background: var(--success); border-color: var(--success); }
.btn-success:hover { color: var(--white); background: #15803d; border-color: #15803d; }
.btn-danger        { color: var(--white); background: var(--danger);  border-color: var(--danger); }
.btn-danger:hover  { color: var(--white); background: #b91c1c; border-color: #b91c1c; }
.btn-outline-primary       { color: var(--primary); background: transparent; border-color: var(--primary); }
.btn-outline-primary:hover { color: var(--white);   background: var(--primary); border-color: var(--primary); }

.btn-sm    { padding: 0.4375rem 0.875rem; font-size: 0.8125rem; min-height: 36px; border-radius: var(--radius); }
.btn-lg    { padding: 0.875rem 1.75rem;   font-size: 1.0625rem; min-height: 54px; }
.btn-block { display: flex; width: 100%; }

/* ── Alerts ── */
.alert {
  position: relative;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}
.alert-success { color: #166534; background: #dcfce7; border-color: #86efac; }
.alert-danger  { color: #991b1b; background: #fee2e2; border-color: #fca5a5; }
.alert-info    { color: #075985; background: #e0f2fe; border-color: #7dd3fc; }
.alert-warning { color: #92400e; background: #fef3c7; border-color: #fcd34d; }

/* ── Tables ── */
.table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 560px; }
.table th, .table td { padding: 0.75rem 1rem; vertical-align: middle; border-top: 1px solid var(--gray-200); text-align: left; }
.table thead th { background: var(--primary); color: var(--white); font-weight: 600; border: none; white-space: nowrap; }
.table tbody tr:nth-child(even) { background: var(--gray-50); }
.table tbody tr:hover { background: var(--gray-100); }

/* Table → Cards (mobile) */
@media (max-width: 767px) {
  .table-cards { min-width: 0; }
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; }
  .table-cards tbody tr {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin: 0 0 0.875rem;
    padding: 0;
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .table-cards tbody tr.tr-urgencia-imediata { border-left: 4px solid var(--danger); }
  .table-cards tbody tr.tr-prazo-vencido      { border-left: 4px solid var(--warning); }
  .table-cards tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.875rem;
    border: none;
    border-top: 1px solid var(--gray-100);
    font-size: 0.875rem;
  }
  .table-cards tbody tr td:first-child { border-top: none; }
  .table-cards tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.6875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    min-width: 72px;
    padding-top: 0.15rem;
  }
  .table-cards tbody td[data-label=""] { display: none; }
  .table-cards td.card-mobile-actions {
    background: var(--gray-50);
    flex-direction: column;
    padding: 0.75rem 0.875rem;
  }
  .table-cards td.card-mobile-actions::before { display: none; }
  .table-cards td.card-mobile-actions form { width: 100%; display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .table-cards td.card-mobile-actions form select { flex: 1 1 140px; }
  .table-cards td.card-mobile-actions form .btn   { flex: 0 0 auto; }
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  line-height: 1.2;
  white-space: nowrap;
}
.badge.bg-primary { background: var(--primary); color: white; }
.badge.bg-info    { background: var(--info);    color: white; }
.badge.bg-success { background: var(--success); color: white; }
.badge.bg-danger  { background: var(--danger);  color: white; }

.badge-urgencia {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.urgencia-imediata { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.urgencia-alta     { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; }
.urgencia-media    { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.urgencia-baixa    { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }

.sla-badge { display: inline-flex; align-items: center; padding: 0.2rem 0.5rem; border-radius: var(--radius); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.sla-vencido { background: #fee2e2; color: #b91c1c; }
.sla-critico { background: #fef3c7; color: #b45309; }
.sla-ok      { background: #dcfce7; color: #15803d; }

.tr-urgencia-imediata { background: #fff5f5 !important; }
.tr-prazo-vencido     { background: #fffbeb !important; }

/* ── Page Header ── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.page-header h1 { margin-bottom: 0; font-size: clamp(1.25rem, 4vw, 1.875rem); }
.page-header-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ── Public Nav ── */
.public-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1.25rem; }
.public-nav .btn { padding: 0.625rem 0.5rem; font-size: 0.875rem; }
@media (min-width: 400px) { .public-nav .btn { font-size: 0.9375rem; padding: 0.6875rem 1rem; } }
@media (min-width: 600px) { .public-nav { display: flex; justify-content: center; } .public-nav .btn { flex: 0 1 auto; } }

/* ── KPI Cards ── */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .kpi-grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .kpi-grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px){ .kpi-grid-6 { grid-template-columns: repeat(6, 1fr); } }

.kpi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--gray-200);
}
.kpi-card.border-danger  { border-left: 4px solid var(--danger); }
.kpi-card.border-warning { border-left: 4px solid var(--warning); }
.kpi-card.border-primary { border-left: 4px solid var(--primary); }
.kpi-card.border-success { border-left: 4px solid var(--success); }
.kpi-number { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700; line-height: 1; margin-bottom: 0.375rem; }
.kpi-label  { font-size: 0.8rem; color: var(--gray-600); line-height: 1.3; }

/* ── Grid ── */
.row { display: flex; flex-wrap: wrap; margin-inline: -0.5rem; }
.row > [class*="col-"] { padding-inline: 0.5rem; }
.col-md-2, .col-md-3, .col-md-4, .col-md-6 { width: 100%; }
.col-6 { width: 50%; }
.col-md-3.col-6 { width: 50%; }
.col-md-2.col-6 { width: 50%; }
@media (min-width: 640px) { .col-md-6 { width: 50%; } .col-md-4 { width: 50%; } }
@media (min-width: 768px) {
  .col-md-2 { width: 16.6667%; }
  .col-md-3, .col-md-3.col-6 { width: 25%; }
  .col-md-4 { width: 33.3333%; }
  .col-md-6 { width: 50%; }
  .col-md-2.col-6 { width: 16.6667%; }
}

/* ── Utilities ── */
.d-flex   { display: flex; }
.d-block  { display: block; }
.flex-column { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.justify-content-between { justify-content: space-between; }
.justify-content-center  { justify-content: center; }
.align-items-center { align-items: center; }
.align-items-end    { align-items: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-left    { text-align: left; }
.fw-bold      { font-weight: 700; }
.fst-italic   { font-style: italic; }
.text-danger  { color: var(--danger) !important; }
.bg-light     { background: var(--gray-100) !important; }
.rounded      { border-radius: var(--radius); }
.p-0  { padding: 0 !important; }
.p-3  { padding: 0.75rem !important; }
.p-4  { padding: 1rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-2 { margin-inline: 0.5rem; }
@media (max-width: 767px) { .d-md-none { display: none !important; } .d-sm-none { display: none !important; } }
@media (min-width: 768px) { .d-md-block { display: block !important; } .d-md-flex { display: flex !important; } }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; list-style: none; padding: 0; margin: 1rem 0; flex-wrap: wrap; gap: 0.25rem; }
.page-link {
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem 0.75rem;
  color: var(--primary); background: var(--white);
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  min-width: 40px; min-height: 40px; text-align: center;
}
.page-link:hover { background: var(--gray-100); text-decoration: none; }
.page-item.active .page-link { color: white; background: var(--primary); border-color: var(--primary); }

/* ── NR1 Info Grid ── */
.nr1-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
@media (min-width: 480px) { .nr1-info-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .nr1-info-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }
.nr1-info-item { display: flex; flex-direction: column; gap: 0.2rem; }
.nr1-info-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); }
.nr1-info-value { font-size: 0.875rem; color: var(--gray-800); font-weight: 500; }
.nr1-codigo-badge { font-family: var(--font-mono); font-size: 1rem !important; font-weight: 700 !important; color: var(--primary) !important; letter-spacing: 0.1em; }

/* ── NR1 Timeline ── */
.nr1-timeline { position: relative; padding-left: 1.5rem; }
.nr1-timeline::before { content: ''; position: absolute; left: 0.4375rem; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.nr1-timeline-item { position: relative; margin-bottom: 1rem; }
.nr1-timeline-dot { position: absolute; left: -1.25rem; top: 0.3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid white; box-shadow: 0 0 0 2px var(--primary); }
.nr1-timeline-content { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 0.75rem; }
.nr1-timeline-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.375rem; font-size: 0.875rem; }
.nr1-timeline-body { color: var(--gray-700); font-size: 0.875rem; line-height: 1.5; }

/* ── Select inline (para formulários dentro de tabelas/cards) ── */
.select-inline {
  display: inline-block;
  width: auto;
  padding: 0.375rem 2rem 0.375rem 0.625rem;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  min-height: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 14px 10px;
  appearance: none;
  -webkit-appearance: none;
}
.select-inline:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
}

/* ── Animações ── */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── NR1 Ações Corretivas ── */
.nr1-acao-card { border: 1px solid var(--gray-200); border-radius: var(--radius-md); margin-bottom: 0.75rem; overflow: hidden; }
.nr1-acao-card.acao-pendente     { border-left: 4px solid var(--warning); }
.nr1-acao-card.acao-em-andamento { border-left: 4px solid var(--info); }
.nr1-acao-card.acao-concluida    { border-left: 4px solid var(--success); }
.nr1-acao-card.acao-cancelada    { border-left: 4px solid var(--gray-500); opacity: 0.75; }
.nr1-acao-card.acao-vencida      { border-left: 4px solid var(--danger); }
.nr1-acao-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.75rem 1rem; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); flex-wrap: wrap; gap: 0.5rem; }
.nr1-acao-body   { padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--gray-700); }
.nr1-acao-footer { padding: 0.625rem 1rem; display: flex; justify-content: space-between; align-items: center; background: var(--gray-50); border-top: 1px solid var(--gray-200); flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; color: var(--gray-500); }
.nr1-acao-status-badge { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.acao-pendente     .nr1-acao-status-badge { background: #fef3c7; color: #b45309; }
.acao-em-andamento .nr1-acao-status-badge { background: #dbeafe; color: #1d4ed8; }
.acao-concluida    .nr1-acao-status-badge { background: #dcfce7; color: #15803d; }
.acao-cancelada    .nr1-acao-status-badge { background: var(--gray-100); color: var(--gray-600); }

.nr1-acao-kpi { text-align: center; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.nr1-acao-kpi div:first-child { font-size: 1.75rem; font-weight: 700; }
.nr1-acao-kpi.acao-pendente     { background: #fef3c7; }
.nr1-acao-kpi.acao-em-andamento { background: #dbeafe; }
.nr1-acao-kpi.acao-concluida    { background: #dcfce7; }
.nr1-acao-kpi.acao-vencida      { background: #fee2e2; }

/* ── NR1 Success Card ── */
.nr1-success-card { border: 2px solid var(--success); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.25rem; }
.nr1-success-header { background: var(--success); color: white; padding: 0.875rem 1.25rem; display: flex; align-items: center; gap: 0.625rem; font-size: 1rem; font-weight: 600; }
.nr1-success-body { padding: 1.25rem; }
.nr1-codigo-box { background: var(--gray-50); border: 2px dashed var(--success); border-radius: var(--radius-md); padding: 1.25rem 1rem; text-align: center; margin-bottom: 1rem; }
.nr1-codigo-label  { font-size: 0.8125rem; color: var(--gray-600); margin-bottom: 0.5rem; }
.nr1-codigo-value  { font-size: clamp(1.75rem, 10vw, 2.75rem); font-family: var(--font-mono); font-weight: 700; color: var(--primary); letter-spacing: 0.15em; margin-bottom: 0.5rem; word-break: break-all; }
.nr1-codigo-instrucao { font-size: 0.8125rem; color: var(--gray-600); }
.nr1-prazo-info   { font-size: 0.875rem; color: var(--gray-700); margin-top: 0.5rem; }
.nr1-consulta-card { border: 1px solid #7dd3fc; }

/* ── Política ── */
.nr1-lista { padding-left: 1.25rem; }
.nr1-lista li { margin-bottom: 0.5rem; line-height: 1.6; }
.nr1-garantias-grid { display: grid; grid-template-columns: 1fr; gap: 0.875rem; }
@media (min-width: 480px) { .nr1-garantias-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .nr1-garantias-grid { grid-template-columns: repeat(3, 1fr); } }
.nr1-garantia-item { display: flex; gap: 0.875rem; align-items: flex-start; padding: 0.875rem; background: var(--gray-50); border-radius: var(--radius-md); border: 1px solid var(--gray-200); }
.nr1-garantia-item p { margin: 0; font-size: 0.8125rem; color: var(--gray-600); }
.nr1-garantia-icon { font-size: 1.5rem; flex-shrink: 0; }
.nr1-processo { display: flex; flex-direction: column; }
.nr1-processo-step { display: flex; gap: 1rem; align-items: flex-start; position: relative; padding-bottom: 1.25rem; }
.nr1-processo-step::before { content: ''; position: absolute; left: 1rem; top: 2.5rem; width: 2px; height: calc(100% - 1.5rem); background: var(--gray-200); }
.nr1-processo-step:last-child::before { display: none; }
.nr1-processo-num { width: 2.125rem; height: 2.125rem; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 0.9375rem; }
.nr1-processo-text { flex: 1; }
.nr1-processo-text p { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 0; }
.nr1-riscos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 480px) { .nr1-riscos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .nr1-riscos-grid { grid-template-columns: repeat(4, 1fr); } }
.nr1-risco-item { text-align: center; padding: 0.875rem 0.75rem; border: 1px solid var(--gray-200); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 0.25rem; background: var(--white); }
.nr1-risco-item small { font-size: 0.7rem; color: var(--gray-500); }
