:root {

  color-scheme: light;

  --gt-navy: #17324d;
  --gt-blue: #2563a5;
  --gt-cyan: #2e86ab;
  --gt-success: #2e9e68;
  --gt-warning: #d99a2b;
  --gt-danger: #cf4a4a;
  --gt-bg: #f5f7f9;
  --gt-soft: #e8f1f7;
  --gt-surface: #ffffff;
  --gt-text: #17222d;
  --gt-muted: #617487;
  --gt-border: #dce5ec;
  --gt-shadow: 0 16px 40px rgba(23, 50, 77, .09);
  --rp-green: var(--gt-blue);
  --rp-green-2: var(--gt-navy);
  --rp-gold: var(--gt-cyan);
  --rp-bg: var(--gt-bg);
  --rp-soft: var(--gt-soft);
  --rp-card: var(--gt-surface);
  --rp-text: var(--gt-text);
  --rp-muted: var(--gt-muted);
  --rp-border: var(--gt-border);
  --rp-danger: var(--gt-danger);
  --rp-shadow: var(--gt-shadow);

}



* { box-sizing: border-box; }



body {

  margin: 0;

  background: var(--rp-bg);

  color: var(--rp-text);

  font-family: Montserrat, Inter, "Segoe UI", Tahoma, sans-serif;

}



a { color: inherit; }

.inline-link { color: var(--rp-green-2); font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }

button, input, select, textarea { font: inherit; }

button { border: 0; cursor: pointer; }



.app-shell {

  min-height: 100vh;

  display: grid;

  grid-template-columns: 280px minmax(0, 1fr);

}



.app-shell.sidebar-collapsed { grid-template-columns: 78px minmax(0, 1fr); }



.sidebar {

  position: sticky;

  top: 0;

  height: 100vh;

  padding: 18px;

  display: flex;

  flex-direction: column;

  gap: 18px;

  overflow: hidden;

  background: #fff;

  border-right: 1px solid var(--rp-border);

  box-shadow: 10px 0 28px rgba(15, 36, 33, .04);

}



.sidebar-head {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

}



.brand-lockup {

  display: flex;

  align-items: center;

  gap: 12px;

  min-width: 0;

  color: inherit;

  text-decoration: none;

}



.brand-mark {

  width: 42px;

  height: 42px;

  border-radius: 8px;

  object-fit: contain;

  background: var(--rp-soft);

  flex: 0 0 auto;

}



.brand-copy { display: grid; gap: 2px; min-width: 0; }

.brand-copy small, .eyebrow {

  margin: 0;

  color: var(--rp-green-2);

  font-size: .72rem;

  font-weight: 900;

  letter-spacing: .08em;

  text-transform: uppercase;

}

.brand-copy strong { font-size: 1.12rem; }



.menu-toggle {

  width: 42px;

  height: 42px;

  flex: 0 0 auto;

  display: inline-grid;

  place-items: center;

  gap: 3px;

  padding: 10px;

  border: 1px solid var(--rp-border);

  border-radius: 8px;

  color: var(--rp-green-2);

  background: #fff;

}

.menu-toggle span {

  width: 18px;

  height: 2px;

  display: block;

  border-radius: 999px;

  background: currentColor;

}



.nav {

  display: grid;

  gap: 6px;

  min-height: 0;

  overflow-y: auto;

  padding-right: 4px;

  scrollbar-width: thin;

  scrollbar-color: var(--rp-green) transparent;

}

.nav::-webkit-scrollbar { width: 8px; }

.nav::-webkit-scrollbar-thumb { background: var(--rp-green); border-radius: 999px; }

.nav a, .nav-group-title, .logout-link {

  min-height: 42px;

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 0 12px;

  border-radius: 8px;

  color: var(--rp-muted);

  font-weight: 900;

  text-decoration: none;

  white-space: nowrap;

  background: transparent;

}

.nav a:hover, .nav a.active, .nav-group.open .nav-group-title, .logout-link:hover {

  color: var(--rp-green-2);

  background: var(--rp-soft);

}

.nav-group { display: grid; gap: 4px; }

.nav-group-title {

  width: 100%;

  cursor: pointer;

}

.nav-submenu {

  display: none;

  gap: 4px;

  padding-left: 20px;

}

.nav-group.open .nav-submenu { display: grid; }

.nav-submenu a {

  min-height: 36px;

  font-size: .92rem;

}

.nav-caret {

  margin-left: auto;

  color: var(--rp-muted);

  font-size: .9rem;

  transition: transform .18s ease;

}

.nav-group.open .nav-caret { transform: rotate(180deg); }

.nav-ico {

  width: 22px;

  min-width: 22px;

  display: inline-grid;

  place-items: center;

  color: var(--rp-green-2);

  font-size: 1.05rem;

}

.logout-link { margin-top: auto; }



.app-shell.sidebar-collapsed .sidebar {

  padding: 18px;

  align-items: center;

}

.app-shell.sidebar-collapsed .brand-copy,

.app-shell.sidebar-collapsed .nav span:not(.nav-ico),

.app-shell.sidebar-collapsed .nav-submenu,

.app-shell.sidebar-collapsed .nav-caret,

.app-shell.sidebar-collapsed .logout-link span:not(.nav-ico) {

  display: none;

}

.app-shell.sidebar-collapsed .sidebar-head {

  flex-direction: column;

}

.app-shell.sidebar-collapsed .nav a,

.app-shell.sidebar-collapsed .nav-group-title,

.app-shell.sidebar-collapsed .logout-link {

  width: 42px;

  padding: 0;

  justify-content: center;

}



.main { min-width: 0; }



.topbar {

  position: sticky;

  top: 0;

  z-index: 10;

  min-height: 76px;

  margin: 18px 28px 0;

  padding: 16px 20px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  background: rgba(255, 255, 255, .9);

  border: 1px solid var(--rp-border);

  border-radius: 8px;

  box-shadow: var(--rp-shadow);

  backdrop-filter: blur(14px);

}

.topbar h2 { margin: 2px 0 0; font-size: 1.35rem; color: var(--rp-text); }

.userbar { color: var(--rp-muted); font-weight: 700; white-space: nowrap; }

.userbar a { color: var(--rp-green); }



