﻿:root {
  --red: #D0222A;
  --blue: #1B2A6B;
  --dark: #0f1523;
  --muted: #6b7280;
  --line: #e5e9f0;
  --border: #d1d9e6;
  --gray: #f4f6f9;
  --ok: #16a34a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--gray);
  color: var(--dark);
  font-family: Arial, Helvetica, sans-serif;
}

button, input, select, textarea { font: inherit; }

.complaint-page {
  min-height: 100vh;
  background: var(--gray);
}

.complaint-shell {
  width: min(700px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px) 0 40px;
}

.complaint-header {
  text-align: center;
  margin-bottom: 32px;
}

.shield-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--dark);
  color: #60a5fa;
  margin-bottom: 16px;
}

.complaint-header h1 {
  margin: 0 0 8px;
  color: var(--dark);
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.complaint-header p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.anon-banner {
  background: linear-gradient(135deg, #0f1523 0%, #1a2744 100%);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(34, 197, 94, .25);
}

.anon-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.anon-title strong {
  color: #22c55e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.anon-title em {
  margin-left: auto;
  color: rgba(34, 197, 94, .65);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.anon-pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.anon-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  opacity: .75;
  animation: anonPing 1.4s cubic-bezier(0,0,.2,1) infinite;
}

.anon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.anon-grid span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.65);
  font-size: 12px;
}

.anon-grid span::before {
  content: 'OK';
  color: #22c55e;
  font-size: 9px;
  font-weight: 900;
}

.anon-banner p {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.36);
  font-size: 11px;
  line-height: 1.6;
}

.anon-banner p strong { color: rgba(255,255,255,.55); }

.legal-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}

.legal-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--blue);
}

.legal-toggle span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.legal-content {
  display: grid;
  gap: 12px;
  padding: 0 18px 16px;
}

