@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --gp-app-primary: #0761ff;
  --gp-app-primary-dark: #0546c4;
  --gp-app-novo: #2d9a68;
  --gp-app-novo-dark: #247a54;
  --gp-app-bg: #ffffff;
  --gp-app-text: #1a1a1a;
  --gp-app-muted: #4a5568;
  --gp-app-border: #cccccc;
  --gp-app-sidebar: #f5f6f8;
  --gp-header-bg: #1a1f2a;
  --gp-brand-blue: #263e81;
  --gp-app-font: "Open Sans", Arial, Helvetica, sans-serif;
  --gp-app-font-weight: 400;
  --gp-app-radius: 14px;
  --gp-app-radius-input: 7px;
  --gp-app-radius-btn: 4px;
  --gp-app-label-fs: 0.875rem;
  --gp-app-control-h: 38px;
  --gp-app-btn-h: 38px;
  --gp-app-btn-novo-h: 32px;
  --gp-app-control-fs: 0.9rem;
  --gp-fs: 1;
  --gp-header-h: 48px;
  --gp-context-h: 42px;
  --gp-chrome-h: calc(var(--gp-header-h) + var(--gp-context-h));
  --gp-header-pad-x: 20px;
}

* { box-sizing: border-box; }

html {
  font-size: 16px !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.gp-body {
  margin: 0;
  font-family: var(--gp-app-font) !important;
  font-size: calc(16px * var(--gp-fs)) !important;
  font-weight: var(--gp-app-font-weight) !important;
  color: var(--gp-app-text) !important;
  background: var(--gp-app-bg) !important;
  line-height: 1.5 !important;
  padding-top: var(--gp-header-h);
}

body.gp-body strong,
body.gp-body b,
body.gp-body th,
body.gp-body .btn,
body.gp-body button,
body.gp-body label {
  font-weight: var(--gp-app-font-weight) !important;
}

body.gp-body .fa,
body.gp-body .fas,
body.gp-body .fab,
body.gp-body .fa-solid,
body.gp-body .fa-brands {
  font-weight: 900 !important;
}

body.gp-body .far,
body.gp-body .fal,
body.gp-body .fa-regular,
body.gp-body .fa-light {
  font-weight: 400 !important;
}

body.gp-body.gp-body--with-context {
  padding-top: var(--gp-chrome-h);
}

/* ===== Header estilo Portal dos Segurados ===== */
.gp-app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: var(--gp-header-h);
  background: var(--gp-header-bg);
  color: #fff;
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: var(--gp-app-font-weight);
}

.gp-app-header__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--gp-header-h);
  min-height: var(--gp-header-h);
  padding: 0 var(--gp-header-pad-x);
  box-sizing: border-box;
}

.gp-app-header__left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1 1 auto;
}

.gp-app-header__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex: 0 0 auto;
  min-width: 0;
}

.gp-app-header__publico {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--gp-app-novo);
  color: #fff;
  text-decoration: none;
  font-family: var(--gp-app-font);
  font-size: calc(0.8rem * var(--gp-fs));
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.gp-app-header__publico:hover {
  background: var(--gp-app-novo-dark);
  color: #fff;
  text-decoration: none;
}

/* Menu principal (Betha-like) */
.gp-top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}

.gp-top-nav__item {
  position: relative;
}

.gp-top-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--gp-app-font);
  font-size: calc(0.875rem * var(--gp-fs));
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}

.gp-top-nav__link:hover,
.gp-top-nav__link.is-active,
.gp-top-nav__trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.gp-top-nav__link .fa-chevron-down {
  font-size: 0.65rem;
  opacity: 0.85;
}

.gp-top-nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1300;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 28px;
  min-width: 260px;
  max-width: min(720px, calc(100vw - 24px));
  padding: 18px 22px 20px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  box-sizing: border-box;
}

.gp-top-nav__dropdown--wide {
  min-width: 420px;
}

.gp-top-nav__dropdown--configurando {
  flex-wrap: nowrap;
  min-width: 480px;
  max-width: min(640px, calc(100vw - 24px));
  gap: 8px 36px;
}

.gp-top-nav__dropdown--configurando .gp-top-nav__dropdown-col {
  flex: 1 1 0;
  max-width: none;
  min-width: 200px;
}

.gp-top-nav__dropdown-group + .gp-top-nav__dropdown-group {
  margin-top: 16px;
}

.gp-top-nav__dropdown[hidden] { display: none; }

.gp-top-nav__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.gp-top-nav__dropdown-col {
  min-width: 180px;
  flex: 1 1 calc(50% - 14px);
  max-width: 280px;
}

.gp-top-nav__dropdown-title {
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--gp-app-font);
  font-size: calc(0.875rem * var(--gp-fs));
  font-weight: 700;
  color: #111;
  line-height: 1.35;
}

.gp-top-nav__dropdown-col + .gp-top-nav__dropdown-col .gp-top-nav__dropdown-title,
.gp-top-nav__dropdown-col .gp-top-nav__dropdown-title:not(:first-child) {
  margin-top: 16px;
}

.gp-top-nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 2px;
  padding: 5px 4px 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gp-app-muted);
  text-decoration: none;
  text-align: left;
  font-family: var(--gp-app-font);
  font-size: calc(0.875rem * var(--gp-fs));
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  box-sizing: border-box;
}

.gp-top-nav__dropdown-item::before {
  content: "›";
  flex-shrink: 0;
  width: 0.7em;
  color: #9ca3af;
  font-size: 1.05em;
  line-height: 1;
}

.gp-top-nav__dropdown-item:hover {
  background: transparent;
  color: var(--gp-app-primary);
}

.gp-top-nav__dropdown-item:hover::before {
  color: var(--gp-app-primary);
}

.gp-top-nav__dropdown-sep {
  height: 0;
  margin: 6px 10px;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.gp-app-header__brand {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  height: 30px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
}

/* Switcher de sistemas (Mais soluções) */
.gp-sys-switcher {
  position: relative;
  flex-shrink: 0;
}

button.gp-sys-switcher__trigger.gp-app-header__brand {
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
  background: transparent;
}

.gp-sys-switcher__panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 1300;
  width: min(420px, calc(100vw - 24px));
  padding: 14px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 39, 68, 0.16);
  box-sizing: border-box;
}

.gp-sys-switcher__panel[hidden] { display: none !important; }

.gp-sys-switcher__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 10px;
}

.gp-sys-switcher__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gp-sys-switcher__head-title {
  font-family: var(--gp-app-font);
  font-size: calc(0.75rem * var(--gp-fs));
  font-weight: 400;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.gp-sys-switcher__head-link {
  font-family: var(--gp-app-font);
  font-size: calc(0.8rem * var(--gp-fs));
  font-weight: 400;
  color: var(--gp-app-primary);
  text-decoration: none;
}

.gp-sys-switcher__head-link:hover { text-decoration: underline; }

.gp-sys-switcher__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gp-sys-switcher__tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 88px;
  padding: 12px;
  border-radius: 10px;
  background: #f3f5f8;
  border: 1px solid transparent;
  text-decoration: none !important;
  color: #334155 !important;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a.gp-sys-switcher__tile:hover,
button.gp-sys-switcher__tile:hover {
  background: #e8eef8;
  border-color: #c9dbff;
  box-shadow: 0 2px 8px rgba(7, 97, 255, 0.08);
}

button.gp-sys-switcher__tile {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gp-sys-switcher__tile.is-current {
  background: #e8f1fb;
  border-color: #9dbcf0;
  cursor: default;
}

.gp-sys-switcher__tile-icon {
  width: 32px;
  height: 32px;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #5b9dff !important;
  font-size: 1.2rem;
}

.gp-sys-switcher__tile-icon i,
.gp-sys-switcher__tile-icon svg {
  font-weight: 900 !important;
  font-style: normal;
  line-height: 1;
  color: inherit !important;
}

.gp-sys-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  line-height: 0;
  color: inherit;
}

.gp-sys-ico svg {
  width: 100%;
  height: 100%;
  display: block;
  color: inherit;
}

.gp-sys-switcher__tile-icon .gp-sys-ico {
  width: 28px;
  height: 28px;
  color: inherit;
}

.gp-perfil__card-icon .gp-sys-ico {
  width: 1.75rem;
  height: 1.75rem;
}

.gp-sys-switcher__tile-name {
  font-family: var(--gp-app-font);
  font-size: calc(0.8rem * var(--gp-fs));
  font-weight: 400;
  line-height: 1.25;
  color: #334155;
}

.gp-app-header__brand-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px 0 0 8px;
  background: var(--gp-brand-blue);
  color: #fff;
}

.gp-app-header__brand-mark {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  border: none;
  background: transparent;
  filter: brightness(0) invert(1);
}

.gp-app-header__brand-name {
  display: inline-flex;
  align-items: center;
  position: relative;
  height: 30px;
  padding: 0 14px;
  border-radius: 0 8px 8px 0;
  background: var(--gp-brand-blue);
  color: #fff;
  font-family: var(--gp-app-font);
  font-style: normal;
  font-weight: 400;
  font-size: calc(0.9rem * var(--gp-fs));
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: min(420px, 58vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
  font-size: calc(0.78rem * var(--gp-fs));
}

.gp-app-header__brand-name::before,
.gp-app-header__brand-name::after {
  content: "";
  position: absolute;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gp-header-bg);
  pointer-events: none;
  z-index: 1;
}

.gp-app-header__brand-name::before { top: -5px; }
.gp-app-header__brand-name::after { bottom: -5px; }

/* A- Texto A+ (padrão Login) */
.gp-portal-fs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  user-select: none;
  flex-shrink: 0;
}

.gp-portal-fs span,
.gp-portal-fs #gpFsReset {
  font-size: calc(12px * var(--gp-fs, 1));
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.9;
  padding: 0;
}

.gp-portal-fs button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-family: var(--gp-app-font);
  font-size: calc(0.8rem * var(--gp-fs));
  font-weight: 600;
  padding: 2px 4px;
  line-height: 1;
  min-width: 0;
  min-height: 0;
  border-radius: 0;
}

.gp-portal-fs button:hover {
  opacity: 0.85;
  background: transparent;
  color: inherit;
}

/* Menu de atendimento (headset → cards, ex.: WhatsApp) */
.gp-atend-menu {
  position: relative;
  flex-shrink: 0;
}

.gp-atend-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.gp-atend-menu__trigger:hover,
.gp-atend-menu__trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.22);
}

.gp-atend-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1300;
  min-width: 280px;
  max-width: min(360px, calc(100vw - 24px));
  padding: 14px 16px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5eaf2;
  box-shadow: 0 10px 28px rgba(15, 39, 68, 0.16);
  color: var(--gp-app-text);
  box-sizing: border-box;
}

.gp-atend-menu__dropdown[hidden] { display: none; }

.gp-atend-menu__title {
  margin: 0 0 12px;
  font-family: var(--gp-app-font);
  font-size: calc(0.92rem * var(--gp-fs));
  font-weight: 700;
  color: #6b7280;
}

.gp-atend-menu__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gp-atend-menu__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 108px;
  min-height: 92px;
  padding: 12px 10px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #1f2937;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.gp-atend-menu__card i {
  font-size: 1.55rem;
  line-height: 1;
  color: #25d366;
}

.gp-atend-menu__card span {
  font-family: var(--gp-app-font);
  font-size: calc(0.78rem * var(--gp-fs));
  font-weight: 600;
  line-height: 1.2;
  color: #4b5563;
}

.gp-atend-menu__card:hover {
  background: #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.08);
}

/* Status de conexão (Wi‑Fi) */
.gp-net-status {
  position: relative;
  flex-shrink: 0;
}

.gp-net-status__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}

.gp-net-status__trigger:hover,
.gp-net-status__trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.22);
}

.gp-net-status__dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #111;
  background: #94a3b8;
}

.gp-net-status.is-good .gp-net-status__dot,
.gp-net-status.is-good .gp-net-status__badge { background: #22c55e; }

.gp-net-status.is-fair .gp-net-status__dot,
.gp-net-status.is-fair .gp-net-status__badge { background: #eab308; }

.gp-net-status.is-bad .gp-net-status__dot,
.gp-net-status.is-bad .gp-net-status__badge { background: #ef4444; }

.gp-net-status__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 260px;
  max-width: min(340px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5eaf2;
  box-shadow: 0 10px 28px rgba(15, 39, 68, 0.14);
  color: var(--gp-app-text);
  box-sizing: border-box;
}

.gp-net-status__dropdown[hidden] { display: none; }

.gp-net-status__text {
  margin: 0;
  flex: 1;
  font-family: var(--gp-app-font);
  font-size: calc(0.85rem * var(--gp-fs));
  font-weight: 400;
  line-height: 1.35;
  color: #334155;
}

.gp-net-status__badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  background: #94a3b8;
}

/* Menu Utilitários */
.gp-util-menu {
  position: relative;
  flex-shrink: 0;
}

.gp-util-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}

.gp-util-menu__trigger:hover,
.gp-util-menu__trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.22);
}

.gp-util-menu__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(420px, calc(100vw - 24px));
  padding: 10px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--gp-app-border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 39, 68, 0.16);
  z-index: 1200;
  box-sizing: border-box;
}

.gp-util-menu__dropdown[hidden] { display: none; }

.gp-util-menu__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.gp-util-menu__search { margin-bottom: 10px; }

.gp-util-menu__search-input {
  display: block;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #fff;
  color: var(--gp-app-text);
  font-family: var(--gp-app-font);
  font-size: calc(0.9rem * var(--gp-fs));
  outline: none;
  box-sizing: border-box;
}

.gp-util-menu__search-input::placeholder { color: #8a97a8; }

.gp-util-menu__search-input:focus,
.gp-util-menu__search-input:focus-visible {
  border-color: var(--gp-app-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(7, 97, 255, 0.28) !important;
}

.gp-util-menu__grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
}

.gp-util-menu__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: #f3f5f8;
  color: var(--gp-app-text);
  text-decoration: none !important;
  font-family: var(--gp-app-font);
  font-size: calc(0.85rem * var(--gp-fs));
  font-weight: 400;
  line-height: 1.25;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.gp-util-menu__item i {
  width: 18px;
  font-size: 1rem;
  color: var(--gp-app-primary);
  text-align: center;
  flex-shrink: 0;
}

.gp-util-menu__item span {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-util-menu__item:hover {
  background: #e8eef8;
  color: var(--gp-app-primary-dark);
}

.gp-util-menu__item.is-kb-active {
  background: #e8eef8;
  color: var(--gp-app-primary-dark);
  outline: 2px solid var(--gp-app-primary);
  outline-offset: -2px;
}

.gp-util-menu__item.is-hidden { display: none; }

.gp-util-menu__empty {
  margin: 8px 0 0;
  padding: 10px 4px;
  text-align: center;
  font-size: calc(0.85rem * var(--gp-fs));
  color: var(--gp-app-muted);
}

.gp-menu-busca__grid {
  max-height: 360px;
}

.gp-menu-busca__grid .gp-util-menu__item > span {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.gp-menu-busca__nome {
  display: block;
  font-weight: 500;
  color: var(--gp-app-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-menu-busca__caminho {
  display: block;
  margin-top: 2px;
  font-size: 0.78em;
  color: #8a97a8;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Menu do usuário */
.gp-user-menu { position: relative; }

/* Notificações (sininho) */
.gp-notif-menu {
  position: relative;
  flex-shrink: 0;
}

.gp-notif-menu__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.gp-notif-menu__trigger:hover,
.gp-notif-menu__trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.22);
}

.gp-notif-menu__badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-family: var(--gp-app-font);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--gp-header-bg);
  box-sizing: border-box;
}

.gp-notif-menu__badge[hidden] { display: none !important; }

.gp-notif-menu__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1300;
  width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, 480px);
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 39, 68, 0.18);
  color: var(--gp-app-text);
  box-sizing: border-box;
  overflow: hidden;
}

