@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;600;700;800&family=Inter:wght@400;500;600;700&family=Roboto:wght@400;500;700&family=Montserrat:wght@500;600;700;800&family=Open+Sans:wght@400;600;700&family=Lato:wght@400;700&family=Merriweather:wght@400;700&family=Playfair+Display:wght@600;700;800&family=Lora:wght@400;600;700&display=swap');

:root {
  --bs-primary: #0F172A;
  --bs-primary-rgb: 15, 23, 42;
  --bs-secondary: #059669;
  --bs-secondary-rgb: 5, 150, 105;
  --bs-info: #3B82F6;
  --bs-info-rgb: 59, 130, 246;
  --bs-warning: #1d4ed8;
  --bs-warning-rgb: 29, 78, 216;
  --bs-warning-text-emphasis: #1e3a8a;
  --bs-warning-bg-subtle: #dbeafe;
  --bs-warning-border-subtle: #93c5fd;
  --bs-body-color: #64748B;
  --bs-body-color-rgb: 100, 116, 139;
  --bs-font-sans-serif: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
}

html {
  font-size: 14px;
  height: 100%;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  html {
    font-size: clamp(12.5px, 0.72vw + 9.4px, 13.5px);
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: cc-vt-out 0.16s ease both;
}

::view-transition-new(root) {
  animation: cc-vt-in 0.22s ease both;
}

@keyframes cc-vt-out {
  from { opacity: 1; }
  to { opacity: 0.35; }
}

@keyframes cc-vt-in {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

html.cc-hold-scroll .dashboard-main,
html.cc-hold-scroll .login-main,
html.cc-hold-scroll body:not(.app-shell-body) > main {
  opacity: 1;
}

html.cc-soft-navigating,
html.cc-soft-navigating body {
  cursor: progress;
}

.dashboard-main,
.login-main {
  animation: cc-page-enter 0.22s ease;
}

.dashboard-main.cc-page-enter,
.login-main.cc-page-enter {
  animation: cc-page-enter 0.2s ease;
}

@keyframes cc-page-enter {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  .dashboard-main,
  .login-main,
  .dashboard-main.cc-page-enter,
  .login-main.cc-page-enter {
    animation: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  html.cc-hold-scroll .dashboard-main,
  html.cc-hold-scroll .login-main,
  html.cc-hold-scroll body:not(.app-shell-body) > main {
    opacity: 1;
  }
}

.validation-summary-valid {
  display: none !important;
}

html:has(body.app-shell-body) {
  height: 100dvh;
  overflow: hidden !important;
}

body {
  margin: 0;
  height: 100%;
  background:
    radial-gradient(circle at top left, rgba(5, 150, 105, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 22%),
    linear-gradient(180deg, #F4FBF8 0%, #F8FAFC 52%, #F3F6FB 100%);
}

.app-shell-body {
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden !important;
}

.app-shell-body.sidebar-open-lock {
  overflow: hidden;
}

.dashboard-layout {
  min-height: 100dvh;
  height: 100dvh;
  position: relative;
  isolation: isolate;
  padding: 0.15rem 0.35rem 0.35rem;
  gap: 0.35rem;
}

.dashboard-shell {
  --sidebar-width: 292px;
  --sidebar-collapsed-width: 88px;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .dashboard-shell {
    --sidebar-width: 232px;
  }
}

@media (min-width: 1400px) and (max-width: 1599.98px) {
  .dashboard-shell {
    --sidebar-width: 256px;
  }
}

.stat-metric,
.app-shell-body .glass-card-stat .display-6,
.app-shell-body .card .display-6 {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1.15;
  color: var(--cc-heading);
}

.dashboard-sidebar-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 1035;
}

.dashboard-sidebar {
  position: fixed;
  top: 0.15rem;
  left: 0.35rem;
  bottom: 0.35rem;
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  background: transparent;
  color: var(--bs-primary);
  transition: width 0.25s ease, flex-basis 0.25s ease, transform 0.25s ease;
  z-index: 1040;
}

.dashboard-sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  padding: 0.8rem 1.15rem;
  border-radius: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(241, 245, 249, 0.64)),
    rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.dashboard-sidebar-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.40) transparent;
}

.dashboard-sidebar-body::-webkit-scrollbar {
  width: 0.45rem;
}

.dashboard-sidebar-body::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-sidebar-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
}

.dashboard-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #334155;
  border-radius: 0.85rem;
  padding: 0.58rem 0.7rem;
  margin: 0 0.1rem 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.dashboard-sidebar .nav-link.active,
.dashboard-sidebar .nav-link:hover {
  color: #0F172A;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(226, 232, 240, 0.55)),
    rgba(255, 255, 255, 0.78);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.dashboard-sidebar .nav-link.active {
  background:
    linear-gradient(135deg, rgba(219, 252, 231, 0.82), rgba(209, 250, 229, 0.50)),
    rgba(240, 253, 244, 0.84);
  border-color: rgba(5, 150, 105, 0.20);
  color: #065F46;
}

.dashboard-sidebar .nav-link i {
  flex: 0 0 1.4rem;
  text-align: center;
}

.sidebar-section {
  font-size: 0.7rem;
  letter-spacing: .08em;
  margin-bottom: 0.5rem;
}

.sidebar-section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  opacity: 0.72;
  padding-top: 0.3rem;
}

.sidebar-label {
  min-width: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-logo {
  width: 32px;
  height: 32px;
  border-radius: 0.75rem;
  background: var(--bs-secondary);
}

.dashboard-sidebar-top {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding-bottom: 0.65rem;
}

.dashboard-brand-mark {
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(5, 150, 105, 0.20), rgba(59, 130, 246, 0.14)),
    rgba(255, 255, 255, 0.72);
  color: #065F46;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.dashboard-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.2rem;
}

.dashboard-brand-title {
  letter-spacing: 0.01em;
  max-width: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
  text-align: left;
  line-height: 1.2;
  font-size: 1.05rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.dashboard-sidebar-top .min-w-0 > a {
  width: 100%;
  max-width: 100%;
}

.dashboard-brand-subtitle {
  font-size: 10px;
  letter-spacing: 0.16em;
}

.dashboard-sidebar-toggle,
.dashboard-mobile-toggle,
.header-icon-button,
.dashboard-search-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(241, 245, 249, 0.62)),
    rgba(255, 255, 255, 0.72);
  color: #334155;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-sidebar-toggle:hover,
.dashboard-mobile-toggle:hover,
.header-icon-button:hover,
.dashboard-search-toggle:hover {
  color: #0F172A;
  transform: translateY(-1px);
}

.dashboard-mobile-toggle {
  display: none;
}

.sidebar-cta-button {
  min-height: 3rem;
  border: 0;
}

.dashboard-sidebar-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  flex: 0 0 auto;
}

.sidebar-status-panel {
  padding: 0.85rem 0.9rem;
  border-radius: 1.1rem;
  background:
    linear-gradient(135deg, rgba(219, 252, 231, 0.62), rgba(224, 242, 254, 0.58)),
    rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.sidebar-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: #0F172A;
}

.sidebar-status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #10B981, #3B82F6);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12);
}

.sidebar-status-meta {
  margin-top: 0.5rem;
  color: #64748B;
  font-size: 0.85rem;
}

.text-primary {
  color: var(--bs-primary) !important;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

.text-secondary {
  color: var(--bs-secondary) !important;
}

.bg-secondary {
  background-color: var(--bs-secondary) !important;
}

.app-shell-body .btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.14);
}
.app-shell-body .btn-primary:hover, .app-shell-body .btn-primary:active, .app-shell-body .btn-primary.active {
  background-color: #0b111e;
  border-color: #080d17;
}

.app-shell-body .btn-secondary {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  color: #fff;
  box-shadow: 0 14px 24px rgba(5, 150, 105, 0.16);
}
.app-shell-body .btn-secondary:hover, .app-shell-body .btn-secondary:active, .app-shell-body .btn-secondary.active {
  background-color: #047a55;
  border-color: #046c4b;
}

.app-shell-body .btn-outline-primary {
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.06);
}
.app-shell-body .btn-outline-primary:hover {
  background-color: rgba(15, 23, 42, 0.12);
  color: #0F172A;
}

.app-shell-body .table .btn-outline-primary {
  color: #1D4ED8;
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
}
.app-shell-body .table .btn-outline-primary:hover,
.app-shell-body .table .btn-outline-primary:focus-visible,
.app-shell-body .table .btn-outline-primary:active {
  color: #fff;
  background-color: #3B82F6;
  border-color: #2563EB;
}

.app-shell-body .btn-outline-secondary {
  color: #334155;
  border-color: rgba(148, 163, 184, 0.20);
  background: rgba(148, 163, 184, 0.10);
}

.app-shell-body .btn-outline-secondary:hover {
  color: #0F172A;
  background: rgba(148, 163, 184, 0.18);
}

.app-shell-body .btn-outline-success {
  color: #065F46;
  border-color: rgba(5, 150, 105, 0.18);
  background: rgba(5, 150, 105, 0.10);
}

.app-shell-body .btn-outline-success:hover {
  color: #064E3B;
  background: rgba(5, 150, 105, 0.18);
}

.app-shell-body .btn {
  border-radius: 1rem;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.app-shell-body .btn:hover {
  transform: translateY(-1px);
}

.app-shell-body .btn-primary-soft,
.app-shell-body .btn-success-soft,
.app-shell-body .btn-secondary-soft {
  border: 1px solid transparent;
  font-weight: 600;
}

.app-shell-body .btn-primary-soft {
  background: rgba(59, 130, 246, 0.10);
  color: #1D4ED8;
}

.app-shell-body .btn-primary-soft:hover {
  background: rgba(59, 130, 246, 0.16);
  color: #1E40AF;
}

.app-shell-body .btn-success-soft {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.app-shell-body .btn-success-soft:hover {
  background: rgba(5, 150, 105, 0.18);
  color: #065F46;
}

.app-shell-body .btn-secondary-soft {
  background: rgba(148, 163, 184, 0.14);
  color: #334155;
}

.app-shell-body .btn-secondary-soft:hover {
  background: rgba(148, 163, 184, 0.22);
  color: #0F172A;
}

.app-shell-body .card {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.52));
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  box-shadow:
    0 10px 32px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  border-radius: 1.35rem;
}

.app-shell-body .glass-card {
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    0 14px 38px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-radius: 1.35rem;
  overflow: hidden;
}

.app-shell-body .glass-card-edital {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-shell-body .glass-card-edital.is-closed {
  opacity: 0.82;
}

.app-shell-body .glass-card-edital .glass-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.app-shell-body .glass-card-edital .glass-card-header-org {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.app-shell-body .glass-card-edital .glass-card-header-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.app-shell-body .glass-card-edital .glass-card-header-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell-body .glass-card-edital .glass-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.62));
  backdrop-filter: blur(14px) saturate(155%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
}

.app-shell-body .glass-card-edital .glass-card-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.app-shell-body .glass-card-edital .glass-card-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.75rem;
}

.app-shell-body .glass-card-edital .glass-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0F172A;
  margin-top: 0.65rem;
  margin-bottom: 1rem;
}

.app-shell-body .glass-card-edital .glass-card-metric-value {
  color: #0F172A;
}

.app-shell-body .glass-card-edital .glass-card-footer {
  margin-top: auto;
  padding-top: 0.35rem;
}

.app-shell-body .glass-card-accent-primary {
  --glass-card-accent-solid: #0F172A;
  --glass-card-accent-hover-text: #FFFFFF;
}

.app-shell-body .glass-card-accent-success {
  --glass-card-accent-solid: #059669;
  --glass-card-accent-hover-text: #FFFFFF;
}

.app-shell-body .glass-card-accent-warning {
  --glass-card-accent-solid: #1d4ed8;
  --glass-card-accent-hover-text: #FFFFFF;
}

.app-shell-body .glass-card-accent-info {
  --glass-card-accent-solid: #0891B2;
  --glass-card-accent-hover-text: #FFFFFF;
}

.app-shell-body .glass-card-accent-danger {
  --glass-card-accent-solid: #DC2626;
  --glass-card-accent-hover-text: #FFFFFF;
}

.app-shell-body .glass-card-accent-secondary {
  --glass-card-accent-solid: #64748B;
  --glass-card-accent-hover-text: #FFFFFF;
}

.app-shell-body .glass-card-edital .glass-card-action-btn {
  --bs-btn-bg: #ECEFF3;
  --bs-btn-color: #64748B;
  --bs-btn-border-color: #D8DEE6;
  --bs-btn-hover-bg: #ECEFF3;
  --bs-btn-hover-color: #64748B;
  --bs-btn-hover-border-color: #D8DEE6;
  --bs-btn-active-bg: #ECEFF3;
  --bs-btn-active-color: #64748B;
  --bs-btn-active-border-color: #D8DEE6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  border-radius: 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  padding: 0.55rem 1rem;
  background-color: #ECEFF3 !important;
  background-image: none !important;
  border: 1px solid #D8DEE6 !important;
  color: #64748B !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.app-shell-body .glass-card-edital a.glass-card-action-btn:link,
.app-shell-body .glass-card-edital a.glass-card-action-btn:visited {
  color: #64748B !important;
}

.app-shell-body .glass-card-edital .glass-card-action-main {
  flex: 1 1 auto;
  width: 100%;
}

.app-shell-body .glass-card-edital .glass-card-action-btn:not(:disabled):not(.is-disabled):hover,
.app-shell-body .glass-card-edital a.glass-card-action-btn:not(:disabled):hover,
.app-shell-body .glass-card-edital .glass-card-action-btn:not(:disabled):not(.is-disabled):focus-visible,
.app-shell-body .glass-card-edital a.glass-card-action-btn:not(:disabled):focus-visible {
  transform: translateY(-1px);
}

.app-shell-body .glass-card-accent-primary .glass-card-action-btn:not(:disabled):not(.is-disabled):hover,
.app-shell-body .glass-card-accent-primary a.glass-card-action-btn:not(:disabled):hover,
.app-shell-body .glass-card-accent-primary .glass-card-action-btn:not(:disabled):not(.is-disabled):focus-visible,
.app-shell-body .glass-card-accent-primary a.glass-card-action-btn:not(:disabled):focus-visible {
  background-color: var(--glass-card-accent-solid) !important;
  border-color: var(--glass-card-accent-solid) !important;
  color: var(--glass-card-accent-hover-text) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12) !important;
}

.app-shell-body .glass-card-accent-success .glass-card-action-btn:not(:disabled):not(.is-disabled):hover,
.app-shell-body .glass-card-accent-success a.glass-card-action-btn:not(:disabled):hover,
.app-shell-body .glass-card-accent-success .glass-card-action-btn:not(:disabled):not(.is-disabled):focus-visible,
.app-shell-body .glass-card-accent-success a.glass-card-action-btn:not(:disabled):focus-visible {
  background-color: var(--glass-card-accent-solid) !important;
  border-color: var(--glass-card-accent-solid) !important;
  color: var(--glass-card-accent-hover-text) !important;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.16) !important;
}

.app-shell-body .glass-card-accent-warning .glass-card-action-btn:not(:disabled):not(.is-disabled):hover,
.app-shell-body .glass-card-accent-warning a.glass-card-action-btn:not(:disabled):hover,
.app-shell-body .glass-card-accent-warning .glass-card-action-btn:not(:disabled):not(.is-disabled):focus-visible,
.app-shell-body .glass-card-accent-warning a.glass-card-action-btn:not(:disabled):focus-visible {
  background-color: var(--glass-card-accent-solid) !important;
  border-color: var(--glass-card-accent-solid) !important;
  color: var(--glass-card-accent-hover-text) !important;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.16) !important;
}

