:root {
  --brand-primary: #0d5ca6;
  --brand-primary-dark: #083d6b;
  --brand-bg: #f4f7fb;
  --brand-card: #ffffff;
  --brand-text: #16324f;
  --brand-muted: #6c7a89;
  --brand-border: #dbe5ef;
  --brand-success: #1f8f63;
  --brand-warning: #c97f0a;
  --brand-danger: #c33a3a;
}

body {
  background: var(--brand-bg);
  color: var(--brand-text);
  font-size: 0.93rem;
  line-height: 1.36;
}

.table > :not(caption) > * > * {
  padding: 0.5rem 0.6rem;
}

.form-control,
.form-select,
.btn {
  font-size: 0.92rem;
}

.login-page-clean {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(13, 92, 166, 0.10), transparent 28%),
    linear-gradient(180deg, #f6f9fc 0%, #eef4fa 100%);
}

.login-clean-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-clean-card {
  width: 100%;
  max-width: 430px;
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 26px 70px rgba(8, 32, 61, .12);
}

.login-clean-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  border-radius: 4px;
  padding: .95rem 1.2rem;
}

.login-clean-logo {
  width: min(220px, 100%);
  height: auto;
  display: block;
}

.login-clean-app {
  color: var(--brand-primary);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-clean-title {
  color: var(--brand-primary-dark);
  font-size: 1.8rem;
  font-weight: 800;
}

.login-clean-subtitle {
  color: var(--brand-muted);
  font-size: .98rem;
  line-height: 1.55;
}

.login-clean-form .form-label {
  font-weight: 700;
  color: var(--brand-primary-dark);
}

.login-clean-input {
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid var(--brand-border);
  background: #fbfdff;
  padding: .8rem .95rem;
}

.login-clean-input:focus {
  border-color: rgba(13, 92, 166, .45);
  box-shadow: 0 0 0 .2rem rgba(13, 92, 166, .10);
  background: #fff;
}

.login-clean-submit {
  min-height: 52px;
  border-radius: 14px;
  font-weight: 700;
}

.login-clean-footer {
  border-top: 1px solid var(--brand-border);
  color: var(--brand-muted);
}

@media (max-width: 575.98px) {
  .login-clean-shell {
    padding: 1rem;
  }

  .login-clean-card {
    border-radius: 20px;
  }

  .login-clean-logo-wrap {
    width: 100%;
    padding: .85rem 1rem;
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.app-sidebar {
  background: linear-gradient(180deg, var(--brand-primary-dark), var(--brand-primary));
  color: #fff;
  padding: 1.75rem 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.brand-block-centered {
  justify-content: center;
  margin-bottom: .25rem;
}

.brand-logo-wrap {
  width: 76px;
  min-width: 76px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .6rem;
  border-radius: 14px;
  background: rgba(4, 28, 51, .34);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.brand-logo-wrap-centered {
  width: min(178px, 100%);
  min-width: 0;
  height: 64px;
  padding: .65rem .95rem;
  justify-content: center;
}

.brand-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.brand-logo-wrap-centered .brand-logo {
  width: 100%;
  max-width: 150px;
}

.brand-title {
  font-weight: 700;
}

.brand-subtitle {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
}

.portal-nav {
  margin-top: 2rem;
}

.portal-nav .nav-link {
  color: rgba(255,255,255,.95);
  border-radius: 12px;
  padding: .65rem .8rem;
  margin-bottom: .25rem;
}

.portal-nav .nav-link:hover,
.portal-nav .nav-link.active {
  background: rgba(255,255,255,.16);
}

.nav-group {
  margin: .45rem 0;
}

.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255,255,255,.95);
  padding: .65rem .8rem;
  text-align: left;
  font-weight: 600;
}

.nav-group-toggle:hover,
.nav-group-toggle.is-open {
  background: rgba(255,255,255,.12);
}

.nav-group-title {
  display: inline-flex;
  align-items: center;
}

.nav-group-icon {
  font-size: .9rem;
  transition: transform .2s ease;
  opacity: .85;
}

.nav-group-toggle.is-open .nav-group-icon {
  transform: rotate(180deg);
}

.nav-group-panel {
  display: none;
  padding-top: .3rem;
  padding-left: .35rem;
}

.nav-group-panel.is-open {
  display: block;
}

.nav-sublink {
  padding-left: 1rem;
  font-size: .95rem;
}

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

.topbar {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--brand-border);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.page-subtitle {
  color: var(--brand-muted);
  font-size: .95rem;
}

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

.topbar-build-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.portal-card {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  padding: 1.4rem;
  box-shadow: 0 8px 30px rgba(13, 92, 166, 0.06);
}

.card-kicker {
  color: var(--brand-primary);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
  font-weight: 700;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.card-title {
  font-weight: 600;
  margin-top: .4rem;
}

.card-value {
  font-size: 2rem;
  font-weight: 800;
}

.card-text,
.module-count {
  color: var(--brand-muted);
  margin-bottom: 0;
}

.module-tile {
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  padding: 1rem;
  background: #fbfdff;
}

.module-name {
  font-weight: 700;
}

.portal-table th {
  color: var(--brand-muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.portal-table td,
.portal-table th {
  border-color: var(--brand-border);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: #eef5fb;
  color: var(--brand-primary-dark);
  font-size: .8rem;
  font-weight: 700;
}

.priority-baixa {
  background: #ecf8f2;
  color: var(--brand-success);
}

.priority-media,
.priority-média {
  background: #fff5e6;
  color: var(--brand-warning);
}

.priority-alta,
.priority-critica,
.priority-crítica {
  background: #fdecec;
  color: var(--brand-danger);
}

.metric-box {
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #0b5a9f, #0d5ca6);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-height: 100%;
}

.metric-box strong {
  font-size: 1.8rem;
  line-height: 1;
}

.metric-box span,
.detail-item span {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .82;
}

.metric-box-light {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  color: var(--brand-text);
}

.detail-item {
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 1rem;
  background: #fbfdff;
  height: 100%;
}

.detail-item strong {
  display: block;
  margin-top: .35rem;
}

.form-card .form-control,
.form-card .form-select {
  min-height: 46px;
}

@media (max-width: 992px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    height: auto;
    position: relative;
  }
}

@media (max-width: 992px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: relative;
    height: auto;
  }
}


.portal-card-narrow {
  max-width: 980px;
}

.signature-modal-dialog {
  max-width: 1480px;
}

.signature-modal-body {
  overflow: hidden;
}

.signature-editor-scroll {
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  overflow-x: hidden;
}

.signature-preview-panel {
  position: sticky;
  top: 0;
}

.signature-preview-viewport {
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 420px;
  border: 1px solid var(--brand-border);
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.signature-svg-preview,
#signaturePreviewImage svg {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
}

.signature-summary {
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  background: #f9fbff;
  padding: 0.9rem 1rem;
}


.build-badge {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1080;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.public-signature-shell {
  max-width: 1100px;
  margin: 0 auto;
}
.public-signature-card {
  border: 0;
  border-radius: 1.2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .10);
}
.public-signature-doc-toolbar {
  padding-inline: 0.125rem;
}

.public-signature-doc {
  min-height: 70vh;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}
.public-signature-doc iframe {
  width: 100%;
  min-height: 70vh;
  border: 0;
}
.public-signature-doc-reader,
.public-signature-position-workspace {
  min-height: 70vh;
}
.public-signature-position-workspace {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  padding: 1rem;
}
.public-signature-position-stage {
  width: 100%;
  display: flex;
  justify-content: center;
}
.public-signature-position-canvas {
  position: relative;
  display: inline-block;
  line-height: 0;
  max-width: 100%;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .16);
  background: #fff;
}
.public-signature-position-image {
  display: block;
  max-width: 100%;
  height: auto;
}
.public-signature-side .card,
.public-signature-status {
  border-radius: 1rem;
  border: 1px solid rgba(15,23,42,.08);
}
.public-signature-actions .btn {
  min-height: 3rem;
  font-weight: 600;
}
@media (max-width: 991.98px) {
  .public-signature-doc,
  .public-signature-doc iframe,
  .public-signature-doc-reader,
  .public-signature-position-workspace { min-height: 58vh; }
  .build-badge { top: 0.5rem; right: 0.5rem; font-size: 0.7rem; }
}

@media (max-width: 767.98px) {
  .public-signature-doc,
  .public-signature-doc iframe,
  .public-signature-doc-reader,
  .public-signature-position-workspace { min-height: 42vh; }
  .public-signature-doc-toolbar .btn {
    flex: 1 1 auto;
  }

  .topbar {
    padding: 1rem 1rem;
  }

  .topbar-user-actions {
    gap: 0.75rem !important;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .topbar-build-badge {
    order: 2;
  }
}


.email-template-description {
  min-height: 2.75rem;
}

.email-template-panel {
  display: none;
}

.email-template-panel.is-active {
  display: block;
}

.signature-profile-preview {
  min-height: 180px;
  border: 1px dashed var(--brand-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.signature-profile-preview img {
  max-width: 100%;
  max-height: 120px;
  display: block;
}

.signature-method-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  background: #fbfdff;
}

.signature-method-option input {
  margin-top: 0.25rem;
}

.signature-method-option strong {
  display: block;
  font-size: 0.96rem;
}

.signature-method-option small {
  display: block;
  color: var(--brand-muted);
}

.public-signature-sample {
  max-width: 180px;
  max-height: 72px;
  display: block;
  border: 1px dashed var(--brand-border);
  border-radius: 10px;
  padding: 0.5rem;
  background: #fff;
}

.public-signature-doc-picker {
  position: relative;
}

.public-signature-position-layer {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(14, 116, 144, 0.08);
  color: #0f172a;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 2;
}

.public-signature-position-layer span {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,.1);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
}


.public-signature-occupied-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.public-signature-occupied-box {
  position: absolute;
  border: 2px solid rgba(220, 38, 38, 0.75);
  background: rgba(254, 226, 226, 0.22);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.9);
}

.public-signature-occupied-box span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(127, 29, 29, 0.9);
  color: #fff;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.54rem;
  font-weight: 700;
  white-space: nowrap;
}

.public-signature-preview-box.is-invalid {
  border-color: rgba(185, 28, 28, 0.95);
  background: rgba(254, 226, 226, 0.22);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 0 4px rgba(220, 38, 38, 0.18);
}

.signature-mobile-presets .btn.active,
.signature-position-tools .btn.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}
.public-signature-preview-box {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(30, 64, 175, 0.9);
  background: rgba(219, 234, 254, 0.18);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 10px 24px rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  z-index: 3;
  pointer-events: auto;
  cursor: move;
  min-width: 48px;
  min-height: 18px;
}

.public-signature-preview-box__stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  background: transparent;
  color: #1e3a8a;
  border: 1px solid rgba(29, 78, 216, 0.9);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
}