.gp-notif-menu__dropdown[hidden] { display: none; }

.gp-notif-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #eef2f7;
}

.gp-notif-menu__title {
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: calc(0.92rem * var(--gp-fs));
  font-weight: 600;
  color: #0f172a;
}

.gp-notif-menu__mark-all {
  border: 0;
  background: transparent;
  color: #0761ff;
  font-family: var(--gp-app-font);
  font-size: calc(0.75rem * var(--gp-fs));
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.gp-notif-menu__mark-all:hover { text-decoration: underline; }
.gp-notif-menu__mark-all[hidden] { display: none !important; }

.gp-notif-menu__list {
  overflow-y: auto;
  max-height: min(58vh, 400px);
  padding: 4px 0;
}

.gp-notif-menu__empty {
  margin: 0;
  padding: 22px 16px;
  text-align: center;
  color: #64748b;
  font-family: var(--gp-app-font);
  font-size: calc(0.85rem * var(--gp-fs));
}

.gp-notif-menu__item {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.gp-notif-menu__item:last-child { border-bottom: 0; }

.gp-notif-menu__item:hover {
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
}

.gp-notif-menu__item.is-unread {
  background: #f0f7ff;
}

.gp-notif-menu__item.is-unread:hover {
  background: #e8f2ff;
}

.gp-notif-menu__item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
  font-family: var(--gp-app-font);
  font-size: calc(0.84rem * var(--gp-fs));
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.gp-notif-menu__item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e11d48;
  flex-shrink: 0;
}

.gp-notif-menu__item-resumo {
  margin: 0 0 4px;
  font-family: var(--gp-app-font);
  font-size: calc(0.78rem * var(--gp-fs));
  font-weight: 400;
  color: #475569;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gp-notif-menu__item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: calc(0.72rem * var(--gp-fs));
  color: #94a3b8;
}

.gp-notif-menu__tipo {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #e2e8f0;
  color: #334155;
  flex-shrink: 0;
}

.gp-notif-menu__abrir {
  font-weight: 600;
  color: #0f766e;
  text-decoration: underline;
}

.gp-list-filter-bar--visoes,
.gp-list-filter-bar--salvas {
  margin-top: 0.35rem;
}

.gp-visoes-salvas {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.gp-visao-salva {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.gp-visao-salva__del {
  display: inline;
  margin: 0;
}

.gp-visao-salva__del button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.2rem;
}

.gp-visao-salva__del button:hover {
  color: #b91c1c;
}

.gp-visao-salvar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.25rem;
}

.gp-visao-salvar__nome {
  width: 10rem;
  min-height: 2rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

.gp-visao-salvar__btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.gp-user-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 1px 5px 1px 1px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-family: var(--gp-app-font);
  font-size: calc(0.9rem * var(--gp-fs));
  font-weight: 400;
  line-height: 1.2;
}

.gp-user-menu__trigger:hover { background: rgba(255, 255, 255, 0.22); }

.gp-user-menu__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: block;
}

.gp-user-menu__avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.65rem;
  line-height: 1;
}

.gp-user-menu__trigger .fa-chevron-down {
  font-size: calc(0.65rem * var(--gp-fs));
}

.gp-user-menu__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  max-width: min(340px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 39, 68, 0.14), 0 2px 6px rgba(15, 39, 68, 0.06);
  padding: 0;
  overflow: hidden;
  z-index: 1200;
}

.gp-user-menu__dropdown[hidden] { display: none; }

.gp-user-menu__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  border-bottom: 1px solid #eef2f7;
  text-align: center;
}

.gp-user-menu__identity-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.gp-user-menu__identity-name {
  margin: 0;
  font-size: calc(0.92rem * var(--gp-fs));
  font-weight: 700;
  color: var(--gp-app-text);
  line-height: 1.25;
  word-break: break-word;
}

.gp-user-menu__identity-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: calc(0.8rem * var(--gp-fs));
  color: var(--gp-app-muted);
  line-height: 1.3;
  word-break: break-word;
}

.gp-user-menu__identity-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.gp-user-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
}

.gp-user-menu__logout-form { margin: 0; }

.gp-user-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--gp-app-text);
  text-decoration: none !important;
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.gp-user-menu__item i {
  width: 1.1em;
  text-align: center;
  color: #64748b;
}

.gp-user-menu__item:hover {
  background: #eef3ff;
  color: var(--gp-app-primary-dark);
}

.gp-user-menu__item:hover i { color: var(--gp-app-primary); }

.gp-user-menu__item--danger { color: #b91c1c; }
.gp-user-menu__item--danger i { color: #dc2626; }
.gp-user-menu__item--danger:hover {
  background: #fef2f2;
  color: #991b1b;
}
.gp-user-menu__item--danger:hover i { color: #b91c1c; }

.gp-btn--header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--gp-app-radius-btn);
  color: #fff;
  font-family: var(--gp-app-font);
  font-weight: 400;
  font-size: calc(0.875rem * var(--gp-fs));
  text-decoration: none;
  cursor: pointer;
}

.gp-btn--header:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* ===== Barra Entidade (modelo Portal) ===== */
.gp-context-bar {
  position: fixed;
  top: var(--gp-header-h);
  left: 0;
  right: 0;
  z-index: 1190;
  height: var(--gp-context-h);
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  color: #555;
  box-sizing: border-box;
  font-family: var(--gp-app-font);
}

.gp-context-bar__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  height: var(--gp-context-h);
  padding: 0 var(--gp-header-pad-x);
  box-sizing: border-box;
  min-width: 0;
}

.gp-context-bar .gp-entidade {
  position: relative;
  min-width: 0;
  max-width: min(420px, 55vw);
}

.gp-context-bar .gp-app-header__entidade {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
  color: #555;
  font-family: var(--gp-app-font);
  font-size: calc(0.875rem * var(--gp-fs));
  font-weight: 400;
  line-height: 1.2;
  overflow: hidden;
}

.gp-context-bar .gp-app-header__entidade:hover,
.gp-context-bar .gp-app-header__entidade:focus {
  color: var(--gp-app-primary);
  text-decoration: none;
}

.gp-context-bar .gp-entidade__trigger:hover,
.gp-context-bar .gp-entidade__trigger[aria-expanded="true"] {
  background: #f3f5f8;
}

.gp-context-bar .gp-entidade--single .gp-entidade__trigger:hover,
.gp-context-bar .gp-entidade--single .gp-entidade__trigger[aria-expanded="true"] {
  background: transparent;
}

.gp-context-bar .gp-app-header__entidade-label {
  font-weight: 400;
  color: #666;
  white-space: nowrap;
}

.gp-context-bar .gp-app-header__entidade-nome {
  font-weight: 400;
  color: #444;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.gp-context-bar .gp-app-header__entidade-chevron {
  font-size: 0.7rem;
  color: #888;
  margin-left: 2px;
  flex-shrink: 0;
  line-height: 1;
}

.gp-entidade__trigger {
  cursor: pointer;
  border: 0;
  background: transparent;
  font-family: var(--gp-app-font);
  transition: background 0.15s ease;
}

.gp-entidade--single .gp-entidade__trigger {
  cursor: default;
  pointer-events: none;
}

.gp-entidade__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1200;
  width: min(420px, calc(100vw - 24px));
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--gp-app-border);
  box-shadow: 0 10px 28px rgba(15, 39, 68, 0.16);
  color: var(--gp-app-text);
  box-sizing: border-box;
}

.gp-entidade__search {
  margin-bottom: 10px;
}

.gp-entidade__search-input {
  display: block;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #fff;
  color: var(--gp-app-text);
  font-family: var(--gp-app-font);
  font-size: calc(0.9rem * var(--gp-fs));
  font-weight: 400;
  outline: none;
  box-sizing: border-box;
}

.gp-entidade__search-input::placeholder { color: #8a97a8; }

.gp-entidade__search-input:focus,
.gp-entidade__search-input:focus-visible {
  border-color: var(--gp-app-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(7, 97, 255, 0.28) !important;
}

.gp-entidade__grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
}

.gp-entidade__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: #f3f5f8;
  color: var(--gp-app-text);
  text-align: left;
  font-family: var(--gp-app-font);
  font-size: calc(0.85rem * var(--gp-fs));
  font-weight: 400;
  line-height: 1.25;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
}

.gp-entidade__item span {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-entidade__item:hover:not(:disabled) {
  background: #e8eef8;
  color: var(--gp-app-primary-dark);
}

.gp-entidade__item.is-active,
.gp-entidade__item:disabled {
  background: #e8f1fb;
  box-shadow: inset 0 0 0 1px #9dbcf0;
  cursor: default;
  color: var(--gp-app-primary-dark);
}

.gp-entidade__item.is-hidden { display: none; }

.gp-entidade__empty {
  margin: 8px 0 0;
  padding: 10px 4px;
  text-align: center;
  font-size: calc(0.85rem * var(--gp-fs));
  color: var(--gp-app-muted);
}

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

.gp-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  font-family: var(--gp-app-font);
}

.gp-wrap--home {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 24px var(--gp-header-pad-x) 48px;
  box-sizing: border-box;
}

.gp-wrap--entidade {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 20px var(--gp-header-pad-x) 48px;
  box-sizing: border-box;
}

.gp-wrap--entidade .gp-page,
.gp-wrap--entidade .gp-page__card {
  width: 100%;
  max-width: none;
}

.gp-home {
  width: 100%;
  max-width: none;
}

/* ===== Visão geral (mesmo padrão do Portal) ===== */
.gp-home__section-title {
  margin: 0 0 12px;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 700;
  color: #5a5a5a;
}

.gp-home__section-title--atalhos {
  margin-top: 28px;
}

.gp-home__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: none;
}

.gp-home__card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 14px 12px;
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  text-decoration: none !important;
  color: #555 !important;
  box-shadow: none;
  box-sizing: border-box;
  min-width: 0;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.gp-home__card:hover,
.gp-home__card:focus {
  background: #eef3ff;
  border-color: #c9dbff;
  box-shadow: 0 2px 10px rgba(7, 97, 255, 0.08);
  color: #555 !important;
}

.gp-home__card-icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  color: #5b9dff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.gp-home__card-icon i {
  font-weight: 900 !important;
  font-style: normal;
  line-height: 1;
  color: inherit;
}

.gp-home__card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.gp-home__card-title {
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.3;
  color: #555;
}

.gp-home__card-desc {
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: calc(12.8px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.3;
  color: #777;
}

.gp-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.gp-page {
  max-width: none;
  font-family: var(--gp-app-font);
}

.gp-page__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.gp-page__header-text {
  flex: 1 1 auto;
  min-width: 0;
}

.gp-page__icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #e8f0ff;
  color: var(--gp-app-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  flex-shrink: 0;
}

.gp-page__header .gp-page__title {
  margin: 0 0 2px;
  font-family: var(--gp-app-font);
  font-size: calc(0.9rem * var(--gp-fs));
  font-weight: 400;
  color: var(--gp-app-text);
  line-height: 1.25;
}

.gp-page__desc {
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: 400;
  color: var(--gp-app-muted);
  line-height: 1.35;
}

.gp-page__card {
  background: #fff;
  border: 1px solid var(--gp-app-border);
  border-radius: 7px;
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(15, 39, 68, 0.04);
}

.gp-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  justify-content: flex-end;
}

.gp-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--gp-app-btn-h);
  height: var(--gp-app-btn-h);
  padding: 5px 12px;
  border-radius: var(--gp-app-radius-btn);
  border: 1px solid var(--gp-app-border);
  background: #fff;
  color: var(--gp-app-text);
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  box-sizing: border-box;
  letter-spacing: 0.02em;
}

.gp-page__btn:disabled,
.gp-page__btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gp-page__btn--primary {
  background: var(--gp-app-primary);
  border-color: var(--gp-app-primary);
  color: #fff !important;
}

.gp-page__btn--primary:hover:not(:disabled) {
  background: var(--gp-app-primary-dark);
  border-color: var(--gp-app-primary-dark);
  color: #fff !important;
}

.gp-page__btn--ghost {
  background: #fff;
  color: #1a1a1a !important;
  border: 1px solid #cbd5e1;
}

.gp-page__btn--ghost:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #1a1a1a !important;
}

.gp-page__btn--anexos {
  background: #f3eefc;
  color: #6d28d9 !important;
  border: 1px solid #d4c4f5;
}

.gp-page__btn--anexos:hover {
  background: #e9dff9;
  border-color: #c4aef0;
  color: #5b21b6 !important;
}

.gp-page__btn--anotacoes {
  background: #e7f6fc;
  color: #0369a1 !important;
  border: 1px solid #a8d8ef;
}

.gp-page__btn--anotacoes:hover {
  background: #d3eef9;
  border-color: #8ecae8;
  color: #075985 !important;
}

.gp-page__btn--chat {
  background: #e7f8ef;
  color: #128c7e !important;
  border: 1px solid #9fd9c8;
}

.gp-page__btn--chat:hover:not(:disabled) {
  background: #d4f1e4;
  border-color: #7eccb5;
  color: #0b6b5f !important;
}

.gp-page__btn--visualizacoes {
  background: #eef2ff;
  color: #4338ca !important;
  border: 1px solid #c7d2fe;
}

.gp-page__btn--visualizacoes:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
  color: #3730a3 !important;
}

.gp-page__btn--encaminhar {
  background: #fff4e5;
  color: #b45309 !important;
  border: 1px solid #f5d0a0;
}

.gp-page__btn--encaminhar:hover {
  background: #ffe8c7;
  border-color: #f0bc78;
  color: #92400e !important;
}

.gp-page__btn--andamento {
  background: #e6f7f5;
  color: #0f766e !important;
  border: 1px solid #99e0d8;
}

.gp-page__btn--andamento:hover:not(:disabled) {
  background: #d2f0ec;
  border-color: #7dd3c8;
  color: #0d5f59 !important;
}

.gp-page__btn--recurso {
  background: #f3e8ff;
  color: #6d28d9 !important;
  border: 1px solid #d8b4fe;
}

.gp-page__btn--recurso:hover:not(:disabled) {
  background: #e9d5ff;
  border-color: #c084fc;
  color: #5b21b6 !important;
}