.app-shell-body .glass-card-accent-info .glass-card-action-btn:not(:disabled):not(.is-disabled):hover,
.app-shell-body .glass-card-accent-info a.glass-card-action-btn:not(:disabled):hover,
.app-shell-body .glass-card-accent-info .glass-card-action-btn:not(:disabled):not(.is-disabled):focus-visible,
.app-shell-body .glass-card-accent-info a.glass-card-action-btn:not(:disabled):focus-visible {
  background-color: var(--glass-card-accent-solid) !important;
  border-color: var(--glass-card-accent-solid) !important;
  color: var(--glass-card-accent-hover-text) !important;
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.16) !important;
}

.app-shell-body .glass-card-accent-danger .glass-card-action-btn:not(:disabled):not(.is-disabled):hover,
.app-shell-body .glass-card-accent-danger a.glass-card-action-btn:not(:disabled):hover,
.app-shell-body .glass-card-accent-danger .glass-card-action-btn:not(:disabled):not(.is-disabled):focus-visible,
.app-shell-body .glass-card-accent-danger a.glass-card-action-btn:not(:disabled):focus-visible {
  background-color: var(--glass-card-accent-solid) !important;
  border-color: var(--glass-card-accent-solid) !important;
  color: var(--glass-card-accent-hover-text) !important;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.16) !important;
}

.app-shell-body .glass-card-accent-secondary .glass-card-action-btn:not(:disabled):not(.is-disabled):hover,
.app-shell-body .glass-card-accent-secondary a.glass-card-action-btn:not(:disabled):hover,
.app-shell-body .glass-card-accent-secondary .glass-card-action-btn:not(:disabled):not(.is-disabled):focus-visible,
.app-shell-body .glass-card-accent-secondary a.glass-card-action-btn:not(:disabled):focus-visible {
  background-color: var(--glass-card-accent-solid) !important;
  border-color: var(--glass-card-accent-solid) !important;
  color: var(--glass-card-accent-hover-text) !important;
  box-shadow: 0 8px 18px rgba(100, 116, 139, 0.16) !important;
}

.app-shell-body .glass-card-edital .glass-card-action-btn:active:not(:disabled),
.app-shell-body .glass-card-edital a.glass-card-action-btn:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.94);
}

.app-shell-body .glass-card-edital .glass-card-action-btn:disabled,
.app-shell-body .glass-card-edital .glass-card-action-btn:disabled:hover,
.app-shell-body .glass-card-edital .glass-card-action-btn:disabled:focus-visible {
  background-color: #ECEFF3 !important;
  border-color: #D8DEE6 !important;
  color: #94A3B8 !important;
  opacity: 0.72;
  cursor: not-allowed;
  box-shadow: none !important;
  filter: none;
  transform: none;
}

.app-shell-body .glass-card-edital .glass-card-action-icon {
  width: 2.65rem;
  flex-shrink: 0;
  padding-inline: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-shell-body .glass-card-edital .glass-card-prazo-open {
  color: #94A3B8;
}

.app-shell-body .glass-card-edital .glass-card-prazo-urgent {
  color: #1d4ed8;
  opacity: 0.86;
}

.app-shell-body .glass-card-accent-primary .glass-card-header {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.09));
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

.app-shell-body .glass-card-accent-primary .glass-card-header-icon {
  background: rgba(15, 23, 42, 0.16);
  color: #0F172A;
}

.app-shell-body .glass-card-accent-primary .glass-card-header-label {
  color: #334155;
}

.app-shell-body .glass-card-accent-success .glass-card-header {
  background:
    linear-gradient(180deg, rgba(5, 150, 105, 0.18), rgba(5, 150, 105, 0.10));
  border-bottom-color: rgba(5, 150, 105, 0.14);
}

.app-shell-body .glass-card-accent-success .glass-card-header-icon {
  background: rgba(5, 150, 105, 0.20);
  color: #047857;
}

.app-shell-body .glass-card-accent-success .glass-card-header-label {
  color: #065F46;
}

.app-shell-body .glass-card-accent-warning .glass-card-header {
  background:
    linear-gradient(180deg, rgba(29, 78, 216, 0.18), rgba(29, 78, 216, 0.10));
  border-bottom-color: rgba(29, 78, 216, 0.16);
}

.app-shell-body .glass-card-accent-warning .glass-card-header-icon {
  background: rgba(29, 78, 216, 0.18);
  color: #1d4ed8;
}

.app-shell-body .glass-card-accent-warning .glass-card-header-label {
  color: #1e40af;
}

.app-shell-body .glass-card-accent-info .glass-card-header {
  background:
    linear-gradient(180deg, rgba(6, 182, 212, 0.18), rgba(6, 182, 212, 0.10));
  border-bottom-color: rgba(6, 182, 212, 0.14);
}

.app-shell-body .glass-card-accent-info .glass-card-header-icon {
  background: rgba(6, 182, 212, 0.20);
  color: #0E7490;
}

.app-shell-body .glass-card-accent-info .glass-card-header-label {
  color: #0C4A6E;
}

.app-shell-body .glass-card-accent-danger .glass-card-header {
  background:
    linear-gradient(180deg, rgba(239, 68, 68, 0.17), rgba(239, 68, 68, 0.09));
  border-bottom-color: rgba(239, 68, 68, 0.14);
}

.app-shell-body .glass-card-accent-danger .glass-card-header-icon {
  background: rgba(239, 68, 68, 0.19);
  color: #B91C1C;
}

.app-shell-body .glass-card-accent-danger .glass-card-header-label {
  color: #991B1B;
}

.app-shell-body .glass-card-accent-secondary .glass-card-header {
  background:
    linear-gradient(180deg, rgba(100, 116, 139, 0.16), rgba(100, 116, 139, 0.09));
  border-bottom-color: rgba(100, 116, 139, 0.12);
}

.app-shell-body .glass-card-accent-secondary .glass-card-header-icon {
  background: rgba(100, 116, 139, 0.18);
  color: #475569;
}

.app-shell-body .glass-card-accent-secondary .glass-card-header-label {
  color: #475569;
}

.app-shell-body .glass-card-stat .card-body {
  background: transparent;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .quick-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) {
  .quick-actions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.quick-action-tile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.15rem;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.25;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.quick-action-tile:hover,
.quick-action-tile:focus-visible {
  color: #0f172a;
  background: #fff;
  border-color: rgba(29, 78, 216, 0.28);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.quick-action-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 2.15rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.06);
  color: #1d4ed8;
}

.quick-action-tile-icon .bi {
  font-size: 1.05rem;
}

.quick-action-tile--primary {
  background: linear-gradient(180deg, #1d4ed8, #1e40af);
  border-color: transparent;
  color: #fff;
}

.quick-action-tile--primary .quick-action-tile-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.quick-action-tile--primary:hover,
.quick-action-tile--primary:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  border-color: transparent;
}

.quick-action-tile--success {
  background: linear-gradient(180deg, #059669, #047857);
  border-color: transparent;
  color: #fff;
}

.quick-action-tile--success .quick-action-tile-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.quick-action-tile--success:hover,
.quick-action-tile--success:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #10b981, #059669);
  border-color: transparent;
}

.dashboard-map {
  height: min(360px, 42vh);
  width: 100%;
}

.leaflet-tooltip.cc-map-tooltip {
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.7rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  font-size: 0.82rem;
  line-height: 1.35;
  color: #0f172a;
}

@media (max-width: 1399.98px) {
  .dashboard-map {
    height: min(280px, 38vh);
  }
}

.app-shell-body .card-header,
.app-shell-body .card-footer {
  background: var(--cc-surface-muted);
  border-color: var(--cc-border);
  color: var(--cc-heading);
}

.app-shell-body .form-control:not(.form-control-plaintext),
.app-shell-body .form-select {
  min-height: 3rem;
  border-radius: 1rem;
  border-color: var(--cc-field-outline);
  background-color: var(--cc-input);
  color: var(--cc-text);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.app-shell-body textarea.form-control {
  min-height: 7rem;
}

.app-shell-body .form-control:focus,
.app-shell-body .form-select:focus {
  border-color: rgba(5, 150, 105, 0.42);
  box-shadow: 0 0 0 0.22rem rgba(5, 150, 105, 0.12);
}

.app-shell-body .table > :not(caption) > * > * {
  border-bottom-color: var(--cc-border);
}

.badge.bg-primary.bg-opacity-10 {
  background-color: rgba(15, 23, 42, 0.1) !important;
  color: var(--bs-primary);
}
.badge.bg-secondary.bg-opacity-10 {
  background-color: rgba(5, 150, 105, 0.1) !important;
  color: var(--bs-secondary);
}

.dashboard-content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.62)),
    rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 1.55rem;
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: calc(var(--sidebar-width) + 0.35rem);
  height: calc(100dvh - 0.5rem);
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding-top: 0;
}

.dashboard-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  overflow: visible;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  flex: 0 0 auto;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
  z-index: 1080;
}

.dashboard-header::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15, 23, 42, 0.06) 8%,
    rgba(5, 150, 105, 0.22) 42%,
    rgba(15, 23, 42, 0.12) 58%,
    rgba(15, 23, 42, 0.06) 92%,
    transparent 100%
  );
  pointer-events: none;
}

.dashboard-main {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 0;
  padding-top: 1.15rem;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

/* Listas e formulÃ¡rios nÃ£o podem encolher: o card com overflow:hidden
   cortava a Ãºltima linha (aÃ§Ãµes da OSC, tabelas de editais, etc.). */
.dashboard-main > *:not(.dashboard-footer) {
  flex-shrink: 0;
}

.dashboard-main > .dashboard-footer {
  flex-shrink: 0;
}

.dashboard-main::-webkit-scrollbar {
  width: 0.65rem;
}

.dashboard-main::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-main::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
}

.dashboard-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.35rem 0.15rem 0.15rem;
}

.dashboard-footer-brand {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: 0.02em;
}

.dashboard-footer-copy {
  font-size: 0.78rem;
  color: #475569;
}

.dashboard-footer-meta {
  font-size: 0.72rem;
  color: #94A3B8;
}

.page-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.page-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-card-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.page-table-wrapper {
  overflow-x: auto;
}

.table-mobile-min-w-md {
  min-width: 680px;
}

.table-mobile-min-w-lg {
  min-width: 820px;
}

.table-mobile-min-w-xl {
  min-width: 1040px;
}

.table-cell-break,
.content-break {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-cell-nowrap {
  white-space: nowrap;
}

.responsive-inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.responsive-inline-actions form {
  margin: 0;
}

.mobile-stack-input-group {
  display: flex;
  flex-wrap: nowrap;
}

.responsive-multiselect {
  min-height: 8.5rem;
}

.form-actions-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.form-actions-end .btn {
  min-width: 160px;
}

@media (max-width: 1279.98px) {
  .page-toolbar-actions {
    width: 100%;
  }

  .page-toolbar-actions > a,
  .page-toolbar-actions > button,
  .page-toolbar-actions > form {
    flex: 1 1 12rem;
    min-width: 0;
  }

  .form-actions-end .btn {
    min-width: 0;
    flex: 1 1 10rem;
  }

  .responsive-inline-actions {
    justify-content: flex-start;
  }
}

.search-input {
  max-width: 100%;
  min-height: 2.85rem;
  border-radius: 1rem;
  background-color: #fff;
  border-color: rgba(15, 23, 42, 0.34);
  padding-left: 2.35rem;
  padding-right: 0.95rem;
}

/* Dashboard Utilities */
.dashboard-main {
  background-color: transparent;
}

.stat-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.52));
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 10px 32px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  padding: 1.5rem;
  height: 100%;
}
.stat-icon-wrapper {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* Internal Simple CSS Chart */
.funding-chart-wrapper {
  height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding-top: 2rem;
}
.chart-bar-group {
  width: 14%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.chart-bar-bg {
  position: absolute;
  bottom: 30px;
  width: 100%;
  background: #F1F5F9;
  border-radius: 6px 6px 0 0;
  z-index: 1;
}
.chart-bar-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: var(--bs-secondary);
  border-radius: 4px;
  z-index: 2;
}
.chart-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--bs-body-color);
  margin-top: 8px;
}

/* Action Items Timeline */
.action-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1.5rem;
  border-left: 2px solid #E2E8F0;
  margin-left: 1rem;
}
.action-item:last-child {
  border-left-color: transparent;
}
.action-icon {
  position: absolute;
  left: -13px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-badge {
  min-width: 1.25rem;
  min-height: 1.25rem;
  font-size: 0.65rem;
  line-height: 1.25rem;
  padding: 0;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.10);
}

.notification-dropdown-root {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notification-dropdown {
  display: none;
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  left: auto;
  isolation: isolate;
  flex-direction: column;
  align-items: stretch;
  width: min(440px, calc(100vw - 2rem));
  max-height: min(72vh, calc(100vh - 5rem));
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 250, 252, 0.985)),
    rgba(255, 255, 255, 0.99);
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.20);
  z-index: 2100;
}

.notification-dropdown-root.is-open {
  z-index: 1070;
}

.notification-dropdown-root.is-open .notification-dropdown,
.notification-dropdown.is-open {
  display: flex;
  z-index: 2100;
}

.notification-dropdown::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    rgba(255, 255, 255, 0.98);
  z-index: -1;
}

.notification-dropdown-header {
  position: relative;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(248, 250, 252, 0.965)),
    rgba(255, 255, 255, 0.975);
}

.notification-dropdown-summary {
  position: relative;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96)),
    rgba(248, 250, 252, 0.98);
}

.notification-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.notification-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.92);
  line-height: 1.1;
  white-space: nowrap;
}

.notification-summary-label {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 600;
}

.notification-summary-value {
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 0.9rem;
  text-align: right;
}

.notification-tabs {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.98);
}

.notification-tabs-nav {
  display: flex;
  gap: 0.5rem;
}

.notification-tab-button {
  flex: 1 1 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748B;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.notification-tab-button.is-active {
  color: #0F172A;
  background: rgba(241, 245, 249, 0.95);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.notification-tab-panel {
  display: none;
  flex: 0 0 auto;
  min-height: 0;
}

.notification-tab-panel.is-active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.notification-tab-panel .notification-items-scroll {
  flex: 1 1 auto;
  min-height: 0;
}

.notification-read-toolbar {
  flex-shrink: 0;
}

.notification-header-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 1.85rem;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.88)),
    rgba(239, 246, 255, 0.72);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: #1D4ED8;
  font-size: 0.74rem;
  font-weight: 700;
}

.notification-header-count-label {
  color: #475569;
  font-weight: 600;
}

.notification-quick-actions {
  flex-wrap: wrap;
  gap: 0.55rem !important;
}

.notification-quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.35rem;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: #1D4ED8;
  line-height: 1;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.notification-quick-action:hover,
.notification-quick-action:focus-visible {
  transform: translateY(-1px);
  color: #1E40AF;
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow:
    0 14px 28px rgba(59, 130, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.notification-quick-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.72rem;
  height: 1.72rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  font-size: 0.98rem;
  line-height: 1;
}

.notification-quick-action .bi {
  line-height: 1;
}

.notification-quick-action-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.14);
  color: #1D4ED8;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.notification-quick-action--fila {
  padding-inline: 0.48rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(239, 246, 255, 0.9)),
    rgba(239, 246, 255, 0.78);
}

