﻿:root {
  --bg: #f4f6f4;
  --surface: #ffffff;
  --surface-muted: #f7f9f7;
  --brand: #1f5b4b;
  --brand-700: #184538;
  --brand-900: #0f2c25;
  --text: #0f1f1c;
  --muted: #6f7a76;
  --border: #e3e8e6;
  --sidebar: #0c1916;
  --sidebar-contrast: #132622;
  --shadow-soft: 0 12px 30px rgba(16, 24, 40, 0.08);
  --shadow-card: 0 8px 24px rgba(16, 24, 40, 0.08);
  --radius-xl: 18px;
}

* {
  font-family: 'Inter', sans-serif;
}

body.app-body {
  background: radial-gradient(circle at top, #fbfcfb 0%, #f4f6f4 40%, #eef2ef 100%);
  color: var(--text);
  min-height: 100vh;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  margin: -28px -32px -48px;
}

.auth-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(31, 91, 75, 0.35), transparent 45%),
              radial-gradient(circle at bottom right, rgba(15, 44, 37, 0.55), transparent 50%),
              linear-gradient(135deg, #0f2c25 0%, #1f5b4b 45%, #0b1513 100%);
  z-index: 0;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 60px rgba(12, 18, 16, 0.35);
  backdrop-filter: blur(12px);
  animation: fadeUp 0.6s ease;
}