.gp-modal__field {
  margin-bottom: 8px;
}

.gp-modal__label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: 400;
  color: var(--gp-app-text);
}

.gp-modal__label--nowrap {
  white-space: nowrap;
}

.gp-modal__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.gp-modal__label-row > .gp-modal__label {
  margin-bottom: 0;
}

.gp-ouv-flag--inline {
  margin: 0;
  align-items: center;
  flex-shrink: 0;
}

.gp-ouv-flag--inline .gp-ouv-flag__ui {
  margin-top: 0;
}

.gp-ouv-flag--inline .gp-ouv-flag__text {
  font-weight: 400;
  white-space: nowrap;
}

.gp-modal__input {
  width: 100%;
  min-height: var(--gp-app-control-h);
  padding: 6px 12px;
  border: 1px solid var(--gp-app-border);
  border-radius: var(--gp-app-radius-input);
  background: #fff;
  color: var(--gp-app-text);
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-control-fs) * var(--gp-fs));
  font-weight: 400;
  line-height: 1.3;
  box-sizing: border-box;
}

.gp-modal__input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.gp-modal__input:focus {
  outline: none;
  border-color: var(--gp-app-primary);
  box-shadow: 0 0 0 3px rgba(7, 97, 255, 0.15);
}

.gp-modal__input[readonly],
.gp-modal__input:disabled {
  background: #f1f3f5;
  color: #495057;
  cursor: not-allowed;
  box-shadow: none;
}

.gp-modal__input.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12) !important;
}

.gp-field-error {
  display: block;
  margin-top: 4px;
  margin-bottom: 4px;
  font-family: var(--gp-app-font);
  font-size: calc(0.8rem * var(--gp-fs));
  color: #b91c1c;
}

.gp-field-error[hidden],
.gp-field-error:empty,
.field-validation-valid {
  display: none !important;
}

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

.gp-alert.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.gp-page__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  font-family: var(--gp-app-font);
}

.gp-page__sub {
  color: var(--gp-app-muted);
  margin: 0 0 20px;
  font-family: var(--gp-app-font);
}

.gp-card {
  border: 1px solid var(--gp-app-border);
  border-radius: 10px;
  padding: 20px;
  background: #fff;
}

.gp-card + .gp-card { margin-top: 16px; }

.gp-label {
  display: block;
  font-size: .875rem;
  margin-bottom: 6px;
  color: var(--gp-app-muted);
}

.gp-input, .gp-select, .gp-textarea {
  width: 100%;
  border: 1px solid var(--gp-app-border);
  border-radius: var(--gp-app-radius-input);
  padding: 6px 12px;
  min-height: var(--gp-app-control-h, 38px);
  box-sizing: border-box;
  background: #fff;
  color: var(--gp-app-text);
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-control-fs) * var(--gp-fs));
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 14px;
}

.gp-textarea { min-height: 140px; resize: vertical; }

.gp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--gp-app-radius-btn);
  background: var(--gp-app-primary);
  color: #fff;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.gp-btn:hover { background: var(--gp-app-primary-dark); color: #fff; }
.gp-btn--secondary { background: #e8eef8; color: var(--gp-app-primary-dark); }
.gp-btn--secondary:hover { background: #d7e4fb; }
.gp-btn--novo { background: var(--gp-app-novo); }

.gp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.gp-req { color: #c0392b; }

.gp-label-ref {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  letter-spacing: 0;
  vertical-align: baseline;
}

.gp-entidade-form__readonly {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 14px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.gp-entidade-form__readonly-fields {
  flex: 1;
  min-width: 0;
}

.gp-entidade-form__brasao {
  width: 96px;
  flex: 0 0 96px;
  text-align: center;
}
.gp-entidade-form__brasao img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border: 1px solid var(--gp-app-border);
  border-radius: 8px;
  background: #fff;
}
.gp-entidade-form__brasao-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 1px solid var(--gp-app-border);
  border-radius: 8px;
  background: #fff;
  color: var(--gp-app-primary);
  font-size: 2rem;
}
.gp-entidade-form__brasao-file {
  display: inline-block;
  margin-top: 8px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gp-app-primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
}
.gp-entidade-form__brasao-file:hover {
  color: var(--gp-app-primary-dark, #1a3f6e);
}

.gp-orgao-thumb {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gp-app-border);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.gp-orgao-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gp-entidade-form__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.gp-entidade-form__row + .gp-entidade-form__row {
  margin-top: 8px;
}
.gp-entidade-form__readonly .gp-modal__field {
  margin-bottom: 0;
}
.gp-entidade-form__col-codigo { width: 110px; flex: 0 0 110px; }
.gp-entidade-form__col-cnpj { width: 180px; flex: 0 0 180px; }
.gp-entidade-form__col-esfera { width: 140px; flex: 0 0 140px; }
.gp-entidade-form__col-sigla { width: 90px; flex: 0 0 90px; }
.gp-entidade-form__grow { flex: 1; min-width: 160px; }

.gp-entidade-form__readonly .gp-modal__input:not(.gp-modal__input--edit) {
  background: #f1f3f5;
  color: #495057;
  border-color: #dee2e6;
}

.gp-entidade-form__readonly .gp-modal__input--edit {
  background: #fff;
  color: var(--gp-app-text);
  border-color: var(--gp-app-border);
  cursor: text;
}

.gp-entidade-form__edit {
  padding-top: 2px;
}

.gp-entidade-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  margin-top: 1.5rem;
  padding-top: .25rem;
}

.gp-entidade-form__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 12px;
}
.gp-entidade-form__span-2 { grid-column: span 2; }
.gp-entidade-form__span-3 { grid-column: span 3; }
.gp-entidade-form__span-4 { grid-column: 1 / -1; }

/* Seções no estilo Portal / Atualização cadastral */
.gp-wizard__section {
  margin: 10px 0 8px;
  padding: 8px 10px 2px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.gp-wizard__section-title {
  margin: 0 0 8px;
  padding: 0 0 4px 8px;
  border-bottom: 1px solid #d0dbe8;
  border-left: 3px solid var(--gp-app-primary, #0761ff);
  font-family: var(--gp-app-font);
  font-size: calc(12px * var(--gp-fs, 1));
  font-weight: 400;
  color: var(--gp-app-primary, #0761ff);
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-transform: none;
}

.gp-entidade-form__grid--stack {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: none;
}
.gp-entidade-form__grid--stack > .gp-modal__field,
.gp-entidade-form__grid--stack .gp-entidade-form__span-2,
.gp-entidade-form__grid--stack .gp-entidade-form__span-3 {
  grid-column: 1 / -1;
}

/* ===== Cadastro Portal (lista + modal) ===== */
.gp-page__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gp-page__toolbar-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gp-page__toolbar-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.gp-page__toolbar-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gp-dt-filtrar-por {
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: 400;
  color: #475569;
  white-space: nowrap;
}

.gp-page__input--search {
  min-width: 200px;
  height: var(--gp-app-control-h);
  padding: 6px 10px;
  border: 1px solid var(--gp-app-border);
  border-radius: var(--gp-app-radius-input);
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-control-fs) * var(--gp-fs));
}

.gp-page__btn--novo {
  min-height: var(--gp-app-btn-novo-h);
  height: var(--gp-app-btn-novo-h);
  padding: 4px 10px;
  gap: 5px;
  white-space: nowrap;
  background: var(--gp-app-novo);
  border-color: var(--gp-app-novo);
  color: #fff !important;
  box-sizing: border-box;
}

.gp-page__btn--novo:hover:not(:disabled) {
  background: var(--gp-app-novo-dark);
  border-color: var(--gp-app-novo-dark);
  color: #fff !important;
}

.gp-page__empty {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #f7fafc;
  border: 1px dashed var(--gp-app-border);
  border-radius: 7px;
  color: var(--gp-app-muted);
}

.gp-page__empty i {
  color: var(--gp-app-primary);
  font-size: calc(1rem * var(--gp-fs));
  margin-top: 2px;
}

.gp-page__empty strong {
  display: block;
  color: var(--gp-app-text);
  margin-bottom: 2px;
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
}

.gp-page__empty p {
  margin: 0;
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  line-height: 1.35;
}

.gp-page__help {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fff8e8;
  border: 1px solid #f0d48a;
  border-radius: 7px;
}

.gp-page__help strong {
  display: block;
  margin-bottom: 2px;
  color: #744210;
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: 400;
}

.gp-page__help p {
  margin: 0;
  color: #744210;
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  line-height: 1.35;
}

.gp-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.gp-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 10px;
  margin: 2px 4px 2px 0;
  border-radius: var(--gp-app-radius-btn);
  border: 1px solid transparent;
  font-weight: 400;
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  text-decoration: none !important;
  line-height: 1.2;
  cursor: pointer;
  font-family: var(--gp-app-font);
  background: #eef2f7;
  color: #334155 !important;
}

.gp-action-btn--view {
  background: #e8f1fb;
  color: #0b5cab !important;
  border-color: #bfd6f3;
}

.gp-action-btn--view:hover {
  background: #d7e8fa;
}

.gp-action-btn--edit {
  background: #eef7f0;
  color: #1b7a3d !important;
  border-color: #b7dfc4;
}

.gp-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.gp-action-btn--edit:hover:not(:disabled) {
  background: #e0f0e5;
}

.gp-action-btn--andamento {
  background: #e6f7f5;
  color: #0f766e !important;
  border-color: #99e0d8;
}

.gp-action-btn--andamento:hover {
  background: #d2f0ec;
}

.gp-action-btn--encaminhar {
  background: #fff4e5;
  color: #b45309 !important;
  border-color: #f5d0a0;
}

.gp-action-btn--encaminhar:hover {
  background: #ffe8c7;
}

.gp-action-btn--anotacoes {
  background: #e7f6fc;
  color: #0369a1 !important;
  border-color: #a8d8ef;
}

.gp-action-btn--anotacoes:hover {
  background: #d3eef9;
}

.gp-action-btn--danger {
  background: #fdecec;
  color: #b42318 !important;
  border-color: #f3c1bc;
}

.gp-action-btn--danger:hover {
  background: #fadede;
}

.gp-table__inline-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.gp-manif-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 10.5rem;
}

.gp-manif-actions__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.gp-manif-anexos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gp-manif-anexos__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.gp-manif-anexos__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.gp-manif-anexos__meta strong {
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.gp-manif-anexos__meta span {
  font-size: 0.8rem;
  color: #64748b;
}

.gp-manif-anexos__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.gp-setor-form__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-family: var(--gp-app-font);
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
}

/* Modal leve (sem Bootstrap) — visual Portal */
body.gp-modal-open {
  overflow: hidden;
}

.gp-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
}

.gp-modal.is-open {
  display: flex;
}

.gp-modal__dialog {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 39, 68, 0.16);
  min-height: 0;
}

/* Quando já existe .gp-modal__content, o card fica nele (evita sombra dupla). */
.gp-modal__dialog:has(> .gp-modal__content) {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.gp-modal__content {
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 39, 68, 0.16);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.gp-modal__content > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.gp-modal__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px 8px;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  flex-shrink: 0;
}

.gp-modal__header-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #e8f0ff;
  color: var(--gp-app-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gp-modal__header-text {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.gp-modal__title {
  margin: 0 0 2px;
  font-size: calc(0.9rem * var(--gp-fs));
  font-weight: 400;
  color: var(--gp-app-text);
  line-height: 1.25;
}

.gp-modal__subtitle {
  margin: 0;
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  color: var(--gp-app-muted);
  line-height: 1.3;
}

.gp-modal__hint {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--gp-app-muted, #71717a);
  line-height: 1.35;
}

.gp-modal__close {
  border: 0;
  background: transparent;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: var(--gp-app-radius-btn);
  cursor: pointer;
}

.gp-modal__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.gp-modal__body {
  padding: 12px 14px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
}

.gp-modal__body--scroll {
  max-height: min(70vh, 560px);
}

.gp-modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 14px 12px;
  background: #fff;
  flex-shrink: 0;
  border-top: 1px solid #eef2f7;
}

.gp-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--gp-app-btn-h);
  padding: 5px 12px;
  border-radius: var(--gp-app-radius-btn);
  border: 1px solid var(--gp-app-border);
  background: #fff;
  color: var(--gp-app-text);
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: 400;
  cursor: pointer;
  text-decoration: none !important;
}

a.gp-modal__btn:hover,
a.gp-modal__btn:focus,
a.gp-modal__btn:visited {
  text-decoration: none !important;
  color: inherit;
}

.gp-modal__btn--ghost:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.gp-modal__btn--primary {
  background: var(--gp-app-primary);
  border-color: var(--gp-app-primary);
  color: #fff;
}

.gp-modal__btn--primary:hover:not(:disabled) {
  background: var(--gp-app-primary-dark);
  border-color: var(--gp-app-primary-dark);
  color: #fff;
}

/* ===== DataTables (padrão Portal) ===== */
.gp-page .dataTables_wrapper {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gp-page .dataTables_wrapper .dataTables_filter,
.gp-page .gp-page__toolbar-search .dataTables_filter {
  float: none;
  margin: 0;
  text-align: right;
}

.gp-page .dataTables_wrapper .dataTables_filter label,
.gp-page .gp-page__toolbar-search .dataTables_filter label {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: 0;
  font-weight: 400;
  color: transparent;
  line-height: 0;
}

.gp-page .dataTables_wrapper .dataTables_filter input,
.gp-page .gp-page__toolbar-search .dataTables_filter input {
  display: inline-block;
  width: 220px;
  min-width: 180px;
  min-height: var(--gp-app-control-h);
  height: var(--gp-app-control-h);
  margin: 0 !important;
  padding: 5px 42px 5px 12px;
  font-size: calc(var(--gp-app-control-fs) * var(--gp-fs));
  font-weight: 400;
  line-height: 1.2;
  color: #0f172a;
  border: 1px solid var(--gp-app-border);
  border-radius: var(--gp-app-radius-input);
  background: #fff;
  box-sizing: border-box;
  vertical-align: middle;
}

.gp-page .dataTables_wrapper .dataTables_filter input::placeholder,
.gp-page .gp-page__toolbar-search .dataTables_filter input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.gp-page .dataTables_wrapper .dataTables_filter input:focus,
.gp-page .gp-page__toolbar-search .dataTables_filter input:focus {
  outline: none;
  border-color: var(--gp-app-primary);
  box-shadow: 0 0 0 2px rgba(7, 97, 255, 0.16);
}

.gp-page .dataTables_wrapper .dataTables_filter label::after,
.gp-page .gp-page__toolbar-search .dataTables_filter label::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 36px;
  border-left: 1px solid var(--gp-app-border);
  border-radius: 0 var(--gp-app-radius-input) var(--gp-app-radius-input) 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
  pointer-events: none;
  box-sizing: border-box;
}

.gp-page table.dataTable thead th {
  cursor: pointer;
  white-space: nowrap;
}

.gp-page table.dataTable thead th.sorting,
.gp-page table.dataTable thead th.sorting_asc,
.gp-page table.dataTable thead th.sorting_desc {
  background-image: none !important;
}

