:root {
  --tem-ink: #12223f;
  --tem-muted: #667792;
  --tem-line: #dce6f2;
  --tem-soft: #f4f8fc;
  --tem-blue: #0d47c4;
  --tem-cyan: #05b7df;
  --tem-success: #148463;
  --tem-warning: #c47a0d;
  --tem-danger: #c53c52;
}

.mobile-menu-button { display: none; border: 0; background: transparent; color: var(--tem-ink); font-size: 24px; cursor: pointer; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--tem-blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.progressive-page-header { align-items: flex-end; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card, .project-empty-state { min-height: 250px; padding: 24px; border: 1px solid var(--tem-line); border-radius: 22px; background: #fff; color: var(--tem-ink); text-align: left; text-decoration: none; box-shadow: 0 12px 34px rgba(26, 61, 108, .07); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.project-card:hover { transform: translateY(-3px); border-color: #9acde7; box-shadow: 0 18px 40px rgba(13, 71, 196, .12); }
.project-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.project-avatar { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: linear-gradient(145deg, var(--tem-blue), var(--tem-cyan)); color: white; font-weight: 800; }
.project-card h2 { margin: 0 0 6px; font-size: 20px; }
.project-card p { margin: 0; color: var(--tem-muted); }
.project-card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0; padding: 15px 0; border-top: 1px solid var(--tem-line); border-bottom: 1px solid var(--tem-line); }
.project-card-metrics span { color: var(--tem-muted); font-size: 11px; }
.project-card-metrics b { display: block; margin-bottom: 3px; color: var(--tem-ink); font-size: 18px; }
.project-open-link { color: var(--tem-blue); font-weight: 750; }
.project-empty-state { display: grid; place-content: center; gap: 8px; width: 100%; border-style: dashed; color: var(--tem-muted); cursor: pointer; }
.project-empty-state span { color: var(--tem-blue); font-size: 36px; }
.project-empty-state b { color: var(--tem-ink); font-size: 18px; }

.progressive-dialog { width: min(620px, calc(100vw - 30px)); padding: 0; border: 0; border-radius: 24px; box-shadow: 0 25px 90px rgba(6, 25, 58, .26); }
.progressive-dialog::backdrop { background: rgba(6, 20, 45, .58); backdrop-filter: blur(3px); }
.progressive-dialog .form { padding: 28px; }
.dialog-head, .dialog-actions, .project-context-head, .project-context-actions, .tab-action-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-close { border: 0; background: transparent; color: var(--tem-muted); font-size: 28px; cursor: pointer; }
.dialog-actions { justify-content: flex-end; margin-top: 10px; }

.project-context-head { margin-bottom: 20px; padding: 6px 2px; align-items: flex-end; }
.project-context-head h1 { margin: 2px 0 7px; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--tem-muted); text-decoration: none; }
.project-context-actions { justify-content: flex-end; }
.project-tabs { display: flex; gap: 4px; margin-bottom: 22px; padding: 5px; overflow-x: auto; border: 1px solid var(--tem-line); border-radius: 15px; background: #fff; }
.project-tabs a { flex: 0 0 auto; padding: 10px 15px; border-radius: 10px; color: var(--tem-muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.project-tabs a:hover { background: var(--tem-soft); color: var(--tem-blue); }
.project-tabs a.active { background: var(--tem-blue); color: white; box-shadow: 0 6px 15px rgba(13, 71, 196, .2); }

.progressive-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.progressive-kpi-grid article { padding: 20px; border: 1px solid var(--tem-line); border-radius: 18px; background: white; }
.progressive-kpi-grid span, .progressive-kpi-grid small { display: block; color: var(--tem-muted); }
.progressive-kpi-grid strong { display: block; margin: 8px 0 5px; color: var(--tem-ink); font-size: 30px; }
.progressive-kpi-grid .tes-kpi { background: linear-gradient(135deg, #082e82, #0d66ce); }
.progressive-kpi-grid .tes-kpi span, .progressive-kpi-grid .tes-kpi small { color: #cfe7ff; }
.progressive-kpi-grid .tes-kpi strong { color: #fff; }
.severity-summary-list { display: grid; gap: 10px; }
.severity-summary-list > div { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--tem-line); }
.project-tab-empty { padding: 50px; text-align: center; }

.tab-action-row { margin-bottom: 16px; align-items: flex-end; }
.tab-action-row h2 { margin-bottom: 4px; }
.asset-progress-list { display: grid; gap: 15px; }
.asset-progress-card { padding: 22px; border: 1px solid var(--tem-line); border-radius: 20px; background: white; }
.asset-domain { display: flex; align-items: center; gap: 13px; }
.asset-domain h3 { margin: 0 0 3px; }
.asset-globe { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #e9f5ff; color: var(--tem-blue); font-size: 22px; }
.authorization-lane { display: flex; align-items: center; margin: 22px 0; }
.lane-step { display: grid; grid-template-columns: 30px auto; column-gap: 8px; align-items: center; min-width: 116px; color: var(--tem-muted); }
.lane-step i { display: grid; grid-row: 1 / 3; width: 30px; height: 30px; place-items: center; border: 1px solid var(--tem-line); border-radius: 50%; background: #fff; font-style: normal; }
.lane-step b { color: var(--tem-ink); font-size: 13px; }
.lane-step small { font-size: 11px; }
.lane-step.done i { border-color: var(--tem-success); background: var(--tem-success); color: white; }
.lane-step.current i { border-color: var(--tem-blue); color: var(--tem-blue); }
.lane-line { flex: 1; height: 1px; margin: 0 8px; background: var(--tem-line); }
.verification-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 13px; }
.verification-options > div { padding: 15px; border: 1px solid var(--tem-line); border-radius: 12px; background: white; }
.verification-options code { display: block; margin: 9px 0; padding: 8px; overflow-wrap: anywhere; border-radius: 8px; background: #eff4fa; font-size: 11px; }
.verified-banner { padding: 13px 15px; border-radius: 12px; background: #e6f6ef; color: #0c6d50; font-weight: 700; }

.execution-config-grid { align-items: start; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.armed-control { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px; border: 1px solid #f0cfd4; border-radius: 14px; background: #fff7f8; }
.armed-control span, .armed-control small { display: block; }
.armed-control small { margin-top: 4px; color: var(--tem-muted); }
.armed-control input { width: 22px; height: 22px; accent-color: var(--tem-danger); }
.compact-timeline { display: grid; }
.compact-timeline a { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--tem-line); color: var(--tem-ink); text-decoration: none; }
.static-control-list > div { display: grid; grid-template-columns: 12px 1fr; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--tem-line); }
.static-control-list small { display: block; margin-top: 3px; color: var(--tem-muted); }
.compact-timeline small { display: block; margin-top: 3px; color: var(--tem-muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #8ca0b8; }
.status-dot.status-running, .status-dot.status-queued { background: var(--tem-cyan); box-shadow: 0 0 0 5px rgba(5, 183, 223, .12); }
.status-dot.status-completed { background: var(--tem-success); }
.status-dot.status-failed { background: var(--tem-danger); }

.compact-findings-table td:nth-child(3) small { display: block; max-width: 520px; margin-top: 4px; color: var(--tem-muted); }
.compact-findings-table code { font-size: 11px; }
.evidence-card-list { display: grid; gap: 9px; }
.evidence-card-list details { border: 1px solid var(--tem-line); border-radius: 13px; background: #fff; }
.evidence-card-list summary { display: flex; align-items: center; justify-content: space-between; padding: 14px; cursor: pointer; }
.evidence-card-list details > div { padding: 0 14px 14px; }
.evidence-card-list pre { max-height: 240px; overflow: auto; }
.governance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.governance-card { min-height: 230px; padding: 24px; border: 1px solid var(--tem-line); border-radius: 20px; background: white; color: var(--tem-ink); text-decoration: none; }
.governance-card > span { color: var(--tem-blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.governance-card p { color: var(--tem-muted); line-height: 1.6; }
.governance-card.disabled { background: var(--tem-soft); }
.report-hub { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; }
.report-actions { display: flex; gap: 9px; }
.active-retest-confirm { position: relative; }
.active-retest-confirm > summary { list-style: none; cursor: pointer; }
.active-retest-confirm > form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 320px; padding: 14px; border: 1px solid var(--tem-line); border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(6, 25, 58, .2); }
.active-retest-confirm label { display: grid; gap: 6px; margin-bottom: 9px; font-size: 12px; }

.operations-health-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.health-tile { padding: 16px; border: 1px solid var(--tem-line); border-radius: 16px; background: white; }
.health-tile span, .health-tile small { display: block; color: var(--tem-muted); }
.health-tile strong { display: block; margin: 7px 0 4px; color: var(--tem-ink); font-size: 22px; }
.health-tile.ok { border-left: 4px solid var(--tem-success); }
.health-tile.warning { border-left: 4px solid var(--tem-warning); }

@media (max-width: 1100px) {
  .project-grid, .governance-grid { grid-template-columns: repeat(2, 1fr); }
  .progressive-kpi-grid, .operations-health-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-menu-button { display: block; }
  body.app-body .sidebar { position: fixed; left: -290px; top: 74px; width: 270px; height: calc(100vh - 74px); z-index: 1000; transition: left .2s ease; }
  body.mobile-sidebar-open .sidebar { left: 0 !important; display: block !important; }
}

@media (max-width: 720px) {
  .project-grid, .governance-grid, .progressive-kpi-grid, .operations-health-grid, .verification-options, .field-grid { grid-template-columns: 1fr; }
  .project-context-head, .tab-action-row, .report-hub { align-items: flex-start; flex-direction: column; }
  .authorization-lane { align-items: flex-start; flex-direction: column; gap: 9px; }
  .lane-line { width: 1px; height: 12px; margin-left: 15px; }
  .project-card-metrics { grid-template-columns: repeat(3, 1fr); }
  .report-actions { flex-wrap: wrap; }
}

/* v125.14 — barra fixa limpa e isolada, alinhada ao padrão do Fraud Manager. */
.app-body { padding-top: 104px !important; }
.app-topbar.appbar.appbar-clean {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: 1300 !important;
  width: 100% !important;
  height: 104px !important;
  margin: 0 !important;
  padding: 14px 48px 14px 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #fff !important;
  border-bottom: 1px solid #dbe4ef !important;
  box-shadow: 0 8px 24px rgba(20, 48, 84, .05) !important;
  backdrop-filter: none !important;
}
.appbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; }
.appbar-help { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #dbe4ef; border-radius: 999px; color: #0753a8; font-weight: 850; text-decoration: none; background: #fff; }
.appbar-language { margin: 0 !important; padding: 4px !important; background: #f7f9fc !important; box-shadow: none !important; }
.appbar-language a { color: #607086 !important; }
.appbar-language a.active-lang { background: #4e91c4 !important; color: #fff !important; }
.appbar-online { width: 13px; height: 13px; flex: 0 0 13px; border-radius: 50%; background: #23bf67; box-shadow: 0 0 0 5px #e9f9ef; }
.appbar-user-card { min-width: 312px; min-height: 68px; padding: 9px 18px 9px 12px !important; border: 1px solid #dbe4ef !important; border-radius: 18px !important; background: #fff !important; box-shadow: 0 7px 18px rgba(20, 48, 84, .05) !important; }
.appbar-user-card .avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; background: linear-gradient(145deg, #497db5, #65b3d0); color: #fff; }
.appbar-user-card .top-user-text { display: grid; line-height: 1.18; }
.appbar-user-card .top-user-text b { color: #102039; font-size: 14px; }
.appbar-user-card .top-user-text small { color: #62748b; font-size: 11px; }
.appbar-user-card .appbar-role { margin-top: 2px; color: #52657c; }
.logout-top-button { min-width: 76px; min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 14px !important; background: #0757c7 !important; color: #fff !important; }
.app-body .sidebar { top: 104px !important; height: calc(100vh - 104px) !important; }
.app-body .app-main { min-height: calc(100vh - 104px) !important; }

@media (max-width: 1100px) {
  .app-topbar.appbar.appbar-clean { height: 82px !important; padding: 10px 18px !important; }
  .app-body { padding-top: 82px !important; }
  body.app-body .sidebar { top: 82px !important; height: calc(100vh - 82px) !important; }
  .appbar-help, .appbar-language, .appbar-online { display: none !important; }
  .appbar-user-card { min-width: 0; }
}
@media (max-width: 720px) {
  .app-topbar.appbar.appbar-clean { height: 74px !important; min-height: 74px !important; padding: 8px 12px !important; }
  .app-body { padding-top: 74px !important; }
  .appbar-user-card { display: none !important; }
  .appbar-actions { gap: 8px; }
}
[hidden] { display: none !important; }

.side-nav .nav-icon { font-size: 20px !important; font-weight: 750; }

/* v125.21: navegação compacta, progresso e tabelas largas. */
@media (min-width:1101px) {
  .app-body.sidebar-collapsed .sidebar { width:76px!important; transform:none!important; padding-inline:8px!important; }
  .app-body.sidebar-collapsed .app-main { margin-left:76px!important; width:calc(100% - 76px)!important; }
  .app-body.sidebar-collapsed .side-nav a { display:flex!important; justify-content:center!important; align-items:center!important; padding:13px 5px!important; font-size:0!important; }
  .app-body.sidebar-collapsed .side-nav a>span:not(.nav-icon) { display:none!important; }
  .app-body.sidebar-collapsed .side-nav .nav-icon { display:inline-flex!important; align-items:center; justify-content:center; width:28px!important; min-width:28px!important; font-size:24px!important; }
  .app-body.sidebar-collapsed .menu-collapse-handle { right:8px!important; }
}
.badge.info { background:#eaf2ff; color:#20457a; border:1px solid #cfdef5; }
.phase-budget-preview { margin:0 0 14px; padding:14px 16px; background:#f4f8fe; border:1px solid #d9e6f7; border-radius:12px; color:#223653; }
.phase-budget-preview strong { display:block; margin-bottom:7px; }
.phase-budget-preview ul { margin:0 0 8px; padding-left:20px; line-height:1.55; }
.phase-budget-preview small { display:block; color:#596c82; line-height:1.4; }
.scan-status-progress { display:block; width:100%; height:12px; margin:8px 0; overflow:hidden; border-radius:999px; background:#deebfb; }
.scan-progress-fill { display:block; height:100%; background:linear-gradient(90deg,#0c61d4,#24b4ee); border-radius:inherit; transition:width .55s ease; position:relative; overflow:hidden; }
.scan-progress-fill::after { content:''; position:absolute; inset:0; background:linear-gradient(110deg,transparent 10%,rgba(255,255,255,.34) 50%,transparent 90%); animation:scan-progress-shimmer 1.7s linear infinite; }
@keyframes scan-progress-shimmer { from {transform:translateX(-100%)} to {transform:translateX(100%)} }
.wide-table-scroll { overflow:auto!important; max-height:min(68vh,680px); scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; }
.wide-table-scroll::-webkit-scrollbar { display:none; }
.wide-table-scroll table { min-width:max(100%,950px); }
.wide-table-scroll thead th { position:sticky; top:0; z-index:1; background:#f6f9fd; }
@media (prefers-reduced-motion:reduce) { .scan-progress-fill,.scan-progress-fill::after { transition:none; animation:none; } }

/* v125.22: controles do Workspace. */
@media (min-width:1101px) {
  .app-body.sidebar-collapsed .menu-collapse-handle { top:8px!important; right:calc(50% - 18px)!important; z-index:5; }
  .app-body.sidebar-collapsed .side-nav { padding-top:58px!important; }
}
.workspace-meta { font-size:12px; color:#52657c; font-weight:650; }
.workspace-topics { display:inline-block; margin:5px 5px 0 0; color:#52657c; font-size:11px; }
.workspace-topics ul { margin:0; padding-left:17px; }
.workspace-vulnerabilities-card .workspace-table-scroll {
  height:min(65vh,680px);
  min-height:180px;
  max-height:min(65vh,680px)!important;
  overflow:auto!important;
  padding-bottom:0;
  scrollbar-width:none!important;
  -ms-overflow-style:none;
  overscroll-behavior:contain;
}
.workspace-vulnerabilities-card .workspace-table-scroll::-webkit-scrollbar { display:none!important; width:0; height:0; }
.invisible-scroll-surface { cursor:grab; }
.invisible-scroll-surface.is-dragging { cursor:grabbing; user-select:none; }
.invisible-scroll-surface a, .invisible-scroll-surface button,
.invisible-scroll-surface input, .invisible-scroll-surface textarea,
.invisible-scroll-surface select, .invisible-scroll-surface summary { cursor:auto; }
.terms-content { white-space:pre-wrap; overflow-wrap:anywhere; max-height:45vh; overflow:auto; }
.kpi-card .kpi-label { font-size:11px!important; line-height:1.25; letter-spacing:.02em; }

/* Admin Tenants */
.tenant-admin-card { margin-bottom: 18px; }
.tenant-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: end; }
.tenant-admin-grid > label { display: grid; gap: 7px; font-weight: 600; }
.tenant-admin-grid input:not([type=checkbox]), .tenant-admin-grid textarea { width: 100%; box-sizing: border-box; }
.tenant-admin-full, .tenant-admin-options { grid-column: 1 / -1; }
.tenant-admin-options { border: 1px solid #dbe4f0; border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; }
.tenant-admin-options legend { padding: 0 6px; font-weight: 700; }
.tenant-option { display: flex; gap: 10px; align-items: flex-start; flex: 1 1 230px; padding: 12px; border: 1px solid #dbe4f0; border-radius: 10px; cursor: pointer; }
.tenant-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: #0d47c4; flex-shrink: 0; }
.tenant-option span { display: grid; gap: 3px; }
.tenant-option small { font-weight: 400; color: #617189; }
.tenant-admin-actions, .tenant-row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tenant-row-actions form, .tenant-domain form { margin: 0; }
.tenant-admin-table { min-width: 960px; }
.tenant-domain { display: inline-flex; align-items: center; gap: 4px; background: #eef4fc; border-radius: 20px; padding: 3px 8px; margin: 2px; white-space: nowrap; font-size: 12px; }
.tenant-domain-remove { border: 0; background: transparent; cursor: pointer; color: #9a2835; font-size: 18px; line-height: 1; }
.tenant-detail-row[hidden] { display: none; }
.tenant-detail-row > td { background: #f5f8fc; padding: 22px; }
.temporary-password { display: inline-block; padding: 12px 16px; font-size: 1.1rem; letter-spacing: .04em; background: #fff; border-radius: 8px; user-select: all; }
@media (max-width: 720px) { .tenant-admin-grid { grid-template-columns: 1fr; } }