.auth-card-lg {
  width: min(520px, 100%);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-brand .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.auth-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-header p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.input-icon {
  position: relative;
}

.input-icon .icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.input-icon svg {
  width: 18px;
  height: 18px;
}

.input-icon .form-control {
  padding-left: 44px;
  height: 48px;
  border-radius: 14px;
  border-color: rgba(31, 91, 75, 0.2);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-icon .form-control:focus {
  border-color: rgba(31, 91, 75, 0.6);
  box-shadow: 0 0 0 4px rgba(31, 91, 75, 0.12);
}

.auth-links {
  display: flex;
  justify-content: flex-end;
}

.link-muted {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.link-muted:hover {
  color: var(--brand);
}

.auth-footer {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.public-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(31, 91, 75, 0.16);
  background:
    radial-gradient(circle at top left, rgba(31, 91, 75, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.9));
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.45s ease;
}

.public-hero h1 {
  max-width: 760px;
  margin: 6px 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.public-hero p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.public-result {
  max-width: 720px;
  margin: 28px auto;
  animation: fadeUp 0.45s ease;
}

.protocol-box {
  display: grid;
  gap: 6px;
  margin: 22px 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(31, 91, 75, 0.18);
  background: rgba(31, 91, 75, 0.08);
}

.protocol-box span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.protocol-box strong {
  color: var(--brand-900);
  font-size: clamp(1.25rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  word-break: break-word;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.profile-main {
  min-width: 0;
}

.profile-side {
  display: grid;
  gap: 24px;
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.preference-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.preference-item:last-child {
  border-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.stat-item {
  background: var(--surface-muted);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
}

.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.upload-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.upload-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.upload-badge {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(31, 91, 75, 0.15);
  color: var(--brand);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.upload-info {
  display: grid;
  gap: 2px;
}

.upload-name {
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-word;
}

.upload-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.request-hero .divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.request-protocol {
  letter-spacing: 0.02em;
}

.request-status {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
}

.info-tile {
  padding: 13px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.035);
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.file-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.file-icon {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: rgba(31, 91, 75, 0.12);
  color: var(--brand);
  font-weight: 700;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.file-icon.is-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-meta {
  display: grid;
  gap: 2px;
}

.file-name {
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-word;
}

.file-size {
  font-size: 0.75rem;
  color: var(--muted);
}

.file-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.comparison-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  display: grid;
  gap: 10px;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.comparison-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  height: 140px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.comparison-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdf-preview {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: rgba(31, 91, 75, 0.12);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.comparison-name {
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-word;
}

.comparison-value {
  font-weight: 600;
  color: var(--brand);
  font-size: 0.95rem;
}

.comparison-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.combens-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.combens-summary-tile {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 244, 0.78));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.combens-summary-tile span,
.combens-summary-tile small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.combens-summary-tile strong {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  margin: 4px 0;
}

.combens-budget-list {
  display: grid;
  gap: 12px;
}

.combens-budget-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  transition: all 0.2s ease;
}

.combens-budget-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.combens-budget-rank {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(31, 91, 75, 0.1);
  color: var(--brand);
  font-weight: 800;
}

.combens-budget-main {
  min-width: 0;
}

.combens-budget-price {
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
}

.combens-budget-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.combens-budget-form {
  border: 1px dashed rgba(31, 91, 75, 0.25);
  border-radius: 18px;
  padding: 18px;
  background: rgba(241, 247, 244, 0.55);
}

.empty-card {
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  color: var(--muted);
  background: #fff;
}

.timeline {
  display: grid;
  gap: 18px;
  position: relative;
  padding-left: 18px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
  margin-top: 6px;
}

.timeline-dot.is-info {
  background: #3b82f6;
}

.timeline-dot.is-success {
  background: #22c55e;
}

.timeline-dot.is-danger {
  background: #ef4444;
}

.timeline-dot.is-brand {
  background: var(--brand);
}

.timeline-title {
  font-weight: 600;
}

.timeline-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.checklist-premium li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(31, 91, 75, 0.08);
  padding: 12px 14px;
  border-radius: 12px;
}

.checklist-premium li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 91, 75, 0.18);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.75rem;
}

.action-panel .divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.request-side-col {
  align-self: flex-start;
}

@media (min-width: 1400px) {
  .request-side-col {
    position: sticky;
    top: 18px;
  }
}

.action-panel h5 {
  color: var(--ink);
  font-weight: 900;
}

.action-panel form {
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f8fbfa);
}

.action-panel form + form {
  margin-top: 12px;
}

.action-panel .form-text {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.action-panel textarea,
.action-panel input,
.action-panel .form-control {
  border-radius: 13px;
}

.checklist-form {
  gap: 8px;
}

.check-row {
  min-height: 44px;
  align-items: center;
  border-radius: 14px;
  background: #f8fafc;
}

.simple-next-card {
  box-shadow: 0 18px 44px rgba(31, 91, 75, 0.12);
}

.simple-next-card h5 {
  font-weight: 900;
}

@media (max-width: 767px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .request-focus-grid {
    grid-template-columns: 1fr;
  }
  .file-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .file-icon {
    width: 64px;
    height: 64px;
  }
  .combens-budget-item {
    grid-template-columns: 1fr;
  }
  .combens-budget-price,
  .combens-budget-actions {
    justify-content: flex-start;
  }
  .file-actions,
  .comparison-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .public-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 20, 0.4);
  z-index: 20;
}

.app-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #0b1916 0%, #0e211c 100%);
  color: #f3f6f4;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}

.sidebar-top {
  padding-bottom: 6px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #1f5b4b;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-title {
  font-weight: 700;
  font-size: 1rem;
}

.brand-sub {
  font-size: 0.8rem;
  color: rgba(243, 246, 244, 0.6);
}

.sidebar-nav {
  display: grid;
  gap: 18px;
  overflow-y: auto;
  padding-right: 4px;
}

.sidebar-section {
  display: grid;
  gap: 8px;
}

.sidebar-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 246, 244, 0.5);
  margin-top: 4px;
}

.app-sidebar .nav-link {
  color: rgba(243, 246, 244, 0.8);
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  transition: all 0.2s ease;
}

.app-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.app-sidebar .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: transparent;
  border-radius: 2px;
}

.app-sidebar .nav-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.app-sidebar .nav-link.is-active::before {
  background: #7bd9b5;
}

.app-sidebar .nav-link.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(243, 246, 244, 0.7);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 10px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  border-radius: 14px;
}

.user-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7bd9b5;
  box-shadow: 0 0 0 4px rgba(123, 217, 181, 0.15);
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.user-role {
  font-size: 0.7rem;
  color: rgba(243, 246, 244, 0.6);
}

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

.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 6px 16px rgba(15, 23, 20, 0.05);
  position: sticky;
  top: 0;
  z-index: 15;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  gap: 4px;
}

