/* ─── BudgetFlex88 — style.css ─────────────────────────────────────────── */

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --primary: #2563EB;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --success: #10B981;
  --success-dark: #059669;
  --danger: #EF4444;
  --danger-dark: #dc2626;
  --warning: #F59E0B;
  --info: #3B82F6;
  --whatsapp: #25D366;
  --sidebar-w: 240px;
  --topbar-h: 60px;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 2px 4px -1px rgba(0, 0, 0, .04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08);
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── App Layout ───────────────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--gray-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: transform .25s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
}

.logo-accent {
  color: #10B981;
}

.sidebar-section-label {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
  padding: 14px 18px 4px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 4px 10px;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--gray-400);
  font-size: .85rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
  text-decoration: none;
}

.nav-item.active {
  background: var(--primary);
  color: #fff;
}

.nav-item svg {
  flex-shrink: 0;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.user-name {
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.user-company {
  font-size: .7rem;
  color: var(--gray-500);
}

/* ── Main Wrapper ─────────────────────────────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ───────────────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.btn-toggle-sidebar {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  padding: 6px;
  border-radius: 6px;
  display: none;
}

.btn-toggle-sidebar:hover {
  background: var(--gray-100);
}

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

.topbar-user {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-600);
  font-size: .82rem;
}

.btn-logout {
  font-size: .82rem;
  color: var(--danger);
  font-weight: 500;
}

/* ── Page Content ─────────────────────────────────────────────────────────── */
.page-content {
  padding: 28px 28px;
  flex: 1;
}

/* ── Page Header ──────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

.page-subtitle {
  font-size: .82rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

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

.card-header h3 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-800);
}

.card-body {
  padding: 20px;
}

.card-body.p-0 {
  padding: 0;
}

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ── KPI Dashboard ────────────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}

.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-blue {
  background: #dbeafe;
  color: var(--primary);
}

.kpi-icon-indigo {
  background: #e0e7ff;
  color: #4f46e5;
}

.kpi-icon-green {
  background: #d1fae5;
  color: var(--success);
}

.kpi-icon-emerald {
  background: #d1fae5;
  color: var(--success-dark);
}

.kpi-icon-amber {
  background: #fef3c7;
  color: var(--warning);
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.kpi-value-sm {
  font-size: 1rem;
}

.kpi-label {
  font-size: .72rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ── Dashboard Bottom ────────────────────────────────────────────────────── */
.dashboard-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.card-chart .card-body {
  padding: 16px 20px;
}

.valor-total-display {
  font-size: .9rem;
  color: var(--gray-600);
}

.valor-total-display strong {
  color: var(--primary);
  font-size: 1rem;
}

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
}

.table th {
  padding: 11px 14px;
  text-align: left;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: var(--gray-50);
}

.th-actions,
.td-actions {
  text-align: right;
  width: 1px;
  white-space: nowrap;
}

.td-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  padding-right: 14px;
}

.table-public tfoot td {
  background: var(--gray-50);
  border-top: 2px solid var(--gray-200);
  font-size: .85rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
  line-height: 1.4;
  text-decoration: none !important;
}

.btn:active {
  transform: scale(.97);
}

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

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

.btn-secondary {
  background: #fff;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-800);
}

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

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

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

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

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}

.btn-whatsapp:hover {
  background: #1db954;
  border-color: #1db954;
  color: #fff;
}

.btn-block {
  width: 100%;
  margin-top: 4px;
}

.btn-lg {
  padding: 12px 28px;
  font-size: .9rem;
}

.btn-sm {
  padding: 5px 12px;
  font-size: .76rem;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group-full {
  grid-column: 1 / -1;
}

label {
  font-size: .76rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form-control {
  padding: 9px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: 7px;
  font-family: inherit;
  font-size: .85rem;
  color: var(--gray-800);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.form-control[disabled],
.form-control[readonly] {
  background: var(--gray-100);
  color: var(--gray-500);
  cursor: not-allowed;
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: .72rem;
  color: var(--gray-400);
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
  margin-top: 8px;
}

.required {
  color: var(--danger);
}

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .82rem;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.badge-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

/* ── Dropdown ─────────────────────────────────────────────────────────────── */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  z-index: 500;
  overflow: hidden;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 14px;
  font-size: .8rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-700);
  font-family: inherit;
  font-weight: 500;
  transition: background .1s;
}

.dropdown-item:hover {
  background: var(--gray-100);
}

.dropdown-item.active {
  color: var(--primary);
  font-weight: 600;
}

/* ── Empty State ──────────────────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 20px;
  color: var(--gray-400);
  font-size: .85rem;
}

.empty-state-sm {
  padding: 28px 20px;
  text-align: center;
  color: var(--gray-400);
  font-size: .82rem;
}

/* ── Filter Card ──────────────────────────────────────────────────────────── */
.card-filter .card-body {
  padding: 16px 20px;
}

.filter-form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-form .form-group {
  flex: 1;
  min-width: 160px;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding-bottom: 0;
}

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 95%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h4 {
  font-size: .95rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--gray-500);
  padding: 4px 8px;
  border-radius: 6px;
}