.layout { min-height: calc(100vh - 64px); }



.nav-btn, .btn {

  border-radius: 8px;

  padding: 10px 12px;

  font-weight: 800;

  text-decoration: none;

}



.nav-btn {

  display: block;

  width: 100%;

  margin-bottom: 6px;

  color: var(--rp-muted);

  background: transparent;

}



.nav-btn:hover, .nav-btn.active { background: var(--rp-soft); color: var(--rp-green); }



.content {

  flex: 1;

  width: 100%;

  max-width: 1320px;

  margin: 0 auto;

  padding: 28px;

  display: grid;

  gap: 18px;

}



.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.kpi, .card { background: var(--rp-card); border: 1px solid var(--rp-border); border-radius: 8px; box-shadow: var(--rp-shadow); }

.kpi { padding: 18px; }

.kpi b { display: block; margin-bottom: 6px; font-size: 2rem; color: var(--rp-green); }

.card { padding: 18px; }



.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }

.section-head h3 { margin: 0; font-size: 1.15rem; }

.section-head p { margin: 4px 0 0; color: var(--rp-muted); }



.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }

.form-grid.compact { grid-template-columns: minmax(260px, 420px) auto; }

.field { display: grid; gap: 7px; min-width: 0; }

.field label { font-size: .86rem; font-weight: 800; color: var(--rp-text); }

.field small { color: var(--rp-muted); font-size: .78rem; line-height: 1.35; }

.field input, .field select, .field textarea, input, select, textarea {

  width: 100%;

  min-height: 44px;

  padding: 11px 12px;

  border: 1px solid var(--rp-border);

  border-radius: 8px;

  background: #fff;

  color: var(--rp-text);

  outline: none;

}



.field textarea { min-height: 84px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus, input:focus, select:focus, textarea:focus {

  border-color: var(--rp-green-2);

  box-shadow: 0 0 0 3px rgba(0, 143, 77, .12);

}



.field.span-2 { grid-column: span 2; }

.field.span-4 { grid-column: 1 / -1; }



.btn {

  min-height: 42px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  color: #fff;

  background: var(--rp-green);

  white-space: nowrap;

}



.btn.alt { background: var(--rp-gold); }

.btn.danger { background: var(--rp-danger); }

.btn.ghost {

  color: var(--rp-green);

  background: #fff;

  border: 1px solid var(--rp-border);

}

.btn.ghost:hover { background: var(--rp-soft); }



.actions { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: nowrap; }

.form-actions { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }

.modal-actions {

  grid-column: 1 / -1;

  display: flex;

  align-items: center;

  justify-content: flex-end;

  gap: 10px;

  padding-top: 10px;

  border-top: 1px solid var(--rp-border);

}

.modal-actions .btn {

  width: auto;

  min-width: 160px;

}

.stack { display: grid; gap: 12px; }



.check-panel { grid-column: 1 / -1; padding: 12px; border: 1px solid var(--rp-border); border-radius: 8px; background: #fbfdfc; }

.check-title { display: block; margin-bottom: 8px; font-size: .86rem; font-weight: 800; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }

.check-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--rp-border); border-radius: 8px; background: #fff; }

.check-item input { width: auto; min-height: 0; }

.notice {

  margin-bottom: 16px;

  padding: 12px 14px;

  border: 1px solid #dcefe5;

  border-radius: 8px;

  color: #315348;

  background: #f4fbf7;

  line-height: 1.45;

}

.notice strong { color: var(--rp-green-2); }

.notice span { display: block; margin-top: 4px; color: var(--rp-muted); }



.entity-list { display: grid; gap: 0; border-top: 1px solid var(--rp-border); }

.entity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 34px; padding: 4px 0; border-bottom: 1px solid var(--rp-border); }

.entity-row:last-child { border-bottom: 0; }

.record-title strong { display: block; line-height: 1.1; font-size: .95rem; }

.record-title small { color: var(--rp-muted); display: block; margin-top: 2px; }

.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-height: 28px; }

.row-actions form { display: inline-flex; align-items: center; margin: 0; }

.row-actions details { display: inline-flex; align-items: center; }

.icon-btn {

  width: 26px;

  height: 26px;

  padding: 0;

  display: inline-grid;

  place-items: center;

  border-radius: 8px;

  border: 1px solid var(--rp-border);

  color: var(--rp-green);

  background: #fff;

  font-size: .82rem;

  line-height: 1;

  text-decoration: none;

}

.icon-btn:hover { background: var(--rp-soft); }

.icon-btn.approve { color: var(--rp-green-2); }

.icon-btn.approve:hover { background: var(--rp-soft); }