.legal-content article {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.legal-content strong {
  display: block;
  color: var(--dark);
  font-size: 12px;
  margin-bottom: 4px;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.tabs {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  background: white;
}

.tab {
  flex: 1;
  border: 0;
  cursor: pointer;
  padding: 11px 0;
  background: white;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.tab.active {
  background: var(--dark);
  color: white;
}

.hidden { display: none !important; }

.complaint-form,
.success-card,
.result-card,
.consult-intro {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.complaint-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 0;
  background: transparent;
}

.honeypot { display: none; }

label {
  display: block;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

label b { color: var(--red); }

select, input, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  outline: none;
  background: white;
  color: var(--dark);
  font-size: 14px;
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

select:focus, input:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,42,107,.08);
}

.helper-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: -16px;
  color: #9ca3af;
  font-size: 11px;
}

.security-note {
  display: flex;
  gap: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 12px 16px;
  color: #0c4a6e;
  font-size: 12px;
  line-height: 1.6;
}

.security-note::before {
  content: 'i';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0369a1;
  color: white;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-submit,
.btn-dark,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 13px 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.btn-submit,
.btn-dark {
  border: 0;
  background: var(--dark);
  color: white;
}

.btn-outline {
  border: 1.5px solid var(--ok);
  background: white;
  color: var(--ok);
}

button:disabled { cursor: not-allowed; opacity: .65; }

.error {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fdf2f2;
  border: 1px solid #fecaca;
  color: var(--red);
  font-size: 13px;
}

.success-card {
  text-align: center;
  padding: 32px 24px;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.success-icon { color: var(--ok); margin-bottom: 16px; }

.success-card h2 {
  margin: 0 0 8px;
  color: var(--dark);
  font-size: 22px;
  font-weight: 800;
}

.success-card p {
  margin: 0 auto 24px;
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.protocol-box {
  display: inline-block;
  min-width: 260px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: white;
  border: 2px dashed var(--ok);
  border-radius: 10px;
}

.protocol-box span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.protocol-box strong {
  color: var(--dark);
  font-family: Consolas, Monaco, monospace;
  font-size: 28px;
  letter-spacing: 2px;
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.success-card small {
  display: block;
  margin-top: 20px;
  color: #9ca3af;
  font-size: 11px;
}

.consult-intro {
  padding: 14px 16px;
  color: #374151;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.consult-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.consult-form input {
  flex: 1 1 260px;
  margin-top: 0;
  font-family: Consolas, Monaco, monospace;
  letter-spacing: 1px;
}

.consult-form .error {
  flex-basis: 100%;
}

.result-card {
  margin-top: 20px;
  overflow: hidden;
}

.result-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--dark);
  padding: 14px 18px;
}

.result-card header strong {
  display: block;
  color: white;
  font-family: Consolas, Monaco, monospace;
  font-size: 16px;
  letter-spacing: 1px;
}

.result-card header span {
  color: rgba(255,255,255,.4);
  font-size: 11px;
}

mark {
  border-radius: 4px;
  padding: 4px 10px;
  background: #e8ecfb;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.result-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
}

.result-body span {
  display: block;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.result-body p {
  margin: 0;
  color: #374151;
  font-size: 13px;
  line-height: 1.65;
}

.complaint-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.8;
}

@keyframes anonPing {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

@media (max-width: 640px) {
  .anon-grid { grid-template-columns: 1fr; }
  .anon-title { align-items: flex-start; }
  .anon-title em { display: none; }
  .helper-row { display: grid; }
  .tabs { display: grid; grid-template-columns: 1fr; }
  .protocol-box { width: 100%; min-width: 0; }
  .consult-form { display: grid; }
}
.admin-page {
  min-height: 100vh;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(18px, 5vw, 56px);
  background: var(--dark);
  color: white;
}

.admin-header h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 5vw, 52px);
}

.admin-header .lead {
  font-size: 15px;
}

.admin-content {
  margin-top: 24px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.admin-toolbar strong {
  font-size: 24px;
  color: var(--blue);
}

.admin-toolbar span {
  color: var(--muted);
  font-size: 13px;
}

.admin-toolbar select {
  width: auto;
  min-width: 190px;
}

.complaints-list {
  display: grid;
  gap: 14px;
}

.complaint-card {
  display: grid;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 36px rgba(15, 21, 35, 0.08);
}

.complaint-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f7;
}

.complaint-card .protocol {
  display: block;
  color: var(--blue);
  font-family: Consolas, Monaco, monospace;
  font-weight: 900;
  margin-bottom: 4px;
}

.complaint-card .description {
  margin: 0;
  background: #f8fafc;
  border-left: 3px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: #344054;
  line-height: 1.7;
  white-space: pre-wrap;
}

.complaint-card dl {
  padding: 0;
}

.complaint-card .save-button {
  justify-self: start;
}

button.secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  color: white;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .admin-header,
  .admin-toolbar,
  .complaint-card header {
    display: grid;
  }

  .admin-toolbar select {
    width: 100%;
  }
}

/* Admin antigo / painel de denuncias */
.old-admin {
  display: flex;
  min-height: 100vh;
  background: #f4f6f9;
}

.old-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: #0f1523;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
}

.old-logo {
  display: grid;
  justify-content: center;
  gap: 0;
  padding: 4px 0 10px;
  line-height: .9;
}

.old-logo span,
.old-logo strong {
  display: block;
  width: 92px;
  background: white;
  padding: 3px 5px;
  border: 1px solid rgba(255,255,255,.4);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .5px;
}