.btn-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-icon.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.btn-icon.is-open span:nth-child(2) {
  opacity: 0;
}

.btn-icon.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.breadcrumb-sep {
  opacity: 0.6;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.env-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 91, 75, 0.12);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-btn::after {
  display: none;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.profile-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.profile-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.profile-role {
  font-size: 0.7rem;
  color: var(--muted);
}

.app-content {
  padding: 28px 32px 48px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.12);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(31, 91, 75, 0.1);
  color: var(--brand);
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-meta {
  display: grid;
  gap: 4px;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
}

.stat-trend {
  font-size: 0.75rem;
  color: var(--muted);
}

.metric-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.12);
}

.metric-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 6px;
}

.metric-card.status-pendente {
  border-left: 4px solid #d9972d;
}

.metric-card.status-aprovado {
  border-left: 4px solid #2c995e;
}

.metric-card.status-recusado {
  border-left: 4px solid #d04b3c;
}

.status-amber .stat-icon {
  background: rgba(217, 151, 45, 0.16);
  color: #b97300;
}

.status-green .stat-icon {
  background: rgba(44, 153, 94, 0.16);
  color: #1d7a4b;
}

.status-red .stat-icon {
  background: rgba(208, 75, 60, 0.16);
  color: #a3382d;
}

.status-blue .stat-icon {
  background: rgba(67, 114, 210, 0.16);
  color: #2d55b0;
}

.status-neutral .stat-icon {
  background: rgba(111, 122, 118, 0.12);
  color: var(--muted);
}

.trend-amber {
  color: #9f6a13;
}

.trend-green {
  color: #2d7a4f;
}

.trend-red {
  color: #a34036;
}

.trend-blue {
  color: #2d55b0;
}

.table-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.table-card:hover {
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.12);
}

.table-card-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.table-wrap {
  max-height: 520px;
  overflow: auto;
}

.table-premium thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}

.table-premium tbody tr:hover {
  background: var(--surface-muted);
}

.table-premium > :not(caption) > * > * {
  border-bottom-color: var(--border);
}

.table-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
}

.table-count {
  font-size: 0.8rem;
  color: var(--muted);
}

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

.filter-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.section-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.panel-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.9rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.request-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.request-focus-card {
  min-height: 110px;
  padding: 16px;
  border: 1px solid rgba(31, 91, 75, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(31, 91, 75, 0.08), transparent 34%),
    #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.055);
}

.request-focus-card.is-primary {
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.22), transparent 38%),
    linear-gradient(135deg, #113b33, #1f5b4b);
  color: #fff;
}

.request-focus-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-focus-card.is-primary span,
.request-focus-card.is-primary small {
  color: rgba(255, 255, 255, 0.78);
}

.request-focus-card strong {
  display: block;
  margin: 8px 0 5px;
  color: inherit;
  font-size: 1.02rem;
  line-height: 1.25;
}

.request-focus-card small {
  color: var(--muted);
  font-weight: 650;
}