.notification-quick-action--fila:hover,
.notification-quick-action--fila:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(219, 234, 254, 0.94)),
    rgba(219, 234, 254, 0.86);
}

.notification-quick-action--docs {
  border-color: rgba(59, 130, 246, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(239, 246, 255, 0.9)),
    rgba(239, 246, 255, 0.76);
}

.notification-quick-action--docs .notification-quick-action-icon {
  background: rgba(59, 130, 246, 0.14);
  color: #2563EB;
}

.notification-quick-action--docs .notification-quick-action-count {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.18);
  color: #2563EB;
}

.notification-quick-action--docs:hover,
.notification-quick-action--docs:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(219, 234, 254, 0.95)),
    rgba(219, 234, 254, 0.84);
}

.notification-quick-action--logos {
  border-color: rgba(37, 99, 235, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(238, 242, 255, 0.9)),
    rgba(238, 242, 255, 0.74);
}

.notification-quick-action--logos .notification-quick-action-icon {
  background: rgba(37, 99, 235, 0.12);
  color: #1D4ED8;
}

.notification-quick-action--logos .notification-quick-action-count {
  background: rgba(37, 99, 235, 0.13);
  border-color: rgba(37, 99, 235, 0.16);
  color: #1D4ED8;
}

.notification-quick-action--logos:hover,
.notification-quick-action--logos:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(224, 231, 255, 0.94)),
    rgba(224, 231, 255, 0.82);
}

.dashboard-header-search {
  position: relative;
  width: min(320px, 100%);
  margin-right: auto;
}

.dashboard-header-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.15rem 0.25rem;
}

.dashboard-header-brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.dashboard-header-brand-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #059669;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-header-notifications {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  position: relative;
  z-index: 1046;
  overflow: visible;
}

.dashboard-header-search-desktop {
  display: block;
}

.dashboard-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  pointer-events: none;
}

.dashboard-header-actions {
  min-width: 0;
  margin-left: 0;
  position: relative;
  z-index: 1046;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .dashboard-header-search,
  .dashboard-header-search-desktop {
    width: min(16.5rem, 32vw);
    max-width: 16.5rem;
    flex: 0 1 16.5rem;
  }

  .dashboard-header-search-desktop .search-input {
    min-height: 2.55rem;
  }

  .dashboard-header-brand-title {
    font-size: 0.95rem;
  }

  .dashboard-page-heading h2,
  .dashboard-page-heading .h2 {
    font-size: 1.25rem;
  }
}

.dashboard-header-leading {
  min-width: 0;
  flex: 0 1 auto;
}

.dashboard-page-heading {
  min-width: 0;
  display: none;
}

.dashboard-page-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
}

.dashboard-page-subtitle {
  font-size: 0.82rem;
  color: #64748B;
  margin-top: 0.2rem;
}

.dashboard-profile-chip {
  padding: 0.45rem 0.55rem 0.45rem 0.45rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.dashboard-main > .d-flex.flex-column.gap-4 > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3,
.dashboard-main > .row:first-child,
.dashboard-main > div:first-child > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3 {
  padding-top: 0.35rem;
}

.dashboard-search-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1045;
}

.dashboard-search-panel {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dashboard-search-panel-card {
  padding: 1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}

.dashboard-search-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.dashboard-search-panel-input {
  min-height: 3rem;
}

.dashboard-shell.is-search-open .dashboard-search-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.dashboard-shell.is-search-open .dashboard-search-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dashboard-profile-name {
  font-size: 0.95rem;
}

.dashboard-profile-role {
  font-size: 0.75rem;
  color: #475569;
  font-weight: 500;
}

.notification-items-scroll {
  flex: 1 1 auto;
  min-height: 10rem;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.2rem 0.25rem 0.55rem;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.95);
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

.notification-empty-state {
  flex-shrink: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(248, 250, 252, 0.965)),
    rgba(255, 255, 255, 0.975);
}

.notification-items-scroll::-webkit-scrollbar {
  width: 0.7rem;
}

.notification-items-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.notification-items-scroll::-webkit-scrollbar-thumb {
  border: 0.18rem solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.72), rgba(100, 116, 139, 0.52));
  background-clip: padding-box;
}

.notification-summary-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.90)),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.85rem;
  padding: 0.45rem 0.65rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.notification-item-description {
  white-space: pre-line;
  word-break: break-word;
}

.notification-read-button {
  white-space: nowrap;
}

.notification-item-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 250, 252, 0.975)),
    rgba(255, 255, 255, 0.99);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.notification-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.notification-item-actions form {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.notification-item-meta {
  flex: 0 0 auto;
  min-width: 96px;
}

.notification-item-meta-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #64748B;
}

.notification-item-date {
  font-weight: 600;
  color: #475569;
}

.notification-item-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.solicitacao-chat-list {
  max-height: 420px;
  overflow-y: auto;
}

.solicitacao-chat-message {
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
}

.solicitacao-chat-message.is-admin {
  border-left: 4px solid #0F172A;
}

.solicitacao-chat-message.is-client {
  border-left: 4px solid #059669;
}

.solicitacao-chat-message.is-system {
  border-left: 4px solid #64748B;
  background: #F8FAFC;
}

.solicitacao-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}

.solicitacao-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.solicitacao-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.solicitacao-form-actions > .btn,
.solicitacao-form-actions > div,
.solicitacao-form-actions > a {
  flex: 1 1 220px;
}

.solicitacao-form-actions .btn {
  width: 100%;
  justify-content: center;
}

.solicitacao-form-submit {
  display: flex;
  justify-content: flex-start;
}

.solicitacao-form-submit .btn {
  min-width: 220px;
}

.solicitacao-form-check {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1rem;
  background: #F8FAFC;
  color: var(--cc-text, #1b1b1d);
}

.solicitacao-form-check .form-check-label {
  color: inherit;
}

.solicitacao-form-check .form-check-input {
  margin-top: 0.2rem;
}

.solicitacao-checklist-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.solicitacao-checklist-footer > * {
  min-width: 0;
}

.solicitacao-guidance-card {
  padding: 1rem 1.1rem;
  border: 1px solid #DBEAFE;
  border-radius: 1rem;
  background: #F8FBFF;
  color: var(--cc-text, #1b1b1d);
}

.solicitacao-action-preview {
  background: #F8FBFF;
  color: #1E3A8A;
}

.custom-toast-container {
  position: fixed !important;
  top: 0.85rem;
  right: 0.85rem;
  left: auto;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.custom-toast-container .app-toast {
  pointer-events: auto;
}

.app-toast {
  position: relative;
  overflow: hidden;
  width: min(390px, calc(100vw - 2rem));
  border-radius: 1.85rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  display: block;
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: auto;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-toast.is-leaving {
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
}

.app-toast::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.20), transparent 46%);
  pointer-events: none;
}

.app-toast::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(1.85rem - 1px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.app-toast .app-toast-title {
  position: relative;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.app-toast .app-toast-message {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.45;
}

.app-toast .app-toast-icon {
  position: relative;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.app-toast .app-toast-close {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
}

.app-toast .app-toast-close:hover,
.app-toast .app-toast-close:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  outline: none;
}

.app-toast-progress {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.55rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.app-toast-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: rgba(255, 255, 255, 0.92);
  animation: app-toast-progress-shrink var(--toast-delay, 5s) linear forwards;
}

.app-toast.is-paused .app-toast-progress-bar {
  animation-play-state: paused;
}

.app-toast.is-leaving .app-toast-progress-bar {
  animation-play-state: paused;
}

@keyframes app-toast-progress-shrink {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-toast-progress {
    display: none;
  }
}

.app-toast--success {
  background:
    linear-gradient(135deg, rgba(18, 104, 75, 0.78), rgba(39, 137, 109, 0.48)),
    rgba(16, 185, 129, 0.18);
}

.app-toast--success .app-toast-icon {
  background: rgba(236, 253, 245, 0.20);
  color: #ECFDF5;
}

.app-toast--error {
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.82), rgba(185, 28, 28, 0.45)),
    rgba(239, 68, 68, 0.18);
}

.app-toast--error .app-toast-icon {
  background: rgba(254, 242, 242, 0.20);
  color: #FEF2F2;
}

.app-toast--warning {
  background:
    linear-gradient(135deg, rgba(15, 76, 117, 0.82), rgba(29, 78, 216, 0.44)),
    rgba(59, 130, 246, 0.18);
}

.app-toast--warning .app-toast-icon {
  background: rgba(239, 246, 255, 0.18);
  color: #EFF6FF;
}

.app-toast--info {
  background:
    linear-gradient(135deg, rgba(15, 76, 117, 0.82), rgba(37, 99, 235, 0.44)),
    rgba(59, 130, 246, 0.18);
}

.app-toast--info .app-toast-icon {
  background: rgba(239, 246, 255, 0.18);
  color: #EFF6FF;
}

@media (max-width: 575.98px) {
  .dashboard-layout {
    padding: 0.1rem 0.25rem 0.25rem;
  }

  .dashboard-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    row-gap: 0.55rem !important;
    left: auto;
    right: auto;
    top: 0;
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
    padding-top: 0.7rem !important;
    padding-bottom: 0.85rem !important;
  }

  .dashboard-header::after {
    left: 0.85rem;
    right: 0.85rem;
  }

  .dashboard-header-leading {
    order: 1 !important;
    width: auto;
    flex: 1 1 auto;
    max-width: calc(100% - 7.4rem);
    min-width: 0;
    align-items: flex-start !important;
    gap: 0.55rem !important;
  }

  .dashboard-header-leading .dashboard-mobile-toggle,
  .dashboard-header-notifications .header-icon-button,
  .dashboard-profile-chip .header-icon-button {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.85rem;
  }

  .dashboard-header-notifications {
    order: 4 !important;
    flex: 0 0 auto;
    align-self: stretch;
    justify-content: flex-end;
  }

  .dashboard-header-actions {
    order: 2 !important;
    width: auto;
    flex: 0 0 auto;
    min-width: 0;
    justify-content: flex-end;
    align-items: center !important;
    gap: 0.45rem !important;
    margin-left: 0;
    flex-wrap: nowrap !important;
  }

  .dashboard-header-search {
    order: 3 !important;
    flex: 1 1 auto;
    width: auto;
    margin-right: 0;
  }

  .dashboard-header-search-desktop {
    display: block;
  }

  .dashboard-header-search-desktop .search-input {
    min-height: 2.55rem;
  }

  .dashboard-page-title {
    font-size: 0.96rem;
  }

  .dashboard-page-subtitle {
    display: none;
    margin-top: 0.15rem;
  }

  .dashboard-profile-chip {
    gap: 0.45rem !important;
    padding: 0.3rem 0.35rem 0.3rem 0.3rem;
    border-radius: 1.1rem;
  }

  .dashboard-profile-chip img {
    width: 34px;
    height: 34px;
  }

  .dashboard-profile-chip .ms-2 {
    margin-left: 0 !important;
  }

  .notification-dropdown {
    position: fixed;
    top: 5.05rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(100vw - 1rem, 420px);
    max-height: min(78vh, calc(100vh - 5.75rem));
  }

  .notification-dropdown-header > .d-flex {
    row-gap: 0.45rem;
    flex-wrap: wrap;
  }

  .notification-header-count,
  .notification-dropdown-header .btn {
    align-self: flex-start;
  }

  .notification-summary-chip {
    padding: 0.24rem 0.48rem;
  }

  .notification-summary-card {
    padding: 0.4rem 0.55rem;
  }

  .notification-item-meta {
    min-width: 0;
    text-align: left !important;
  }

  .notification-item-actions {
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .custom-toast-container {
    left: 0;
    right: 0;
    align-items: center;
  }

  .app-toast {
    width: min(100%, calc(100vw - 1rem));
  }

  .solicitacao-form-submit {
    justify-content: stretch;
  }

  .solicitacao-form-submit .btn,
  .solicitacao-checklist-footer .btn {
    width: 100%;
    min-width: 0;
  }

  .solicitacao-checklist-footer {
    align-items: stretch;
  }

  .solicitacao-status-badge {
    width: 100%;
  }

  .notification-read-button {
    width: 100%;
  }

  .dashboard-search-toggle,
  .dashboard-search-panel,
  .dashboard-search-backdrop {
    display: none !important;
  }
}

.dashboard-shell.is-sidebar-collapsed {
  --sidebar-width: var(--sidebar-collapsed-width);
}

.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .sidebar-label,
.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .sidebar-section-label,
.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .dashboard-brand-subtitle,
.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .dashboard-brand-title,
.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .sidebar-status-meta {
  opacity: 0;
  transform: none;
  width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  display: none !important;
}

.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .nav-link,
.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .sidebar-cta-button,
.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-footer .nav-link {
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0.72rem 0.35rem;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  transform: none !important;
}

.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .nav-link.active,
.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .nav-link:hover {
  transform: none !important;
}

.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .nav-link i,
.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .sidebar-cta-button i,
.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-footer .nav-link i {
  margin: 0;
  flex: 0 0 auto;
  width: 1.25rem;
  text-align: center;
}

.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-top .min-w-0 {
  overflow: visible;
  width: auto;
  display: flex;
  justify-content: center;
}

.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .dashboard-brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  margin: 0 auto !important;
  flex-shrink: 0;
}

.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .dashboard-brand-logo {
  padding: 0.12rem;
  object-fit: contain;
}

.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .sidebar-status-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.55rem;
}

.dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .sidebar-status-chip {
  justify-content: center;
  width: 100%;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

@media (min-width: 992px) {
  .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar {
    padding-left: 0.2rem !important;
    padding-right: 0.2rem !important;
  }

  .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-inner {
    align-items: center;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-inner > * {
    width: 100%;
  }

  .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-top {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0.85rem !important;
  }

  .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-top .d-flex {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.55rem !important;
    width: 100%;
  }

  .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-top .min-w-0 > a {
    display: flex !important;
    justify-content: center;
    width: 100%;
  }

  /* Toggle abaixo da logo (nÃ£o sobreposto) */
  .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-toggle {
    position: static !important;
    right: auto;
    top: auto;
    width: 2.35rem;
    height: 2.35rem;
    margin: 0 auto;
    flex-shrink: 0;
    pointer-events: auto;
    z-index: 2;
  }

  .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-top {
    pointer-events: auto;
    overflow: visible;
  }

  .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .mb-4 {
    margin-bottom: 0.75rem !important;
  }

  .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .nav.flex-column {
    align-items: stretch;
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .page-shell {
    gap: 1rem;
  }

  .page-toolbar-actions {
    width: 100%;
  }

  .page-toolbar-actions > a,
  .page-toolbar-actions > button,
  .page-toolbar-actions > form {
    flex: 1 1 220px;
  }

  .page-toolbar-actions form .btn,
  .page-toolbar-actions > .btn,
  .page-toolbar-actions > a {
    width: 100%;
  }

  .page-card-title-row {
    align-items: flex-start;
  }

  .responsive-inline-actions {
    justify-content: stretch;
  }

  .responsive-inline-actions > a,
  .responsive-inline-actions > button,
  .responsive-inline-actions > div,
  .responsive-inline-actions > form {
    flex: 1 1 100%;
  }

  .responsive-inline-actions .btn {
    width: 100%;
  }

  .mobile-stack-input-group {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .mobile-stack-input-group > .form-control,
  .mobile-stack-input-group > .form-select,
  .mobile-stack-input-group > .btn {
    flex: 1 1 100%;
    width: 100%;
    border-radius: 1rem !important;
  }

  .responsive-multiselect {
    min-height: 10rem;
  }

  .form-actions-end {
    justify-content: stretch;
  }

  .form-actions-end .btn {
    width: 100%;
    min-width: 0;
  }

  .dashboard-layout {
    display: block !important;
    padding: 0.1rem 0.25rem 0.25rem;
  }

  .dashboard-mobile-toggle {
    display: inline-flex;
  }

  .dashboard-page-heading {
    display: block;
  }

  .dashboard-sidebar {
    position: fixed;
    flex: 0 0 auto;
    top: 0.1rem;
    bottom: 0.25rem;
    left: 0.25rem;
    width: min(284px, calc(100vw - 1.25rem));
    max-width: calc(100vw - 1.25rem);
    transform: translateX(calc(-100% - 1rem));
  }

  .dashboard-sidebar-inner {
    min-height: 100%;
  }

  .dashboard-sidebar-body {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.48) transparent;
  }

  .dashboard-sidebar .nav-link.active,
  .dashboard-sidebar .nav-link:hover {
    transform: none;
  }

  .dashboard-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    height: calc(100dvh - 0.35rem);
    padding-top: 0;
    border-radius: 1.35rem;
  }

  .dashboard-header,
  .dashboard-main {
    border-radius: 0;
  }

  .dashboard-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    row-gap: 0.65rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.9rem !important;
    left: auto;
    right: auto;
    top: 0;
  }

  .dashboard-header-leading {
    order: 1 !important;
    width: auto;
    flex: 1 1 auto;
    max-width: calc(100% - 8.2rem);
    min-width: 0;
    align-items: flex-start !important;
    gap: 0.65rem !important;
  }

  .dashboard-header-actions {
    order: 2 !important;
    width: auto;
    flex: 0 0 auto;
    min-width: 0;
    margin-left: 0;
    justify-content: flex-end;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
  }

  .dashboard-header-search {
    order: 3 !important;
    flex: 1 1 auto;
    width: auto;
    margin-right: 0;
  }

  .dashboard-header-notifications {
    order: 4 !important;
    flex: 0 0 auto;
    align-self: stretch;
    justify-content: flex-end;
  }

  .dashboard-header-search-desktop {
    display: block;
    width: auto;
    max-width: none;
    flex: 1 1 auto;
  }

  .dashboard-header-search-desktop .search-input {
    min-height: 2.65rem;
  }

  .dashboard-profile-chip {
    gap: 0.55rem !important;
    padding: 0.32rem 0.4rem 0.32rem 0.32rem;
    border-radius: 1.15rem;
  }

  .dashboard-profile-chip img {
    width: 36px;
    height: 36px;
  }

  .dashboard-profile-chip .ms-2 {
    margin-left: 0 !important;
  }

  .dashboard-page-subtitle {
    display: none;
  }

  .notification-dropdown {
    position: fixed;
    top: 5rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(100vw - 1.5rem, 430px);
    max-width: calc(100vw - 1.5rem);
    max-height: min(640px, calc(100vh - 6.5rem));
  }

  .notification-dropdown-header > .d-flex {
    flex-wrap: wrap;
  }

  .notification-dropdown-header .d-flex.flex-column.align-items-end.gap-2 {
    width: 100%;
    align-items: stretch !important;
  }

  .notification-items-scroll {
    flex: 0 1 auto;
    min-height: 0;
    max-height: min(18rem, calc(100vh - 20rem));
  }

  .notification-item-card {
    padding: 0.85rem;
  }

  .notification-item-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .notification-read-button {
    width: 100%;
  }

  .dashboard-search-toggle,
  .dashboard-search-panel,
  .dashboard-search-backdrop {
    display: none !important;
  }

  .dashboard-shell.is-sidebar-open .dashboard-sidebar {
    transform: translateX(0);
  }

  .dashboard-shell.is-sidebar-open .dashboard-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 575.98px) {
  .page-toolbar-actions > a,
  .page-toolbar-actions > button,
  .page-toolbar-actions > form {
    flex-basis: 100%;
  }
}

.min-w-0 {
  min-width: 0;
}

.theme-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(241, 245, 249, 0.62)),
    rgba(255, 255, 255, 0.72);
  color: #334155;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: #0F172A;
}

.theme-toggle-icon {
  font-size: 1.05rem;
}

.theme-toggle-icon--to-light {
  display: none;
}

html[data-theme="dark"] .theme-toggle-icon--to-dark {
  display: none;
}

html[data-theme="dark"] .theme-toggle-icon--to-light {
  display: inline-flex;
}

.projeto-workspace-tabs-bar {
  margin-bottom: 0;
}

.projeto-workspace-tabs {
  gap: 0.28rem;
  border-bottom: 0;
  position: relative;
  z-index: 2;
  margin-bottom: 0.65rem;
}

.projeto-workspace-tabs .nav-item {
  margin-bottom: 0;
}

.projeto-workspace-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #334155;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-bottom: 0;
  border-radius: 0.55rem 0.55rem 0 0;
  padding: 0.68rem 1rem 0.72rem;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.projeto-workspace-tabs .nav-link:hover,
.projeto-workspace-tabs .nav-link:focus-visible {
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(147, 197, 253, 0.55);
  box-shadow:
    0 6px 16px rgba(29, 78, 216, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.projeto-workspace-tabs .nav-link.active,
.projeto-workspace-tabs .nav-link.active:hover,
.projeto-workspace-tabs .nav-link.active:focus-visible {
  color: #fff;
  border-color: rgba(191, 219, 254, 0.42);
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.62), rgba(29, 78, 216, 0.72)),
    rgba(29, 78, 216, 0.42);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    0 8px 20px rgba(29, 78, 216, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.projeto-tab-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
}

.projeto-workspace-tabs .nav-link.active .projeto-tab-index {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.projeto-tab-label {
  line-height: 1.1;
}

.projeto-workspace-card .tab-pane > .card {
  box-shadow: none;
  background: transparent;
  border: 0;
}

.projeto-workspace-card .tab-pane > .card + .card,
.projeto-workspace-card .tab-pane > .card + .mt-3,
.projeto-workspace-card .tab-pane > [class] + .card {
  margin-top: 1rem;
}

.dashboard-main:has(> .projeto-workspace-page) {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.dashboard-main:has(> .projeto-workspace-page) > .dashboard-footer {
  flex: 0 0 auto;
  margin-top: 0.4rem;
  padding-top: 0.7rem;
}

.dashboard-main > .projeto-workspace-page {
  flex: 0 0 auto;
  overflow: visible;
  gap: 0.4rem;
}

.projeto-workspace-toolbar h2 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.projeto-workspace-page > .projeto-progresso-card {
  flex: 0 0 auto;
}

.projeto-workspace-page > .projeto-progresso-card .projeto-status-badge {
  min-height: 1.85rem;
  padding: 0.28rem 0.75rem;
}

.projeto-etapa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.95rem;
  padding: 0.32rem 0.82rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  border: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.94)),
    #e2e8f0;
  color: #334155;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.projeto-etapa-badge.is-complete {
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.96), rgba(22, 163, 74, 0.92)),
    #16a34a;
  color: #fff;
  box-shadow:
    0 8px 16px rgba(22, 163, 74, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.projeto-etapa-badge.is-current {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.96), rgba(29, 78, 216, 0.92)),
    #1d4ed8;
  color: #fff;
  box-shadow:
    0 8px 16px rgba(29, 78, 216, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.projeto-workspace-page > .projeto-workspace-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.projeto-workspace-page > .projeto-workspace-card > .card-header {
  flex: 0 0 auto;
}

.projeto-workspace-page > .projeto-workspace-card > .card-body {
  overflow: visible;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.projeto-workspace-page > .projeto-workspace-card .tab-content {
  overflow: visible;
  padding-bottom: 0.35rem;
}

.projeto-workspace-page .tab-pane.active {
  padding-bottom: 3.5rem;
}

.projeto-workspace-page .tab-pane.fade {
  transition: opacity 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
  .projeto-workspace-page .tab-pane.fade {
    transition: none;
  }
}

.projeto-workspace-page [data-cc-section] {
  display: block;
  width: 100%;
  scroll-margin-top: 0.85rem;
}

.projeto-workspace-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.projeto-elaboracao-head {
  margin-bottom: 1.15rem;
}

#tab-elaboracao > .card > .card-body {
  display: flex;
  flex-direction: column;
}

#tab-elaboracao > .card > .card-body > .projeto-elaboracao-head {
  order: 0;
}

#tab-elaboracao > .card > .card-body > .projeto-elaboracao-dock {
  order: 1;
}

#tab-elaboracao > .card > .card-body > [data-cc-section="VersÃµes"] {
  order: 2;
}

#tab-elaboracao > .card > .card-body > .projeto-rascunho-interno {
  order: 3;
}

#tab-elaboracao > .card > .card-body > .projeto-elaboracao-resultado {
  order: 4;
}

.projeto-observacoes,
.projeto-rascunho-interno {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(248, 250, 252, 0.92);
}

.projeto-observacoes > summary,
.projeto-rascunho-interno > summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.projeto-observacoes > summary::-webkit-details-marker,
.projeto-rascunho-interno > summary::-webkit-details-marker {
  display: none;
}

.projeto-observacoes > summary::before,
.projeto-rascunho-interno > summary::before {
  content: "â–¸";
  display: inline-block;
  margin-right: 0.4rem;
  color: #64748b;
}

.projeto-observacoes[open] > summary::before,
.projeto-rascunho-interno[open] > summary::before {
  content: "â–¾";
}

.projeto-avaliacao-resumo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
  background: rgba(248, 250, 252, 0.92);
}

.projeto-avaliacao-resumo-main {
  min-width: 0;
}

.projeto-avaliacao-modal .modal-dialog {
  max-width: min(1120px, calc(100vw - 1.5rem));
}

.projeto-avaliacao-modal-header {
  align-items: flex-start;
  gap: 1rem;
}

.projeto-avaliacao-modal-kicker {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.projeto-avaliacao-modal-body {
  padding-top: 1rem;
}

.projeto-avaliacao-modal-desc {
  margin-bottom: 1rem;
  color: #475569;
}

.projeto-avaliacao-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.projeto-avaliacao-score-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  background: rgba(248, 250, 252, 0.95);
}

.projeto-avaliacao-score-card.is-media {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.06);
}

.projeto-avaliacao-score-label {
  font-size: 0.78rem;
  font-weight: 650;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.projeto-avaliacao-score-value {
  font-size: 1.55rem;
  font-weight: 750;
  line-height: 1.1;
  color: #0f172a;
}

.projeto-avaliacao-score-hint {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.projeto-avaliacao-section-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.projeto-avaliacao-table-wrap {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.9rem;
  overflow: hidden;
}

.projeto-avaliacao-table {
  margin-bottom: 0;
}

.projeto-avaliacao-table thead th {
  background: rgba(248, 250, 252, 0.98);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #64748b;
  border-bottom-width: 1px;
}

.projeto-avaliacao-itens {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.projeto-avaliacao-item {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.95rem;
  padding: 1rem 1.1rem;
  background: #fff;
}

.projeto-avaliacao-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.projeto-avaliacao-item-notas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.projeto-avaliacao-item-notas > span {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 0.78rem;
  font-weight: 650;
  color: #334155;
  background: rgba(248, 250, 252, 0.95);
}

.projeto-avaliacao-item-notas > span.is-media {
  border-color: rgba(37, 99, 235, 0.3);
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

.projeto-avaliacao-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.projeto-avaliacao-item-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.projeto-avaliacao-item-col-title.is-pos {
  color: #15803d;
}

.projeto-avaliacao-item-col-title.is-neg {
  color: #b45309;
}

.projeto-avaliacao-pecas-obs {
  padding-left: 1.1rem;
}

@media (max-width: 991.98px) {
  .projeto-avaliacao-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .projeto-avaliacao-score-grid,
  .projeto-avaliacao-item-grid {
    grid-template-columns: 1fr;
  }
}

.projeto-versao-lista {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.projeto-versao-duas-colunas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.projeto-versao-coluna-grupo {
  min-width: 0;
  height: 100%;
}

.projeto-versao-coluna-grupo .projeto-versao-pecas-list {
  grid-template-columns: minmax(0, 1fr);
}

.projeto-versao-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 0.6rem;
}

@media (max-width: 991.98px) {
  .projeto-versao-duas-colunas {
    grid-template-columns: minmax(0, 1fr);
  }
}

.projeto-versao-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-width: 0;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
}

.projeto-versao-card.is-destaque {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  background: rgba(239, 246, 255, 0.55);
}

.projeto-versao-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem 1.15rem;
}

.projeto-versao-ident {
  min-width: 0;
  flex: 1 1 14rem;
}

.projeto-versao-titulo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.projeto-versao-atual {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.projeto-versao-quando,
.projeto-versao-meta,
.projeto-versao-desc {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.projeto-versao-desc {
  margin-top: 0;
}

.projeto-versao-score-badge {
  appearance: none;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.8rem 0.28rem 0.45rem;
  color: #1e293b;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  outline: none;
}

.projeto-versao-score-badge:hover,
.projeto-versao-score-badge:focus-visible {
  transform: translateY(-2px);
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
}

.projeto-versao-score-icon {
  font-size: 0.72rem;
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.projeto-versao-score-badge:hover .projeto-versao-score-icon {
  transform: translateX(2px);
  opacity: 1;
}

.projeto-versao-proposta-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.95rem;
  background: rgba(248, 250, 252, 0.85);
  transition: border-color 0.2s ease;
}

.projeto-versao-acao-dock {
  border-radius: 0.95rem;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(239, 246, 255, 0.65);
}

.projeto-versao-nota {
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(217, 119, 6, 0.22);
  background: rgba(255, 251, 235, 0.72);
  color: #92400e;
  font-size: 0.86rem;
  line-height: 1.5;
}

.projeto-versao-nota.is-ok {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(220, 252, 231, 0.62);
  color: #166534;
}

.projeto-versao-aviso {
  padding: 0.55rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
}

.projeto-versao-aviso .fw-semibold {
  margin-bottom: 0.15rem !important;
}

.projeto-versao-aviso .small {
  margin-bottom: 0 !important;
  line-height: 1.35;
}

.projeto-versao-aviso.is-alerta {
  background: rgba(254, 243, 199, 0.72);
  border-color: rgba(217, 119, 6, 0.28);
  color: #92400e;
}

.projeto-versao-aviso.is-ok {
  background: rgba(220, 252, 231, 0.72);
  border-color: rgba(22, 163, 74, 0.28);
  color: #166534;
}

.projeto-versao-aviso.is-custo {
  background: rgba(239, 246, 255, 0.86);
  border-color: rgba(37, 99, 235, 0.28);
  color: #1e3a8a;
}

.projeto-versao-aviso ul {
  padding-left: 1.1rem;
}

.projeto-painel-resumo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.projeto-painel-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.9);
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
}

.projeto-painel-chip.is-llm {
  background: rgba(239, 246, 255, 0.92);
  border-color: rgba(37, 99, 235, 0.28);
  color: #1e3a8a;
}

.projeto-painel-chip.is-sign {
  background: rgba(254, 243, 199, 0.8);
  border-color: rgba(217, 119, 6, 0.28);
  color: #92400e;
}

.projeto-painel-chip.is-check {
  background: rgba(237, 233, 254, 0.8);
  border-color: rgba(124, 58, 237, 0.24);
  color: #5b21b6;
}

.projeto-painel-mapa-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.projeto-painel-mapa-col {
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(248, 250, 252, 0.7);
}

.projeto-painel-mapa-col ul {
  padding-left: 1.05rem;
}

@media (max-width: 1599.98px) {
  .projeto-versao-colunas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .projeto-painel-mapa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projeto-versao-colunas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .projeto-painel-mapa-grid,
  .projeto-versao-colunas {
    grid-template-columns: minmax(0, 1fr);
  }
}

.projeto-elaboracao-dock {
  position: sticky;
  top: 0.4rem;
  z-index: 6;
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.9rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.projeto-elaboracao-dock-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4ed8;
  margin-bottom: 0.4rem;
}

.projeto-elaboracao-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.projeto-elaboracao-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem 1.1rem;
}

.projeto-elaboracao-acao {
  max-width: 22rem;
}

.projeto-elaboracao-acao .btn {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.projeto-elaboracao-acao .text-muted.small {
  margin-top: 0.3rem !important;
  line-height: 1.3;
}

.projeto-manifesto-scroll {
  max-height: min(42vh, 22rem);
  overflow-y: auto;
  background: #fff;
}

.projeto-manifesto-scroll .list-group-item {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.projeto-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.projeto-elaboracao-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.projeto-elaboracao-section {
  margin-bottom: 1.25rem;
}

.projeto-elaboracao-section h6 {
  margin-bottom: 0.65rem;
}

.projeto-elaboracao-text {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: #fff;
  white-space: pre-line;
}

.projeto-elaboracao-resultado {
  padding-top: 0.35rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
}

#tab-elaboracao [data-cc-section] {
  scroll-margin-top: 5.5rem;
}

#tab-elaboracao [data-cc-section="AÃ§Ãµes"],
#tab-elaboracao [data-cc-section="Projeto"] {
  scroll-margin-top: 0.85rem;
}

.projeto-versao-colunas {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.projeto-versao-coluna {
  min-width: 0;
  padding: 0.8rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(248, 250, 252, 0.72);
}

.projeto-versao-coluna .projeto-versao-pecas-list {
  grid-template-columns: minmax(0, 1fr);
}

.projeto-versao-pecas {
  padding-top: 0.15rem;
}

.projeto-versao-pecas-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  color: #64748b;
}

.projeto-versao-pecas-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: 0.65rem;
}