.icon-btn.danger { color: var(--rp-danger); background: #fff; }

.icon-btn.danger:hover { background: #fff1f1; }



.table-wrap { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }

.table th { padding: 10px; background: var(--rp-soft); color: var(--rp-muted); font-size: .76rem; text-align: left; text-transform: uppercase; }

.table td { padding: 10px; border-bottom: 1px solid #eef2ef; vertical-align: top; }

.user-create-panel { margin:0 0 18px; }
.user-create-panel > summary { display:inline-flex; align-items:center; gap:7px; min-height:42px; }
.user-create-form { margin-top:14px; padding:18px; border:1px solid var(--rp-border); border-radius:14px; background:#fbfdfc; }
.user-create-submit { align-self:end; }
.user-list-toolbar { display:grid; grid-template-columns:minmax(220px,1.6fr) repeat(2,minmax(150px,1fr)) minmax(130px,auto) auto; align-items:end; gap:12px; margin:10px 0 8px; padding:14px; border:1px solid var(--rp-border); border-radius:14px; background:#f8fbfa; }
.user-list-toolbar .field { margin:0; }
.user-filter-clear { min-height:42px; white-space:nowrap; }
.user-list-meta { display:flex; justify-content:space-between; gap:12px; margin:8px 2px 10px; color:var(--rp-muted); font-size:.82rem; }
.user-table-wrap { border:1px solid var(--rp-border); border-radius:12px; }
.user-table { min-width:900px; }
.user-table td:last-child { width:70px; text-align:center; }
.user-table td .edit-pop { display:inline-flex; }
.user-empty-state { padding:18px; border:1px dashed var(--rp-border); border-radius:12px; color:var(--rp-muted); text-align:center; }
.user-empty-state[hidden] { display:none; }

.pill {

  display: inline-flex;

  align-items: center;

  min-height: 28px;

  padding: 5px 9px;

  border-radius: 999px;

  color: var(--rp-green);

  background: var(--rp-soft);

  font-size: .76rem;

  font-weight: 900;

  white-space: nowrap;

}



details { padding: 0; margin: 0; border: 0; background: transparent; }

summary { cursor: pointer; list-style: none; }

summary::-webkit-details-marker { display: none; }

.edit-pop { position: relative; }

.edit-pop[open] { z-index: 10; }

.edit-pop[open] > summary { background: var(--rp-soft); }

.edit-pop > form {

  position: absolute;

  right: 0;

  top: 42px;

  width: min(860px, calc(100vw - 48px));

  padding: 16px;

  border: 1px solid var(--rp-border);

  border-radius: 8px;

  background: #fff;

  box-shadow: 0 18px 38px rgba(15, 36, 33, .16);

}

.edit-pop.wide > form {

  position: fixed;

  left: 50%;

  top: 50%;

  right: auto;

  width: min(1120px, calc(100vw - 48px));

  max-height: min(82vh, 760px);

  transform: translate(-50%, -50%);

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 16px;

  padding: 22px;

  overflow: auto;

  align-items: start;

  z-index: 80;

}

.edit-pop.wide > form.document-edit-form {

  width: min(1180px, calc(100vw - 56px));

  max-height: min(86vh, 820px);

  grid-template-columns: repeat(4, minmax(190px, 1fr));

  grid-auto-flow: row;

  align-items: start;

  padding: 24px;

  background: #fff;

}

.edit-pop.wide[open]::after {

  content: "";

  position: fixed;

  inset: 0;

  z-index: 70;

  background: rgba(15, 36, 33, .28);

  backdrop-filter: blur(4px);

}

.edit-pop.wide[open] > summary,

.edit-pop.wide[open] > form {

  z-index: 90;

}

.edit-pop.wide > form::before {

  content: "Editar documento";

  grid-column: 1 / -1;

  display: block;

  padding-bottom: 12px;

  border-bottom: 1px solid var(--rp-border);

  color: var(--rp-green-2);

  font-size: 1rem;

  font-weight: 900;

}

.document-edit-form .field.span-2,

.document-edit-form .check-panel {

  grid-column: span 2;

}

.document-edit-form textarea {

  min-height: 110px;

}

.document-edit-form .check-panel {

  max-height: 260px;

  overflow: auto;

}

.document-edit-form > .check-item {

  align-self: end;

  min-height: 44px;

}

.document-edit-form > .btn {

  grid-column: 1 / -1;

  width: fit-content;

  min-width: 210px;

  justify-self: end;

  margin-top: 4px;

}

.edit-pop.wide .check-grid {

  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));

}

.edit-pop.wide .btn {

  align-self: end;

  justify-self: start;

}

.download-pop > form { width: min(560px, calc(100vw - 48px)); }



.modal-pop[open] {

  z-index: 100;

}

.modal-pop[open]::after {

  content: "";

  position: fixed;

  inset: 0;

  z-index: 80;

  background: rgba(15, 36, 33, .32);

  backdrop-filter: blur(5px);

}

.modal-pop[open] > summary {

  position: relative;

  z-index: 110;

}

.modal-pop > form {

  position: fixed !important;

  left: 50% !important;

  top: 50% !important;

  right: auto !important;

  transform: translate(-50%, -50%) !important;

  z-index: 120 !important;

  display: grid !important;

  align-items: start !important;

  overflow: auto !important;

  border-radius: 12px !important;

  background: #fff !important;

}

.version-update-form {

  width: min(760px, calc(100vw - 48px)) !important;

  max-height: min(84vh, 620px);

  grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;

  gap: 16px !important;

  padding: 22px !important;

}

.version-update-form::before {

  content: "Atualizar versão";

  grid-column: 1 / -1;

  display: block;

  padding-bottom: 12px;

  border-bottom: 1px solid var(--rp-border);

  color: var(--rp-green-2);

  font-size: 1rem;

  font-weight: 900;

}

.version-update-form .field:first-of-type,

.version-update-form .modal-actions {

  grid-column: 1 / -1;

}

.modal-pop > form.document-edit-form {

  width: min(1180px, calc(100vw - 56px)) !important;

  max-height: min(86vh, 820px);

  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

  gap: 16px !important;

  padding: 24px !important;

}

.modal-pop > form.document-edit-form .field {

  min-width: 0;

}

.modal-pop > form.document-edit-form .field.span-2,

.modal-pop > form.document-edit-form .check-panel {

  grid-column: span 2 !important;

}

.modal-pop > form.document-edit-form > .modal-actions {

  grid-column: 1 / -1 !important;

}



.search-form { margin-top: 4px; }

.doc-list .entity-row { min-height: 48px; padding: 8px 0; }

.icon-btn.view { color: var(--rp-green-2); }



.msg { max-width: 1320px; padding: 10px 12px; border: 1px solid #f0deaf; border-radius: 8px; background: #fff8e8; color: #664c13; }



.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px); align-items: center; gap: clamp(36px, 7vw, 110px); padding: clamp(28px, 6vw, 96px); color: #fff; background: linear-gradient(105deg, rgba(9, 29, 47, .82), rgba(13, 47, 73, .58)), url("../img/gedtrack-document-control.png") center / cover no-repeat; }
.login-intro { display: flex; min-height: min(650px, 78vh); max-width: 760px; flex-direction: column; justify-content: space-between; }
.login-brand { display: block; width: min(350px, 76vw); height: auto; max-height:58px; object-fit:contain; object-position:left center; }
.login-intro-copy { max-width: 660px; padding: 64px 0 38px; }
.login-eyebrow { color: #8bd9e6; font-size: .76rem; font-weight: 800; letter-spacing: .16em; }
.login-intro h1 { max-width: 650px; margin: 14px 0; color: white; font: 800 clamp(2rem, 4vw, 4rem)/1.08 Manrope, Inter, sans-serif; letter-spacing: -.04em; }
.login-intro-copy > p:last-child { max-width: 38rem; color: #d9e7f1; font-size: 1.08rem; }
.login-manufacturer { color: #bdd0dd; font-size: .84rem; font-weight: 700; }

.login-card { width: 100%; padding: clamp(26px, 4vw, 42px); border: 1px solid rgba(255,255,255,.75); border-radius: 20px; background: #fff; box-shadow: 0 28px 72px rgba(5, 21, 35, .26); }

.login-bar { height: 4px; margin-bottom: 24px; border-radius: 999px; background: linear-gradient(90deg, var(--gt-blue), var(--gt-cyan), var(--gt-success)); }
.login-card h2 { margin: 0 0 6px; color: var(--gt-navy); font: 800 1.7rem/1.2 Manrope, Inter, sans-serif; }
.login-card .note { display: block; margin-top: 12px; line-height: 1.5; }
.login-card .field label { color: var(--gt-text); font-weight: 700; }
.login-card input { min-height: 48px; border-radius: 10px; }
.login-card input[type="email"],.login-card input[type="password"] { height:48px;box-sizing:border-box;padding:12px 16px;font-size:16px;line-height:1.5; }
.login-card .brshub-central-access input { width:.8rem;height:.8rem;min-height:.8rem;padding:0; }
.login-card button { min-height: 48px; border-radius: 10px; background: var(--gt-blue); }

.login-card .field { margin-top: 12px; }

.login-card button { width: 100%; margin-top: 14px; }

.note { color: var(--rp-muted); }

@media (max-width: 820px) {
  .login-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px; }
  .login-intro { min-height: 0; gap: 24px; }
  .login-intro-copy { padding: 12px 0 0; }
  .login-intro h1 { max-width: 620px; font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .login-manufacturer { display: none; }
  .login-card { max-width: 520px; justify-self: center; }
}

@media (max-width: 480px) {
  .login-wrap { gap: 20px; padding: 18px; }
  .login-brand { width: min(300px, 82vw); }
  .login-intro-copy > p:last-child { font-size: .96rem; }
  .login-card { padding: 24px 20px; }
}



.protected-view {

  min-height: 100vh;

  background: #eef4f0;

  user-select: none;

  -webkit-user-select: none;

}

.protected-shell {

  width: min(1280px, 100%);

  margin: 0 auto;

  padding: 18px;

}

.protected-toolbar {

  position: sticky;

  top: 0;

  z-index: 2;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  padding: 12px 14px;

  border: 1px solid var(--rp-border);

  border-radius: 8px;

  background: rgba(255, 255, 255, .94);

  box-shadow: var(--rp-shadow);

}

.protected-toolbar span {

  color: var(--rp-muted);

  font-size: .84rem;

  font-weight: 800;

}

.protected-image {

  width: 100%;

  height: auto;

  display: block;

  margin-top: 14px;

  border: 1px solid var(--rp-border);

  border-radius: 8px;

  background: #fff;

  box-shadow: var(--rp-shadow);

  pointer-events: none;

}

.protected-canvas {

  width: 100%;

  height: auto;

  display: block;

  margin-top: 14px;

  border: 1px solid var(--rp-border);

  border-radius: 8px;

  background: #fff;

  box-shadow: var(--rp-shadow);

  pointer-events: none;

}

.pdf-pages {

  display: grid;

  gap: 16px;

  margin-top: 14px;

}

.pdf-canvas {

  max-width: 100%;

  margin: 0 auto;

}

.protected-warning {

  margin-top: 14px;

  padding: 16px;

  border: 1px solid #f0deaf;

  border-radius: 8px;

  color: #664c13;

  background: #fff8e8;

  font-weight: 800;

  line-height: 1.45;

}

.privacy-mask {

  position: fixed;

  inset: 0;

  z-index: 9999;

  display: none;

  place-items: center;

  padding: 24px;

  color: #fff;

  background: rgba(0, 45, 26, .96);

  text-align: center;

  font-weight: 900;

}

.privacy-mask.show {

  display: grid;

}

.privacy-mask small {

  display: block;

  max-width: 560px;

  margin-top: 8px;

  color: rgba(255, 255, 255, .78);

  font-size: .86rem;

}

.privacy-mask button {

  margin-top: 16px;

  padding: 10px 14px;

  border-radius: 8px;

  color: var(--rp-green-2);

  background: #fff;

  font-weight: 900;

}



@media (max-width: 1180px) {

  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .field.span-2, .field.span-4 { grid-column: 1 / -1; }

  .edit-pop.wide > form.document-edit-form {

    grid-template-columns: repeat(2, minmax(220px, 1fr));

  }

  .document-edit-form .field.span-2,

  .document-edit-form .check-panel {

    grid-column: 1 / -1;

  }

}
@media (max-width: 1080px) {
  .user-list-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .user-search-field { grid-column:1/-1; }
  .user-filter-clear { width:auto; }
}
@media (max-width: 760px) {
  .user-list-meta { flex-direction:column; }
  .table-wrap.user-table-wrap { overflow-x:auto; }
  .user-table.table,.user-table.table thead,.user-table.table tbody { display:table; width:max-content; min-width:900px; }
  .user-table.table thead { display:table-header-group; }
  .user-table.table tr { display:table-row; padding:0; margin:0; border:0; border-radius:0; }
  .user-table.table th,.user-table.table td { display:table-cell; width:auto; min-width:110px; }
  .user-table.table th { white-space:nowrap; }
  .user-table.table td::before { content:none; }
  .user-table.table td:last-child { min-width:72px; }
}



@media (max-width: 1024px) {

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}



@media (max-width: 780px) {

  .app-shell, .app-shell.sidebar-collapsed { display: block; }

  .sidebar {

    position: fixed;

    left: 14px;

    top: 14px;

    right: auto;

    bottom: auto;

    z-index: 30;

    width: 64px;

    height: 64px;

    max-height: 64px;

    padding: 10px;

    border: 0;

    border-radius: 18px;

    box-shadow: 0 16px 34px rgba(0, 166, 81, .24);

    transition: width .2s ease, max-height .2s ease;

  }

  .app-shell.mobile-menu-open .sidebar {

    width: min(330px, calc(100vw - 28px));

    height: auto;

    min-height: 64px;

    max-height: min(82vh, 640px);

    border: 1px solid rgba(255, 255, 255, .72);

    overflow: auto;

  }

  .sidebar .brand-lockup { display: none; }

  .app-shell.mobile-menu-open .sidebar .brand-lockup {

    display: flex;

  }

  .sidebar-head { justify-content: center; }

  .app-shell.mobile-menu-open .sidebar-head {

    justify-content: space-between;

  }

  .menu-toggle {

    width: 44px;

    height: 44px;

    color: #fff;

    background: linear-gradient(180deg, var(--rp-green), var(--rp-green-2));

    border-color: rgba(255, 255, 255, .7);

  }

  .nav, .logout-link { display: none; }

  .app-shell.mobile-menu-open .nav {

    display: grid;

    width: 100%;

    min-height: auto;

    overflow: visible;

  }

  .app-shell.mobile-menu-open .logout-link { display: flex; }

  .app-shell.mobile-menu-open .nav a,

  .app-shell.mobile-menu-open .nav-group-title,

  .app-shell.mobile-menu-open .logout-link {

    width: 100%;

    padding: 0 12px;

    justify-content: flex-start;

  }

  .app-shell.mobile-menu-open .nav span:not(.nav-ico),

  .app-shell.mobile-menu-open .nav-caret,

  .app-shell.mobile-menu-open .logout-link span:not(.nav-ico) {

    display: inline;

  }

  .app-shell.mobile-menu-open .nav-group.open .nav-submenu {

    display: grid;

  }

  .app-shell.mobile-menu-open .nav a span:not(.nav-ico),

  .app-shell.mobile-menu-open .nav-group-title span:not(.nav-ico),

  .app-shell.mobile-menu-open .logout-link span:not(.nav-ico) {

    display: inline;

  }

  .app-shell.mobile-menu-open .nav-submenu a {

    display: flex;

  }

  .topbar { position: static; margin: 12px; align-items: stretch; flex-direction: column; padding: 16px; }

  .main { padding-top: 72px; }

  .userbar { white-space: normal; }

  .content { padding: 18px 12px 80px; }

  .form-grid, .form-grid.compact { grid-template-columns: 1fr; }

  .field.span-2, .field.span-4 { grid-column: auto; }

  .entity-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }

  .actions { flex-wrap: wrap; }

  .btn { width: 100%; }

  .edit-pop > form, .edit-pop.wide > form {

    position: fixed;

    left: 12px;

    right: 12px;

    top: 88px;

    width: auto;

    max-height: calc(100vh - 110px);

    overflow: auto;

    transform: none;

  }

  .edit-pop.wide > form.document-edit-form {

    grid-template-columns: 1fr;

    padding: 18px;

  }

  .document-edit-form .field.span-2,

  .document-edit-form .check-panel,

  .document-edit-form > .modal-actions {

    grid-column: 1 / -1;

  }

  .modal-actions {

    flex-direction: column;

    align-items: stretch;

  }

  .modal-actions .btn {

    width: 100%;

  }

  .modal-pop > form,

  .modal-pop > form.document-edit-form {

    left: 12px !important;

    right: 12px !important;

    top: 88px !important;

    width: auto !important;

    max-height: calc(100vh - 110px);

    transform: none !important;

    grid-template-columns: 1fr !important;

  }

  .version-update-form .field:first-of-type,

  .version-update-form .modal-actions,

  .modal-pop > form.document-edit-form .field.span-2,

  .modal-pop > form.document-edit-form .check-panel,

  .modal-pop > form.document-edit-form > .modal-actions {

    grid-column: 1 / -1 !important;

  }

  .grid { grid-template-columns: 1fr; }

  .table-wrap { overflow: visible; }

  .table, .table thead, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }

  .table thead { display: none; }

  .table tr { padding: 10px; margin-bottom: 10px; border: 1px solid var(--rp-border); border-radius: 8px; background: #fff; }

  .table td { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 10px; border-bottom: 1px solid #edf2ef; }

  .table td:last-child { border-bottom: 0; }

  .table td::before { content: attr(data-label); color: var(--rp-muted); font-size: .76rem; font-weight: 900; text-transform: uppercase; }

}



@media print {

  .protected-view .protected-shell {

    display: none !important;

  }

  .protected-view::before {

    content: "Impressão bloqueada para visualização protegida.";

    display: block;

    margin: 40px;

    font: 700 16px Arial, sans-serif;

  }

  .sidebar,

  .topbar,

  .row-actions,

  .btn,

  .icon-btn,

  .msg {

    display: none !important;

  }

  .app-shell,

  .main,

  .content {

    display: block !important;

    width: 100% !important;

    max-width: none !important;

    margin: 0 !important;

    padding: 0 !important;

  }

  .card {

    box-shadow: none;

    border-color: #d8d8d8;

    page-break-inside: avoid;

  }

  body::after {

    content: attr(data-print-watermark);

    position: fixed;

    left: 0;

    right: 0;

    bottom: 8mm;

    text-align: center;

    color: rgba(0, 0, 0, .32);

    font-size: 9px;

    letter-spacing: .02em;

  }

}



.message-list {

  display: grid;

  gap: 10px;

}

.message-card {

  border: 1px solid var(--rp-border);

  border-radius: 10px;

  background: #fff;

  box-shadow: 0 8px 20px rgba(15, 36, 33, .04);

  overflow: hidden;

}

.message-card > summary {

  min-height: 58px;

  padding: 12px 14px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  background: #fbfdfc;

}

.message-card > summary strong {

  display: block;

  margin-bottom: 3px;

}

.message-card > summary small,

.message-meta {

  color: var(--rp-muted);

  font-size: .82rem;

}

.message-body {

  display: grid;

  gap: 12px;

  padding: 14px;

  border-top: 1px solid var(--rp-border);

}

.message-body p {

  margin: 0;

  line-height: 1.5;

}

.reply-list {

  display: grid;

  gap: 8px;

  padding-left: 12px;

  border-left: 3px solid var(--rp-soft);

}

.reply-item {

  padding: 10px;

  border: 1px solid var(--rp-border);

  border-radius: 8px;

  background: #fbfdfc;

}

.reply-item small {

  display: block;

  margin: 2px 0 6px;

  color: var(--rp-muted);

}

.message-actions {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  justify-content: flex-end;

  padding-top: 8px;

  border-top: 1px solid var(--rp-border);

}

.message-actions form {

  margin: 0;

}

@media (max-width: 780px) {

  .message-card > summary {

    align-items: flex-start;

    flex-direction: column;

  }

  .message-actions {

    align-items: stretch;

    flex-direction: column;

  }

}


.comm-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 18px;
  min-height: 100vh;
  padding: 24px;
  background: #f4f7f2;
}
.comm-list,
.comm-detail { min-width: 0; }
.comm-list .entity-row { text-decoration: none; color: inherit; }
.comm-list .entity-row.active { border-color: #008b45; background: #eef8f1; }
.message-body,
.message-reply,
.empty-state {
  border: 1px solid #dfe8dc;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  margin: 12px 0;
}
.message-reply small { display: block; color: #66716a; margin-top: 4px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
@media (max-width: 860px) { .comm-shell { grid-template-columns: 1fr; padding: 12px; } }


.comm-shell .compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.option-panel,
.recipient-panel {
  padding: 14px;
  border: 1px solid #dce8dd;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
}
.field-label {
  display: block;
  margin-bottom: 8px;
  color: #173f2c;
  font-weight: 800;
}
.field-hint {
  margin: -2px 0 12px;
  color: #657069;
  font-size: .9rem;
}
.choice-grid {
  display: grid;
  gap: 10px;
}
.choice-grid.compact {
  grid-template-columns: 1fr;
}
.choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid #d7e4d9;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.choice-card:hover {
  border-color: #159252;
  box-shadow: 0 10px 24px rgba(0, 80, 45, .08);
  transform: translateY(-1px);
}
.choice-card input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: #008b45;
}
.choice-card span {
  color: #17241d;
  font-weight: 800;
}
.choice-card small {
  grid-column: 2;
  color: #6b766f;
  font-size: .78rem;
  line-height: 1.35;
}
.choice-card:has(input:checked) {
  border-color: #008b45;
  background: #eff9f2;
  box-shadow: inset 4px 0 0 #008b45;
}
.recipient-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.recipient-columns strong {
  display: block;
  margin-bottom: 8px;
  color: #173f2c;
}
.choice-scroll {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 4px 6px 4px 0;
}
.choice-card.slim {
  padding: 9px 10px;
  border-radius: 12px;
}
.field-error {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e1a5a5;
  border-radius: 12px;
  background: #fff2f2;
  color: #9b2d2d;
  font-weight: 800;
}
@media (max-width: 940px) {
  .comm-shell .compact-form,
  .recipient-columns {
    grid-template-columns: 1fr;
  }
  .choice-scroll {
    max-height: 210px;
  }
}


.comm-integrated .content {
  padding-top: 18px;
}
.comm-content .comm-card {
  max-width: 1180px;
  margin: 0 auto;
}
.compact-message-card .section-head {
  margin-bottom: 12px;
}
.compact-message-card .compact-form {
  gap: 10px;
}
.compact-message-card .field label,
.compact-message-card .field-label {
  margin-bottom: 5px;
  font-size: .82rem;
}
.compact-message-card input,
.compact-message-card textarea {
  min-height: 40px;
}
.compact-message-card textarea {
  min-height: 88px;
}
.compact-message-card .option-panel,
.compact-message-card .recipient-panel {
  padding: 10px;
  border-radius: 14px;
}
.compact-message-card .choice-card {
  padding: 8px 9px;
  border-radius: 10px;
}
.compact-message-card .choice-card small {
  display: none;
}
.compact-message-card .choice-scroll.compact {
  max-height: 176px;
}
.compact-check {
  min-height: 40px;
  align-self: end;
}
.comm-inbox-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 14px;
}
.comm-inbox-list {
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding-right: 4px;
}
.comm-inbox-list .entity-row {
  text-decoration: none;
  color: inherit;
  padding: 10px 12px;
}
.comm-inbox-list .entity-row.active {
  border-color: #008b45;
  background: #eef8f1;
}
.comm-message-view {
  min-width: 0;
  border: 1px solid #dfe8dc;
  border-radius: 18px;
  background: #fbfdfc;
  padding: 14px;
}
.comm-message-view .message-body,
.comm-message-view .message-reply,
.comm-message-view .empty-state {
  margin: 10px 0;
  padding: 12px;
  border-radius: 12px;
}
@media (max-width: 980px) {
  .comm-inbox-layout {
    grid-template-columns: 1fr;
  }
  .comm-inbox-list {
    max-height: none;
  }
}


.notify-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dce8dd;
  border-radius: 999px;
  background: #fff;
  color: #153b2a;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(13, 64, 39, .08);
}
.notify-bell b,
.notify-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c82020;
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}
.notify-bell b {
  position: absolute;
  top: -5px;
  right: -5px;
}
.notify-badge {
  margin-left: auto;
}
.nav-group-title .notify-badge {
  flex: 0 0 auto;
}
/* communication compact refinements */
.compact-message-card .section-head {
  margin-bottom: 6px;
}
.compact-message-card .section-head p {
  margin-bottom: 0;
}
.compact-message-card .compact-form {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) minmax(220px, 300px);
  gap: 8px 10px;
}
.compact-message-card .compact-form > .field.span-2:first-of-type {
  grid-column: 1 / -1;
  margin-top: 0;
}
.compact-message-card .compact-form > .field.span-2:first-of-type input {
  min-height: 38px;
}
.compact-message-card .compact-form > .field.span-2:nth-of-type(4) {
  grid-column: 1 / -1;
}
.compact-message-card textarea[name="body"] {
  min-height: 128px;
  resize: vertical;
}
.compact-message-card .choice-card {
  min-height: 34px;
  padding: 5px 8px;
  gap: 2px 8px;
  align-items: center;
}
.compact-message-card .choice-card input {
  width: 14px;
  min-height: 14px;
  margin-top: 0;
}
.compact-message-card .choice-card span {
  font-size: .86rem;
  line-height: 1.15;
}
.compact-message-card .choice-card.slim {
  min-height: 32px;
  padding: 5px 7px;
}
.compact-message-card .choice-card.slim small {
  display: block;
  font-size: .68rem;
  line-height: 1.1;
  opacity: .82;
}
.compact-message-card .option-panel,
.compact-message-card .recipient-panel {
  padding: 8px;
}
.compact-message-card .choice-grid {
  gap: 6px;
}
.compact-message-card .choice-scroll.compact {
  max-height: 150px;
  gap: 5px;
}
.compact-message-card .recipient-columns.compact {
  gap: 10px;
}
.compact-message-card .recipient-columns strong {
  margin-bottom: 5px;
  font-size: .82rem;
}
.compact-message-card .field-error {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: .82rem;
}
@media (max-width: 1100px) {
  .compact-message-card .compact-form {
    grid-template-columns: 1fr 1fr;
  }
  .compact-message-card .compact-form > .field.span-2:first-of-type,
  .compact-message-card .compact-form > .field.span-2:nth-of-type(4),
  .compact-message-card .recipient-panel,
  .compact-message-card .form-actions.span-2 {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .compact-message-card .compact-form,
  .compact-message-card .recipient-columns.compact {
    grid-template-columns: 1fr;
  }
}


.compact-message-card .recipient-columns-3 {
  grid-template-columns: minmax(150px, .8fr) minmax(180px, 1fr) minmax(220px, 1.2fr);
}
@media (max-width: 1180px) {
  .compact-message-card .recipient-columns-3 {
    grid-template-columns: 1fr 1fr;
  }
  .compact-message-card .recipient-columns-3 > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .compact-message-card .recipient-columns-3 {
    grid-template-columns: 1fr;
  }
  .compact-message-card .recipient-columns-3 > div:first-child {
    grid-column: auto;
  }
}



/* GED improvements: dashboard, filters, diagnostics and help */
.dashboard-grid .kpi {
  min-height: 118px;
  display: grid;
  align-content: center;
}
.dashboard-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.compact-list .entity-row {
  min-height: 46px;
  padding: 8px 0;
}
.filters-form {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
}
.filters-form .span-2 {
  grid-column: span 2;
}
.filter-actions {
  align-self: end;
  flex-wrap: nowrap;
}
.diagnostic-grid,
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.diagnostic-card,
.help-grid article {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--rp-border);
  border-radius: 12px;
  background: #fbfdfc;
}
.diagnostic-card {
  display: grid;
  align-content: center;
  gap: 6px;
  border-left: 5px solid var(--rp-green);
}
.diagnostic-card.fail {
  border-left-color: var(--rp-danger);
  background: #fff7f7;
}
.diagnostic-card strong,
.help-grid strong {
  color: var(--rp-text);
  font-weight: 900;
}
.diagnostic-card span,
.help-grid p {
  margin: 0;
  color: var(--rp-muted);
  line-height: 1.45;
}
.pill.error,
.pill.warning {
  color: #9b2d2d;
  background: #fff1f1;
}
.pill.info {
  color: var(--rp-green-2);
  background: var(--rp-soft);
}
.help-card .section-head {
  margin-bottom: 18px;
}
.help-actions { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.help-manual { display:grid; gap:12px; }
.help-manual > article { scroll-margin-top:18px; padding:18px; border:1px solid var(--rp-border); border-radius:14px; background:#fff; }
.help-manual h4 { margin:0 0 10px; color:var(--rp-green-2); font-size:1.02rem; }
.help-manual h5 { margin:18px 0 10px; color:var(--rp-text); }
.help-manual p,.help-manual li { color:var(--rp-muted); line-height:1.65; }
.help-manual p:last-child,.help-manual ul:last-child,.help-manual ol:last-child { margin-bottom:0; }
.help-manual ol,.help-manual ul { padding-left:22px; }
.help-index { display:flex; flex-wrap:wrap; gap:8px; padding:14px; border:1px solid var(--rp-border); border-radius:14px; background:var(--rp-soft); }
.help-index a { padding:7px 10px; border:1px solid var(--rp-border); border-radius:999px; color:var(--rp-green-2); background:#fff; font-size:.82rem; text-decoration:none; }
.help-index a:hover { border-color:var(--rp-green); box-shadow:0 0 0 3px rgba(40,157,125,.12); }
.help-note { margin-top:12px; padding:14px 16px; border-left:4px solid #e7a52e; border-radius:10px; color:#624817; background:#fff8e8; line-height:1.55; }
.help-flow { background:linear-gradient(145deg,#f4fbf9,#fff) !important; }
.help-flowline { display:flex; align-items:stretch; gap:9px; overflow-x:auto; padding:4px 2px 12px; }
.help-flowline > div { flex:1 0 150px; min-width:150px; padding:14px; border:1px solid var(--rp-border); border-top:4px solid var(--rp-green); border-radius:12px; background:#fff; }
.help-flowline b,.help-flowline span { display:block; }
.help-flowline b { color:var(--rp-text); }
.help-flowline span { margin-top:6px; color:var(--rp-muted); font-size:.86rem; line-height:1.4; }
.help-flowline i { align-self:center; color:var(--rp-green-2); font-size:1.35rem; font-style:normal; font-weight:900; }
.help-flowline.compact > div { flex-basis:135px; min-width:135px; }
.help-branches { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:6px; }
.help-branches > div { padding:14px; border:1px solid var(--rp-border); border-radius:12px; background:#fff; }
.help-branches b,.help-branches span { display:block; }
.help-branches span { margin-top:5px; color:var(--rp-muted); line-height:1.45; }
@media print { .sidebar,.topbar,.help-actions,.help-index,.menu-toggle { display:none !important; } .main { margin:0 !important; } .app-shell { display:block !important; } .help-manual > article { break-inside:avoid; box-shadow:none; } .help-flowline { overflow:visible; } }
@media (max-width:760px) { .help-branches { grid-template-columns:1fr; } .help-flowline { align-items:stretch; } }
@media (max-width: 1180px) {
  .filters-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters-form .span-2,
  .filter-actions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 860px) {
  .dashboard-panels {
    grid-template-columns: 1fr;
  }
  .filters-form {
    grid-template-columns: 1fr;
  }
  .filters-form .span-2,
  .filter-actions {
    grid-column: auto;
  }
  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Navegação e superfícies com acabamento consistente à identidade BRSHUB. */
.sidebar {
  gap: 12px;
  padding: 16px;
  background: linear-gradient(165deg,#10263a 0%,#173b53 62%,#144b59 100%);
  border-right-color: rgba(255,255,255,.1);
  box-shadow: 8px 0 28px rgba(8,25,39,.13);
}
.brand-lockup,.brand-copy strong { color: #f8fcff; }
.brand-copy small,.sidebar .eyebrow { color: #acd2dc; }
.brand-mark { border-radius: 13px; background: rgba(255,255,255,.12); }
.menu-toggle { border-color: rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.09); color: #e8f4f8; }
.menu-toggle:hover { border-color: rgba(39,184,168,.5); background: rgba(39,184,168,.16); }
.nav {
  gap: 4px;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a,.nav-group-title,.logout-link {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(241,248,252,.82);
  font-weight: 650;
  transition: color .16s ease,background-color .16s ease,border-color .16s ease,transform .16s ease;
}
.nav a:hover,.nav-group-title:hover,.nav-group.open .nav-group-title,.logout-link:hover {
  border-color: rgba(255,255,255,.11);
  background: rgba(255,255,255,.09);
  color: #fff;
}
.nav a.active {
  border-color: rgba(39,184,168,.32);
  background: rgba(39,184,168,.16);
  color: #fff;
  box-shadow: inset 3px 0 0 #43d1bb;
}
.nav-group { gap: 3px; }
.nav-submenu { padding-left: 15px; border-left: 1px solid rgba(255,255,255,.15); }
.nav-submenu a { min-height: 34px; font-weight: 550; }
.nav-ico { color: #7dd8cf; }
.nav-caret { color: #b4cbd5; }
.topbar {
  border-color: rgba(220,229,236,.9);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(23,50,77,.07);
}
.card { border-radius: 14px; box-shadow: 0 8px 26px rgba(23,50,77,.06); }
.btn,.icon-btn { border-radius: 9px; transition: transform .16s ease,box-shadow .16s ease,background-color .16s ease; }
.btn:hover,.icon-btn:hover { box-shadow: 0 6px 15px rgba(23,50,77,.12); }
input,select,textarea { border-radius: 9px; }
:focus-visible { outline: 3px solid #27b8a8; outline-offset: 2px; }
@media (max-width: 820px) {
  .sidebar { box-shadow: 10px 0 32px rgba(8,25,39,.25); }
  .topbar { border-radius: 12px; }
}

/* Login no padrão visual do PCM360, mantendo a fotografia própria do GEDTRACK. */
body.login-page{min-height:100vh;background:radial-gradient(ellipse at 18% 68%,#e2eef0 0,transparent 44%),#f5f7f8}
.login-wrap{width:min(calc(100% - 48px),1280px);min-height:calc(100vh - 48px);grid-template-columns:minmax(0,1.12fr) minmax(380px,.88fr);align-items:center;gap:clamp(20px,3vw,42px);margin:auto;padding:24px;color:var(--gt-text);background:transparent}
.login-intro{position:relative;isolation:isolate;min-height:min(660px,calc(100vh - 112px));max-width:none;justify-content:space-between;overflow:hidden;padding:clamp(26px,4vw,52px);border:1px solid rgba(255,255,255,.16);border-radius:26px;background:linear-gradient(90deg,rgba(8,30,43,.72),rgba(8,30,43,.18)),linear-gradient(0deg,rgba(8,30,43,.7),transparent 72%),url('../img/gedtrack-document-control.png') center/cover no-repeat;box-shadow:0 24px 64px rgba(16,56,74,.18)}
.login-brand{width:min(300px,78vw);height:auto;padding:12px 16px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(13,34,52,.58)}
.login-intro-copy{max-width:620px;padding:0}
.login-eyebrow{color:#a6e6ee}
.login-intro h1{font-size:clamp(27px,3vw,42px);line-height:1.12;letter-spacing:-.035em}
.login-intro-copy>p:last-child{font-size:1rem}
.login-manufacturer{color:rgba(239,247,251,.82)}
.login-card{max-width:460px;justify-self:center;padding:clamp(24px,4vw,38px);border:1px solid #e1eaed;border-radius:22px;box-shadow:0 24px 64px rgba(16,56,74,.12)}
.login-card #login-email,.login-card #login-password{display:block;width:100%;height:48px;min-height:48px;box-sizing:border-box;padding:12px 16px;font-size:16px;line-height:1.5}
@media(max-width:900px){.login-wrap{width:min(calc(100% - 48px),668px);min-height:auto;grid-template-columns:1fr;gap:14px;padding:24px}.login-intro{min-height:310px;padding:28px}.login-intro-copy{padding:0}.login-card{width:100%;max-width:460px}}
@media(max-width:600px){.login-wrap{width:100%;gap:12px;padding:16px}.login-intro{min-height:250px;padding:21px;border-radius:20px}.login-brand{width:min(350px,76vw);height:58px}.login-intro h1{font-size:25px}.login-intro-copy>p:last-child{font-size:.9rem}.login-card{padding:20px;border-radius:20px}}

.ged-ocr-panel{display:grid;gap:9px;padding:14px;border:1px solid var(--gt-border,#dbe5e9);border-radius:14px;background:rgba(34,120,145,.035)}
.ged-ocr-panel textarea{width:100%;min-height:100px;resize:vertical}
.ged-ocr-status{color:var(--gt-muted,#647987);font-size:.86rem}
.share-link-tools{display:grid;gap:6px;margin-top:10px;padding:10px;border-radius:12px;background:#f3f7f8}
.share-link-tools .inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.share-link-tools small{display:block;color:var(--gt-muted,#647987)}
.share-link-tools select{margin:0 5px;padding:5px}
.share-created{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.share-created input{flex:1;min-width:min(100%,360px);padding:9px 12px;border:1px solid #c8d7dc;border-radius:9px;background:#fff;color:#193646}
.share-created small{flex-basis:100%}
.text-button{border:0;background:none;color:#a13838;text-decoration:underline;cursor:pointer}
.retention-review-card{grid-column:1/-1}