.request-description-box {
  padding: 16px 18px;
  border: 1px solid rgba(67, 114, 210, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.request-description-box span {
  display: block;
  color: #2d55b0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.request-description-box p {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.55;
}

.soft-collapse {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
  overflow: hidden;
}

.soft-collapse summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 900;
  list-style: none;
}

.soft-collapse summary::-webkit-details-marker {
  display: none;
}

.soft-collapse summary::after {
  content: '+';
  float: right;
  color: var(--brand);
  font-weight: 900;
}

.soft-collapse[open] summary::after {
  content: '-';
}

.soft-collapse .info-grid,
.soft-collapse > .mb-3 {
  padding: 0 16px 16px;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.badge.status-pendente {
  background: rgba(217, 151, 45, 0.18);
  color: #9f6a13;
  border-radius: 999px;
  padding: 6px 10px;
}

.badge.status-aprovado {
  background: rgba(44, 153, 94, 0.18);
  color: #2d7a4f;
  border-radius: 999px;
  padding: 6px 10px;
}

.badge.status-recusado {
  background: rgba(208, 75, 60, 0.18);
  color: #a34036;
  border-radius: 999px;
  padding: 6px 10px;
}

.badge.status-aberta {
  background: rgba(67, 114, 210, 0.16);
  color: #2d55b0;
  border-radius: 999px;
  padding: 6px 10px;
}

.badge.status-em_analise {
  background: rgba(31, 91, 75, 0.16);
  color: var(--brand);
  border-radius: 999px;
  padding: 6px 10px;
}

.badge.status-necessita_ajustes {
  background: rgba(217, 151, 45, 0.2);
  color: #9f6a13;
  border-radius: 999px;
  padding: 6px 10px;
}

.badge.status-orcamentando {
  background: rgba(67, 114, 210, 0.16);
  color: #2d55b0;
  border-radius: 999px;
  padding: 6px 10px;
}

.badge.status-pronta_para_combens {
  background: rgba(31, 91, 75, 0.16);
  color: var(--brand);
  border-radius: 999px;
  padding: 6px 10px;
}

.badge.status-aprovada_para_combens,
.badge.status-enviada_ao_presbiterio,
.badge.status-os_combens_gerada,
.badge.status-concluida {
  background: rgba(44, 153, 94, 0.18);
  color: #2d7a4f;
  border-radius: 999px;
  padding: 6px 10px;
}

.badge.bg-secondary-subtle {
  background: rgba(111, 122, 118, 0.12) !important;
}

.label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  background: rgba(31, 91, 75, 0.08);
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--brand);
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
}

.btn-outline-primary {
  color: var(--brand);
  border-color: rgba(31, 91, 75, 0.3);
}

.btn-outline-primary:hover {
  background: rgba(31, 91, 75, 0.1);
  border-color: rgba(31, 91, 75, 0.4);
  color: var(--brand-900);
}

.btn-light {
  background: var(--surface-muted);
  border-color: var(--border);
}

.card {
  border-radius: var(--radius-xl);
}

.table thead th {
  font-weight: 600;
}

.list-group-item {
  border-color: var(--border);
}

.form-control,
.form-select {
  border-radius: 12px;
  border-color: var(--border);
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px rgba(31, 91, 75, 0.15);
  border-color: rgba(31, 91, 75, 0.6);
}

.pagination .page-link {
  border-radius: 10px;
  border-color: var(--border);
  color: var(--muted);
}

.pagination .page-item.active .page-link {
  background: var(--brand);
  border-color: var(--brand);
}

.alert {
  border-radius: 12px;
}

