:root {
  --portal-ink: #132238;
  --portal-muted: #5d7288;
  --portal-primary: #0f9f9b;
  --portal-primary-dark: #0f4f6b;
  --portal-secondary: #ff8b5e;
  --portal-warning: #c68618;
  --portal-background: #f4f8fb;
  --portal-surface: #ffffff;
  --portal-border: #d7e5ee;
  --portal-success: #1d8f62;
  --portal-danger: #d1495b;
}

/* Frota V2 - opcao A: historico guiado de vistorias. */
.portal-react-fleet__inspection-vehicle-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(150px, 1fr));
  gap: 0;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #f8fbfc;
}

.portal-react-fleet__inspection-vehicle-summary > div {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 4px;
  padding: 11px 13px;
  border-right: 1px solid var(--portal-border);
}

.portal-react-fleet__inspection-vehicle-summary > div:last-child {
  border-right: 0;
}

.portal-react-fleet__inspection-vehicle-summary small,
.portal-react-fleet__inspection-vehicle-summary span:not(.portal-react-seals__badge) {
  overflow: hidden;
  color: var(--portal-muted);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-react-fleet__inspection-vehicle-summary strong {
  overflow: hidden;
  color: var(--portal-primary-dark);
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-react-fleet__inspection-vehicle-summary .portal-react-seals__badge {
  justify-self: start;
}

.portal-react-fleet__inspection-guided-workspace {
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(500px, 1.35fr);
  min-width: 0;
  min-height: 510px;
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 13px;
  background: #fff;
}

.portal-react-fleet__inspection-master {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 12px;
  border-right: 1px solid var(--portal-border);
  background: #f8fbfc;
}

.portal-react-fleet__inspection-summary {
  min-height: 30px;
  padding: 0 2px 9px;
}

.portal-react-fleet__inspection-summary b {
  color: var(--portal-primary-dark);
  font-size: 13px;
}

.portal-react-fleet__inspection-summary span {
  color: var(--portal-muted);
  font-size: 10px;
}

.portal-react-fleet__inspection-timeline {
  display: grid;
  min-height: 0;
  max-height: 570px;
  gap: 7px;
  overflow-y: auto;
  padding: 1px 4px 1px 1px;
  scrollbar-width: thin;
}

.portal-react-fleet__inspection-timeline > button {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr) minmax(0, 0.72fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 65px;
  overflow: hidden;
  padding: 9px 10px;
  border: 1px solid var(--portal-border);
  border-radius: 11px;
  background: #fff;
  color: var(--portal-ink);
  text-align: left;
  cursor: pointer;
}

.portal-react-fleet__inspection-timeline > button:hover,
.portal-react-fleet__inspection-timeline > button:focus-visible {
  outline: none;
  border-color: #83c7c5;
  box-shadow: 0 0 0 3px rgba(15, 159, 155, 0.12);
}

.portal-react-fleet__inspection-timeline > button.is-selected {
  border-color: var(--portal-primary);
  background: #eaf7f7;
  box-shadow: inset 3px 0 0 var(--portal-primary);
}

.portal-react-fleet__inspection-timeline > button > span:not(.portal-react-seals__badge) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.portal-react-fleet__inspection-timeline strong,
.portal-react-fleet__inspection-timeline small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-react-fleet__inspection-timeline strong {
  font-size: 11px;
}

.portal-react-fleet__inspection-timeline small {
  color: var(--portal-muted);
  font-size: 9px;
}

.portal-react-fleet__inspection-pagination {
  gap: 7px;
  margin-top: 10px;
}

.portal-react-fleet__inspection-pagination button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 10px;
}

.portal-react-fleet__inspection-guided-detail {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 14px;
  background: #fff;
}

.portal-react-fleet__inspection-guided-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding-bottom: 11px;
}

.portal-react-fleet__inspection-guided-head > div {
  min-width: 0;
}

.portal-react-fleet__inspection-guided-head h3,
.portal-react-fleet__inspection-guided-head p {
  margin: 0;
}

.portal-react-fleet__inspection-guided-head h3 {
  overflow: hidden;
  margin-top: 3px;
  color: var(--portal-primary-dark);
  font-size: 15px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-react-fleet__inspection-guided-head p {
  margin-top: 3px;
  color: var(--portal-muted);
  font-size: 10px;
}

.portal-react-fleet__inspection-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: #f4f8f9;
}

.portal-react-fleet__inspection-detail-tabs button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--portal-muted);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.portal-react-fleet__inspection-detail-tabs button:hover,
.portal-react-fleet__inspection-detail-tabs button:focus-visible,
.portal-react-fleet__inspection-detail-tabs button.is-active {
  outline: none;
  border-color: #b8dddd;
  background: #fff;
  color: var(--portal-primary-dark);
}

.portal-react-fleet__inspection-detail-tabs button.is-active {
  box-shadow: 0 4px 10px rgba(15, 79, 107, 0.07);
}

.portal-react-fleet__inspection-detail-tabs button span {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #dcefee;
  font-size: 9px;
}

.portal-react-fleet__inspection-guided-panel:not([hidden]) {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding-top: 13px;
}

.portal-react-fleet__inspection-guided-panel > .portal-primary-button {
  justify-self: start;
}

.portal-react-fleet__inspection-guided-detail .portal-react-fleet__inspection-gallery {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  max-height: 470px;
  overflow-y: auto;
  padding-right: 3px;
}

.portal-react-fleet__inspection-guided-detail .portal-react-fleet__inspection-photo {
  min-height: 185px;
}

.portal-react-fleet__inspection-guided-detail .portal-react-fleet__inspection-checklist {
  max-height: 470px;
  overflow-y: auto;
}

.portal-react-fleet__inspection-guided-empty {
  display: grid;
  min-height: 360px;
  place-content: center;
  gap: 6px;
  color: var(--portal-muted);
  text-align: center;
}

.portal-react-fleet__inspection-guided-empty strong {
  color: var(--portal-primary-dark);
}

.portal-react-fleet__guided-map-shell {
  position: relative;
  display: grid;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #eef5f6;
}

.portal-react-fleet__guided-map {
  display: none;
  width: 100%;
  min-height: 350px;
}

.portal-react-fleet__guided-map.is-ready {
  display: block;
}

.portal-react-fleet__guided-map-fallback {
  display: grid;
  min-height: 350px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--portal-muted);
  text-align: center;
}

.portal-react-fleet__guided-map-fallback strong,
.portal-react-fleet__guided-map-fallback b {
  color: var(--portal-primary-dark);
}

.portal-react-fleet__guided-map-fallback p {
  max-width: 520px;
  margin: 0;
  font-size: 11px;
}

.portal-react-fleet__guided-map-fallback > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.portal-react-fleet__guided-map-fallback button,
.portal-react-fleet__guided-map-fallback a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #b8dddd;
  border-radius: 8px;
  background: #fff;
  color: var(--portal-primary-dark);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.portal-react-fleet__guided-map-shell footer {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid var(--portal-border);
  background: #fff;
  color: var(--portal-muted);
  font-size: 10px;
}

.portal-react-fleet__guided-map-shell footer small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1220px) {
  .portal-react-fleet__inspection-vehicle-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-fleet__inspection-vehicle-summary > div:nth-child(2) {
    border-right: 0;
  }

  .portal-react-fleet__inspection-vehicle-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--portal-border);
  }

  .portal-react-fleet__inspection-guided-workspace {
    grid-template-columns: minmax(290px, 0.72fr) minmax(420px, 1.28fr);
  }

  .portal-react-fleet__inspection-timeline > button {
    grid-template-columns: minmax(88px, 0.8fr) minmax(110px, 1fr) auto;
  }

  .portal-react-fleet__inspection-timeline > button > span:nth-child(3) {
    display: none;
  }
}

@media (max-width: 900px) {
  .portal-react-fleet__inspection-guided-workspace {
    grid-template-columns: 1fr;
  }

  .portal-react-fleet__inspection-master {
    border-right: 0;
    border-bottom: 1px solid var(--portal-border);
  }

  .portal-react-fleet__inspection-timeline {
    max-height: 330px;
  }
}

@media (max-width: 620px) {
  .portal-react-fleet__inspection-vehicle-summary {
    grid-template-columns: 1fr;
  }

  .portal-react-fleet__inspection-vehicle-summary > div,
  .portal-react-fleet__inspection-vehicle-summary > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--portal-border);
  }

  .portal-react-fleet__inspection-vehicle-summary > div:last-child {
    border-bottom: 0;
  }

  .portal-react-fleet__inspection-timeline > button {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 76px;
  }

  .portal-react-fleet__inspection-timeline > button > span:nth-child(2) {
    grid-column: 1;
  }

  .portal-react-fleet__inspection-timeline > button > .portal-react-seals__badge {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .portal-react-fleet__inspection-guided-detail {
    padding: 11px;
  }

  .portal-react-fleet__inspection-guided-head h3 {
    white-space: normal;
  }

  .portal-react-fleet__inspection-detail-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-fleet__inspection-guided-detail .portal-react-fleet__inspection-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-fleet__inspection-guided-detail .portal-react-fleet__inspection-photo {
    min-height: 160px;
  }

  .portal-react-fleet__guided-map-shell footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

* { box-sizing: border-box; }
body.portal-body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--portal-ink);
  background:
    radial-gradient(circle at top right, rgba(255, 139, 94, 0.12), transparent 22%),
    radial-gradient(circle at top left, rgba(15, 159, 155, 0.12), transparent 28%),
    var(--portal-background);
}

.portal-global-version {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.78);
  color: white;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(19, 34, 56, 0.18);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.portal-eyebrow {
  margin: 0 0 8px;
  color: var(--portal-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.portal-subtitle {
  margin: 14px 0 0;
  color: var(--portal-muted);
  line-height: 1.6;
}

.portal-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at top left, rgba(99, 183, 216, 0.26), transparent 24%),
    linear-gradient(135deg, #0e3a4b, #127ca6 52%, #63b7d8);
}

.portal-login-card {
  width: min(100%, 520px);
  padding: 36px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.portal-brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portal-brand-lockup--vertical {
  flex-direction: column;
  align-items: flex-start;
}

.portal-brand-lockup__logo {
  width: 210px;
  border-radius: 18px;
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.portal-brand-lockup__logo--small {
  width: 108px;
  padding: 0;
  border-radius: 14px;
}

.portal-brand-lockup h1,
.portal-topbar h1,
.portal-hero h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.02;
  font-weight: 800;
}

.portal-brand-title {
  font-size: 24px;
  font-weight: 800;
}

.portal-login-note,
.portal-panel,
.portal-hero,
.portal-stat-card {
  border: 1px solid var(--portal-border);
  background: var(--portal-surface);
  border-radius: 24px;
}

.portal-login-note {
  margin: 26px 0 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(18, 124, 166, 0.08), rgba(99, 183, 216, 0.1));
}

.portal-login-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.portal-login-note p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.6;
}

.portal-google-button {
  margin: 20px 0 0;
  min-height: 44px;
  display: flex;
  justify-content: center;
}

.portal-google-button[hidden] {
  display: none;
}

.portal-google-button > div {
  width: 100%;
  display: flex;
  justify-content: center;
}

.portal-secondary-button--full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.portal-login-footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 700;
}

.portal-message-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.portal-message {
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 600;
}

.portal-message strong {
  display: block;
  margin-bottom: 6px;
}

.portal-message__list {
  margin: 0;
  padding-left: 18px;
}

.portal-message--error {
  background: #fff1f0;
  color: var(--portal-danger);
  border: 1px solid #f2c3bd;
}

.portal-message--success,
.portal-message--info {
  background: #eef8f3;
  color: var(--portal-success);
  border: 1px solid #c9e8d7;
}

.portal-message--warning {
  background: #fff7e6;
  color: #9a6700;
  border: 1px solid #f0d39a;
}

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

.portal-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  padding: 24px 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 139, 94, 0.2), transparent 24%),
    radial-gradient(circle at bottom left, rgba(15, 159, 155, 0.16), transparent 26%),
    linear-gradient(180deg, #123149, #10263d 82%);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.portal-sidebar__masthead {
  display: grid;
  gap: 12px;
}

.portal-sidebar__brand {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 22px 20px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 139, 94, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 34px rgba(3, 11, 18, 0.18);
}

.portal-sidebar__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.portal-sidebar__controls-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.portal-sidebar__toggle {
  display: inline-grid;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  place-content: center;
}

.portal-sidebar__toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.portal-sidebar__brand::before {
  content: '';
  position: absolute;
  inset: auto auto -38px -20px;
  width: 132px;
  height: 132px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.portal-sidebar__brand-pill,
.portal-sidebar__brand-copy {
  position: relative;
  z-index: 1;
}

.portal-sidebar__brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(236, 246, 250, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 30px rgba(5, 15, 24, 0.18);
}

.portal-sidebar__brand-logo {
  display: block;
  background: transparent;
  box-shadow: none;
}

.portal-sidebar__brand-copy {
  display: grid;
  gap: 8px;
}

.portal-sidebar__brand-copy .portal-eyebrow {
  margin-bottom: 0;
  color: rgba(198, 226, 237, 0.78);
  font-size: 10px;
  letter-spacing: 0.24em;
}

.portal-sidebar__brand-copy span {
  max-width: 220px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.portal-brand-title {
  font-size: 30px;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #fff;
}

.portal-nav {
  display: grid;
  gap: 18px;
}

.portal-sidebar__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  padding-bottom: 20px;
}

.portal-sidebar__scroll::-webkit-scrollbar {
  width: 10px;
}

.portal-sidebar__scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.portal-nav__group {
  display: grid;
  gap: 8px;
}

.portal-nav__group-label {
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-nav a {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  border: 1px solid transparent;
}

.portal-nav a strong,
.portal-nav a small {
  line-height: 1.3;
}

.portal-nav a strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-nav a small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 600;
}

.portal-nav a.is-active,
.portal-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.08);
  color: white;
}

.portal-nav a.is-active small,
.portal-nav a:hover small {
  color: rgba(255, 255, 255, 0.78);
}

.portal-nav a.portal-nav__item--highlight {
  position: relative;
  border-color: rgba(77, 210, 168, 0.36);
  background: rgba(77, 210, 168, 0.11);
  color: #fff;
  box-shadow: inset 3px 0 0 #4dd2a8;
}

.portal-nav a.portal-nav__item--highlight small {
  color: rgba(218, 255, 242, 0.82);
}

.portal-nav a.portal-nav__item--highlight.is-active,
.portal-nav a.portal-nav__item--highlight:hover {
  border-color: rgba(77, 210, 168, 0.58);
  background: rgba(77, 210, 168, 0.18);
}

.portal-main {
  padding: 24px 24px 96px;
  min-width: 0;
  overflow-x: clip;
}

.portal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.portal-topbar__title {
  display: grid;
  gap: 8px;
}

.portal-topbar__meta {
  margin-left: auto;
}

.portal-secondary-button--compact {
  min-height: 42px;
  padding: 0 14px;
}

.portal-topbar__sidebar-toggle {
  display: none;
}

.portal-user-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(100%, 380px);
  padding: 12px 14px;
  border-radius: 22px;
  border: 1px solid var(--portal-border);
  background:
    radial-gradient(circle at top right, rgba(255, 139, 94, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff, #f5fafc);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.portal-user-chip__avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #123149, #0f9f9b);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.portal-user-chip__copy,
.portal-user-chip__actions {
  display: grid;
  gap: 4px;
}

.portal-user-chip__copy span {
  color: var(--portal-muted);
}

.portal-user-chip__copy strong {
  color: var(--portal-ink);
}

.portal-user-chip__actions {
  margin-left: auto;
  justify-items: end;
}

.portal-user-chip__logout {
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 139, 94, 0.14);
  color: var(--portal-primary-dark);
  font-weight: 800;
  cursor: pointer;
}

.portal-hero__content {
  display: grid;
  gap: 2px;
}

.portal-hero {
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 139, 94, 0.2), transparent 24%),
    linear-gradient(135deg, #f7fbfd, #ffffff);
}

.portal-hero p {
  margin: 12px 0 0;
  color: var(--portal-muted);
  line-height: 1.7;
  max-width: 720px;
}

.portal-page-intro {
  display: grid;
  gap: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
  border: 1px solid var(--portal-border);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 139, 94, 0.16), transparent 24%),
    linear-gradient(135deg, #f7fbfd, #ffffff);
}

.portal-page-intro__content {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.portal-page-intro__content h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--portal-primary-dark);
}

.portal-page-intro__content p {
  display: none;
}

.portal-page-intro__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-page-intro__chips span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 159, 155, 0.12);
  color: var(--portal-primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.portal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  justify-content: flex-start;
}

.portal-chip-row span,
.portal-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 159, 155, 0.12);
  color: var(--portal-primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.portal-role-badge--accent {
  background: rgba(255, 139, 94, 0.16);
  color: var(--portal-ink);
}

.portal-role-badge--success {
  background: rgba(31, 122, 77, 0.12);
  color: var(--portal-success);
}

.portal-role-badge--info {
  background: rgba(18, 124, 166, 0.12);
  color: #126d91;
}

.portal-role-badge--warning {
  background: rgba(183, 121, 31, 0.12);
  color: var(--portal-warning);
}

.portal-role-badge--danger {
  background: rgba(192, 57, 43, 0.12);
  color: var(--portal-danger);
}

.portal-role-badge--muted {
  background: #edf2f7;
  color: var(--portal-muted);
}

.portal-badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-grid {
  display: grid;
  gap: 20px;
}

.portal-grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 20px;
}

.portal-grid--cards.portal-grid--cards-ops {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.portal-grid--panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-grid--panels-stacked {
  grid-template-columns: 1fr;
}

.portal-grid--role-permissions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.portal-stat-card,
.portal-panel {
  padding: 22px;
}

.portal-stat-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(99, 183, 216, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff, #f7fbfd);
}

.portal-stat-card::after {
  content: '';
  position: absolute;
  inset: auto -24px -34px auto;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: rgba(18, 124, 166, 0.04);
  pointer-events: none;
}

.portal-stat-card--primary {
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.16), transparent 30%),
    linear-gradient(135deg, #f4f9fc, #ffffff);
}

.portal-stat-card--warning {
  background:
    radial-gradient(circle at top right, rgba(183, 121, 31, 0.14), transparent 30%),
    linear-gradient(135deg, #fffaf2, #ffffff);
}

.portal-stat-card--success {
  background:
    radial-gradient(circle at top right, rgba(31, 122, 77, 0.14), transparent 30%),
    linear-gradient(135deg, #f4fbf7, #ffffff);
}

.portal-stat-card--danger {
  background:
    radial-gradient(circle at top right, rgba(192, 57, 43, 0.14), transparent 30%),
    linear-gradient(135deg, #fff7f6, #ffffff);
}

.portal-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.portal-phase-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--portal-border);
  background:
    radial-gradient(circle at top right, rgba(255, 139, 94, 0.14), transparent 26%),
    linear-gradient(135deg, #ffffff, #f7fbfd);
}

.portal-phase-card__hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.portal-phase-card__hero strong {
  display: block;
  font-size: 20px;
  color: var(--portal-primary-dark);
}

.portal-phase-card__hero p {
  margin: 8px 0 0;
  color: var(--portal-muted);
  line-height: 1.65;
  max-width: 780px;
}

.portal-phase-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portal-phase-card__section {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 79, 107, 0.08);
}

.portal-phase-card__section strong {
  color: var(--portal-primary-dark);
}

.portal-google-maps-usage {
  display: grid;
  gap: 16px;
}

.portal-google-maps-usage__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.portal-google-maps-usage__hero strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
  color: var(--portal-primary-dark);
}

.portal-google-maps-usage__hero p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.65;
  max-width: 860px;
}

.portal-google-maps-usage__meter {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(15, 79, 107, 0.12);
}

.portal-google-maps-usage__meter-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
  transition: width 180ms ease;
}

.portal-google-maps-usage__meter-bar--warning {
  background: linear-gradient(90deg, #b45309 0%, #f59e0b 100%);
}

.portal-google-maps-usage__meter-bar--danger {
  background: linear-gradient(90deg, #b91c1c 0%, #ef4444 100%);
}

.portal-google-maps-usage__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portal-google-maps-usage__card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 79, 107, 0.08);
}

.portal-google-maps-usage__card span,
.portal-google-maps-usage__card small {
  display: block;
}

.portal-google-maps-usage__card span {
  color: rgba(15, 79, 107, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-google-maps-usage__card strong {
  display: block;
  font-size: 1.55rem;
  color: var(--portal-primary-dark);
}

.portal-google-maps-usage__card small {
  color: var(--portal-muted);
  line-height: 1.55;
}

.portal-google-maps-diagnostic__map {
  min-height: 420px;
  border-radius: 24px;
  border: 1px solid rgba(18, 124, 166, 0.14);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(247, 251, 253, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.portal-google-maps-diagnostic__log {
  display: grid;
  gap: 10px;
}

.portal-google-maps-diagnostic__log-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background: rgba(255, 255, 255, 0.82);
  color: var(--portal-primary-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.5;
}

.portal-google-maps-diagnostic__log-item--success {
  border-color: rgba(21, 128, 61, 0.18);
  background: rgba(21, 128, 61, 0.06);
}

.portal-google-maps-diagnostic__log-item--warning {
  border-color: rgba(180, 83, 9, 0.18);
  background: rgba(180, 83, 9, 0.06);
}

.portal-google-maps-diagnostic__log-item--danger {
  border-color: rgba(185, 28, 28, 0.18);
  background: rgba(185, 28, 28, 0.07);
}

.portal-module-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--portal-border);
  background: linear-gradient(135deg, #ffffff, #f6fafc);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.portal-module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 124, 166, 0.28);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.portal-module-card strong {
  font-size: 18px;
}

.portal-module-card p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.6;
}

.portal-module-card__badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18, 124, 166, 0.12);
  color: var(--portal-primary-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-stat-card span,
.portal-panel__header span {
  color: var(--portal-muted);
  font-size: 13px;
}

.portal-stat-card strong {
  display: block;
  margin: 14px 0 10px;
  font-size: 40px;
  font-weight: 800;
}

.portal-stat-card small {
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.portal-panel__header h3 {
  margin: 0;
  font-size: 20px;
}

.portal-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-tab-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--portal-border);
  background: #f5fafc;
  color: var(--portal-primary-dark);
  font-weight: 800;
}

.portal-tab-nav__item.is-active {
  background: var(--portal-primary-dark);
  border-color: var(--portal-primary-dark);
  color: #fff;
}

.portal-list {
  display: grid;
  gap: 14px;
}

.portal-list__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--portal-border);
}

.portal-list__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.portal-list__row p,
.portal-list__meta small,
.portal-muted,
.portal-empty {
  margin: 6px 0 0;
  color: var(--portal-muted);
}

.portal-list__meta {
  text-align: right;
}

.portal-note-stack {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.portal-note-stack p {
  margin: 0;
  color: var(--portal-muted);
}

.portal-prefill-callout {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(18, 124, 166, 0.16);
  background:
    radial-gradient(circle at top right, rgba(255, 139, 94, 0.08), transparent 24%),
    rgba(18, 124, 166, 0.05);
}

.portal-prefill-callout__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.portal-prefill-callout__header strong {
  display: block;
  font-size: 20px;
}

.portal-prefill-callout__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portal-prefill-callout__grid div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.portal-prefill-callout__grid span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-prefill-callout__grid strong,
.portal-prefill-callout__grid small {
  overflow-wrap: anywhere;
}

.portal-import-preview {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 124, 166, 0.18);
  background: linear-gradient(135deg, #f5fafc, #ffffff);
}

.portal-import-preview__summary {
  display: grid;
  gap: 6px;
}

.portal-import-preview__summary p {
  margin: 0;
  color: var(--portal-muted);
}

.portal-category-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.portal-category-guide__item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--portal-border);
  background: linear-gradient(135deg, #ffffff, #f6fafc);
}

.portal-category-guide__item p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.6;
}

.portal-equipment-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.portal-equipment-list__head,
.portal-equipment-row {
  display: grid;
  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 0.95fr)
    minmax(0, 0.72fr)
    minmax(0, 0.5fr)
    minmax(0, 0.95fr)
    minmax(0, 0.8fr)
    minmax(0, 0.95fr)
    minmax(0, 0.7fr);
  gap: 8px;
  align-items: center;
}

.portal-equipment-list__head--inline {
  padding: 0 14px;
}

.portal-equipment-list__head {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-equipment-card {
  display: grid;
  gap: 0;
  min-width: 0;
  overflow-x: clip;
}

.portal-equipment-row {
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid var(--portal-border);
  background: linear-gradient(135deg, #ffffff, #f7fbfd);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.portal-equipment-row:hover,
.portal-equipment-row.is-selected,
.portal-equipment-card.is-selected .portal-equipment-row {
  border-color: rgba(18, 124, 166, 0.28);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.portal-equipment-row__cell {
  min-width: 0;
}

.portal-equipment-row__cell p,
.portal-equipment-row__cell small {
  margin: 0;
}

.portal-equipment-row__cell strong {
  display: block;
  margin-bottom: 1px;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.portal-equipment-row__title-with-icon {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.portal-equipment-row__title-with-icon .portal-map-icon-choice__glyph {
  width: 28px;
  height: 28px;
  font-size: 0.74rem;
  flex: 0 0 auto;
}

.portal-equipment-row__cell small {
  color: var(--portal-muted);
  line-height: 1.2;
  overflow-wrap: anywhere;
  font-size: 0.76rem;
}

.portal-equipment-row__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
  align-self: start;
}

.portal-equipment-row__actions .portal-secondary-button,
.portal-equipment-row__actions .portal-primary-button {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 7px 8px;
  min-height: 0;
  font-size: 0.84rem;
  line-height: 1.05;
  border-radius: 12px;
}

.portal-equipment-row__actions .portal-primary-button,
.portal-equipment-row__actions .portal-secondary-button--danger,
.portal-equipment-row__actions .portal-secondary-button--warning,
.portal-equipment-row__actions .portal-secondary-button--accent {
  font-weight: 800;
}

.portal-equipment-row__actions .portal-primary-button--link,
.portal-equipment-row__actions .portal-secondary-button--link {
  margin: 0;
}

.portal-equipment-expansion {
  display: grid;
  gap: 18px;
  margin-top: 10px;
  padding: 22px;
  border: 1px solid rgba(18, 124, 166, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 139, 94, 0.12), transparent 20%),
    linear-gradient(135deg, #fbfdfe, #f4f9fc);
  overflow-x: clip;
}

.portal-equipment-active-callout {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(18, 124, 166, 0.16);
  background: rgba(18, 124, 166, 0.06);
}

.portal-equipment-active-callout--warning {
  border-color: rgba(234, 158, 62, 0.24);
  background: rgba(255, 191, 73, 0.12);
}

.portal-equipment-active-callout--danger {
  border-color: rgba(211, 88, 88, 0.22);
  background: rgba(211, 88, 88, 0.08);
}

.portal-equipment-active-callout--success {
  border-color: rgba(61, 163, 107, 0.22);
  background: rgba(61, 163, 107, 0.08);
}

.portal-equipment-active-callout__topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.portal-equipment-active-callout__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portal-equipment-active-callout__grid div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.portal-equipment-active-callout__grid span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-equipment-active-callout__grid strong,
.portal-equipment-active-callout__grid small {
  overflow-wrap: anywhere;
}

.portal-equipment-expansion__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.portal-equipment-expansion__copy {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1 1 320px;
}

.portal-equipment-expansion__copy h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.portal-equipment-expansion__grid,
.portal-equipment-expansion__forms,
.portal-equipment-expansion__tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-equipment-expansion__section {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--portal-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.portal-equipment-expansion__section h4 {
  margin: 0 0 14px;
  font-size: 20px;
}

.portal-equipment-expansion__section--form .portal-inline-form {
  padding: 0;
}

.portal-equipment-expansion__section--form .portal-inline-form label {
  min-width: 0;
}

.portal-inline-form__hint {
  margin: -2px 0 0;
  color: var(--portal-muted);
  font-size: 13px;
}

.portal-field-error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}

.portal-inline-help {
  position: relative;
  flex-shrink: 0;
}

.portal-inline-help > summary {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 124, 166, 0.12);
  color: var(--portal-primary-dark);
  font-weight: 800;
  box-shadow: none;
  cursor: pointer;
}

.portal-inline-help > summary::-webkit-details-marker {
  display: none;
}

.portal-inline-help__panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  width: min(540px, calc(100vw - 96px));
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(18, 124, 166, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.portal-inline-help[open] .portal-inline-help__panel {
  display: grid;
  gap: 14px;
}

.portal-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.portal-catalog-list {
  display: grid;
  gap: 12px;
}

.portal-catalog-item {
  padding: 16px;
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f7fbfd);
}

.portal-catalog-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.portal-catalog-item__content {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.portal-catalog-item__meta {
  margin: 6px 0 0;
  color: var(--portal-muted);
}

.portal-inline-details--catalog-create {
  margin-bottom: 16px;
}

.portal-inline-details--catalog-create summary {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(18, 124, 166, 0.12);
  color: var(--portal-primary-dark);
}

.portal-inline-details--chamado-create {
  display: grid;
  gap: 16px;
}

.portal-inline-details--chamado-create summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-inline-details__summary-open {
  display: none;
}

.portal-inline-details--chamado-create[open] .portal-inline-details__summary-open {
  display: inline;
}

.portal-inline-details--chamado-create[open] .portal-inline-details__summary-closed {
  display: none;
}

.portal-inline-details--chamado-create > *:not(summary) {
  margin-top: 4px;
}

.portal-form-errors {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(215, 75, 75, 0.18);
  background: rgba(255, 246, 246, 0.96);
}

.portal-inline-details--catalog-item {
  width: 100%;
  margin-top: 14px;
}

.portal-inline-details--catalog-item summary {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18, 124, 166, 0.1);
  color: var(--portal-primary-dark);
  font-size: 12px;
}

.portal-field-hint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}

.portal-catalog-import__hint {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-catalog-import-preview {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbfd, #ffffff);
}

.portal-catalog-import-preview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.portal-catalog-import-preview__header p {
  margin: 6px 0 0;
  color: var(--portal-muted);
}

.portal-catalog-import-preview__rows {
  display: grid;
  gap: 10px;
}

.portal-catalog-import-preview__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 159, 155, 0.06);
}

.portal-catalog-import-preview__row p {
  margin: 6px 0 0;
  color: var(--portal-muted);
}

.portal-inline-details--catalog-guide {
  margin-bottom: 16px;
}

.portal-inline-details--catalog-guide summary {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 139, 94, 0.12);
  color: var(--portal-primary-dark);
  font-size: 12px;
}

.portal-catalog-guide {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

.portal-catalog-guide__rows {
  display: grid;
  gap: 10px;
}

.portal-catalog-guide__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 139, 94, 0.07);
}

.portal-catalog-guide__row p,
.portal-catalog-guide__row small {
  display: block;
}

.portal-catalog-guide__row p {
  margin: 6px 0 0;
  color: var(--portal-muted);
}

.portal-catalog-guide__row small {
  margin-top: 6px;
  color: var(--portal-muted);
}

.portal-react-catalogs {
  display: grid;
  gap: 16px;
}

.portal-react-catalogs__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--portal-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.portal-react-catalogs__hero h1 {
  margin: 4px 0 6px;
  color: var(--portal-primary-dark);
  font-size: 34px;
  line-height: 1.08;
}

.portal-react-catalogs__hero span,
.portal-react-catalogs__panel-header span {
  color: var(--portal-muted);
  line-height: 1.45;
}

.portal-react-catalogs__hero > strong {
  display: inline-grid;
  min-width: 78px;
  min-height: 78px;
  place-items: center;
  border-radius: 20px;
  background: rgba(18, 124, 166, 0.1);
  color: var(--portal-primary-dark);
  font-size: 34px;
}

.portal-react-catalogs__summary {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.portal-react-catalogs__summary a {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(18, 124, 166, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--portal-primary-dark);
  text-decoration: none;
}

.portal-react-catalogs__summary strong {
  font-size: 20px;
}

.portal-react-catalogs__summary span {
  color: var(--portal-muted);
  font-size: 12px;
}

.portal-react-catalogs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portal-react-catalogs__panel {
  --catalog-accent: var(--portal-primary);
  --catalog-soft: #f3fbfd;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  height: min(690px, calc(100vh - 210px));
  min-height: 520px;
  padding: 18px;
  border-left: 5px solid var(--catalog-accent);
  background: linear-gradient(145deg, var(--catalog-soft), #ffffff 58%);
  overflow: hidden;
}

.portal-react-catalogs__panel--clientes {
  --catalog-accent: #127ca6;
  --catalog-soft: #edf8fc;
}

.portal-react-catalogs__panel--fabricantes {
  --catalog-accent: #45846f;
  --catalog-soft: #f0faf5;
}

.portal-react-catalogs__panel--tipos {
  --catalog-accent: #9a6a22;
  --catalog-soft: #fff8eb;
}

.portal-react-catalogs__panel--modelos {
  --catalog-accent: #b05672;
  --catalog-soft: #fff3f6;
}

.portal-react-catalogs__panel--formatos-contrato {
  --catalog-accent: #5370a6;
  --catalog-soft: #f1f5ff;
}

.portal-react-catalogs__panel--contratos {
  --catalog-accent: #0f9f9b;
  --catalog-soft: #eefcfb;
}

.portal-react-catalogs__panel--tipos-chamado {
  --catalog-accent: #c2673c;
  --catalog-soft: #fff5ef;
}

.portal-react-catalogs__panel--pecas-reposicao {
  --catalog-accent: #6a65aa;
  --catalog-soft: #f5f3ff;
}

.portal-react-catalogs__panel--problemas {
  --catalog-accent: #bf4b4b;
  --catalog-soft: #fff3f3;
}

.portal-react-catalogs__panel--acoes-corretivas {
  --catalog-accent: #567d2d;
  --catalog-soft: #f4faed;
}

.portal-react-catalogs__panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 82px;
}

.portal-react-catalogs__panel-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.portal-react-catalogs__panel-title > div {
  min-width: 0;
}

.portal-react-catalogs__panel-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--catalog-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.portal-react-catalogs__panel-header h3 {
  margin: 2px 0 4px;
  color: var(--portal-primary-dark);
}

.portal-react-catalogs__panel-header > strong {
  display: inline-grid;
  min-width: 48px;
  min-height: 44px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(18, 124, 166, 0.12);
  color: var(--portal-primary-dark);
  font-size: 22px;
}

.portal-react-catalogs__panel-body {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding-right: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.portal-react-catalogs__panel-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  align-items: start;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(18, 124, 166, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.portal-react-catalogs__search {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 8px;
  min-width: 0;
  margin: 0;
  color: var(--portal-primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.portal-react-catalogs__search input {
  grid-column: 1 / -1;
  min-height: 40px;
  border-color: rgba(18, 124, 166, 0.16);
  background: rgba(255, 255, 255, 0.94);
}

.portal-react-catalogs__search small {
  color: var(--portal-muted);
  font-weight: 700;
}

.portal-react-catalogs__new-details,
.portal-react-catalogs__new-button {
  align-self: start;
  justify-self: stretch;
  margin-top: 20px;
}

.portal-react-catalogs__new-details summary,
.portal-react-catalogs__new-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--catalog-accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.portal-react-catalogs__panel-actions {
  display: grid;
  gap: 8px;
}

.portal-react-catalogs__panel-actions .portal-inline-details--catalog-create {
  margin-bottom: 0;
}

.portal-react-catalogs__import-area {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.portal-react-catalogs__import-area > details {
  max-width: 100%;
}

.portal-react-catalogs__import-area .portal-inline-details--catalog-create summary,
.portal-react-catalogs__import-area .portal-inline-details--catalog-guide summary {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 124, 166, 0.12);
  color: var(--portal-primary-dark);
  font-size: 12px;
}

.portal-react-catalogs__import-area .portal-inline-details[open] {
  flex-basis: 100%;
}

.portal-react-catalogs__list {
  min-height: 0;
  overflow: visible;
}

.portal-react-catalogs__list::-webkit-scrollbar,
.portal-react-catalogs__panel-body::-webkit-scrollbar,
.portal-react-catalogs__checkbox-scroll::-webkit-scrollbar,
.portal-catalog-guide__rows::-webkit-scrollbar,
.portal-inline-details[open] .portal-react-catalogs__form::-webkit-scrollbar {
  width: 8px;
}

.portal-react-catalogs__list::-webkit-scrollbar-thumb,
.portal-react-catalogs__panel-body::-webkit-scrollbar-thumb,
.portal-react-catalogs__checkbox-scroll::-webkit-scrollbar-thumb,
.portal-catalog-guide__rows::-webkit-scrollbar-thumb,
.portal-inline-details[open] .portal-react-catalogs__form::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(18, 124, 166, 0.28);
}

.portal-react-catalogs__item {
  padding: 12px;
  border-radius: 14px;
}

.portal-react-catalogs__form {
  margin-top: 10px;
}

.portal-react-catalogs__create-body .portal-inline-form {
  padding: 0;
}

.portal-react-catalogs__create-body .portal-inline-form--operational {
  gap: 14px;
}

.portal-react-catalogs__create-body .portal-react-catalogs__form-grid > label,
.portal-react-catalogs__create-body .portal-react-catalogs__symbol-editor,
.portal-react-catalogs__create-body .portal-react-catalogs__support-material,
.portal-react-catalogs__create-body .portal-react-catalogs__checkbox-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(18, 124, 166, 0.12);
  border-radius: 14px;
  background: #f8fbfd;
  color: var(--portal-primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: none;
}

.portal-react-catalogs__create-body .portal-react-catalogs__form-grid > label {
  display: grid;
  align-content: start;
  gap: 8px;
}

.portal-react-catalogs__create-body .portal-react-catalogs__form-grid input,
.portal-react-catalogs__create-body .portal-react-catalogs__form-grid select,
.portal-react-catalogs__create-body .portal-react-catalogs__form-grid textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin-top: 0;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  padding: 8px 12px;
}

.portal-react-catalogs__create-body .portal-react-catalogs__form-grid input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.portal-react-catalogs__new-details[open] .portal-react-catalogs__form,
.portal-inline-details--catalog-item[open] .portal-react-catalogs__form {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.portal-react-catalogs__import-area .portal-inline-form--operational,
.portal-react-catalogs__import-area .portal-catalog-guide,
.portal-react-catalogs__import-area .portal-catalog-import-preview {
  max-width: 100%;
}

.portal-react-catalogs__import-area .portal-catalog-guide__rows {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.portal-react-catalogs__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-react-catalogs__form-grid--compact {
  grid-template-columns: minmax(240px, 1fr) 120px 120px;
  align-items: end;
}

.portal-react-catalogs__symbol-editor,
.portal-react-catalogs__support-material,
.portal-react-catalogs__checkbox-group {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: rgba(247, 251, 253, 0.82);
}

.portal-react-catalogs__symbol-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-react-catalogs__symbol-preview span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
}

.portal-react-catalogs__symbol-preview small,
.portal-react-catalogs__checkbox-group small {
  display: block;
  margin-top: 4px;
  color: var(--portal-muted);
}

.portal-react-catalogs__checkbox-group {
  border: 1px solid rgba(18, 124, 166, 0.16);
}

.portal-react-catalogs__checkbox-group legend,
.portal-react-catalogs__support-material legend {
  padding: 0 6px;
  color: var(--portal-primary-dark);
  font-weight: 800;
}

.portal-react-catalogs__checklist-items-field {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(18, 124, 166, 0.2);
  border-radius: 14px;
  background: rgba(247, 251, 253, 0.9);
}

.portal-react-catalogs__checklist-items-field > legend {
  padding: 0 6px;
  color: var(--portal-primary-dark);
  font-weight: 800;
}

.portal-react-catalogs__checklist-editor {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.portal-react-catalogs__checklist-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(0, 0.55fr) 132px auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
}

.portal-react-catalogs__checklist-row > label,
.portal-react-catalogs__checklist-row > div,
.portal-react-catalogs__checklist-row input,
.portal-react-catalogs__checklist-row select {
  min-width: 0;
  max-width: 100%;
}

.portal-react-catalogs__checklist-row input,
.portal-react-catalogs__checklist-row select {
  width: 100%;
}

.portal-react-catalogs__checklist-row > span {
  align-self: center;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--portal-primary-soft);
  color: var(--portal-primary-dark);
  font-weight: 800;
}

@media (max-width: 900px) {
  .portal-react-catalogs__checklist-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .portal-react-catalogs__checklist-row > label,
  .portal-react-catalogs__checklist-row > div {
    grid-column: 2;
  }
}

.portal-react-catalogs__checkbox-scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 156px;
  overflow-y: auto;
  padding-right: 4px;
}

.portal-react-catalogs__check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-text);
  font-weight: 700;
}

.portal-react-catalogs__check-option input {
  width: auto;
}

.portal-react-catalogs__check-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-react-catalogs__check-option--all {
  width: fit-content;
  background: rgba(18, 124, 166, 0.1);
  color: var(--portal-primary-dark);
}

.portal-react-catalogs__empty {
  padding: 18px;
  border: 1px dashed rgba(18, 124, 166, 0.24);
  border-radius: 16px;
  color: var(--portal-muted);
  text-align: center;
}

.portal-react-catalogs__create-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.portal-react-catalogs__create-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 35, 0.5);
  backdrop-filter: blur(2px);
}

.portal-react-catalogs__create-drawer {
  --catalog-accent: var(--portal-primary);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  width: min(900px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border: 1px solid rgba(210, 226, 235, 0.94);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(7, 21, 35, 0.3);
  overflow: hidden;
  padding: 0;
}

.portal-react-catalogs__create-drawer--clientes {
  --catalog-accent: #127ca6;
}

.portal-react-catalogs__create-drawer--fabricantes {
  --catalog-accent: #45846f;
}

.portal-react-catalogs__create-drawer--tipos {
  --catalog-accent: #9a6a22;
}

.portal-react-catalogs__create-drawer--modelos {
  --catalog-accent: #b05672;
}

.portal-react-catalogs__create-drawer--formatos-contrato {
  --catalog-accent: #5370a6;
}

.portal-react-catalogs__create-drawer--contratos {
  --catalog-accent: #0f9f9b;
}

.portal-react-catalogs__create-drawer--tipos-chamado {
  --catalog-accent: #c2673c;
}

.portal-react-catalogs__create-drawer--pecas-reposicao {
  --catalog-accent: #6a65aa;
}

.portal-react-catalogs__create-drawer--problemas {
  --catalog-accent: #bf4b4b;
}

.portal-react-catalogs__create-drawer--acoes-corretivas {
  --catalog-accent: #567d2d;
}

.portal-react-catalogs__create-drawer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  width: auto;
  background: var(--catalog-accent, var(--portal-primary));
}

.portal-react-catalogs__create-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--portal-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.portal-react-catalogs__create-header h2 {
  margin: 4px 0 0;
  color: var(--portal-primary-dark);
}

.portal-react-catalogs__create-close {
  border: 0;
  border-radius: 999px;
  background: #e5f3f6;
  color: var(--portal-accent-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 8px 12px;
}

.portal-react-catalogs__create-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 24px 24px;
  scrollbar-gutter: stable;
}

.portal-react-catalogs__create-body .portal-react-catalogs__form {
  margin-top: 0;
}

.portal-react-catalogs__create-body .portal-panel__actions {
  position: sticky;
  bottom: -24px;
  margin: 16px -24px -24px;
  padding: 14px 24px;
  border-top: 1px solid var(--portal-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.portal-react-catalogs__create-body::-webkit-scrollbar {
  width: 8px;
}

.portal-react-catalogs__create-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(18, 124, 166, 0.28);
}

@media (max-width: 1180px) {
  .portal-react-catalogs__summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .portal-react-catalogs__grid {
    grid-template-columns: 1fr;
  }

  .portal-react-catalogs__panel {
    height: min(720px, calc(100vh - 170px));
  }
}

@media (max-width: 720px) {
  .portal-react-catalogs__hero {
    display: grid;
  }

  .portal-react-catalogs__hero h1 {
    font-size: 28px;
  }

  .portal-react-catalogs__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-catalogs__form-grid,
  .portal-react-catalogs__form-grid--compact,
  .portal-react-catalogs__checkbox-scroll {
    grid-template-columns: 1fr;
  }

  .portal-react-catalogs__panel {
    height: min(720px, calc(100vh - 130px));
    min-height: 500px;
    padding: 14px;
  }

  .portal-react-catalogs__panel-tools {
    grid-template-columns: 1fr;
  }

  .portal-react-catalogs__new-details,
  .portal-react-catalogs__new-button {
    justify-self: start;
    margin-top: 0;
  }

  .portal-react-catalogs__create-drawer {
    width: 100%;
    max-height: calc(100vh - 20px);
  }

  .portal-react-catalogs__create-modal {
    padding: 10px;
  }
}

/* Portal redesign - Onda 3A: workspace denso de chamados */
.portal-react-tickets--workspace {
  display: grid;
  gap: 14px;
}

.portal-react-tickets__hero-focus {
  display: grid;
  max-width: 280px;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 159, 155, 0.22);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.76);
}

.portal-react-tickets__hero-focus strong {
  color: var(--portal-primary-dark);
  font-size: 13px;
}

.portal-react-tickets__hero-focus span {
  color: var(--portal-muted);
  font-size: 10px;
  line-height: 1.4;
}

.portal-react-tickets--workspace .portal-react-tickets__toolbar,
.portal-react-tickets--workspace .portal-react-tickets__status-rail,
.portal-react-tickets--workspace .portal-react-tickets__queue {
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: var(--portal-surface);
  box-shadow: var(--portal-shadow-soft);
}

.portal-react-tickets--workspace .portal-react-tickets__status-rail {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
}

.portal-react-tickets--workspace .portal-react-tickets__status-rail button {
  flex: 1 0 128px;
  min-height: 44px;
  border-radius: 11px;
  padding: 7px 9px;
}

.portal-react-tickets--workspace .portal-react-tickets__status-rail strong {
  min-width: 27px;
  height: 27px;
  font-size: 11px;
}

.portal-react-tickets--workspace .portal-react-tickets__route-support {
  display: block;
  padding: 0;
  border-radius: 16px;
  box-shadow: var(--portal-shadow-soft);
}

.portal-react-tickets--workspace .portal-react-tickets__route-support-head {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.portal-react-tickets--workspace .portal-react-tickets__route-support-head::-webkit-details-marker {
  display: none;
}

.portal-react-tickets--workspace .portal-react-tickets__route-support-head::after {
  content: "Expandir rota";
  align-self: center;
  color: var(--portal-primary-dark);
  font-size: 10px;
  font-weight: 800;
}

.portal-react-tickets--workspace .portal-react-tickets__route-support[open] .portal-react-tickets__route-support-head::after {
  content: "Recolher rota";
}

.portal-react-tickets--workspace .portal-react-tickets__route-support-grid {
  margin: 0 14px 14px;
  padding-top: 14px;
  border-top: 1px solid var(--portal-border);
}

.portal-react-tickets--workspace .portal-react-tickets__cards {
  grid-template-columns: 1fr;
  gap: 8px;
}

.portal-react-tickets--workspace .portal-react-tickets__card button {
  grid-template-columns: minmax(118px, 0.55fr) minmax(180px, 1.35fr) minmax(210px, 1fr) minmax(280px, 1.45fr);
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 11px 13px;
  border-radius: 13px;
}

.portal-react-tickets--workspace .portal-react-tickets__card-top {
  align-content: center;
  align-items: start;
  flex-direction: column;
}

.portal-react-tickets--workspace .portal-react-tickets__card-summary {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.portal-react-tickets--workspace .portal-react-tickets__card h3 {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-react-tickets--workspace .portal-react-tickets__card-summary > p:not(.portal-react-tickets__card-meta) {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.portal-react-tickets--workspace .portal-react-tickets__card-meta {
  font-size: 9px;
}

.portal-react-tickets--workspace .portal-react-tickets__card-badges {
  align-content: center;
  gap: 5px;
}

.portal-react-tickets--workspace .portal-react-tickets__card-badges span {
  padding: 4px 7px;
  font-size: 9px;
}

.portal-react-tickets--workspace .portal-react-tickets__card dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.portal-react-tickets--workspace .portal-react-tickets__card dl div {
  min-width: 0;
  padding: 6px 7px;
}

.portal-react-tickets--workspace .portal-react-tickets__card dt {
  font-size: 8px;
}

.portal-react-tickets--workspace .portal-react-tickets__card dd {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-react-tickets__load-more {
  justify-self: center;
  min-width: 260px;
}

@media (max-width: 1180px) {
  .portal-react-tickets--workspace .portal-react-tickets__card button {
    grid-template-columns: minmax(110px, 0.6fr) minmax(180px, 1.4fr) minmax(220px, 1fr);
  }

  .portal-react-tickets--workspace .portal-react-tickets__card dl {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portal-react-tickets__hero-focus {
    max-width: none;
  }

  .portal-react-tickets--workspace .portal-react-tickets__route-support-head {
    grid-template-columns: 1fr;
  }

  .portal-react-tickets--workspace .portal-react-tickets__route-support-metrics {
    display: none;
  }

  .portal-react-tickets--workspace .portal-react-tickets__card button {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
  }

  .portal-react-tickets--workspace .portal-react-tickets__card-top {
    align-self: start;
  }

  .portal-react-tickets--workspace .portal-react-tickets__card-summary,
  .portal-react-tickets--workspace .portal-react-tickets__card dl {
    grid-column: 1 / -1;
  }

  .portal-react-tickets--workspace .portal-react-tickets__card-badges {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .portal-react-tickets--workspace .portal-react-tickets__card-badges span:not(.is-danger) {
    display: none;
  }

  .portal-react-tickets--workspace .portal-react-tickets__card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-tickets__load-more {
    width: 100%;
    min-width: 0;
  }
}

.portal-react-catalogs {
  display: grid;
  gap: 12px;
}

.portal-react-catalogs__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.portal-react-catalogs__hero-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.portal-react-catalogs__hero h1 {
  margin: 2px 0 4px;
  color: var(--portal-primary-dark);
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: 0;
}

.portal-react-catalogs__hero span {
  color: var(--portal-muted);
  line-height: 1.4;
}

.portal-react-catalogs__hero > strong {
  display: inline-grid;
  min-width: 54px;
  min-height: 44px;
  place-items: center;
  border: 1px solid #cfe0ea;
  border-radius: 8px;
  background: #f5f9fb;
  color: var(--portal-primary-dark);
  font-size: 22px;
}

.portal-react-catalogs__workspace {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: min(720px, calc(100vh - 188px));
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.portal-react-catalogs__workspace-nav,
.portal-react-catalogs__workspace-side {
  min-width: 0;
  background: #f7fafc;
}

.portal-react-catalogs__workspace-nav {
  border-right: 1px solid var(--portal-border);
  padding: 14px;
  overflow: auto;
}

.portal-react-catalogs__nav-section + .portal-react-catalogs__nav-section {
  margin-top: 16px;
}

.portal-react-catalogs__nav-section > strong {
  display: block;
  margin: 0 0 8px;
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-react-catalogs__nav-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--portal-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.portal-react-catalogs__nav-item + .portal-react-catalogs__nav-item {
  margin-top: 3px;
}

.portal-react-catalogs__nav-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-react-catalogs__nav-item b {
  color: var(--portal-muted);
  font-size: 12px;
}

.portal-react-catalogs__nav-item:hover,
.portal-react-catalogs__nav-item.is-active {
  border-color: #cfe0ea;
  background: #ffffff;
  color: var(--portal-primary-dark);
  font-weight: 800;
}

.portal-react-catalogs__workspace-main {
  --catalog-accent: var(--portal-primary);
  --catalog-soft: #f5f9fb;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: #ffffff;
  overflow: hidden;
}

.portal-react-catalogs__workspace-side {
  --catalog-accent: var(--portal-primary);
  --catalog-soft: #f5f9fb;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border-left: 1px solid var(--portal-border);
  padding: 14px;
  overflow: auto;
}

.portal-react-catalogs__panel-header {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.portal-react-catalogs__panel-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.portal-react-catalogs__panel-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  margin-top: 1px;
  border: 1px solid color-mix(in srgb, var(--catalog-accent) 34%, #ffffff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--catalog-accent) 12%, #ffffff);
  color: var(--catalog-accent);
  font-size: 9px;
  font-weight: 900;
}

.portal-react-catalogs__panel-title h2 {
  margin: 0 0 4px;
  color: var(--portal-primary-dark);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.portal-react-catalogs__panel-title span {
  display: block;
  color: var(--portal-muted);
  line-height: 1.4;
}

.portal-react-catalogs__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portal-react-catalogs__metrics article {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  background: #ffffff;
}

.portal-react-catalogs__metrics strong {
  display: inline;
  color: var(--portal-primary-dark);
  font-size: 14px;
  line-height: 1;
}

.portal-react-catalogs__metrics span {
  color: var(--portal-muted);
  font-size: 12px;
}

.portal-react-catalogs__panel-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #f8fbfd;
}

.portal-react-catalogs__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  min-width: 0;
  margin: 0;
  color: var(--portal-primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.portal-react-catalogs__search input {
  grid-column: 1 / -1;
  min-height: 36px;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  background: #ffffff;
}

.portal-react-catalogs__search small {
  color: var(--portal-muted);
}

.portal-react-catalogs__tools-meta {
  display: grid;
  min-width: 128px;
  padding: 8px 10px;
  border: 1px solid #d8e8ef;
  border-radius: 8px;
  background: #ffffff;
}

.portal-react-catalogs__tools-meta strong {
  color: var(--portal-primary-dark);
  font-size: 18px;
}

.portal-react-catalogs__tools-meta span {
  color: var(--portal-muted);
  font-size: 12px;
}

.portal-react-catalogs__create-action {
  min-height: 40px;
  white-space: nowrap;
}

.portal-react-catalogs__action-strip {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #fbfdff;
}

.portal-react-catalogs__action-strip h3 {
  margin: 2px 0 0;
  color: var(--portal-primary-dark);
  font-size: 15px;
  letter-spacing: 0;
}

.portal-react-catalogs__action-strip .portal-react-catalogs__import-area {
  align-self: center;
}

.portal-react-catalogs__list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.portal-react-catalogs__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.portal-react-catalogs__item .portal-catalog-item__header {
  align-items: flex-start;
}

.portal-react-catalogs__item .portal-catalog-item__content strong {
  color: var(--portal-primary-dark);
  font-size: 14px;
}

.portal-react-catalogs__item .portal-catalog-item__meta {
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 12px;
}

.portal-catalog-item__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
}

.portal-inline-details--catalog-item {
  margin-top: 8px;
}

.portal-inline-details--catalog-item summary {
  min-height: 32px;
  border-radius: 6px;
}

.portal-react-catalogs__side-block {
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.portal-react-catalogs__side-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  margin-bottom: 10px;
}

.portal-react-catalogs__side-title h3 {
  margin: 2px 0 0;
  color: var(--portal-primary-dark);
  font-size: 16px;
  letter-spacing: 0;
}

.portal-react-catalogs__side-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #bfe7df;
  border-radius: 999px;
  background: #e9f8f5;
  color: #0a746b;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 9px;
  white-space: nowrap;
}

.portal-react-catalogs__side-action {
  width: 100%;
  margin-top: 12px;
}

.portal-react-catalogs__import-area {
  display: grid;
  gap: 8px;
}

.portal-react-catalogs__import-area > details {
  max-width: 100%;
}

.portal-react-catalogs__import-area .portal-inline-details--catalog-create summary,
.portal-react-catalogs__import-area .portal-inline-details--catalog-guide summary {
  min-height: 34px;
  width: 100%;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 6px;
  background: #f8fbfd;
  border: 1px solid var(--portal-border);
  color: var(--portal-primary-dark);
  font-size: 12px;
}

.portal-react-catalogs__import-area .portal-inline-form--operational,
.portal-react-catalogs__import-area .portal-catalog-guide,
.portal-react-catalogs__import-area .portal-catalog-import-preview {
  max-width: 100%;
}

.portal-react-catalogs__import-area .portal-catalog-guide__rows {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.portal-react-catalogs__side-block--form .portal-react-catalogs__form {
  margin-top: 0;
}

.portal-react-catalogs__side-block--form .portal-inline-form--operational {
  gap: 12px;
  padding: 0;
}

.portal-react-catalogs__side-block--form .portal-react-catalogs__form-grid,
.portal-react-catalogs__side-block--form .portal-react-catalogs__form-grid--compact,
.portal-react-catalogs__side-block--form .portal-react-catalogs__checkbox-scroll {
  grid-template-columns: 1fr;
}

.portal-react-catalogs__side-block--form .portal-react-catalogs__form-grid > label,
.portal-react-catalogs__side-block--form .portal-react-catalogs__symbol-editor,
.portal-react-catalogs__side-block--form .portal-react-catalogs__support-material,
.portal-react-catalogs__side-block--form .portal-react-catalogs__checkbox-group {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--portal-primary-dark);
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.portal-react-catalogs__side-block--form .portal-panel__actions {
  position: sticky;
  bottom: -12px;
  margin: 12px -12px -12px;
  padding: 12px;
  border-top: 1px solid var(--portal-border);
  background: rgba(255, 255, 255, 0.96);
}

.portal-react-catalogs__empty {
  padding: 18px;
  border: 1px dashed #b9ccd6;
  border-radius: 8px;
  color: var(--portal-muted);
  text-align: center;
}

@media (max-width: 1240px) {
  .portal-react-catalogs__workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .portal-react-catalogs__hero,
  .portal-react-catalogs__workspace,
  .portal-react-catalogs__panel-tools,
  .portal-react-catalogs__action-strip {
    grid-template-columns: 1fr;
  }

  .portal-react-catalogs__workspace {
    min-height: 0;
  }

  .portal-react-catalogs__workspace-nav {
    border-right: 0;
    border-bottom: 1px solid var(--portal-border);
  }

  .portal-react-catalogs__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-catalogs__item {
    grid-template-columns: 1fr;
  }

  .portal-catalog-item__actions {
    justify-content: flex-start;
  }

  .portal-react-catalogs__hero > strong {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .portal-react-catalogs__hero-title {
    align-items: flex-start;
  }

  .portal-react-catalogs__hero h1 {
    font-size: 21px;
  }

  .portal-react-catalogs__metrics {
    grid-template-columns: 1fr;
  }
}

/* Portal redesign - Onda 3B: casos em lista expansivel */
.portal-react-analysis__case {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.portal-react-analysis__case-header {
  position: relative;
  align-items: center;
  padding: 14px 48px 14px 16px;
  cursor: pointer;
  list-style: none;
}

.portal-react-analysis__case-header::-webkit-details-marker {
  display: none;
}

.portal-react-analysis__case-header::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: #e9f4f7;
  color: var(--portal-primary-dark);
  font-size: 17px;
  font-weight: 800;
  transform: translateY(-50%);
  place-items: center;
}

.portal-react-analysis__case[open] .portal-react-analysis__case-header::after {
  content: "−";
}

.portal-react-analysis__case-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--portal-border);
}

.portal-react-analysis__case:not([open]) .portal-react-analysis__case-header {
  min-height: 68px;
}

.portal-react-analysis__case.is-acknowledged:not([open]) {
  opacity: 0.82;
}

@media (max-width: 720px) {
  .portal-react-analysis__case-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-react-analysis__case-header .portal-badge-cloud {
    padding-right: 0;
  }
}

/* Portal redesign - Onda 3B: equipamentos com acoes progressivas */
.portal-react-assets__hero-more {
  position: relative;
}

.portal-react-assets__hero-more > summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  cursor: pointer;
  list-style: none;
}

.portal-react-assets__hero-more > summary::-webkit-details-marker {
  display: none;
}

.portal-react-assets__hero-more > div {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  min-width: 210px;
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 34, 56, 0.16);
  padding: 6px;
}

.portal-react-assets__hero-more > div a,
.portal-react-assets__hero-more > div button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--portal-ink);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 10px;
  text-align: left;
}

.portal-react-assets__hero-more > div a:hover,
.portal-react-assets__hero-more > div a:focus-visible,
.portal-react-assets__hero-more > div button:hover,
.portal-react-assets__hero-more > div button:focus-visible {
  outline: none;
  background: #edf7f8;
  color: var(--portal-primary-dark);
}

.portal-react-assets__list {
  max-height: 760px;
  overflow: auto;
  scrollbar-width: thin;
}

@media (max-width: 720px) {
  .portal-react-assets__hero-actions,
  .portal-react-assets__hero-actions > * {
    width: 100%;
  }

  .portal-react-assets__hero-more > summary {
    justify-content: center;
  }

  .portal-react-assets__hero-more > div {
    right: auto;
    left: 0;
    width: 100%;
  }
}

/* Portal redesign - Onda 4: operacao complementar */
.portal-react-seals [hidden],
.portal-react-catalogs [hidden] {
  display: none !important;
}

.portal-workspace-tabs > button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--portal-muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.portal-workspace-tabs > button:hover,
.portal-workspace-tabs > button:focus-visible,
.portal-workspace-tabs > button.is-active {
  outline: none;
  background: var(--portal-primary-dark);
  color: #fff;
}

.portal-workspace-tabs > button span {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 9px;
  place-items: center;
}

.portal-react-seals > .portal-workspace-tabs {
  position: sticky;
  z-index: 8;
  top: 8px;
  padding: 7px;
  border-radius: 16px;
  box-shadow: var(--portal-shadow-soft);
}

.portal-react-seals .portal-react-seals__metrics:not([hidden]) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.portal-react-seals__package-list,
.portal-react-seals__table,
.portal-catalog-list {
  max-height: 720px;
  overflow: auto;
  scrollbar-width: thin;
}

.portal-community__hero-tools {
  display: grid;
  min-width: min(620px, 52vw);
  gap: 8px;
  justify-items: end;
}

.portal-community__hero-tools .portal-react-seals__filters {
  width: 100%;
}

.portal-react-seals:has(.portal-community__hero-tools) .portal-workspace-hero {
  align-items: stretch;
  flex-direction: column;
}

.portal-react-seals:has(.portal-community__hero-tools) .portal-workspace-hero__actions {
  width: 100%;
}

.portal-community__workspace-grid--topics {
  grid-template-columns: 1fr;
}

.portal-community__workspace-grid--topics .portal-react-seals__package-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.portal-react-catalogs__hero-total {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: 12px;
  background: #edf7f8;
  color: var(--portal-primary-dark);
  padding: 9px 13px;
  white-space: nowrap;
}

.portal-react-catalogs__list {
  max-height: 720px;
  overflow: auto;
  scrollbar-width: thin;
}

@media (max-width: 1180px) {
  .portal-react-seals .portal-react-seals__metrics:not([hidden]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portal-react-seals .portal-react-seals__metrics:not([hidden]) {
    grid-template-columns: 1fr;
  }

  .portal-react-seals > .portal-workspace-tabs {
    top: 4px;
  }

  .portal-community__hero-tools {
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }

  .portal-react-catalogs__workspace-nav {
    max-height: 260px;
  }
}

.portal-field-hint-row .portal-inline-help > summary {
  width: 28px;
  min-height: 28px;
  padding: 0;
  justify-content: center;
}

.portal-sidebar-collapsed .portal-shell {
  grid-template-columns: 188px 1fr;
}

.portal-sidebar-collapsed .portal-sidebar {
  padding-inline: 14px;
}

.portal-sidebar-collapsed .portal-sidebar__brand-copy,
.portal-sidebar-collapsed .portal-sidebar__controls-label,
.portal-sidebar-collapsed .portal-nav__group-label,
.portal-sidebar-collapsed .portal-nav a small {
  display: none;
}

.portal-sidebar-collapsed .portal-nav a {
  padding-inline: 12px;
}

.portal-sidebar-collapsed .portal-nav a.portal-nav__item--highlight {
  box-shadow: inset 0 -3px 0 #4dd2a8;
}

.portal-sidebar-collapsed .portal-sidebar__masthead,
.portal-sidebar-collapsed .portal-sidebar__controls {
  justify-items: center;
  justify-content: center;
}

.portal-sidebar-collapsed .portal-sidebar__brand {
  justify-items: center;
}

.portal-sidebar-collapsed .portal-sidebar__controls {
  padding-inline: 0;
}

.portal-sidebar-collapsed .portal-sidebar__brand-pill {
  margin-inline: auto;
}

.portal-sidebar-collapsed .portal-nav a strong {
  font-size: 13px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  text-align: center;
}

.portal-floating-tools {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-help-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--portal-secondary), #ffb26b);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(209, 73, 91, 0.18);
  cursor: pointer;
  text-decoration: none;
}

.portal-help-fab__icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.portal-help-panel {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 45;
  width: min(440px, calc(100vw - 28px));
  max-height: min(76vh, 720px);
  display: grid;
  gap: 18px;
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(15, 79, 107, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 139, 94, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 254, 0.98));
  box-shadow: 0 28px 60px rgba(19, 34, 56, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.portal-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: block;
  background: rgba(19, 34, 56, 0.16);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  text-decoration: none;
}

.portal-help-panel:target {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.portal-help-panel:target + .portal-help-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.portal-help-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.portal-help-panel__header h2 {
  margin: 6px 0 0;
  font-size: 26px;
  line-height: 1.05;
}

.portal-help-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 79, 107, 0.08);
  color: var(--portal-primary-dark);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.portal-help-panel__body {
  display: grid;
  gap: 16px;
}

.portal-help-panel__section {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 79, 107, 0.08);
}

.portal-help-panel__section p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.6;
}

.portal-help-panel__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--portal-ink);
}

.portal-help-panel__list li {
  line-height: 1.55;
}

.portal-detail-list {
  display: grid;
  gap: 16px;
}

.portal-filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--portal-border);
  background: linear-gradient(135deg, #ffffff, #f7fbfd);
  color: var(--portal-primary-dark);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.portal-filter-chip small {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 600;
}

.portal-filter-chip strong {
  display: inline-flex;
  min-width: 28px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 159, 155, 0.12);
  color: var(--portal-primary-dark);
  font-size: 12px;
}

.portal-filter-chip.is-active {
  border-color: rgba(15, 79, 107, 0.24);
  background: linear-gradient(135deg, rgba(15, 159, 155, 0.12), rgba(255, 255, 255, 0.98));
}

.portal-filter-chip--warning strong {
  background: rgba(245, 158, 11, 0.16);
}

.portal-detail-list div {
  display: grid;
  gap: 6px;
}

.portal-detail-list dt {
  color: var(--portal-muted);
  font-size: 13px;
  font-weight: 700;
}

.portal-detail-list dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.portal-bullet-list {
  display: grid;
  gap: 14px;
  padding-left: 20px;
  margin: 0;
}

.portal-filter-form,
.portal-user-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-filter-form input,
.portal-filter-form select,
.portal-user-form select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--portal-border);
  background: #fff;
}

.portal-filter-form input {
  flex: 1 1 240px;
}

.portal-filter-form__actions {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-grid--split {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.portal-data-card {
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  padding: 16px;
}

.portal-data-card h3 {
  color: var(--portal-ink);
  font-size: 0.95rem;
  margin: 0 0 12px;
}

@media (max-width: 860px) {
  .portal-grid--split {
    grid-template-columns: 1fr;
  }
}

.portal-users-table-wrapper {
  overflow: auto;
}

.portal-users-table {
  width: 100%;
  border-collapse: collapse;
}

.portal-users-table th,
.portal-users-table td {
  padding: 16px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--portal-border);
  text-align: left;
}

.portal-user-summary-row > td {
  border-bottom: none;
}

.portal-user-actions-row > td {
  background: linear-gradient(180deg, rgba(244, 249, 252, 0.78) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-bottom: 1px solid var(--portal-border);
  padding-top: 0;
}

.portal-users-table p {
  margin: 6px 0 0;
  color: var(--portal-muted);
}

.portal-contingency-row--pending td {
  background: linear-gradient(90deg, rgba(209, 73, 91, 0.1), rgba(198, 134, 24, 0.1));
  border-bottom-color: rgba(209, 73, 91, 0.28);
}

.portal-contingency-row--pending td:first-child {
  border-left: 4px solid var(--portal-danger);
}

.portal-contingency-pending-badges {
  margin-bottom: 8px;
}

.portal-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.portal-data-grid > div {
  padding: 14px 16px;
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.portal-data-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--portal-ink);
}

.portal-release-panel {
  display: grid;
  gap: 18px;
}

.portal-release-summary {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.portal-release-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  min-height: 136px;
  padding: 16px;
}

.portal-release-card span {
  color: var(--portal-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-release-card strong {
  color: var(--portal-ink);
  display: block;
  font-size: 1.28rem;
  margin-top: 10px;
}

.portal-release-card small {
  color: var(--portal-muted);
  display: block;
  line-height: 1.55;
  margin-top: 8px;
}

.portal-release-card--success {
  background: rgba(31, 122, 77, 0.1);
  border-color: rgba(31, 122, 77, 0.22);
}

.portal-release-card--warning {
  background: rgba(183, 121, 31, 0.1);
  border-color: rgba(183, 121, 31, 0.24);
}

.portal-release-card--danger {
  background: rgba(192, 57, 43, 0.1);
  border-color: rgba(192, 57, 43, 0.24);
}

.portal-release-card--muted {
  background: #f3f6f9;
}

.portal-release-rules {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-release-rules > div {
  background: rgba(237, 246, 251, 0.76);
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  padding: 14px 16px;
}

.portal-release-rules strong {
  color: var(--portal-primary-dark);
  display: block;
  margin-bottom: 6px;
}

.portal-release-rules p,
.portal-release-table p {
  color: var(--portal-muted);
  line-height: 1.45;
  margin: 6px 0 0;
}

.portal-release-table th:nth-child(1) {
  min-width: 190px;
}

.portal-release-table th:nth-child(5) {
  min-width: 260px;
}

@media (max-width: 980px) {
  .portal-release-rules {
    grid-template-columns: 1fr;
  }
}

.portal-users-table--permissions th:nth-child(2),
.portal-users-table--permissions th:nth-child(3),
.portal-users-table--permissions td:nth-child(2),
.portal-users-table--permissions td:nth-child(3) {
  width: 110px;
  text-align: center;
}

.portal-primary-button,
.portal-secondary-button,
.portal-ghost-button {
  min-height: 46px;
  border-radius: 14px;
  border: none;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.portal-primary-button {
  background: var(--portal-primary-dark);
  color: white;
}

.portal-primary-button--warning {
  background: #b45309;
}

.portal-primary-button--success {
  background: #176543;
}

.portal-primary-button--danger {
  background: #8c1d2b;
}

.portal-secondary-button {
  background: rgba(18, 124, 166, 0.12);
  color: var(--portal-primary-dark);
}

.portal-secondary-button--accent {
  background: rgba(18, 124, 166, 0.16);
  color: var(--portal-primary-dark);
}

.portal-secondary-button--warning {
  background: rgba(255, 178, 102, 0.2);
  color: #8a4b00;
}

.portal-secondary-button--success {
  background: rgba(61, 163, 107, 0.18);
  color: #176543;
}

.portal-secondary-button--danger {
  background: rgba(211, 88, 88, 0.16);
  color: #8c1d2b;
}

.portal-ghost-button {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.portal-primary-button--link,
.portal-secondary-button--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portal-primary-button.is-disabled,
.portal-secondary-button.is-disabled,
.portal-ghost-button.is-disabled {
  opacity: 0.56;
  pointer-events: none;
}

.portal-action-stack {
  display: grid;
  gap: 12px;
  max-width: 100%;
}

.portal-user-actions-heading {
  display: grid;
  gap: 4px;
  color: var(--portal-ink);
}

.portal-user-actions-heading span {
  color: var(--portal-muted);
  font-size: 13px;
}

.portal-user-actions-row .portal-user-form {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(130px, 170px) minmax(190px, 240px) minmax(280px, 1fr) auto;
}

.portal-user-actions-row .portal-user-form select {
  width: 100%;
}

.portal-user-actions-row .portal-user-form select[multiple] {
  min-height: 86px;
  padding: 10px 12px;
}

.portal-user-actions-row .portal-user-form .portal-secondary-button {
  white-space: nowrap;
}

.portal-panel--users-directory {
  overflow: hidden;
}

.portal-users-directory {
  display: grid;
  gap: 16px;
}

.portal-react-users {
  display: grid;
  gap: 18px;
}

.portal-react-users__hero,
.portal-react-users__create,
.portal-react-users__access-requests,
.portal-react-users__consent {
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: var(--portal-surface);
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.08);
}

.portal-react-users__hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
}

.portal-react-users__hero h1 {
  margin: 4px 0;
}

.portal-react-users__hero p {
  margin: 0;
  color: var(--portal-muted);
}

.portal-react-users__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.portal-react-users__summary-card {
  padding: 14px;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: #f8fbfd;
}

.portal-react-users__summary-card span {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-users__summary-card strong {
  display: block;
  margin-top: 4px;
  color: var(--portal-ink);
  font-size: 1.6rem;
}

.portal-react-users__create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.portal-react-users__create strong {
  display: block;
  color: var(--portal-ink);
}

.portal-react-users__create-header {
  display: grid;
  gap: 4px;
}

.portal-react-users__create-header p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.9rem;
}

.portal-react-users__access-requests {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.portal-react-users__section-heading--flush {
  border-top: 0;
  padding-top: 0;
}

.portal-access-request-list {
  display: grid;
  gap: 12px;
}

.portal-access-request-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  padding: 16px;
}

.portal-access-request-card__summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--portal-border);
}

.portal-access-request-card__identity {
  display: flex;
  gap: 14px;
  min-width: 0;
}

.portal-access-request-card__identity strong {
  display: block;
  color: var(--portal-ink);
  overflow-wrap: anywhere;
}

.portal-access-request-card__identity p {
  color: var(--portal-muted);
  margin: 4px 0 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.portal-access-request-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.portal-access-request-card__meta span {
  border-radius: 999px;
  background: rgba(18, 124, 166, 0.08);
  color: var(--portal-primary-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.portal-access-request-card__body {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
}

.portal-access-request-card__request,
.portal-access-request-card__approval {
  display: grid;
  gap: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.portal-access-request-card__request {
  align-content: start;
}

.portal-access-request-card__request p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.portal-access-request-card__approval-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.portal-access-request-card__approval-heading strong {
  display: block;
  color: var(--portal-ink);
  font-size: 16px;
}

.portal-access-request-card__approval-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.3fr) minmax(260px, 1fr);
  gap: 12px;
}

.portal-access-request-card__approval label,
.portal-access-request-card__reject label {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-access-request-card__approval select,
.portal-access-request-card__approval textarea,
.portal-access-request-card__reject textarea {
  width: 100%;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
}

.portal-access-request-card__approval select {
  min-height: 46px;
}

.portal-access-request-card__footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.portal-access-request-card__footer .portal-primary-button {
  min-width: 260px;
}

.portal-access-request-card__reject {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(211, 88, 88, 0.22);
  border-radius: 14px;
  background: rgba(211, 88, 88, 0.04);
  padding: 12px;
}

.portal-access-request-card__reject .portal-secondary-button {
  justify-self: end;
}

.portal-contract-scope-panel--access-request {
  padding: 12px;
}

.portal-contract-scope-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid var(--portal-border);
  padding-bottom: 12px;
}

.portal-contract-scope-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-contract-scope-toolbar input[type="search"] {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  font-weight: 700;
  padding: 0 12px;
}

.portal-contract-scope-toolbar__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.portal-contract-picker--access-request {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-height: 310px;
  padding: 2px 4px 2px 0;
}

.portal-contract-picker--access-request .portal-contract-option {
  min-height: 58px;
}

.portal-react-users__create-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--portal-border);
}

.portal-react-users__create-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  align-items: start;
}

.portal-react-users__provisioning-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1fr);
  gap: 12px;
  align-items: start;
}

.portal-react-users__password-card,
.portal-react-users__option-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: rgba(248, 251, 253, 0.9);
}

.portal-react-users__password-card small {
  color: var(--portal-muted);
  line-height: 1.35;
}

.portal-react-users__password-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.portal-react-users__create-form label,
.portal-react-users__create-checks label {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-react-users__create-form input:not([type="checkbox"]),
.portal-react-users__create-form select,
.portal-react-users__search select {
  height: 46px;
  width: 100%;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  font-weight: 700;
  padding: 0 14px;
}

.portal-react-users__create-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.portal-react-users__create-checks label {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-ink);
  line-height: 1.2;
}

.portal-react-users__create-checks input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--portal-primary);
}

.portal-react-users__create-checks label:has(input:disabled) {
  opacity: 0.64;
}

.portal-react-users__mode-option {
  grid-column: 1 / -1;
  background: #eef8fb !important;
}

.portal-react-users__create-form .portal-contract-scope-panel,
.portal-react-users__create-form .portal-user-card__action-row {
  grid-column: 1 / -1;
}

.portal-react-users__toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(160px, 0.35fr) minmax(150px, 0.32fr) auto;
  gap: 14px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: rgba(244, 249, 252, 0.88);
}

.portal-react-users__search {
  display: grid;
  gap: 8px;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-react-users__search input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  font-weight: 700;
  padding: 0 14px;
}

.portal-react-users__consent {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.portal-react-users__consent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.portal-react-users__consent-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
}

.portal-react-users__consent-card strong {
  display: block;
  color: var(--portal-ink);
}

.portal-react-users__consent-card p,
.portal-react-users__consent-card small {
  margin: 0;
  color: var(--portal-muted);
}


.portal-react-users__counter {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  white-space: nowrap;
}

.portal-react-users__counter strong {
  color: var(--portal-primary-dark);
  font-size: 18px;
}

.portal-react-users__counter span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-react-users__directory {
  overflow: visible;
  padding-right: 0;
}

.portal-react-users__empty {
  border: 1px dashed var(--portal-border);
  border-radius: 8px;
  background: rgba(244, 249, 252, 0.72);
  color: var(--portal-muted);
  font-weight: 800;
  padding: 18px;
}

.portal-react-users__roles {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.portal-react-users__section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  border-top: 1px solid var(--portal-border);
  padding-top: 18px;
}

.portal-react-users__section-heading strong {
  display: block;
  color: var(--portal-ink);
  font-size: 18px;
}

.portal-react-users__section-heading span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-grid--role-permissions-react {
  margin-top: 0;
}

.portal-role-permission-card {
  padding: 0;
  overflow: hidden;
}

.portal-role-permission-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  color: var(--portal-ink);
  font-weight: 900;
}

.portal-role-permission-card > summary::-webkit-details-marker {
  display: none;
}

.portal-role-permission-card > summary::after {
  content: "+";
  color: var(--portal-primary-dark);
  font-size: 22px;
  line-height: 1;
}

.portal-role-permission-card[open] > summary::after {
  content: "-";
}

.portal-role-permission-card > .portal-panel__support,
.portal-role-permission-card > .portal-permissions-form {
  margin: 0 20px 18px;
}

.portal-user-card {
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfe 100%);
  overflow: hidden;
}

.portal-user-card__main {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.25fr)
    minmax(180px, 0.9fr)
    minmax(140px, 0.5fr)
    minmax(220px, 1fr)
    minmax(136px, auto);
  gap: 18px;
  padding: 18px;
  align-items: start;
}

.portal-user-card__main > * {
  min-width: 0;
}

.portal-user-card__identity {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.portal-user-card__identity strong {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.portal-user-card__identity p,
.portal-user-card__support,
.portal-user-card__meta span,
.portal-contract-option small {
  color: var(--portal-muted);
}

.portal-user-card__identity p,
.portal-user-card__support {
  margin: 6px 0 0;
  line-height: 1.45;
}

.portal-user-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(18, 124, 166, 0.12);
  color: var(--portal-primary-dark);
  font-weight: 900;
}

.portal-user-card__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-user-card__meta {
  display: grid;
  gap: 5px;
}

.portal-user-card__meta strong {
  font-size: 15px;
}

.portal-user-card__section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.portal-user-card__section-title span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-contract-chip-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-contract-chip-list span {
  border-radius: 999px;
  background: rgba(15, 159, 155, 0.12);
  color: var(--portal-primary-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.portal-user-card__actions {
  border-top: 1px solid var(--portal-border);
  background: rgba(244, 249, 252, 0.78);
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.portal-user-governance-form {
  display: grid;
  gap: 14px;
}

.portal-technical-team-form {
  display: grid;
  gap: 14px;
}

.portal-technical-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.portal-technical-team-contract {
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.portal-contract-picker--team {
  grid-template-columns: 1fr;
  max-height: 220px;
}

.portal-user-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
}

.portal-user-form-grid label,
.portal-contract-scope-panel {
  display: grid;
  gap: 8px;
}

.portal-user-form-grid label {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-user-form-grid select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--portal-border);
  background: #fff;
  color: var(--portal-ink);
  font-weight: 700;
}

.portal-contract-scope-panel {
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.portal-contract-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.portal-contract-picker--create {
  margin-top: 6px;
}

.portal-contract-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  min-width: 0;
}

.portal-contract-option input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--portal-primary-dark);
}

.portal-contract-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.portal-contract-option strong,
.portal-contract-option small {
  overflow-wrap: anywhere;
}

.portal-contract-option small {
  line-height: 1.35;
}

.portal-user-card__action-row {
  display: flex;
  justify-content: flex-end;
}

.portal-user-card__quick-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 0;
}

.portal-user-card__quick-actions .portal-secondary-button {
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 1500px) {
  .portal-user-card__main {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  }

  .portal-user-card__contracts {
    grid-column: 1 / -1;
  }

  .portal-user-card__quick-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1280px) {
  .portal-access-request-card__body,
  .portal-access-request-card__approval-grid,
  .portal-access-request-card__reject,
  .portal-contract-scope-toolbar,
  .portal-react-users__provisioning-grid {
    grid-template-columns: 1fr;
  }

  .portal-access-request-card__footer .portal-primary-button {
    width: 100%;
    min-width: 0;
  }

  .portal-access-request-card__footer,
  .portal-contract-scope-toolbar__actions {
    justify-content: stretch;
    flex-direction: column-reverse;
  }

  .portal-contract-scope-toolbar__actions .portal-secondary-button,
  .portal-access-request-card__footer .portal-secondary-button {
    width: 100%;
  }
}

@media (max-width: 780px) {
  .portal-react-users__toolbar,
  .portal-react-users__hero,
  .portal-react-users__create,
  .portal-react-users__create-form,
  .portal-react-users__create-grid,
  .portal-react-users__password-fields,
  .portal-user-card__main,
  .portal-user-form-grid {
    grid-template-columns: 1fr;
  }

  .portal-react-users__create-checks {
    grid-template-columns: 1fr;
  }

  .portal-react-users__counter {
    justify-content: space-between;
    white-space: normal;
  }

  .portal-react-users__directory {
    padding-right: 0;
  }

  .portal-react-users__section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-user-card__section-title,
  .portal-user-card__action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-user-card__action-row .portal-primary-button {
    width: 100%;
  }

  .portal-user-card__quick-actions .portal-secondary-button {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .portal-user-actions-row .portal-user-form {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  .portal-user-actions-row .portal-user-form {
    grid-template-columns: 1fr;
  }
}

.portal-react-profile,
.portal-react-dashboard {
  display: grid;
  gap: 18px;
}

.portal-react-profile__hero,
.portal-react-dashboard__hero,
.portal-react-profile__card,
.portal-react-profile__password,
.portal-react-dashboard__panel {
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: var(--portal-surface);
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.08);
}

.portal-react-profile__hero,
.portal-react-dashboard__hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
}

.portal-react-profile__hero h1,
.portal-react-dashboard__hero h1 {
  margin: 4px 0;
}

.portal-react-profile__hero p,
.portal-react-dashboard__hero p,
.portal-react-profile__card p,
.portal-react-dashboard__panel p,
.portal-react-dashboard__panel small {
  margin: 0;
  color: var(--portal-muted);
}

.portal-react-profile__grid,
.portal-react-dashboard__main,
.portal-react-dashboard__lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-react-profile__card,
.portal-react-profile__password,
.portal-react-dashboard__panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.portal-react-profile__card strong,
.portal-react-profile__section-heading strong,
.portal-react-dashboard__heading strong {
  display: block;
  color: var(--portal-ink);
}

.portal-react-profile__password {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.portal-react-profile__section-heading,
.portal-react-profile__password .portal-user-card__action-row {
  grid-column: 1 / -1;
}

.portal-react-profile__section-heading,
.portal-react-dashboard__heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.portal-react-profile__password label {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-react-profile__password input {
  min-height: 46px;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  color: var(--portal-ink);
  font: inherit;
  padding: 0 14px;
}

.portal-react-dashboard__summary,
.portal-react-dashboard__modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.portal-react-dashboard__metric {
  padding: 14px;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: #f8fbfd;
}

.portal-react-dashboard__metric span {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-dashboard__metric strong {
  display: block;
  margin-top: 4px;
  color: var(--portal-ink);
  font-size: 1.65rem;
}

.portal-react-dashboard__metric p {
  margin: 4px 0 0;
  color: var(--portal-muted);
}

.portal-react-dashboard__metric--danger {
  border-color: rgba(190, 18, 60, 0.22);
  background: #fff5f7;
}

.portal-react-dashboard__metric--warning {
  border-color: rgba(180, 83, 9, 0.24);
  background: #fff8eb;
}

.portal-react-dashboard__metric--success {
  border-color: rgba(22, 101, 52, 0.22);
  background: #f0fdf4;
}

.portal-react-dashboard__main--priorities {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.portal-react-dashboard__actions,
.portal-react-dashboard__workflow,
.portal-react-dashboard__health {
  display: grid;
  gap: 10px;
}

.portal-react-dashboard__action,
.portal-react-dashboard__workflow a,
.portal-react-dashboard__ticket,
.portal-react-dashboard__contract,
.portal-react-dashboard__health-item {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.portal-react-dashboard__action {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.portal-react-dashboard__action:hover,
.portal-react-dashboard__workflow a:hover,
.portal-react-dashboard__ticket:hover,
.portal-react-dashboard__contract:hover,
.portal-react-dashboard__health-item:hover {
  border-color: rgba(0, 94, 139, 0.35);
  box-shadow: 0 10px 24px rgba(19, 34, 56, 0.08);
  transform: translateY(-1px);
}

.portal-react-dashboard__action span,
.portal-react-dashboard__health-item span {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-react-dashboard__action strong {
  display: block;
  color: var(--portal-ink);
  font-size: 1.8rem;
}

.portal-react-dashboard__action em {
  flex: 0 0 auto;
  color: var(--portal-accent-strong);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.portal-react-dashboard__action--danger {
  border-color: rgba(190, 18, 60, 0.22);
  background: #fff5f7;
}

.portal-react-dashboard__action--warning {
  border-color: rgba(180, 83, 9, 0.24);
  background: #fff8eb;
}

.portal-react-dashboard__workflow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-react-dashboard__workflow a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
}

.portal-react-dashboard__workflow a span {
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-react-dashboard__workflow a strong {
  color: var(--portal-ink);
  font-size: 1.5rem;
}

.portal-react-dashboard__ticket,
.portal-react-dashboard__health-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #fff;
}

.portal-react-dashboard__ticket + .portal-react-dashboard__ticket,
.portal-react-dashboard__contract + .portal-react-dashboard__contract {
  margin-top: 10px;
}

.portal-react-dashboard__ticket strong,
.portal-react-dashboard__contract strong,
.portal-react-dashboard__health-item strong {
  display: block;
  overflow-wrap: anywhere;
}

.portal-react-dashboard__ticket .portal-list__meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 130px;
  text-align: right;
}

.portal-react-dashboard__contract {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(94px, auto));
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #fff;
}

.portal-react-dashboard__contract span {
  color: var(--portal-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.portal-react-dashboard__health {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-react-dashboard__server {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 14px;
}

.portal-react-dashboard__server-main,
.portal-react-dashboard__server-side {
  align-content: start;
}

.portal-react-dashboard__server-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.portal-react-dashboard__server-resource {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
}

.portal-react-dashboard__server-resource span,
.portal-react-dashboard__server-subtitle span,
.portal-react-dashboard__server-row span {
  color: var(--portal-muted);
  font-size: 0.78rem;
}

.portal-react-dashboard__server-resource span {
  font-weight: 900;
  text-transform: uppercase;
}

.portal-react-dashboard__server-resource strong {
  display: block;
  margin-top: 5px;
  color: var(--portal-ink);
  font-size: 1.55rem;
}

.portal-react-dashboard__server-resource p {
  margin-top: 4px;
}

.portal-react-dashboard__server-resource--danger {
  border-color: rgba(190, 18, 60, 0.24);
  background: #fff5f7;
}

.portal-react-dashboard__server-resource--warning {
  border-color: rgba(180, 83, 9, 0.24);
  background: #fff8eb;
}

.portal-react-dashboard__server-resource--success {
  border-color: rgba(22, 101, 52, 0.22);
  background: #f0fdf4;
}

.portal-react-dashboard__server-meter {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.portal-react-dashboard__server-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--portal-accent);
}

.portal-react-dashboard__server-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-react-dashboard__server-subtitle {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.portal-react-dashboard__server-subtitle strong {
  color: var(--portal-ink);
}

.portal-react-dashboard__server-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--portal-border);
}

.portal-react-dashboard__server-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.portal-react-dashboard__server-row strong {
  display: block;
  color: var(--portal-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-react-dashboard__server-row span {
  display: block;
  margin-top: 2px;
}

.portal-react-dashboard__server-side {
  gap: 14px;
}

.portal-react-dashboard__panel--wide {
  min-height: 180px;
}

.portal-react-analysis {
  display: grid;
  gap: 18px;
}

.portal-react-analysis__hero,
.portal-react-analysis__filters,
.portal-react-analysis__case {
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: var(--portal-surface);
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.08);
}

.portal-react-analysis__hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
}

.portal-react-analysis__hero h1 {
  margin: 4px 0;
}

.portal-react-analysis__hero p,
.portal-react-analysis__case p,
.portal-react-analysis__ack span {
  margin: 0;
  color: var(--portal-muted);
}

.portal-react-analysis__hero-metrics,
.portal-react-analysis__chips,
.portal-react-analysis__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.portal-react-analysis__filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 18px;
}

.portal-react-analysis__filters label {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-analysis__filters input,
.portal-react-analysis__filters select,
.portal-react-analysis__ack-form textarea {
  width: 100%;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  padding: 10px 12px;
}

.portal-react-analysis__search-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(150px, 0.8fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(192, 217, 229, 0.75);
  border-radius: 16px;
  background: #f8fbfd;
}

.portal-react-analysis__filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.portal-react-analysis__filter-actions .portal-primary-button,
.portal-react-analysis__filter-actions .portal-secondary-button {
  min-height: 42px;
  white-space: nowrap;
}

.portal-react-analysis__chips {
  padding-bottom: 2px;
}

.portal-react-analysis__filters > label {
  padding-top: 2px;
}

.portal-react-analysis__list {
  display: grid;
  gap: 14px;
}

.portal-react-analysis__case {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.portal-react-analysis__case.is-acknowledged {
  background: linear-gradient(180deg, #ffffff 0%, rgba(242, 249, 245, 0.95) 100%);
}

.portal-react-analysis__case-header,
.portal-react-analysis__ack {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.portal-react-analysis__case-header strong,
.portal-react-analysis__case-grid strong {
  display: block;
  color: var(--portal-ink);
}

.portal-react-analysis__case-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 0.7fr) minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: 12px;
}

.portal-react-analysis__case-grid section {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
}

.portal-react-analysis__case-grid span {
  color: var(--portal-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-analysis__actions {
  justify-content: flex-end;
  padding-top: 2px;
}

.portal-react-analysis__ack-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: min(520px, 100%);
}

.portal-react-analysis__empty {
  padding: 18px;
  border: 1px dashed var(--portal-border);
  border-radius: 16px;
  background: #f8fbfd;
  color: var(--portal-muted);
  font-weight: 800;
}

.portal-react-host--sidebar,
.portal-react-host--sidebar [data-react-mount] {
  display: contents;
}

.portal-react-reports {
  display: grid;
  gap: 18px;
}

.portal-react-reports,
.portal-react-reports * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-react-reports__hero,
.portal-react-reports__panel,
.portal-react-reports__metric {
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: var(--portal-surface);
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.08);
}

.portal-react-reports__hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
}

.portal-react-reports__hero h1 {
  margin: 4px 0;
}

.portal-react-reports__hero p,
.portal-react-reports__metric p,
.portal-react-reports__panel p,
.portal-react-reports__ticket-list p,
.portal-react-reports__consent-list p,
.portal-react-reports__version-list p {
  margin: 0;
  color: var(--portal-muted);
}

.portal-react-reports__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.portal-react-reports__metrics--compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.portal-react-reports__catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.portal-react-reports__catalog-card {
  display: grid;
  grid-template-rows: minmax(116px, auto) auto auto;
  gap: 12px;
  align-content: start;
  min-width: 0;
  border: 1px solid rgba(18, 124, 166, 0.16);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(19, 34, 56, 0.06);
}

.portal-react-reports__catalog-card--accent {
  border-color: rgba(124, 58, 237, 0.22);
  background: linear-gradient(135deg, #fff, #faf7ff);
}

.portal-react-reports__catalog-card--primary {
  border-color: rgba(18, 124, 166, 0.2);
  background: linear-gradient(135deg, #fff, #f2fbff);
}

.portal-react-reports__catalog-card--success {
  border-color: rgba(22, 163, 74, 0.2);
  background: linear-gradient(135deg, #fff, #f4fbf7);
}

.portal-react-reports__catalog-card--danger {
  border-color: rgba(220, 38, 38, 0.2);
  background: linear-gradient(135deg, #fff, #fff5f5);
}

.portal-react-reports__catalog-card--warning {
  border-color: rgba(245, 158, 11, 0.24);
  background: linear-gradient(135deg, #fff, #fff8ed);
}

.portal-react-reports__catalog-card--neutral {
  border-color: rgba(71, 85, 105, 0.18);
  background: linear-gradient(135deg, #fff, #f8fafc);
}

.portal-react-reports__catalog-card strong {
  display: block;
  margin: 5px 0 4px;
  color: var(--portal-ink);
}

.portal-react-reports__catalog-card p {
  line-height: 1.45;
}

.portal-react-reports__catalog-meta {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 0.86rem;
}

.portal-react-reports__panel--filters {
  gap: 12px;
}

.portal-react-reports__metric {
  padding: 14px;
}

.portal-react-reports__metric span {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-reports__metric strong {
  display: block;
  margin-top: 4px;
  color: var(--portal-ink);
  font-size: 1.6rem;
}

.portal-react-reports__panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.portal-react-reports__panel--exports {
  background:
    radial-gradient(circle at top right, rgba(15, 159, 155, 0.10), transparent 28%),
    linear-gradient(135deg, #ffffff, #f7fbfd);
}

.portal-react-reports__panel--closure {
  border-color: rgba(15, 159, 155, 0.22);
  background:
    radial-gradient(circle at top left, rgba(15, 159, 155, 0.10), transparent 30%),
    linear-gradient(135deg, #ffffff, #f7fbfd);
}

.portal-react-reports__panel--comparison {
  border-color: rgba(18, 124, 166, 0.20);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.10), transparent 28%),
    linear-gradient(135deg, #ffffff, #f8fbfd);
}

.portal-react-reports__panel--comparison.is-muted {
  background: #f8fbfd;
}

.portal-react-reports__heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.portal-react-reports__heading--stacked {
  align-items: flex-start;
}

.portal-react-reports__heading strong {
  display: block;
  color: var(--portal-ink);
}

.portal-react-reports__filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}

.portal-react-reports__filters label {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-reports__filters input,
.portal-react-reports__filters select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  padding: 8px 12px;
}

.portal-react-reports__filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-react-reports__applied-filters {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(18, 124, 166, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.portal-react-reports__applied-filters > span {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-react-reports__applied-filters > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.portal-react-reports__applied-filters small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(18, 124, 166, 0.14);
  border-radius: 999px;
  background: #f8fbfd;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.portal-react-reports__applied-filters small strong {
  color: var(--portal-primary-dark);
}

.portal-react-reports__empty {
  padding: 16px;
  border: 1px dashed var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
  color: var(--portal-muted);
  font-weight: 800;
}

.portal-react-reports__export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.portal-react-reports__monthly-builder {
    display: grid;
    gap: 1rem;
    margin: .35rem 0 1.1rem;
    padding: 1rem;
    border: 1px solid #b7d9e5;
    border-radius: 1rem;
    background: linear-gradient(145deg, #f4fbfd 0%, #ffffff 70%);
}

.portal-react-reports__monthly-fields {
    display: grid;
    grid-template-columns: minmax(15rem, 1.5fr) minmax(11rem, .7fr) minmax(13rem, 1fr);
    gap: .8rem;
}

.portal-react-reports__monthly-fields label,
.portal-react-reports__monthly-types {
    color: #16465b;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .025em;
}

.portal-react-reports__monthly-fields select,
.portal-react-reports__monthly-fields input {
    width: 100%;
    min-height: 2.65rem;
    margin-top: .35rem;
    border: 1px solid #c4dce5;
    border-radius: .7rem;
    background: #fff;
    color: #102b3a;
    font: inherit;
    font-weight: 600;
    padding: .55rem .7rem;
}

.portal-react-reports__monthly-types {
    min-width: 0;
    margin: 0;
    padding: .8rem;
    border: 1px solid #d1e4eb;
    border-radius: .8rem;
    background: #fff;
}

.portal-react-reports__monthly-types > div {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: .45rem 0;
}

.portal-react-reports__monthly-types label,
.portal-react-reports__monthly-exceptions label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 2rem;
    padding: .35rem .55rem;
    border: 1px solid #d3e5eb;
    border-radius: 999px;
    background: #f7fbfc;
    font-size: .78rem;
    font-weight: 650;
}

.portal-react-reports__monthly-exceptions {
    padding: .7rem .8rem;
    border: 1px solid #ead8b2;
    border-radius: .8rem;
    background: #fffaf0;
}

.portal-react-reports__monthly-exceptions summary {
    color: #825710;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 750;
}

.portal-react-reports__monthly-exceptions p {
    margin: .5rem 0;
    color: #765f39;
    font-size: .78rem;
}

.portal-react-reports__monthly-exceptions .portal-react-reports__monthly-asset-label {
    display: grid;
    width: 100%;
    min-width: 0;
    border-radius: .7rem;
}

.portal-react-reports__monthly-asset-label select {
    width: 100%;
    min-width: 0;
    margin-top: .35rem;
    padding: .45rem;
    border: 1px solid #c4dce5;
    border-radius: .55rem;
    background: #fff;
    color: #102b3a;
    font: inherit;
}

.portal-react-reports__monthly-actions,
.portal-react-reports__monthly-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.portal-react-reports__monthly-actions button {
    min-height: 2.55rem;
}

.portal-react-reports__monthly-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: .65rem;
    padding: .8rem;
    border: 1px solid #bfe1d3;
    border-radius: .8rem;
    background: #f2fbf7;
}

.portal-react-reports__monthly-preview > div {
    display: grid;
    gap: .1rem;
}

.portal-react-reports__monthly-preview strong {
    color: #07634f;
    font-size: 1.25rem;
}

.portal-react-reports__monthly-preview span,
.portal-react-reports__monthly-preview p {
    color: #456575;
    font-size: .78rem;
}

.portal-react-reports__monthly-preview p {
    grid-column: 1 / -1;
    margin: 0;
}

.portal-react-reports__monthly-preview .is-warning,
.portal-react-reports__monthly-status .is-warning {
    color: #8a5800;
    font-weight: 700;
}

.portal-react-reports__monthly-status {
    display: grid;
    gap: .65rem;
    padding: .8rem;
    border: 1px solid #b7d9e5;
    border-radius: .8rem;
    background: #fff;
}

.portal-react-reports__monthly-status > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
}

.portal-react-reports__monthly-status progress {
    width: 100%;
    height: .7rem;
    accent-color: #087fa2;
}

.portal-react-reports__monthly-message {
    margin: 0;
    padding: .65rem .75rem;
    border-radius: .7rem;
    font-size: .82rem;
}

.portal-react-reports__monthly-message.is-error {
    background: #fff0ee;
    color: #a1291d;
}

@media (max-width: 960px) {
    .portal-react-reports__monthly-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .portal-react-reports__monthly-builder {
        padding: .75rem;
    }

    .portal-react-reports__monthly-preview {
        grid-template-columns: 1fr;
    }

    .portal-react-reports__monthly-preview p {
        grid-column: auto;
    }

    .portal-react-reports__monthly-actions > *,
    .portal-react-reports__monthly-downloads > * {
        width: 100%;
        justify-content: center;
    }

    .portal-react-reports__monthly-status > div:first-child {
        display: grid;
    }
}

.portal-react-reports__export-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(18, 124, 166, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-primary-dark);
  box-shadow: 0 10px 24px rgba(19, 34, 56, 0.06);
}

.portal-react-reports__export-card--primary {
  border-color: rgba(15, 159, 155, 0.28);
  background: linear-gradient(135deg, #ffffff, #eefbf8);
}

.portal-react-reports__export-card strong {
  color: var(--portal-primary-dark);
}

.portal-react-reports__export-card span {
  color: var(--portal-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.portal-react-reports__export-card.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.portal-react-reports__planned-list {
  display: grid;
  gap: 10px;
}

.portal-react-reports__planned-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(180px, 0.7fr) minmax(150px, 0.5fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfd;
}

.portal-react-reports__planned-row strong {
  color: var(--portal-ink);
}

.portal-react-reports__planned-row p {
  margin: 3px 0 0;
  color: var(--portal-muted);
}

.portal-react-reports__planned-row > span:not(.portal-role-badge) {
  color: var(--portal-muted);
  font-size: 0.88rem;
}

.portal-react-reports__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-react-reports__split--executive {
  align-items: stretch;
}

.portal-react-reports__subsection {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.portal-react-reports__breakdown {
  display: grid;
  gap: 8px;
}

.portal-react-reports__breakdown div,
.portal-react-reports__ticket-list article,
.portal-react-reports__critical-list article,
.portal-react-reports__consent-list article,
.portal-react-reports__version-list article {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
}

.portal-react-reports__breakdown div {
  grid-template-columns: minmax(0, 1fr) auto;
}

.portal-react-reports__breakdown small {
  display: block;
  margin-top: 3px;
  color: var(--portal-muted);
  font-weight: 600;
  text-transform: none;
}

.portal-react-reports__ticket-list,
.portal-react-reports__critical-list,
.portal-react-reports__consent-list,
.portal-react-reports__version-list {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.portal-react-reports__analysis-table {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.portal-react-reports__analysis-toolbar,
.portal-react-reports__pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.portal-react-reports__analysis-toolbar > span,
.portal-react-reports__pagination span {
  color: var(--portal-muted);
  font-weight: 800;
}

.portal-react-reports__sort-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portal-react-reports__sort-actions button,
.portal-react-reports__pagination button {
  min-height: 36px;
  border: 1px solid rgba(18, 124, 166, 0.18);
  border-radius: 999px;
  background: #eef7fb;
  color: var(--portal-primary-dark);
  font: inherit;
  font-weight: 800;
  padding: 6px 12px;
  cursor: pointer;
}

.portal-react-reports__sort-actions button.is-active {
  background: var(--portal-primary);
  border-color: var(--portal-primary);
  color: #fff;
}

.portal-react-reports__pagination button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.portal-react-reports__analysis-head,
.portal-react-reports__analysis-rows article {
  display: grid;
  grid-template-columns:
    minmax(160px, 1fr)
    minmax(132px, 0.72fr)
    minmax(96px, 0.5fr)
    minmax(190px, 1fr)
    minmax(154px, 0.82fr)
    minmax(84px, 0.4fr)
    minmax(82px, 0.35fr);
  gap: 10px;
  align-items: center;
}

.portal-react-reports__analysis-head {
  padding: 0 12px;
  color: var(--portal-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-react-reports__analysis-rows {
  display: grid;
  gap: 8px;
  max-height: 660px;
  overflow: auto;
  padding-right: 4px;
}

.portal-react-reports__analysis-rows article {
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
  padding: 12px;
}

.portal-react-reports__analysis-rows article > * {
  min-width: 0;
}

.portal-react-reports__analysis-main,
.portal-react-reports__analysis-rows article > div {
  display: grid;
  gap: 4px;
}

.portal-react-reports__analysis-main strong,
.portal-react-reports__analysis-rows article > div strong {
  color: var(--portal-ink);
}

.portal-react-reports__analysis-main p,
.portal-react-reports__analysis-rows article p {
  color: var(--portal-muted);
  line-height: 1.35;
}

.portal-react-reports__analysis-main span,
.portal-react-reports__analysis-rows article small,
.portal-react-reports__analysis-rows article > div span {
  color: var(--portal-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.portal-react-reports__analysis-rows details {
  position: relative;
}

.portal-react-reports__analysis-rows summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 124, 166, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--portal-primary-dark);
  cursor: pointer;
  font-weight: 900;
  padding: 4px 12px;
  list-style: none;
}

.portal-react-reports__analysis-rows summary::-webkit-details-marker {
  display: none;
}

.portal-react-reports__analysis-rows details > div {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(18, 124, 166, 0.12);
  border-radius: 12px;
  background: #fff;
}

.portal-react-reports__insights {
  display: grid;
  gap: 10px;
}

.portal-react-reports__insights article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfd;
}

.portal-react-reports__insights strong {
  display: block;
  color: var(--portal-ink);
}

.portal-react-reports__insights span:not(.portal-role-badge) {
  display: block;
  margin-top: 6px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
}

.portal-react-reports__analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.portal-react-reports__analysis-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 142px;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfd;
}

.portal-react-reports__analysis-grid article > span:first-child {
  color: var(--portal-muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portal-react-reports__analysis-grid strong {
  color: var(--portal-ink);
}

.portal-react-reports__comparison-summary {
  padding: 12px 14px;
  border: 1px solid rgba(18, 124, 166, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--portal-ink);
}

.portal-react-reports__comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.portal-react-reports__comparison-grid article {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 126px;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
}

.portal-react-reports__comparison-grid article > span:first-child {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-react-reports__comparison-grid strong {
  color: var(--portal-ink);
  font-size: 1.45rem;
}

.portal-react-reports__comparison-grid small {
  color: var(--portal-muted);
  font-weight: 700;
}

.portal-react-reports__monthly-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  min-width: 0;
}

.portal-react-reports__monthly-breakdown article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(18, 124, 166, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.portal-react-reports__monthly-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.portal-react-reports__monthly-heading strong {
  color: var(--portal-ink);
}

.portal-react-reports__monthly-heading small {
  color: var(--portal-muted);
  font-weight: 700;
  line-height: 1.35;
}

.portal-react-reports__monthly-rows {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.portal-react-reports__monthly-rows > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(62px, 0.48fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.portal-react-reports__monthly-rows > div > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.portal-react-reports__monthly-rows strong {
  color: var(--portal-ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.portal-react-reports__monthly-rows small {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.portal-react-reports__monthly-meter {
  height: 8px;
  min-width: 54px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6f1f6;
}

.portal-react-reports__monthly-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--portal-primary), var(--portal-accent));
}

.portal-react-reports__domain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.portal-react-reports__panel--technicians,
.portal-react-reports__panel--quality {
  align-content: start;
}

.portal-react-reports__technician-table,
.portal-react-reports__evidence-domain {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.portal-react-reports__evidence-domain {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.portal-react-reports__technician-row {
  display: grid;
  grid-template-columns: 42px minmax(180px, 1.35fr) minmax(70px, 0.45fr) minmax(96px, 0.55fr) minmax(110px, 0.65fr) minmax(86px, 0.5fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #f8fbfd;
}

.portal-react-reports__technician-row--head {
  border-color: transparent;
  background: #eef5f8;
  color: #51687a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-react-reports__technician-row > * {
  min-width: 0;
}

.portal-react-reports__technician-row [data-label]::before {
  display: none;
  color: #607789;
  content: attr(data-label);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-react-reports__technician-main {
  display: grid;
  gap: 2px;
}

.portal-react-reports__technician-main strong,
.portal-react-reports__evidence-domain strong {
  color: var(--portal-ink);
}

.portal-react-reports__technician-main span,
.portal-react-reports__technician-row small,
.portal-react-reports__evidence-domain small {
  color: var(--portal-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.portal-react-reports__technician-row small {
  display: block;
  margin-top: 5px;
  line-height: 1.3;
}

.portal-react-reports__evidence-domain article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #f8fbfd;
}

.portal-react-reports__evidence-domain article > span:first-child {
  color: var(--portal-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portal-react-reports__evidence-domain article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.portal-react-reports__evidence-domain p {
  line-height: 1.35;
}

.portal-react-reports__ticket-list article {
  grid-template-columns: minmax(220px, 1.2fr) auto minmax(150px, 0.7fr) minmax(190px, 0.9fr) minmax(120px, 0.5fr) auto;
}

.portal-react-reports__critical-list article {
  grid-template-columns: minmax(220px, 0.95fr) minmax(340px, 1.35fr) auto;
}

.portal-react-reports__critical-main {
  display: grid;
  gap: 4px;
}

.portal-react-reports__critical-main small {
  color: var(--portal-muted);
  font-weight: 700;
  line-height: 1.35;
}

.portal-react-reports__critical-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 8px;
  align-items: center;
}

.portal-react-reports__critical-meta > span:not(.portal-role-badge) {
  display: grid;
  gap: 2px;
  color: var(--portal-ink);
  font-size: 0.9rem;
  line-height: 1.25;
}

.portal-react-reports__critical-meta > span > strong {
  color: var(--portal-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.portal-react-reports__critical-main p {
  color: var(--portal-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.portal-react-reports__ticket-list article > * {
  min-width: 0;
}

.portal-react-reports__critical-list article > * {
  min-width: 0;
}

.portal-react-reports__closure-guidance {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 159, 155, 0.18);
  border-radius: 14px;
  background: rgba(240, 253, 250, 0.74);
}

.portal-react-reports__closure-guidance strong {
  color: var(--portal-primary-dark);
}

.portal-react-reports__closure-guidance span {
  color: var(--portal-muted);
  font-weight: 700;
}

.portal-react-reports__consent-list article {
  grid-template-columns: minmax(220px, 1fr) auto minmax(170px, 0.8fr) minmax(150px, 0.7fr) minmax(130px, 0.6fr);
}

.portal-react-reports__version-list article {
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 0.9fr) minmax(140px, 0.6fr) minmax(240px, 1fr);
}

.portal-react-reports__version-list--actions article {
  grid-template-columns: auto minmax(220px, 1fr) minmax(180px, 0.5fr);
}

.portal-react-monitoring,
.portal-react-settings {
  display: grid;
  gap: 18px;
}

.portal-react-monitoring__hero,
.portal-react-monitoring__filters,
.portal-react-monitoring__panel,
.portal-react-monitoring__metric,
.portal-react-settings__hero,
.portal-react-settings__panel,
.portal-react-settings__metric {
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: var(--portal-surface);
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.08);
}

.portal-react-monitoring__hero,
.portal-react-settings__hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
}

.portal-react-monitoring__hero h1,
.portal-react-settings__hero h1 {
  margin: 4px 0;
}

.portal-react-monitoring__hero p,
.portal-react-monitoring__metric p,
.portal-react-monitoring__row p,
.portal-react-monitoring__consent p,
.portal-react-monitoring__event p,
.portal-react-settings__hero p,
.portal-react-settings__metric p,
.portal-react-settings__panel p,
.portal-react-settings__definition-list dd,
.portal-react-settings__permission-row p {
  margin: 0;
  color: var(--portal-muted);
}

.portal-react-monitoring__filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 16px;
}

.portal-react-monitoring__filters label {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-monitoring__filters input,
.portal-react-monitoring__filters select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  padding: 8px 12px;
}

.portal-react-monitoring__filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-react-monitoring__metrics,
.portal-react-settings__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.portal-react-monitoring__metric,
.portal-react-settings__metric {
  padding: 14px;
}

.portal-react-monitoring__metric span,
.portal-react-settings__metric span {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-monitoring__metric strong,
.portal-react-settings__metric strong {
  display: block;
  margin-top: 4px;
  color: var(--portal-ink);
  font-size: 1.45rem;
}

.portal-react-monitoring__grid,
.portal-react-settings__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-react-monitoring__panel,
.portal-react-settings__panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.portal-react-monitoring__panel--wide {
  grid-column: 1 / -1;
}

.portal-react-monitoring__push-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.portal-react-monitoring__heading,
.portal-react-settings__heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.portal-react-monitoring__heading strong,
.portal-react-settings__heading strong,
.portal-react-monitoring__row strong,
.portal-react-monitoring__consent strong,
.portal-react-monitoring__event strong,
.portal-react-settings__role-summary strong,
.portal-react-settings__permission-row strong {
  display: block;
  color: var(--portal-ink);
}

.portal-react-monitoring__list {
  display: grid;
  gap: 10px;
  max-height: 540px;
  overflow: auto;
  padding-right: 4px;
}

.portal-react-monitoring__list--compact {
  max-height: 430px;
}

.portal-react-monitoring__row,
.portal-react-monitoring__consent,
.portal-react-monitoring__event {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
}

.portal-react-monitoring__row {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
}

.portal-react-monitoring__consent {
  grid-template-columns: minmax(0, 1fr) auto;
}

.portal-react-monitoring__empty {
  padding: 14px;
  border: 1px dashed var(--portal-border);
  border-radius: 14px;
  color: var(--portal-muted);
  font-weight: 800;
}

.portal-react-monitoring__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.portal-react-monitoring-chat__filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(150px, 0.55fr));
  gap: 10px;
}

.portal-react-monitoring-chat__filters label {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-monitoring-chat__filters input,
.portal-react-monitoring-chat__filters select,
.portal-react-monitoring-map__side input,
.portal-react-monitoring-map__side select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  padding: 8px 10px;
}

.portal-react-monitoring-chat__thread {
  align-items: stretch;
}

.portal-react-monitoring-chat__summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.portal-react-monitoring-chat__messages {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--portal-border);
}

.portal-react-monitoring-chat__report {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(18, 124, 166, 0.28);
  border-radius: 8px;
  background: #f4fbfd;
  color: #075a70;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.portal-react-monitoring-chat__message {
  max-width: 78%;
  padding: 10px 12px;
  border: 1px solid rgba(18, 124, 166, 0.16);
  border-radius: 12px;
  background: #fff;
}

.portal-react-monitoring-chat__message--support {
  justify-self: end;
  background: #e3f2f7;
}

.portal-react-monitoring-chat__message--system {
  justify-self: center;
  background: #fff8e9;
}

.portal-react-monitoring-chat__message span {
  display: block;
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.portal-react-monitoring-chat__message p {
  margin: 4px 0 0;
  color: var(--portal-ink);
  line-height: 1.45;
}

.portal-react-monitoring-chat__message a {
  display: inline-flex;
  margin-top: 6px;
  color: #075a70;
  font-weight: 800;
  text-decoration: none;
}

.portal-react-monitoring-map {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}

.portal-react-monitoring-map__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 31, 0.48);
}

.portal-react-monitoring-map__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  width: min(1480px, 100%);
  height: min(920px, calc(100vh - 36px));
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--portal-surface);
  box-shadow: 0 28px 80px rgba(6, 18, 31, 0.28);
}

.portal-react-monitoring-map__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--portal-border);
  background: #f8fbfd;
}

.portal-react-monitoring-map__header h2 {
  margin: 4px 0;
}

.portal-react-monitoring-map__header p {
  margin: 0;
  color: var(--portal-muted);
}

.portal-react-monitoring-map__actions,
.portal-react-monitoring-map__period {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-react-monitoring-map__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 14px;
  min-height: 0;
  padding: 0 16px 16px;
}

.portal-react-monitoring-map__canvas-shell {
  position: relative;
  min-height: 0;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  overflow: hidden;
  background: #eef7f1;
}

.portal-react-monitoring-map__canvas {
  width: 100%;
  height: 100%;
  min-height: 620px;
  opacity: 0;
}

.portal-react-monitoring-map__canvas.is-ready {
  opacity: 1;
}

.portal-react-monitoring-map__fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--portal-muted);
  font-weight: 800;
  text-align: center;
}

.portal-react-monitoring-map__side {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
}

.portal-react-monitoring-map__side label {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-monitoring-map__summary {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
}

.portal-react-monitoring-map__summary strong {
  color: var(--portal-ink);
}

.portal-react-monitoring-map__summary p,
.portal-react-monitoring-map__summary small {
  margin: 0;
  color: var(--portal-muted);
}

.portal-react-monitoring-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #fff;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.portal-react-monitoring-map__legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.portal-react-monitoring-map__legend i {
  display: inline-block;
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: #d97706;
}

.portal-react-monitoring-map__legend i.is-start {
  width: 12px;
  height: 12px;
  background: #22c55e;
}

.portal-react-monitoring-map__legend i.is-end {
  width: 12px;
  height: 12px;
  background: #ef4444;
}

.portal-react-monitoring-map__points {
  display: grid;
  gap: 8px;
}

.portal-react-monitoring-map__point {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--portal-border);
  border-radius: 13px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.portal-react-monitoring-map__point span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f7b731;
  color: #102a43;
  font-weight: 900;
}

.portal-react-monitoring-map__point strong {
  color: var(--portal-ink);
}

.portal-react-monitoring-map__point p,
.portal-react-monitoring-map__point small {
  margin: 0;
  color: var(--portal-muted);
}

.portal-react-monitoring-report {
  display: none;
}

.portal-react-monitoring-report__cover {
  display: grid;
  gap: 4px;
}

.portal-react-monitoring-report__cover h2,
.portal-react-monitoring-report__cover p {
  margin: 0;
}

.portal-react-monitoring-report__map {
  width: 100%;
  height: auto;
  border: 1px solid #d8e5ec;
  border-radius: 16px;
}

.portal-react-monitoring-report__map-empty {
  padding: 32px;
  border: 1px dashed #d8e5ec;
  border-radius: 16px;
  color: var(--portal-muted);
  text-align: center;
}

.portal-react-monitoring-report table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.portal-react-monitoring-report th,
.portal-react-monitoring-report td {
  padding: 8px;
  border: 1px solid #d8e5ec;
  text-align: left;
}

.portal-react-settings__definition-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.portal-react-settings__definition-list div,
.portal-react-settings__role-summary article,
.portal-react-settings__permission-row {
  display: grid;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
}

.portal-react-settings__definition-list dt {
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-settings__definition-list dd {
  overflow-wrap: anywhere;
}

.portal-react-settings__panel--diagnostic {
  align-content: start;
}

.portal-react-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-react-settings__role-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.portal-react-settings__role-summary article {
  grid-template-columns: 1fr;
}

.portal-react-settings__role-summary span,
.portal-react-settings__dash {
  color: var(--portal-muted);
  font-weight: 800;
}

.portal-react-settings__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.portal-react-settings__tabs button {
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  background: #fff;
  color: var(--portal-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 8px 12px;
}

.portal-react-settings__tabs button.is-active {
  border-color: rgba(6, 95, 125, 0.25);
  background: #dff2f5;
  color: var(--portal-accent-strong);
}

.portal-react-settings__permissions {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.portal-react-settings__permission-row {
  grid-template-columns: minmax(260px, 1fr) 90px 90px 110px;
}

.portal-react-settings__permission-row--head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf7fa;
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-assets {
  display: grid;
  gap: 18px;
}

.portal-react-assets__hero,
.portal-react-assets__metric,
.portal-react-assets__filters,
.portal-react-assets__list-panel {
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: var(--portal-surface);
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.08);
}

.portal-react-assets__hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
}

.portal-react-assets__hero h1,
.portal-react-assets__detail-title h2 {
  margin: 4px 0;
}

.portal-react-assets__hero p,
.portal-react-assets__metric p,
.portal-react-assets__row p,
.portal-react-assets__row small,
.portal-react-assets__detail-title p,
.portal-react-assets__detail-grid p,
.portal-react-assets__history-row small,
.portal-react-assets__subsection p {
  margin: 0;
  color: var(--portal-muted);
}

.portal-react-assets__hero-actions,
.portal-react-assets__actions,
.portal-react-assets__filter-actions,
.portal-react-assets__quick,
.portal-react-assets__row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.portal-react-assets__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.portal-react-assets__metric {
  padding: 14px;
}

.portal-react-assets__metric span,
.portal-react-assets__filters label,
.portal-react-assets__form label,
.portal-react-assets__detail-grid span {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-assets__metric strong {
  display: block;
  margin-top: 4px;
  color: var(--portal-ink);
  font-size: 1.5rem;
}

.portal-react-assets__filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(150px, 0.8fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
}

.portal-react-assets__filters label,
.portal-react-assets__form label {
  display: grid;
  gap: 6px;
}

.portal-react-assets__filters input,
.portal-react-assets__filters select,
.portal-react-assets__form input,
.portal-react-assets__form select,
.portal-react-assets__form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  padding: 8px 12px;
}

.portal-react-assets__advanced {
  align-self: stretch;
}

.portal-react-assets__advanced summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--portal-accent-strong);
  font-weight: 800;
}

.portal-react-assets__advanced div {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
  padding-top: 10px;
}

.portal-react-assets__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.portal-react-assets__list-panel {
  overflow: hidden;
}

.portal-react-assets__list-head,
.portal-react-assets__row {
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) minmax(230px, 1fr) minmax(150px, 0.6fr) minmax(180px, 0.8fr) minmax(170px, 0.7fr);
  gap: 12px;
  align-items: center;
}

.portal-react-assets__list-head {
  padding: 12px 16px;
  background: #edf7fa;
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-assets__list {
  display: grid;
  gap: 8px;
  max-height: 720px;
  overflow: auto;
  padding: 12px;
}

.portal-react-assets__row {
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
  padding: 12px;
}

.portal-react-assets__row.is-selected {
  border-color: rgba(6, 95, 125, 0.28);
  background: #eff9fb;
}

.portal-react-assets__identity {
  display: grid;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.portal-react-assets__identity span {
  color: var(--portal-accent-strong);
  font-size: 0.8rem;
  font-weight: 900;
}

.portal-react-assets__identity strong,
.portal-react-assets__row strong,
.portal-react-assets__detail-grid strong,
.portal-react-assets__history-row strong,
.portal-react-assets__subsection h3 {
  color: var(--portal-ink);
}

.portal-react-assets__modal {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: grid;
  place-items: center;
  padding: 24px;
}

.portal-react-assets__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 35, 0.56);
  backdrop-filter: blur(2px);
}

.portal-react-assets__modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border: 1px solid rgba(210, 226, 235, 0.94);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(7, 21, 35, 0.3);
  overflow: hidden;
}

.portal-react-assets__modal-card--details {
  width: min(1280px, calc(100vw - 48px));
}

.portal-react-assets__modal-card--import {
  width: min(980px, calc(100vw - 48px));
}

.portal-react-assets__modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--portal-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.portal-react-assets__modal-header h2 {
  margin: 4px 0 6px;
  color: var(--portal-ink);
}

.portal-react-assets__modal-header p {
  margin: 0;
  color: var(--portal-muted);
}

.portal-react-assets__modal-body {
  min-height: 0;
  overflow: auto;
  padding: 20px 24px 24px;
  scrollbar-gutter: stable;
}

.portal-react-assets__modal-body::-webkit-scrollbar {
  width: 8px;
}

.portal-react-assets__modal-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(18, 124, 166, 0.28);
}

.portal-react-assets__drawer-close {
  justify-self: end;
  border: 0;
  border-radius: 999px;
  background: #e5f3f6;
  color: var(--portal-accent-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 8px 12px;
}

.portal-react-assets__detail,
.portal-react-assets__form {
  display: grid;
  gap: 14px;
}

.portal-react-assets__detail-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.portal-react-assets__detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.portal-react-assets__detail-grid section,
.portal-react-assets__inline-form,
.portal-react-assets__subsection,
.portal-react-assets__history-row {
  display: grid;
  gap: 8px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
  padding: 12px;
}

.portal-react-assets__inline-form summary {
  cursor: pointer;
  font-weight: 900;
}

.portal-react-assets__form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-react-assets__form--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-react-assets__wide {
  grid-column: 1 / -1;
}

.portal-react-assets__history-row {
  color: inherit;
  text-decoration: none;
}

.portal-react-assets__history-row.is-danger {
  border-color: rgba(190, 18, 60, 0.22);
  background: #fff5f5;
}

.portal-react-assets__history-row.is-selected {
  border-color: rgba(6, 95, 125, 0.35);
  background: #eff9fb;
}

.portal-react-assets__map-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 8px;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: #ffffff;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-assets__map-search input {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  padding: 8px 12px;
  text-transform: none;
}

.portal-react-assets__map-search small {
  color: var(--portal-muted);
  font-weight: 800;
  text-transform: none;
}

.portal-react-assets__map-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}

.portal-react-assets__map-card {
  --contract-color: var(--portal-primary);
  --contract-color-soft: rgba(18, 124, 166, 0.1);
  --contract-color-faint: rgba(18, 124, 166, 0.05);
  display: grid;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--contract-color) 30%, #d7e8ef);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--contract-color-soft), #ffffff 62%);
  padding: 12px;
  box-shadow: inset 5px 0 0 var(--contract-color);
}

.portal-react-assets__map-card.is-selected {
  border-color: color-mix(in srgb, var(--contract-color) 55%, #d7e8ef);
  background: linear-gradient(135deg, var(--contract-color-soft), var(--contract-color-faint) 45%, #ffffff 100%);
  box-shadow: inset 5px 0 0 var(--contract-color), 0 12px 26px rgba(6, 25, 43, 0.08);
}

.portal-react-assets__map-card-main {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.portal-react-assets__map-card-main strong {
  color: var(--portal-ink);
}

.portal-react-assets__map-card-contract {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--contract-color);
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 8px;
}

.portal-react-assets__map-card-main span,
.portal-react-assets__map-card-main small {
  color: var(--portal-muted);
}

.portal-react-assets__map-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

.portal-react-assets__map-ticket-action,
.portal-react-assets__map-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
}

.portal-react-assets__map-ticket-action {
  border: 1px solid color-mix(in srgb, var(--contract-color) 22%, #d7e8ef);
  background: #ffffff;
  color: var(--portal-primary-dark);
  padding: 8px 10px;
}

.portal-react-assets__map-ticket-action--new {
  background: var(--contract-color);
  color: #ffffff;
}

.portal-react-assets__map-ticket-action--active {
  background: #fff7ed;
  border-color: rgba(217, 119, 6, 0.24);
  color: #9a3412;
}

.portal-react-assets__map-icon-action {
  width: 42px;
  border: 1px solid color-mix(in srgb, var(--contract-color) 18%, #d7e8ef);
  background: #ffffff;
}

.portal-react-assets__google-maps-icon {
  position: relative;
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background:
    linear-gradient(135deg, #34a853 0 28%, transparent 28%),
    linear-gradient(45deg, #fbbc04 0 48%, transparent 48%),
    linear-gradient(135deg, transparent 42%, #4285f4 42% 72%, #ea4335 72%);
  box-shadow: inset 0 0 0 1px rgba(7, 21, 35, 0.08);
}

.portal-react-assets__google-maps-icon::before {
  content: "";
  width: 10px;
  height: 14px;
  border-radius: 999px 999px 999px 0;
  background: #ea4335;
  transform: rotate(-45deg);
  box-shadow: 0 1px 2px rgba(7, 21, 35, 0.18);
}

.portal-react-assets__google-maps-icon span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateY(-1px);
}

.portal-react-assets__map-overflow {
  margin: 0;
  padding: 12px;
  border: 1px dashed rgba(18, 124, 166, 0.22);
  border-radius: 14px;
  background: #ffffff;
  color: var(--portal-muted);
  font-weight: 800;
}

.portal-react-assets__map-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.portal-react-assets__map-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 35, 0.58);
  backdrop-filter: blur(2px);
}

.portal-react-assets__map-modal-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1480px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid rgba(210, 226, 235, 0.92);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(7, 21, 35, 0.32);
  padding: 18px;
}

.portal-react-assets__map-panel--modal {
  min-height: 0;
}

.portal-react-assets__map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.28fr);
  gap: 14px;
  align-items: stretch;
}

.portal-react-assets__map-main,
.portal-react-assets__map-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.portal-react-assets__map-side {
  align-content: start;
}

.portal-react-assets__map-context {
  display: grid;
  gap: 8px;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: #f8fbfd;
  padding: 14px;
}

.portal-react-assets__map-context strong {
  color: var(--portal-ink);
  font-size: 1rem;
}

.portal-react-assets__map-context p,
.portal-react-assets__map-context small {
  margin: 0;
  color: var(--portal-muted);
}

.portal-react-assets__map-shell {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: #eef7f9;
  overflow: hidden;
}

.portal-react-assets__map-shell--modal {
  height: clamp(420px, calc(100vh - 190px), 640px);
  min-height: 0;
}

.portal-react-assets__map-canvas {
  min-height: 320px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.portal-react-assets__map-shell--modal .portal-react-assets__map-canvas {
  height: 100%;
  min-height: 0;
}

.portal-react-assets__map-canvas.is-ready {
  opacity: 1;
}

.portal-react-assets__map-fallback {
  position: absolute;
  inset: 12px;
  z-index: 20;
  display: grid;
  place-items: center;
  border: 1px dashed var(--portal-border);
  border-radius: 14px;
  background: rgba(248, 251, 253, 0.92);
  color: var(--portal-muted);
  font-weight: 800;
  padding: 18px;
  text-align: center;
}

.portal-react-assets__map-fallback--static {
  position: static;
}

.portal-react-assets__map-fallback--coordinate {
  display: block;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(100, 116, 139, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(100, 116, 139, 0.12) 1px, transparent 1px),
    #f7fbfc;
  background-size: 72px 72px;
}

.portal-react-assets__map-fallback-note {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  max-width: min(560px, calc(100% - 28px));
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--portal-text);
  padding: 10px 12px;
  text-align: left;
}

.portal-react-assets__map-fallback-note strong,
.portal-react-assets__map-fallback-note span {
  min-width: 0;
}

.portal-react-assets__map-fallback-note strong {
  color: #0f766e;
  font-size: 0.84rem;
}

.portal-react-assets__map-fallback-note span {
  flex: 1 1 260px;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.portal-react-assets__map-fallback-diagnostic {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  max-width: min(420px, calc(100% - 32px));
  margin: 0;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--portal-muted);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 7px 11px;
  text-align: left;
}

.portal-react-assets__map-fallback-grid {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 28% 32%, rgba(14, 165, 233, 0.12), transparent 26%),
    radial-gradient(circle at 74% 70%, rgba(15, 118, 110, 0.12), transparent 30%);
}

.portal-react-assets__map-fallback-point {
  position: absolute;
  z-index: 3;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--contract-color, #127ca6);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.portal-react-assets__map-fallback-point.is-cluster {
  width: 42px;
  height: 42px;
  background: #0f172a;
  font-size: 0.86rem;
}

.portal-react-assets__map-fallback-point.is-selected,
.portal-react-assets__map-fallback-point:hover {
  outline: 3px solid rgba(15, 23, 42, 0.3);
  transform: translate(-50%, -50%) scale(1.12);
}

.portal-react-assets__map-legend {
  position: absolute;
  right: 96px;
  bottom: 14px;
  left: 14px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-height: 92px;
  overflow: auto;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: rgba(248, 251, 253, 0.94);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  padding: 10px 12px;
  backdrop-filter: blur(6px);
}

.portal-react-assets__map-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 28px;
  max-width: min(260px, 100%);
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--portal-muted);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 9px 4px 5px;
  white-space: nowrap;
}

.portal-react-assets__map-legend strong {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--contract-color, #127ca6);
  color: #ffffff;
  font-size: 0.68rem;
  line-height: 1;
}

.portal-react-assets__map-edit-hint {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  border: 1px solid rgba(6, 95, 125, 0.18);
  border-radius: 14px;
  background: rgba(239, 249, 251, 0.94);
  color: var(--portal-accent-strong);
  font-weight: 900;
  padding: 10px 12px;
  text-align: center;
}

.portal-react-assets__map-save {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: #f8fbfd;
  padding: 12px;
}

.portal-react-assets__map-save label {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-assets__map-save input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  padding: 8px 12px;
}

.portal-react-assets__map-save p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--portal-muted);
}

.portal-react-assets__map-panel--modal .portal-react-assets__map-layout {
  align-items: start;
}

.portal-react-assets__map-panel--modal .portal-react-assets__map-side {
  max-height: clamp(420px, calc(100vh - 190px), 640px);
  overflow: auto;
  padding-right: 4px;
}

.portal-react-assets__checkbox {
  display: flex !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  color: var(--portal-ink) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.portal-react-assets__checkbox input {
  min-height: auto;
  width: auto;
  margin-top: 3px;
}

.portal-react-assets__preview-list {
  display: grid;
  gap: 10px;
}

.portal-react-assets__coordinate-note {
  color: var(--portal-accent-strong);
  font-weight: 900;
}

.portal-react-assets__empty {
  padding: 18px;
  border: 1px dashed var(--portal-border);
  border-radius: 16px;
  background: #f8fbfd;
  color: var(--portal-muted);
  font-weight: 800;
}

@media (max-width: 780px) {
  .portal-react-profile__hero,
  .portal-react-dashboard__hero,
  .portal-react-analysis__hero,
  .portal-react-analysis__case-header,
  .portal-react-analysis__ack,
  .portal-react-profile__section-heading,
  .portal-react-dashboard__heading,
  .portal-react-monitoring__hero,
  .portal-react-monitoring__heading,
  .portal-react-settings__hero,
  .portal-react-settings__heading,
  .portal-react-assets__hero,
  .portal-react-assets__detail-title {
    display: grid;
  }

  .portal-react-profile__grid,
  .portal-react-profile__password,
  .portal-react-dashboard__main,
  .portal-react-dashboard__lists,
  .portal-react-dashboard__health,
  .portal-react-dashboard__server,
  .portal-react-dashboard__server-resources,
  .portal-react-dashboard__server-panels,
  .portal-react-dashboard__contract,
  .portal-react-analysis__filters,
  .portal-react-analysis__search-form,
  .portal-react-analysis__case-grid,
  .portal-react-analysis__ack-form,
  .portal-react-reports__catalog,
  .portal-react-reports__catalog-card,
  .portal-react-reports__planned-row,
  .portal-react-reports__split,
  .portal-react-reports__comparison-grid,
  .portal-react-reports__monthly-breakdown,
  .portal-react-reports__monthly-rows > div,
  .portal-react-reports__domain-grid,
  .portal-react-reports__technician-row,
  .portal-react-reports__analysis-head,
  .portal-react-reports__analysis-rows article,
  .portal-react-reports__insights article,
  .portal-react-reports__evidence-domain article,
  .portal-react-reports__ticket-list article,
  .portal-react-reports__critical-list article,
  .portal-react-reports__consent-list article,
  .portal-react-reports__version-list article,
  .portal-react-monitoring__filters,
  .portal-react-monitoring__grid,
  .portal-react-monitoring__push-grid,
  .portal-react-monitoring__row,
  .portal-react-settings__grid,
  .portal-react-settings__permission-row,
  .portal-react-assets__filters,
  .portal-react-assets__list-head,
  .portal-react-assets__row,
  .portal-react-assets__detail-grid,
  .portal-react-assets__form,
  .portal-react-assets__map-layout,
  .portal-react-assets__map-save {
    grid-template-columns: 1fr;
  }

  .portal-react-dashboard__action,
  .portal-react-dashboard__ticket,
  .portal-react-dashboard__contract,
  .portal-react-dashboard__health-item,
  .portal-react-dashboard__server-row {
    display: grid;
  }

  .portal-react-dashboard__action em,
  .portal-react-dashboard__ticket .portal-list__meta,
  .portal-react-dashboard__contract span {
    justify-items: start;
    min-width: 0;
    text-align: left;
    white-space: normal;
  }

  .portal-react-dashboard__workflow {
    grid-template-columns: 1fr;
  }

  .portal-react-assets__map-modal {
    padding: 10px;
  }

  .portal-react-assets__modal {
    padding: 10px;
  }

  .portal-react-assets__modal-card {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .portal-react-assets__modal-header {
    display: grid;
    padding: 18px;
  }

  .portal-react-assets__modal-body {
    padding: 16px;
  }

  .portal-react-assets__map-modal-card {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    overflow: auto;
    border-radius: 18px;
    padding: 12px;
  }

  .portal-react-assets__map-panel--modal {
    min-height: auto;
  }

  .portal-react-assets__map-shell--modal,
  .portal-react-assets__map-shell--modal .portal-react-assets__map-canvas {
    height: min(56vh, 420px);
    min-height: 320px;
  }

  .portal-react-assets__map-legend {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-height: 104px;
    padding: 8px;
  }

  .portal-react-assets__map-legend span {
    max-width: 100%;
    white-space: normal;
  }

  .portal-react-assets__map-panel--modal .portal-react-assets__map-side {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .portal-react-reports__hero,
  .portal-react-reports__heading {
    display: grid;
  }

  .portal-react-reports__critical-meta {
    grid-template-columns: 1fr;
  }

  .portal-react-reports__analysis-head {
    display: none;
  }
}

.portal-inline-details {
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: #f8fbfd;
  overflow: hidden;
}

.portal-inline-details summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 800;
  color: var(--portal-primary-dark);
}

.portal-inline-details summary::-webkit-details-marker {
  display: none;
}

.portal-inline-form {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.portal-inline-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.portal-form-field {
  display: grid;
  gap: 8px !important;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(244, 249, 252, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(18, 124, 166, 0.10);
  color: var(--portal-primary-dark);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.portal-inline-form--operational > label:not(.portal-inline-checkbox) {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(244, 249, 252, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(18, 124, 166, 0.10);
  color: var(--portal-primary-dark);
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(6, 25, 43, 0.05);
}

.portal-inline-form--operational > label:not(.portal-inline-checkbox) > input,
.portal-inline-form--operational > label:not(.portal-inline-checkbox) > select,
.portal-inline-form--operational > label:not(.portal-inline-checkbox) > textarea,
.portal-inline-form--operational > label:not(.portal-inline-checkbox) > .portal-password-field {
  margin-top: 2px;
}

.portal-inline-form--operational > .portal-inline-form__hint,
.portal-inline-form--operational > .portal-field-hint-row,
.portal-inline-form--operational > .portal-message {
  margin: 0;
}

.portal-inline-form--operational > .portal-inline-form__hint {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(18, 124, 166, 0.06);
  border: 1px solid rgba(18, 124, 166, 0.09);
}

.portal-form-field__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--portal-primary-dark);
}

.portal-form-field__caption {
  display: block;
  margin-top: -2px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--portal-muted);
  font-weight: 500;
  letter-spacing: 0;
}

.portal-form-field.is-hidden {
  display: none !important;
}

.portal-form-field > input,
.portal-form-field > select,
.portal-form-field > textarea,
.portal-form-field > .portal-password-field {
  margin-top: 2px;
}

.portal-inline-form input[type="text"],
.portal-inline-form input[type="email"],
.portal-inline-form input[type="url"],
.portal-inline-form input[type="number"],
.portal-inline-form input[type="color"],
.portal-inline-form input[type="date"],
.portal-inline-form input[type="file"],
.portal-inline-form select,
.portal-inline-form textarea,
.portal-inline-form input[type="password"] {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--portal-border);
  background: #fff;
}

.portal-inline-form input[type="color"] {
  padding: 4px;
}

.portal-inline-form--operational {
  gap: 16px;
}

.portal-kanban-journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.portal-react-host[data-react-mounted="true"] [data-react-fallback] {
  display: none;
}

.portal-react-evidence {
  display: grid;
  gap: 18px;
}

.portal-react-evidence__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.portal-react-evidence__summary-card,
.portal-react-evidence__preview,
.portal-react-evidence__list,
.portal-react-evidence__context,
.portal-react-evidence__item,
.portal-react-evidence__map-card,
.portal-react-evidence__forms {
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: var(--portal-surface);
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.08);
}

.portal-react-evidence__summary-card {
  padding: 14px;
}

.portal-react-evidence__filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(140px, 0.7fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: var(--portal-surface);
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.08);
}

.portal-react-evidence__filters label {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-evidence__filters input,
.portal-react-evidence__filters select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  padding: 10px 12px;
}

.portal-react-evidence__summary-card span,
.portal-react-evidence__list-heading span,
.portal-react-evidence__package-body span,
.portal-react-evidence__counts span {
  color: var(--portal-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.portal-react-evidence__summary-card strong {
  display: block;
  color: var(--portal-ink);
  font-size: 1.6rem;
  margin-top: 4px;
}

.portal-react-evidence__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.portal-react-evidence__list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.portal-react-evidence__list-heading,
.portal-react-evidence__package-main,
.portal-react-evidence__item-header,
.portal-react-evidence__drawer-header,
.portal-react-evidence__drawer-actions,
.portal-react-evidence__map-heading,
.portal-react-evidence__forms-heading,
.portal-react-evidence__action-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.portal-react-evidence__list-heading strong,
.portal-react-evidence__preview strong,
.portal-react-evidence__package-main strong,
.portal-react-evidence__item-header strong {
  display: block;
  color: var(--portal-ink);
}

.portal-react-evidence__package {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.2fr) auto;
  width: 100%;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: #f8fbfd;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.portal-react-evidence__package:hover,
.portal-react-evidence__package.is-active {
  border-color: var(--portal-primary);
  background: rgba(15, 159, 155, 0.08);
}

.portal-react-evidence__package-body {
  display: grid;
  gap: 2px;
}

.portal-react-evidence__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-react-evidence__counts span {
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--portal-surface);
}

.portal-react-evidence__preview {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.portal-react-evidence__empty {
  border: 1px dashed var(--portal-border);
  border-radius: 16px;
  padding: 18px;
  color: var(--portal-muted);
  background: #f8fbfd;
}

.portal-react-evidence__modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.portal-react-evidence__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 12, 27, 0.44);
  cursor: pointer;
}

.portal-react-evidence__drawer {
  position: absolute;
  inset: 22px;
  width: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 22px;
  background: var(--portal-surface);
  box-shadow: 0 24px 70px rgba(19, 34, 56, 0.24);
}

.portal-react-evidence__drawer-header {
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--portal-border);
  background:
    linear-gradient(135deg, rgba(15, 159, 155, 0.08), rgba(229, 241, 248, 0.72)),
    #f8fbfd;
}

.portal-react-evidence__drawer-header h2 {
  margin: 2px 0;
}

.portal-react-evidence__drawer-header p,
.portal-react-evidence__context p,
.portal-react-evidence__preview p {
  margin: 0;
  color: var(--portal-muted);
}

.portal-react-evidence__drawer-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.portal-react-evidence__drawer-body {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
}

.portal-react-evidence__context,
.portal-react-evidence__media {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 0;
}

.portal-react-evidence__context {
  position: sticky;
  top: 0;
  padding: 16px;
  max-height: calc(100vh - 164px);
  overflow: auto;
}

.portal-react-evidence__media {
  overflow: auto;
  padding-right: 4px;
}

.portal-react-evidence__map-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  box-shadow: none;
  background: #f8fbfd;
}

.portal-react-evidence__map-heading {
  align-items: center;
}

.portal-react-evidence__map-heading strong {
  display: block;
  color: var(--portal-ink);
  line-height: 1.25;
}

.portal-react-evidence__map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #e7f2f7;
  aspect-ratio: 4 / 3;
}

.portal-react-evidence__map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.portal-react-evidence__map-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px dashed var(--portal-border);
  border-radius: 14px;
  color: var(--portal-muted);
  background: var(--portal-surface);
  text-align: center;
}

.portal-react-evidence__map-card p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.portal-react-evidence__context dl,
.portal-react-evidence__item-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.portal-react-evidence__context > p {
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
  line-height: 1.55;
}

.portal-react-evidence__context dt,
.portal-react-evidence__item-meta dt {
  color: var(--portal-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-evidence__context dd,
.portal-react-evidence__item-meta dd {
  margin: 0;
  color: var(--portal-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.portal-react-evidence__item {
  display: grid;
  gap: 14px;
  padding: 16px;
  min-width: 0;
  overflow: hidden;
  align-content: start;
}

.portal-react-evidence__item--photo,
.portal-react-evidence__item--video {
  gap: 12px;
  padding: 0;
  border-radius: 16px;
}

.portal-react-evidence__item--photo .portal-react-evidence__viewer,
.portal-react-evidence__item--video .portal-react-evidence__viewer {
  order: 1;
  border: 0;
  border-bottom: 1px solid var(--portal-border);
  border-radius: 16px 16px 0 0;
}

.portal-react-evidence__item--photo .portal-react-evidence__item-header,
.portal-react-evidence__item--video .portal-react-evidence__item-header {
  order: 2;
  padding: 0 14px;
  align-items: center;
}

.portal-react-evidence__item--photo .portal-react-evidence__item-header > div,
.portal-react-evidence__item--video .portal-react-evidence__item-header > div {
  min-width: 0;
}

.portal-react-evidence__item--photo .portal-react-evidence__item-header strong,
.portal-react-evidence__item--video .portal-react-evidence__item-header strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portal-react-evidence__item--photo .portal-react-evidence__media-actions,
.portal-react-evidence__item--video .portal-react-evidence__media-actions {
  order: 3;
  padding: 0 14px;
}

.portal-react-evidence__item--photo .portal-react-evidence__item-meta,
.portal-react-evidence__item--video .portal-react-evidence__item-meta {
  order: 4;
  margin: 0 14px 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(203, 219, 228, 0.78);
}

.portal-react-evidence__overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.portal-react-evidence__annotations,
.portal-react-evidence__group {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: var(--portal-surface);
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.06);
}

.portal-react-evidence__annotations-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.portal-react-evidence__annotation-note {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfd;
}

.portal-react-evidence__annotation-note p,
.portal-react-evidence__annotations-body > p {
  margin: 0;
  color: var(--portal-ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

.portal-react-evidence__group-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.portal-react-evidence__group-heading strong {
  display: block;
  color: var(--portal-ink);
}

.portal-react-evidence__photo-grid,
.portal-react-evidence__media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  max-height: min(650px, 62vh);
  overflow: auto;
  padding: 2px 6px 2px 2px;
  align-items: start;
}

.portal-react-evidence__photo-grid .portal-react-evidence__viewer {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.portal-react-evidence__media-grid .portal-react-evidence__viewer {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.portal-react-evidence__audio-list {
  display: grid;
  gap: 12px;
}

.portal-react-evidence__audio-list .portal-react-evidence__item {
  gap: 12px;
}

.portal-react-evidence__audio-list .portal-react-evidence__viewer {
  min-height: 84px;
}

.portal-react-evidence__viewer {
  display: grid;
  place-items: center;
  min-height: 120px;
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: #f8fbfd;
}

.portal-react-evidence__viewer img,
.portal-react-evidence__viewer video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #0f172a;
}

.portal-react-evidence__photo-grid .portal-react-evidence__viewer img {
  height: 100%;
  max-height: none;
}

.portal-react-evidence__item--audio .portal-react-evidence__viewer {
  aspect-ratio: auto;
}

.portal-react-evidence__media-actions,
.portal-react-evidence__photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-react-evidence__media-actions .portal-secondary-button,
.portal-react-evidence__media-actions .portal-secondary-button--link {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.portal-react-evidence__lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.portal-react-evidence__lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 12, 27, 0.76);
}

.portal-react-evidence__lightbox-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  width: min(1120px, 96vw);
  max-height: 94vh;
  padding: 16px;
  border-radius: 18px;
  background: var(--portal-surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.portal-react-evidence__lightbox-panel header,
.portal-react-evidence__lightbox-panel footer,
.portal-react-evidence__lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.portal-react-evidence__lightbox-image {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.portal-react-evidence__lightbox-image img {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
}

.portal-react-evidence__viewer audio {
  width: min(100%, 680px);
}

.portal-react-evidence__viewer p {
  padding: 18px;
  margin: 0;
  color: var(--portal-ink);
  white-space: pre-wrap;
}

.portal-react-evidence__text-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 14px;
  align-items: stretch;
}

.portal-react-evidence__viewer--text {
  place-items: stretch;
  min-height: 260px;
}

.portal-react-evidence__viewer--text p {
  display: flex;
  align-items: center;
  min-height: 100%;
  line-height: 1.65;
}

.portal-react-evidence__map-crop {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: #f8fbfd;
}

.portal-react-evidence__map-crop-heading strong {
  display: block;
  color: var(--portal-ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.portal-react-evidence__map-frame--crop {
  min-height: 210px;
  aspect-ratio: 4 / 3;
}

.portal-react-evidence__map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: var(--portal-primary);
  box-shadow: 0 6px 18px rgba(15, 79, 107, 0.28);
  transform: translate(-50%, -86%) rotate(-45deg);
  pointer-events: none;
}

.portal-react-evidence__map-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #ffffff;
}

.portal-react-evidence__map-crop p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.portal-react-evidence__item-meta {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.portal-react-evidence__forms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(248, 251, 253, 0.96), rgba(255, 255, 255, 0.98));
}

.portal-react-evidence__forms-heading {
  grid-column: 1 / -1;
  align-items: center;
  padding-bottom: 2px;
}

.portal-react-evidence__forms-heading strong,
.portal-react-evidence__action-card h3 {
  display: block;
  margin: 0;
  color: var(--portal-ink);
}

.portal-react-evidence__action-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  background: var(--portal-surface);
  box-shadow: 0 12px 28px rgba(19, 34, 56, 0.06);
}

.portal-react-evidence__action-card--primary {
  background: rgba(15, 159, 155, 0.08);
  border-color: rgba(15, 159, 155, 0.28);
}

.portal-react-evidence__action-heading {
  display: grid;
  gap: 4px;
  min-height: 58px;
}

.portal-react-evidence__action-card p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.portal-react-evidence__action-card label {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-evidence__action-card select,
.portal-react-evidence__action-card textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  font-size: 0.92rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.portal-react-evidence__action-card textarea {
  min-height: 74px;
  resize: vertical;
}

.portal-react-evidence__action-card select:focus,
.portal-react-evidence__action-card textarea:focus {
  border-color: rgba(15, 159, 155, 0.72);
  box-shadow: 0 0 0 3px rgba(15, 159, 155, 0.12);
}

.portal-react-evidence__action-card select:disabled {
  background: #edf2f7;
  color: var(--portal-muted);
}

.portal-react-evidence__action-footer {
  align-items: center;
  justify-content: flex-end;
  margin-top: 4px;
}

.portal-react-evidence__action-footer .portal-primary-button,
.portal-react-evidence__action-footer .portal-secondary-button {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
}

.portal-evidence-fallback-list {
  display: grid;
  gap: 12px;
}

.portal-evidence-package-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  background: #f8fbfd;
}

@media (max-width: 960px) {
  .portal-react-evidence__filters,
  .portal-react-evidence__package {
    grid-template-columns: 1fr;
  }

  .portal-react-evidence__layout,
  .portal-react-evidence__drawer-body {
    grid-template-columns: 1fr;
  }

  .portal-react-evidence__preview {
    position: static;
  }

  .portal-react-evidence__drawer {
    inset: 10px;
    width: auto;
  }

  .portal-react-evidence__drawer-header {
    display: grid;
  }

  .portal-react-evidence__context {
    position: static;
  }

  .portal-react-evidence__forms {
    grid-template-columns: 1fr;
  }

  .portal-react-evidence__text-map-layout {
    grid-template-columns: 1fr;
  }

  .portal-react-evidence__overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portal-react-evidence__photo-grid,
  .portal-react-evidence__media-grid {
    grid-template-columns: 1fr;
  }

  .portal-react-evidence__photo-grid .portal-react-evidence__viewer,
  .portal-react-evidence__media-grid .portal-react-evidence__viewer {
    aspect-ratio: 4 / 3;
  }
}

.portal-react-radar {
  display: grid;
  gap: 16px;
}

.portal-react-radar__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.portal-react-radar__header strong {
  display: block;
  color: var(--portal-primary-dark);
  font-size: 1.05rem;
  line-height: 1.4;
}

.portal-react-radar__meta {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18, 124, 166, 0.08);
  color: var(--portal-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.portal-react-radar__tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.portal-react-radar__recommendation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(18, 124, 166, 0.14);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(244, 250, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.portal-react-radar__recommendation span {
  display: block;
  color: var(--portal-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-react-radar__recommendation strong {
  display: block;
  margin-top: 6px;
  color: var(--portal-primary-dark);
  font-size: 1.08rem;
}

.portal-react-radar__recommendation p {
  margin: 8px 0 0;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-react-radar__recommendation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.portal-react-radar__tab {
  min-width: 156px;
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(18, 124, 166, 0.12);
  background: #fff;
  color: var(--portal-primary-dark);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.portal-react-radar__tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(6, 25, 43, 0.06);
}

.portal-react-radar__tab.is-active {
  border-color: rgba(18, 124, 166, 0.22);
  background: linear-gradient(180deg, rgba(18, 124, 166, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 18px 32px rgba(6, 25, 43, 0.08);
}

.portal-react-radar__tab span {
  font-size: 0.8rem;
  color: var(--portal-muted);
}

.portal-react-radar__tab strong {
  font-size: 1.2rem;
}

.portal-react-radar__panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.portal-react-radar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-react-radar__tension {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(18, 124, 166, 0.08);
}

.portal-react-radar__tension-label {
  color: var(--portal-primary-dark);
  font-weight: 800;
}

.portal-react-radar__tension-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-react-radar__tension-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(18, 124, 166, 0.06);
  color: var(--portal-muted);
  font-size: 0.82rem;
}

.portal-react-radar__tension-metrics strong {
  color: var(--portal-primary-dark);
}

.portal-react-radar__panel-topline {
  display: grid;
  gap: 4px;
}

.portal-react-radar__phase {
  color: var(--portal-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-react-radar__panel-topline strong {
  color: var(--portal-primary-dark);
  font-size: 1.2rem;
}

.portal-react-radar__support {
  color: var(--portal-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.portal-react-radar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.portal-react-radar__flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.portal-react-radar__flow-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 124, 166, 0.08);
}

.portal-react-radar__flow-card--current {
  background: linear-gradient(180deg, rgba(18, 124, 166, 0.10) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(18, 124, 166, 0.18);
}

.portal-react-radar__flow-card--muted {
  opacity: 0.88;
}

.portal-react-radar__flow-card span {
  color: var(--portal-muted);
  font-size: 0.8rem;
}

.portal-react-radar__flow-card strong {
  color: var(--portal-primary-dark);
  line-height: 1.4;
}

.portal-react-radar__flow-card small {
  color: var(--portal-muted);
  line-height: 1.45;
}

.portal-react-radar__card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 124, 166, 0.08);
}

.portal-react-radar__card span {
  color: var(--portal-muted);
  font-size: 0.8rem;
}

.portal-react-radar__card strong {
  color: var(--portal-primary-dark);
  line-height: 1.45;
}

.portal-react-radar__previews {
  display: grid;
  gap: 12px;
}

.portal-react-radar__previews-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.portal-react-radar__previews-header span {
  display: block;
  color: var(--portal-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-react-radar__previews-header strong {
  display: block;
  margin-top: 4px;
  color: var(--portal-primary-dark);
}

.portal-react-radar__previews-header small {
  color: var(--portal-muted);
  line-height: 1.45;
}

.portal-react-radar__preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.portal-react-radar__preview-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 124, 166, 0.10);
  box-shadow: 0 18px 30px rgba(6, 25, 43, 0.05);
}

.portal-react-radar__preview-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.portal-react-radar__preview-topline strong {
  color: var(--portal-primary-dark);
}

.portal-react-radar__preview-card h4 {
  margin: 0;
  color: var(--portal-primary-dark);
  font-size: 1rem;
  line-height: 1.4;
}

.portal-react-radar__preview-card p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-react-radar__preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-react-radar__preview-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.portal-react-radar__preview-badge--success {
  background: rgba(36, 155, 98, 0.12);
  color: #187950;
}

.portal-react-radar__preview-badge--warning {
  background: rgba(247, 157, 37, 0.14);
  color: #9a5e0e;
}

.portal-react-radar__preview-badge--danger {
  background: rgba(215, 75, 75, 0.12);
  color: #a43838;
}

.portal-react-radar__preview-badge--accent {
  background: rgba(18, 124, 166, 0.10);
  color: var(--portal-primary);
}

.portal-react-radar__preview-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.portal-react-radar__preview-meta span {
  display: grid;
  gap: 4px;
  color: var(--portal-muted);
  font-size: 0.82rem;
}

.portal-react-radar__preview-meta strong {
  color: var(--portal-primary-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-react-radar__preview-empty {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(18, 124, 166, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-react-tickets {
  display: grid;
  gap: 18px;
}

.portal-react-tickets__hero,
.portal-react-tickets__toolbar,
.portal-react-tickets__status-rail,
.portal-react-tickets__queue,
.portal-react-tickets__drawer {
  border: 1px solid rgba(15, 76, 92, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.portal-react-tickets__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border-radius: 8px;
}

.portal-react-tickets__hero span,
.portal-react-tickets__queue-heading span,
.portal-react-tickets__drawer-header span,
.portal-react-tickets__field span {
  color: #59738a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-react-tickets__hero h1,
.portal-react-tickets__queue-heading h2,
.portal-react-tickets__drawer-header h2 {
  margin: 4px 0 6px;
  color: #10243a;
}

.portal-react-tickets__hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.portal-react-tickets__hero p,
.portal-react-tickets__hero aside span,
.portal-react-tickets__queue-heading p,
.portal-react-tickets__drawer-header p {
  margin: 0;
  color: #526575;
}

.portal-react-tickets__hero aside {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px;
  border-left: 4px solid #1687a7;
  border-radius: 8px;
  background: #eef8fb;
}

.portal-react-tickets__hero aside strong {
  color: #0f4c5c;
  font-size: 1.05rem;
}

.portal-react-tickets__toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border-radius: 8px;
}

.portal-react-tickets__toolbar-actions {
  display: grid;
  align-items: end;
  grid-column: 2;
  justify-self: end;
}

.portal-react-tickets__create-button {
  min-height: 42px;
  align-self: end;
  white-space: nowrap;
}

.portal-react-tickets__server-filters,
.portal-react-tickets__form {
  display: grid;
  gap: 10px;
}

.portal-react-tickets__server-filters {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  align-items: end;
  min-width: 0;
}

.portal-react-tickets__server-filters > .portal-secondary-button {
  min-height: 42px;
  justify-self: end;
  min-width: 110px;
}

.portal-react-tickets__search,
.portal-react-tickets__field {
  display: grid;
  gap: 6px;
}

.portal-react-tickets__search input,
.portal-react-tickets__field input,
.portal-react-tickets__field select,
.portal-react-tickets__field textarea,
.portal-react-tickets__note textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(15, 76, 92, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #10243a;
  font: inherit;
  padding: 10px 12px;
}

.portal-react-tickets__field select[multiple] {
  min-height: 108px;
}

@media (min-width: 1280px) {
  .portal-react-tickets__toolbar {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) auto;
  }

  .portal-react-tickets__toolbar-actions {
    grid-column: auto;
  }
}

.portal-react-tickets__status-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
}

.portal-react-tickets__status-rail button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(15, 76, 92, 0.14);
  border-radius: 8px;
  background: #f8fbfc;
  color: #10243a;
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.portal-react-tickets__status-rail button.is-active {
  border-color: #1687a7;
  background: #e6f6fa;
}

.portal-react-tickets__status-rail span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-react-tickets__status-rail strong {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #10243a;
  color: #fff;
}

.portal-react-tickets__layout {
  display: grid;
}

.portal-react-tickets__queue {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
}

.portal-react-tickets__queue-heading {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.portal-react-tickets__queue-heading > strong {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #10243a;
  color: #fff;
  font-size: 1.2rem;
}

.portal-react-tickets__route-support {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(15, 76, 92, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 248, 251, 0.92), rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  padding: 16px;
}

.portal-react-tickets__route-support-head {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.portal-react-tickets__route-support-head span {
  color: #59738a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-react-tickets__route-support-head h2 {
  color: #10243a;
  margin: 4px 0 6px;
}

.portal-react-tickets__route-support-head p {
  color: #526575;
  margin: 0;
}

.portal-react-tickets__route-support-metrics {
  display: grid;
  gap: 4px 8px;
  grid-template-columns: auto minmax(7rem, 1fr);
  min-width: min(100%, 18rem);
}

.portal-react-tickets__route-support-metrics strong {
  color: #0f4c5c;
  font-size: 1.25rem;
  text-align: right;
}

.portal-react-tickets__route-support-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  min-width: 0;
}

.portal-react-tickets__route-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(15, 76, 92, 0.14);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.portal-react-tickets__route-group header,
.portal-react-tickets__route-group header div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.portal-react-tickets__route-group header strong {
  color: #10243a;
  overflow-wrap: anywhere;
}

.portal-react-tickets__route-group header span {
  color: #526575;
  font-size: 0.86rem;
}

.portal-react-tickets__route-group ol {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-react-tickets__route-group li {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

.portal-react-tickets__route-group li > button {
  align-items: start;
  background: #f8fbfc;
  border: 1px solid rgba(15, 76, 92, 0.12);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  padding: 10px;
  text-align: left;
}

.portal-react-tickets__route-group li > button > span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0f4c5c;
  color: #fff;
  font-weight: 800;
}

.portal-react-tickets__route-group li div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.portal-react-tickets__route-group li strong,
.portal-react-tickets__route-group li p,
.portal-react-tickets__route-group li small,
.portal-react-tickets__route-group li em {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-react-tickets__route-group li strong {
  color: #10243a;
}

.portal-react-tickets__route-group li p,
.portal-react-tickets__route-group li small {
  color: #526575;
}

.portal-react-tickets__route-group li em {
  color: #9f2d2d;
  font-style: normal;
  font-weight: 800;
}

.portal-react-tickets__route-group li > a {
  align-items: center;
  align-self: stretch;
  border: 1px solid rgba(18, 124, 166, 0.18);
  border-radius: 8px;
  color: #0f4c5c;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 0 12px;
  text-decoration: none;
}

.portal-react-tickets__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.portal-react-tickets__card {
  --contract-color: #1687a7;
  --contract-color-soft: rgba(18, 124, 166, 0.1);
  --contract-color-faint: rgba(18, 124, 166, 0.05);
  min-width: 0;
}

.portal-react-tickets__card button {
  display: grid;
  gap: 12px;
  width: 100%;
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--contract-color) 30%, rgba(15, 76, 92, 0.16));
  border-radius: 8px;
  background: linear-gradient(135deg, var(--contract-color-soft), #ffffff 58%);
  color: inherit;
  cursor: pointer;
  padding: 14px;
  text-align: left;
  box-shadow: inset 5px 0 0 var(--contract-color);
}

.portal-react-tickets__card button:hover {
  border-color: color-mix(in srgb, var(--contract-color) 58%, #1687a7);
  box-shadow: inset 5px 0 0 var(--contract-color), 0 16px 32px rgba(15, 76, 92, 0.12);
}

.portal-react-tickets__card--critical-assignment button {
  border-color: rgba(209, 73, 91, 0.52);
  background: linear-gradient(135deg, rgba(209, 73, 91, 0.1), #ffffff 56%);
  box-shadow: inset 5px 0 0 var(--portal-danger), 0 10px 26px rgba(209, 73, 91, 0.12);
}

.portal-react-tickets__assignment-critical {
  border: 1px solid rgba(209, 73, 91, 0.28);
  letter-spacing: 0;
}

.portal-react-tickets__card-top,
.portal-react-tickets__card-badges,
.portal-react-tickets__drawer-summary,
.portal-react-tickets__form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.portal-react-tickets__card-top {
  justify-content: space-between;
}

.portal-react-tickets__card h3 {
  margin: 0;
  color: #10243a;
  font-size: 1.25rem;
  line-height: 1.25;
}

.portal-react-tickets__card p {
  margin: 0;
  color: #526575;
}

.portal-react-tickets__card-meta {
  color: #6b7f90 !important;
  font-size: 0.86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.portal-react-tickets__card-badges span,
.portal-react-tickets__drawer-summary span,
.portal-react-tickets__badge {
  border-radius: 999px;
  background: #edf2f7;
  color: #10243a;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 9px;
}

.portal-react-tickets__contract-badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--contract-color) !important;
  color: #ffffff !important;
}

.portal-react-tickets__badge--danger,
.portal-react-tickets__card-badges .is-danger {
  background: #fde8e4;
  color: #9b1c1c;
}

.portal-react-tickets__badge--warning,
.portal-react-tickets__card-badges .is-warning {
  background: #fff4d6;
  color: #805b10;
}

.portal-react-tickets__badge--success,
.portal-react-tickets__card-badges .is-success {
  background: #e4f6ec;
  color: #17643a;
}

.portal-react-tickets__badge--accent {
  background: #e6f6fa;
  color: #0f4c5c;
}

.portal-react-tickets__card dl,
.portal-react-tickets__details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.portal-react-tickets__details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-react-tickets__card dl div,
.portal-react-tickets__details div,
.portal-react-tickets__execution-grid > div {
  border-radius: 8px;
  background: #f7fafc;
  padding: 10px;
}

.portal-react-tickets__card dt,
.portal-react-tickets__details dt {
  color: #6b7f90;
  font-size: 0.76rem;
  font-weight: 800;
}

.portal-react-tickets__card dd,
.portal-react-tickets__details dd {
  margin: 2px 0 0;
  color: #10243a;
  font-weight: 700;
}

.portal-react-tickets__modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.portal-react-tickets__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(2px);
}

.portal-react-tickets__drawer {
  --contract-color: #1687a7;
  --contract-color-soft: rgba(18, 124, 166, 0.1);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border: 1px solid rgba(210, 226, 235, 0.94);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(7, 21, 35, 0.3);
  overflow: hidden;
}

.portal-react-tickets__drawer--form {
  width: min(1080px, calc(100vw - 48px));
}

.portal-react-tickets__drawer--error {
  width: min(720px, calc(100vw - 48px));
}

.portal-react-tickets__drawer-header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(15, 76, 92, 0.12);
  background:
    linear-gradient(90deg, var(--contract-color-soft), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: inset 5px 0 0 var(--contract-color);
}

.portal-react-tickets__drawer-body {
  display: grid;
  align-content: start;
  gap: 16px;
  overflow-y: auto;
  padding: 20px 24px 24px;
}

.portal-react-tickets__prefill-context {
  display: grid;
  gap: 6px;
  margin: 18px 24px 0;
  padding: 12px 14px;
  border: 1px solid rgba(15, 76, 92, 0.12);
  border-radius: 14px;
  background: #f8fbfd;
}

.portal-react-tickets__prefill-context span {
  color: #59738a;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-tickets__prefill-context strong {
  color: #10243a;
}

.portal-react-tickets__asset-context,
.portal-react-tickets__problem-picker {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(15, 76, 92, 0.14);
  border-radius: 12px;
  background: #f8fbfd;
  padding: 14px;
}

.portal-react-tickets__asset-context span,
.portal-react-tickets__problem-picker legend,
.portal-react-tickets__problem-picker-head span {
  color: #0f8794;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-react-tickets__asset-context strong {
  color: #10243a;
  font-size: 1rem;
}

.portal-react-tickets__asset-context p,
.portal-react-tickets__problem-list p {
  margin: 0;
  color: #587086;
}

.portal-react-tickets__asset-context--warning {
  border-color: rgba(220, 122, 33, 0.34);
  background: #fff8ef;
}

.portal-react-tickets__asset-context--warning span {
  color: #a35214;
}

.portal-react-tickets__problem-picker {
  border-style: solid;
  padding-top: 12px;
}

.portal-react-tickets__problem-picker legend {
  padding: 0 4px;
}

.portal-react-tickets__problem-picker-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.portal-react-tickets__problem-picker-head label {
  display: grid;
  gap: 6px;
}

.portal-react-tickets__problem-picker-head input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(15, 76, 92, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #10243a;
  font: inherit;
  padding: 10px 12px;
}

.portal-react-tickets__problem-picker-head strong {
  white-space: nowrap;
  color: #38566e;
}

.portal-react-tickets__problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.portal-react-tickets__problem-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(15, 76, 92, 0.14);
  border-radius: 10px;
  background: #fff;
  color: #10243a;
  cursor: pointer;
  padding: 10px 12px;
}

.portal-react-tickets__problem-option input {
  width: 18px;
  height: 18px;
}

.portal-react-tickets__form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.portal-react-tickets__field--wide,
.portal-react-tickets__form-actions,
.portal-react-tickets__check,
.portal-react-tickets__action {
  grid-column: 1 / -1;
}

.portal-react-tickets__actions {
  display: grid;
  gap: 10px;
}

.portal-react-tickets__inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
}

.portal-react-tickets__inline-actions .portal-secondary-button {
  flex: 1 1 210px;
  justify-content: center;
}

.portal-react-tickets__critical-notice {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(209, 73, 91, 0.28);
  border-left: 4px solid var(--portal-danger);
  border-radius: 8px;
  background: #fffafa;
  color: #5d1720;
  padding: 12px 14px;
}

.portal-react-tickets__critical-notice strong {
  color: #9b1c1c;
}

.portal-react-tickets__critical-notice p {
  margin: 0;
  color: #6b2b33;
}

.portal-react-tickets__quick-action {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(18, 124, 166, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(222, 241, 247, 0.46) 100%);
  padding: 14px;
}

.portal-react-tickets__quick-action > p {
  margin: 0;
  color: #526575;
}

.portal-react-tickets__quick-action-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(15, 76, 92, 0.12);
  padding-bottom: 12px;
}

.portal-react-tickets__quick-action-head div {
  display: grid;
  gap: 4px;
}

.portal-react-tickets__quick-action-head strong {
  color: #10243a;
  font-size: 1rem;
}

.portal-react-tickets__quick-action-head span {
  color: #526575;
  font-size: 0.82rem;
  font-weight: 800;
}

.portal-react-tickets__quick-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr) auto;
  gap: 12px;
  align-items: end;
}

.portal-react-tickets__quick-form .portal-react-tickets__field--wide {
  grid-column: auto;
}

@media (max-width: 860px) {
  .portal-react-tickets__quick-action-head,
  .portal-react-tickets__quick-form {
    grid-template-columns: 1fr;
  }

  .portal-react-tickets__quick-action-head {
    display: grid;
  }

  .portal-react-tickets__quick-form .portal-react-tickets__field--wide {
    grid-column: 1 / -1;
  }
}

.portal-react-tickets__action {
  border: 1px solid rgba(15, 76, 92, 0.14);
  border-radius: 8px;
  background: #fff;
}

.portal-react-tickets__action--danger {
  border-color: rgba(209, 73, 91, 0.32);
  background: #fffafa;
}

.portal-react-tickets__action--danger summary {
  color: var(--portal-danger);
}

.portal-react-tickets__action summary {
  cursor: pointer;
  font-weight: 800;
  padding: 12px 14px;
}

.portal-react-tickets__action .portal-react-tickets__form {
  padding: 12px;
}

.portal-react-tickets__form-actions--right {
  display: flex;
  justify-content: flex-end;
}

.portal-react-tickets__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #526575;
}

.portal-react-tickets__section {
  display: grid;
  gap: 10px;
}

.portal-react-tickets__review {
  display: grid;
  gap: 14px;
}

.portal-react-tickets__review-callout {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(18, 124, 166, 0.22);
  border-radius: 8px;
  background: #eef8fb;
  padding: 14px;
}

.portal-react-tickets__review-callout--warning,
.portal-react-tickets__section--warning {
  border-color: rgba(217, 119, 6, 0.28);
  background: #fff7ed;
}

.portal-react-tickets__review-callout span,
.portal-react-tickets__review-hint {
  color: #7c4a03;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-react-tickets__review-callout strong {
  display: block;
  color: #10243a;
  margin-top: 3px;
}

.portal-react-tickets__review-callout p,
.portal-react-tickets__review-hint {
  margin: 0;
}

.portal-react-tickets__section h3 {
  margin: 0;
  color: #10243a;
}

.portal-react-tickets__note,
.portal-react-tickets__timeline-item {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(15, 76, 92, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.portal-react-tickets__timeline-item span {
  color: #6b7f90;
  font-size: 0.78rem;
  font-weight: 800;
}

.portal-react-tickets__timeline-item p,
.portal-react-tickets__note p,
.portal-react-tickets__execution-grid p {
  margin: 0;
  color: #526575;
}

.portal-react-tickets__execution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.portal-react-tickets__media-stack {
  display: grid;
  gap: 16px;
}

.portal-react-tickets__media-stack h4 {
  margin: 0 0 8px;
  color: #10243a;
}

.portal-react-tickets__photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.portal-react-tickets__photo-recovery {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.portal-react-tickets__photo-link-form {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(176, 112, 18, 0.24);
  border-radius: 8px;
  background: #fffaf0;
  padding: 9px;
}

.portal-react-tickets__photo-link-form label {
  display: grid;
  gap: 5px;
  color: #2c4353;
  font-size: 0.78rem;
  font-weight: 800;
}

.portal-react-tickets__photo-link-form select {
  width: 100%;
  min-width: 0;
}

.portal-react-tickets__photo-link-confirm {
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center;
  font-weight: 600 !important;
}

.portal-react-tickets__photo-card,
.portal-react-tickets__media-card,
.portal-react-tickets__checklist-review article {
  box-sizing: border-box;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid rgba(15, 76, 92, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #10243a;
  padding: 10px;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
}

.portal-react-tickets__photo-card > *,
.portal-react-tickets__media-card > * {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.portal-react-tickets__photo-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: #eef2f6;
}

.portal-react-tickets__photo-fallback {
  box-sizing: border-box;
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  place-items: center;
  border: 1px dashed rgba(15, 76, 92, 0.22);
  border-radius: 6px;
  background: #eef2f6;
  color: #526575;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  padding: 12px;
  overflow-wrap: anywhere;
}

.portal-react-tickets__photo-card strong,
.portal-react-tickets__media-card strong {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.25;
  word-break: normal;
}

.portal-react-tickets__media-card audio,
.portal-react-tickets__media-card video {
  width: 100%;
  max-height: 280px;
}

.portal-react-tickets__video-player {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #050b12;
}

.portal-react-tickets__video-player video {
  display: block;
}

.portal-react-tickets__video-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 44px;
  display: grid;
  gap: 2px;
  width: fit-content;
  max-width: calc(100% - 20px);
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(5, 11, 18, 0.78);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.25;
  pointer-events: none;
}

.portal-react-tickets__video-overlay strong,
.portal-react-tickets__video-overlay span {
  color: inherit;
}

.portal-react-tickets__video-context-note {
  font-size: 0.78rem !important;
}

.portal-react-tickets__media-meta,
.portal-react-tickets__media-card p {
  margin: 0;
  color: #526575;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.portal-react-tickets__integrity {
  max-width: 100%;
  width: fit-content;
  border-radius: 999px;
  background: #eef2f6;
  color: #526575;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.portal-react-tickets__integrity--success {
  background: #e8f8ef;
  color: #126b3a;
}

.portal-react-tickets__integrity--warning,
.portal-react-tickets__integrity--danger {
  background: #fff1f2;
  color: #9f1239;
}

.portal-react-tickets__checklist-review {
  display: grid;
  gap: 8px;
}

.portal-react-tickets__checklist-review article {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.8fr);
  align-items: start;
}

.portal-react-tickets__checklist-review article.is-pending {
  border-color: rgba(217, 119, 6, 0.32);
  background: #fff7ed;
}

.portal-react-tickets__checklist-review span {
  color: #526575;
}

.portal-react-tickets__seal-review article {
  grid-template-columns: 1fr;
}

.portal-react-tickets__seal-review small {
  color: #64748b;
}

.portal-react-tickets__empty {
  border: 1px dashed rgba(15, 76, 92, 0.24);
  border-radius: 8px;
  color: #526575;
  padding: 18px;
  text-align: center;
}

@media (max-width: 980px) {
  .portal-react-tickets__hero,
  .portal-react-tickets__toolbar,
  .portal-react-tickets__server-filters,
  .portal-react-tickets__details,
  .portal-react-tickets__execution-grid,
  .portal-react-tickets__route-support-head,
  .portal-react-tickets__route-group li {
    grid-template-columns: 1fr;
  }

  .portal-react-tickets__route-support-metrics {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .portal-react-tickets__route-support-metrics strong {
    text-align: left;
  }

  .portal-react-tickets__route-group li > a {
    min-height: 40px;
  }

  .portal-react-tickets__form {
    grid-template-columns: 1fr;
  }

  .portal-react-tickets__toolbar-actions,
  .portal-react-tickets__create-button {
    width: 100%;
  }

  .portal-react-tickets__toolbar-actions {
    grid-column: 1;
    justify-self: stretch;
  }

  .portal-react-tickets__server-filters > .portal-secondary-button {
    justify-self: stretch;
  }

  .portal-react-tickets__review-callout,
  .portal-react-tickets__checklist-review article {
    display: grid;
    grid-template-columns: 1fr;
  }

  .portal-react-tickets__modal {
    padding: 10px;
  }

  .portal-react-tickets__drawer,
  .portal-react-tickets__drawer--form {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .portal-react-tickets__drawer-header {
    display: grid;
    padding: 18px;
  }

  .portal-react-tickets__drawer-body,
  .portal-react-tickets__form {
    padding: 16px;
  }

  .portal-react-tickets__prefill-context {
    margin: 14px 16px 0;
  }

  .portal-react-tickets__problem-picker-head {
    grid-template-columns: 1fr;
  }

  .portal-react-tickets__problem-list {
    grid-template-columns: 1fr;
  }
}

.portal-react-host--map [data-react-mount] {
  min-height: 0;
}

.portal-react-authenticity {
  display: grid;
  gap: 18px;
}

.portal-react-authenticity__hero,
.portal-react-authenticity__upload,
.portal-react-authenticity__result {
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: var(--portal-surface);
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.08);
}

.portal-react-authenticity__hero {
  padding: 22px;
}

.portal-react-authenticity__hero span,
.portal-react-authenticity__result-heading span,
.portal-react-authenticity__matches span {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-authenticity__hero h1,
.portal-react-authenticity__result-heading h2 {
  margin: 4px 0 6px;
  color: var(--portal-ink);
}

.portal-react-authenticity__hero p,
.portal-react-authenticity__upload p,
.portal-react-authenticity__result-heading p,
.portal-react-authenticity__matches p,
.portal-react-authenticity__matches small {
  margin: 0;
  color: var(--portal-muted);
}

.portal-react-authenticity__upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
}

.portal-react-authenticity__upload label {
  display: grid;
  gap: 8px;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-authenticity__upload input {
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  padding: 10px;
}

.portal-react-authenticity__upload p {
  grid-column: 1 / -1;
}

.portal-react-authenticity__result {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.portal-react-authenticity__result--found {
  border-color: rgba(30, 132, 73, 0.28);
  background: #f3fbf6;
}

.portal-react-authenticity__result--not_found {
  border-color: rgba(191, 76, 51, 0.28);
  background: #fff7f4;
}

.portal-react-authenticity__result-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.portal-react-authenticity__result > code {
  display: block;
  overflow-wrap: anywhere;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  padding: 12px;
}

.portal-react-authenticity__matches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.portal-react-authenticity__matches article,
.portal-react-authenticity__empty {
  display: grid;
  gap: 6px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

@media (max-width: 760px) {
  .portal-react-authenticity__upload {
    grid-template-columns: 1fr;
  }
}

.portal-react-map {
  display: grid;
  gap: 18px;
}

.portal-react-map__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.portal-react-map__header strong {
  display: block;
  max-width: 720px;
  color: var(--portal-primary-dark);
  font-size: 1.05rem;
  line-height: 1.5;
}

.portal-react-map__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-react-map__stats span {
  display: inline-grid;
  gap: 4px;
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 124, 166, 0.12);
  color: var(--portal-muted);
  font-size: 0.82rem;
  box-shadow: 0 16px 30px rgba(6, 25, 43, 0.05);
}

.portal-react-map__stats strong {
  color: var(--portal-primary-dark);
  font-size: 1rem;
}

.portal-react-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.98));
}

.portal-react-map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.portal-react-map__swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid transparent;
}

.portal-react-map__swatch--teal {
  background: #0f766e;
  border-color: #0f4f6b;
}

.portal-react-map__swatch--amber {
  background: #d97706;
  border-color: #b45309;
}

.portal-react-map__swatch--slate {
  background: #64748b;
  border-color: #475569;
}

.portal-react-map__body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.portal-react-map__canvas-shell,
.portal-react-map__aside {
  display: grid;
  gap: 14px;
}

.portal-react-map__canvas-shell {
  position: relative;
  min-height: 520px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 22px 38px rgba(6, 25, 43, 0.06);
}

.portal-react-map__canvas {
  width: 100%;
  min-height: 484px;
  border-radius: 22px;
  border: 1px dashed rgba(18, 124, 166, 0.18);
  background:
    radial-gradient(circle at top left, rgba(18, 124, 166, 0.08), transparent 24%),
    linear-gradient(135deg, #eef6fa, #fafdff);
  opacity: 0;
  transition: opacity 160ms ease;
}

.portal-react-map__canvas.is-ready {
  opacity: 1;
}

.portal-react-map__fallback {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px dashed rgba(18, 124, 166, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-react-map__fallback strong {
  color: var(--portal-primary-dark);
}

.portal-react-map__selection,
.portal-react-map__list {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background:
    radial-gradient(circle at top right, rgba(255, 139, 94, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.98) 100%);
  box-shadow: 0 18px 30px rgba(6, 25, 43, 0.05);
}

.portal-react-map__selection--empty {
  color: var(--portal-muted);
}

.portal-react-map__selection-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.portal-react-map__selection-topline span,
.portal-react-map__selection-topline strong {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.portal-react-map__selection-topline span {
  background: rgba(18, 124, 166, 0.10);
  color: var(--portal-primary);
}

.portal-react-map__selection-topline strong {
  background: rgba(255, 139, 94, 0.14);
  color: #a9511f;
}

.portal-react-map__selection h4 {
  margin: 14px 0 0;
  color: var(--portal-primary-dark);
  font-size: 1.18rem;
}

.portal-react-map__selection > p {
  margin: 8px 0 0;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-react-map__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.portal-react-map__details div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 124, 166, 0.08);
}

.portal-react-map__details dt {
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-react-map__details dd {
  margin: 0;
  color: var(--portal-primary-dark);
  line-height: 1.45;
  font-weight: 700;
}

.portal-react-map__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.portal-react-map__note {
  display: block;
  margin-top: 12px;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-react-map__list {
  display: grid;
  gap: 10px;
}

.portal-react-map__list-item {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background: rgba(255, 255, 255, 0.9);
  color: var(--portal-primary-dark);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.portal-react-map__list-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 24px rgba(6, 25, 43, 0.06);
}

.portal-react-map__list-item.is-active {
  border-color: rgba(18, 124, 166, 0.22);
  background: linear-gradient(180deg, rgba(18, 124, 166, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.portal-react-map__list-item span {
  color: var(--portal-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-react-map__list-item strong {
  color: var(--portal-primary-dark);
  font-size: 0.98rem;
  line-height: 1.4;
}

.portal-react-map__list-item small {
  color: var(--portal-muted);
  line-height: 1.45;
}

.portal-asset-map-picker,
.portal-asset-map-workspace {
  display: grid;
  gap: 16px;
}

.portal-asset-map-picker--workspace {
  grid-template-rows: auto minmax(620px, 1fr) auto;
  height: 100%;
}

.portal-asset-map-picker__header,
.portal-asset-map-workspace__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.portal-asset-map-picker__header strong,
.portal-asset-map-workspace__hero strong {
  display: block;
  color: var(--portal-primary-dark);
}

.portal-asset-map-picker__header p,
.portal-asset-map-workspace__hero p {
  margin: 6px 0 0;
  color: var(--portal-muted);
  line-height: 1.55;
}

.portal-asset-map-workspace__hero-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.portal-asset-map-workspace__hero-command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.portal-asset-map-visibility-shell {
  gap: 10px;
}

.portal-asset-map-mode-shell {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.98) 100%);
}

.portal-asset-map-mode-shell__buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.portal-asset-map-mode-shell__buttons .portal-filter-chip {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  cursor: pointer;
}

.portal-asset-map-workspace__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-asset-map-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.98) 100%);
}

.portal-asset-map-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(18, 124, 166, 0.12);
  color: var(--portal-primary-dark);
  font-weight: 800;
}

.portal-asset-map-step strong {
  display: block;
  color: var(--portal-primary-dark);
}

.portal-asset-map-step p {
  margin: 4px 0 0;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-asset-map-picker__canvas {
  min-height: 620px;
  height: 100%;
  border-radius: 24px;
  border: 1px solid rgba(18, 124, 166, 0.14);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(247, 251, 253, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 18px 30px rgba(6, 25, 43, 0.05);
}

.portal-asset-map-picker__canvas-shell {
  position: relative;
  min-height: 620px;
}

.portal-asset-map-picker__canvas-shell .portal-asset-map-picker__canvas {
  min-height: inherit;
}

.portal-asset-map-floating-panel {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: min(420px, calc(100% - 36px));
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(18, 124, 166, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 50px rgba(6, 25, 43, 0.16);
  backdrop-filter: blur(10px);
}

.portal-asset-map-floating-panel.is-hidden {
  display: none;
}

.portal-asset-map-floating-panel__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(18, 124, 166, 0.14);
  border-radius: 999px;
  background: rgba(248, 252, 255, 0.96);
  color: var(--portal-primary-dark);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.portal-asset-map-floating-panel__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 34px;
}

.portal-asset-map-floating-panel__header strong {
  display: block;
  color: var(--portal-primary-dark);
  line-height: 1.25;
}

.portal-asset-map-floating-panel__header small {
  display: block;
  margin-top: 3px;
  color: var(--portal-muted);
  line-height: 1.35;
}

.portal-asset-map-floating-panel__details {
  padding-top: 2px;
}

.portal-asset-map-floating-panel__chamado {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(18, 124, 166, 0.12);
  background: linear-gradient(180deg, rgba(18, 124, 166, 0.08) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.portal-asset-map-floating-panel__chamado strong {
  color: var(--portal-primary-dark);
}

.portal-asset-map-floating-panel__chamado.is-empty {
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.08) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.portal-asset-map-floating-panel__actions {
  gap: 8px;
}

.portal-asset-map-floating-panel__actions .portal-primary-button,
.portal-asset-map-floating-panel__actions .portal-secondary-button {
  min-height: 38px;
  padding: 9px 12px;
}

.portal-asset-map-picker__summary {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background: rgba(255, 255, 255, 0.9);
  color: var(--portal-primary-dark);
  line-height: 1.5;
}

.portal-asset-map-workspace__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.portal-asset-map-workspace__aside {
  display: grid;
  gap: 16px;
  align-content: start;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.portal-asset-map-workspace__aside::-webkit-scrollbar {
  width: 10px;
}

.portal-asset-map-workspace__aside::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(18, 124, 166, 0.22);
}

.portal-asset-map-selection-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 24px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.98) 100%);
  box-shadow: 0 18px 30px rgba(6, 25, 43, 0.05);
}

.portal-asset-map-panel {
  padding: 14px 16px;
  border-radius: 24px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background:
    radial-gradient(circle at top right, rgba(255, 139, 94, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 252, 255, 0.99) 100%);
  box-shadow: 0 18px 30px rgba(6, 25, 43, 0.04);
}

.portal-asset-map-panel.is-mode-hidden {
  display: none;
}

.is-live-hidden {
  display: none !important;
}

.portal-asset-live-empty {
  margin-top: 14px;
}

.portal-asset-map-workspace__list {
  display: grid;
  gap: 10px;
}

.portal-detail-list--compact div {
  gap: 4px;
  padding: 4px 0;
}

.portal-detail-list--compact dt {
  font-size: 0.78rem;
}

.portal-detail-list--compact dd {
  font-size: 0.96rem;
  line-height: 1.35;
}

.portal-inline-form--compact {
  gap: 12px;
}

.portal-fieldset {
  display: grid;
  gap: 12px;
}

.portal-fieldset__legend {
  font-weight: 700;
  color: var(--portal-primary-dark);
}

.portal-map-icon-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.portal-map-icon-choice-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.portal-map-icon-choice {
  display: block;
}

.portal-map-icon-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.portal-map-icon-choice__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(18, 124, 166, 0.12);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.05), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.98) 100%);
  box-shadow: 0 12px 24px rgba(6, 25, 43, 0.04);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.portal-map-icon-choice__card:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 124, 166, 0.24);
  box-shadow: 0 16px 28px rgba(6, 25, 43, 0.07);
}

.portal-map-icon-choice input:checked + .portal-map-icon-choice__card {
  border-color: rgba(18, 124, 166, 0.34);
  box-shadow: 0 18px 32px rgba(18, 124, 166, 0.12);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(244, 250, 253, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.portal-map-icon-choice__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  background: #127ca6;
  box-shadow: inset 0 -2px 0 rgba(15, 23, 42, 0.12);
}

.portal-map-icon-choice__glyph--auto {
  background: #64748b;
}

.portal-map-icon-choice__glyph--radar {
  background: #127ca6;
}

.portal-map-icon-choice__glyph--camera {
  background: #0f766e;
}

.portal-map-icon-choice__glyph--portal {
  background: #6d5efc;
}

.portal-map-icon-choice__glyph--balanca {
  background: #8b5cf6;
}

.portal-map-icon-choice__glyph--pedagio {
  background: #0ea5a4;
}

.portal-map-icon-choice__glyph--posto {
  background: #f97316;
}

.portal-map-icon-choice__glyph--sensor {
  background: #475569;
}

.portal-map-icon-choice__copy {
  display: grid;
  gap: 4px;
}

.portal-map-icon-choice__copy strong {
  color: var(--portal-primary-dark);
}

.portal-map-icon-choice__copy small {
  color: var(--portal-muted);
  line-height: 1.45;
}

.portal-map-symbol-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(18, 124, 166, 0.12);
  border-radius: 18px;
  background: rgba(248, 252, 255, 0.92);
}

.portal-map-symbol-editor__preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.portal-map-symbol-editor__preview strong {
  color: var(--portal-primary-dark);
}

.portal-map-symbol-editor__preview small {
  display: block;
  margin-top: 3px;
  color: var(--portal-muted);
  line-height: 1.45;
}

.portal-contract-color-swatch {
  display: inline-flex;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--contract-color, #127CA6);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
  vertical-align: middle;
  margin-right: 6px;
}

.portal-asset-map-workspace__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-asset-map-workspace__chips .portal-filter-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}

.portal-asset-map-workspace__chips .portal-filter-chip small {
  color: var(--portal-muted);
}

.portal-asset-map-selection-card__topline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-asset-map-open-panel {
  display: grid;
  gap: 10px;
}

.portal-asset-map-open-panel .portal-role-badge {
  align-self: start;
}

.portal-asset-map-territory-panel {
  display: grid;
  gap: 10px;
}

.portal-asset-map-territory-list {
  display: grid;
  gap: 10px;
}

.portal-asset-map-territory-empty {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px dashed rgba(18, 124, 166, 0.16);
  color: var(--portal-muted);
  background: rgba(255, 255, 255, 0.82);
}

.portal-asset-map-nearby-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(18, 124, 166, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.98) 100%);
  text-align: left;
  cursor: pointer;
}

.portal-asset-map-nearby-button:hover {
  border-color: rgba(18, 124, 166, 0.24);
  box-shadow: 0 14px 28px rgba(6, 25, 43, 0.06);
}

.portal-asset-map-nearby-button__copy {
  display: grid;
  gap: 4px;
}

.portal-asset-map-nearby-button__copy small {
  color: var(--portal-muted);
  line-height: 1.3;
}

.portal-asset-map-hotspot-button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(18, 124, 166, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 139, 94, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.98) 100%);
  text-align: left;
  cursor: pointer;
}

.portal-asset-map-hotspot-button:hover {
  border-color: rgba(18, 124, 166, 0.24);
  box-shadow: 0 14px 28px rgba(6, 25, 43, 0.06);
}

.portal-asset-map-hotspot-button strong {
  color: var(--portal-primary-dark);
}

.portal-asset-map-hotspot-button small {
  color: var(--portal-muted);
  line-height: 1.3;
}

.portal-asset-map-selection-card .portal-subtitle,
.portal-asset-map-panel .portal-subtitle,
.portal-asset-map-panel .portal-inline-form__hint {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.38;
}

.portal-inline-form__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-asset-map-preview {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.portal-asset-map-preview__copy p {
  margin: 6px 0 0;
  color: var(--portal-muted);
  line-height: 1.55;
}

.portal-asset-map-preview__canvas {
  min-height: 240px;
  border-radius: 20px;
  border: 1px solid rgba(18, 124, 166, 0.14);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(247, 251, 253, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  overflow: hidden;
}

.portal-asset-map-workspace__chips .portal-filter-chip.is-active {
  border-color: rgba(18, 124, 166, 0.26);
  background: linear-gradient(180deg, rgba(18, 124, 166, 0.10) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.portal-asset-map-workspace.is-expanded .portal-asset-map-workspace__body {
  grid-template-columns: 1fr;
}

.portal-asset-map-workspace.is-expanded .portal-asset-map-picker__canvas {
  min-height: 84vh;
}

.portal-asset-map-workspace.is-expanded .portal-asset-map-picker__canvas-shell {
  min-height: 84vh;
}

.portal-react-map__swatch--blue {
  background: #127ca6;
}

@media (max-width: 1100px) {
  .portal-google-maps-usage__hero {
    flex-direction: column;
  }

  .portal-google-maps-usage__grid {
    grid-template-columns: 1fr;
  }

  .portal-react-map__body {
    grid-template-columns: 1fr;
  }

  .portal-react-map__canvas-shell {
    min-height: 420px;
  }

  .portal-react-map__canvas {
    min-height: 380px;
  }

  .portal-asset-map-workspace__body {
    grid-template-columns: 1fr;
  }

  .portal-asset-map-workspace__aside {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .portal-asset-map-workspace__hero-actions {
    justify-items: stretch;
  }

  .portal-asset-map-workspace__hero-command-row {
    justify-content: stretch;
  }

  .portal-asset-map-workspace__steps,
  .portal-asset-map-mode-shell__buttons,
  .portal-inline-form__split {
    grid-template-columns: 1fr;
  }

  .portal-asset-map-picker__canvas {
    min-height: 520px;
  }

  .portal-asset-map-picker__canvas-shell {
    min-height: 520px;
  }

  .portal-asset-map-floating-panel {
    top: auto;
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    overflow: auto;
  }

  .portal-asset-map-picker--workspace {
    grid-template-rows: auto minmax(520px, 1fr) auto;
  }
}

.portal-ops-lane {
  transition: opacity 140ms ease, transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.portal-ops-lane.is-react-muted {
  opacity: 0.54;
}

.portal-ops-lane.is-react-focused {
  transform: translateY(-2px);
  border-color: rgba(18, 124, 166, 0.20);
  box-shadow: 0 20px 40px rgba(6, 25, 43, 0.10);
}

.portal-kanban-journey-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.10), transparent 42%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(6, 25, 43, 0.05);
}

.portal-kanban-journey-card strong {
  color: var(--portal-primary-dark);
  font-size: 1rem;
}

.portal-kanban-journey-card p,
.portal-kanban-journey-card small {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-kanban-journey-card small {
  color: var(--portal-primary);
  font-weight: 700;
}

.portal-ops-lane__guide {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(18, 124, 166, 0.06);
  border: 1px solid rgba(18, 124, 166, 0.08);
}

.portal-ops-lane__guide span {
  color: var(--portal-muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.portal-ops-lane__guide strong {
  color: var(--portal-primary-dark);
}

.portal-ops-lane__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 2px;
}

.portal-ops-lane__actions .portal-secondary-button {
  min-height: 40px;
  padding: 0 14px;
}

.portal-inline-form textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.portal-inline-form .portal-password-field input[type="password"] {
  padding-right: 110px;
}

.portal-inline-checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 600 !important;
}

.portal-inline-checkbox input,
.portal-table-checkbox input {
  width: 16px;
  height: 16px;
}

.portal-panel__actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.portal-panel__actions--start {
  justify-content: flex-start;
}

.portal-permissions-form {
  display: grid;
  gap: 14px;
}

.portal-table-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-weight: 700;
}

.portal-timeline {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.portal-timeline__item {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fbfd;
  border: 1px solid var(--portal-border);
}

.portal-timeline__item p {
  margin: 6px 0 0;
  color: var(--portal-muted);
}

.portal-panel--journey {
  display: none;
}

.portal-panel--filters {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 253, 0.98));
}

.portal-journey-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.portal-journey-step {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--portal-border);
  background: linear-gradient(135deg, #ffffff, #f8fbfd);
}

.portal-journey-step strong {
  font-size: 17px;
  color: var(--portal-primary-dark);
}

.portal-journey-step p,
.portal-journey-step small {
  margin: 0;
  line-height: 1.55;
}

.portal-journey-step p {
  color: var(--portal-ink);
}

.portal-journey-step small {
  color: var(--portal-muted);
  font-weight: 700;
}

.portal-journey-step--triage {
  background: linear-gradient(135deg, #f5fbff, #ffffff);
}

.portal-journey-step--field {
  background: linear-gradient(135deg, #fffbf1, #ffffff);
}

.portal-journey-step--review {
  background: linear-gradient(135deg, #f4fbf7, #ffffff);
}

.portal-empty-callout {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  border: 1px dashed var(--portal-border);
  background: rgba(255, 255, 255, 0.74);
}

.portal-empty-callout strong {
  font-size: 18px;
  color: var(--portal-primary-dark);
}

.portal-empty-callout p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.6;
}

.portal-ops-board {
  display: grid;
  gap: 18px;
}

.portal-chamados-cockpit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.portal-chamados-cockpit__card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 16px 32px rgba(6, 25, 43, 0.05);
}

.portal-chamados-cockpit__card--triage {
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(245, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.portal-chamados-cockpit__card--field {
  background:
    radial-gradient(circle at top right, rgba(198, 134, 24, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 241, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.portal-chamados-cockpit__card--review {
  background:
    radial-gradient(circle at top right, rgba(29, 143, 98, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(244, 251, 247, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.portal-chamados-cockpit__card--contingency {
  background:
    radial-gradient(circle at top right, rgba(198, 76, 18, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255, 248, 242, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.portal-chamados-cockpit__card strong {
  color: var(--portal-primary-dark);
  font-size: 1.12rem;
  line-height: 1.45;
}

.portal-chamados-cockpit__card p,
.portal-chamados-cockpit__card small {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.55;
}

.portal-chamados-cockpit__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-chamados-cockpit__metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(18, 124, 166, 0.08);
  color: var(--portal-primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.portal-chamados-cockpit__metrics strong {
  font-size: 0.92rem;
}

.portal-chamados-lane-jump {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.portal-chamados-lane-jump__card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 14px 28px rgba(6, 25, 43, 0.05);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.portal-chamados-lane-jump__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(6, 25, 43, 0.08);
  border-color: rgba(18, 124, 166, 0.18);
}

.portal-chamados-lane-jump__card span {
  color: var(--portal-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-chamados-lane-jump__card strong {
  color: var(--portal-primary-dark);
  font-size: 1.4rem;
  line-height: 1;
}

.portal-chamados-lane-jump__card small {
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-ops-lane {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--portal-border);
  background: linear-gradient(135deg, #fbfdff, #f6fafc);
}

.portal-ops-lane--triage {
  background: linear-gradient(135deg, #f5fbff, #ffffff);
}

.portal-ops-lane--field {
  background: linear-gradient(135deg, #fffaf1, #ffffff);
}

.portal-ops-lane--review {
  background: linear-gradient(135deg, #f4fbf7, #ffffff);
}

.portal-ops-lane__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.portal-ops-lane__header strong {
  display: block;
  font-size: 18px;
  color: var(--portal-primary-dark);
}

.portal-ops-lane__header p,
.portal-ops-lane__header span {
  margin: 6px 0 0;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-ops-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.portal-ops-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--portal-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.portal-ops-card h4 {
  margin: 0;
  font-size: 20px;
}

.portal-ops-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.portal-ops-card__code {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18, 124, 166, 0.1);
  color: var(--portal-primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-ops-card__lede {
  margin: -4px 0 0;
  color: var(--portal-muted);
  line-height: 1.55;
}

.portal-ops-quickfacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.portal-ops-quickfacts div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(18, 124, 166, 0.05);
  border: 1px solid rgba(18, 124, 166, 0.08);
}

.portal-ops-quickfacts span {
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal-ops-quickfacts strong {
  color: var(--portal-primary-dark);
  font-size: 14px;
  line-height: 1.45;
}

.portal-ops-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-ops-meta div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #f8fbfd;
  border: 1px solid #e5edf3;
}

.portal-ops-meta span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 700;
}

.portal-ops-meta strong {
  font-size: 14px;
  line-height: 1.45;
}

.portal-next-step {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(14, 58, 75, 0.05);
  border: 1px solid rgba(14, 58, 75, 0.08);
}

.portal-next-step span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal-next-step strong {
  color: var(--portal-primary-dark);
  line-height: 1.5;
}

.portal-ops-quick-review {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(29, 143, 98, 0.16);
  background:
    radial-gradient(circle at top right, rgba(29, 143, 98, 0.10), transparent 36%),
    rgba(244, 251, 247, 0.94);
}

.portal-ops-quick-review--field-ready {
  border-color: rgba(29, 143, 98, 0.16);
  background:
    radial-gradient(circle at top right, rgba(29, 143, 98, 0.10), transparent 36%),
    rgba(244, 251, 247, 0.94);
}

.portal-ops-quick-review--triage-ready {
  border-color: rgba(18, 124, 166, 0.16);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.10), transparent 36%),
    rgba(244, 250, 255, 0.96);
}

.portal-ops-quick-review--field-blocked {
  border-color: rgba(192, 57, 43, 0.16);
  background:
    radial-gradient(circle at top right, rgba(209, 73, 91, 0.10), transparent 36%),
    rgba(255, 245, 246, 0.96);
}

.portal-ops-quick-review div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.portal-ops-quick-review span {
  color: var(--portal-success);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-ops-quick-review--field-blocked span {
  color: var(--portal-danger);
}

.portal-ops-quick-review strong {
  color: var(--portal-primary-dark);
  line-height: 1.5;
}

.portal-ops-alert {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(183, 121, 31, 0.18);
  background: rgba(255, 243, 224, 0.68);
}

.portal-ops-alert--danger {
  border-color: rgba(192, 57, 43, 0.2);
  background: rgba(255, 235, 233, 0.8);
}

.portal-ops-alert__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-ops-alert__header strong {
  color: var(--portal-primary-dark);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-ops-alert__header span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.portal-ops-alert__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.portal-ops-alert__list li {
  display: grid;
  gap: 2px;
  color: var(--portal-ink);
  line-height: 1.45;
}

.portal-ops-alert__detail {
  color: var(--portal-muted);
  font-size: 12px;
}

.portal-inline-details--tight {
  margin-top: 8px;
}

.portal-inline-details--ops-context,
.portal-inline-details--ops-action {
  background: rgba(248, 251, 253, 0.92);
}

.portal-inline-details--contingency {
  border-color: rgba(198, 76, 18, 0.18);
  background:
    radial-gradient(circle at top right, rgba(198, 76, 18, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 249, 245, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.portal-inline-details--ops-context summary,
.portal-inline-details--ops-action summary {
  font-size: 0.92rem;
}

.portal-contingency-note {
  display: grid;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(198, 76, 18, 0.12);
  background: rgba(198, 76, 18, 0.05);
  color: var(--portal-primary-dark);
}

.portal-contingency-note p {
  margin: 0;
  color: var(--portal-muted);
}

.portal-contingency-list {
  display: grid;
  gap: 10px;
  margin: 0 14px 14px;
  padding: 0;
  list-style: none;
}

.portal-contingency-list__item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background: rgba(255, 255, 255, 0.82);
  color: var(--portal-primary-dark);
}

.portal-contingency-list__item span {
  color: var(--portal-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.portal-contingency-list__item--danger {
  border-color: rgba(179, 77, 63, 0.16);
  background: rgba(179, 77, 63, 0.05);
}

.portal-contingency-list__item--warning {
  border-color: rgba(198, 134, 24, 0.18);
  background: rgba(198, 134, 24, 0.06);
}

.portal-contingency-list__item--accent {
  border-color: rgba(18, 124, 166, 0.14);
  background: rgba(18, 124, 166, 0.05);
}

.portal-inline-details--ops-context .portal-ops-meta {
  padding: 0 14px 14px;
}

.portal-inline-details--terminal-lanes {
  width: 100%;
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(18, 124, 166, 0.10);
  background:
    radial-gradient(circle at top right, rgba(18, 124, 166, 0.06), transparent 36%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.portal-inline-details--terminal-lanes summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--portal-primary-dark);
  font-weight: 800;
}

.portal-inline-details--terminal-lanes summary small {
  color: var(--portal-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.portal-ops-terminal-stack {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.portal-ops-empty {
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed var(--portal-border);
  color: var(--portal-muted);
  background: rgba(255, 255, 255, 0.7);
}

.portal-inline-form--compact {
  padding: 0;
}

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

  .portal-sidebar {
    gap: 18px;
    position: relative;
    max-height: none;
    height: auto;
  }

  .portal-grid--cards,
  .portal-grid--panels,
  .portal-grid--role-permissions,
  .portal-catalog-grid,
  .portal-phase-card__grid {
    grid-template-columns: 1fr;
  }

  .portal-ops-meta {
    grid-template-columns: 1fr;
  }

  .portal-ops-quickfacts {
    grid-template-columns: 1fr;
  }

  .portal-ops-lane__actions {
    flex-direction: column;
  }

  .portal-ops-quick-review {
    align-items: stretch;
  }

  .portal-topbar__sidebar-toggle {
    display: inline-flex;
  }

  .portal-user-chip {
    min-width: 0;
  }

  .portal-sidebar-collapsed .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-sidebar-collapsed .portal-sidebar {
    display: none;
  }

  .portal-equipment-list__head {
    display: none;
  }

  .portal-equipment-row {
    grid-template-columns: 1fr;
  }

  .portal-equipment-row__actions {
    grid-template-columns: 1fr;
    justify-content: flex-start;
  }

  .portal-equipment-expansion__hero,
  .portal-equipment-expansion__grid,
  .portal-equipment-expansion__forms,
  .portal-equipment-expansion__tables {
    grid-template-columns: 1fr;
  }

  .portal-equipment-active-callout__grid {
    grid-template-columns: 1fr;
  }

  .portal-prefill-callout__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .portal-login-card,
  .portal-main,
  .portal-sidebar {
    padding: 22px;
  }

  .portal-hero,
  .portal-topbar,
  .portal-login-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-floating-tools {
    left: 16px;
    right: 16px;
    justify-content: space-between;
  }

  .portal-global-version,
  .portal-help-fab {
    justify-content: center;
  }

  .portal-sidebar__brand {
    padding: 18px;
  }

  .portal-sidebar__brand-pill {
    padding: 8px 12px;
  }

  .portal-sidebar__brand-logo {
    width: 94px;
  }

  .portal-brand-title {
    font-size: 26px;
  }

  .portal-ops-lane__header,
  .portal-ops-card__topline {
    flex-direction: column;
  }

  .portal-user-chip {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
  }

  .portal-user-chip__actions {
    margin-left: 0;
    justify-items: start;
  }

  .portal-help-panel {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 76px;
  }

  .portal-inline-help {
    width: 100%;
  }

  .portal-inline-help > summary {
    width: 100%;
    justify-content: center;
  }

  .portal-inline-help__panel {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
}


.portal-google-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 20px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #f8fbfd);
  border: 1px solid var(--portal-border);
  color: var(--portal-primary-dark);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.portal-google-cta:hover {
  color: var(--portal-primary-dark);
  border-color: rgba(18, 124, 166, 0.3);
  transform: translateY(-1px);
}


.portal-login-note--compact {
  margin-top: 18px;
  margin-bottom: 0;
}

.portal-auth-form {
  display: grid;
  gap: 14px;
}

.portal-auth-form input,
.portal-auth-form select,
.portal-auth-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--portal-border);
  background: #fff;
  color: var(--portal-ink);
}

.portal-auth-form textarea {
  min-height: 120px;
  padding: 14px;
}

.portal-auth-form--embedded {
  max-width: 640px;
}

.portal-field {
  display: grid;
  gap: 8px;
}

.portal-field label {
  font-weight: 700;
}

.portal-field--error input,
.portal-field--error select,
.portal-field--error textarea {
  border-color: #f2c3bd;
}

.portal-field__help {
  color: var(--portal-muted);
}

.portal-field__errors {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  color: var(--portal-danger);
  font-size: 13px;
  font-weight: 600;
}

.portal-field__errors ul {
  margin: 0;
  padding-left: 18px;
}

.portal-password-field {
  position: relative;
}

.portal-password-field input {
  padding-right: 110px;
}

.portal-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--portal-border);
  background: #f8fbfd;
  color: var(--portal-primary-dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.portal-password-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.portal-auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.portal-auth-actions--compact {
  margin: 0 0 18px;
}

.portal-auth-inline-form {
  flex: 1 1 0;
  margin: 0;
}

.portal-auth-actions .portal-primary-button,
.portal-auth-actions .portal-secondary-button {
  width: 100%;
}

.portal-auth-links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.portal-auth-links--inline {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.portal-secondary-link {
  color: var(--portal-primary-dark);
  font-weight: 700;
  text-align: center;
}

.portal-panel--spaced {
  margin-top: 20px;
}
.central-notification-bell {
  position: fixed;
  right: 22px;
  bottom: 78px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(18, 124, 166, 0.2);
  border-radius: 999px;
  background: rgba(239, 250, 253, 0.96);
  color: #00324d;
  box-shadow: 0 12px 30px rgba(0, 32, 50, 0.14);
  font-size: 0.86rem;
  font-weight: 700;
}

.central-notification-bell strong {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #075a70;
  color: #fff;
  font-size: 0.78rem;
}

.central-notification-bell__sound {
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(18, 124, 166, 0.24);
  border-radius: 999px;
  background: #fff;
  color: #075a70;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
}

.central-notification-stack {
  position: fixed;
  right: 22px;
  bottom: 126px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
}

.central-notification-stack.has-chat-queue {
  bottom: 420px;
}

.central-chat-queue {
  position: fixed;
  right: 22px;
  bottom: 126px;
  z-index: 75;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid rgba(18, 124, 166, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(0, 32, 50, 0.16);
}

.central-chat-queue header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #00324d;
  font-weight: 900;
}

.central-chat-queue header span {
  color: #008c95;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.central-chat-queue header strong {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #a73500;
  color: #fff;
  font-size: 0.78rem;
}

.central-chat-queue button {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(18, 124, 166, 0.16);
  border-radius: 10px;
  background: #f7fcfd;
  color: #06233d;
  cursor: pointer;
  text-align: left;
}

.central-chat-queue button span,
.central-chat-queue button small {
  color: #526b84;
  font-size: 0.78rem;
}

.central-notification-toast {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(18, 124, 166, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(0, 32, 50, 0.18);
}

.central-notification-toast span,
.central-chat-panel header span {
  display: block;
  color: #008c95;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.central-notification-toast strong {
  display: block;
  margin-top: 4px;
  color: #00264a;
  font-size: 1rem;
}

.central-notification-toast p {
  margin: 6px 0 0;
  color: #48627d;
  line-height: 1.4;
}

.central-notification-toast__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.central-notification-toast__actions button,
.central-notification-toast__actions a,
.central-chat-panel button {
  border: 0;
  border-radius: 10px;
  background: #dff1f6;
  color: #004866;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.central-notification-toast__actions button:first-child,
.central-notification-toast__actions a:first-child,
.central-chat-panel footer button,
.central-chat-panel__accept {
  background: #075a70;
  color: #fff;
}

.central-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  width: min(460px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 44px));
  border: 1px solid rgba(18, 124, 166, 0.24);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 32, 50, 0.22);
}

.central-chat-panel header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: #f3fbfd;
  border-bottom: 1px solid rgba(18, 124, 166, 0.14);
}

.central-chat-panel__header-actions {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.central-chat-panel header strong {
  display: block;
  margin-top: 4px;
  color: #00264a;
  font-size: 1.05rem;
}

.central-chat-panel header p,
.central-chat-panel__context {
  margin: 4px 0 0;
  color: #526b84;
  font-size: 0.88rem;
}

.central-chat-panel__context {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(18, 124, 166, 0.12);
  background: #fbfdfe;
}

.central-chat-panel__messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  overflow: auto;
  padding: 16px;
  background: #f8fbfd;
}

.central-chat-message {
  max-width: 86%;
  padding: 10px 12px;
  border: 1px solid rgba(18, 124, 166, 0.14);
  border-radius: 12px;
  background: #fff;
}

.central-chat-message--support {
  justify-self: end;
  background: #e3f2f7;
}

.central-chat-message--system {
  justify-self: center;
  max-width: 100%;
  background: #fff8e9;
}

.central-chat-message span {
  display: block;
  color: #48627d;
  font-size: 0.75rem;
  font-weight: 800;
}

.central-chat-message p {
  margin: 4px 0 0;
  color: #06233d;
  line-height: 1.4;
}

.central-chat-message__attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(7, 90, 112, 0.1);
  color: #004866;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.central-chat-panel__empty {
  padding: 24px;
  text-align: center;
  color: #526b84;
}

.central-chat-panel__accept {
  margin: 12px 16px 0;
}

.central-chat-panel__error {
  margin: 10px 16px 0;
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 10px;
  background: #fff1f2;
  color: #be123c;
  font-size: 0.86rem;
  font-weight: 800;
}

.central-chat-panel__closed {
  margin: 12px 16px 16px;
  padding: 12px;
  border: 1px solid rgba(18, 124, 166, 0.18);
  border-radius: 10px;
  background: #eef7fa;
  color: #004866;
  font-size: 0.86rem;
  font-weight: 800;
}

.central-chat-panel footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(18, 124, 166, 0.14);
  background: #fff;
}

.central-chat-panel__composer {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.central-chat-panel textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(18, 124, 166, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
  color: #06233d;
  font: inherit;
}

.central-chat-panel__file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #eef7fa;
  color: #004866;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.central-chat-panel__file input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.central-chat-panel__selected-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: #526b84;
  font-size: 0.82rem;
}

.central-chat-panel__selected-file span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.central-chat-panel__selected-file button {
  padding: 6px 8px;
}

.central-chat-close-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
}

.central-chat-close-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 18, 32, 0.58);
  cursor: default;
}

.central-chat-close-modal__card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(560px, 100%);
  padding: 22px;
  border: 1px solid rgba(18, 124, 166, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 241, 246, 0.82), rgba(255, 255, 255, 0.96) 42%),
    #fff;
  box-shadow: 0 28px 70px rgba(0, 24, 44, 0.3);
}

.central-chat-close-modal__card header {
  display: grid;
  gap: 6px;
}

.central-chat-close-modal__card header span {
  color: #008c95;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.central-chat-close-modal__card h2 {
  margin: 0;
  color: #06233d;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.central-chat-close-modal__card p,
.central-chat-close-modal__context span {
  margin: 0;
  color: #526b84;
  line-height: 1.45;
}

.central-chat-close-modal__context {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(18, 124, 166, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.central-chat-close-modal__context strong {
  color: #06233d;
}

.central-chat-close-modal__card label {
  display: grid;
  gap: 8px;
  color: #48627d;
  font-size: 0.86rem;
  font-weight: 900;
}

.central-chat-close-modal__card textarea {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  border: 1px solid rgba(18, 124, 166, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: #06233d;
  font: inherit;
  font-weight: 600;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.central-chat-close-modal__card textarea:focus {
  border-color: #127ca6;
  box-shadow: 0 0 0 4px rgba(18, 124, 166, 0.14);
}

.central-chat-close-modal__error {
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 8px;
  background: #fff1f2;
  color: #be123c;
  font-size: 0.86rem;
  font-weight: 900;
}

.central-chat-close-modal__card footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.central-chat-close-modal__card footer button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #075a70;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 10px 16px;
}

.central-chat-close-modal__card footer button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.central-chat-close-modal__card footer .central-chat-close-modal__secondary {
  border: 1px solid rgba(18, 124, 166, 0.18);
  background: #eef7fa;
  color: #004866;
}

.portal-react-monitoring__row-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #526b84;
  font-size: 0.88rem;
}

.portal-react-field-kpis {
  display: grid;
  gap: 18px;
}

.portal-react-field-kpis__hero,
.portal-react-field-kpis__panel {
  border: 1px solid rgba(18, 124, 166, 0.14);
  border-radius: 8px;
  background: #fff;
}

.portal-react-field-kpis__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
}

.portal-react-field-kpis__hero h1 {
  margin: 4px 0 6px;
  color: #06233d;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.portal-react-field-kpis__hero p,
.portal-react-field-kpis__metric p,
.portal-react-field-kpis__rows p {
  margin: 0;
  color: #526b84;
}

.portal-react-field-kpis__filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
}

.portal-react-field-kpis__filters label {
  display: grid;
  gap: 6px;
  color: #48627d;
  font-size: 0.82rem;
  font-weight: 800;
}

.portal-react-field-kpis__filters input,
.portal-react-field-kpis__filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(18, 124, 166, 0.22);
  border-radius: 8px;
  padding: 9px 10px;
  color: #06233d;
  font: inherit;
}

.portal-react-field-kpis__filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.portal-react-field-kpis__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.portal-react-field-kpis__metric {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid rgba(18, 124, 166, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.portal-react-field-kpis__metric span {
  color: #48627d;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-field-kpis__metric strong {
  color: #06233d;
  font-size: 2rem;
  line-height: 1;
}

.portal-react-field-kpis__metric--danger {
  border-color: rgba(220, 38, 38, 0.24);
  background: #fff7f7;
}

.portal-react-field-kpis__metric--success {
  border-color: rgba(22, 163, 74, 0.22);
  background: #f4fbf7;
}

.portal-react-field-kpis__metric--accent {
  border-color: rgba(124, 58, 237, 0.2);
  background: #faf7ff;
}

.portal-react-field-kpis__grid,
.portal-react-field-kpis__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portal-react-field-kpis__panel {
  min-width: 0;
  padding: 16px;
}

.portal-react-field-kpis__panel--wide {
  min-height: 390px;
}

.portal-react-field-kpis__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.portal-react-field-kpis__heading strong {
  color: #06233d;
}

.portal-react-field-kpis__chart {
  width: 100%;
  min-height: 320px;
}

.portal-react-field-kpis__journey,
.portal-react-field-kpis__rows,
.portal-react-field-kpis__asset-list {
  display: grid;
  gap: 10px;
}

.portal-react-field-kpis__journey div,
.portal-react-field-kpis__rows > div,
.portal-react-field-kpis__asset-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(18, 124, 166, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfd;
}

.portal-react-field-kpis__journey span,
.portal-react-field-kpis__asset-list span {
  color: #48627d;
  font-size: 0.82rem;
  font-weight: 800;
}

.portal-react-field-kpis__journey strong,
.portal-react-field-kpis__asset-list strong {
  color: #06233d;
}

@media (max-width: 720px) {
  .portal-react-field-kpis__hero,
  .portal-react-field-kpis__heading,
  .portal-react-field-kpis__journey div,
  .portal-react-field-kpis__rows > div,
  .portal-react-field-kpis__asset-list article {
    display: grid;
  }

  .portal-react-field-kpis__filters,
  .portal-react-field-kpis__summary,
  .portal-react-field-kpis__grid,
  .portal-react-field-kpis__split {
    grid-template-columns: 1fr;
  }

  .portal-react-monitoring-chat__filters,
  .portal-react-monitoring-chat__summary,
  .portal-react-monitoring-map__body {
    grid-template-columns: 1fr;
  }

  .portal-react-monitoring-map {
    padding: 8px;
  }

  .portal-react-monitoring-map__panel {
    height: calc(100vh - 16px);
  }

  .portal-react-monitoring-map__header {
    display: grid;
  }

  .portal-react-monitoring-map__canvas {
    min-height: 420px;
  }

  .portal-react-monitoring-map__side {
    max-height: 360px;
  }

  .central-notification-bell,
  .central-notification-stack,
  .central-chat-queue,
  .central-chat-panel {
    right: 12px;
  }

  .central-chat-panel footer {
    grid-template-columns: 1fr;
  }

  .central-chat-close-modal {
    align-items: end;
    padding: 12px;
  }

  .central-chat-close-modal__card {
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding: 18px;
  }

  .central-chat-close-modal__card footer {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media print {
  body:has(#technician-location-report) * {
    visibility: hidden !important;
  }

  body:has(#technician-location-report) #technician-location-report,
  body:has(#technician-location-report) #technician-location-report * {
    visibility: visible !important;
  }

  body:has(#technician-location-report) {
    background: #fff !important;
  }

  body:has(#technician-location-report) .portal-react-monitoring-report {
    position: absolute;
    inset: 0 auto auto 0;
    display: grid;
    gap: 18px;
    padding: 18px;
    color: #102a43;
  }
}
.portal-react-seals {
  display: grid;
  gap: 20px;
}

.portal-react-seals,
.portal-react-seals *,
.portal-community-insights,
.portal-community-insights *,
.portal-community-knowledge,
.portal-community-knowledge *,
.portal-community-thread,
.portal-community-thread * {
  box-sizing: border-box;
  min-width: 0;
}

.portal-react-seals__hero,
.portal-react-seals__panel,
.portal-react-seals__metric,
.portal-react-seals__notice {
  background: var(--portal-surface, #fff);
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 8px;
  box-shadow: var(--portal-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.06));
}

.portal-react-seals__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 18px;
  align-items: end;
  padding: 22px;
}

.portal-react-seals__hero h1,
.portal-react-seals__heading h2 {
  margin: 0;
  color: var(--portal-text, #172033);
  letter-spacing: 0;
}

.portal-react-seals__hero p,
.portal-react-seals__heading span,
.portal-react-seals__metric span,
.portal-react-seals__table-row small,
.portal-react-seals__package-main span,
.portal-react-seals__package-footer {
  color: var(--portal-muted, #607085);
}

.portal-react-seals__eyebrow {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.portal-react-seals__filters,
.portal-react-seals__stack,
.portal-react-seals__dispatch {
  display: grid;
  gap: 10px;
}

.portal-react-seals__filters {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  align-items: end;
}

.portal-react-seals__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 8px;
  background: #f8fbfd;
}

.portal-react-seals__tabs button {
  min-height: 34px;
  background: #e8f3f7;
  color: #176b87;
}

.portal-react-seals__tabs button.is-active {
  background: #176b87;
  color: #fff;
}

.portal-react-seals__workflow {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 8px;
  background: #fbfdff;
}

.portal-react-seals__cart-builder {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(220px, 2fr) minmax(130px, 1fr) minmax(96px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
}

.portal-react-seals__cart-builder--manual {
  grid-template-columns: minmax(160px, 1.2fr) minmax(130px, 0.75fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) auto;
}

.portal-react-seals__tabs--steps button {
  flex: 1 1 112px;
}

.portal-react-seals label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--portal-text, #172033);
}

.portal-react-seals input,
.portal-react-seals select,
.portal-react-seals textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--portal-text, #172033);
}

.portal-react-seals textarea {
  resize: vertical;
  min-height: 96px;
}

.portal-react-seals button {
  max-width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  background: #176b87;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: normal;
}

.portal-react-seals button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.portal-react-seals__tabs button {
  min-height: 34px;
  background: #e8f3f7;
  color: #176b87;
}

.portal-react-seals__tabs button.is-active {
  background: #176b87;
  color: #fff;
}

.portal-react-seals__button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 12px;
  border-radius: 8px;
  padding: 8px 14px;
  background: #e8f2f6;
  color: #176b87;
  font-weight: 700;
  text-decoration: none;
}

.portal-react-seals__button-link:hover,
.portal-react-seals__button-link:focus-visible {
  background: #d7eaf1;
  color: #0f4f63;
}

.portal-react-seals__button--secondary {
  background: #e8f2f6 !important;
  color: #176b87 !important;
}

.portal-react-seals__button--danger {
  background: #b42318 !important;
  color: #fff !important;
}

.portal-react-seals__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: 12px;
}

.portal-react-seals__metric {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.portal-react-seals__metric strong {
  font-size: 1.6rem;
  color: var(--portal-text, #172033);
}

.portal-react-seals__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: start;
}

.portal-react-seals__grid--actions {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

.portal-react-seals__panel {
  padding: 18px;
}

.portal-react-seals__panel--wide {
  min-width: 0;
}

.portal-react-seals__heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.portal-react-seals__heading h2 {
  flex: 1 1 180px;
  line-height: 1.16;
}

.portal-react-seals__heading span {
  flex: 1 1 160px;
  max-width: 28ch;
  line-height: 1.34;
  text-align: right;
}

.portal-react-seals__actions,
.portal-react-seals__badges,
.portal-react-seals__package-footer,
.portal-react-seals__package-seals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.portal-react-seals__actions > *,
.portal-react-seals__badges > *,
.portal-react-seals__package-footer > *,
.portal-react-seals__package-seals > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.portal-react-seals__notice {
  padding: 12px 14px;
  color: #7a2e0e;
  background: #fff7ed;
  border-color: #fed7aa;
}

.portal-react-seals__selector,
.portal-react-seals__package-list,
.portal-react-seals__table,
.portal-react-seals__mini-list {
  display: grid;
  gap: 8px;
}

.portal-react-seals__csv-template {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 8px;
  background: #f8fafc;
}

.portal-react-seals__csv-template-head,
.portal-react-seals__csv-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.portal-react-seals__csv-template-head {
  justify-content: space-between;
}

.portal-react-seals__csv-template-head button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 6px;
  background: #ffffff;
  color: var(--portal-text, #172033);
  font-weight: 700;
}

.portal-react-seals__csv-columns span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 6px;
  padding: 3px 8px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.78rem;
  font-weight: 800;
}

.portal-react-seals__csv-template pre {
  margin: 0;
  overflow: auto;
  border-radius: 6px;
  padding: 10px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.portal-react-seals__csv-template small {
  color: var(--portal-muted, #607085);
  line-height: 1.45;
}

.portal-react-seals__selector {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 8px;
  padding: 8px;
}

.portal-react-seals__check-row {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 8px;
  border-radius: 6px;
  background: #f8fafc;
}

.portal-react-seals__check-row input {
  width: 18px;
  min-height: 18px;
}

.portal-react-seals__package,
.portal-react-seals__table-row,
.portal-react-seals__mini-list > div {
  display: grid;
  gap: 8px;
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.portal-react-seals__package-main,
.portal-react-seals__table-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
}

.portal-react-seals__package-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.portal-react-seals__package-seals span,
.portal-react-seals__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef2f7;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
}

.portal-react-seals__badge.is-success {
  background: #dcfce7;
  color: #166534;
}

.portal-react-seals__badge.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.portal-react-seals__badge.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.portal-react-seals__badge.is-info {
  background: #e0f2fe;
  color: #075985;
}

.portal-react-seals__badge.is-neutral {
  background: #e2e8f0;
  color: #334155;
}

.portal-react-seals__dispatch {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.portal-react-seals__dispatch--review {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.portal-react-seals__table-row .portal-react-seals__dispatch {
  grid-column: 1 / -1;
}

.portal-react-seals__empty {
  padding: 14px;
  border: 1px dashed var(--portal-border, #d9e2ec);
  border-radius: 8px;
  color: var(--portal-muted, #607085);
}

.portal-react-seals__grid--balanced {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
}

.portal-react-seals__tabs--primary {
  position: sticky;
  top: 0;
  z-index: 4;
}

.portal-react-seals__compact-list {
  display: grid;
  gap: 6px;
  overflow-x: auto;
}

.portal-react-seals__compact-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1.35fr) minmax(110px, 0.65fr) minmax(100px, 0.55fr) minmax(64px, 0.35fr) minmax(120px, 0.55fr);
  gap: 10px;
  align-items: center;
  min-width: 860px;
  padding: 8px 10px;
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.86rem;
}

.portal-react-seals__compact-row--head {
  min-height: 32px;
  background: #f3f7fa;
  color: var(--portal-muted, #607085);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-react-seals__compact-row strong,
.portal-react-seals__compact-row b {
  color: var(--portal-text, #172033);
}

.portal-react-seals__compact-row strong {
  display: grid;
  gap: 2px;
}

.portal-react-seals__compact-row small {
  color: var(--portal-muted, #607085);
  font-size: 0.76rem;
  line-height: 1.3;
}

.portal-react-seals__compact-list--audit .portal-react-seals__compact-row {
  grid-template-columns: minmax(116px, 0.58fr) minmax(190px, 1.2fr) minmax(140px, 0.85fr) minmax(56px, 0.32fr) minmax(130px, 0.72fr);
  min-width: 680px;
}

.portal-react-seals__compact-list--adjustments .portal-react-seals__compact-row {
  grid-template-columns: minmax(116px, 0.55fr) minmax(150px, 0.9fr) minmax(180px, 1fr) minmax(76px, 0.35fr) minmax(96px, 0.45fr) minmax(220px, 1fr);
  min-width: 900px;
}

.portal-react-seals__review {
  display: grid;
  gap: 6px;
}

.portal-react-seals__review input {
  min-height: 34px;
}

.portal-react-seals__review .portal-react-seals__actions button {
  min-height: 32px;
  padding: 6px 10px;
}

.portal-react-seals .is-positive {
  color: #166534;
}

.portal-react-seals .is-negative {
  color: #991b1b;
}

.portal-react-seals__mini-list .is-error {
  border-color: #fecaca;
  background: #fff1f2;
}

.portal-react-fleet__heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.portal-react-fleet__vehicle-list .portal-react-seals__compact-row {
  grid-template-columns: minmax(9rem, 1.1fr) minmax(11rem, 1fr) minmax(13rem, 1.25fr) minmax(7rem, 0.65fr) minmax(6rem, 0.55fr) minmax(6rem, 0.5fr);
}

.portal-react-fleet__reading-list .portal-react-seals__compact-row {
  grid-template-columns: minmax(8rem, 0.8fr) minmax(7rem, 0.65fr) minmax(10rem, 1fr) minmax(11rem, 1fr) minmax(6rem, 0.55fr) minmax(7rem, 0.65fr);
}

.portal-react-fleet__conformance-list .portal-react-seals__compact-row {
  grid-template-columns: minmax(8rem, 0.8fr) minmax(11rem, 1fr) minmax(13rem, 1.15fr) minmax(8rem, 0.7fr) minmax(7rem, 0.58fr) minmax(4rem, 0.35fr);
}

.portal-react-fleet__inspection-list .portal-react-seals__compact-row {
  grid-template-columns: minmax(8rem, 0.75fr) minmax(9rem, 0.85fr) minmax(11rem, 1fr) minmax(7rem, 0.65fr) minmax(4rem, 0.35fr) minmax(6rem, 0.5fr);
}

.portal-react-fleet__maintenance-list .portal-react-seals__compact-row {
  grid-template-columns: minmax(8rem, 0.75fr) minmax(9rem, 0.8fr) minmax(12rem, 1.05fr) minmax(8rem, 0.68fr) minmax(7rem, 0.58fr) minmax(12rem, 1fr) minmax(6rem, 0.45fr);
}

.portal-react-fleet__maintenance-alert-list .portal-react-seals__compact-row {
  grid-template-columns: minmax(6rem, 0.55fr) minmax(8rem, 0.75fr) minmax(12rem, 1fr) minmax(9rem, 0.75fr) minmax(9rem, 0.8fr) minmax(13rem, 1.1fr);
}

.portal-react-fleet__import-list .portal-react-seals__compact-row {
  grid-template-columns: minmax(4rem, 0.3fr) minmax(8rem, 0.7fr) minmax(10rem, 0.9fr) minmax(12rem, 1fr) minmax(11rem, 0.95fr) minmax(9rem, 0.85fr);
}

.portal-react-fleet .portal-react-seals__compact-row > *,
.portal-react-fleet__readings * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-react-fleet .portal-react-seals__compact-row small,
.portal-react-fleet .portal-react-seals__compact-row span {
  display: block;
}

.portal-react-fleet__summary-pills {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  min-width: min(100%, 20rem);
}

.portal-react-fleet__modal {
  align-items: stretch;
  display: flex;
  inset: 0;
  justify-content: flex-end;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  position: fixed;
  z-index: 80;
}

.portal-react-fleet__backdrop {
  background: rgba(8, 30, 45, 0.42);
  border: 0;
  border-radius: 0;
  inset: 0;
  padding: 0;
  position: fixed;
}

.portal-react-fleet__dialog {
  background: #ffffff;
  border: 1px solid rgba(14, 116, 144, 0.2);
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  max-width: min(58rem, 100%);
  overflow: hidden;
  position: relative;
  width: 58rem;
}

.portal-react-fleet__dialog-head {
  align-items: flex-start;
  border-bottom: 1px solid rgba(14, 116, 144, 0.18);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem 1.35rem;
}

.portal-react-fleet__dialog-head h2 {
  color: #08233f;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  margin: 0;
  overflow-wrap: anywhere;
}

.portal-react-fleet__form {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: auto;
  padding: 1.25rem 1.35rem 1.35rem;
}

.portal-react-fleet__import,
.portal-react-fleet__import-preview {
  display: grid;
  gap: 1rem;
}

.portal-react-fleet__import {
  align-items: end;
  grid-template-columns: minmax(18rem, 1fr) auto;
}

.portal-react-fleet__contract-map {
  display: grid;
  gap: 0.75rem;
}

.portal-react-fleet__contract-map-row {
  align-items: end;
  background: #fff;
  border: 1px solid rgba(15, 96, 120, 0.16);
  border-radius: 0.9rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
  margin: 0;
  padding: 0.85rem;
}

.portal-react-fleet__contract-map-row > span {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-react-fleet__contract-map-row small,
.portal-react-fleet__contract-map-hint {
  color: #5b7086;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.portal-react-fleet__contract-map-row select {
  min-width: 0;
  width: 100%;
}

.portal-react-fleet__contract-filter {
  align-items: flex-start;
  background: #f7fbfd;
  border: 1px dashed rgba(15, 96, 120, 0.2);
  border-radius: 0.9rem;
  display: flex;
  gap: 0.7rem;
  margin: 0;
  padding: 0.8rem 0.9rem;
}

.portal-react-fleet__contract-filter input {
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

.portal-react-fleet__contract-filter span {
  color: #063450;
  display: grid;
  font-weight: 800;
  gap: 0.15rem;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-react-fleet__contract-filter small {
  color: #5b7086;
  font-weight: 700;
}

.portal-react-fleet__form label {
  min-width: 0;
}

.portal-react-fleet__wide,
.portal-react-fleet__actions {
  grid-column: 1 / -1;
}

.portal-react-fleet__inspection-link {
  align-items: flex-start;
  background: transparent;
  border: 0;
  color: #0e7490;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.portal-react-fleet__inspection-link small {
  color: #5b7086;
  font-weight: 700;
  text-decoration: none;
}

.portal-react-fleet__inspection-link:focus-visible,
.portal-react-fleet__inspection-photo:focus-visible {
  outline: 3px solid rgba(14, 116, 144, 0.35);
  outline-offset: 3px;
}

.portal-react-fleet__inspection-filters {
  align-items: end;
  background: #f6fafc;
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: 0.9rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(12rem, 1.4fr) repeat(2, minmax(9rem, 0.7fr)) minmax(11rem, 1fr) minmax(9rem, 0.7fr) auto;
  margin-bottom: 1rem;
  padding: 1rem;
}

.portal-react-fleet__inspection-filters label {
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.35rem;
  min-width: 0;
  text-transform: uppercase;
}

.portal-react-fleet__inspection-filters input,
.portal-react-fleet__inspection-filters select {
  min-width: 0;
  width: 100%;
}

.portal-react-fleet__inspection-summary,
.portal-react-fleet__inspection-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 0.75rem 0;
}

.portal-react-fleet__inspection-row {
  border-radius: 0.65rem;
  cursor: pointer;
}

.portal-react-fleet__inspection-row.is-selected {
  background: #e6f5f9;
  box-shadow: inset 3px 0 #0e7490;
}

.portal-react-fleet__inspection-map-block {
  border-top: 1px solid rgba(14, 116, 144, 0.16);
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.portal-react-fleet__inspection-map-block h3,
.portal-react-fleet__inspection-map-block p {
  margin: 0;
}

.portal-react-fleet__inspection-map-block p {
  color: #5b7086;
  margin-top: 0.25rem;
}

.portal-react-fleet__inspection-map {
  background: linear-gradient(135deg, #eef8f5, #edf6fb);
  border: 1px solid rgba(14, 116, 144, 0.22);
  border-radius: 1rem;
  min-height: 22rem;
  overflow: hidden;
  position: relative;
}

.portal-react-fleet__inspection-map-grid {
  background-image:
    linear-gradient(rgba(14, 116, 144, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 116, 144, 0.08) 1px, transparent 1px);
  background-size: 3rem 3rem;
  inset: 0;
  position: absolute;
}

.portal-react-fleet__inspection-map button {
  background: #0e7490;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 5px 15px rgba(8, 35, 63, 0.24);
  color: #fff;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  max-width: 8rem;
  overflow: hidden;
  padding: 0.45rem 0.65rem;
  position: absolute;
  text-overflow: ellipsis;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.portal-react-fleet__inspection-map button.is-selected {
  background: #b45309;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.24);
  z-index: 2;
}

.portal-react-fleet__inspection-map-detail {
  background: #fff;
  border: 1px solid rgba(14, 116, 144, 0.2);
  border-radius: 1rem;
  display: grid;
  gap: 0.75rem;
  overflow: hidden;
  padding: 0.85rem;
}

.portal-react-fleet__inspection-map-detail > div {
  display: grid;
  gap: 0.2rem;
}

.portal-react-fleet__inspection-map-detail span {
  color: #5b7086;
}

.portal-react-fleet__inspection-map-detail iframe {
  border: 0;
  border-radius: 0.75rem;
  height: 22rem;
  width: 100%;
}

.portal-react-fleet__legacy-note {
  background: #fff8e6;
  border: 1px solid rgba(180, 83, 9, 0.22);
  border-radius: 0.75rem;
  color: #92400e;
  font-weight: 750;
  margin: 0;
  padding: 0.75rem 0.9rem;
}

.portal-react-fleet__inspection-dialog {
  width: min(72rem, 100%);
  max-width: min(72rem, 100%);
}

.portal-react-fleet__inspection-content {
  display: grid;
  gap: 1.25rem;
  overflow: auto;
  padding: 1.25rem 1.35rem 1.5rem;
}

.portal-react-fleet__inspection-meta {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-react-fleet__inspection-meta > span {
  background: #f6fafc;
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: 0.8rem;
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0.75rem;
}

.portal-react-fleet__inspection-gallery {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.portal-react-fleet__inspection-photo {
  background: #fff;
  border: 1px solid rgba(14, 116, 144, 0.18);
  border-radius: 0.9rem;
  color: #08233f;
  cursor: zoom-in;
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
  padding: 0 0 0.75rem;
  text-align: left;
}

.portal-react-fleet__inspection-photo img,
.portal-react-fleet__inspection-photo > span {
  aspect-ratio: 4 / 3;
  background: #eaf1f5;
  display: block;
  object-fit: cover;
  width: 100%;
}

.portal-react-fleet__inspection-photo strong,
.portal-react-fleet__inspection-photo small {
  margin: 0 0.75rem;
  overflow-wrap: anywhere;
}

.portal-react-fleet__inspection-checklist {
  display: grid;
  gap: 0.55rem;
}

.portal-react-fleet__inspection-checklist h3 {
  margin: 0 0 0.25rem;
}

.portal-react-fleet__inspection-checklist > span {
  align-items: center;
  border-bottom: 1px solid rgba(14, 116, 144, 0.12);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.45rem 0;
  text-transform: capitalize;
}

.portal-react-fleet__inspection-checklist em {
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
}

.portal-react-fleet__inspection-checklist em.is-ok { background: #dcfce7; color: #166534; }
.portal-react-fleet__inspection-checklist em.is-attention { background: #fef3c7; color: #92400e; }
.portal-react-fleet__inspection-checklist em.is-problem { background: #fee2e2; color: #991b1b; }

.portal-react-fleet__lightbox {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 100;
}

.portal-react-fleet__lightbox figure {
  background: #fff;
  border-radius: 1rem;
  display: grid;
  margin: 0;
  max-height: calc(100vh - 2rem);
  max-width: min(76rem, 100%);
  overflow: hidden;
  position: relative;
}

.portal-react-fleet__lightbox figure > img {
  max-height: calc(100vh - 8rem);
  max-width: 100%;
  object-fit: contain;
}

.portal-react-fleet__lightbox figcaption {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.portal-react-fleet__readings {
  background: #f8fbfd;
  border: 1px dashed rgba(14, 116, 144, 0.24);
  border-radius: 0.85rem;
  color: #536b86;
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
}

.portal-react-fleet__readings h3 {
  color: #08233f;
  font-size: 1rem;
  margin: 0;
}

.portal-react-fleet__readings > div {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.portal-react-fleet__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .portal-react-fleet__vehicle-list .portal-react-seals__compact-row,
  .portal-react-fleet__reading-list .portal-react-seals__compact-row,
  .portal-react-fleet__conformance-list .portal-react-seals__compact-row,
  .portal-react-fleet__inspection-list .portal-react-seals__compact-row,
  .portal-react-fleet__maintenance-list .portal-react-seals__compact-row,
  .portal-react-fleet__maintenance-alert-list .portal-react-seals__compact-row,
  .portal-react-fleet__import-list .portal-react-seals__compact-row {
    grid-template-columns: 1fr;
  }

  .portal-react-fleet__heading,
  .portal-react-fleet__dialog-head,
  .portal-react-fleet__readings > div {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-react-fleet__form {
    grid-template-columns: 1fr;
  }

  .portal-react-fleet__inspection-filters {
    grid-template-columns: 1fr 1fr;
  }

  .portal-react-fleet__import {
    grid-template-columns: 1fr;
  }

  .portal-react-fleet__contract-map-row {
    grid-template-columns: 1fr;
  }

  .portal-react-fleet__summary-pills {
    justify-content: flex-start;
  }

  .portal-react-fleet__inspection-meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .portal-react-fleet__inspection-meta {
    grid-template-columns: 1fr;
  }

  .portal-react-fleet__inspection-filters {
    grid-template-columns: 1fr;
  }

  .portal-react-fleet__inspection-map {
    min-height: 18rem;
  }
}

.portal-community-solution,
.portal-community-post {
  min-width: 0;
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 8px;
  background: #fbfdff;
}

.portal-community-solution {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin: 14px 0;
  padding: 14px;
  border-color: #86efac;
  background: #f0fdf4;
}

.portal-community-solution div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.portal-community-solution strong,
.portal-community-post strong {
  min-width: 0;
  color: var(--portal-text, #172033);
  overflow-wrap: anywhere;
}

.portal-community-solution p,
.portal-community-post__body {
  margin: 0;
  color: var(--portal-text, #172033);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.portal-community-thread {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.portal-community-insights {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 8px;
  background: #ffffff;
}

.portal-community-insights__health,
.portal-community-insights__grid {
  display: grid;
  gap: 12px;
}

.portal-community-insights__health {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}

.portal-community-insights__health article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 8px;
  background: #f8fafc;
}

.portal-community-insights__health span,
.portal-community-insights__list span,
.portal-community-insights__contributors span,
.portal-community-insights__empty {
  color: var(--portal-muted, #607085);
}

.portal-community-insights__health strong {
  display: block;
  margin-top: 4px;
  color: var(--portal-text, #172033);
  font-size: 1.35rem;
}

.portal-community-insights__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.portal-community-insights__grid section {
  min-width: 0;
}

.portal-community-insights h3 {
  margin: 0 0 10px;
  color: var(--portal-text, #172033);
  font-size: 0.95rem;
}

.portal-community-insights__list,
.portal-community-insights__tags,
.portal-community-insights__contributors {
  display: grid;
  gap: 8px;
}

.portal-community-insights__list button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 8px;
  background: #fbfdff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.portal-community-insights__list button:hover,
.portal-community-insights__list button:focus-visible {
  border-color: #176b87;
  outline: none;
}

.portal-community-insights__list strong,
.portal-community-insights__contributors strong,
.portal-community-insights__tags span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-community-insights__tags span {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 999px;
  background: #eef6fb;
  color: #176b87;
  font-weight: 700;
  border-radius: 8px;
}

.portal-community-insights__tags strong {
  color: #0f4a5f;
}

.portal-community-insights__contributors div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border-bottom: 1px solid var(--portal-border, #d9e2ec);
}

.portal-community-insights__contributors div:last-child {
  border-bottom: 0;
}

.portal-community-insights__empty {
  margin: 0;
  line-height: 1.5;
}

.portal-community-knowledge {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #86efac;
  border-radius: 8px;
  background: #f7fef9;
}

.portal-community-knowledge-editor {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 8px;
  background: #f8fafc;
}

.portal-community-knowledge-editor strong {
  color: var(--portal-text, #172033);
}

.portal-community-knowledge__header,
.portal-community-knowledge__taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.portal-community-knowledge__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-community-knowledge section {
  min-width: 0;
}

.portal-community-knowledge strong {
  color: var(--portal-text, #172033);
}

.portal-community-knowledge p,
.portal-community-knowledge li,
.portal-community-knowledge__taxonomy span {
  margin: 6px 0 0;
  color: var(--portal-text, #172033);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.portal-community-knowledge ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.portal-community-follow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: var(--portal-muted, #607085);
}

.portal-community-follow > * {
  min-width: 0;
  max-width: 100%;
}

.portal-community-moderation {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--portal-border, #d9e2ec);
  border-radius: 8px;
  background: #f8fafc;
}

.portal-community-moderation > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-community-moderation > div > * {
  min-width: 0;
  max-width: 100%;
}

.portal-community-moderation-history {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.portal-community-moderation-history > strong {
  color: var(--portal-text, #172033);
}

.portal-community-moderation-history div {
  display: grid;
  gap: 3px;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}

.portal-community-moderation-history div:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.portal-community-moderation-history span {
  font-weight: 700;
  color: var(--portal-text, #172033);
}

.portal-community-moderation-history small,
.portal-community-moderation-history p {
  margin: 0;
  color: var(--portal-muted, #607085);
}

.portal-community-post {
  display: grid;
  gap: 12px;
  padding: 14px;
  scroll-margin-top: 96px;
}

.portal-community-post.is-solution {
  border-color: #86efac;
  background: #f0fdf4;
}

.portal-community-post__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.portal-community-post__header div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.portal-community-post__header small {
  color: var(--portal-muted, #607085);
}

.portal-community-post__attachments,
.portal-community-post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.portal-community-post__attachments a {
  display: grid;
  gap: 7px;
  min-height: 32px;
  align-items: start;
  border-radius: 8px;
  padding: 8px;
  background: #eef6fb;
  color: #176b87;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.portal-community-attachment {
  width: min(100%, 260px);
}

.portal-community-attachment img,
.portal-community-attachment video {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 6px;
  background: #dbe8ef;
}

.portal-community-attachment audio {
  width: 100%;
  min-width: 0;
}

.portal-community-attachment strong {
  color: #176b87;
  font-size: 0.82rem;
}

.portal-community-post__actions {
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .portal-react-seals__hero,
  .portal-react-seals__grid,
  .portal-react-seals__grid--actions {
    grid-template-columns: 1fr;
  }

  .portal-react-seals__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-seals__cart-builder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-community-solution {
    grid-template-columns: 1fr;
  }

  .portal-community-knowledge__grid {
    grid-template-columns: 1fr;
  }

  .portal-community-insights__health,
  .portal-community-insights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .portal-react-seals__filters,
  .portal-react-seals__cart-builder,
  .portal-react-seals__package-main,
  .portal-react-seals__table-row,
  .portal-react-seals__dispatch {
    grid-template-columns: 1fr;
  }

  .portal-react-seals__heading span {
    max-width: none;
    text-align: left;
  }

  .portal-community-post__header,
  .portal-community-post__actions {
    justify-content: stretch;
  }

  .portal-community-post__header {
    display: grid;
  }

  .portal-community-post__actions button,
  .portal-community-follow button,
  .portal-community-solution button {
    width: 100%;
  }

  .portal-community-insights {
    padding: 14px;
  }

  .portal-community-insights__health,
  .portal-community-insights__grid {
    grid-template-columns: 1fr;
  }
}

/* Portal shell v2: navegacao global em dois niveis. */
body.portal-shell-v2-enabled {
  --portal-shell-rail: #083f51;
  --portal-shell-rail-deep: #062f3e;
  --portal-shell-context: #ffffff;
  --portal-shell-context-soft: #f4f8f9;
  --portal-shell-active: #e2f3f2;
  --portal-shell-accent: #42c9c0;
  --portal-density-font: 14px;
  --portal-density-title: 20px;
  --portal-density-control: 34px;
  --portal-density-touch: 40px;
  --portal-density-radius: 10px;
  --portal-density-space-1: 4px;
  --portal-density-space-2: 6px;
  --portal-density-space-3: 8px;
  --portal-density-space-4: 10px;
  --portal-density-space-5: 12px;
  --portal-density-space-6: 16px;
  background: #edf3f5;
}

.portal-shell-v2-enabled .portal-shell {
  grid-template-columns: 330px minmax(0, 1fr);
}

.portal-shell-v2-enabled .portal-sidebar {
  padding: 0;
  gap: 0;
  background: var(--portal-shell-context);
  color: var(--portal-ink);
  border-right: 1px solid var(--portal-border);
  box-shadow: 10px 0 28px rgba(15, 79, 107, 0.05);
}

.portal-shell-v2-enabled .portal-react-host--sidebar,
.portal-shell-v2-enabled .portal-react-host--sidebar > [data-react-mount] {
  height: 100%;
  min-height: 0;
}

.portal-sidebar-v2 {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 100%;
  height: 100%;
}

.portal-sidebar-v2__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px 14px;
  background:
    radial-gradient(circle at 20% 12%, rgba(66, 201, 192, 0.22), transparent 24%),
    linear-gradient(180deg, var(--portal-shell-rail), var(--portal-shell-rail-deep));
  color: #d9eef1;
}

.portal-sidebar-v2__app {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.portal-sidebar-v2__app img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-sidebar-v2__areas {
  display: grid;
  gap: 7px;
  width: 100%;
}

.portal-sidebar-v2__areas button,
.portal-sidebar-v2__collapse {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 52px;
  padding: 7px 3px 5px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(224, 243, 246, 0.72);
  cursor: pointer;
}

.portal-sidebar-v2__areas button:hover,
.portal-sidebar-v2__areas button:focus-visible,
.portal-sidebar-v2__areas button.is-active,
.portal-sidebar-v2__collapse:hover,
.portal-sidebar-v2__collapse:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.portal-sidebar-v2__areas button:focus-visible,
.portal-sidebar-v2__collapse:focus-visible {
  box-shadow: 0 0 0 3px rgba(66, 201, 192, 0.45);
}

.portal-sidebar-v2__areas button.is-active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 5px 5px 0;
  background: var(--portal-shell-accent);
}

.portal-sidebar-v2__areas svg,
.portal-sidebar-v2__collapse svg {
  width: 20px;
  height: 20px;
}

.portal-sidebar-v2__areas button span {
  display: block;
  max-width: 64px;
  margin-top: 3px;
  overflow: hidden;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-sidebar-v2__collapse {
  margin-top: auto;
  min-height: 44px;
}

.portal-sidebar-v2__context {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 19px 14px 14px;
  background: var(--portal-shell-context);
}

.portal-sidebar-v2__brand {
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 11px;
  padding: 4px 8px 14px;
  border-bottom: 1px solid var(--portal-border);
}

.portal-sidebar-v2__brand img {
  display: block;
  width: 76px;
  height: auto;
  padding: 5px 7px;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: #fff;
}

.portal-sidebar-v2__brand div {
  display: grid;
  min-width: 0;
}

.portal-sidebar-v2__brand span {
  color: var(--portal-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-sidebar-v2__brand strong {
  color: var(--portal-primary-dark);
  font-size: 16px;
  line-height: 1.2;
}

.portal-sidebar-v2__context-heading {
  padding: 17px 9px 11px;
}

.portal-sidebar-v2__context-heading span {
  color: var(--portal-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-sidebar-v2__context-heading h2 {
  margin: 4px 0 0;
  color: var(--portal-primary-dark);
  font-size: 19px;
  line-height: 1.2;
}

.portal-sidebar-v2__context-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c2d6db transparent;
}

.portal-sidebar-v2__modules {
  display: grid;
  gap: 5px;
  padding: 1px 3px 12px;
}

.portal-sidebar-v2__modules a,
.portal-sidebar-v2__account {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--portal-ink);
}

.portal-sidebar-v2__modules a:hover,
.portal-sidebar-v2__modules a:focus-visible,
.portal-sidebar-v2__modules a.is-active,
.portal-sidebar-v2__account:hover,
.portal-sidebar-v2__account:focus-visible,
.portal-sidebar-v2__account[aria-current='page'] {
  outline: none;
  border-color: #cde6e5;
  background: var(--portal-shell-active);
  color: var(--portal-primary-dark);
}

.portal-sidebar-v2__modules a:focus-visible,
.portal-sidebar-v2__account:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 159, 155, 0.18);
}

.portal-sidebar-v2__modules a.is-highlighted:not(.is-active) {
  border-color: rgba(29, 143, 98, 0.16);
  background: rgba(29, 143, 98, 0.05);
}

.portal-sidebar-v2__module-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--portal-border);
  border-radius: 11px;
  background: var(--portal-shell-context-soft);
  color: var(--portal-primary-dark);
}

.portal-sidebar-v2__module-icon svg {
  width: 17px;
  height: 17px;
}

.portal-sidebar-v2__module-copy,
.portal-sidebar-v2__account > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.portal-sidebar-v2__module-copy strong,
.portal-sidebar-v2__account strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-sidebar-v2__module-copy small,
.portal-sidebar-v2__account small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--portal-muted);
  font-size: 9px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portal-sidebar-v2__module-arrow {
  color: #8da4ac;
  font-size: 20px;
  line-height: 1;
}

.portal-sidebar-v2__account {
  grid-template-columns: 35px minmax(0, 1fr);
  margin-top: auto;
  border-top-color: var(--portal-border);
  border-radius: 13px;
}

.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-shell {
  grid-template-columns: 78px minmax(0, 1fr);
}

.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-sidebar {
  padding: 0;
}

.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-sidebar-v2 {
  grid-template-columns: 78px;
}

.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-sidebar-v2__context {
  display: none;
}

.portal-shell-v2-enabled .portal-main {
  padding: 20px 24px 96px;
}

.portal-shell-v2-enabled .portal-topbar--workspace {
  position: relative;
  z-index: 20;
  align-items: center;
  min-height: 64px;
  margin-bottom: 20px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--portal-border);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 79, 107, 0.06);
}

.portal-shell-v2-enabled .portal-topbar__title {
  gap: 2px;
}

.portal-shell-v2-enabled .portal-topbar__title .portal-eyebrow {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.portal-shell-v2-enabled .portal-topbar__title h1 {
  color: var(--portal-primary-dark);
  font-size: 21px;
  line-height: 1.15;
}

.portal-topbar__meta--workspace {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-topbar__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.portal-topbar__action > span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: var(--portal-shell-active);
}

.portal-account-menu {
  position: relative;
}

.portal-account-menu > summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 9px;
  min-width: 190px;
  min-height: 46px;
  padding: 4px 9px 4px 5px;
  border: 1px solid var(--portal-border);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.portal-account-menu > summary::-webkit-details-marker {
  display: none;
}

.portal-account-menu > summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 159, 155, 0.18);
}

.portal-account-menu .portal-user-chip__avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 13px;
}

.portal-account-menu__identity {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.portal-account-menu__identity strong,
.portal-account-menu__identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-account-menu__identity strong {
  font-size: 11px;
}

.portal-account-menu__identity small {
  color: var(--portal-muted);
  font-size: 9px;
}

.portal-account-menu__chevron {
  color: var(--portal-muted);
}

.portal-account-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  width: min(300px, calc(100vw - 32px));
  padding: 9px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 34, 56, 0.18);
}

.portal-account-menu__user {
  display: grid;
  gap: 3px;
  margin-bottom: 6px;
  padding: 10px;
  border-radius: 10px;
  background: var(--portal-shell-context-soft);
}

.portal-account-menu__user strong {
  font-size: 12px;
}

.portal-account-menu__user span {
  overflow-wrap: anywhere;
  color: var(--portal-muted);
  font-size: 10px;
}

.portal-account-menu__panel > a,
.portal-account-menu__panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--portal-primary-dark);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.portal-account-menu__panel > a:hover,
.portal-account-menu__panel > a:focus-visible,
.portal-account-menu__panel button:hover,
.portal-account-menu__panel button:focus-visible {
  outline: none;
  background: var(--portal-shell-active);
}

.portal-account-menu__panel form {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--portal-border);
}

.portal-account-menu__panel form button {
  color: var(--portal-danger);
}

@media (max-width: 1080px) {
  .portal-shell-v2-enabled .portal-shell,
  .portal-shell-v2-enabled.portal-sidebar-collapsed .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-shell-v2-enabled .portal-sidebar {
    position: relative;
    display: none;
    height: min(720px, 86vh);
    max-height: none;
  }

  .portal-shell-v2-enabled.portal-sidebar-mobile-open .portal-sidebar {
    display: block;
  }

  .portal-shell-v2-enabled .portal-topbar__sidebar-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .portal-shell-v2-enabled .portal-sidebar-v2 {
    height: 100%;
  }
}

@media (max-width: 720px) {
  .portal-shell-v2-enabled .portal-main {
    padding: 14px 12px 88px;
  }

  .portal-shell-v2-enabled .portal-sidebar {
    height: auto;
    min-height: 0;
  }

  .portal-shell-v2-enabled .portal-sidebar-v2 {
    display: block;
  }

  .portal-sidebar-v2__rail {
    flex-direction: row;
    align-items: center;
    gap: 5px;
    min-height: 62px;
    padding: 8px 9px;
    overflow-x: auto;
  }

  .portal-sidebar-v2__app {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    margin: 0 3px 0 0;
  }

  .portal-sidebar-v2__areas {
    display: flex;
    flex: 1 0 auto;
    gap: 5px;
    width: auto;
  }

  .portal-sidebar-v2__areas button,
  .portal-sidebar-v2__collapse {
    flex: 0 0 42px;
    width: 42px;
    min-height: 42px;
    padding: 5px;
  }

  .portal-sidebar-v2__areas button span {
    display: none;
  }

  .portal-sidebar-v2__areas button.is-active::before {
    inset: auto 9px -8px;
    width: auto;
    height: 3px;
    border-radius: 3px 3px 0 0;
  }

  .portal-sidebar-v2__collapse {
    margin: 0 0 0 auto;
  }

  .portal-sidebar-v2__context {
    max-height: 520px;
    padding: 12px;
    border-bottom: 1px solid var(--portal-border);
  }

  .portal-sidebar-v2__brand {
    display: none;
  }

  .portal-sidebar-v2__context-heading {
    padding: 4px 7px 9px;
  }

  .portal-sidebar-v2__context-heading h2 {
    font-size: 16px;
  }

  .portal-sidebar-v2__modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-sidebar-v2__modules a {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .portal-sidebar-v2__module-icon {
    width: 32px;
    height: 32px;
  }

  .portal-sidebar-v2__module-arrow,
  .portal-sidebar-v2__module-copy small,
  .portal-sidebar-v2__account small {
    display: none;
  }

  .portal-sidebar-v2__account {
    margin-top: 8px;
  }

  .portal-shell-v2-enabled .portal-topbar--workspace {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    min-height: 58px;
    padding: 7px;
  }

  .portal-shell-v2-enabled .portal-topbar__title {
    min-width: 0;
  }

  .portal-shell-v2-enabled .portal-topbar__title h1 {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-topbar__action,
  .portal-account-menu__identity,
  .portal-account-menu__chevron {
    display: none;
  }

  .portal-account-menu > summary {
    display: grid;
    grid-template-columns: 34px;
    min-width: 42px;
    min-height: 42px;
    padding: 3px;
    place-content: center;
  }

  .portal-account-menu .portal-user-chip__avatar {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 420px) {
  .portal-sidebar-v2__modules {
    grid-template-columns: 1fr;
  }
}

/* Onda 2: arquetipos compartilhados e Dashboard estritamente operacional. */
.portal-workspace-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--portal-border);
  border-radius: 19px;
  background:
    radial-gradient(circle at top right, rgba(15, 159, 155, 0.12), transparent 30%),
    #fff;
  box-shadow: 0 10px 26px rgba(15, 79, 107, 0.05);
}

.portal-workspace-hero h1 {
  margin: 0;
  color: var(--portal-primary-dark);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.portal-workspace-hero p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--portal-muted);
  line-height: 1.55;
}

.portal-workspace-hero__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.portal-workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.portal-workspace-heading > div:first-child {
  display: grid;
  gap: 3px;
}

.portal-workspace-heading .portal-eyebrow {
  margin: 0;
  font-size: 10px;
}

.portal-workspace-heading strong {
  color: var(--portal-primary-dark);
  font-size: 15px;
}

.portal-workspace-heading__meta {
  color: var(--portal-primary-dark);
  font-size: 11px;
  font-weight: 800;
}

.portal-workspace-filterbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #fff;
}

.portal-workspace-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--portal-border);
  border-radius: 13px;
  background: #fff;
}

.portal-workspace-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  width: min(720px, 100vw);
  overflow: auto;
  border-left: 1px solid var(--portal-border);
  background: #fff;
  box-shadow: -18px 0 48px rgba(15, 34, 56, 0.18);
}

.portal-react-dashboard--operational {
  display: grid;
  gap: 14px;
}

.portal-react-dashboard--operational .portal-react-dashboard__summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.portal-react-dashboard__workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 14px;
}

.portal-react-dashboard__secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
}

.portal-react-dashboard__priority-table-wrap {
  overflow-x: auto;
}

.portal-react-dashboard__priority-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.portal-react-dashboard__priority-table th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--portal-border);
  color: var(--portal-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.portal-react-dashboard__priority-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--portal-border);
  color: var(--portal-muted);
  font-size: 11px;
  vertical-align: middle;
}

.portal-react-dashboard__priority-table tr:last-child td {
  border-bottom: 0;
}

.portal-react-dashboard__priority-table td:first-child {
  width: 40%;
}

.portal-react-dashboard__priority-table td > a,
.portal-react-dashboard__priority-table td:nth-child(2) {
  display: grid;
  gap: 3px;
}

.portal-react-dashboard__priority-table td strong {
  color: var(--portal-ink);
  font-size: 11px;
}

.portal-react-dashboard__priority-table td span:not(.portal-role-badge) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.portal-react-dashboard__attention-list {
  display: grid;
  gap: 8px;
}

.portal-react-dashboard__attention {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--portal-border);
  border-radius: 13px;
  background: #f7fafb;
}

.portal-react-dashboard__attention:hover,
.portal-react-dashboard__attention:focus-visible {
  outline: none;
  border-color: rgba(15, 159, 155, 0.42);
  box-shadow: 0 8px 20px rgba(15, 79, 107, 0.08);
}

.portal-react-dashboard__attention span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.portal-react-dashboard__attention strong {
  color: var(--portal-ink);
  font-size: 11px;
}

.portal-react-dashboard__attention small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--portal-muted);
  font-size: 9px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portal-react-dashboard__attention em {
  color: var(--portal-primary-dark);
  font-size: 19px;
  font-style: normal;
  font-weight: 800;
}

.portal-react-dashboard__attention--danger {
  border-color: rgba(209, 73, 91, 0.22);
  background: #fff5f7;
}

.portal-react-dashboard__attention--warning {
  border-color: rgba(198, 134, 24, 0.24);
  background: #fff9ee;
}

.portal-react-dashboard__contract-list {
  display: grid;
  gap: 8px;
}

.portal-react-dashboard__contract-list .portal-react-dashboard__contract + .portal-react-dashboard__contract {
  margin-top: 0;
}

.portal-react-dashboard__empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--portal-border);
  border-radius: 13px;
  background: #f7fafb;
  color: var(--portal-muted);
}

.portal-react-settings__server-health {
  margin: 14px 0;
}

@media (max-width: 1260px) {
  .portal-react-dashboard--operational .portal-react-dashboard__summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .portal-react-dashboard__workspace-grid,
  .portal-react-dashboard__secondary-grid {
    grid-template-columns: 1fr;
  }

  .portal-react-dashboard--operational .portal-react-dashboard__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portal-workspace-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .portal-workspace-hero__actions,
  .portal-workspace-hero__actions > * {
    width: 100%;
  }

  .portal-react-dashboard--operational .portal-react-dashboard__summary {
    grid-template-columns: 1fr;
  }

  .portal-react-dashboard__priority-table {
    display: block;
    min-width: 0;
  }

  .portal-react-dashboard__priority-table thead {
    display: none;
  }

  .portal-react-dashboard__priority-table tbody {
    display: grid;
    gap: 10px;
  }

  .portal-react-dashboard__priority-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 14px;
    padding: 13px;
    border: 1px solid var(--portal-border);
    border-radius: 13px;
    background: #f9fbfc;
  }

  .portal-react-dashboard__priority-table td,
  .portal-react-dashboard__priority-table tr:last-child td {
    display: grid;
    width: auto;
    gap: 4px;
    padding: 0;
    border: 0;
  }

  .portal-react-dashboard__priority-table td::before {
    content: attr(data-label);
    color: var(--portal-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .portal-react-dashboard__priority-table td:first-child,
  .portal-react-dashboard__priority-table td:last-child {
    grid-column: 1 / -1;
  }

  .portal-react-dashboard__priority-table td:first-child {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--portal-border);
  }

  .portal-react-dashboard__secondary-grid .portal-react-dashboard__contract {
    grid-template-columns: 1fr 1fr;
  }

  .portal-react-dashboard__secondary-grid .portal-react-dashboard__contract strong {
    grid-column: 1 / -1;
  }

  .portal-react-dashboard__secondary-grid .portal-react-dashboard__contract span {
    text-align: left;
  }
}

/* Portal redesign - Onda 3A: workspaces de frota */
.portal-react-fleet [hidden] {
  display: none !important;
}

.portal-react-fleet > .portal-workspace-tabs {
  position: sticky;
  z-index: 8;
  top: 8px;
  padding: 7px;
  border-radius: 16px;
  box-shadow: var(--portal-shadow-soft);
}

.portal-react-fleet > .portal-workspace-tabs button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--portal-muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.portal-react-fleet > .portal-workspace-tabs button:hover,
.portal-react-fleet > .portal-workspace-tabs button:focus-visible,
.portal-react-fleet > .portal-workspace-tabs button.is-active {
  outline: none;
  background: var(--portal-primary-dark);
  color: #fff;
}

.portal-react-fleet > .portal-workspace-tabs button span {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 9px;
  place-items: center;
}

.portal-react-fleet .portal-react-seals__metrics:not([hidden]) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-react-fleet .portal-react-fleet__conformance-list,
.portal-react-fleet .portal-react-fleet__vehicle-list,
.portal-react-fleet .portal-react-fleet__reading-list,
.portal-react-fleet .portal-react-fleet__maintenance-list,
.portal-react-fleet .portal-react-fleet__maintenance-alert-list {
  max-height: 620px;
  overflow: auto;
  scrollbar-width: thin;
}

.portal-react-fleet .portal-react-fleet__inspection-list {
  max-height: 720px;
  overflow: auto;
  scrollbar-width: thin;
}

.portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-list) {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
  align-items: start;
}

.portal-react-fleet__inspection-map-detail > a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--portal-primary-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-list) > .portal-react-seals__heading,
.portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-list) > .portal-react-fleet__inspection-filters,
.portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-list) > .portal-react-fleet__inspection-summary {
  grid-column: 1 / -1;
}

.portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-list) > .portal-react-fleet__inspection-list,
.portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-list) > .portal-react-fleet__inspection-pagination {
  grid-column: 1;
}

.portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-list) .portal-react-fleet__inspection-list .portal-react-seals__compact-row {
  grid-template-columns: minmax(82px, 0.7fr) minmax(120px, 1fr) minmax(92px, 0.8fr) minmax(76px, 0.6fr) minmax(82px, 0.55fr) minmax(60px, 0.45fr);
}

.portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-list) > .portal-react-fleet__inspection-map-block {
  position: sticky;
  top: 70px;
  grid-column: 2;
  grid-row: 4 / span 2;
  max-height: calc(100vh - 110px);
  overflow: auto;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  background: #f8fbfc;
  padding: 13px;
}

@media (max-width: 980px) {
  .portal-react-fleet .portal-react-seals__metrics:not([hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-list) {
    grid-template-columns: 1fr;
  }

  .portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-list) > * {
    grid-column: 1;
  }

  .portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-list) > .portal-react-fleet__inspection-map-block {
    position: static;
    grid-row: auto;
    max-height: none;
  }

  .portal-react-fleet__inspection-filters button,
  .portal-react-fleet__inspection-pagination button {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .portal-react-fleet .portal-react-seals__metrics:not([hidden]) {
    grid-template-columns: 1fr;
  }

  .portal-react-fleet > .portal-workspace-tabs {
    top: 4px;
  }
}

/* Onda 4: catalogos operacionais e comunidade com revelacao progressiva. */
.portal-react-seals:has(.portal-community__hero-tools) .portal-workspace-hero {
  display: grid;
  grid-template-columns: minmax(270px, 0.65fr) minmax(680px, 1.35fr);
  align-items: end;
}

.portal-react-seals:has(.portal-community__hero-tools) .portal-workspace-hero__actions,
.portal-community__hero-tools,
.portal-community__hero-tools .portal-react-seals__filters {
  width: 100%;
  min-width: 0;
}

.portal-community__hero-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.portal-community__hero-tools > a {
  justify-self: start;
}

.portal-community__hero-tools .portal-react-seals__filters {
  grid-template-columns: repeat(4, minmax(90px, 1fr)) minmax(160px, auto);
}

.portal-community__workspace-grid--topics {
  grid-template-columns: minmax(0, 1fr);
}

.portal-community__workspace-grid--topics .portal-react-seals__package-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}

@media (max-width: 1340px) {
  .portal-react-seals:has(.portal-community__hero-tools) .portal-workspace-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .portal-community__hero-tools,
  .portal-community__hero-tools .portal-react-seals__filters {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Onda 5: evidencias e inteligencia em workspaces focados. */
.portal-react-reports [hidden] {
  display: none !important;
}

.portal-react-reports > .portal-workspace-tabs {
  position: sticky;
  z-index: 8;
  top: 8px;
  padding: 7px;
  border-radius: 16px;
  box-shadow: var(--portal-shadow-soft);
}

.portal-react-reports__filter-disclosure {
  padding: 0;
  overflow: hidden;
}

.portal-react-reports__filter-disclosure > summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.portal-react-reports__filter-disclosure > summary::-webkit-details-marker {
  display: none;
}

.portal-react-reports__filter-disclosure > summary > div {
  display: grid;
  gap: 2px;
}

.portal-react-reports__filter-disclosure > summary > span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 10px;
  background: #e7f3f7;
  color: var(--portal-primary-dark);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

.portal-react-reports__filter-content {
  display: grid;
  gap: 13px;
  padding: 0 16px 16px;
}

.portal-react-reports__split--executive {
  align-items: start;
}

.portal-react-reports__next-actions-disclosure {
  border: 1px solid rgba(18, 124, 166, 0.14);
  border-radius: 14px;
  background: #f8fbfc;
  padding: 10px 12px;
}

.portal-react-reports__next-actions-disclosure > summary {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.portal-react-reports__next-actions-disclosure > summary::-webkit-details-marker {
  display: none;
}

.portal-react-reports__next-actions-disclosure[open] > summary {
  margin-bottom: 10px;
}

.portal-react-evidence__list {
  max-height: 720px;
  overflow: auto;
  scrollbar-width: thin;
}

.portal-react-evidence > .portal-workspace-hero,
.portal-react-authenticity > .portal-workspace-hero {
  margin-bottom: 0;
}

.portal-react-authenticity__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  align-items: stretch;
}

.portal-react-authenticity__workspace .portal-react-authenticity__upload {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.portal-react-authenticity__workspace .portal-react-authenticity__upload > div {
  display: grid;
  gap: 4px;
}

.portal-react-authenticity__workspace .portal-react-authenticity__upload h2 {
  margin: 0;
  color: var(--portal-primary-dark);
}

.portal-react-authenticity__workspace .portal-react-authenticity__upload button {
  justify-self: start;
}

.portal-react-authenticity__steps {
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: linear-gradient(145deg, #f5fbfc, #fff);
  padding: 18px;
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.06);
}

.portal-react-authenticity__steps ol {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.portal-react-authenticity__steps li {
  display: grid;
  gap: 3px;
  border-top: 1px solid rgba(18, 124, 166, 0.12);
  padding-top: 12px;
}

.portal-react-authenticity__steps li span {
  color: var(--portal-muted);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .portal-react-authenticity__workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .portal-react-reports > .portal-workspace-tabs {
    top: 4px;
  }

  .portal-react-reports__filter-disclosure > summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Onda 6: administracao, governanca e consolidacao responsiva. */
.portal-react-users [hidden],
.portal-react-monitoring [hidden],
.portal-react-settings [hidden] {
  display: none !important;
}

.portal-react-users > .portal-workspace-tabs,
.portal-react-monitoring > .portal-workspace-tabs,
.portal-react-settings > .portal-workspace-tabs {
  position: sticky;
  z-index: 8;
  top: 8px;
  padding: 7px;
  border-radius: 16px;
  box-shadow: var(--portal-shadow-soft);
}

.portal-react-users__directory {
  grid-auto-rows: max-content;
  align-content: start;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.portal-react-monitoring__filter-disclosure {
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: var(--portal-surface);
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.08);
}

.portal-react-monitoring__filter-disclosure > summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.portal-react-monitoring__filter-disclosure > summary::-webkit-details-marker {
  display: none;
}

.portal-react-monitoring__filter-disclosure > summary > div {
  display: grid;
  gap: 2px;
}

.portal-react-monitoring__filter-disclosure > summary > span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 10px;
  background: #e7f3f7;
  color: var(--portal-primary-dark);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

.portal-react-monitoring__filter-disclosure .portal-react-monitoring__filters {
  border: 0;
  border-top: 1px solid var(--portal-border);
  border-radius: 0;
  box-shadow: none;
}

.portal-react-monitoring__workspace-wide {
  grid-column: 1 / -1;
}

.portal-react-monitoring__workspace-wide > .portal-react-monitoring__panel {
  width: 100%;
}

.portal-react-settings__grid:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 720px) {
  .portal-react-users > .portal-workspace-tabs,
  .portal-react-monitoring > .portal-workspace-tabs,
  .portal-react-settings > .portal-workspace-tabs {
    top: 4px;
  }

  .portal-react-monitoring__filter-disclosure > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-react-users__directory {
    max-height: 680px;
  }
}

/* Onda 7A: fundacao de densidade compacta aprovada para o portal. */
@media (min-width: 1081px) {
  .portal-shell-v2-enabled .portal-shell {
    grid-template-columns: 286px minmax(0, 1fr);
  }

  .portal-sidebar-v2 {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .portal-shell-v2-enabled.portal-sidebar-collapsed .portal-shell {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .portal-shell-v2-enabled.portal-sidebar-collapsed .portal-sidebar-v2 {
    grid-template-columns: 62px;
  }
}

.portal-shell-v2-enabled .portal-main {
  padding: 12px 16px 80px;
  font-size: var(--portal-density-font);
}

.portal-sidebar-v2__rail {
  gap: var(--portal-density-space-2);
  padding: 10px 6px;
}

.portal-sidebar-v2__app {
  width: 38px;
  height: 38px;
  margin-bottom: var(--portal-density-space-2);
  border-radius: var(--portal-density-radius);
  box-shadow: none;
}

.portal-sidebar-v2__areas {
  gap: var(--portal-density-space-1);
}

.portal-sidebar-v2__areas button,
.portal-sidebar-v2__collapse {
  min-height: 44px;
  padding: 5px 2px 4px;
  border-radius: 9px;
}

.portal-sidebar-v2__areas button.is-active::before {
  left: -6px;
  top: 9px;
  bottom: 9px;
  width: 3px;
}

.portal-sidebar-v2__areas svg,
.portal-sidebar-v2__collapse svg {
  width: 16px;
  height: 16px;
}

.portal-sidebar-v2__areas button span {
  max-width: 52px;
  margin-top: 2px;
  font-size: 9px;
}

.portal-sidebar-v2__collapse {
  min-height: 38px;
}

.portal-sidebar-v2__context {
  padding: 12px 10px 10px;
}

.portal-sidebar-v2__brand {
  min-height: 44px;
  gap: var(--portal-density-space-3);
  padding: 2px 6px 10px;
}

.portal-sidebar-v2__brand img {
  width: 64px;
  padding: 4px 6px;
  border-radius: 8px;
}

.portal-sidebar-v2__brand strong {
  font-size: 14px;
}

.portal-sidebar-v2__context-heading {
  padding: 12px 6px 8px;
}

.portal-sidebar-v2__context-heading h2 {
  margin-top: 2px;
  font-size: 16px;
}

.portal-sidebar-v2__modules {
  gap: 3px;
  padding: 0 2px 8px;
}

.portal-sidebar-v2__modules a,
.portal-sidebar-v2__account {
  grid-template-columns: 30px minmax(0, 1fr) 12px;
  gap: 7px;
  padding: 6px;
  border-radius: 9px;
}

.portal-sidebar-v2__module-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.portal-sidebar-v2__module-icon svg {
  width: 15px;
  height: 15px;
}

.portal-sidebar-v2__module-copy strong,
.portal-sidebar-v2__account strong {
  font-size: 11px;
}

.portal-sidebar-v2__module-copy small,
.portal-sidebar-v2__account small {
  font-size: 9px;
  line-height: 1.25;
  -webkit-line-clamp: 1;
}

.portal-sidebar-v2__module-arrow {
  font-size: 16px;
}

.portal-sidebar-v2__account {
  grid-template-columns: 30px minmax(0, 1fr);
  border-radius: 9px;
}

.portal-shell-v2-enabled .portal-topbar--workspace {
  min-height: 42px;
  margin-bottom: var(--portal-density-space-3);
  padding: 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-shell-v2-enabled .portal-topbar__title h1 {
  font-size: 18px;
}

.portal-topbar__action {
  min-height: 32px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 11px;
}

.portal-account-menu > summary {
  grid-template-columns: 28px minmax(0, 1fr) 13px;
  gap: 7px;
  min-width: 168px;
  min-height: 34px;
  padding: 3px 7px 3px 4px;
  border-radius: 9px;
}

.portal-account-menu .portal-user-chip__avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 11px;
}

.portal-workspace-hero {
  gap: var(--portal-density-space-5);
  padding: 10px 12px;
  border-radius: var(--portal-density-radius);
  background: linear-gradient(120deg, #fff, #edf8f8);
  box-shadow: none;
}

.portal-workspace-hero h1 {
  font-size: var(--portal-density-title);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.portal-workspace-hero p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
}

.portal-workspace-hero__actions {
  gap: var(--portal-density-space-2);
}

.portal-workspace-heading {
  gap: var(--portal-density-space-3);
  margin-bottom: var(--portal-density-space-3);
}

.portal-workspace-heading > div:first-child {
  gap: 2px;
}

.portal-workspace-heading strong {
  font-size: 14px;
}

.portal-workspace-filterbar {
  gap: var(--portal-density-space-2);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.portal-workspace-tabs,
.portal-react-fleet > .portal-workspace-tabs,
.portal-react-reports > .portal-workspace-tabs,
.portal-react-users > .portal-workspace-tabs,
.portal-react-monitoring > .portal-workspace-tabs,
.portal-react-settings > .portal-workspace-tabs {
  gap: var(--portal-density-space-1);
  padding: 0 0 var(--portal-density-space-1);
  border: 0;
  border-bottom: 1px solid var(--portal-border);
  border-radius: 0;
  background: #edf3f5;
  box-shadow: none;
}

.portal-shell-v2-enabled .portal-workspace-tabs > button,
.portal-shell-v2-enabled .portal-workspace-tabs > a {
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 11px;
}

.portal-shell-v2-enabled .portal-primary-button,
.portal-shell-v2-enabled .portal-secondary-button,
.portal-shell-v2-enabled .portal-react-seals__button--secondary {
  min-height: var(--portal-density-control);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.portal-shell-v2-enabled .portal-main input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
.portal-shell-v2-enabled .portal-main select {
  min-height: var(--portal-density-control);
  padding: 6px 8px;
  border-radius: 8px;
}

.portal-workspace-drawer {
  width: min(640px, 100vw);
}

@media (max-width: 720px), (pointer: coarse) {
  .portal-shell-v2-enabled .portal-primary-button,
  .portal-shell-v2-enabled .portal-secondary-button,
  .portal-shell-v2-enabled .portal-react-seals__button--secondary,
  .portal-shell-v2-enabled .portal-workspace-tabs > button,
  .portal-shell-v2-enabled .portal-workspace-tabs > a,
  .portal-shell-v2-enabled .portal-main input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
  .portal-shell-v2-enabled .portal-main select,
  .portal-topbar__action,
  .portal-account-menu > summary {
    min-height: var(--portal-density-touch);
  }

  .portal-shell-v2-enabled .portal-main {
    padding: 10px 10px 72px;
  }

  .portal-workspace-hero {
    gap: var(--portal-density-space-3);
    padding: 10px;
  }

  .portal-workspace-hero h1 {
    font-size: 18px;
  }

  .portal-workspace-hero p {
    font-size: 13px;
  }

  .portal-account-menu > summary {
    grid-template-columns: 32px;
    width: 40px;
    min-width: 40px;
    padding: 4px;
    place-content: center;
  }

  .portal-account-menu .portal-user-chip__avatar {
    width: 32px;
    height: 32px;
  }
}

/* Onda 7B: compactacao dos workspaces de maior volume. */
.portal-react-dashboard--operational,
.portal-react-tickets--workspace,
.portal-react-fleet,
.portal-react-reports,
.portal-react-monitoring {
  gap: 8px;
}

.portal-shell-v2-enabled .portal-floating-tools {
  display: none;
}

.portal-account-menu__version {
  display: grid;
  gap: 2px;
  padding: 7px 10px;
  border-top: 1px solid var(--portal-border);
  color: var(--portal-muted);
  font-size: 9px;
}

.portal-shell-v2-enabled .central-notification-bell {
  right: 16px;
  bottom: 12px;
  gap: 6px;
  padding: 6px 9px;
  box-shadow: 0 8px 20px rgba(0, 32, 50, 0.12);
}

.portal-shell-v2-enabled .central-notification-bell strong {
  min-width: 20px;
  height: 20px;
}

.portal-shell-v2-enabled .central-notification-bell__sound {
  min-height: 28px;
  padding: 3px 7px;
}

.portal-shell-v2-enabled .central-notification-stack,
.portal-shell-v2-enabled .central-chat-queue {
  bottom: 56px;
}

.portal-react-dashboard--operational .portal-react-dashboard__summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 4px 0;
  border-bottom: 1px solid var(--portal-border);
}

.portal-react-dashboard--operational .portal-react-dashboard__metric {
  min-height: 0;
  padding: 6px 10px;
  border: 0;
  border-right: 1px solid var(--portal-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-react-dashboard--operational .portal-react-dashboard__metric:last-child {
  border-right: 0;
}

.portal-react-dashboard--operational .portal-react-dashboard__metric span {
  font-size: 10px;
}

.portal-react-dashboard--operational .portal-react-dashboard__metric strong {
  font-size: 20px;
}

.portal-react-dashboard--operational .portal-react-dashboard__metric p {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portal-react-dashboard__workspace-grid,
.portal-react-dashboard__secondary-grid {
  gap: 8px;
}

.portal-react-dashboard--operational .portal-react-dashboard__panel {
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: none;
}

.portal-react-dashboard--operational .portal-react-dashboard__attention,
.portal-react-dashboard--operational .portal-react-dashboard__workflow a,
.portal-react-dashboard--operational .portal-react-dashboard__contract {
  padding: 8px;
  border-radius: 8px;
  box-shadow: none;
}

.portal-react-dashboard--operational .portal-react-dashboard__priority-table th {
  padding: 6px 8px;
}

.portal-react-dashboard--operational .portal-react-dashboard__priority-table td {
  padding: 8px;
}

.portal-react-tickets--workspace .portal-react-tickets__toolbar {
  display: grid;
  gap: 7px;
  padding: 8px;
  border-radius: 10px;
  box-shadow: none;
}

.portal-react-tickets__toolbar-primary {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: end;
  gap: 7px;
}

.portal-react-tickets--workspace .portal-react-tickets__search {
  gap: 3px;
}

.portal-react-tickets--workspace .portal-react-tickets__search > span {
  font-size: 10px;
}

.portal-react-tickets--workspace .portal-react-tickets__search > small {
  color: var(--portal-muted);
  font-size: 10px;
  line-height: 1.25;
}

.portal-react-tickets__filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.portal-react-tickets__filter-toggle > span {
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dcecf1;
  font-size: 10px;
  place-items: center;
}

.portal-react-tickets--workspace .portal-react-tickets__toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-react-tickets--workspace .portal-react-tickets__server-filters[hidden] {
  display: none !important;
}

.portal-react-tickets--workspace .portal-react-tickets__server-filters:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(6, minmax(105px, 1fr)) auto;
  gap: 6px;
  padding-top: 7px;
  border-top: 1px solid var(--portal-border);
}

.portal-react-tickets--workspace .portal-react-tickets__server-filters label {
  gap: 3px;
  font-size: 10px;
}

.portal-react-tickets--workspace .portal-react-tickets__hero-focus {
  max-width: 250px;
  padding: 7px 9px;
  border-radius: 9px;
}

.portal-react-tickets--workspace .portal-react-tickets__hero-focus strong {
  font-size: 12px;
}

.portal-react-tickets--workspace .portal-react-tickets__hero-focus span {
  font-size: 10px;
  line-height: 1.3;
}

.portal-react-tickets--workspace .portal-react-tickets__route-support {
  border-radius: 10px;
  box-shadow: none;
}

.portal-react-tickets--workspace .portal-react-tickets__route-support-head {
  min-height: 0;
  gap: 10px;
  padding: 8px 10px;
}

.portal-react-tickets--workspace .portal-react-tickets__route-support-head h2 {
  font-size: 16px;
}

.portal-react-tickets--workspace .portal-react-tickets__route-support-head p {
  margin-top: 2px;
  font-size: 11px;
}

.portal-react-tickets--workspace .portal-react-tickets__route-support-metrics {
  gap: 3px 6px;
}

.portal-react-tickets--workspace .portal-react-tickets__route-support-metrics strong {
  font-size: 16px;
}

.portal-react-tickets--workspace .portal-react-tickets__status-rail {
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  box-shadow: none;
}

.portal-react-tickets--workspace .portal-react-tickets__status-rail button {
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 8px;
}

.portal-react-tickets--workspace .portal-react-tickets__status-rail strong {
  min-width: 20px;
  height: 20px;
  font-size: 10px;
}

.portal-react-tickets--workspace .portal-react-tickets__queue {
  padding: 10px;
  border-radius: 10px;
  box-shadow: none;
}

.portal-react-tickets--workspace .portal-react-tickets__queue-heading {
  margin-bottom: 8px;
}

.portal-react-tickets--workspace .portal-react-tickets__queue-heading h2 {
  font-size: 18px;
}

.portal-react-tickets--workspace .portal-react-tickets__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--portal-border);
  color: var(--portal-muted);
  font-size: 11px;
}

.portal-react-tickets--workspace .portal-react-tickets__pagination nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.portal-react-tickets--workspace .portal-react-tickets__pagination strong {
  color: var(--portal-ink);
  white-space: nowrap;
}

.portal-react-tickets--workspace .portal-react-tickets__card button {
  gap: 8px;
  padding: 8px 9px;
  border-radius: 9px;
}

.portal-react-tickets--workspace .portal-react-tickets__card h3 {
  font-size: 12px;
}

.portal-react-tickets--workspace .portal-react-tickets__card-summary > p:not(.portal-react-tickets__card-meta) {
  -webkit-line-clamp: 1;
}

.portal-react-fleet__filter-disclosure,
.portal-react-reports__filter-disclosure,
.portal-react-monitoring__filter-disclosure {
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.portal-react-fleet__filter-disclosure > summary,
.portal-react-reports__filter-disclosure > summary,
.portal-react-monitoring__filter-disclosure > summary {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  cursor: pointer;
  list-style: none;
}

.portal-react-fleet__filter-disclosure > summary::-webkit-details-marker {
  display: none;
}

.portal-react-fleet__filter-disclosure > summary > div,
.portal-react-reports__filter-disclosure > summary > div,
.portal-react-monitoring__filter-disclosure > summary > div {
  display: grid;
  gap: 1px;
}

.portal-react-fleet__filter-disclosure > summary > span,
.portal-react-reports__filter-disclosure > summary > span,
.portal-react-monitoring__filter-disclosure > summary > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  background: #e7f3f7;
  color: var(--portal-primary-dark);
  font-size: 11px;
  font-weight: 800;
}

.portal-react-fleet__filter-disclosure .portal-react-seals__filters {
  grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(120px, 0.55fr)) auto;
  gap: 6px;
  padding: 8px;
  border: 0;
  border-top: 1px solid var(--portal-border);
  border-radius: 0;
  box-shadow: none;
}

.portal-react-fleet .portal-react-seals__metrics:not([hidden]),
.portal-react-reports__metrics:not([hidden]),
.portal-react-monitoring__metrics:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 4px 0;
  border-bottom: 1px solid var(--portal-border);
}

.portal-react-fleet .portal-react-seals__metric,
.portal-react-reports__metrics:not([hidden]) .portal-react-reports__metric,
.portal-react-monitoring__metrics:not([hidden]) .portal-react-monitoring__metric {
  min-height: 0;
  padding: 6px 10px;
  border: 0;
  border-right: 1px solid var(--portal-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-react-fleet .portal-react-seals__metric:nth-child(4n),
.portal-react-reports__metrics:not([hidden]) .portal-react-reports__metric:nth-child(4n),
.portal-react-monitoring__metrics:not([hidden]) .portal-react-monitoring__metric:nth-child(4n) {
  border-right: 0;
}

.portal-react-fleet .portal-react-seals__metric strong,
.portal-react-reports__metrics:not([hidden]) .portal-react-reports__metric strong,
.portal-react-monitoring__metrics:not([hidden]) .portal-react-monitoring__metric strong {
  font-size: 19px;
}

.portal-react-fleet .portal-react-seals__panel,
.portal-react-reports .portal-react-reports__panel,
.portal-react-monitoring .portal-react-monitoring__panel {
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: none;
}

.portal-react-fleet .portal-react-seals__compact-row,
.portal-react-monitoring .portal-react-monitoring__row {
  padding-block: 7px;
}

.portal-react-reports__filter-content {
  gap: 8px;
  padding: 0 9px 9px;
}

.portal-react-monitoring__filter-disclosure .portal-react-monitoring__filters {
  padding: 8px;
}

@media (max-width: 980px) {
  .portal-react-dashboard--operational .portal-react-dashboard__summary,
  .portal-react-fleet .portal-react-seals__metrics:not([hidden]),
  .portal-react-reports__metrics:not([hidden]),
  .portal-react-monitoring__metrics:not([hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-dashboard--operational .portal-react-dashboard__metric:nth-child(2n),
  .portal-react-fleet .portal-react-seals__metric:nth-child(2n),
  .portal-react-reports__metrics:not([hidden]) .portal-react-reports__metric:nth-child(2n),
  .portal-react-monitoring__metrics:not([hidden]) .portal-react-monitoring__metric:nth-child(2n) {
    border-right: 0;
  }

  .portal-react-tickets--workspace .portal-react-tickets__server-filters:not([hidden]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portal-react-tickets__toolbar-primary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .portal-react-tickets--workspace .portal-react-tickets__search {
    grid-column: 1 / -1;
  }

  .portal-react-tickets--workspace .portal-react-tickets__pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-react-tickets--workspace .portal-react-tickets__pagination nav {
    justify-content: space-between;
  }

  .portal-react-tickets--workspace .portal-react-tickets__toolbar-actions {
    grid-column: 2;
    grid-row: 2;
  }

  .portal-react-tickets--workspace .portal-react-tickets__server-filters:not([hidden]),
  .portal-react-fleet__filter-disclosure .portal-react-seals__filters {
    grid-template-columns: 1fr;
  }

  .portal-react-tickets--workspace .portal-react-tickets__route-support-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-react-tickets--workspace .portal-react-tickets__route-support-head p {
    display: none;
  }

  .portal-react-tickets--workspace .portal-react-tickets__route-support-metrics {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
  }

  .portal-react-fleet__filter-disclosure > summary > span,
  .portal-react-reports__filter-disclosure > summary > span,
  .portal-react-monitoring__filter-disclosure > summary > span {
    min-height: 40px;
  }

  .portal-shell-v2-enabled .central-notification-bell {
    right: 8px;
    bottom: 8px;
    padding: 4px 6px;
  }

  .portal-shell-v2-enabled .central-notification-bell > span {
    display: none;
  }

  .portal-shell-v2-enabled .central-notification-bell__sound {
    width: 40px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .portal-shell-v2-enabled .central-notification-bell__sound::after {
    content: 'Som';
    font-size: 10px;
  }

  .portal-shell-v2-enabled .central-notification-stack,
  .portal-shell-v2-enabled .central-chat-queue {
    right: 8px;
    bottom: 52px;
  }
}

@media (max-width: 520px) {
  .portal-react-dashboard--operational .portal-react-dashboard__summary,
  .portal-react-fleet .portal-react-seals__metrics:not([hidden]),
  .portal-react-reports__metrics:not([hidden]),
  .portal-react-monitoring__metrics:not([hidden]) {
    grid-template-columns: 1fr 1fr;
  }

  .portal-react-dashboard--operational .portal-react-dashboard__metric,
  .portal-react-fleet .portal-react-seals__metric,
  .portal-react-reports__metrics:not([hidden]) .portal-react-reports__metric,
  .portal-react-monitoring__metrics:not([hidden]) .portal-react-monitoring__metric {
    padding: 7px 8px;
  }
}

/* Onda 7C: catalogos, evidencias e administracao no mesmo contrato compacto. */
.portal-react-analysis,
.portal-react-assets,
.portal-react-seals:not(.portal-react-fleet),
.portal-react-catalogs,
.portal-react-evidence,
.portal-react-authenticity,
.portal-react-users,
.portal-react-settings {
  gap: 8px;
}

.portal-react-analysis__filters,
.portal-react-assets__filters,
.portal-react-evidence__filters,
.portal-react-users__toolbar {
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  box-shadow: none;
}

.portal-react-analysis__case,
.portal-react-assets__list-panel,
.portal-react-assets__detail,
.portal-react-seals:not(.portal-react-fleet) .portal-react-seals__panel,
.portal-react-catalogs__panel,
.portal-react-evidence__layout,
.portal-react-evidence__package,
.portal-react-authenticity__upload,
.portal-react-authenticity__steps,
.portal-react-users__access-requests,
.portal-react-users__create,
.portal-react-users__consent,
.portal-react-users__roles,
.portal-react-settings__panel {
  border-radius: 10px;
  box-shadow: none;
}

.portal-react-analysis__case-header,
.portal-react-assets__list-head,
.portal-react-assets__row,
.portal-react-seals:not(.portal-react-fleet) .portal-react-seals__heading,
.portal-react-seals:not(.portal-react-fleet) .portal-react-seals__compact-row,
.portal-react-catalogs__panel-header,
.portal-react-catalogs__item,
.portal-react-evidence__list-heading,
.portal-react-evidence__package,
.portal-react-users__section-heading,
.portal-react-settings__heading,
.portal-react-settings__permission-row {
  padding-block: 7px;
}

.portal-react-analysis__case-body,
.portal-react-assets__detail,
.portal-react-seals:not(.portal-react-fleet) .portal-react-seals__panel,
.portal-react-catalogs__panel-body,
.portal-react-authenticity__upload,
.portal-react-authenticity__steps,
.portal-react-users__access-requests,
.portal-react-users__create,
.portal-react-users__consent,
.portal-react-users__roles,
.portal-react-settings__panel {
  padding: 10px 12px;
}

.portal-react-analysis__case-header {
  min-height: 0;
  padding-inline: 10px;
}

.portal-react-analysis__case-grid,
.portal-react-assets__workspace,
.portal-react-catalogs__workspace,
.portal-react-authenticity__workspace,
.portal-react-settings__grid {
  gap: 8px;
}

.portal-react-analysis__hero-metrics,
.portal-react-assets__metrics,
.portal-react-seals:not(.portal-react-fleet) > .portal-react-seals__metrics,
.portal-react-users__summary,
.portal-react-settings__metrics,
.portal-react-evidence__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 4px 0;
  border-bottom: 1px solid var(--portal-border);
}

.portal-react-analysis__hero-metrics > *,
.portal-react-assets__metric,
.portal-react-seals:not(.portal-react-fleet) > .portal-react-seals__metrics .portal-react-seals__metric,
.portal-react-users__summary-card,
.portal-react-settings__metric,
.portal-react-evidence__summary-card {
  min-height: 0;
  padding: 6px 10px;
  border: 0;
  border-right: 1px solid var(--portal-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-react-analysis__hero-metrics > *:nth-child(4n),
.portal-react-assets__metric:nth-child(4n),
.portal-react-seals:not(.portal-react-fleet) > .portal-react-seals__metrics .portal-react-seals__metric:nth-child(4n),
.portal-react-users__summary-card:nth-child(4n),
.portal-react-settings__metric:nth-child(4n),
.portal-react-evidence__summary-card:nth-child(4n) {
  border-right: 0;
}

.portal-react-analysis__hero-metrics strong,
.portal-react-assets__metric strong,
.portal-react-seals:not(.portal-react-fleet) > .portal-react-seals__metrics strong,
.portal-react-users__summary-card strong,
.portal-react-settings__metric strong,
.portal-react-evidence__summary-card strong {
  font-size: 19px;
}

.portal-react-assets__row {
  gap: 8px;
  padding-inline: 9px;
}

.portal-react-assets__hero-more,
.portal-react-catalogs__new-details {
  border-radius: 9px;
  box-shadow: none;
}

.portal-react-catalogs__workspace-nav,
.portal-react-catalogs__workspace-side {
  border-radius: 10px;
  box-shadow: none;
}

.portal-react-catalogs__nav-item,
.portal-react-catalogs__side-action {
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 8px;
}

.portal-react-catalogs__panel-header {
  padding-inline: 10px;
}

.portal-react-seals:not(.portal-react-fleet) .portal-react-seals__package,
.portal-community-post,
.portal-community-thread,
.portal-community-knowledge,
.portal-community-insights,
.portal-community-moderation {
  padding: 9px;
  border-radius: 9px;
  box-shadow: none;
}

.portal-community__workspace-grid--topics .portal-react-seals__package-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 7px;
}

.portal-community__workspace-grid--topics .portal-react-seals__package-main > div:first-child {
  display: grid;
  gap: 2px;
}

.portal-community__workspace-grid--topics .portal-react-seals__package-main > div:first-child > strong,
.portal-community__workspace-grid--topics .portal-react-seals__package-main > div:first-child > span {
  line-height: 1.25;
}

.portal-community__workspace-grid--topics .portal-react-seals__package-footer {
  align-self: end;
  gap: 6px;
}

.portal-community__workspace-grid--topics .portal-react-seals__package-footer > span:first-child {
  flex-basis: 100%;
}

.portal-react-evidence__list {
  max-height: 680px;
}

.portal-react-evidence__package {
  padding-inline: 9px;
}

.portal-react-evidence__drawer-header,
.portal-react-evidence__drawer-body {
  padding: 10px 12px;
}

.portal-react-evidence__photo-grid,
.portal-react-evidence__media-grid,
.portal-react-evidence__overview-grid {
  gap: 8px;
}

.portal-react-authenticity__steps {
  background: #fff;
}

.portal-react-authenticity__steps ol {
  gap: 7px;
  margin-top: 8px;
}

.portal-react-authenticity__steps li {
  gap: 2px;
  padding-top: 7px;
}

.portal-react-users__directory {
  max-height: 720px;
  gap: 7px;
}

.portal-react-users__directory .portal-user-card {
  padding: 9px;
  border-radius: 9px;
  box-shadow: none;
}

.portal-react-users__directory .portal-user-card__main,
.portal-react-users__directory .portal-user-card__support {
  gap: 6px;
}

.portal-react-users__directory .portal-user-card__meta,
.portal-react-users__directory .portal-user-card__actions {
  gap: 5px;
}

.portal-react-settings__definition-list,
.portal-react-settings__permissions {
  gap: 6px;
}

.portal-react-settings__permission-row {
  padding-inline: 8px;
}

@media (max-width: 980px) {
  .portal-react-analysis__hero-metrics,
  .portal-react-assets__metrics,
  .portal-react-seals:not(.portal-react-fleet) > .portal-react-seals__metrics,
  .portal-react-users__summary,
  .portal-react-settings__metrics,
  .portal-react-evidence__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-analysis__hero-metrics > *:nth-child(2n),
  .portal-react-assets__metric:nth-child(2n),
  .portal-react-seals:not(.portal-react-fleet) > .portal-react-seals__metrics .portal-react-seals__metric:nth-child(2n),
  .portal-react-users__summary-card:nth-child(2n),
  .portal-react-settings__metric:nth-child(2n),
  .portal-react-evidence__summary-card:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .portal-react-analysis__case-body,
  .portal-react-assets__detail,
  .portal-react-seals:not(.portal-react-fleet) .portal-react-seals__panel,
  .portal-react-catalogs__panel-body,
  .portal-react-authenticity__upload,
  .portal-react-authenticity__steps,
  .portal-react-users__access-requests,
  .portal-react-users__create,
  .portal-react-users__consent,
  .portal-react-users__roles,
  .portal-react-settings__panel {
    padding: 9px;
  }

  .portal-react-users__directory .portal-user-card {
    padding: 8px;
  }
}

/* Onda 8A: navegacao unificada e contratos responsivos da proposta V2. */
@media (min-width: 1081px) {
  .portal-shell-v2-enabled .portal-shell {
    grid-template-columns: 252px minmax(0, 1fr);
  }

  .portal-shell-v2-enabled.portal-sidebar-collapsed .portal-shell {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

.portal-shell-v2-enabled .portal-sidebar {
  background: linear-gradient(180deg, #073f51, #053746);
  color: #f4fbfd;
  box-shadow: 8px 0 24px rgba(3, 42, 55, 0.12);
}

.portal-sidebar-v2 {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: transparent;
  color: #f4fbfd;
}

.portal-sidebar-v2__rail {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 0;
  padding: 14px 12px 8px;
  background: transparent;
  color: inherit;
}

.portal-sidebar-v2__brand {
  min-height: 48px;
  gap: 9px;
  padding: 0 40px 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.portal-sidebar-v2__brand .portal-sidebar-v2__app {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 10px;
  box-shadow: none;
}

.portal-sidebar-v2__brand .portal-sidebar-v2__app img {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  object-fit: contain;
  background: #fff;
}

.portal-sidebar-v2__brand span {
  color: #b8d4dd;
  font-size: 10px;
}

.portal-sidebar-v2__brand strong {
  color: #fff;
  font-size: 15px;
}

@media (max-width: 1180px) {
  .portal-react-reports__technician-row--head {
    display: none;
  }

  .portal-react-reports__technician-row:not(.portal-react-reports__technician-row--head) {
    grid-template-columns: 42px minmax(180px, 1.5fr) repeat(2, minmax(100px, 1fr));
    align-items: start;
  }

  .portal-react-reports__technician-row [data-label] {
    display: grid;
    align-content: start;
    gap: 4px;
  }

  .portal-react-reports__technician-row [data-label]::before {
    display: block;
  }

  .portal-react-reports__technician-row > :nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .portal-react-reports__technician-row > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .portal-react-reports__technician-row > :nth-child(3) { grid-column: 3; grid-row: 1; }
  .portal-react-reports__technician-row > :nth-child(4) { grid-column: 4; grid-row: 1; }
  .portal-react-reports__technician-row > :nth-child(5) { grid-column: 2; grid-row: 2; }
  .portal-react-reports__technician-row > :nth-child(6) { grid-column: 3; grid-row: 2; }
  .portal-react-reports__technician-row > :nth-child(7) { grid-column: 4; grid-row: 2; }
}

@media (max-width: 780px) {
  .portal-react-reports__technician-row:not(.portal-react-reports__technician-row--head) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-reports__technician-row > :nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .portal-react-reports__technician-row > :nth-child(1),
  .portal-react-reports__technician-row > :nth-child(2),
  .portal-react-reports__technician-row > :nth-child(7) {
    grid-column: 1 / -1;
  }
}

.portal-sidebar-v2__group-label {
  margin: 13px 8px 6px;
  color: #9fc8d4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portal-sidebar-v2__areas {
  display: grid;
  gap: 3px;
  width: 100%;
}

.portal-sidebar-v2__areas button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 40px;
  padding: 7px 9px;
  place-items: center start;
  border-radius: 8px;
  color: #d8e9ee;
}

.portal-sidebar-v2__areas button:hover,
.portal-sidebar-v2__areas button:focus-visible,
.portal-sidebar-v2__areas button.is-active {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.portal-sidebar-v2__areas button.is-active::before {
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
}

.portal-sidebar-v2__areas svg {
  width: 17px;
  height: 17px;
}

.portal-sidebar-v2__areas button span {
  display: block;
  max-width: none;
  margin: 0;
  overflow: visible;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
}

.portal-sidebar-v2__collapse {
  position: absolute;
  top: 15px;
  right: 10px;
  width: 34px;
  min-height: 34px;
  margin: 0;
  padding: 7px;
  border-radius: 8px;
  color: #d8e9ee;
}

.portal-sidebar-v2__context {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  padding: 0 12px 12px;
  background: transparent;
  color: inherit;
}

.portal-sidebar-v2__context-heading {
  padding: 10px 8px 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.portal-sidebar-v2__context-heading span {
  color: #9fc8d4;
  font-size: 11px;
}

.portal-sidebar-v2__context-heading h2 {
  margin-top: 2px;
  color: #fff;
  font-size: 16px;
}

.portal-sidebar-v2__context-scroll {
  flex: 1 1 auto;
  scrollbar-color: rgba(196, 224, 231, 0.5) transparent;
}

.portal-sidebar-v2__modules {
  gap: 2px;
  padding: 0 0 8px;
}

.portal-sidebar-v2__modules a,
.portal-sidebar-v2__account {
  grid-template-columns: 30px minmax(0, 1fr) 12px;
  gap: 8px;
  min-height: 44px;
  padding: 7px 8px;
  border-color: transparent;
  border-radius: 8px;
  color: #eef8fa;
}

.portal-sidebar-v2__modules a:hover,
.portal-sidebar-v2__modules a:focus-visible,
.portal-sidebar-v2__modules a.is-active,
.portal-sidebar-v2__account:hover,
.portal-sidebar-v2__account:focus-visible,
.portal-sidebar-v2__account[aria-current='page'] {
  border-color: rgba(174, 222, 229, 0.2);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.portal-sidebar-v2__modules a.is-highlighted:not(.is-active) {
  border-color: rgba(126, 214, 190, 0.18);
  background: rgba(126, 214, 190, 0.08);
}

.portal-sidebar-v2__module-icon {
  width: 30px;
  height: 30px;
  border-color: rgba(197, 225, 232, 0.23);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9f1f5;
}

.portal-sidebar-v2__module-copy strong,
.portal-sidebar-v2__account strong {
  color: inherit;
  font-size: 14px;
  line-height: 1.25;
}

.portal-sidebar-v2__module-copy small,
.portal-sidebar-v2__account small {
  color: #b8d2da;
  font-size: 11px;
  line-height: 1.3;
  -webkit-line-clamp: 1;
}

.portal-sidebar-v2__module-arrow {
  color: #a9c6ce;
  font-size: 17px;
}

.portal-sidebar-v2__account {
  grid-template-columns: 30px minmax(0, 1fr);
  margin-top: 6px;
  border-top-color: rgba(255, 255, 255, 0.14);
}

.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-sidebar-v2 {
  display: flex;
}

.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-sidebar-v2__rail {
  padding: 12px 8px 56px;
}

.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-sidebar-v2__brand {
  padding: 0 0 12px;
  border: 0;
}

.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-sidebar-v2__brand > div,
.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-sidebar-v2__group-label,
.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-sidebar-v2__areas button span,
.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-sidebar-v2__context {
  display: none;
}

.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-sidebar-v2__areas button {
  grid-template-columns: 1fr;
  width: 48px;
  min-height: 44px;
  padding: 8px;
  place-items: center;
}

.portal-shell-v2-enabled.portal-sidebar-collapsed .portal-sidebar-v2__collapse {
  top: auto;
  right: 8px;
  bottom: 12px;
  width: 48px;
  min-height: 40px;
}

.portal-shell-v2-enabled .portal-main,
.portal-shell-v2-enabled .portal-main > *,
.portal-shell-v2-enabled .portal-react-host,
.portal-shell-v2-enabled .portal-workspace-content {
  min-width: 0;
  max-width: 100%;
}

.portal-workspace-tabs,
.portal-react-fleet > .portal-workspace-tabs,
.portal-react-reports > .portal-workspace-tabs,
.portal-react-users > .portal-workspace-tabs,
.portal-react-monitoring > .portal-workspace-tabs,
.portal-react-settings > .portal-workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  scrollbar-width: auto;
}

.portal-shell-v2-enabled .portal-workspace-tabs > button,
.portal-shell-v2-enabled .portal-workspace-tabs > a {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
  white-space: normal;
}

@media (max-width: 1080px) {
  .portal-shell-v2-enabled .portal-sidebar {
    position: fixed;
    z-index: 1200;
    inset: 0 auto 0 0;
    width: min(294px, calc(100vw - 32px));
    height: 100dvh;
    max-height: none;
    overflow: hidden;
    box-shadow: 18px 0 46px rgba(2, 28, 38, 0.3);
  }

  .portal-shell-v2-enabled .portal-sidebar-v2 {
    display: flex;
    height: 100%;
  }

  .portal-sidebar-v2__rail {
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }

  .portal-sidebar-v2__areas {
    display: grid;
    width: 100%;
  }

  .portal-sidebar-v2__areas button,
  .portal-sidebar-v2__collapse {
    width: 100%;
  }

  .portal-sidebar-v2__areas button span {
    display: block;
  }

  .portal-sidebar-v2__context {
    max-height: none;
    border: 0;
  }

  .portal-sidebar-v2__brand {
    display: flex;
  }

  .portal-sidebar-v2__modules {
    grid-template-columns: 1fr;
  }

  .portal-sidebar-v2__modules a {
    grid-template-columns: 30px minmax(0, 1fr) 12px;
  }

  .portal-sidebar-v2__module-copy small,
  .portal-sidebar-v2__account small,
  .portal-sidebar-v2__module-arrow {
    display: -webkit-box;
  }
}

@media (max-width: 720px) {
  .portal-shell-v2-enabled .portal-main {
    padding: 12px 10px 72px;
  }

  .portal-workspace-tabs,
  .portal-react-fleet > .portal-workspace-tabs,
  .portal-react-reports > .portal-workspace-tabs,
  .portal-react-users > .portal-workspace-tabs,
  .portal-react-monitoring > .portal-workspace-tabs,
  .portal-react-settings > .portal-workspace-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .portal-shell-v2-enabled .portal-workspace-tabs > button,
  .portal-shell-v2-enabled .portal-workspace-tabs > a {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .portal-workspace-tabs,
  .portal-react-fleet > .portal-workspace-tabs,
  .portal-react-reports > .portal-workspace-tabs,
  .portal-react-users > .portal-workspace-tabs,
  .portal-react-monitoring > .portal-workspace-tabs,
  .portal-react-settings > .portal-workspace-tabs {
    grid-template-columns: 1fr;
  }
}

/* Onda 8B: Equipamentos com lista progressiva e adaptacao real. */
.portal-react-assets__quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, max-content));
  gap: 7px;
  max-width: 100%;
}

.portal-react-assets__quick .portal-filter-chip {
  min-width: 0;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 999px;
}

.portal-react-assets__filters {
  grid-template-columns: minmax(230px, 1.45fr) minmax(120px, 0.55fr) minmax(160px, 0.75fr) auto auto;
  gap: 8px;
  padding: 10px;
  overflow: visible;
}

.portal-react-assets__advanced {
  position: relative;
  align-self: end;
}

.portal-react-assets__advanced summary {
  min-height: 36px;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #eef6f8;
  list-style: none;
}

.portal-react-assets__advanced summary::-webkit-details-marker {
  display: none;
}

.portal-react-assets__advanced > div {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  width: min(520px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(11, 51, 67, 0.16);
}

.portal-react-assets__filter-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

.portal-react-assets__list-panel {
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
}

.portal-react-assets__list-head,
.portal-react-assets__row {
  grid-template-columns: minmax(170px, 1.05fr) minmax(210px, 1.35fr) minmax(110px, 0.68fr) minmax(145px, 0.9fr) minmax(118px, auto);
  gap: 12px;
}

.portal-react-assets__list-head {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 9px 12px;
}

.portal-react-assets__list {
  gap: 0;
  max-width: 100%;
  max-height: min(690px, calc(100vh - 210px));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
}

.portal-react-assets__row {
  position: relative;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.portal-react-assets__row + .portal-react-assets__row {
  border-top: 1px solid var(--portal-border);
}

.portal-react-assets__row:hover,
.portal-react-assets__row.is-selected {
  background: #f1f8fa;
}

.portal-react-assets__identity {
  border-radius: 7px;
}

.portal-react-assets__identity:focus-visible {
  outline: 3px solid rgba(15, 159, 155, 0.22);
  outline-offset: 2px;
}

.portal-react-assets__location,
.portal-react-assets__ticket,
.portal-react-assets__verification {
  min-width: 0;
}

.portal-react-assets__location p,
.portal-react-assets__verification p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portal-react-assets__row-actions {
  position: relative;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 3px;
}

.portal-react-assets__row-primary-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--portal-primary-dark);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.portal-react-assets__row-primary-action:hover,
.portal-react-assets__row-primary-action:focus-visible {
  background: #e3f1f4;
  outline: none;
}

.portal-react-assets__row-more {
  position: relative;
}

.portal-react-assets__row-more > summary {
  display: grid;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--portal-primary-dark);
  cursor: pointer;
  font-size: 20px;
  list-style: none;
  place-items: center;
}

.portal-react-assets__row-more > summary::-webkit-details-marker {
  display: none;
}

.portal-react-assets__row-more > summary:hover,
.portal-react-assets__row-more > summary:focus-visible,
.portal-react-assets__row-more[open] > summary {
  border-color: var(--portal-border);
  background: #eef6f8;
  outline: none;
}

.portal-react-assets__row-more > div {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  min-width: 150px;
  padding: 5px;
  border: 1px solid var(--portal-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(11, 51, 67, 0.17);
}

.portal-react-assets__row-more button,
.portal-react-assets__row-more a {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--portal-ink);
  font: inherit;
  text-align: left;
}

.portal-react-assets__row-more button:hover,
.portal-react-assets__row-more button:focus-visible,
.portal-react-assets__row-more a:hover,
.portal-react-assets__row-more a:focus-visible {
  background: #eef6f8;
  outline: none;
}

@media (max-width: 1180px) {
  .portal-react-assets__filters {
    grid-template-columns: minmax(220px, 1.4fr) minmax(120px, 0.6fr) minmax(150px, 0.8fr) auto;
  }

  .portal-react-assets__filter-actions {
    grid-column: 1 / -1;
  }

  .portal-react-assets__list-head,
  .portal-react-assets__row {
    grid-template-columns: minmax(160px, 1fr) minmax(195px, 1.25fr) minmax(105px, 0.65fr) minmax(135px, 0.85fr) minmax(112px, auto);
  }
}

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

  .portal-react-assets__quick .portal-filter-chip {
    width: 100%;
  }

  .portal-react-assets__list-head {
    display: none;
  }

  .portal-react-assets__list {
    max-height: 720px;
  }

  .portal-react-assets__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
    padding: 12px;
  }

  .portal-react-assets__identity,
  .portal-react-assets__location,
  .portal-react-assets__row-actions {
    grid-column: 1 / -1;
  }

  .portal-react-assets__ticket,
  .portal-react-assets__verification {
    align-self: start;
  }

  .portal-react-assets__row-actions {
    padding-top: 2px;
    border-top: 1px solid #e3edf0;
  }
}

@media (max-width: 720px) {
  .portal-react-assets__hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .portal-react-assets__hero-actions > * {
    width: 100%;
  }

  .portal-react-assets__hero-more {
    grid-column: 1 / -1;
  }

  .portal-react-assets__filters {
    grid-template-columns: 1fr 1fr;
  }

  .portal-react-assets__search,
  .portal-react-assets__advanced,
  .portal-react-assets__filter-actions {
    grid-column: 1 / -1;
  }

  .portal-react-assets__advanced > div {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }

  .portal-react-assets__filter-actions > * {
    flex: 1 1 0;
  }

  .portal-react-assets__row {
    grid-template-columns: 1fr;
  }

  .portal-react-assets__identity,
  .portal-react-assets__location,
  .portal-react-assets__ticket,
  .portal-react-assets__verification,
  .portal-react-assets__row-actions {
    grid-column: 1;
  }
}

/* Onda 8B: filas legiveis de chamados e consulta mestre-detalhe da frota. */
.portal-react-tickets--workspace .portal-react-tickets__status-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  overflow: visible;
}

.portal-react-tickets--workspace .portal-react-tickets__status-rail button {
  min-width: 0;
  justify-content: space-between;
}

.portal-react-tickets--workspace .portal-react-tickets__status-rail span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-workspace) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-workspace) > * {
  grid-column: 1;
}

.portal-react-fleet__inspection-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 12px;
  align-items: start;
}

.portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-list) .portal-react-fleet__inspection-list .portal-react-seals__compact-row {
  grid-template-columns: minmax(70px, 0.72fr) minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(74px, 0.65fr) minmax(78px, 0.62fr) minmax(54px, 0.48fr);
  min-width: 0;
}

.portal-react-fleet__inspection-master,
.portal-react-fleet__inspection-detail {
  min-width: 0;
}

.portal-react-fleet__inspection-detail {
  position: sticky;
  top: 70px;
  display: grid;
  max-height: calc(100vh - 100px);
  gap: 10px;
  overflow: auto;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: #f8fbfc;
  padding: 10px;
}

.portal-react-fleet__inspection-selection {
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--portal-border);
}

.portal-react-fleet__inspection-selection > div:first-of-type {
  display: grid;
  gap: 2px;
}

.portal-react-fleet__inspection-selection > div:first-of-type strong {
  color: var(--portal-ink);
  font-size: 15px;
}

.portal-react-fleet__inspection-selection > div:first-of-type span,
.portal-react-fleet__inspection-selection > p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 11px;
  line-height: 1.4;
}

.portal-react-fleet__inspection-selection-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 11px;
}

.portal-react-fleet__inspection-selection > .portal-primary-button {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
}

.portal-react-fleet__inspection-detail .portal-react-fleet__inspection-map-block {
  margin: 0;
  padding: 0;
  border: 0;
}

.portal-react-fleet__inspection-detail .portal-react-fleet__inspection-map {
  min-height: 260px;
}

@media (max-width: 1050px) {
  .portal-react-fleet__inspection-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-react-fleet__inspection-detail {
    position: static;
    max-height: none;
  }
}

@media (max-width: 900px) {
  .portal-react-fleet .portal-react-seals__compact-row--head {
    display: none;
  }

  .portal-react-fleet .portal-react-seals__compact-row:not(.portal-react-seals__compact-row--head) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    min-width: 0;
    padding: 11px;
  }

  .portal-react-fleet .portal-react-seals__compact-row:not(.portal-react-seals__compact-row--head) > * {
    display: grid;
    align-content: start;
    gap: 2px;
    min-width: 0;
  }

  .portal-react-fleet .portal-react-seals__compact-row:not(.portal-react-seals__compact-row--head) > *::before {
    color: #5b7086;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.035em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .portal-react-fleet__conformance-row > :nth-child(1)::before,
  .portal-react-fleet__vehicle-row > :nth-child(1)::before,
  .portal-react-fleet__maintenance-row > :nth-child(1)::before,
  .portal-react-fleet__maintenance-alert-row > :nth-child(2)::before { content: 'Veículo'; }
  .portal-react-fleet__conformance-row > :nth-child(2)::before,
  .portal-react-fleet__vehicle-row > :nth-child(2)::before { content: 'Responsável'; }
  .portal-react-fleet__conformance-row > :nth-child(3)::before,
  .portal-react-fleet__vehicle-row > :nth-child(3)::before { content: 'Base / contrato'; }
  .portal-react-fleet__conformance-row > :nth-child(4)::before { content: 'Vistoria'; }
  .portal-react-fleet__conformance-row > :nth-child(5)::before,
  .portal-react-fleet__vehicle-row > :nth-child(4)::before,
  .portal-react-fleet__maintenance-row > :nth-child(5)::before { content: 'Situação'; }
  .portal-react-fleet__conformance-row > :nth-child(6)::before { content: 'Fotos / KM'; }
  .portal-react-fleet__vehicle-row > :nth-child(5)::before { content: 'KM atual'; }
  .portal-react-fleet__vehicle-row > :nth-child(6)::before,
  .portal-react-fleet__maintenance-row > :nth-child(7)::before { content: 'Ações'; }
  .portal-react-fleet__reading-row > :nth-child(1)::before,
  .portal-react-fleet__inspection-row > :nth-child(1)::before { content: 'Data'; }
  .portal-react-fleet__reading-row > :nth-child(2)::before,
  .portal-react-fleet__inspection-row > :nth-child(2)::before { content: 'Veículo'; }
  .portal-react-fleet__reading-row > :nth-child(3)::before,
  .portal-react-fleet__inspection-row > :nth-child(3)::before { content: 'Técnico'; }
  .portal-react-fleet__reading-row > :nth-child(4)::before { content: 'KM inicial / final'; }
  .portal-react-fleet__reading-row > :nth-child(5)::before { content: 'Total'; }
  .portal-react-fleet__reading-row > :nth-child(6)::before { content: 'Integridade'; }
  .portal-react-fleet__inspection-row > :nth-child(4)::before { content: 'Resultado'; }
  .portal-react-fleet__inspection-row > :nth-child(5)::before { content: 'Fotos / KM'; }
  .portal-react-fleet__inspection-row > :nth-child(6)::before { content: 'Origem'; }
  .portal-react-fleet__maintenance-row > :nth-child(2)::before { content: 'Tipo'; }
  .portal-react-fleet__maintenance-row > :nth-child(3)::before,
  .portal-react-fleet__maintenance-alert-row > :nth-child(3)::before { content: 'Responsável / base'; }
  .portal-react-fleet__maintenance-row > :nth-child(4)::before,
  .portal-react-fleet__maintenance-alert-row > :nth-child(4)::before { content: 'Prazo / KM'; }
  .portal-react-fleet__maintenance-row > :nth-child(6)::before { content: 'Oficina'; }
  .portal-react-fleet__maintenance-alert-row > :nth-child(1)::before { content: 'Alerta'; }
  .portal-react-fleet__maintenance-alert-row > :nth-child(5)::before { content: 'Manutenção'; }
  .portal-react-fleet__maintenance-alert-row > :nth-child(6)::before { content: 'Detalhe'; }

  .portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-list) .portal-react-fleet__inspection-list .portal-react-seals__compact-row:not(.portal-react-seals__compact-row--head) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .portal-react-tickets--workspace .portal-react-tickets__status-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-tickets--workspace .portal-react-tickets__status-rail span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .portal-react-tickets--workspace .portal-react-tickets__card-summary > p:not(.portal-react-tickets__card-meta) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .portal-react-fleet .portal-react-seals__metrics:not([hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-fleet .portal-react-seals__compact-row:not(.portal-react-seals__compact-row--head) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-fleet .portal-react-seals__panel:has(.portal-react-fleet__inspection-list) .portal-react-fleet__inspection-list .portal-react-seals__compact-row:not(.portal-react-seals__compact-row--head) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-react-fleet__inspection-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .portal-react-fleet__inspection-filters > label:first-child,
  .portal-react-fleet__inspection-filters > button {
    grid-column: 1 / -1;
  }

  .portal-react-fleet__inspection-detail .portal-react-fleet__inspection-map {
    min-height: 220px;
  }
}

/* Onda 8C: estoque sem colunas ocultas em tablet ou celular. */
.portal-react-catalogs__mobile-selector {
  display: none;
}

@media (max-width: 860px) {
  .portal-react-catalogs__workspace-nav {
    max-height: none;
    padding: 10px;
  }

  .portal-react-catalogs__mobile-selector {
    display: grid;
    gap: 5px;
    color: var(--portal-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .portal-react-catalogs__mobile-selector select {
    width: 100%;
    min-height: 40px;
    color: var(--portal-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
  }

  .portal-react-catalogs__workspace-nav > .portal-react-catalogs__nav-section {
    display: none;
  }
}

@media (max-width: 900px) {
  .portal-react-parts .portal-react-seals__compact-list {
    overflow-x: visible;
  }

  .portal-react-parts .portal-react-seals__compact-row--head {
    display: none;
  }

  .portal-react-parts .portal-react-seals__compact-row:not(.portal-react-seals__compact-row--head) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    min-width: 0;
    padding: 11px;
  }

  .portal-react-parts .portal-react-seals__compact-row:not(.portal-react-seals__compact-row--head) > * {
    display: grid;
    align-content: start;
    gap: 2px;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .portal-react-parts .portal-react-seals__compact-row:not(.portal-react-seals__compact-row--head) > *::before {
    color: #5b7086;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.035em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .portal-react-parts .portal-react-seals__compact-list--stock .portal-react-seals__compact-row > :nth-child(1)::before { content: 'Peca'; }
  .portal-react-parts .portal-react-seals__compact-list--stock .portal-react-seals__compact-row > :nth-child(2)::before { content: 'Local'; }
  .portal-react-parts .portal-react-seals__compact-list--stock .portal-react-seals__compact-row > :nth-child(3)::before { content: 'Condicao'; }
  .portal-react-parts .portal-react-seals__compact-list--stock .portal-react-seals__compact-row > :nth-child(4)::before { content: 'Status'; }
  .portal-react-parts .portal-react-seals__compact-list--stock .portal-react-seals__compact-row > :nth-child(5)::before { content: 'Quantidade'; }
.portal-react-parts .portal-react-seals__compact-list--stock .portal-react-seals__compact-row > :nth-child(6)::before { content: 'Atualização'; }

  .portal-react-parts .portal-react-seals__compact-list--audit .portal-react-seals__compact-row > :nth-child(1)::before { content: 'Data'; }
  .portal-react-parts .portal-react-seals__compact-list--audit .portal-react-seals__compact-row > :nth-child(2)::before { content: 'Evento'; }
  .portal-react-parts .portal-react-seals__compact-list--audit .portal-react-seals__compact-row > :nth-child(3)::before { content: 'Peca'; }
  .portal-react-parts .portal-react-seals__compact-list--audit .portal-react-seals__compact-row > :nth-child(4)::before { content: 'Quantidade'; }
  .portal-react-parts .portal-react-seals__compact-list--audit .portal-react-seals__compact-row > :nth-child(5)::before { content: 'Responsável'; }
}

@media (max-width: 560px) {
  .portal-react-parts .portal-react-seals__compact-row:not(.portal-react-seals__compact-row--head) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Suporte operacional */
.portal-tv-shell {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  padding: clamp(.65rem, 1.2vw, 1.25rem);
  background:
    radial-gradient(circle at top right, rgba(23, 145, 171, .18), transparent 28%),
    linear-gradient(145deg, #eaf4f7 0%, #f8fbfc 52%, #e9f3f6 100%);
}

.portal-tv-shell .portal-react-host,
.portal-tv-shell [data-react-mount],
.portal-tv-shell .portal-support-operations {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.portal-tv-loading {
  display: grid;
  place-content: center;
  gap: .5rem;
  height: 100%;
  color: #17495b;
  text-align: center;
}

.portal-tv-kiosk__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: .7rem .85rem;
  border: 1px solid rgba(151, 194, 207, .72);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 28px rgba(28, 65, 80, .10);
}

.portal-tv-kiosk__brand { display: grid; min-width: 0; gap: .05rem; }
.portal-tv-kiosk__brand span { color: #07809d; font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.portal-tv-kiosk__brand h1 { margin: 0; color: #103b4b; font-size: clamp(1.1rem, 1.6vw, 1.55rem); }
.portal-tv-kiosk__brand small { color: #5b7381; }
.portal-tv-kiosk__toolbar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.portal-tv-kiosk__toolbar button,
.portal-tv-kiosk__toolbar a,
.portal-tv-kiosk__configuration button,
.portal-tv-kiosk__configuration a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: .38rem .7rem;
  border: 1px solid #bdd8e2;
  border-radius: .65rem;
  background: #f6fbfc;
  color: #15556c;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.portal-tv-kiosk__toolbar button.is-ready { border-color: #8bcaae; background: #ecf8f2; color: #087647; }
.portal-tv-kiosk__configuration {
  display: grid;
  grid-template-columns: auto minmax(18rem, 1fr) auto;
  gap: .7rem;
  align-items: center;
  padding: .65rem .8rem;
  border: 1px solid #bed9e3;
  border-radius: .85rem;
  background: #fff;
  color: #426576;
}
.portal-tv-kiosk__configuration > div { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.portal-tv-kiosk__configuration p { margin: 0; font-size: .78rem; }
.portal-tv-kiosk__configuration a.is-active { border-color: #0c7592; background: #e7f5f8; color: #075a70; }
.portal-support-operations,
.portal-support-config {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.portal-support-operations__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.portal-support-operations__metrics article {
  display: grid;
  gap: .15rem;
  min-width: 0;
  padding: .8rem .9rem;
  border: 1px solid #cfe1e8;
  border-radius: .9rem;
  background: #fff;
}

.portal-support-operations__metrics span,
.portal-support-operations__metrics small {
  color: #587082;
}

.portal-support-operations__metrics strong {
  color: #0a4d62;
  font-size: 1.55rem;
  line-height: 1;
}

.portal-support-operations__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 25rem);
  gap: .85rem;
  align-items: start;
  min-width: 0;
}

.portal-support-operations__queue {
  display: grid;
  gap: .55rem;
  min-width: 0;
}

.portal-support-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cfe1e8;
  border-left: .3rem solid #1a7c98;
  border-radius: .85rem;
  background: #fff;
}

.portal-support-ticket.is-blocked { border-left-color: #d97706; }
.portal-support-ticket.is-overdue { border-color: #efb2ad; border-left-color: #cf3527; }
.portal-support-ticket.is-selected { box-shadow: 0 0 0 2px rgba(18, 124, 166, .16); }

.portal-support-ticket__body {
  display: grid;
  gap: .3rem;
  min-width: 0;
  padding: .75rem .85rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.portal-support-ticket__body h2,
.portal-support-ticket__body p { margin: 0; }
.portal-support-ticket__body h2 { font-size: 1rem; }
.portal-support-ticket__body p { color: #5f7484; font-size: .84rem; }

.portal-support-ticket__topline,
.portal-support-ticket__meta,
.portal-support-config__tags,
.portal-support-config__actions,
.portal-support-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .6rem;
  align-items: center;
}

.portal-support-ticket__topline { justify-content: space-between; }
.portal-support-ticket__meta { color: #4d6878; font-size: .77rem; }
.portal-support-ticket__meta .is-danger { color: #b42318; font-weight: 700; }

.portal-support-ticket__priority,
.portal-support-config__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: #e9f4f7;
  color: #0d6078;
  font-size: .72rem;
  font-weight: 700;
}

.portal-support-ticket__priority.priority-urgent { background: #fee4e2; color: #b42318; }
.portal-support-ticket__priority.priority-high { background: #fff0d6; color: #9a4f00; }

.portal-support-ticket__actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  padding: .55rem;
  border-left: 1px solid #e2edf1;
}

.portal-support-ticket__actions button {
  min-height: 2.15rem;
  padding: .35rem .7rem;
  border: 0;
  border-radius: .55rem;
  background: #0b607a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.portal-support-operations__detail {
  position: sticky;
  top: 5.2rem;
  display: grid;
  gap: .7rem;
  min-width: 0;
  max-height: calc(100vh - 6.5rem);
  overflow: auto;
  padding: .95rem;
  border: 1px solid #cfe1e8;
  border-radius: .9rem;
  background: #fff;
}

.portal-support-operations__detail h2,
.portal-support-operations__detail p { margin: 0; }
.portal-support-operations__detail dl { display: grid; gap: .45rem; margin: 0; }
.portal-support-operations__detail dl div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .5rem; }
.portal-support-operations__detail dt { color: #607889; font-size: .78rem; }
.portal-support-operations__detail dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.portal-support-operations__history { display: grid; gap: .3rem; padding-top: .6rem; border-top: 1px solid #dce9ee; }
.portal-support-operations__history p { color: #536d7d; font-size: .78rem; }
.portal-support-operations__detail-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.portal-support-operation-form {
  display: grid;
  gap: .6rem;
  padding: .75rem;
  border: 1px solid #cfe1e8;
  border-radius: .75rem;
  background: #f7fbfc;
}
.portal-support-operation-form label { display: grid; gap: .28rem; min-width: 0; font-size: .8rem; font-weight: 700; }
.portal-support-operation-form input,
.portal-support-operation-form select,
.portal-support-operation-form textarea { width: 100%; min-width: 0; }

.portal-support-operations__error {
  padding: .7rem .85rem;
  border: 1px solid #efb2ad;
  border-radius: .7rem;
  background: #fff0ef;
  color: #9f241a;
}
.portal-support-operations__freshness {
  justify-self: end;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: #e6f6ef;
  color: #087647;
  font-size: .76rem;
  font-weight: 750;
}
.portal-support-operations__freshness.is-stale { background: #fee4e2; color: #b42318; }
.portal-support-tv-presence {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  padding: .55rem .7rem;
  border: 1px solid #cfe1e8;
  border-radius: .75rem;
  background: #f7fbfc;
  color: #426576;
  font-size: .82rem;
}
.portal-support-tv-presence span { padding-right: .55rem; border-right: 1px solid #d7e6eb; }
.portal-support-tv-presence span:last-child { padding-right: 0; border-right: 0; }
.portal-support-tv-presence .is-ready { color: #087647; font-weight: 750; }
.portal-support-tv-presence .is-muted { color: #9a4f00; font-weight: 750; }
.portal-support-supervision {
  display: grid;
  gap: .65rem;
  padding: .8rem;
  border: 1px solid #cfe1e8;
  border-radius: .9rem;
  background: #fff;
}
.portal-support-supervision__analysts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: .5rem;
}
.portal-support-supervision__analysts button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .15rem .45rem;
  min-width: 0;
  padding: .6rem .7rem;
  border: 1px solid #d6e5eb;
  border-radius: .7rem;
  background: #fafdfe;
  color: #153f50;
  text-align: left;
  cursor: pointer;
}
.portal-support-supervision__analysts button.is-selected { border-color: #0c7592; box-shadow: 0 0 0 2px rgba(12, 117, 146, .12); }
.portal-support-supervision__analysts strong,
.portal-support-supervision__analysts small { min-width: 0; overflow-wrap: anywhere; }
.portal-support-supervision__analysts small { grid-column: 1 / -1; color: #607889; }
.portal-support-supervision__analysts .is-online,
.portal-support-supervision__analysts .is-offline { font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.portal-support-supervision__analysts .is-online { color: #087647; }
.portal-support-supervision__analysts .is-offline { color: #7a8992; }
.portal-support-mine-tabs { display: flex; flex-wrap: wrap; gap: .45rem; }
.portal-support-mine-tabs button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.15rem;
  padding: .35rem .65rem;
  border: 1px solid #c9dfe7;
  border-radius: 999px;
  background: #fff;
  color: #315b6b;
  font-weight: 700;
  cursor: pointer;
}
.portal-support-mine-tabs button.is-active { border-color: #0c7592; background: #e7f5f8; color: #075a70; }
.portal-support-mine-tabs span { min-width: 1.45rem; padding: .08rem .36rem; border-radius: 999px; background: #dcecf1; text-align: center; }

.portal-support-operations--tv .portal-support-operations__workspace { grid-template-columns: 1fr; }
.portal-support-operations--tv .portal-support-operations__queue { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-support-operations--tv .portal-support-ticket { grid-template-columns: minmax(0, 1fr); }
.portal-support-operations--tv .portal-support-ticket__body { min-height: 9rem; }
.portal-support-operations--tv .portal-support-ticket__body:disabled { color: inherit; opacity: 1; cursor: default; }
.portal-tv-shell .portal-support-operations--tv {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.portal-tv-shell .portal-support-operations--tv .portal-support-operations__workspace,
.portal-tv-shell .portal-support-operations--tv .portal-support-operations__queue { min-height: 0; }
.portal-tv-shell .portal-support-operations--tv .portal-support-operations__workspace {
  flex: 1 1 auto;
  overflow: hidden;
}
.portal-tv-shell .portal-support-operations--tv .portal-support-operations__queue {
  height: 100%;
  grid-template-rows: repeat(2, minmax(0, 1fr)) auto;
}
.portal-tv-shell .portal-support-operations--tv .portal-empty-state {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  text-align: center;
}
.portal-tv-shell .portal-support-operations--tv .portal-support-ticket__body { min-height: 0; }
.portal-support-tv__pagination {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  color: #587082;
  font-size: .78rem;
}
.portal-support-tv__pagination strong { color: #315b6b; }

.portal-support-kpi__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  justify-content: flex-end;
}

.portal-support-kpi__toolbar > div {
  display: inline-flex;
  gap: .25rem;
  margin-right: auto;
  padding: .2rem;
  border: 1px solid #cfe1e8;
  border-radius: 999px;
  background: #f7fbfc;
}

.portal-support-kpi__toolbar > div button {
  min-height: 2rem;
  padding: .3rem .7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #426576;
  font-weight: 750;
  cursor: pointer;
}

.portal-support-kpi__toolbar > div button.is-active {
  background: #0b607a;
  color: #fff;
}

.portal-support-kpi__headline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .65rem;
}

.portal-support-kpi__headline article {
  display: grid;
  gap: .15rem;
  min-width: 0;
  padding: .75rem .8rem;
  border: 1px solid #cfe1e8;
  border-radius: .85rem;
  background: #fff;
}

.portal-support-kpi__headline article.is-danger {
  border-color: #efb2ad;
  background: #fff8f7;
}

.portal-support-kpi__headline span,
.portal-support-kpi__headline small { color: #5b7282; overflow-wrap: anywhere; }
.portal-support-kpi__headline span { font-size: .75rem; font-weight: 750; text-transform: uppercase; }
.portal-support-kpi__headline strong { color: #0a4d62; font-size: 1.65rem; line-height: 1.1; }
.portal-support-kpi__headline .is-danger strong { color: #b42318; }

.portal-support-kpi__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(14rem, 1fr));
  gap: .75rem;
  min-width: 0;
}

.portal-support-kpi__panel {
  display: grid;
  align-content: start;
  gap: .7rem;
  min-width: 0;
  padding: .85rem;
  border: 1px solid #cfe1e8;
  border-radius: .9rem;
  background: #fff;
}

.portal-support-kpi__panel header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: .5rem;
}

.portal-support-kpi__panel h2,
.portal-support-kpi__panel p { margin: 0; }
.portal-support-kpi__panel h2 { color: #153f50; font-size: 1rem; }
.portal-support-kpi__panel header small { color: #607889; }

.portal-support-kpi__legend { display: flex; gap: .8rem; color: #587082; font-size: .75rem; }
.portal-support-kpi__legend span::before { content: ''; display: inline-block; width: .55rem; height: .55rem; margin-right: .3rem; border-radius: 2px; }
.portal-support-kpi__legend .is-opened::before { background: #1693b3; }
.portal-support-kpi__legend .is-closed::before { background: #27a36a; }

.portal-support-kpi__chart {
  display: flex;
  gap: clamp(.12rem, .45vw, .45rem);
  align-items: end;
  min-width: 0;
  height: 13rem;
  padding: .45rem .25rem 0;
  border-bottom: 1px solid #b9d0d9;
  background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #edf4f6 25%);
}

.portal-support-kpi__day {
  display: block;
  flex: 1 1 0;
  min-width: 2px;
  height: 100%;
}

.portal-support-kpi__day > div {
  display: flex;
  gap: 2px;
  align-items: end;
  min-width: 0;
  height: 100%;
}

.portal-support-kpi__day i { display: block; flex: 1 1 0; min-width: 1px; border-radius: 3px 3px 0 0; }
.portal-support-kpi__day i.is-opened { background: #1693b3; }
.portal-support-kpi__day i.is-closed { background: #27a36a; }
.portal-support-kpi__axis { display: flex; justify-content: space-between; gap: .4rem; color: #6b808e; }
.portal-support-kpi__axis small { min-width: 0; font-size: .62rem; white-space: nowrap; }

.portal-support-kpi__rows { display: grid; gap: .4rem; }
.portal-support-kpi__rows > div { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .65rem; border-radius: .6rem; background: #f5fafb; color: #426576; }
.portal-support-kpi__rows strong { color: #0a4d62; font-size: 1.15rem; }
.portal-support-kpi__rows .is-danger { background: #fff0ef; color: #9f241a; }
.portal-support-kpi__rows .is-danger strong { color: #b42318; }
.portal-support-kpi__note { color: #607889; font-size: .75rem; }

.portal-support-config__layout {
  display: grid;
  grid-template-columns: minmax(21rem, .8fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.portal-support-config__layout--policy { grid-template-columns: minmax(25rem, 1fr) minmax(20rem, .8fr); }
.portal-support-config__form,
.portal-support-config__list { display: grid; gap: .75rem; min-width: 0; }
.portal-support-config__form h2,
.portal-support-config__list h2,
.portal-support-config__form p { margin: 0; }
.portal-support-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.portal-support-form p,
.portal-support-form > label { display: grid; gap: .28rem; min-width: 0; }
.portal-support-form p:has(textarea),
.portal-support-form__wide,
.portal-support-form__actions,
.portal-support-form .errorlist,
.portal-support-form .nonfield { grid-column: 1 / -1; }
.portal-support-form input:not([type="checkbox"]),
.portal-support-form select,
.portal-support-form textarea { width: 100%; min-width: 0; }
.portal-support-form .helptext { color: #607889; font-size: .75rem; }
.portal-support-form .errorlist { margin: 0; color: #b42318; }
.portal-support-config__cards { display: grid; gap: .55rem; }
.portal-support-config__card { display: grid; gap: .45rem; padding: .75rem; border: 1px solid #d6e5eb; border-radius: .75rem; background: #fafdfe; }
.portal-support-config__card.is-inactive { opacity: .68; }
.portal-support-config__card > div:first-child { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; }
.portal-support-config__card small { color: #607889; }
.portal-support-config__card p { margin: 0; color: #506a7a; font-size: .84rem; }

@media (max-width: 1100px) {
  .portal-support-operations__workspace,
  .portal-support-config__layout,
  .portal-support-config__layout--policy { grid-template-columns: 1fr; }
  .portal-support-operations__detail { position: static; max-height: none; }
  .portal-support-operations--tv .portal-support-operations__queue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-support-kpi__headline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-support-kpi__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-support-kpi__panel--trend { grid-column: 1 / -1; }
}

@media (max-width: 1100px) and (min-width: 721px) {
  .portal-tv-kiosk__toolbar { grid-template-columns: 1fr; }
  .portal-tv-kiosk__toolbar nav { justify-content: flex-start; }
  .portal-tv-shell .portal-support-operations--tv .portal-support-operations__queue {
    grid-template-rows: repeat(3, minmax(0, 1fr)) auto;
  }
}

@media (max-width: 720px) {
  .portal-tv-shell { width: 100%; height: auto; min-height: 100vh; overflow: visible; }
  .portal-tv-kiosk__toolbar,
  .portal-tv-kiosk__configuration { grid-template-columns: 1fr; }
  .portal-tv-kiosk__toolbar nav { justify-content: flex-start; }
  .portal-tv-kiosk__toolbar button,
  .portal-tv-kiosk__toolbar a { flex: 1 1 10rem; }
  .portal-support-operations__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-support-ticket { grid-template-columns: 1fr; }
  .portal-support-ticket__actions { flex-direction: row; border-top: 1px solid #e2edf1; border-left: 0; }
  .portal-support-form,
  .portal-support-operations--tv .portal-support-operations__queue { grid-template-columns: 1fr; }
  .portal-support-kpi__headline,
  .portal-support-kpi__grid { grid-template-columns: 1fr; }
  .portal-support-kpi__panel--trend { grid-column: auto; }
  .portal-support-kpi__chart { height: 10rem; gap: 1px; }
  .portal-support-kpi__axis { display: none; }
}

/* Onda 5: alternância Lista/Kanban com paginação independente por coluna. */
.portal-react-tickets__view-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.portal-react-tickets__view-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(72px, 1fr));
  align-self: stretch;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: var(--portal-surface);
}

.portal-react-tickets__view-toggle button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--portal-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.portal-react-tickets__view-toggle button.is-active {
  background: var(--portal-primary-dark);
  color: #fff;
  box-shadow: 0 5px 14px rgba(15, 76, 92, .18);
}

.portal-react-tickets__view-toggle button:focus-visible,
.portal-react-tickets__kanban-more:focus-visible,
.portal-react-tickets__card--kanban button:focus-visible {
  outline: 3px solid rgba(22, 135, 167, .32);
  outline-offset: 2px;
}

.portal-react-tickets__kanban {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.portal-react-tickets__kanban-lane {
  display: flex;
  flex: 0 0 clamp(274px, 24vw, 330px);
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-height: min(72vh, 820px);
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 13px;
  background: #f6fafc;
  scroll-snap-align: start;
}

.portal-react-tickets__kanban-lane > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.portal-react-tickets__kanban-lane > header div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.portal-react-tickets__kanban-lane > header span {
  overflow: hidden;
  color: var(--portal-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .045em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.portal-react-tickets__kanban-lane > header h2 {
  margin: 0;
  color: var(--portal-ink);
  font-size: 15px;
  line-height: 1.25;
}

.portal-react-tickets__kanban-lane > header > strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--portal-primary-dark);
  color: #fff;
  font-size: 11px;
}

.portal-react-tickets__kanban-guidance {
  min-height: 30px;
  margin: 0;
  color: var(--portal-muted);
  font-size: 10px;
  line-height: 1.4;
}

.portal-react-tickets__kanban-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.portal-react-tickets__kanban-metrics span {
  padding: 3px 6px;
  border-radius: 999px;
  background: #e7f2f6;
  color: var(--portal-primary-dark);
  font-size: 9px;
  font-weight: 800;
}

.portal-react-tickets__kanban-cards {
  display: grid;
  gap: 7px;
  min-height: 54px;
  overflow-y: auto;
  padding: 1px 3px 1px 1px;
  scrollbar-width: thin;
}

.portal-react-tickets--workspace .portal-react-tickets__card--kanban button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  min-height: 0;
  padding: 9px;
  border-radius: 10px;
}

.portal-react-tickets--workspace .portal-react-tickets__card--kanban .portal-react-tickets__card-top {
  align-items: center;
  flex-direction: row;
}

.portal-react-tickets--workspace .portal-react-tickets__card--kanban .portal-react-tickets__card-summary,
.portal-react-tickets--workspace .portal-react-tickets__card--kanban .portal-react-tickets__card-badges,
.portal-react-tickets--workspace .portal-react-tickets__card--kanban dl {
  grid-column: auto;
}

.portal-react-tickets--workspace .portal-react-tickets__card--kanban .portal-react-tickets__card-summary > p:not(.portal-react-tickets__card-meta) {
  -webkit-line-clamp: 2;
}

.portal-react-tickets--workspace .portal-react-tickets__card--kanban dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-react-tickets__kanban-empty,
.portal-react-tickets__kanban-error,
.portal-react-tickets__kanban-loading {
  margin: 0;
  padding: 10px;
  border-radius: 9px;
  color: var(--portal-muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.portal-react-tickets__kanban-error {
  background: #fff0ed;
  color: #9b1c1c;
}

.portal-react-tickets__kanban-more {
  width: 100%;
  min-height: 34px;
  margin-top: auto;
  font-size: 11px;
}

@media (max-width: 900px) {
  .portal-react-tickets__view-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-react-tickets__view-toggle {
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .portal-react-tickets__view-toggle {
    width: 100%;
    justify-self: stretch;
  }

  .portal-react-tickets__kanban-lane {
    flex-basis: min(86vw, 320px);
    max-height: 68vh;
  }
}