.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca {
  appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  text-align: left;
  white-space: normal;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca:hover,
.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca:focus-visible {
  color: #1e3a8a;
  background: #dbeafe;
  border-color: #60a5fa;
}

.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca i {
  margin-top: 0.12rem;
}

.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-nome {
  min-width: 0;
}

.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-ext {
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.78;
}

.projeto-versao-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.projeto-versao-actions-main,
.projeto-versao-actions-files,
.projeto-versao-actions-danger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.projeto-versao-actions-files {
  flex: 1 1 12rem;
}

.projeto-versao-actions-danger {
  margin-left: auto;
}

.projeto-versao-actions .btn {
  border-radius: 999px !important;
}

@media (min-width: 768px) {
  .projeto-versao-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .projeto-versao-actions-danger {
    margin-left: 0;
    justify-self: end;
  }
}

@media (min-width: 1200px) {
  .projeto-elaboracao-grid:has(> :nth-child(2)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 1279.98px) {
  .projeto-workspace-toolbar {
    align-items: flex-start;
  }

  .projeto-workspace-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .projeto-workspace-tabs {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .projeto-workspace-toolbar-actions {
    width: 100%;
  }

  .projeto-workspace-toolbar-actions .btn,
  .projeto-action-row .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .projeto-elaboracao-dock {
    position: static;
  }

  #tab-elaboracao [data-cc-section] {
    scroll-margin-top: 0.85rem;
  }

  .projeto-versao-card {
    padding: 1rem;
  }

  .projeto-versao-actions,
  .projeto-versao-actions-main,
  .projeto-versao-actions-files,
  .projeto-versao-actions-danger {
    width: 100%;
  }

  .projeto-versao-actions-danger {
    margin-left: 0;
  }

  .projeto-versao-actions-main,
  .projeto-versao-actions-files {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projeto-versao-actions-files .btn:last-child,
  .projeto-versao-actions-danger .btn,
  .projeto-versao-actions-main .btn:only-child {
    grid-column: 1 / -1;
  }

  .projeto-versao-actions .btn {
    justify-content: center;
  }
}

.edital-viewer {
  background: #f8fafc;
  color: #0f172a;
  min-height: 16rem;
}

.edital-viewer-frame {
  width: 100%;
  height: min(68vh, 42rem);
  border: 0;
  background: #fff;
}

.edital-viewer-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.edital-viewer-text {
  max-height: min(68vh, 42rem);
  overflow: auto;
  padding: 1.15rem 1.3rem;
  white-space: pre-line;
  color: #0f172a;
  background: #f8fafc;
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.edital-viewer-empty {
  padding: 1.15rem 1.3rem;
  color: #475569;
}

.edital-viewer .edital-viewer-text {
  max-height: none;
  background: transparent;
}

.projeto-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.4rem 0.95rem;
  line-height: 1;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}

.projeto-info-panel {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 1.1rem;
  padding: 0.95rem 1.1rem 1.05rem;
  background: rgba(248, 250, 252, 0.72);
}

.projeto-info-panel-title {
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(191, 219, 254, 0.9);
}

.projeto-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.1rem;
}

.projeto-info-grid .projeto-info-span {
  grid-column: 1 / -1;
}

.projeto-info-grid dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.1rem;
}

.projeto-info-grid dd {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.projeto-info-note {
  padding-top: 0.55rem;
  margin-top: 0.2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
}

@media (max-width: 575.98px) {
  .projeto-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Warning do Bootstrap (amarelo) â†’ azul da identidade, com contraste em badges/alertas/texto. */
.text-warning,
.link-warning {
  color: #1d4ed8 !important;
}

.text-warning-emphasis {
  color: #1e3a8a !important;
}

.bg-warning-subtle {
  background-color: #dbeafe !important;
}

.border-warning-subtle {
  border-color: #93c5fd !important;
}

.border-warning {
  border-color: #1d4ed8 !important;
}

.bg-warning,
.text-bg-warning,
.bg-warning.text-dark {
  background-color: #1d4ed8 !important;
  color: #fff !important;
}

.alert-warning {
  --bs-alert-color: #1e3a8a;
  --bs-alert-bg: #dbeafe;
  --bs-alert-border-color: #93c5fd;
  --bs-alert-link-color: #1e3a8a;
  color: #1e3a8a;
  background-color: #dbeafe;
  border-color: #93c5fd;
}

.badge.bg-warning-subtle,
.badge.text-warning {
  color: #1e3a8a !important;
  background-color: #dbeafe !important;
  border-color: #93c5fd !important;
}

.btn-warning {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1d4ed8;
  --bs-btn-border-color: #1d4ed8;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1e40af;
  --bs-btn-hover-border-color: #1e40af;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1e3a8a;
  --bs-btn-active-border-color: #1e3a8a;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #1d4ed8;
  --bs-btn-disabled-border-color: #1d4ed8;
  color: #fff;
}

.btn-outline-warning {
  --bs-btn-color: #1d4ed8;
  --bs-btn-border-color: #1d4ed8;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1d4ed8;
  --bs-btn-hover-border-color: #1d4ed8;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1e40af;
  --bs-btn-active-border-color: #1e40af;
  --bs-btn-disabled-color: #1d4ed8;
  --bs-btn-disabled-border-color: #1d4ed8;
  color: #1d4ed8;
}

html[data-theme="dark"] .text-warning,
html[data-theme="dark"] .link-warning,
html[data-bs-theme="dark"] .text-warning,
html[data-bs-theme="dark"] .link-warning {
  color: #93c5fd !important;
}

html[data-theme="dark"] .text-warning-emphasis,
html[data-bs-theme="dark"] .text-warning-emphasis {
  color: #bfdbfe !important;
}

html[data-theme="dark"] .bg-warning-subtle,
html[data-bs-theme="dark"] .bg-warning-subtle {
  background-color: rgba(37, 99, 235, 0.28) !important;
}

html[data-theme="dark"] .border-warning-subtle,
html[data-bs-theme="dark"] .border-warning-subtle {
  border-color: rgba(147, 197, 253, 0.42) !important;
}

html[data-theme="dark"] .border-warning,
html[data-bs-theme="dark"] .border-warning {
  border-color: rgba(147, 197, 253, 0.55) !important;
}

html[data-theme="dark"] .bg-warning,
html[data-theme="dark"] .text-bg-warning,
html[data-theme="dark"] .bg-warning.text-dark,
html[data-bs-theme="dark"] .bg-warning,
html[data-bs-theme="dark"] .text-bg-warning,
html[data-bs-theme="dark"] .bg-warning.text-dark {
  background-color: #1d4ed8 !important;
  color: #fff !important;
}

html[data-theme="dark"] .alert-warning,
html[data-bs-theme="dark"] .alert-warning {
  --bs-alert-color: #dbeafe;
  --bs-alert-bg: rgba(37, 99, 235, 0.22);
  --bs-alert-border-color: rgba(147, 197, 253, 0.38);
  --bs-alert-link-color: #dbeafe;
  color: #dbeafe;
  background-color: rgba(37, 99, 235, 0.22);
  border-color: rgba(147, 197, 253, 0.38);
}

html[data-theme="dark"] .badge.bg-warning-subtle,
html[data-theme="dark"] .badge.text-warning,
html[data-bs-theme="dark"] .badge.bg-warning-subtle,
html[data-bs-theme="dark"] .badge.text-warning {
  color: #dbeafe !important;
  background-color: rgba(37, 99, 235, 0.32) !important;
  border-color: rgba(147, 197, 253, 0.42) !important;
}

html[data-theme="dark"] .btn-outline-warning,
html[data-bs-theme="dark"] .btn-outline-warning {
  --bs-btn-color: #93c5fd;
  --bs-btn-border-color: #93c5fd;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1d4ed8;
  --bs-btn-hover-border-color: #1d4ed8;
  --bs-btn-disabled-color: #93c5fd;
  --bs-btn-disabled-border-color: #93c5fd;
  color: #93c5fd;
}

.app-confirm-modal {
  padding: 0.35rem 0.15rem 0.15rem;
}

.app-confirm-icon {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
  font-size: 1.2rem;
}

.app-confirm-icon.app-confirm-icon-primary {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.app-confirm-icon.app-confirm-icon-warning {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.simbolo-atencao-alerta,
.text-warning-amber {
  color: #f59e0b !important;
}

.btn-outline-danger .simbolo-atencao-alerta,
.btn-outline-danger .text-warning-amber {
  color: #f59e0b !important;
  transition: color 0.15s ease-in-out;
}

.btn-outline-danger:hover .simbolo-atencao-alerta,
.btn-outline-danger:hover .text-warning-amber,
.btn-danger .simbolo-atencao-alerta,
.btn-danger .text-warning-amber {
  color: #ffffff !important;
}


.app-confirm-modal .modal-title {
  color: #0f172a;
}

.app-confirm-modal .modal-body {
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.5;
  white-space: pre-line;
}

.projeto-confirm-analise-banner {
  background: rgba(59, 130, 246, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none !important;
}

.projeto-escolha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: 0.85rem;
}

.projeto-escolha-card {
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.projeto-escolha-card.is-preliminar {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(255, 251, 235, 0.55);
}

.projeto-escolha-card.is-aguardar {
  border-color: rgba(100, 116, 139, 0.28);
}

.projeto-proc-badge {
  position: absolute;
  top: -0.45rem;
  left: -0.45rem;
  z-index: 1;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #e2e8f0;
  background:
    linear-gradient(135deg, rgba(15, 76, 117, 0.92), rgba(37, 99, 235, 0.62)),
    rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.projeto-versao-peca-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding-top: 0.4rem;
  padding-left: 0.4rem;
}

.projeto-versao-peca-wrap.is-pending .projeto-proc-badge {
  color: #eff6ff;
}

.projeto-versao-peca-wrap.is-done .projeto-proc-badge {
  color: #ecfdf5;
  background:
    linear-gradient(135deg, rgba(18, 104, 75, 0.92), rgba(39, 137, 109, 0.62)),
    rgba(16, 185, 129, 0.22);
  border-color: rgba(236, 253, 245, 0.4);
}

.projeto-versao-peca-wrap.is-error .projeto-proc-badge {
  color: #fef2f2;
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.94), rgba(185, 28, 28, 0.62)),
    rgba(239, 68, 68, 0.22);
  border-color: rgba(254, 226, 226, 0.4);
}

.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-wrap.is-error .projeto-versao-peca {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-wrap.is-done .projeto-versao-peca {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-pendencia {
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.85rem;
  border: 1px solid #dc2626;
  border-top: 0;
  border-radius: 0;
  background: #dc2626;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-pendencia:hover,
.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-pendencia:focus-visible {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.25rem 0.65rem 0.35rem;
  border: 1px solid #93c5fd;
  border-top: 0;
  border-radius: 0 0 0.9rem 0.9rem;
  background: #eff6ff;
}

.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
  transition: all 0.15s ease;
}

.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-download-link:hover,
.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-download-link:focus-visible {
  color: #1e3a8a;
  background: rgba(37, 99, 235, 0.12);
  text-decoration: none;
}

.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-vermais {
  appearance: none;
  margin: 0;
  padding: 0.15rem 0.2rem;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-vermais:hover,
.app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-vermais:focus-visible {
  color: #1e3a8a;
  text-decoration: underline;
}

.projeto-peca-llm-modal {
  --bs-modal-width: min(86rem, calc(100vw - 2rem));
  width: min(86rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  margin-left: auto;
  margin-right: auto;
}

.projeto-peca-llm-modal .modal-content {
  max-height: min(90dvh, 52rem);
}

.projeto-peca-llm-modal .modal-header,
.projeto-peca-llm-modal .modal-footer {
  flex: 0 0 auto;
}

.projeto-peca-llm-heading {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0.75rem;
}

.projeto-peca-llm-modal .modal-title {
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.projeto-peca-llm-sub {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.projeto-peca-llm-modal .modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.projeto-peca-llm-resumo {
  margin: 0 0 0.85rem;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.5;
  white-space: pre-line;
}

.projeto-peca-llm-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.projeto-peca-llm-item {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.85rem;
  background: #f8fafc;
}

.projeto-peca-llm-item-head {
  margin: 0 0 0.3rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.projeto-peca-llm-item-body {
  margin: 0;
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-line;
}

.projeto-peca-llm-item-list {
  margin: 0;
  padding-left: 1.15rem;
}

.projeto-peca-llm-item-list li + li {
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .projeto-peca-llm-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projeto-peca-llm-item.is-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1199.98px) {
  .projeto-peca-llm-modal {
    --bs-modal-width: calc(100vw - 1.5rem);
    width: calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
  }
}

@media (max-width: 575.98px) {
  .projeto-peca-llm-modal {
    --bs-modal-width: calc(100vw - 1rem);
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    margin: 0.5rem auto;
  }

  .projeto-peca-llm-modal .modal-content {
    max-height: calc(100dvh - 1rem);
  }

  .projeto-peca-llm-modal .modal-header,
  .projeto-peca-llm-modal .modal-body,
  .projeto-peca-llm-modal .modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .projeto-peca-llm-modal .modal-footer {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
}

.cc-section-rail-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1038;
  background: rgba(15, 23, 42, 0.28);
}

.cc-section-rail-backdrop.is-visible {
  display: block;
}

.cc-section-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0.85rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 2.91rem;
  height: fit-content;
  max-height: calc(100vh - 6rem);
  margin-block: auto;
  padding: 0.39rem;
  border-radius: 1.35rem;
  background: transparent;
  border: 1px solid rgba(147, 197, 253, 0.4);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06);
}

.cc-section-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(59, 130, 246, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  pointer-events: none;
  z-index: 0;
}

.cc-section-rail > * {
  position: relative;
  z-index: 1;
}

.cc-section-rail-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.cc-section-rail-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0 auto 0.35rem;
  border: 0;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.88);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  cursor: pointer;
}

.cc-section-rail-title {
  display: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4ed8;
  padding: 0.15rem 0.35rem 0.45rem;
}

.cc-section-rail-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.1rem;
  padding: 0.35rem;
  border-radius: 0.95rem;
  color: #1d4ed8;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.cc-section-rail-item i {
  font-size: 1.15rem;
  line-height: 1;
}

.cc-section-rail-item.is-top {
  color: #3b82f6;
  margin-bottom: 0.12rem;
}

.cc-section-rail-item.is-top i {
  font-size: 0.95rem;
}

.cc-section-rail-item span {
  display: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.cc-section-rail-item:hover,
.cc-section-rail-item:focus-visible {
  color: #1d4ed8;
  background: rgba(147, 197, 253, 0.48);
}

.cc-section-rail-item.is-active {
  color: #fff;
  background: rgba(37, 99, 235, 0.92);
}

.cc-section-rail-item.is-active:hover,
.cc-section-rail-item.is-active:focus-visible {
  color: #fff;
  background: rgba(96, 165, 250, 0.78);
}

.cc-section-rail-item::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 0.6rem);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.35rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: opacity 0.12s ease;
}

.cc-section-rail-item:hover::after,
.cc-section-rail-item:focus-visible::after {
  opacity: 1;
}

.cc-section-rail-item:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

[data-cc-section] {
  scroll-margin-top: 1rem;
}

@media (min-width: 992px) {
  .app-shell-body.has-section-rail .dashboard-main {
    padding-right: 3.93rem;
  }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .app-shell-body.has-section-rail .dashboard-main {
    padding-right: 2.75rem;
  }

  .cc-section-rail,
  .cc-section-rail-panel {
    overflow: visible;
  }
}

@media (max-width: 991.98px) {
  .cc-section-rail {
    right: -0.5rem;
    width: 2.7rem;
    max-width: min(18rem, calc(100vw - 1.5rem));
    padding: 0.55rem;
    border-radius: 1.25rem 0 0 1.25rem;
  }

  .cc-section-rail.is-open {
    right: 0;
    width: auto;
  }

  .cc-section-rail-toggle {
    display: inline-flex;
  }

  .cc-section-rail.is-open .cc-section-rail-title {
    display: block;
  }

  .cc-section-rail.is-open .cc-section-rail-item {
    justify-content: flex-start;
    padding: 0.45rem 0.65rem;
  }

  .cc-section-rail.is-open .cc-section-rail-item span {
    display: inline;
  }

  .cc-section-rail-item::after {
    display: none;
  }

  .cc-section-rail:not(.is-open) {
    width: 2.7rem;
    padding: 0.34rem;
  }

  .cc-section-rail:not(.is-open) .cc-section-rail-toggle {
    margin-bottom: 0;
  }

  .cc-section-rail:not(.is-open) .cc-section-rail-panel {
    display: none;
  }
}

.llm-progress-overlay {
  position: fixed;
  right: 1.15rem;
  left: auto;
  bottom: 1.25rem;
  top: auto;
  z-index: 1100;
  width: min(22.5rem, calc(100vw - 2.3rem));
  margin: 0;
  pointer-events: none;
}

.app-shell-body.has-section-rail .llm-progress-overlay {
  right: 4.25rem;
}

.llm-progress-overlay.d-none,
.llm-progress-overlay[hidden] {
  display: none !important;
}

.llm-progress-card {
  pointer-events: auto;
  width: 100%;
  border-radius: 1.85rem;
  padding: 1.05rem 1.15rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(15, 76, 117, 0.82), rgba(37, 99, 235, 0.44)),
    rgba(59, 130, 246, 0.18);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: llm-card-in 0.22s ease;
}

.llm-progress-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.llm-progress-title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.96);
}

.llm-progress-subtitle {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.llm-progress-orb {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #eff6ff, #93c5fd, #2563eb, #eff6ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  animation: llm-spin 1.15s linear infinite;
}

@keyframes llm-card-in {
  from {
    opacity: 0;
    transform: translateX(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes llm-spin {
  to {
    transform: rotate(360deg);
  }
}

.llm-progress-bar {
  height: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.llm-progress-steps {
  list-style: none;
  padding: 0.9rem 0 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.llm-progress-step {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.llm-progress-step::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.38rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #cbd5e1;
}

.llm-progress-step.is-done {
  color: #bbf7d0;
}

.llm-progress-step.is-done::before {
  background: #22c55e;
}

.llm-progress-step.is-current {
  color: #fff;
  font-weight: 600;
}

.llm-progress-step.is-current::before {
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  animation: llm-pulse 1.4s ease-in-out infinite;
}

@keyframes llm-pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.06);
  }
}

.llm-progress-banner {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

.llm-progress-spinner {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 2px solid #bfdbfe;
  border-top-color: #2563eb;
  animation: llm-spin 0.7s linear infinite;
  flex: 0 0 auto;
}

.projeto-docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16.5rem, 21rem);
  gap: 1rem;
  align-items: start;
}

.projeto-docs-collapse > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}

.projeto-docs-collapse > summary::-webkit-details-marker {
  display: none;
}

.projeto-docs-collapse > summary::before {
  content: "â–¸";
  color: #64748b;
  font-size: 0.85em;
  line-height: 1;
}

.projeto-docs-collapse[open] > summary::before {
  content: "â–¾";
}

.projeto-docs-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.projeto-docs-modal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.projeto-docs-modal-section {
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #fff;
  color: #0f172a;
}

.projeto-docs-modal-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
}

.projeto-docs-modal-section-head h6 {
  font-weight: 700;
  color: #0f172a;
}

.projeto-docs-modal-section-head .text-muted,
.projeto-docs-modal-row .text-muted {
  color: #64748b !important;
}

.projeto-docs-modal-scroll {
  max-height: min(42vh, 22rem);
  overflow-y: auto;
  padding: 0.35rem 0.65rem 0.65rem;
  background: #fff;
}

.projeto-docs-modal-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.35rem;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}

.projeto-docs-modal-row .fw-semibold {
  color: #0f172a;
}

.projeto-docs-modal-row:last-child {
  border-bottom: 0;
}

.projeto-docs-modal-row.is-pendente {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.45), transparent);
}