@media (max-width: 1199px) {
  .app-header {
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 991px) {
  .app-shell {
    flex-direction: column;
  }
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    height: 100vh;
    transition: transform 0.2s ease;
  }
  .app-shell.sidebar-open .app-sidebar {
    transform: translateX(0);
  }
  .app-shell.sidebar-open .sidebar-overlay {
    display: block;
  }
  .app-content {
    padding: 22px 20px 36px;
  }
  .auth-screen {
    margin: -22px -20px -36px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .sidebar-toggle {
    display: none;
  }
}

@media (max-width: 575px) {
  .page-title {
    font-size: 1.3rem;
  }
  .profile-info {
    display: none;
  }
  .table-wrap {
    max-height: none;
  }
}

/* Public OS Sonorizacao portal - layout inspired by lightweight ticket portals */
.os-portal {
  --os-blue: #2563eb;
  --os-blue-100: #dbeafe;
  --os-blue-50: #eff6ff;
  --os-ink: #06152f;
  --os-muted: #64708a;
  --os-line: #d9e1ef;
  --os-page: #f5f7fb;
  margin: -28px -32px -48px;
  min-height: 100vh;
  background: var(--os-page);
  color: var(--os-ink);
}

.os-topbar {
  height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dbe3f0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.os-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--os-ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.os-brand-icon,
.os-logo-orb {
  display: grid;
  place-items: center;
  color: var(--os-blue);
}

.os-brand-icon {
  width: 22px;
  height: 22px;
}

.os-brand-icon svg {
  width: 19px;
  height: 19px;
}

.os-restricted {
  padding: 8px 14px;
  border-radius: 10px;
  background: #eaf2ff;
  color: var(--os-blue);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.os-restricted:hover {
  background: #dceaff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.os-page {
  width: min(100%, 690px);
  margin: 0 auto;
  padding: 46px 18px 56px;
}

.os-title-block {
  text-align: center;
  margin-bottom: 28px;
  animation: fadeUp 0.35s ease;
}

.os-logo-orb {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.os-logo-orb svg {
  width: 28px;
  height: 28px;
}

.os-title-block h1 {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.055em;
  color: var(--os-ink);
}

.os-title-block p {
  margin: 0;
  color: var(--os-ink);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
}

.os-card {
  background: #fff;
  border: 1px solid var(--os-line);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  animation: fadeUp 0.4s ease;
}

.os-card + .os-card {
  margin-top: 22px;
}

.os-card-head {
  padding: 19px 24px;
  border-bottom: 1px solid #e6edf7;
  background: #fff;
}

.os-card-head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--os-ink);
}

.os-form,
.os-card-body-soft {
  padding: 24px;
}

.os-form {
  display: grid;
  gap: 18px;
}

.os-confirm-box {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  display: grid;
  gap: 3px;
}

.os-confirm-box span {
  color: var(--os-blue);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.os-confirm-box strong {
  color: var(--os-ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.os-confirm-box small {
  color: #35629d;
  font-weight: 700;
}

.os-confirm-box.success strong {
  font-size: clamp(1.25rem, 4vw, 1.85rem);
  letter-spacing: -0.03em;
  word-break: break-word;
}

.os-grid {
  display: grid;
  gap: 16px;
}

.os-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.os-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.os-grid.church {
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.6fr);
}

.os-field {
  display: grid;
  gap: 7px;
}

.os-field label,
.os-evidence h3 {
  margin: 0;
  color: #47536d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.os-field .form-control,
.os-field .form-select {
  min-height: 43px;
  border-radius: 10px;
  border: 1px solid #d8e0ec;
  color: var(--os-ink);
  font-weight: 600;
  box-shadow: none;
}

.os-field textarea.form-control {
  min-height: 112px;
  resize: vertical;
}

.os-field .form-control::placeholder {
  color: #98a2b8;
  font-weight: 700;
}

.os-field .form-control:focus,
.os-field .form-select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.os-muted-input:disabled {
  background: #f0f4f9;
  color: #5d6a80;
  opacity: 1;
}

.os-evidence {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.os-evidence p,
.os-muted-text {
  margin: 0;
  color: var(--os-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.os-upload-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.os-upload-slot {
  position: relative;
  min-height: 86px;
  border-radius: 12px;
  border: 1px dashed #93c5fd;
  background: #eff6ff;
  color: var(--os-blue);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.os-upload-slot:first-child {
  border-color: #7dd3fc;
  background: #ecfeff;
  color: #0891b2;
}

.os-upload-slot:hover {
  transform: translateY(-2px);
  background: #dbeafe;
  border-color: var(--os-blue);
}

.os-upload-slot span {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.os-upload-slot input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.os-attachment-count {
  color: #47536d;
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 4px;
}

.os-preview.upload-preview {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.os-preview .upload-item {
  padding: 9px;
  border-radius: 12px;
  box-shadow: none;
}

.os-preview .upload-thumb,
.os-preview .upload-badge {
  width: 48px;
  height: 48px;
}

.os-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #e6edf7;
}

.os-actions .btn {
  min-width: 120px;
  min-height: 42px;
  border-radius: 10px;
  font-weight: 900;
}

.os-actions .btn-primary {
  background: var(--os-blue);
  border-color: var(--os-blue);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.os-actions .btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.os-actions .btn-light {
  background: #fff;
  border: 1px solid #d8e0ec;
  color: #47536d;
}

.os-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.os-result-grid div,
.os-field.readonly {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e4ebf5;
  background: #f8fafc;
}

.os-result-grid span {
  display: block;
  color: #64708a;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.os-result-grid strong {
  color: var(--os-ink);
  font-size: 0.9rem;
}

.os-divider {
  height: 1px;
  background: #e6edf7;
  margin: 18px 0;
}

.os-field.readonly p {
  margin: 0;
  color: var(--os-muted);
  font-weight: 600;
}

@media (max-width: 991px) {
  .os-portal {
    margin: -22px -20px -36px;
  }
  .os-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .os-topbar {
    padding: 0 14px;
  }
  .os-page {
    padding: 32px 12px 42px;
  }
  .os-grid.two,
  .os-grid.three,
  .os-grid.church,
  .os-result-grid {
    grid-template-columns: 1fr;
  }
  .os-card-head,
  .os-form,
  .os-card-body-soft {
    padding: 18px;
  }
  .os-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .os-actions .btn {
    width: 100%;
  }
}

.input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.os-inline-help {
  display: block;
  margin-top: 8px;
  color: #64708a;
  font-size: 0.78rem;
  font-weight: 700;
}

.os-timeline-public {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.os-step {
  position: relative;
  min-height: 96px;
  padding: 12px;
  border: 1px solid #e5edf7;
  border-radius: 14px;
  background: #fff;
  color: #64708a;
}

.os-step.done,
.os-step.current {
  border-color: #bfd4ff;
  background: #eef5ff;
  color: #1e3a8a;
}

.os-step.current {
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
}

.os-step-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.os-step.done .os-step-dot,
.os-step.current .os-step-dot {
  background: #2563eb;
}

.os-step strong,
.os-step small {
  display: block;
}

.os-step strong {
  color: inherit;
  font-size: 0.82rem;
}

.os-step small {
  margin-top: 4px;
  font-size: 0.68rem;
}

.os-response-form {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f8fbff;
}

.os-history-list,
.ops-feed {
  display: grid;
  gap: 12px;
}

.os-history-item,
.ops-feed-item {
  padding: 14px;
  border: 1px solid #e5edf7;
  border-radius: 14px;
  background: #fff;
}

.os-history-item.muted,
.ops-feed-item.muted {
  background: #f8fafc;
}

.os-history-item span,
.ops-feed-meta span {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.os-history-item strong,
.ops-feed-meta strong,
.ops-feed-meta small {
  display: block;
}

.os-history-item p,
.ops-feed-item p {
  margin: 6px 0;
  color: #47536d;
}

.checklist-form {
  display: grid;
  gap: 10px;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e5edf7;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

@media (max-width: 900px) {
  .os-timeline-public {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .input-action {
    grid-template-columns: 1fr;
  }
}

.os-guidance {
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.os-guidance h3 {
  margin: 0 0 6px;
  color: var(--os-ink);
  font-size: 1rem;
  font-weight: 900;
}

.os-guidance p {
  margin: 0 0 12px;
  color: var(--os-muted);
  font-weight: 600;
}

.os-guidance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.os-guidance-grid span,
.template-bar .btn {
  border-radius: 999px;
  font-weight: 800;
}

.os-guidance-grid span {
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 0.76rem;
}

.template-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.simple-flow-card {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.simple-flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.simple-flow-step span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
}

.simple-flow-step strong {
  color: var(--os-ink);
  font-size: 0.94rem;
}

.simple-flow-step small {
  color: var(--os-muted);
  font-weight: 650;
}

/* Admin command center */
.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.22), transparent 34%),
    linear-gradient(135deg, #0f241f 0%, #102f29 48%, #f8fafc 49%, #ffffff 100%);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.admin-hero h2 {
  margin: 4px 0 8px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.admin-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.admin-kicker {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #bff4e9;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-hero-actions .btn {
  border-radius: 999px;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.ops-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ops-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #e5edf7;
  border-radius: 20px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ops-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.11);
}

.ops-chip span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

.ops-chip strong {
  font-size: 1.05rem;
  font-weight: 950;
}

.ops-chip.danger { border-color: #fecaca; background: #fff7f7; }
.ops-chip.warning { border-color: #fde68a; background: #fffbeb; }
.ops-chip.info { border-color: #bfdbfe; background: #eff6ff; }
.ops-chip.success { border-color: #bbf7d0; background: #f0fdf4; }

.simple-admin-guide,
.simple-status-guide {
  border: 1px solid #dbe7e2;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #f3f8f5);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.simple-admin-guide {
  padding: 18px;
}

.simple-admin-guide-head {
  margin-bottom: 14px;
}

.simple-admin-guide-head span,
.simple-next-card .eyebrow {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.simple-admin-guide-head strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
  margin-top: 3px;
}

.simple-admin-guide-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.simple-admin-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.simple-admin-step {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e2ece7;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.simple-admin-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.simple-admin-step span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(31, 91, 75, 0.12);
  color: var(--brand);
  font-weight: 900;
}

.simple-admin-step small {
  color: var(--muted);
  font-weight: 650;
}

.simple-status-guide {
  padding: 13px 16px;
}

.simple-status-guide div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.simple-status-guide span {
  color: var(--muted);
  font-size: 0.86rem;
}

.simple-status-guide b {
  color: var(--brand);
}

.simple-next-card {
  border-color: rgba(31, 91, 75, 0.18);
  margin-bottom: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(31, 91, 75, 0.12), transparent 36%),
    #ffffff;
}

.simple-next-action {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(31, 91, 75, 0.1);
  color: var(--brand);
  font-weight: 900;
  font-size: 0.84rem;
}

.dashboard-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.notification-message {
  max-width: 460px;
  color: #334155;
}

.audit-json {
  display: inline-block;
  max-width: 420px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-row {
  border-left: 3px solid #ef4444;
  padding-left: 10px;
}

@media (max-width: 1100px) {
  .request-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .simple-flow-card,
  .simple-admin-guide-grid,
  .ops-strip,
  .dashboard-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-hero {
    background: linear-gradient(135deg, #0f241f, #123c35);
  }
}

@media (max-width: 680px) {
  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
    border-radius: 22px;
  }
  .admin-hero-actions {
    justify-content: stretch;
    width: 100%;
  }
  .admin-hero-actions .btn {
    flex: 1 1 100%;
  }
  .simple-flow-card,
  .simple-admin-guide-grid,
  .ops-strip,
  .dashboard-grid.compact {
    grid-template-columns: 1fr;
  }
  .simple-status-guide div {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---- Triagem PE: vídeo no formulário e evidências no painel ---- */
.os-region-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(31, 91, 75, 0.1);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.os-video-slot {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.os-upload-slot.is-video {
  border-style: dashed;
  background: var(--surface-muted);
}

.os-video-preview video {
  width: 100%;
  max-height: 320px;
  border-radius: 12px;
  background: #000;
}

.evidence-badges {
  display: flex;
  gap: 6px;
}

.evidence-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.evidence-video {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.evidence-video video,
.evidence-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.evidence-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.evidence-embed.is-empty {
  display: grid;
  place-items: center;
  color: #cfd8d5;
  font-size: 0.9rem;
}

.evidence-video figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.evidence-missing {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px dashed #e0b84c;
  background: #fff9e8;
  color: #6b5413;
  font-size: 0.9rem;
}

.evidence-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.evidence-photo {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--surface-muted);
  cursor: zoom-in;
}

.evidence-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.evidence-photo:hover img {
  transform: scale(1.04);
}

.evidence-photo span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(12, 25, 22, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.evidence-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 10, 9, 0.92);
}

.evidence-lightbox[hidden] {
  display: none;
}

.evidence-lightbox figure {
  margin: 0;
  max-width: 88vw;
  max-height: 86vh;
  text-align: center;
  overflow: auto;
}

.evidence-lightbox img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.evidence-lightbox img.is-zoomed {
  cursor: zoom-out;
}

.evidence-lightbox figcaption {
  margin-top: 10px;
  color: #dfe7e4;
  font-size: 0.9rem;
}

.evidence-lightbox button,
.evidence-lightbox a {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}

.evidence-lightbox .lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
}

.evidence-lightbox .lb-prev,
.evidence-lightbox .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
}

.evidence-lightbox .lb-prev { left: 16px; }
.evidence-lightbox .lb-next { right: 16px; }

.evidence-lightbox .lb-tools {
  position: absolute;
  bottom: 18px;
  display: flex;
  gap: 10px;
}

.evidence-lightbox .lb-tools > * {
  padding: 6px 16px;
  font-size: 0.88rem;
}