.gp-dt-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px -14px -12px;
  padding: 12px 14px;
  box-sizing: border-box;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 7px 7px;
  background: #f8fafc;
}

.gp-dt-footer__info {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.85rem;
  color: #475569;
}

.gp-dt-footer__info .dataTables_info,
.gp-dt-footer__info .dataTables_length {
  float: none !important;
  padding-top: 0 !important;
  margin: 0;
}

.gp-dt-footer__info .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
}

.gp-dt-footer__info .dataTables_length select {
  min-height: 32px;
  height: 32px;
  padding: 2px 8px;
  border: 1px solid var(--gp-app-border);
  border-radius: var(--gp-app-radius-input);
}

.gp-dt-footer .dataTables_paginate {
  float: none !important;
  padding-top: 0 !important;
  margin: 0;
  text-align: right;
}

.gp-page .gp-dt-footer .dataTables_paginate .paginate_button {
  display: inline-block;
  min-height: 32px;
  padding: 5px 10px !important;
  margin: 0 2px !important;
  border: 1px solid transparent !important;
  border-radius: var(--gp-app-radius-btn) !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 0.82rem !important;
  cursor: pointer;
  box-shadow: none !important;
}

.gp-page .gp-dt-footer .dataTables_paginate .paginate_button:hover {
  background: #eef2f7 !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

.gp-page .gp-dt-footer .dataTables_paginate .paginate_button.current {
  background: #e8f0ff !important;
  border-color: #bfd6f3 !important;
  color: var(--gp-app-primary) !important;
}

.gp-page .gp-dt-footer .dataTables_paginate .paginate_button.disabled,
.gp-page .gp-dt-footer .dataTables_paginate .paginate_button.disabled:hover {
  color: #94a3b8 !important;
  background: transparent !important;
  border-color: transparent !important;
  cursor: default !important;
}

/* DataTables no modal (ex.: histórico do solicitante) */
.gp-modal .gp-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
}

.gp-modal .gp-page__toolbar-search .dataTables_filter {
  float: none;
  margin: 0;
  text-align: right;
}

.gp-modal .gp-page__toolbar-search .dataTables_filter label {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: 0;
  font-weight: 400;
  color: transparent;
  line-height: 0;
}

.gp-modal .gp-page__toolbar-search .dataTables_filter input {
  display: inline-block;
  width: 220px;
  min-width: 180px;
  min-height: var(--gp-app-control-h);
  height: var(--gp-app-control-h);
  margin: 0 !important;
  padding: 5px 42px 5px 12px;
  font-size: calc(var(--gp-app-control-fs) * var(--gp-fs));
  font-weight: 400;
  line-height: 1.2;
  color: #0f172a;
  border: 1px solid var(--gp-app-border);
  border-radius: var(--gp-app-radius-input);
  background: #fff;
  box-sizing: border-box;
  vertical-align: middle;
}

.gp-modal .gp-page__toolbar-search .dataTables_filter input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.gp-modal .gp-page__toolbar-search .dataTables_filter input:focus {
  outline: none;
  border-color: var(--gp-app-primary);
  box-shadow: 0 0 0 2px rgba(7, 97, 255, 0.16);
}

.gp-modal .gp-page__toolbar-search .dataTables_filter label::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 36px;
  border-left: 1px solid var(--gp-app-border);
  border-radius: 0 var(--gp-app-radius-input) var(--gp-app-radius-input) 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
  pointer-events: none;
  box-sizing: border-box;
}

.gp-modal table.dataTable thead th {
  cursor: pointer;
  white-space: nowrap;
}

.gp-modal table.dataTable thead th.sorting,
.gp-modal table.dataTable thead th.sorting_asc,
.gp-modal table.dataTable thead th.sorting_desc {
  background-image: none !important;
}

.gp-modal .gp-dt-footer {
  margin: 10px 0 0;
  border-radius: 0;
}

.gp-modal .gp-dt-footer .dataTables_paginate .paginate_button {
  display: inline-block;
  min-height: 32px;
  padding: 5px 10px !important;
  margin: 0 2px !important;
  border: 1px solid transparent !important;
  border-radius: var(--gp-app-radius-btn) !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 0.82rem !important;
  cursor: pointer;
  box-shadow: none !important;
}

.gp-modal .gp-dt-footer .dataTables_paginate .paginate_button:hover {
  background: #eef2f7 !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

.gp-modal .gp-dt-footer .dataTables_paginate .paginate_button.current {
  background: #e8f0ff !important;
  border-color: #bfd6f3 !important;
  color: var(--gp-app-primary) !important;
}

.gp-modal .gp-dt-footer .dataTables_paginate .paginate_button.disabled,
.gp-modal .gp-dt-footer .dataTables_paginate .paginate_button.disabled:hover {
  color: #94a3b8 !important;
  background: transparent !important;
  border-color: transparent !important;
  cursor: default !important;
}

@media (max-width: 900px) {
  .gp-entidade-form__readonly { flex-direction: column; }
  .gp-entidade-form__grid { grid-template-columns: 1fr 1fr; }
  .gp-entidade-form__grid--stack { grid-template-columns: minmax(0, 1fr); }
  .gp-entidade-form__span-2,
  .gp-entidade-form__span-3,
  .gp-entidade-form__span-4 { grid-column: span 2; }
  .gp-entidade-form__grid--stack > .gp-modal__field,
  .gp-entidade-form__grid--stack .gp-entidade-form__span-2,
  .gp-entidade-form__grid--stack .gp-entidade-form__span-3 {
    grid-column: 1 / -1;
  }
  .gp-entidade-form__col-codigo,
  .gp-entidade-form__col-cnpj,
  .gp-entidade-form__col-esfera,
  .gp-entidade-form__col-sigla { width: auto; flex: 1 1 120px; }
}

.gp-help {
  background: #f5f8ff;
  border: 1px solid #d7e4fb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.gp-help h2 { margin: 0 0 10px; font-size: 1rem; }
.gp-help p { margin: 0 0 8px; color: var(--gp-app-muted); font-size: .92rem; }

.gp-table { width: 100%; border-collapse: collapse; }
.gp-table th, .gp-table td {
  border-bottom: 1px solid var(--gp-app-border);
  padding: 10px 8px;
  text-align: left;
  font-size: .92rem;
}
.gp-table th { background: var(--gp-app-sidebar); }

.gp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .75rem;
  background: #e8f0ff;
  color: var(--gp-app-primary-dark);
}

/* Variantes depois do base — senão o azul padrão sobrescreve */
.gp-badge.gp-badge--success {
  background: #e8f7ef;
  color: #1f6b45;
}

.gp-badge.gp-badge--danger {
  background: #fdeceb;
  color: #8a1f11;
}

.gp-badge.gp-badge--usuario {
  background: #ede9fe;
  color: #5b21b6;
}

.gp-badge.gp-badge--assunto {
  background: #ffedd5;
  color: #9a3412;
}

.gp-badge.gp-badge--bairro {
  background: #cffafe;
  color: #0e7490;
}

.gp-badge.gp-badge--flag-portal {
  background: #dbeafe;
  color: #1e40af;
}

.gp-badge.gp-badge--flag-aceita {
  background: #dcfce7;
  color: #166534;
}

.gp-badge.gp-badge--flag-encaminha {
  background: #fef3c7;
  color: #92400e;
}

.gp-sec-flags {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: flex-start;
  max-width: 16rem;
  white-space: normal;
}

.gp-sec-flags .gp-badge {
  white-space: normal;
  line-height: 1.25;
}

.gp-sec-flags--row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.gp-prazo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

.gp-prazo--ok {
  background: #dcfce7;
  color: #166534;
}

.gp-prazo--alerta {
  background: #ffedd5;
  color: #c2410c;
}

.gp-prazo--critico {
  background: #fee2e2;
  color: #b91c1c;
}

.gp-prazo--encerrado {
  background: #f1f5f9;
  color: #64748b;
}

/* Tipos de manifestação — mesmo formato visual dos prazos */
.gp-prazo.gp-badge--tipo-elogio {
  background: #dcfce7 !important;
  color: #166534 !important;
}

.gp-prazo.gp-badge--tipo-denuncia {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.gp-prazo.gp-badge--tipo-reclamacao {
  background: #ffedd5 !important;
  color: #c2410c !important;
}

.gp-prazo.gp-badge--tipo-sugestao {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

.gp-prazo.gp-badge--tipo-solicitacao,
.gp-prazo.gp-badge--tipo-solicitacao-de-informacao,
.gp-prazo.gp-badge--tipo-pedido-de-informacao {
  background: #e0e7ff !important;
  color: #3730a3 !important;
}

.gp-prazo.gp-badge--tipo-outro,
.gp-prazo[class*="gp-badge--tipo-"] {
  background: #f3e8ff;
  color: #6b21a8;
}

.gp-prazo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  align-items: center;
}

.gp-status-help {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  color: #64748b;
  font-size: 0.8rem;
}

.gp-status-help summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-weight: 500;
  user-select: none;
}

.gp-status-help summary::-webkit-details-marker {
  display: none;
}

.gp-status-help summary::before {
  content: "▸";
  font-size: 0.7rem;
  color: #94a3b8;
}

.gp-status-help[open] summary::before {
  content: "▾";
}

.gp-status-help summary:hover {
  color: #475569;
}

.gp-status-help__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gp-status-help__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  line-height: 1.35;
}

.gp-status-help__list .gp-manif-chip {
  flex-shrink: 0;
  font-size: 0.72rem;
  padding: 3px 9px;
}

.gp-prazo-hist {
  margin-top: 10px;
}

.gp-prazo-hist__body {
  margin-top: 12px;
  font-family: var(--gp-app-font);
  font-weight: 400;
  font-size: calc(16px * var(--gp-fs, 1));
  line-height: 1.5;
  color: var(--gp-app-text, #1a1a1a);
}

.gp-prazo-hist__intro,
.gp-prazo-hist__why p,
.gp-prazo-hist__step-desc {
  margin: 0 0 12px;
  color: var(--gp-app-muted, #4a5568);
  font-family: var(--gp-app-font);
  font-weight: 400;
  font-size: calc(16px * var(--gp-fs, 1));
  line-height: 1.5;
}

.gp-prazo-hist__steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gp-prazo-hist__step {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 10px 12px;
  position: relative;
  padding-bottom: 14px;
}

.gp-prazo-hist__step:last-child {
  padding-bottom: 0;
}

.gp-prazo-hist__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.82rem;
  top: 1.7rem;
  bottom: 0;
  width: 2px;
  background: #dbe3ec;
}

.gp-prazo-hist__n {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #23528f;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.gp-prazo-hist__step-title {
  margin: 0 0 4px;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 600;
  line-height: 1.5;
  color: var(--gp-app-text, #1a1a1a);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.gp-prazo-hist__step-title .gp-prazo {
  font-size: 0.72rem;
}

.gp-prazo-hist__step-desc {
  margin: 0;
}

.gp-prazo-hist__why {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #f8fafc;
}

.gp-prazo-hist__why-title {
  margin: 0 0 8px;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 700;
  line-height: 1.5;
  color: var(--gp-app-text, #1a1a1a);
}

.gp-prazo-hist__why p:last-child {
  margin-bottom: 0;
}

.gp-prazo-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--gp-app-border, #e2e8f0);
}

.gp-prazo-panel .gp-label {
  display: block;
  margin-bottom: 6px;
}

.gp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.gp-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none !important;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gp-stat:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.gp-stat.is-active {
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.1);
}

.gp-stat__label {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
}

.gp-stat__value {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
}

.gp-stat__icon {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 2.1rem;
  opacity: 0.28;
}

.gp-stat--abertas {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #93c5fd;
  color: #1e40af !important;
}

.gp-stat--abertas.is-active {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px #93c5fd, 0 4px 12px rgba(37, 99, 235, 0.12);
}

.gp-stat--analise {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  border-color: #fdba74;
  color: #9a3412 !important;
}

.gp-stat--analise.is-active {
  border-color: #fb923c;
  box-shadow: 0 0 0 2px #fdba74, 0 4px 12px rgba(234, 88, 12, 0.12);
}

.gp-stat--respondidas {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #86efac;
  color: #166534 !important;
}

.gp-stat--respondidas.is-active {
  border-color: #4ade80;
  box-shadow: 0 0 0 2px #86efac, 0 4px 12px rgba(22, 163, 74, 0.12);
}

.gp-manif-filters {
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.gp-manif-filters .gp-page__input--search {
  flex: 1 1 220px;
  min-width: 180px;
  margin: 0;
}

.gp-manif-filters__status {
  width: auto;
  min-width: 180px;
  max-width: 220px;
  margin: 0;
}

/* Toolbar + filtrar por (padrão Gerenciador de Acessos) */
.gp-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gp-list-toolbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
}

.gp-list-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  text-decoration: none !important;
  box-sizing: border-box;
}

.gp-list-icon-btn:hover {
  background: #f1f5f9;
  color: #0761ff;
}

.gp-list-search {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.gp-list-search input[type="search"] {
  width: 220px;
  height: 36px;
  margin: 0;
  padding: 0 42px 0 12px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: #0f172a;
  font: inherit;
  box-sizing: border-box;
}

.gp-list-search input[type="search"]::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.gp-list-search input[type="search"]:focus {
  border-color: #0761ff;
  box-shadow: 0 0 0 2px rgba(7, 97, 255, 0.16);
}

.gp-list-search__btn {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-left: 1px solid #cfd8e3;
  border-radius: 0 6px 6px 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  box-sizing: border-box;
}

.gp-list-search__btn:hover {
  color: #0761ff;
  background: #f8fafc;
}

.gp-list-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 3px 12px;
  min-height: 28px;
  margin-bottom: 12px;
  background: #e8eaed;
  border-radius: 2px;
  font-family: var(--gp-app-font, "Open Sans", Arial, Helvetica, sans-serif);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.2;
  color: #3c4043;
}

.gp-list-filter-bar__label {
  font-family: var(--gp-app-font, "Open Sans", Arial, Helvetica, sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f6368;
  white-space: nowrap;
  line-height: 1.2;
}

.gp-list-filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.gp-list-filter-tab {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 10px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #3c4043;
  font-family: var(--gp-app-font, "Open Sans", Arial, Helvetica, sans-serif);
  font-size: 0.82rem;
  font-weight: 400;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1.2;
}

.gp-list-filter-tab:hover {
  background: rgba(255, 255, 255, 0.55);
  color: #202124;
}

.gp-list-filter-tab.is-active {
  background: #dfe1e5;
  color: #202124;
  font-weight: 400;
  box-shadow: none;
}

.gp-list-toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.gp-list-toolbar-filters__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 180px;
  max-width: min(100%, 220px);
}

.gp-list-toolbar-filters__label {
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: 600;
  line-height: 1.2;
  color: var(--gp-app-muted);
}

.gp-list-toolbar-filters .gp-modal__input {
  margin: 0;
  height: var(--gp-app-control-h);
  min-height: var(--gp-app-control-h);
  padding: 6px 12px;
  font-size: calc(var(--gp-app-control-fs) * var(--gp-fs));
}