.modal-close:hover {
  background: var(--gray-100);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── Auth ─────────────────────────────────────────────────────────────────── */
.public-layout {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #0369a1 100%);
  min-height: 100vh;
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
}

.auth-card-lg {
  max-width: 640px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.auth-logo h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
}

.auth-logo h1 span {
  color: var(--success);
}

.auth-subtitle {
  font-size: .85rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.auth-link {
  text-align: center;
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: 18px;
}

/* ── Badges de Mídia na Proposta Pública ──────────────────────────────────── */
.midia-item-wrapper {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.midia-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity .15s, transform .1s;
  border: 1.5px solid transparent;
  width: fit-content;
}

.midia-item-badge:hover {
  opacity: .85;
  transform: scale(.98);
}

.midia-badge-foto {
  background: #fce7f3;
  color: #9d174d;
  border-color: #f9a8d4;
}

.midia-badge-doc {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.midia-badge-video {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}

.midia-badge-yt {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.midia-badge-ig {
  background: #fce7f3;
  color: #831843;
  border-color: #f9a8d4;
}

.midia-badge-pin {
  background: #fee2e2;
  color: #7f1d1d;
  border-color: #fca5a5;
}

.midia-badge-flickr {
  background: #dbeafe;
  color: #1e3a8a;
  border-color: #93c5fd;
}

.midia-badge-tiktok {
  background: #f0fffe;
  color: #010101;
  border-color: #69c9d0;
}

/* Player YouTube embutido */
.midia-yt-embed {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.midia-yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Mídia / Link Externo (form de produtos) ──────────────────────────────── */

.midia-section {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.midia-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}

.midia-optional {
  font-weight: 400;
  text-transform: none;
  color: var(--gray-400);
  font-size: .78rem;
  letter-spacing: 0;
}

.input-link-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-300);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.input-link-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.input-link-icon {
  padding: 0 10px;
  font-size: 1.1rem;
  background: var(--gray-100);
  border-right: 1.5px solid var(--gray-200);
  height: 100%;
  display: flex;
  align-items: center;
  min-height: 38px;
  user-select: none;
}

.input-link-field {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  flex: 1;
}

.midia-preview-saved {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.midia-preview-saved a {
  color: var(--primary);
  word-break: break-all;
}

/* ── Google OAuth Botão ───────────────────────────────────────────────────── */

.google-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: .78rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-divider span {
  white-space: nowrap;
  padding: 0 4px;
}

/* ── Configurações ────────────────────────────────────────────────────────── */
.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.config-card-full {
  grid-column: 1 / -1;
}

/* ── Proposta Pública ─────────────────────────────────────────────────────── */
.public-proposta-wrapper {
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.public-proposta-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
  overflow: hidden;
}

.public-header {
  background: linear-gradient(135deg, #1e3a8a, #2563EB);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.public-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-logo .logo-text {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.public-logo .logo-accent {
  color: #10B981;
}

.public-numero {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}

.public-section {
  padding: 24px 28px;
  border-bottom: 1px solid var(--gray-100);
}

.public-section:last-child {
  border-bottom: none;
}

.public-titulo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 14px;
}

.public-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-400);
}

.meta-value {
  font-size: .85rem;
  color: var(--gray-800);
  font-weight: 500;
}

.public-section-title {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--gray-700);
}

.public-obs {
  font-size: .85rem;
  color: var(--gray-600);
  background: var(--gray-50);
  padding: 14px;
  border-radius: 8px;
  line-height: 1.7;
}

.public-actions {
  background: var(--gray-50);
}

.public-actions-desc {
  font-size: .82rem;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.public-status-final {
  text-align: center;
  padding: 20px;
  font-size: .9rem;
  font-weight: 500;
}

.public-status-aprovado {
  background: #d1fae5;
  color: #065f46;
}

.public-status-reprovado {
  background: #fee2e2;
  color: #991b1b;
}

.public-footer {
  text-align: center;
  padding: 14px;
  font-size: .72rem;
  color: var(--gray-400);
  background: var(--gray-50);
}

/* ── Utilities ────────────────────────────────────────────────────────────── */
.d-flex {
  display: flex;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--gray-400);
}

.text-success {
  color: var(--success);
}

.mt-3 {
  margin-top: 12px;
}

.mb-3 {
  margin-bottom: 12px;
}

.py-3 {
  padding-top: 12px;
  padding-bottom: 12px;
}

.fw-bold {
  font-weight: 700;
}

code {
  background: var(--gray-100);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .8em;
}

/* ── Sidebar Overlay (mobile) ─────────────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 999;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .main-wrapper {
    margin-left: 0;
  }

  .btn-toggle-sidebar {
    display: flex;
  }

  .page-content {
    padding: 16px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-card {
    padding: 24px 20px;
  }

  .public-proposta-wrapper {
    padding: 16px;
  }

  .public-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .config-grid {
    grid-template-columns: 1fr;
  }

  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-user {
    display: none;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}