.public-signature-preview-box__label {
  position: absolute;
  right: 0.3rem;
  bottom: 0.2rem;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  border-radius: 999px;
  font-size: 0.54rem;
  padding: 0.08rem 0.35rem;
  line-height: 1.2;
}

.signature-position-tools {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.signature-dragging,
.signature-dragging * {
  cursor: move !important;
  user-select: none;
}


.gti-module .portal-table,
.gti-module .portal-table th,
.gti-module .portal-table td,
.gti-module .portal-table td *,
.gti-module .portal-table th * {
  font-family: Aptos, Calibri, "Segoe UI", Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.15;
}

.gti-module .portal-table code,
.gti-module .portal-table .small,
.gti-module .portal-table .text-muted,
.gti-module .portal-table .status-pill,
.gti-module .portal-table .btn,
.gti-module .portal-table .form-control,
.gti-module .portal-table .form-select,
.gti-module .portal-table .badge {
  font-family: Aptos, Calibri, "Segoe UI", Arial, sans-serif !important;
  font-size: 12px !important;
}

.gti-module .portal-table > :not(caption) > * > * {
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
}



.gti-frame-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gti-frame-header {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  padding: 1.1rem 1.35rem;
  box-shadow: 0 10px 28px rgba(8, 32, 61, .05);
}

.gti-frame-kicker {
  margin: 0 0 .3rem;
  color: var(--brand-primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gti-frame-title {
  margin: 0;
  color: var(--brand-primary-dark);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.gti-frame-subtitle {
  margin: .3rem 0 0;
  color: var(--brand-muted);
  font-size: .95rem;
}

.gti-frame-card {
  overflow: hidden;
  border: 1px solid rgba(219, 229, 239, .9);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 34px rgba(8, 32, 61, .06);
}

.gti-frame-viewport {
  width: 100%;
  min-height: calc(100vh - 260px);
  border: 0;
  background: #fff;
  display: block;
}

@media (max-width: 991.98px) {
  .gti-frame-header {
    padding: .95rem 1rem;
    border-radius: 18px;
  }

  .gti-frame-title {
    font-size: 1.35rem;
  }

  .gti-frame-card {
    border-radius: 6px;
  }

  .gti-frame-viewport {
    min-height: calc(100vh - 240px);
  }
}


.news-card {
  transition: transform .15s ease, box-shadow .15s ease;
}
.news-card:hover {
  transform: translateY(-1px);
}
.news-groups-list {
  max-height: 18rem;
  overflow: auto;
  padding-right: .25rem;
}
.news-form-sidebar {
  align-self: flex-start;
}
.news-form-sidebar .detail-item,
.news-form-side-card {
  height: auto;
  min-height: 0;
  padding: .9rem 1rem;
}
.news-form-side-card > span {
  display: block;
}
.news-form-switch {
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: .7rem .8rem;
  background: #fff;
}
.news-groups-list-compact {
  max-height: 12rem;
}
.news-body {
  line-height: 1.7;
  white-space: normal;
}


.news-rich-editor {
  min-height: 22rem;
  max-height: 48rem;
  overflow: auto;
  background: #fff;
}
.news-rich-editor:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 .2rem rgba(14, 97, 166, .12);
  outline: 0;
}
.news-rich-editor img,
.news-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: .75rem 0;
  border-radius: 8px;
  border: 1px solid var(--brand-border);
}
.news-body table,
.news-rich-editor table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: #fff;
}
.news-body th, .news-body td,
.news-rich-editor th, .news-rich-editor td {
  border: 1px solid var(--brand-border);
  padding: .45rem .55rem;
  vertical-align: top;
}
.news-body th,
.news-rich-editor th {
  background: rgba(8, 32, 61, .05);
  font-weight: 700;
}
.news-body p {
  margin-bottom: .85rem;
}

.employee-news-preview .news-dashboard-card {
  min-height: 100%;
}
.news-dashboard-card {
  transition: transform .15s ease, box-shadow .15s ease;
}
.news-dashboard-card:hover {
  transform: translateY(-1px);
}
.news-card .badge.text-bg-light,
.news-dashboard-card .badge.text-bg-light {
  color: var(--brand-ink);
}

.news-guidance-card {
  height: auto;
  align-self: flex-start;
}
.news-guidance-card .news-guidance-item {
  height: auto;
  min-height: 0;
  padding: .85rem 1rem;
  border-radius: 12px;
}
.news-guidance-card .news-guidance-item strong {
  font-size: .92rem;
  line-height: 1.35;
}