.old-logo span { color: #D0222A; }
.old-logo strong { color: #1B2A6B; }

.old-role {
  align-self: center;
  margin: 4px 0 18px;
  padding: 3px 8px;
  border: 1px solid rgba(208,34,42,.3);
  border-radius: 4px;
  background: rgba(208,34,42,.16);
  color: #D0222A;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.old-sidebar nav {
  display: grid;
  gap: 3px;
}

.old-sidebar a {
  color: rgba(255,255,255,.48);
  text-decoration: none;
  padding: 10px 11px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  font-size: 13px;
  font-weight: 700;
}

.old-sidebar a.active {
  color: #93c5fd;
  background: rgba(27,42,107,.4);
  border-left-color: #D0222A;
}

.old-logout {
  margin-top: auto;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.42);
  text-align: left;
  cursor: pointer;
  padding: 10px;
}

.old-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.old-topbar {
  height: 52px;
  background: white;
  border-bottom: 2px solid #1B2A6B;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}

.old-topbar h1 {
  margin: 0;
  color: #0f1523;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.old-topbar span {
  margin-left: auto;
  color: #9ca3af;
  font-size: 12px;
}

.old-login,
.old-content {
  padding: 24px;
}

.old-login-card {
  width: min(420px, 100%);
  margin: 60px auto;
  display: grid;
  gap: 16px;
  background: white;
  border: 1px solid #d1d9e6;
  border-top: 3px solid #D0222A;
  border-radius: 8px;
  padding: 24px;
}

.old-login-card h2 {
  margin: 0;
  color: #0f1523;
  font-size: 24px;
}

.old-login-card p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.legal-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 14px 16px;
  color: #78350f;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.legal-warning strong {
  display: block;
  margin-bottom: 4px;
}

.status-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.status-kpis article {
  background: white;
  border: 1px solid #d1d9e6;
  border-radius: 8px;
  padding: 16px;
}

.status-kpis article:nth-child(1) { border-top: 3px solid #1B2A6B; }
.status-kpis article:nth-child(2) { border-top: 3px solid #f59e0b; }
.status-kpis article:nth-child(3) { border-top: 3px solid #059669; }

.status-kpis span {
  display: block;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  color: #1B2A6B;
}

.status-kpis strong {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.old-card {
  background: white;
  border: 1px solid #d1d9e6;
  border-radius: 8px;
  overflow: hidden;
}

.old-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #1B2A6B;
  color: white;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.old-card-header select {
  width: auto;
  min-width: 170px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.28);
  background: white;
  color: #0f1523;
}

.old-empty {
  padding: 36px 24px;
  margin: 0;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

.old-complaint {
  padding: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.old-complaint:last-child {
  border-bottom: 0;
}

.old-complaint-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.old-complaint .protocol {
  display: block;
  color: #1B2A6B;
  font-family: Consolas, Monaco, monospace;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 4px;
}

.old-complaint .created {
  color: #9ca3af;
  font-size: 11px;
}

.old-description {
  background: #f8fafc;
  border-left: 3px solid #d1d9e6;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.old-description span {
  display: block;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.old-description p {
  margin: 0;
  color: #374151;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.old-edit-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.old-edit-grid label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}

.old-edit-grid textarea,
.old-edit-grid select {
  margin-top: 6px;
}

.old-edit-grid small {
  display: block;
  margin-top: 5px;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.5;
}

.save-button,
.old-login-card button {
  justify-self: start;
  margin-top: 12px;
  border: 0;
  border-radius: 6px;
  background: #0f1523;
  color: white;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.save-button:disabled,
.old-login-card button:disabled {
  opacity: .65;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .old-admin {
    display: block;
  }

  .old-sidebar {
    width: 100%;
    min-height: auto;
  }

  .old-sidebar nav {
    grid-template-columns: 1fr 1fr;
  }

  .status-kpis {
    grid-template-columns: 1fr;
  }

  .old-edit-grid,
  .old-card-header,
  .old-complaint-summary {
    display: grid;
  }

  .old-card-header select {
    width: 100%;
  }
}

/* Ajuste fino para aproximar o canal independente do visual original */
body {
  font-family: 'Barlow', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.complaint-header h1,
.anon-title strong,
.anon-title em,
.legal-toggle span:first-child,
.tab,
.btn-submit,
.btn-dark,
.btn-outline,
.success-card h2,
.protocol-box span,
.result-body span,
.old-logo span,
.old-logo strong,
.old-role,
.old-sidebar a,
.old-logout,
.old-topbar h1,
.old-topbar span,
.old-login-card h2,
.status-kpis span,
.status-kpis strong,
.old-card-header,
.old-description span,
.save-button,
.old-login-card button {
  font-family: 'Barlow Condensed', Arial, Helvetica, sans-serif;
}

.complaint-header h1 {
  letter-spacing: .2px;
}

.anon-banner,
.legal-box,
.tabs,
.success-card,
.result-card,
.old-card,
.old-login-card,
.status-kpis article {
  box-shadow: 0 2px 7px rgba(15, 21, 35, .05);
}

.anon-grid span::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: rgba(22, 163, 74, .12);
  color: var(--ok);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.anon-banner p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.55;
}

.anon-banner p svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--blue);
}

.legal-toggle span:first-child,
.tab,
.btn-submit,
.btn-dark,
.btn-outline {
  letter-spacing: .7px;
}

.btn-submit,
.btn-dark,
.btn-outline,
.save-button,
.old-login-card button {
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-submit:hover,
.btn-dark:hover,
.save-button:hover,
.old-login-card button:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(27, 42, 107, .16);
}

.btn-outline:hover {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.old-sidebar {
  width: 214px;
  border-right: 1px solid #d1d9e6;
}

.old-logo {
  letter-spacing: .2px;
}

.old-sidebar nav {
  gap: 5px;
}

.old-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border-left: 3px solid transparent;
  line-height: 1;
  letter-spacing: .8px;
}

.old-sidebar a svg,
.old-logout svg {
  flex: 0 0 auto;
}

.old-sidebar a:hover {
  background: #f8fafc;
  color: var(--blue);
}

.old-sidebar a.active {
  border-left-color: var(--red);
  background: #fff5f6;
  color: var(--red);
}

.old-logout {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  letter-spacing: .7px;
}

.old-topbar {
  min-height: 70px;
}

.old-topbar h1 {
  letter-spacing: .5px;
}

.legal-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.legal-warning svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.old-card-header {
  letter-spacing: 1.1px;
}

.old-card-header select,
.old-edit-grid textarea,
.old-edit-grid select,
.old-login-card input {
  font-family: 'Barlow', Arial, Helvetica, sans-serif;
}

.old-complaint {
  transition: background .18s ease;
}

.old-complaint:hover {
  background: #fbfcfe;
}

.old-edit-grid label,
.old-description p,
.old-login-card p,
.old-login-card label {
  font-weight: 500;
}

.old-description {
  border-left-color: var(--blue);
}

.admin-complaints-table {
  border-color: #cbd5e1;
}

.admin-table-header {
  min-height: 42px;
}

.admin-table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-list-head,
.complaint-row {
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) 150px 112px 32px;
  align-items: center;
  gap: 12px;
}

.admin-list-head {
  padding: 11px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e9f0;
  color: #8a94a6;
  font-family: 'Barlow Condensed', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-complaints-list {
  background: white;
}

.old-complaint {
  padding: 0;
}

.complaint-row {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid #e8edf4;
  background: white;
  padding: 0 16px;
  cursor: pointer;
  text-align: left;
}

.complaint-row:hover {
  background: #f8fafc;
}

.old-complaint.open .complaint-row {
  background: #f8fbff;
  border-bottom-color: #d8e2f0;
}

.old-complaint .protocol {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 4px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 12px;
  line-height: 1;
}

.old-complaint .summary {
  min-width: 0;
  overflow: hidden;
  color: #0f1523;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.old-complaint .created {
  color: #8a94a6;
  font-size: 11px;
  text-align: right;
}

.old-complaint .status {
  justify-self: end;
}

.expand-icon {
  justify-self: end;
  color: #8a94a6;
  font-family: 'Barlow Condensed', Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.complaint-detail {
  padding: 18px 18px 20px;
  background: #fbfcfe;
  border-bottom: 1px solid #d8e2f0;
}

.complaint-detail .old-description {
  background: white;
  border: 1px solid #e5e9f0;
  border-left: 3px solid var(--blue);
}

.complaint-detail .old-edit-grid {
  grid-template-columns: 210px minmax(0, 1fr);
}

.complaint-detail .save-button {
  margin-top: 14px;
}

mark.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
}

mark.status[data-status="recebida"] {
  background: #eef2ff;
  color: var(--blue);
}

mark.status[data-status="em_analise"] {
  background: #fff7cc;
  color: #92400e;
}

mark.status[data-status="encerrada"] {
  background: #dff8ef;
  color: #047857;
}

@media (max-width: 860px) {
  .old-sidebar {
    width: 100%;
  }

  .old-sidebar nav {
    gap: 6px;
  }

  .old-sidebar a {
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .old-sidebar a.active {
    border-bottom-color: var(--red);
  }

  .admin-list-head {
    display: none;
  }

  .complaint-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px 14px;
  }

  .complaint-row .summary {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .complaint-row .created {
    text-align: left;
  }

  .complaint-row .status {
    justify-self: start;
  }

  .expand-icon {
    grid-column: 2;
    grid-row: 1;
  }

  .complaint-detail .old-edit-grid {
    grid-template-columns: 1fr;
  }
}