@media (max-width: 900px) {
  .gp-list-toolbar-filters {
    width: 100%;
  }

  .gp-list-toolbar-filters__field {
    flex: 1 1 140px;
    width: auto;
  }
}

@media (max-width: 900px) {
  .gp-stats { grid-template-columns: 1fr; }
}

.gp-alert { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.gp-alert--ok { background: #e8f7ef; color: #1f6b45; }
.gp-alert--erro { background: #fdeceb; color: #8a1f11; }

.gp-nav { display: flex; gap: 14px; align-items: center; }
.gp-nav a {
  color: #fff;
  text-decoration: none;
  opacity: .9;
  font-family: var(--gp-app-font);
  font-size: calc(0.875rem * var(--gp-fs));
  font-weight: 400;
}
.gp-nav a:hover { opacity: 1; }
.gp-radio {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  align-items: center;
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: 400;
  color: var(--gp-app-text);
}
.gp-radio > label,
.gp-radio__opt {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.gp-radio--com-flag {
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}
.gp-radio--com-flag .gp-ouv-flag--inline {
  margin-left: 0.25rem;
  gap: 0.5rem;
}
.gp-radio--com-flag .gp-ouv-flag--inline .gp-ouv-flag__text {
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: 400;
  color: var(--gp-app-text);
  white-space: nowrap;
}
.gp-radio__opt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.gp-radio__help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: help;
  font-size: 0.95rem;
  line-height: 1;
}
.gp-radio__help:hover,
.gp-radio__help:focus {
  color: #23528f;
  outline: none;
}

@media (max-width: 900px) {
  .gp-home__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .gp-stats { grid-template-columns: 1fr; }
  .gp-app-header__inner { padding: 0 12px; gap: 10px; }
  .gp-app-header__left { gap: 10px; }
  .gp-app-header__brand-name {
    max-width: min(110px, 34vw);
    font-size: 0.625rem;
    padding: 0 10px;
  }
  .gp-portal-fs span,
  .gp-portal-fs #gpFsReset { display: none; }
  .gp-top-nav {
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .gp-top-nav::-webkit-scrollbar { display: none; }
  .gp-top-nav__dropdown--configurando {
    flex-wrap: wrap;
    min-width: 260px;
  }
  .gp-top-nav__link {
    padding: 0 8px;
    font-size: calc(0.8rem * var(--gp-fs));
  }
  .gp-context-bar__inner { padding: 0 12px; }
  .gp-context-bar .gp-entidade { max-width: min(280px, 70vw); }
  .gp-home__grid { grid-template-columns: 1fr; }
}

/* Dropzone (anexo PDF / arquivos) */
.gp-dropzone {
  margin-bottom: 4px;
  position: relative;
}

.gp-dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.gp-dropzone__area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 14px;
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gp-dropzone__area:hover,
.gp-dropzone__area:focus-visible,
.gp-dropzone.is-dragover .gp-dropzone__area {
  border-color: var(--gp-app-primary, #23528f);
  background: #eef5ff;
  outline: none;
}

.gp-dropzone__area i {
  font-size: 1.6rem;
  color: #c62828;
}

.gp-dropzone--csv .gp-dropzone__area i {
  color: var(--gp-app-primary, #23528f);
}

.gp-dropzone__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.gp-dropzone__hint {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
}

.gp-dropzone__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gp-dropzone__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.gp-dropzone__item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.gp-dropzone__item-meta {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #64748b;
}

.gp-dropzone__remove {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}

.gp-dropzone__remove:hover {
  color: #c62828;
}

.gp-help--admin {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--gp-app-border, #e2e8f0);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #475569;
}

.gp-help--admin p {
  margin: 0.35rem 0 0;
}

.gp-ouv-flag {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  margin: 0.25rem 0;
  user-select: none;
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: 400;
}

.gp-ouv-flag.is-disabled {
  cursor: default;
  opacity: 0.7;
  pointer-events: none;
}

.gp-ouv-flag input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.gp-ouv-flag__ui {
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  margin-top: 1px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.15s ease;
}

.gp-ouv-flag__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
  transition: transform 0.15s ease;
}

.gp-ouv-flag input:focus-visible + .gp-ouv-flag__ui {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.gp-ouv-flag input:checked + .gp-ouv-flag__ui {
  background: #16a34a;
}

.gp-ouv-flag input:checked + .gp-ouv-flag__ui::after {
  transform: translateX(18px);
}

.gp-ouv-flag__text {
  line-height: 1.35;
  color: var(--gp-app-text, #334155);
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
}

.gp-anexo-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gp-anexo-lista__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--gp-app-border, #e2e8f0);
  border-radius: 8px;
  background: #f8fafc;
}

.gp-anexo-lista__info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.gp-anexo-lista__info > i {
  margin-top: 3px;
  color: var(--gp-app-primary, #0761ff);
}

.gp-anexo-lista__info strong {
  display: block;
  word-break: break-word;
}

.gp-anexo-lista__desc {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
}

.gp-anexo-lista__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #64748b;
}

.gp-anexo-lista__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gp-anexo-lista__meta i {
  font-size: 0.72rem;
  opacity: 0.85;
}

.gp-anexo-lista__sep {
  color: #cbd5e1;
}

.gp-anexo-lista__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .gp-anexo-lista__item {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== Detalhe da manifestação ===== */
.gp-manif-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gp-manif-detail > .gp-page__header {
  margin-bottom: 0;
  align-items: flex-start;
  flex-wrap: wrap;
  row-gap: 12px;
}

.gp-manif-detail__header-id {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.gp-manif-detail > .gp-page__header > .gp-page__header-text,
.gp-manif-detail__header-id > .gp-page__header-text {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--gp-app-font);
  font-size: calc(0.9rem * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.35;
  color: var(--gp-app-text, #1a1a1a);
}

.gp-manif-detail > .gp-page__header .gp-page__title,
.gp-manif-detail > .gp-page__header .gp-page__desc,
.gp-manif-detail > .gp-page__header .gp-manif-detail__eyebrow-label,
.gp-manif-detail > .gp-page__header .gp-manif-detail__status,
.gp-manif-detail > .gp-page__header .gp-manif-detail__codigo {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.gp-manif-detail__eyebrow {
  margin: 0 0 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gp-manif-detail__eyebrow-label {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.gp-manif-detail__status {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gp-manif-detail__proto {
  white-space: nowrap;
}

.gp-manif-detail__k {
  font-weight: 600;
  color: var(--gp-app-muted, #4a5568);
}

.gp-manif-detail__codigo {
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.gp-manif-detail__header-actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  flex: 0 1 auto;
  justify-content: flex-start;
  align-items: flex-end;
  max-width: 100%;
}

.gp-manif-detail__header-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.gp-manif-detail__header-actions-row form {
  margin: 0;
}

.gp-manif-detail__header-actions .gp-page__btn {
  width: auto;
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
}

.gp-manif-detail--acoes-topo > .gp-page__header {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 14px;
}

.gp-manif-detail--acoes-topo .gp-manif-detail__header-actions {
  margin-left: 0;
  width: 100%;
  align-items: stretch;
  flex: none;
}

.gp-manif-detail--acoes-topo .gp-manif-detail__header-actions-row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
}

.gp-manif-detail--acoes-topo .gp-manif-detail__header-actions-row > a,
.gp-manif-detail--acoes-topo .gp-manif-detail__header-actions-row > span,
.gp-manif-detail--acoes-topo .gp-manif-detail__header-actions-row > form,
.gp-manif-detail--acoes-topo .gp-manif-detail__header-actions-row > button {
  flex: 1 0 auto;
  display: flex;
}

.gp-manif-detail--acoes-topo .gp-manif-detail__header-actions .gp-page__btn {
  width: auto;
  flex: 1 0 auto;
  min-width: auto;
  height: var(--gp-app-btn-h);
  white-space: nowrap;
}

.gp-manif-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.gp-manif-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.gp-manif-chip i {
  font-size: 0.65rem;
  color: inherit;
}

.gp-manif-chip--neutral {
  background: #f1f5f9;
  color: #475569;
}

.gp-manif-chip--prioridade {
  background: #fef3c7;
  color: #92400e;
}

.gp-manif-chip--urgente {
  background: #fee2e2;
  color: #991b1b;
}

.gp-manif-badge-urgente {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  vertical-align: middle;
  white-space: nowrap;
}

.gp-manif-badge-prioridade {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  vertical-align: middle;
  white-space: nowrap;
}

.gp-manif-badge-servidor {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
  vertical-align: middle;
  white-space: nowrap;
}

.gp-manif-badge-sigiloso {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
  vertical-align: middle;
  white-space: nowrap;
}

.gp-manif-protocolo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.gp-manif-protocolo__num {
  display: block;
  line-height: 1.25;
}

.gp-manif-protocolo__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.gp-manif-sec-assunto {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  line-height: 1.3;
}

.gp-manif-sec-assunto__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
  min-width: 0;
}

.gp-manif-sec-assunto__label {
  flex-shrink: 0;
  font-weight: 600;
  color: #64748b;
  font-size: 0.85em;
}

.gp-manif-sec-assunto__sec {
  font-weight: 600;
  color: #1a1a1a;
}

.gp-manif-sec-assunto__assunto {
  font-size: 0.85em;
  color: #64748b;
}

.gp-manif-prazo-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 11rem;
  line-height: 1.35;
  padding: 0.15rem 0;
}

.gp-manif-prazo-stack__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.gp-manif-prazo-stack__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.gp-manif-prazo-stack__prazos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.gp-prazo--riscado {
  background: #f1f5f9;
  color: #64748b;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  opacity: 0.85;
}

#datatable-manifestacoes td,
#datatable-manifestacoes th {
  vertical-align: middle;
}

#datatable-manifestacoes tbody td {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.gp-manif-row--urgente > td {
  background: #fff5f5;
}

.gp-manif-row--urgente:hover > td {
  background: #ffecec !important;
}

#datatable-manifestacoes tbody tr.gp-manif-row--urgente td {
  box-shadow: inset 3px 0 0 #f87171;
}

.gp-manif-chip--servidor {
  background: #ede9fe;
  color: #5b21b6;
}

.gp-manif-chip--status-aberta {
  background: #2563eb;
  color: #fff;
}

.gp-manif-chip--status-analise {
  background: #ea580c;
  color: #fff;
}

.gp-manif-chip--status-respondida {
  background: #16a34a;
  color: #fff;
}

.gp-manif-chip--status-arquivada {
  background: #64748b;
  color: #fff;
}

.gp-manif-chip--status-aprovacao {
  background: #d97706;
  color: #fff;
}

.gp-manif-chip--status-recurso {
  background: #7c3aed;
  color: #fff;
}

.gp-manif-chip--sistema-ouv {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gp-manif-chip--sistema-sic {
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gp-manif-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.gp-manif-stats__item {
  background: #64748b;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
}

.gp-manif-stats__item--total {
  background: #64748b;
}

.gp-manif-stats__item--aberta {
  background: #2563eb;
}

.gp-manif-stats__item--analise {
  background: #ea580c;
}

.gp-manif-stats__item--atrasada {
  background: #dc2626;
}

.gp-manif-stats__item--aprovacao {
  background: #d97706;
}

.gp-manif-stats__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.gp-manif-stats__label {
  font-size: 0.78rem;
  color: #fff;
}

@media (max-width: 900px) {
  .gp-manif-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gp-manif-detail__prazos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gp-manif-prazo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #f8fafc;
}

.gp-manif-prazo__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.gp-manif-prazo__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gp-manif-prazo__value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.gp-manif-prazo--ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.gp-manif-prazo--ok .gp-manif-prazo__icon { color: #16a34a; }

.gp-manif-prazo--alerta {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.gp-manif-prazo--alerta .gp-manif-prazo__icon { color: #ea580c; }

.gp-manif-prazo--critico {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.gp-manif-prazo--critico .gp-manif-prazo__icon { color: #dc2626; }

.gp-manif-prazo--encerrado {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

.gp-manif-prazo--encerrado .gp-manif-prazo__icon { color: #94a3b8; }

.gp-manif-detail__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gp-manif-detail__quick form {
  margin: 0;
}

.gp-manif-section {
  margin: 0;
}

.gp-manif-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}

.gp-manif-section__head--with-search {
  flex-wrap: wrap;
  align-items: flex-start;
}

.gp-manif-section__head-text {
  flex: 1 1 auto;
  min-width: 0;
}

.gp-manif-section__head .gp-page__toolbar-search {
  margin-left: auto;
  align-self: center;
}

.gp-manif-detail__section-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--gp-app-font);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.gp-manif-detail__section-title i {
  font-size: 0.85rem;
}

.gp-diferenciais__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gp-diferenciais__head .gp-manif-detail__section-title {
  margin: 0;
}

.gp-diferenciais__head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.gp-diferenciais__head-actions .gp-page__btn {
  width: auto;
  white-space: nowrap;
}

.gp-manif-section__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #eff6ff;
  color: var(--gp-app-primary, #0761ff);
  font-size: 0.85rem;
}

.gp-manif-section__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--gp-app-font);
}

.gp-manif-section__sub {
  margin: 1px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.gp-manif-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.gp-manif-field {
  display: grid;
  grid-template-columns: minmax(96px, 132px) minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 12px;
  padding: 7px 0;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
  background: transparent;
  min-width: 0;
}

.gp-manif-field--wide {
  grid-column: span 2;
}

.gp-manif-field--block {
  margin-bottom: 8px;
}

.gp-manif-field__label {
  display: block;
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: 400;
  color: var(--gp-app-text);
  margin-bottom: 0;
  line-height: 1.5;
}

.gp-manif-field__value {
  display: block;
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: 400;
  color: var(--gp-app-text);
  word-break: break-word;
  line-height: 1.5;
}

.gp-manif-field__value--sigilo {
  letter-spacing: 0.18em;
  color: var(--gp-app-muted, #4a5568);
  user-select: none;
}

.gp-manif-field__value--lg {
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
}

.gp-manif-descricao {
  margin-top: 4px;
}

.gp-manif-descricao .gp-manif-field__label {
  margin-bottom: 4px;
}

.gp-manif-descricao__body {
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--gp-app-primary, #0761ff);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--gp-app-font);
  font-size: calc(var(--gp-app-label-fs) * var(--gp-fs));
  font-weight: 400;
  line-height: 1.5;
  color: var(--gp-app-text);
}

.gp-manif-anexar {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.gp-manif-anexar .gp-dropzone,
.gp-manif-anexar .gp-modal__field {
  width: 100%;
  align-self: stretch;
}

.gp-manif-form .gp-modal__field {
  margin-bottom: 12px;
}

.gp-enc-users {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.gp-enc-users__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: calc(0.86rem * var(--gp-fs));
  color: #0f172a;
  cursor: pointer;
  line-height: 1.35;
}

.gp-enc-users__item input {
  margin-top: 2px;
  flex-shrink: 0;
}

.gp-manif-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.gp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gp-timeline__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  position: relative;
}

.gp-timeline__item:not(:last-child) .gp-timeline__rail::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -4px;
  width: 2px;
  background: #e2e8f0;
}

.gp-timeline__rail {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.gp-timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #94a3b8;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cbd5e1;
  z-index: 1;
}

.gp-timeline__item--abertura .gp-timeline__dot { background: #0f766e; box-shadow: 0 0 0 1px #99f6e4; }
.gp-timeline__item--andamento .gp-timeline__dot { background: #2563eb; box-shadow: 0 0 0 1px #bfdbfe; }
.gp-timeline__item--prorrogacao .gp-timeline__dot { background: #d97706; box-shadow: 0 0 0 1px #fde68a; }
.gp-timeline__item--encaminhamento .gp-timeline__dot { background: #7c3aed; box-shadow: 0 0 0 1px #ddd6fe; }
.gp-timeline__item--status .gp-timeline__dot { background: #475569; box-shadow: 0 0 0 1px #cbd5e1; }
.gp-timeline__item--anexo .gp-timeline__dot { background: #0891b2; box-shadow: 0 0 0 1px #a5f3fc; }
.gp-timeline__item--anotacao .gp-timeline__dot { background: #64748b; box-shadow: 0 0 0 1px #cbd5e1; }
.gp-timeline__item--chat .gp-timeline__dot { background: #059669; box-shadow: 0 0 0 1px #a7f3d0; }

.gp-timeline__body {
  padding: 0 0 18px;
  min-width: 0;
}

.gp-timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.gp-timeline__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.gp-timeline__badge--abertura { background: #ccfbf1; color: #0f766e; }
.gp-timeline__badge--andamento { background: #dbeafe; color: #1d4ed8; }
.gp-timeline__badge--prorrogacao { background: #fef3c7; color: #b45309; }
.gp-timeline__badge--encaminhamento { background: #ede9fe; color: #6d28d9; }
.gp-timeline__badge--status { background: #e2e8f0; color: #334155; }
.gp-timeline__badge--anexo { background: #cffafe; color: #0e7490; }
.gp-timeline__badge--anotacao { background: #f1f5f9; color: #475569; }
.gp-timeline__badge--chat { background: #d1fae5; color: #047857; }

.gp-timeline__when {
  font-size: 0.85rem;
  color: #64748b;
}

.gp-timeline__who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #475569;
}

.gp-timeline__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

.gp-timeline__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.gp-timeline__detail {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.gp-andamento-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gp-andamento-item {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.gp-andamento-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.gp-manif-resposta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.gp-page__btn--danger-text {
  color: #b91c1c !important;
  border-color: #fecaca;
}

.gp-page__btn--danger-text:hover {
  background: #fef2f2 !important;
  border-color: #fca5a5;
  color: #991b1b !important;
}

@media (max-width: 900px) {
  .gp-manif-detail__prazos {
    grid-template-columns: 1fr 1fr;
  }

  .gp-manif-grid {
    grid-template-columns: 1fr;
  }

  .gp-manif-field--wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .gp-manif-detail--acoes-topo .gp-manif-detail__header-actions-row > a,
  .gp-manif-detail--acoes-topo .gp-manif-detail__header-actions-row > span,
  .gp-manif-detail--acoes-topo .gp-manif-detail__header-actions-row > form,
  .gp-manif-detail--acoes-topo .gp-manif-detail__header-actions-row > button {
    flex: 1 1 calc(50% - 4px);
  }

  .gp-manif-detail__prazos {
    grid-template-columns: 1fr;
  }

  .gp-manif-field {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Abas underline (estilo parâmetros) */
.gp-param-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin: 0 0 1rem;
  padding: 0;
  border-bottom: 1px solid #e5e7eb;
}

.gp-param-tabs__item {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin: 0 0 -1px;
  padding: 10px 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  cursor: default;
  line-height: 1.2;
}

.gp-param-tabs__item.is-active {
  color: var(--gp-app-primary, #0761ff);
  border-bottom-color: var(--gp-app-primary, #0761ff);
}

.gp-param-tabs__item:not(.is-active) {
  cursor: pointer;
}

.gp-param-tabs__item:not(.is-active):hover {
  color: #0f172a;
}

.gp-param-tabs__panel[hidden] {
  display: none !important;
}

.gp-param-tabs__panel {
  padding-top: 0.25rem;
}

.gp-recurso-lei {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #f8fafc;
}

.gp-recurso-lei__title {
  margin: 0 0 8px;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 700;
  line-height: 1.5;
  color: var(--gp-app-text, #1a1a1a);
}

.gp-recurso-lei__texto,
.gp-recurso-lei__lista,
.gp-recurso-lei__nota,
.gp-recurso-lei__status {
  font-family: var(--gp-app-font);
  font-weight: 400;
  font-size: calc(16px * var(--gp-fs, 1));
  line-height: 1.5;
  color: var(--gp-app-text, #1a1a1a);
}

.gp-recurso-lei__texto {
  margin: 0 0 8px;
}

.gp-recurso-lei__lista {
  margin: 0 0 8px;
  padding-left: 1.25rem;
}

.gp-recurso-lei__lista li + li {
  margin-top: 4px;
}

.gp-recurso-lei__nota,
.gp-recurso-lei__status {
  margin: 0;
  color: var(--gp-app-muted, #4a5568);
}

.gp-recurso-lei__prazo {
  margin: 12px 0 16px;
}

.gp-param-section-title {
  margin: 0 0 1rem;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--gp-app-primary, #0761ff);
  display: inline-block;
  font-family: var(--gp-app-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gp-app-primary, #0761ff);
  line-height: 1.2;
}

.gp-param-group {
  margin: 0 0 1.15rem;
  padding: .85rem 1rem;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
}

.gp-param-stack {
  display: grid;
  gap: 1.15rem;
}

.gp-param-stack > .gp-param-group {
  margin: 0;
}

.gp-param-group__title {
  margin: 0 0 .35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.gp-param-lei {
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.5;
  color: var(--gp-app-muted, #4a5568);
}

.gp-param-hint {
  margin: 0.25rem 0 0;
  font-family: var(--gp-app-font);
  font-size: calc(12px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.4;
  color: var(--gp-app-muted, #4a5568);
}

.gp-param-group .gp-ouv-flag {
  font-size: calc(16px * var(--gp-fs, 1));
}

.gp-param-group .gp-ouv-flag__text {
  color: var(--gp-app-text, #1a1a1a);
}

.gp-param-group .gp-modal__label,
.gp-param-group .gp-modal__input {
  font-size: calc(16px * var(--gp-fs, 1));
}

.gp-param-group__flags {
  display: grid;
  gap: .55rem;
  margin-top: .65rem;
}

.gp-param-group__flags--row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem 1rem;
}

.gp-param-flag-cell {
  display: grid;
  gap: .35rem;
  align-content: start;
}

@media (max-width: 900px) {
  .gp-param-group__flags--row {
    grid-template-columns: 1fr;
  }
}

.gp-email-chips__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  min-height: var(--gp-app-control-h);
  padding: .35rem .5rem;
  border: 1px solid var(--gp-app-border);
  border-radius: var(--gp-app-radius-input);
  background: #fff;
  cursor: text;
}

.gp-email-chips.is-readonly .gp-email-chips__box {
  cursor: default;
  background: #f8fafc;
}

.gp-email-chips.is-invalid .gp-email-chips__box {
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, .12);
}

.gp-email-chips__box:focus-within {
  border-color: var(--gp-app-primary);
  box-shadow: 0 0 0 2px rgba(7, 97, 255, .15);
}

.gp-email-chips__chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  max-width: 100%;
  padding: .2rem .45rem .2rem .55rem;
  border-radius: 999px;
  background: #e8f0ff;
  color: #0f2f6e;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
}

.gp-email-chips__chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-email-chips__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #3b5b9a;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.gp-email-chips__remove:hover {
  background: rgba(7, 97, 255, .14);
  color: #0f2f6e;
}

.gp-email-chips__input {
  flex: 1 1 10rem;
  min-width: 10rem;
  margin: 0;
  padding: .2rem .15rem;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: var(--gp-app-control-fs);
  color: var(--gp-app-text);
}

.gp-email-chips__input::placeholder {
  color: #94a3b8;
}

.gp-ouv-forma-opt__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: .75rem;
  text-align: center;
  color: #64748b;
}

/* Abas enviesadas (estilo Gerenciador de Acessos) */
.gp-sec-tabs {
  display: inline-flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  margin: 1rem 0 0.85rem;
  padding: 0 0 0 0.35rem;
  background: transparent;
  border: 0;
}

.gp-sec-tabs__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 22px;
  margin: 0;
  border: 1px solid #64748b;
  border-radius: 0;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transform: skewX(-18deg);
  z-index: 0;
}

.gp-sec-tabs__item > * {
  transform: skewX(18deg);
}

.gp-sec-tabs__item + .gp-sec-tabs__item {
  margin-left: -10px;
}

.gp-sec-tabs__item:hover {
  background: #e2e8f0;
  color: #1e293b;
  text-decoration: none;
}

.gp-sec-tabs__item.is-active {
  background: #2f9e44;
  border-color: #2f9e44;
  color: #fff;
  z-index: 1;
}

.gp-sec-tabs__item.is-active:hover {
  background: #2b8a3e;
  border-color: #2b8a3e;
  color: #fff;
}

.gp-sec-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.gp-sec-tabs__item.is-active .gp-sec-tabs__count {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.gp-sec-panel {
  margin-top: 0.25rem;
}

.gp-sec-vincular {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.gp-sec-vincular__field {
  flex: 1;
  min-width: 220px;
  margin: 0;
}

.gp-sec-vincular__btn {
  flex-shrink: 0;
}

.gp-sec-modulos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.gp-sec-modulos .gp-modal__label {
  margin-bottom: 0.15rem;
}

.gp-sec-modulos__hint {
  margin: -0.15rem 0 0.45rem 1.65rem;
  padding: 0;
  font-family: var(--gp-app-font);
  font-size: calc(0.78rem * var(--gp-fs));
  font-weight: 400;
  color: var(--gp-app-muted);
  line-height: 1.35;
}

.gp-combo-picker__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gp-combo-picker {
  position: relative;
  width: 100%;
}

.gp-combo-picker__control {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  box-sizing: border-box;
}

.gp-combo-picker.is-open .gp-combo-picker__control,
.gp-combo-picker__control:focus-within {
  border-color: var(--gp-app-primary, #0761ff);
  box-shadow: 0 0 0 3px rgba(7, 97, 255, 0.12);
}

.gp-combo-picker__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  padding: 8px 4px 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.gp-combo-picker.is-disabled {
  opacity: 0.65;
  pointer-events: none;
}
.gp-combo-picker.is-disabled .gp-combo-picker__control {
  background: #f1f5f9;
}

.gp-combo-picker__input::placeholder {
  font-weight: 400;
  color: #94a3b8;
}

.gp-combo-picker__clear,
.gp-combo-picker__caret {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 4px;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
}

.gp-combo-picker__clear {
  display: none;
}

.gp-combo-picker.has-value .gp-combo-picker__clear {
  display: inline-flex;
}

.gp-combo-picker__clear:hover,
.gp-combo-picker__caret:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.gp-combo-picker__caret i {
  font-size: 12px;
  transition: transform 0.15s ease;
}

.gp-combo-picker.is-open .gp-combo-picker__caret i {
  transform: rotate(180deg);
}

.gp-combo-picker__panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 40;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.gp-combo-picker.is-open .gp-combo-picker__panel {
  display: block;
}

.gp-combo-picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}

.gp-combo-picker__add {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid #bfdbfe;
  background: #1d4ed8;
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.gp-combo-picker__add:hover {
  background: #1e40af;
}

.gp-combo-picker__add strong {
  font-weight: 700;
}

.gp-combo-picker__add u {
  text-decoration: underline;
  font-weight: 600;
}

.gp-combo-picker__item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  color: #0f172a;
}

.gp-combo-picker__item:hover,
.gp-combo-picker__item.is-active {
  background: #eff6ff;
}

.gp-combo-picker__item.is-selected {
  background: #dbeafe;
}

.gp-combo-picker__empty {
  padding: 12px;
  color: #64748b;
  font-size: 13px;
}

.gp-modal__dialog--wide {
  max-width: 880px;
  width: calc(100% - 2rem);
}

/* Editor rich text no modal Ajuda (mesmo padrão da Carta) */
#modalAjuda .tox-tinymce {
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
}
#modalAjuda .tox .tox-toolbar,
#modalAjuda .tox .tox-toolbar__primary {
  background: #f8fafc !important;
}
#modalAjuda .tox-statusbar {
  display: none !important;
}

/* Abas simples (legado / outras telas) */
.gp-manif-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.gp-manif-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 600;
}

.gp-manif-tab:hover {
  background: #f3f4f6;
  color: #111827;
}

.gp-manif-tab.is-active {
  background: #0f766e;
  color: #fff;
}

.gp-manif-tab.is-active:hover {
  background: #0d9488;
  color: #fff;
}

/* Célula de usuário (estilo Gerenciador de Acessos) */
.gp-nome-cell {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

/* Diálogo de anotações (estilo conversa) */
.gp-chat {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  overflow: hidden;
  background: #ece5dd;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35) 0, transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(0, 0, 0, 0.03) 0, transparent 40%);
}

.gp-chat__thread {
  max-height: 420px;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gp-chat__empty {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  padding: 24px 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.gp-chat__row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: min(100%, 520px);
  align-self: flex-start;
}

.gp-chat__row--mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.gp-chat__avatar {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.gp-chat__avatar-img,
.gp-chat__avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.gp-chat__avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #cbd5e1;
  color: #334155;
  font-size: 0.85rem;
}

.gp-chat__bubble {
  background: #fff;
  border-radius: 12px 12px 12px 4px;
  padding: 8px 12px 10px;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.08);
  min-width: 0;
}

.gp-chat__row--mine .gp-chat__bubble {
  background: #d9fdd3;
  border-radius: 12px 12px 4px 12px;
}

.gp-chat__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  margin-bottom: 4px;
}

.gp-chat__author {
  font-size: 0.78rem;
  color: #0f766e;
  font-weight: 700;
}

.gp-chat__row--mine .gp-chat__author {
  color: #166534;
}

.gp-chat__time {
  font-size: 0.72rem;
  color: #94a3b8;
}

.gp-chat__text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
}

.gp-chat__composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 10px 12px;
  background: #f0f2f5;
  border-top: 1px solid #dbe3ec;
}

.gp-chat__composer-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gp-chat__attach {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.gp-chat__attach:hover {
  background: #eef2f7;
  color: #0f172a;
}

.gp-chat__attach input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.gp-chat__attach-name {
  margin: 0;
  padding: 0 4px;
  font-size: 0.75rem;
  color: #0369a1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-chat__input {
  flex: 1;
  width: 100%;
  min-height: 42px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  background: #fff;
  color: #0f172a;
  box-sizing: border-box;
}

.gp-chat__input:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.gp-chat__file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
}

.gp-chat__file:hover {
  background: rgba(15, 23, 42, 0.1);
  text-decoration: none;
}

.gp-chat__row--mine .gp-chat__file {
  background: rgba(255, 255, 255, 0.35);
}

.gp-chat__file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
}

.gp-chat__file-size {
  flex-shrink: 0;
  font-size: 0.72rem;
  opacity: 0.75;
}

.gp-chat__send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #0d9488;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gp-chat__send:hover {
  background: #0f766e;
}

/* Visualizações da manifestação */
.gp-vis-resumo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gp-vis-resumo__item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-family: var(--gp-app-font);
  font-size: calc(0.85rem * var(--gp-fs));
  color: #64748b;
}

.gp-vis-resumo__item strong {
  font-size: calc(1.15rem * var(--gp-fs));
  color: #0f172a;
}

.gp-vis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.gp-vis-card {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 14px;
  box-sizing: border-box;
  min-width: 0;
}

.gp-vis-card--azul { background: #eff6ff; border-color: #bfdbfe; }
.gp-vis-card--verde { background: #ecfdf5; border-color: #a7f3d0; }
.gp-vis-card--ambar { background: #fffbeb; border-color: #fde68a; }
.gp-vis-card--rosa { background: #fdf2f8; border-color: #fbcfe8; }
.gp-vis-card--roxo { background: #f5f3ff; border-color: #ddd6fe; }
.gp-vis-card--teal { background: #f0fdfa; border-color: #99f6e4; }
.gp-vis-card--laranja { background: #fff7ed; border-color: #fed7aa; }
.gp-vis-card--cinza { background: #f8fafc; border-color: #e2e8f0; }

.gp-vis-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.gp-vis-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gp-vis-card__avatar-img,
.gp-vis-card__avatar-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.1rem;
}

.gp-vis-card__who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gp-vis-card__nome {
  font-family: var(--gp-app-font);
  font-size: calc(0.95rem * var(--gp-fs));
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-vis-card__nome-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gp-vis-card__nome-row .gp-vis-card__nome {
  flex: 1 1 auto;
  min-width: 0;
}

.gp-vis-card__vezes {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-family: var(--gp-app-font);
  font-size: calc(0.72rem * var(--gp-fs));
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1e3a5f;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.12);
  white-space: nowrap;
}

.gp-vis-card__quando {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--gp-app-font);
  font-size: calc(0.78rem * var(--gp-fs));
  color: #475569;
}

.gp-vis-card__meta {
  margin: 0;
  display: grid;
  gap: 8px;
}

.gp-vis-card__meta > div {
  display: grid;
  gap: 2px;
}

.gp-vis-card__meta dt {
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: calc(0.7rem * var(--gp-fs));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.gp-vis-card__meta dd {
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: calc(0.82rem * var(--gp-fs));
  color: #1e293b;
  word-break: break-word;
}

.gp-vis-card__ua {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gp-vis-card__acessos {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-height: 22rem;
  overflow: auto;
}

.gp-vis-card__acesso {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.gp-vis-card__acesso .gp-vis-card__quando {
  margin-bottom: 6px;
}

.gp-vis-card__acesso .gp-vis-card__meta {
  gap: 6px;
}

.gp-nome-cell > div {
  min-width: 0;
}

.gp-nome-cell__avatar {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.gp-nome-cell__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8eef8;
  color: #0761ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gp-nome-cell__img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8eef8;
  border: 1px solid #e2e8f0;
  display: block;
}

.gp-nome-cell__nome {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1a1a1a;
  text-transform: uppercase;
  white-space: nowrap;
}

.gp-nome-cell__user {
  color: #4a5568;
  font-size: 0.8125rem;
  font-weight: 400;
  white-space: nowrap;
}

.gp-nome-cell__tags {
  margin-top: 6px;
}

.gp-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border: none;
}

.gp-tag--usuario {
  background: #dcfce7;
  color: #166534;
}

.gp-tag--admin {
  background: #93c5fd;
  color: #1e40af;
}

.gp-vinculo-em {
  font-size: 0.875rem;
  color: #1a1a1a;
}

.gp-vinculo-em__por {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: #64748b;
}

/* Secretaria — ícone + nome lado a lado (texto não sobe por baixo do card) */
.gp-sec-nome {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.gp-sec-nome__text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.gp-sec-preview {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  height: 88px;
  margin: 0;
  border-radius: 8px;
  color: #1a1a1a;
  flex: 0 0 110px;
  box-sizing: border-box;
}

.gp-sec-preview i {
  font-size: 1.6rem;
  line-height: 1;
}

#datatable-secretaria td[data-label="Nome"],
table.dataTable.nowrap #datatable-secretaria td[data-label="Nome"],
#datatable-secretaria.nowrap td[data-label="Nome"] {
  white-space: normal !important;
  vertical-align: middle;
}

.gp-sec-vinculos-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 28rem;
}

.gp-sec-vinculos-cell__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.gp-sec-vinculos-cell__label {
  flex-shrink: 0;
  font-size: calc(0.75rem * var(--gp-fs));
  font-weight: 600;
  color: #475569;
  margin-right: 2px;
}

.gp-sec-vinculos-cell__empty {
  font-size: calc(0.75rem * var(--gp-fs));
  color: #94a3b8;
}

.gp-regiao-bairros {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  max-width: 28rem;
  white-space: normal;
}

.gp-modal__field--row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.gp-modal__input--color {
  width: 64px;
  height: 40px;
  padding: 4px;
  cursor: pointer;
}

.gp-sec-card-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 110px;
  min-height: 88px;
  padding: 10px;
  border-radius: 8px;
  background: #c8e6c9;
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.gp-sec-card-preview i {
  font-size: 1.6rem;
}

.gp-sec-pintar-lista {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 180px;
  overflow: auto;
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.gp-sec-pintar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.4;
  color: var(--gp-app-text, #1a1a1a);
}

.gp-sec-pintar-item:hover,
.gp-sec-pintar-item.is-on {
  background: #eef3f8;
}

.gp-sec-pintar-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  flex: 0 0 18px;
}

/* Indicadores */
.gp-ind-filtros__form { display: flex; flex-direction: column; gap: 1rem; }
.gp-ind-filtros__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem 1rem;
  align-items: end;
}
.gp-ind-filtros__grid .gp-input,
.gp-ind-filtros__grid .gp-select { margin-bottom: 0; }
.gp-ind-filtros__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.gp-ind-kpis { margin: 0 0 1rem; }
.gp-ind-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.gp-ind-chart-title {
  margin: 0;
  font-size: 1.05rem;
}
.gp-ind-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 0 0 .75rem;
}
.gp-ind-chart-print {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 32px;
  padding: 0 .75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.gp-ind-chart-print:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
}
.gp-ind-chart-wrap {
  position: relative;
  min-height: 260px;
}
.gp-ind-chart-wrap--donut {
  max-width: 360px;
  margin: 0 auto;
}
.gp-ind-chart-wrap--wide { min-height: 320px; }
@media (max-width: 900px) {
  .gp-ind-charts { grid-template-columns: 1fr; }
}

/* Mapa — cadastro e visão administrativa */
.gp-mapa-local {
  margin-top: .75rem;
}
.gp-mapa-local__aviso {
  margin-bottom: .6rem;
  padding: .65rem .85rem;
  border-radius: 8px;
  background: #b91c1c;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
}
.gp-mapa-local__canvas {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #e5e7eb;
}
.gp-mapa-local__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: .65rem;
}
.gp-mapa-page .gp-mapa-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.gp-mapa-canvas {
  width: 100%;
  height: min(72vh, 720px);
  min-height: 420px;
  border-radius: 10px;
  background: #e5e7eb;
}
.gp-mapa-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.gp-mapa-legend__dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: .4rem;
  vertical-align: middle;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.12);
}
.gp-mapa-stats {
  margin-top: 1rem;
  display: grid;
  gap: .35rem;
  font-size: .9rem;
}
.gp-mapa-status { font-size: .85rem; color: #6b7280; align-self: center; }
.gp-mapa-analise {
  margin: 0;
  padding: .5rem .65rem;
  border-radius: 8px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  font-size: .9rem;
}
.gp-mapa-filtros__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gp-mapa-info { max-width: 260px; font-size: 13px; line-height: 1.35; }
.gp-mapa-info p { margin: .35rem 0; }
.gp-mapa-info__badge {
  display: inline-block;
  margin-top: .35rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.gp-mapa-info__link {
  display: inline-block;
  margin-top: .5rem;
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
}
.gp-descricao-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}
.gp-descricao-head .gp-modal__label {
  margin-bottom: 0;
}
.gp-descricao-head .js-texto-padrao-abrir,
.gp-descricao-head #btnTextoPadrao {
  flex: 0 0 auto;
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1e40af;
}
.gp-descricao-head .js-texto-padrao-abrir:hover,
.gp-descricao-head #btnTextoPadrao:hover {
  background: #bfdbfe;
  border-color: #93c5fd;
  color: #1e3a8a;
}
.gp-descricao-head .js-texto-padrao-abrir:disabled,
.gp-descricao-head .js-texto-padrao-abrir:disabled:hover {
  background: #eef2f7;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

#modalTextoPadraoEscolher .gp-page__toolbar {
  justify-content: space-between;
}

#modalTextoPadraoEscolher.is-cadastrando #textoPadraoListaHost,
#modalTextoPadraoEscolher.is-cadastrando .gp-page__toolbar-search {
  display: none;
}

#datatable-textos-padrao-modal td.gp-tp-preview {
  white-space: normal;
  max-width: 28rem;
  font-family: var(--gp-app-font);
  font-weight: 400;
  font-size: calc(16px * var(--gp-fs, 1));
  line-height: 1.5;
  color: var(--gp-app-muted, #4a5568);
}

.gp-texto-padrao-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
}

.gp-texto-padrao-rapido {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #f8fafc;
}

.gp-texto-padrao-rapido__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.gp-texto-padrao-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.gp-texto-padrao-lista li + li {
  border-top: 1px solid #eef2f7;
}
.gp-texto-padrao-lista__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.gp-texto-padrao-lista__item:hover {
  background: #f3f4f6;
}
.gp-texto-padrao-lista__titulo {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}
.gp-texto-padrao-lista__preview {
  font-size: 0.85rem;
  line-height: 1.35;
  color: #6b7280;
}
.gp-solicitante-pick__list {
  list-style: none;
  margin: .35rem 0 0;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  max-height: 220px;
  overflow: auto;
  z-index: 5;
}
.gp-solicitante-pick__list li button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: .55rem .75rem;
  cursor: pointer;
}
.gp-solicitante-pick__list li button:hover { background: #f3f4f6; }
.gp-solicitante-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.65rem;
}
.gp-solicitante-row .gp-combo-picker {
  flex: 1 1 280px;
  min-width: 0;
}
.gp-solicitante-row #btnHistSolicitante {
  flex: 0 0 auto;
  margin-top: 0;
  white-space: nowrap;
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1e40af;
}
.gp-solicitante-row #btnHistSolicitante:hover:not(:disabled) {
  background: #bfdbfe;
  border-color: #93c5fd;
  color: #1e3a8a;
}
.gp-solicitante-row #btnHistSolicitante.is-empty,
.gp-solicitante-row #btnHistSolicitante:disabled {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af !important;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
}
.gp-solicitante-row #btnHistSolicitante.is-loading:disabled {
  cursor: wait;
  pointer-events: none;
  background: #eef2ff;
  border-color: #e0e7ff;
  color: #6366f1 !important;
}
.gp-td-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.btn-hist-solicitante {
  color: #1d4ed8 !important;
  border-color: #93c5fd;
  background: #eff6ff;
}
.btn-hist-solicitante:hover:not(:disabled) {
  background: #dbeafe;
  border-color: #60a5fa;
}
.btn-hist-solicitante.is-empty,
.btn-hist-solicitante:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: #6b7280 !important;
  border-color: #e5e7eb;
  background: #f9fafb;
}
.gp-ouv-forma-modal__body--1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .85rem;
}
.gp-ouv-forma-modal__body--2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.gp-ouv-forma-modal__body--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.gp-ouv-forma-modal__dialog:has(.gp-ouv-forma-modal__body--1) {
  width: min(360px, 100%);
}
.gp-ouv-forma-modal__dialog:has(.gp-ouv-forma-modal__body--2) {
  width: min(520px, 100%);
}
.gp-ouv-forma-modal__dialog:has(.gp-ouv-forma-modal__body--3) {
  width: min(720px, 100%);
}
.gp-ouv-forma-modal__body--1 .gp-ouv-forma-opt,
.gp-ouv-forma-modal__body--2 .gp-ouv-forma-opt,
.gp-ouv-forma-modal__body--3 .gp-ouv-forma-opt {
  min-height: 118px;
  padding: 14px 12px;
  gap: 8px;
}
.gp-ouv-forma-modal__body--1 .gp-ouv-forma-opt__icon,
.gp-ouv-forma-modal__body--2 .gp-ouv-forma-opt__icon,
.gp-ouv-forma-modal__body--3 .gp-ouv-forma-opt__icon {
  font-size: 1.75rem;
}
.gp-ouv-forma-modal__body--1 .gp-ouv-forma-opt__label,
.gp-ouv-forma-modal__body--2 .gp-ouv-forma-opt__label,
.gp-ouv-forma-modal__body--3 .gp-ouv-forma-opt__label {
  font-size: 1rem;
}
.gp-ouv-forma-modal__body--1 .gp-ouv-forma-opt__desc,
.gp-ouv-forma-modal__body--2 .gp-ouv-forma-opt__desc,
.gp-ouv-forma-modal__body--3 .gp-ouv-forma-opt__desc {
  max-width: none;
  font-size: calc(16px * var(--gp-fs, 1));
}
@media (max-width: 640px) {
  .gp-ouv-forma-modal__body--1,
  .gp-ouv-forma-modal__body--2,
  .gp-ouv-forma-modal__body--3 {
    grid-template-columns: 1fr;
  }
}
button.gp-ouv-forma-opt {
  font: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 0;
}
.gp-linkish {
  background: none;
  border: 0;
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.gp-mapa-pin span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}

/* Editor rich text (Carta de Serviços) */
.gp-carta-form-page .tox-tinymce {
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
}
.gp-carta-form-page .tox .tox-toolbar,
.gp-carta-form-page .tox .tox-toolbar__primary {
  background: #f8fafc !important;
}
.gp-carta-form-page .tox-statusbar {
  display: none !important;
}

.gp-carta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.25rem;
  align-items: start;
}
.gp-carta-layout__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.gp-carta-layout__side {
  position: sticky;
  top: 1rem;
}
.gp-carta-check__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
}
.gp-carta-check__sub {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #64748b;
}
.gp-carta-check__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.gp-carta-check__item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.35;
}
.gp-carta-check__item.is-ok {
  color: #0f766e;
}
.gp-carta-check__ico {
  margin-top: 0.1rem;
}
.gp-carta-blocos-toolbar {
  margin-bottom: 1rem;
}
.gp-carta-blocos-toolbar__row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.gp-carta-blocos-toolbar__row .gp-modal__input {
  flex: 1 1 16rem;
  min-width: 12rem;
}
.gp-carta-blocos {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.gp-carta-bloco-edit {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.9rem 1rem 1rem;
  background: #fff;
}
.gp-carta-bloco-edit__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.gp-carta-bloco-edit__tipo {
  font-weight: 800;
  font-size: 0.95rem;
}
.gp-carta-bloco-edit__actions {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
}
@media (max-width: 980px) {
  .gp-carta-layout {
    grid-template-columns: 1fr;
  }
  .gp-carta-layout__side {
    position: static;
    order: -1;
  }
}

@media (max-width: 960px) {
  .gp-mapa-page .gp-mapa-layout { grid-template-columns: 1fr; }
  .gp-mapa-canvas { height: 60vh; }
}

/* Cards da tela inicial do portal */
.gp-home-cards__lead {
  margin: 0;
  flex: 1 1 220px;
  min-width: 0;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.5;
  color: var(--gp-app-muted, #4a5568);
}

.gp-portal-identidade {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem 1.75rem;
  margin-top: 4px;
}

.gp-portal-identidade .gp-modal__field {
  margin: 0;
}

.gp-portal-identidade__preview {
  flex: 1 1 280px;
  max-width: 420px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  --gp-ident-cor: #23528f;
}

.gp-portal-identidade__bar {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--gp-ident-cor);
}

.gp-portal-identidade__bar--brand {
  height: 44px;
  font-size: 0.85rem;
}

.gp-portal-identidade__body {
  height: 72px;
  background: #f4f6f9;
}

.gp-home-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  align-items: start;
  margin-top: 1rem;
}

.gp-home-cards__grupos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.gp-home-cards__grupo-title {
  margin: 0 0 10px;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 700;
  line-height: 1.4;
  color: var(--gp-app-text, #1a1a1a);
}

.gp-home-cards__home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gp-home-cards__hint {
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.5;
  color: var(--gp-app-muted, #4a5568);
}

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

.gp-home-cards__tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 140px;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.gp-home-cards__tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.gp-home-cards__tile.is-selected {
  border-color: var(--gp-app-primary);
  box-shadow: 0 0 0 3px rgba(35, 82, 143, 0.22);
}

.gp-home-cards__tile.is-off {
  opacity: 0.45;
}

.gp-home-cards__tile--consulta {
  min-height: 88px;
  flex-direction: row;
  align-items: center;
  max-width: 280px;
  margin-left: auto;
}

.gp-home-cards__tile-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.gp-home-cards__tile-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gp-home-cards__tile-nome {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
}

.gp-home-cards__tile-desc {
  font-family: var(--gp-app-font);
  font-size: calc(15px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.88;
}

.gp-home-cards__insp {
  position: sticky;
  top: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.gp-home-cards__insp-empty,
.gp-home-cards__insp-destino {
  margin: 0 0 12px;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.5;
  color: var(--gp-app-muted, #4a5568);
}

.gp-home-cards__insp-destino {
  font-weight: 600;
  color: var(--gp-app-text, #1a1a1a);
}

.gp-home-cards__insp-ordem {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.gp-home-cards__insp-cor-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.gp-home-cards__insp-cor-acoes .gp-modal__btn {
  padding: 6px 10px;
  font-size: 0.9rem;
}

.gp-home-cards__insp-cor-acoes .gp-modal__btn.is-active {
  border-color: var(--gp-app-primary, #23528f);
  color: var(--gp-app-primary, #23528f);
  background: #eef3f8;
}

.gp-home-cards__insp-hint {
  margin: 0 0 12px;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.5;
  color: var(--gp-app-muted, #4a5568);
}

.gp-home-cards.is-pintando .gp-home-cards__tile {
  cursor: copy;
}

.gp-cor-clip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.gp-cor-clip .gp-modal__btn {
  padding: 6px 10px;
}

.gp-cor-clip__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.5;
  color: var(--gp-app-muted, #4a5568);
}

.gp-cor-clip__swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  flex: 0 0 18px;
}

@media (max-width: 960px) {
  .gp-home-cards {
    grid-template-columns: 1fr;
  }
  .gp-home-cards__insp {
    position: static;
  }
}

/* Gerenciador de Relatórios */
.gp-relat__busca {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0 14px;
  height: 44px;
  border: 1px solid var(--gp-app-border);
  border-radius: 10px;
  background: #fff;
}

.gp-relat__busca i { color: #94a3b8; }

.gp-relat__busca-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: none;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  color: var(--gp-app-text);
  background: transparent;
}

.gp-relat__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f3f5f8;
}

.gp-relat__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gp-relat__chips-label {
  font-family: var(--gp-app-font);
  font-size: calc(12px * var(--gp-fs, 1));
  font-weight: 400;
  color: var(--gp-app-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gp-relat__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: var(--gp-app-text);
  font-family: var(--gp-app-font);
  font-size: calc(14px * var(--gp-fs, 1));
  font-weight: 400;
  cursor: pointer;
}

.gp-relat__chip.is-active {
  background: #e8f0ff;
  border-color: #c9dbff;
  color: var(--gp-app-primary);
}

.gp-relat__lista {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gp-relat__item {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border-bottom: 1px solid #eef2f7;
}

.gp-relat__fav {
  width: 40px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.gp-relat__fav.is-on { color: #f5b301; }

.gp-relat__fav:not(.is-on) { color: #cbd5e1; }

.gp-relat__abrir {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 8px 12px 4px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.gp-relat__abrir:hover { background: #f8fafc; }

.gp-relat__icone {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: var(--gp-app-muted, #4a5568);
}

.gp-relat__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gp-relat__nome {
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  color: var(--gp-app-text, #1a1a1a);
}

.gp-relat__abrir:hover .gp-relat__nome,
.gp-relat__abrir:hover .gp-relat__icone {
  color: var(--gp-app-primary, #23528f);
}

.gp-relat__desc {
  font-family: var(--gp-app-font);
  font-size: calc(14px * var(--gp-fs, 1));
  font-weight: 400;
  color: var(--gp-app-muted);
}

.gp-relat__tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f5f8;
  color: #64748b;
  font-size: calc(12px * var(--gp-fs, 1));
}

.gp-relat__vazio {
  margin: 24px 0 8px;
  text-align: center;
  color: var(--gp-app-muted);
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
}

.gp-relat-catalogo {
  max-width: 760px;
  width: min(760px, calc(100vw - 32px));
}

.gp-relat-catalogo .gp-relat__busca,
.gp-relat-modal .gp-relat__busca {
  margin-top: 0;
}

.gp-relat-modal .gp-modal__header {
  align-items: flex-start;
  padding: 16px 16px 12px;
}

.gp-relat-modal .gp-modal__title {
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  color: var(--gp-app-text, #1a1a1a);
  line-height: 1.5;
}

.gp-relat-modal .gp-modal__subtitle {
  margin-top: 2px;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.5;
  color: var(--gp-app-muted, #4a5568);
}

.gp-relat-passo[hidden],
.gp-relat-filtros[hidden] {
  display: none !important;
}

.gp-relat-passo {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.gp-relat-modal {
  max-width: 640px;
  width: min(640px, calc(100vw - 32px));
}

.gp-relat-modal.is-exec {
  width: min(960px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: min(860px, calc(100vh - 32px));
}

.gp-relat-modal.is-exec .gp-modal__header {
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
}

.gp-relat-modal__form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.gp-relat-modal.is-exec .gp-relat-modal__form,
.gp-relat-modal.is-exec .gp-relat-passo {
  overflow: hidden;
}

.gp-relat-modal__form[hidden] {
  display: none !important;
}

.gp-relat-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: 560px;
}

.gp-relat-modal__grid > .gp-modal__field {
  margin-bottom: 0;
}

.gp-relat-modal__grid .gp-modal__label {
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 6px;
}

.gp-relat-grupo {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.05);
}

.gp-relat-modal__colunas-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 12px;
}

.gp-relat-modal__colunas-text {
  min-width: 0;
  flex: 1 1 220px;
}

.gp-relat-modal__colunas-label {
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 700;
  line-height: 1.3;
  color: var(--gp-app-text, #1a1a1a);
}

.gp-relat-modal__colunas-hint {
  margin: 4px 0 0;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.5;
  color: var(--gp-app-muted, #4a5568);
}

.gp-relat-modal__atalhos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gp-relat-modal__atalhos--filtros {
  margin-top: 10px;
  max-width: 560px;
}

.gp-relat-atalho {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.5;
  color: var(--gp-app-primary, #23528f);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gp-relat-contagem {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  text-align: center;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1.5;
  color: var(--gp-app-muted, #4a5568);
}

.gp-relat-contagem.is-alerta {
  color: #9b2c2c;
}

.gp-relat-colunas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #f8fafc;
}

.gp-relat-coluna {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #fff;
  color: #94a3b8;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 400;
  line-height: 1;
  cursor: grab;
}

.gp-relat-coluna i {
  font-size: 11px;
  opacity: 0.7;
}

.gp-relat-coluna.is-on {
  background: #eef4ff;
  border-color: #9db7e3;
  color: var(--gp-app-primary, #23528f);
}

.gp-relat-coluna.is-on i {
  opacity: 1;
}

.gp-relat-coluna.is-dragging { opacity: 0.45; }

.gp-relat-formatos {
  margin-top: 18px;
  min-width: 0;
}

.gp-relat-formatos > .gp-relat-modal__colunas-label {
  margin: 0 0 12px;
}

.gp-relat-formatos__opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #f8fafc;
}

.gp-relat-formato {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.gp-relat-formato input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gp-relat-formato span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #fff;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--gp-app-muted, #4a5568);
}

.gp-relat-formato:hover span {
  border-color: #9db7e3;
  color: var(--gp-app-primary, #23528f);
}

.gp-relat-formato input:checked + span {
  background: var(--gp-app-primary, #23528f);
  border-color: var(--gp-app-primary, #23528f);
  color: #fff;
}

.gp-relat-formato input:focus-visible + span {
  outline: 2px solid var(--gp-app-primary, #23528f);
  outline-offset: 2px;
}

.gp-relat-modal__footer {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.gp-relat-modal__acoes {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.gp-relat-modal__exec,
.gp-relat-modal__voltar {
  min-width: 108px;
  width: 108px;
  box-sizing: border-box;
}

.gp-relat-exec {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
  gap: 16px;
  padding: 12px;
  width: max-content;
  max-width: 100%;
  background: #eef2f6;
}

.gp-relat-exec__main {
  display: flex;
  flex-direction: column;
  flex: 0 1 640px;
  width: min(640px, 100%);
  max-width: 640px;
  min-width: 0;
  min-height: 0;
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  overflow: hidden;
}

.gp-relat-modal.is-exec .gp-relat-exec__main > .gp-modal__body {
  max-height: none;
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
}

.gp-relat-execucoes {
  flex: 0 0 300px;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px 12px 10px;
}

.gp-relat-execucoes__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 4px 0 6px;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.gp-relat-execucoes__toggle:hover .gp-relat-execucoes__titulo,
.gp-relat-execucoes__toggle:hover i {
  color: var(--gp-app-primary, #23528f);
}

.gp-relat-execucoes__toggle i {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--gp-app-muted, #4a5568);
  transition: transform .15s ease;
}

.gp-relat-execucoes__toggle:focus-visible {
  outline: 2px solid var(--gp-app-primary, #23528f);
  outline-offset: 2px;
  border-radius: 4px;
}

.gp-relat-execucoes__titulo {
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 600;
  line-height: 1.3;
  color: var(--gp-app-text, #1a1a1a);
}

.gp-relat-execucoes__painel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.gp-relat-execucoes__hint {
  margin: 0 0 8px;
  font-family: var(--gp-app-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--gp-app-muted, #4a5568);
}

.gp-relat-execucoes__lista {
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gp-relat-execucoes.is-colapsado {
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  padding: 8px 4px;
}

.gp-relat-execucoes.is-colapsado .gp-relat-execucoes__toggle {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  height: 100%;
  padding: 4px 0;
}

.gp-relat-execucoes.is-colapsado .gp-relat-execucoes__titulo {
  writing-mode: vertical-rl;
  text-orientation: sideways;
  transform: none;
  white-space: nowrap;
  font-size: calc(16px * var(--gp-fs, 1));
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

@supports (writing-mode: sideways-lr) {
  .gp-relat-execucoes.is-colapsado .gp-relat-execucoes__titulo {
    writing-mode: sideways-lr;
    text-orientation: mixed;
  }
}

.gp-relat-execucoes.is-colapsado .gp-relat-execucoes__toggle i {
  transform: rotate(180deg);
}

.gp-relat-execucoes.is-colapsado .gp-relat-execucoes__painel {
  display: none;
}

.gp-relat-execucao {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  min-width: 0;
}

.gp-relat-execucao time,
.gp-relat-execucao__user,
.gp-relat-execucao__fmt {
  font-family: var(--gp-app-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--gp-app-text, #1a1a1a);
  white-space: nowrap;
}

.gp-relat-execucao time {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.gp-relat-execucao__user {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--gp-app-muted, #4a5568);
}

.gp-relat-execucao__fmt {
  flex: 0 0 auto;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gp-app-primary, #23528f);
  background: #e8f0ff;
  border-radius: 999px;
  padding: 1px 8px;
}

.gp-relat-execucao__resumo {
  flex: 1 0 100%;
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--gp-app-muted, #4a5568);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.gp-relat-execucao__acoes {
  display: flex;
  flex: 1 0 100%;
  gap: 6px;
}

.gp-relat-execucao__acoes > .gp-relat-execucao__btn {
  flex: 1 1 auto;
  min-width: max-content;
  padding: 0 10px;
}

.gp-relat-execucao__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: var(--gp-app-text, #1a1a1a);
  font-family: var(--gp-app-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.gp-relat-execucao__btn--ghost {
  background: #fff;
  color: var(--gp-app-text, #1a1a1a);
}

.gp-relat-execucao__btn:hover:not(:disabled) {
  background: #e8f0ff;
  border-color: var(--gp-app-primary, #23528f);
  color: var(--gp-app-primary, #23528f);
}

.gp-relat-execucao__btn:disabled {
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: default;
}

.gp-relat-execucoes__vazio {
  margin: 0;
  font-family: var(--gp-app-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--gp-app-muted, #4a5568);
}

@media (max-width: 860px) {
  .gp-relat-modal__footer { flex-direction: column; align-items: stretch; }
  .gp-relat-modal__acoes {
    margin-left: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .gp-relat-exec {
    flex-direction: column;
    width: 100%;
  }
  .gp-relat-exec__main {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }
  .gp-relat-execucoes {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: 240px;
  }
  .gp-relat-execucoes.is-colapsado {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: none;
  }
  .gp-relat-execucoes.is-colapsado .gp-relat-execucoes__toggle {
    flex-direction: row;
    align-items: center;
    height: auto;
    gap: 8px;
  }
  .gp-relat-execucoes.is-colapsado .gp-relat-execucoes__titulo {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    transform: none;
    font-size: calc(16px * var(--gp-fs, 1));
  }
}