.projeto-docs-modal-empty,
.projeto-docs-modal-section .projeto-docs-empty {
  color: #64748b;
}

.projeto-docs-aside {
  position: sticky;
  top: 0.75rem;
}

.projeto-docs-dash {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.15rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.projeto-docs-dash-header {
  padding: 0.9rem 1rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.projeto-docs-dash-header h5 {
  font-size: 1rem;
}

.projeto-docs-dash-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.75rem 0.85rem 0.35rem;
}

.projeto-docs-kpi {
  border-radius: 0.8rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
}

.projeto-docs-kpi strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #0f172a;
}

.projeto-docs-kpi.is-ok { background: #ecfdf5; color: #166534; }
.projeto-docs-kpi.is-ok strong { color: #166534; }
.projeto-docs-kpi.is-proximo { background: #fffbeb; color: #b45309; }
.projeto-docs-kpi.is-proximo strong { color: #b45309; }
.projeto-docs-kpi.is-vencido { background: #fef2f2; color: #b91c1c; }
.projeto-docs-kpi.is-vencido strong { color: #b91c1c; }
.projeto-docs-kpi.is-faltante { background: #f1f5f9; color: #475569; }
.projeto-docs-kpi.is-faltante strong { color: #334155; }

.projeto-docs-dash-list {
  padding: 0.15rem 0.85rem 0.7rem;
  max-height: min(62vh, 34rem);
  overflow: auto;
}

.projeto-docs-dash-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.5rem;
  align-items: start;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.projeto-docs-dash-row:last-child {
  border-bottom: 0;
}

.projeto-docs-dash-nome {
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.3;
}

.projeto-docs-dash-meta {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

.projeto-docs-dash-chip {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  white-space: nowrap;
}

.projeto-docs-dash-chip.is-ok,
.projeto-docs-dash-chip.is-atendido { background: #dcfce7; color: #166534; }
.projeto-docs-dash-chip.is-proximo { background: #fef3c7; color: #b45309; }
.projeto-docs-dash-chip.is-vencido { background: #fee2e2; color: #b91c1c; }
.projeto-docs-dash-chip.is-faltante { background: #e2e8f0; color: #334155; }

.projeto-docs-extra-tile {
  display: block;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
  background: #fff;
  color: inherit;
}

button.projeto-docs-extra-tile {
  appearance: none;
}

.projeto-docs-extra-tile.is-clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.projeto-docs-extra-tile.is-clickable:hover,
.projeto-docs-extra-tile.is-clickable:focus-visible {
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
  outline: none;
}

.projeto-docs-empty {
  color: #64748b;
  font-size: 0.9rem;
  padding: 0.35rem 0.05rem;
}

.modal-dialog-scrollable .cc-upload-modal {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.cc-upload-modal > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.cc-upload-modal > form .modal-header,
.cc-upload-modal > form .modal-footer {
  flex: 0 0 auto;
}

.cc-upload-modal > form .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cc-upload-modal .modal-header,
.cc-upload-modal .modal-footer {
  padding: 1.1rem 1.25rem;
}

.cc-upload-modal .modal-footer {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cc-upload-modal-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.cc-upload-modal .modal-title {
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.cc-upload-modal-sub {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.4;
  word-break: break-word;
}

.cc-file-pick {
  position: relative;
  display: block;
  cursor: pointer;
}

.cc-file-pick-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cc-file-pick-ui {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.4rem 0.45rem 0.4rem 0.4rem;
  border: 1px solid var(--cc-field-outline, #dbe3ee);
  border-radius: 0.9rem;
  background: var(--cc-input, #fff);
}

.cc-file-pick:focus-within .cc-file-pick-ui {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18);
}

.cc-file-pick-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.cc-file-pick-name {
  min-width: 0;
  font-size: 0.875rem;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-file-pick-name.is-empty {
  color: #64748b;
}

.cc-upload-lote-row {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: #fff;
}

.cc-upload-lote-row.is-selected {
  border-color: #93c5fd;
}

.cc-upload-lote-row .form-check-label {
  cursor: pointer;
}

.cc-upload-lote-file {
  margin-top: 0.7rem;
}

@media (max-width: 991.98px) {
  .projeto-docs-layout {
    grid-template-columns: 1fr;
  }

  .projeto-docs-aside {
    position: static;
    order: -1;
  }
}

@media (max-width: 991.98px) {
  .llm-progress-overlay,
  .app-shell-body.has-section-rail .llm-progress-overlay {
    left: auto;
    right: 1rem;
    bottom: 1rem;
    width: min(22.5rem, calc(100vw - 2rem));
  }
}

@media (max-width: 767.98px) {
  .llm-progress-overlay,
  .app-shell-body.has-section-rail .llm-progress-overlay {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    width: auto;
  }

  .projeto-workspace-tabs-bar,
  .projeto-workspace-tabs {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .projeto-workspace-tabs {
    flex-wrap: nowrap;
  }

  .projeto-workspace-tabs .nav-link {
    white-space: nowrap;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .projeto-escolha-card {
    padding: 0.9rem 0.95rem;
  }
}

.mapa-osc-modal .modal-header,
.mapa-osc-modal .modal-footer {
  border-color: rgba(15, 23, 42, 0.08);
}

.mapa-osc-search {
  position: relative;
  margin-bottom: 0.85rem;
}

.mapa-osc-search > i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.mapa-osc-search .form-control {
  padding-left: 2.35rem;
}

.mapa-osc-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mapa-osc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.mapa-osc-name {
  display: block;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.mapa-osc-name:hover,
.mapa-osc-name:focus-visible {
  color: #0f766e;
  text-decoration: underline;
}

.mapa-osc-meta {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #64748b;
}

.mapa-osc-badge {
  display: inline-flex;
  margin-top: 0.4rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.mapa-osc-badge.is-on {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.mapa-osc-badge.is-off {
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
}

.mapa-osc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.mapa-osc-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.mapa-osc-action:hover,
.mapa-osc-action:focus-visible {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.06);
}

.mapa-osc-empty {
  text-align: center;
  color: #64748b;
  padding: 1.5rem 0.5rem;
}

@media (max-width: 767.98px) {
  .mapa-osc-row {
    grid-template-columns: 1fr;
  }

  .mapa-osc-actions {
    justify-content: flex-start;
  }
}

.elaboracao-layout-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}

.elaboracao-layout-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid #d4dce4;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.elaboracao-layout-card strong { color: #1f2937; font-size: .98rem; }
.elaboracao-layout-card small { color: #526070; line-height: 1.45; }
.elaboracao-layout-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .07);
}

.elaboracao-layout-opcao .btn-check:focus-visible + .elaboracao-layout-card {
  outline: 3px solid #69a8d5;
  outline-offset: 2px;
}
.elaboracao-layout-preview {
  --preview-accent: #1F3A60;
  --preview-pale: #edf4ef;
  --preview-ink: #1f2937;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  width: 100%;
  min-height: 8rem;
  padding: .85rem;
  border: 1px solid #dbe3ea;
  border-radius: .8rem;
  background: #ffffff;
  color: var(--preview-ink);
  position: relative;
  overflow: hidden;
}

.elaboracao-layout-preview .preview-heading {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .2rem;
}

.elaboracao-layout-preview .preview-line {
  font-size: .69rem;
  line-height: 1.45;
  color: #415163;
}

.elaboracao-layout-preview .preview-table {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  margin-top: auto;
  border: 1px solid color-mix(in srgb, var(--preview-accent) 26%, #cbd5e1);
  border-radius: .45rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--preview-accent) 8%, #ffffff);
  font-size: .6rem;
  font-weight: 700;
}
.elaboracao-layout-preview .preview-table span { padding: .35rem .45rem; }
.elaboracao-layout-preview .preview-table span + span { border-left: 1px solid color-mix(in srgb, var(--preview-accent) 22%, #cbd5e1); }

/* 1. Institucional Faixa */
.elaboracao-layout-preview.is-roteiro,
.elaboracao-layout-preview.is-institucional-faixa {
  --preview-accent: #1F3A60;
  font-family: 'Times New Roman', serif;
}
.elaboracao-layout-preview.is-roteiro .preview-heading,
.elaboracao-layout-preview.is-institucional-faixa .preview-heading {
  display: block;
  padding: .3rem .55rem;
  border-radius: 3px;
  background: var(--preview-accent, #1F3A60);
  color: #ffffff !important;
}

/* 2. Acadêmico Versalete */
.elaboracao-layout-preview.is-cientifico,
.elaboracao-layout-preview.is-academico-versalete {
  --preview-accent: #2B3A4A;
  font-family: 'Times New Roman', serif;
}
.elaboracao-layout-preview.is-cientifico .preview-heading,
.elaboracao-layout-preview.is-academico-versalete .preview-heading {
  display: block;
  text-align: center;
  font-variant: small-caps;
  letter-spacing: .08em;
  border-bottom: 1.5px solid color-mix(in srgb, var(--preview-accent, #2B3A4A) 35%, transparent);
  padding-bottom: .25rem;
  color: var(--preview-accent, #2B3A4A) !important;
}

/* 3. Executivo Bloco */
.elaboracao-layout-preview.is-executivo-carbono,
.elaboracao-layout-preview.is-executivo-bloco {
  --preview-accent: #1E3A5F;
  font-family: Arial, sans-serif;
}
.elaboracao-layout-preview.is-executivo-carbono .preview-heading,
.elaboracao-layout-preview.is-executivo-bloco .preview-heading {
  display: block;
  padding: .28rem .5rem;
  border-radius: 3px;
  background: #E5ECF2 !important;
  color: #1E3A5F !important;
  font-weight: 700;
}

/* 4. Técnico Etiqueta */
.elaboracao-layout-preview.is-tecnico,
.elaboracao-layout-preview.is-tecnico-etiqueta {
  --preview-accent: #1A3C4A;
  font-family: Arial, sans-serif;
}
.elaboracao-layout-preview.is-tecnico .preview-heading,
.elaboracao-layout-preview.is-tecnico-etiqueta .preview-heading {
  display: inline-block;
  padding: .2rem .45rem;
  border: 1.5px solid var(--preview-accent, #334155);
  border-radius: 3px;
  color: var(--preview-accent, #334155) !important;
  background: transparent;
}

/* 5. Editorial Amplo / Número */
.elaboracao-layout-preview.is-editorial-amplo,
.elaboracao-layout-preview.is-editorial,
.elaboracao-layout-preview.is-editorial-numero {
  --preview-accent: #3D312A;
  font-family: 'Times New Roman', serif;
}
.elaboracao-layout-preview.is-editorial-amplo .preview-heading,
.elaboracao-layout-preview.is-editorial .preview-heading,
.elaboracao-layout-preview.is-editorial-numero .preview-heading {
  display: block;
  border-bottom: 1.5px solid var(--preview-accent, #3D312A);
  color: var(--preview-accent, #3D312A) !important;
  padding-bottom: .25rem;
}

/* 6. Comunitário Acolhedor */
.elaboracao-layout-preview.is-comunitario-acolhedor,
.elaboracao-layout-preview.is-comunitario {
  --preview-accent: #1F4D38;
  font-family: 'Times New Roman', serif;
}
.elaboracao-layout-preview.is-comunitario-acolhedor .preview-heading,
.elaboracao-layout-preview.is-comunitario .preview-heading {
  display: block;
  padding: .25rem .5rem;
  border-radius: 4px;
  background: #E4F2EA !important;
  color: #1F4D38 !important;
  font-weight: 700;
}

/* 7. Moldura Contorno */
.elaboracao-layout-preview.is-moldura-contorno {
  --preview-accent: #4C2F3A;
  font-family: 'Times New Roman', serif;
}
.elaboracao-layout-preview.is-moldura-contorno .preview-heading {
  display: block;
  padding: .22rem .45rem;
  border: 1.5px solid var(--preview-accent, #334155);
  border-radius: 3px;
  color: var(--preview-accent, #334155) !important;
  background: transparent;
}

/* 8. Camadas Tint */
.elaboracao-layout-preview.is-camadas-tint,
.elaboracao-layout-preview.is-ambiental {
  --preview-accent: #365314;
  font-family: 'Times New Roman', serif;
}
.elaboracao-layout-preview.is-camadas-tint .preview-heading,
.elaboracao-layout-preview.is-ambiental .preview-heading {
  display: block;
  padding: .25rem .5rem;
  border-radius: 3px;
  background: #E1ECC8 !important;
  color: #365314 !important;
  font-weight: 700;
}

/* 9. Geométrico Marcador */
.elaboracao-layout-preview.is-geometrico-marcador {
  --preview-accent: #4A3E72;
  font-family: Arial, sans-serif;
}
.elaboracao-layout-preview.is-geometrico-marcador .preview-heading {
  display: block;
  color: var(--preview-accent, #2E3A4E) !important;
}

/* 10. Cerimonial Ornamento */
.elaboracao-layout-preview.is-cerimonial-ornamento,
.elaboracao-layout-preview.is-cultural {
  --preview-accent: #4A2E18;
  font-family: 'Times New Roman', serif;
}
.elaboracao-layout-preview.is-cerimonial-ornamento .preview-heading,
.elaboracao-layout-preview.is-cultural .preview-heading {
  display: block;
  text-align: center;
  font-variant: small-caps;
  letter-spacing: .08em;
  color: var(--preview-accent, #4A2E18) !important;
}

/* 11. Peça Formal Serena — a hierarquia da antiga prévia, agora selecionável. */
.elaboracao-layout-preview.is-peca-formal-serena {
  --preview-accent: #2E4A3E;
  font-family: 'Times New Roman', serif;
  background: #fff;
  gap: .25rem;
  padding: .85rem 1rem;
  border-radius: 0;
  min-height: 10.5rem;
}
.elaboracao-layout-preview.is-peca-formal-serena .preview-kicker {
  font: .52rem Arial, sans-serif;
  letter-spacing: .12em;
  color: #526B5C;
  margin-bottom: .15rem;
}
.elaboracao-layout-preview.is-peca-formal-serena .preview-heading {
  display: block;
  color: var(--preview-accent, #2E4A3E) !important;
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-transform: none;
  border: 0;
  margin: 0 0 .15rem;
}
.elaboracao-layout-preview.is-peca-formal-serena .preview-meta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: .16rem .45rem;
  border: 1px solid #C9D8CF;
  border-radius: 999px;
  background: #F8FAF9;
  color: #526B5C;
  font-size: .51rem;
  line-height: 1.35;
}
.elaboracao-layout-preview.is-peca-formal-retangular .preview-meta {
  border-radius: 0;
  border-color: #8FA89A;
  color: #3E5A4C;
}
.elaboracao-layout-preview.is-peca-formal-retangular .preview-heading {
  color: #1B3A2E !important;
  border: 1px solid #1B3A2E;
  padding: .22rem .4rem;
}
.elaboracao-layout-preview.is-peca-formal-retangular .preview-section {
  color: #1B3A2E !important;
}
.elaboracao-layout-preview.is-peca-formal-serena .preview-divider {
  width: 100%;
  border-top: 1px solid #C9D8CF;
  margin: .25rem 0 .4rem;
}
.elaboracao-layout-preview.is-peca-formal-serena .preview-section {
  color: var(--preview-accent, #2E4A3E);
  font: 700 .68rem Arial, sans-serif;
}
.elaboracao-layout-preview.is-peca-formal-serena .preview-line {
  font-family: 'Times New Roman', serif;
  color: #17241E;
  font-size: .56rem;
}

/* Cartões dos cinco layouts históricos: cada geometria acompanha o gerador. */
.elaboracao-layout-preview.is-extra-carbono {
  --preview-accent: #374151;
  font-family: Arial, sans-serif;
  border-left: .35rem solid #374151;
  background: #F9FAFB;
}
.elaboracao-layout-preview.is-extra-carbono .preview-heading {
  color: #374151;
  border: 1px solid #9CA3AF;
  padding: .3rem .4rem;
}
.elaboracao-layout-preview.is-extra-juridico {
  --preview-accent: #6B2737;
  font-family: 'Times New Roman', serif;
  background: #FDFBFB;
}
.elaboracao-layout-preview.is-extra-juridico .preview-heading {
  color: #6B2737;
  border: 1.5px solid #6B2737;
  padding: .35rem;
  text-align: center;
}
.elaboracao-layout-preview.is-extra-governanca {
  --preview-accent: #214E57;
  font-family: Arial, sans-serif;
  background: #FAFCFC;
}
.elaboracao-layout-preview.is-extra-governanca .preview-heading {
  color: #214E57;
  background: #DCE9EB;
  padding: .4rem;
}
.elaboracao-layout-preview.is-extra-diplomatico {
  --preview-accent: #23395B;
  font-family: Cambria, Georgia, serif;
  background: #FBFCFE;
}
.elaboracao-layout-preview.is-extra-diplomatico .preview-heading {
  color: #23395B;
  font-variant: small-caps;
  text-align: center;
  border-bottom: 1px solid #23395B;
  padding-bottom: .4rem;
}
.elaboracao-layout-preview.is-extra-patrimonial {
  --preview-accent: #7A5C3E;
  font-family: Cambria, Georgia, serif;
  background: #FEFCFA;
}
.elaboracao-layout-preview.is-extra-patrimonial .preview-heading {
  color: #7A5C3E;
  font-size: 1rem;
  text-transform: none;
  border-bottom: 2px solid #DDCFC0;
  padding-bottom: .2rem;
}

/* ==========================================================================
   ARQUITETURA DE 3 VISTAS INTERNAS DO MODAL DE ELABORAÇÃO
   Vista 1: Sugestões Rápidas | Vista 2: Galeria Completa | Vista 3: Personalizador A4
   ========================================================================== */

#modalElaboracao {
  z-index: 1060 !important;
}

#modalElaboracao .modal-dialog-vista {
  transition: max-width 300ms cubic-bezier(0.16, 1, 0.3, 1), transform 300ms ease;
}

#modalElaboracao[data-current-vista="1"] .modal-dialog-vista {
  max-width: 860px;
}

#modalElaboracao[data-current-vista="2"] .modal-dialog-vista {
  max-width: 1140px;
}

#modalElaboracao[data-current-vista="3"] .modal-dialog-vista {
  max-width: 1200px;
}

.elaboracao-modal-content {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.elaboracao-vista {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 250ms ease, transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.elaboracao-vista.is-active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.elaboracao-vista.is-leaving {
  opacity: 0;
  transform: translateX(-20px);
}

/* Grids de Templates */
.elaboracao-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.galeria-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  position: relative;
  min-height: 400px;
}

.galeria-template-item {
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 200ms ease;
  will-change: transform;
}

.elaboracao-layout-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  height: 100%;
  padding: 0.85rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.elaboracao-layout-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
  transform: translateY(-2px);
}

@keyframes templateBorderPulseLight {
  0% {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25), 0 0 8px rgba(37, 99, 235, 0.12);
  }
  50% {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.5), 0 0 18px rgba(37, 99, 235, 0.28);
  }
  100% {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25), 0 0 8px rgba(37, 99, 235, 0.12);
  }
}

.elaboracao-layout-card.is-selected,
.btn-check:checked + .elaboracao-layout-card,
.elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card {
  border-color: #2563eb;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  transform: translateY(-2px);
  animation: templateBorderPulseLight 2.2s infinite ease-in-out;
}

.elaboracao-layout-card.is-selected strong,
.btn-check:checked + .elaboracao-layout-card strong,
.elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card strong {
  color: #0f172a;
  font-weight: 700;
}

.elaboracao-layout-card.is-selected small,
.btn-check:checked + .elaboracao-layout-card small,
.elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card small {
  color: #334155;
}

.elaboracao-layout-card.is-selected .elaboracao-layout-preview,
.btn-check:checked + .elaboracao-layout-card .elaboracao-layout-preview,
.elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card .elaboracao-layout-preview {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

/* Previews dos Templates */
.elaboracao-layout-preview {
  --preview-accent: #1F3A60;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  min-height: 7rem;
  padding: 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #1e293b;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.elaboracao-layout-preview .preview-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.elaboracao-layout-preview .preview-line {
  font-size: 0.62rem;
  line-height: 1.35;
  color: #64748b;
}

.elaboracao-layout-preview .preview-table {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  margin-top: auto;
  border: 1px solid #cbd5e1;
  border-radius: 0.3rem;
  overflow: hidden;
  background: #f8fafc;
  font-size: 0.55rem;
  font-weight: 700;
}

.elaboracao-layout-preview .preview-table span {
  padding: 0.2rem 0.35rem;
}

.elaboracao-layout-preview .preview-table span + span {
  border-left: 1px solid #e2e8f0;
}

/* Estilos Específicos dos 10 Templates */
.elaboracao-layout-preview.is-roteiro { font-family: Arial, sans-serif; }
.elaboracao-layout-preview.is-roteiro .preview-heading {
  background: #1F3A60;
  color: #FFFFFF;
  padding: 0.2rem 0.4rem;
  display: block;
}

.elaboracao-layout-preview.is-cientifico { font-family: 'Times New Roman', serif; }
.elaboracao-layout-preview.is-cientifico .preview-heading {
  font-variant: small-caps;
  text-align: center;
  color: #2B3A4A;
  letter-spacing: 0.06em;
  display: block;
}

.elaboracao-layout-preview.is-executivo-carbono { font-family: Arial, sans-serif; }
.elaboracao-layout-preview.is-executivo-carbono .preview-heading {
  background: #E5ECF2;
  color: #2B4C6F;
  padding: 0.2rem 0.4rem;
  display: block;
}

.elaboracao-layout-preview.is-tecnico { font-family: Arial, sans-serif; }
.elaboracao-layout-preview.is-tecnico .preview-heading {
  border: 1.2px solid #334155;
  background: #FFFFFF;
  color: #334155;
  padding: 0.15rem 0.4rem;
  display: inline-block;
}

.elaboracao-layout-preview.is-editorial-amplo { font-family: 'Times New Roman', serif; }
.elaboracao-layout-preview.is-editorial-amplo .preview-heading {
  font-size: 0.82rem;
  color: #3D312A;
  font-weight: 700;
  border-bottom: 1.2px solid rgba(61,49,42,0.25);
  padding-bottom: 0.15rem;
}

.elaboracao-layout-preview.is-comunitario-acolhedor { font-family: Arial, sans-serif; }
.elaboracao-layout-preview.is-comunitario-acolhedor .preview-heading {
  background: #E8F0EC;
  color: #2E5A44;
  padding: 0.18rem 0.45rem;
  text-align: center;
  display: block;
}

.elaboracao-layout-preview.is-moldura-contorno { font-family: 'Times New Roman', serif; }
.elaboracao-layout-preview.is-moldura-contorno .preview-heading {
  border: 1.2px solid #334155;
  background: #FFFFFF;
  color: #334155;
  padding: 0.18rem 0.4rem;
  display: block;
}

.elaboracao-layout-preview.is-camadas-tint { font-family: Arial, sans-serif; }
.elaboracao-layout-preview.is-camadas-tint .preview-heading {
  background: #EAF2EC;
  color: #2E4A3E;
  padding: 0.2rem 0.4rem;
  display: block;
}

.elaboracao-layout-preview.is-geometrico-marcador { font-family: Arial, sans-serif; }
.elaboracao-layout-preview.is-geometrico-marcador .preview-heading {
  color: #2E3A4E;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.elaboracao-layout-preview.is-cerimonial-ornamento { font-family: 'Times New Roman', serif; }
.elaboracao-layout-preview.is-cerimonial-ornamento .preview-heading {
  font-variant: small-caps;
  text-align: center;
  color: #4A2E18;
  letter-spacing: 0.08em;
  display: block;
}

/* Ações nos Cards da Galeria (Hover Desktop vs Always Visible Mobile) */
.btn-editar-template-card {
  font-size: 0.76rem;
  padding: 0.2rem 0.65rem;
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .btn-editar-template-card {
    opacity: 0;
    transform: translateY(4px);
  }
  .elaboracao-layout-card:hover .btn-editar-template-card {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: none), (max-width: 768px) {
  .btn-editar-template-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   VISTA 3: WORKSPACE DE PERSONALIZAÇÃO & PRÉVIA A4 COM MARGENS ABNT
   ========================================================================== */

.personalizador-split-workspace {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 580px;
  background: #f1f5f9;
}

.preview-a4-pane {
  background: #475569;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.25rem;
  overflow-y: auto;
  position: relative;
}

.preview-a4-paper-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: auto 0;
}

/* Guias Visuais de Margens ABNT (3cm Superior/Esquerda, 2cm Inferior/Direita) */
.abnt-ruler-guide {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  font-size: 0.62rem;
  font-weight: 700;
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.08);
  border: 1px dashed rgba(59, 130, 246, 0.4);
}

.abnt-guide-top {
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  border-bottom: 1.5px dashed #3b82f6;
}

.abnt-guide-left {
  top: 0;
  left: 0;
  bottom: 0;
  width: 38px;
  border-right: 1.5px dashed #3b82f6;
}

.abnt-guide-right {
  top: 0;
  right: 0;
  bottom: 0;
  width: 26px;
  border-left: 1.5px dashed #3b82f6;
}

.abnt-guide-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: 26px;
  border-top: 1.5px dashed #3b82f6;
}

.abnt-ruler-guide span {
  background: #ffffff;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  line-height: 1;
}

/* Folha A4 */
.preview-a4-paper {
  width: 100%;
  min-height: 560px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  position: relative;
  font-family: 'Times New Roman', serif;
  font-size: 10pt;
  line-height: 1.5;
  color: #1e293b;
  overflow: hidden;
}

.a4-content-area {
  padding: 44px 30px 32px 44px; /* Proporção das margens 3cm sup/esq, 2cm inf/dir */
}

.a4-h1 {
  font-size: 13pt;
  font-weight: 700;
  margin-bottom: 0.85rem;
  transition: all 0.2s ease;
}

.a4-h2 {
  font-size: 11pt;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.a4-p {
  text-align: justify;
  margin-bottom: 0.65rem;
  font-size: 9.5pt;
  color: #334155;
}

.a4-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.85rem;
  font-size: 8.5pt;
}

.a4-table th, .a4-table td {
  border: 1px solid #cbd5e1;
  padding: 5px 8px;
}

/* Painel de Customização */
.customizacao-pane {
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  max-height: 620px;
  border-left: 1px solid #e2e8f0;
}

.color-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.color-chip-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.color-chip-btn:hover {
  transform: scale(1.18);
}

.color-chip-btn.active {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px #fff inset, 0 0 0 2px #3b82f6;
}

/* Selo de Contraste WCAG */
.wcag-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wcag-pass {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.wcag-warn {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.wcag-fail {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Modo Escuro */
html[data-theme="dark"] .elaboracao-modal-content,
html[data-bs-theme="dark"] .elaboracao-modal-content,
[data-bs-theme="dark"] .elaboracao-modal-content,
html[data-theme="dark"] .customizacao-pane,
html[data-bs-theme="dark"] .customizacao-pane,
[data-bs-theme="dark"] .customizacao-pane {
  background: #0f172a;
  color: #f8fafc;
  border-color: #334155;
}

html[data-theme="dark"] .elaboracao-layout-card,
html[data-bs-theme="dark"] .elaboracao-layout-card,
[data-bs-theme="dark"] .elaboracao-layout-card {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

html[data-theme="dark"] .elaboracao-layout-card strong,
html[data-bs-theme="dark"] .elaboracao-layout-card strong,
[data-bs-theme="dark"] .elaboracao-layout-card strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .elaboracao-layout-card small,
html[data-bs-theme="dark"] .elaboracao-layout-card small,
[data-bs-theme="dark"] .elaboracao-layout-card small,
html[data-theme="dark"] .elaboracao-layout-card small.text-muted,
html[data-bs-theme="dark"] .elaboracao-layout-card small.text-muted,
[data-bs-theme="dark"] .elaboracao-layout-card small.text-muted {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .elaboracao-layout-card .template-status-badge,
html[data-bs-theme="dark"] .elaboracao-layout-card .template-status-badge,
[data-bs-theme="dark"] .elaboracao-layout-card .template-status-badge {
  background: #334155 !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}

html[data-theme="dark"] .elaboracao-layout-card:hover,
html[data-bs-theme="dark"] .elaboracao-layout-card:hover,
[data-bs-theme="dark"] .elaboracao-layout-card:hover {
  border-color: #38bdf8;
  background: #243248;
}

@keyframes templateBorderPulseDark {
  0% {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45), 0 0 12px rgba(56, 189, 248, 0.25);
  }
  50% {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.75), 0 0 24px rgba(56, 189, 248, 0.55);
  }
  100% {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45), 0 0 12px rgba(56, 189, 248, 0.25);
  }
}

/* Card Selecionado em Dark Mode - Fundo Noturno Iluminado, Alto Contraste e Animação de Borda */
html[data-theme="dark"] .elaboracao-layout-card.is-selected,
html[data-bs-theme="dark"] .elaboracao-layout-card.is-selected,
[data-bs-theme="dark"] .elaboracao-layout-card.is-selected,
html[data-theme="dark"] .btn-check:checked + .elaboracao-layout-card,
html[data-bs-theme="dark"] .btn-check:checked + .elaboracao-layout-card,
[data-bs-theme="dark"] .btn-check:checked + .elaboracao-layout-card,
html[data-theme="dark"] .elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card,
html[data-bs-theme="dark"] .elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card,
[data-bs-theme="dark"] .elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card {
  background: linear-gradient(180deg, #182e4e 0%, #0e2039 100%) !important;
  border-color: #38bdf8 !important;
  transform: translateY(-2px);
  animation: templateBorderPulseDark 2.2s infinite ease-in-out !important;
}

html[data-theme="dark"] .elaboracao-layout-card.is-selected strong,
html[data-bs-theme="dark"] .elaboracao-layout-card.is-selected strong,
[data-bs-theme="dark"] .elaboracao-layout-card.is-selected strong,
html[data-theme="dark"] .btn-check:checked + .elaboracao-layout-card strong,
html[data-bs-theme="dark"] .btn-check:checked + .elaboracao-layout-card strong,
[data-bs-theme="dark"] .btn-check:checked + .elaboracao-layout-card strong,
html[data-theme="dark"] .elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card strong,
html[data-bs-theme="dark"] .elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card strong,
[data-bs-theme="dark"] .elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card strong {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] .elaboracao-layout-card.is-selected small,
html[data-bs-theme="dark"] .elaboracao-layout-card.is-selected small,
[data-bs-theme="dark"] .elaboracao-layout-card.is-selected small,
html[data-theme="dark"] .btn-check:checked + .elaboracao-layout-card small,
html[data-bs-theme="dark"] .btn-check:checked + .elaboracao-layout-card small,
[data-bs-theme="dark"] .btn-check:checked + .elaboracao-layout-card small,
html[data-theme="dark"] .elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card small,
html[data-bs-theme="dark"] .elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card small,
[data-bs-theme="dark"] .elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card small {
  color: #e2e8f0 !important;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .elaboracao-layout-card.is-selected .template-status-badge,
html[data-bs-theme="dark"] .elaboracao-layout-card.is-selected .template-status-badge,
[data-bs-theme="dark"] .elaboracao-layout-card.is-selected .template-status-badge {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

html[data-theme="dark"] .elaboracao-layout-card.is-selected .elaboracao-layout-preview,
html[data-bs-theme="dark"] .elaboracao-layout-card.is-selected .elaboracao-layout-preview,
[data-bs-theme="dark"] .elaboracao-layout-card.is-selected .elaboracao-layout-preview,
html[data-theme="dark"] .btn-check:checked + .elaboracao-layout-card .elaboracao-layout-preview,
html[data-bs-theme="dark"] .btn-check:checked + .elaboracao-layout-card .elaboracao-layout-preview,
[data-bs-theme="dark"] .btn-check:checked + .elaboracao-layout-card .elaboracao-layout-preview,
html[data-theme="dark"] .elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card .elaboracao-layout-preview,
html[data-bs-theme="dark"] .elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card .elaboracao-layout-preview,
[data-bs-theme="dark"] .elaboracao-layout-opcao .btn-check:checked + .elaboracao-layout-card .elaboracao-layout-preview {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.35);
}

html[data-theme="dark"] .personalizador-split-workspace,
html[data-bs-theme="dark"] .personalizador-split-workspace,
[data-bs-theme="dark"] .personalizador-split-workspace {
  background: #0b1120;
}

@media (max-width: 992px) {
  .personalizador-split-workspace {
    grid-template-columns: 1fr;
  }
  .preview-a4-pane {
    min-height: 400px;
  }
  .customizacao-pane {
    border-left: none;
    border-top: 1px solid #e2e8f0;
  }
  .galeria-templates-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}



/* ===== Plano de trabalho paginado (área da OSC) ===== */
.doc-plano .doc-capa-impressao { display: none; }
.doc-sumario-item {
    display: flex; gap: .5rem; align-items: flex-start; width: 100%; text-align: left;
    background: transparent; border: 0; border-radius: .6rem; padding: .4rem .6rem;
    font-size: .875rem; line-height: 1.3; color: inherit;
}
.doc-sumario-item:hover { background: rgba(var(--bs-primary-rgb), .08); }
.doc-sumario-item.ativo { background: rgba(var(--bs-primary-rgb), .14); color: var(--bs-primary-text-emphasis); font-weight: 600; }
html[data-theme="dark"] .doc-sumario-item.ativo { background: rgba(var(--bs-primary-rgb), .35); color: #fff; }
html[data-theme="dark"] .doc-secao { color: #9ec5fe; border-bottom-color: rgba(158, 197, 254, .3); }
.doc-sumario-num {
    flex: 0 0 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: .75rem; background: rgba(var(--bs-secondary-rgb), .15);
}
.doc-sumario-item.ativo .doc-sumario-num { background: var(--bs-primary); color: #fff; }
@media (max-width: 991.98px) { .doc-plano .doc-paginas { height: 65vh; } .doc-sumario { max-height: 9rem; overflow-y: auto; border: 1px solid var(--bs-border-color); border-radius: 1rem; padding: .5rem; } }
/* Altura contida: o plano rola dentro da própria caixa, sem ocupar a página inteira. */
@media screen {
    /* Altura fixa: a caixa não encolhe em seções curtas. */
    .doc-paginas { position: relative; height: min(72vh, 44rem); overflow-y: auto; border-radius: 1rem; scrollbar-gutter: stable; }
    .doc-pagina { padding: 1.1rem 1.25rem !important; }
    .doc-pagina .doc-secao { font-size: 1.1rem; margin-bottom: .75rem; }
    .doc-corpo { font-size: .875rem; line-height: 1.55; }
}
@media screen and (min-width: 992px) { .doc-sumario { max-height: min(72vh, 44rem); overflow-y: auto; } }
.doc-pagina { background: var(--bs-body-bg); }
.doc-pagina-rotulo { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bs-secondary-color); margin-bottom: .25rem; }
.doc-secao { font-weight: 800; color: var(--bs-primary); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid rgba(var(--bs-primary-rgb), .2); }
.doc-corpo { line-height: 1.65; font-size: .95rem; }
.doc-corpo p { margin-bottom: .85rem; text-align: justify; }
.doc-corpo .doc-titulo { font-weight: 700; margin-top: 1.4rem; margin-bottom: .6rem; }
.doc-corpo h4.doc-titulo { font-size: 1.05rem; }
.doc-corpo h5.doc-titulo { font-size: .98rem; }
.doc-corpo ul, .doc-corpo ol { padding-left: 1.3rem; margin-bottom: .9rem; }
.doc-corpo li { margin-bottom: .35rem; }
.doc-corpo .doc-tabela { font-size: .85rem; margin-bottom: 1rem; }
.doc-corpo .doc-tabela th { background: rgba(var(--bs-primary-rgb), .08); }
.doc-plano.doc-todas .doc-nav { display: none !important; }
.doc-plano.doc-todas .doc-pagina { margin-bottom: 1rem; }

@media print {
    body.doc-imprimindo * { visibility: hidden; }
    body.doc-imprimindo .doc-plano, body.doc-imprimindo .doc-plano * { visibility: visible; }
    body.doc-imprimindo .doc-plano { position: absolute; left: 0; top: 0; width: 100%; color: #111; }
    body.doc-imprimindo .doc-acoes, body.doc-imprimindo .doc-sumario, body.doc-imprimindo .doc-nav,
    body.doc-imprimindo .doc-pagina-rotulo { display: none !important; }
    body.doc-imprimindo .doc-plano .row > [class*="col-"] { width: 100% !important; flex: 0 0 100%; max-width: 100%; }
    body.doc-imprimindo .doc-paginas { height: auto !important; max-height: none !important; overflow: visible !important; }
    body.doc-imprimindo .doc-pagina { display: block !important; border: 0 !important; padding: 0 !important; background: #fff; break-before: page; }
    body.doc-imprimindo .doc-capa-impressao {
        display: flex !important; flex-direction: column; justify-content: center; min-height: 90vh; border-left: 6px solid #1E3A5F; padding-left: 1.5rem;
    }
    body.doc-imprimindo .doc-capa-osc { font-size: 11pt; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
    body.doc-imprimindo .doc-capa-titulo { font-size: 30pt; font-weight: 800; color: #1E3A5F; margin: .5rem 0; }
    body.doc-imprimindo .doc-capa-edital { font-size: 12pt; color: #333; }
    body.doc-imprimindo .doc-secao { color: #1E3A5F; border-bottom-color: #1E3A5F; }
    body.doc-imprimindo .doc-corpo { font-size: 11pt; }
    body.doc-imprimindo .doc-corpo .doc-tabela th { background: #EEF2F7 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body.doc-imprimindo .doc-corpo tr, body.doc-imprimindo .doc-corpo li { break-inside: avoid; }
    @page { size: A4; margin: 20mm 18mm; }
}

/* Seção paginada preenche a caixa de altura fixa. */
@media screen { .doc-plano:not(.doc-todas) .doc-pagina:not([hidden]) { min-height: 100%; } }

/* Linha do tempo do acompanhamento (área da OSC): rolagem própria. */
.cli-linha-tempo { max-height: min(60vh, 30rem); overflow-y: auto; padding-right: .5rem; scrollbar-gutter: stable; }

/* Atalho do menu lateral que abre pop-up (mesmo visual dos links de seção). */
button.cc-section-rail-item { border: 0; background: transparent; font: inherit; cursor: pointer; }

/* Pop-up de histórico da solicitação: altura confortável com rolagem. */
#historicoSolicitacaoModal .historico-modal-corpo { max-height: min(65vh, 38rem); overflow-y: auto; scrollbar-gutter: stable; }
#historicoSolicitacaoModal .historico-item { background: var(--bs-body-bg); }
