:root {
  --portal-bg: #eef1f5;
  --portal-surface: #ffffff;
  --portal-sidebar: #0a1220;
  --portal-sidebar-text: #7d8ba0;
  --portal-sidebar-active: #ffffff;
  --portal-sidebar-hover: #141d2e;
  --portal-accent: #2f5bea;
  --portal-accent-hover: #2449c9;
  --portal-topbar: #ffffff;
  --portal-border: #d3dae3;
  --portal-text: #142033;
  --portal-muted: #5a6a7d;
  --portal-danger: #9b1c1c;
  --portal-radius: 4px;
  --portal-shadow: none;
  --portal-font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --portal-font-display: "Syne", "Manrope", sans-serif;
  --portal-sidebar-width: 248px;
  --portal-sidebar-expanded: 248px;
  --portal-topbar-height: 58px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  height: 100%;
}

body.portal-body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  font-family: var(--portal-font);
  color: var(--portal-text);
  background: var(--portal-bg);
  line-height: 1.5;
}

a {
  color: var(--portal-accent);
  text-decoration: none;
}

a:hover {
  color: var(--portal-accent-hover);
  text-decoration: underline;
}

.portal-shell {
  display: grid;
  grid-template-columns: var(--portal-sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--portal-topbar-height) minmax(0, 1fr);
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.portal-sidebar {
  grid-column: 1;
  grid-row: 1 / -1;
  position: relative;
  width: auto;
  min-width: 0;
  background: var(--portal-sidebar);
  padding: 0 0.55rem 1.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  z-index: 30;
}

.portal-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  height: var(--portal-topbar-height);
  margin: 0 0 0.45rem;
  padding: 0 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.portal-sidebar-brand:hover {
  text-decoration: none;
}

.portal-sidebar-brand__mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 auto;
}

.portal-sidebar-brand .portal-nav-text {
  font-family: var(--portal-font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-sidebar-brand .portal-lockup__spi {
  color: #fff;
}

.portal-topbar {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem 0 1.65rem;
  background: var(--portal-topbar);
  border-bottom: 1px solid #e6ebf1;
  box-shadow: none;
  z-index: 20;
}

.portal-topbar-start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.portal-brand {
  font-family: var(--portal-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--portal-text);
  letter-spacing: 0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  flex: 0 0 auto;
  text-decoration: none;
}

.portal-lockup:hover {
  text-decoration: none;
}

.portal-lockup__word {
  font-family: var(--portal-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.portal-lockup__spi { color: #0c1526; }
.portal-lockup__lnet { color: #007bff; }

.portal-lockup__portal {
  font-family: var(--portal-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #007bff;
  line-height: 1;
  text-transform: uppercase;
}

.portal-topbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.portal-branch-chip {
  display: inline-flex;
  align-items: center;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--portal-muted);
  background: #f7f9fb;
}

.branch-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.branch-selector-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--portal-muted);
}

.branch-selector-control {
  min-width: 180px;
  max-width: 260px;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  background: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--portal-text);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.branch-selector-control:hover {
  border-color: #c5d3e0;
}

.branch-selector-control:focus {
  outline: none;
  border-color: #2f5bea;
  box-shadow: 0 0 0 3px rgba(47, 91, 234, 0.12);
}

.portal-logout-form {
  margin: 0;
}

.btn-block {
  width: 100%;
}

.portal-brand:hover {
  text-decoration: none;
  color: var(--portal-text);
}

.portal-topbar-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.portal-tenant {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  line-height: 1.2;
  text-align: right;
}

.portal-tenant strong {
  font-family: var(--portal-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--portal-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

.portal-tenant span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--portal-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

.portal-user-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  color: #6b7a8d;
  flex: 0 0 auto;
}

.portal-user-name {
  color: var(--portal-text);
  font-weight: 500;
}

.portal-sidebar-branch {
  display: none;
  margin: 0 0 1rem;
  padding: 0 0.5rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-sidebar-branch .branch-selector {
  flex-direction: column;
  align-items: stretch;
}

.portal-sidebar-branch .branch-selector-label {
  color: #8a97a8;
}

.portal-sidebar-branch .branch-selector-control {
  max-width: none;
  width: 100%;
  background: #18263c;
  border-color: #2a3b55;
  color: #fff;
}

.portal-nav-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.portal-nav {
  position: relative;
  margin: 0;
  padding: 0.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.portal-nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  min-height: 2.55rem;
  padding: 0.35rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--portal-sidebar-text);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  font-family: var(--portal-font);
}

.portal-nav-link::-webkit-details-marker {
  display: none;
}

.portal-nav-link::marker {
  content: "";
}

.portal-nav-ico,
.portal-nav-chev {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  display: block;
}

.portal-nav-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  opacity: 1;
  width: auto;
  color: inherit;
}

.portal-nav-chev {
  opacity: 1;
  width: 1.05rem;
  height: 1.05rem;
  color: #6d7c90;
  transition: transform 0.18s ease;
}

.portal-nav-acc[open] > .portal-nav-link .portal-nav-chev {
  transform: rotate(90deg);
}

.portal-nav-acc[open] .portal-nav-sub {
  display: flex;
}

.portal-nav-sub {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.15rem 0 0.35rem;
}

.portal-nav-sub a {
  display: block;
  padding: 0.42rem 0.7rem 0.42rem 2.65rem;
  border-radius: 8px;
  color: #8a97a8;
  text-decoration: none;
  font-family: var(--portal-font);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
}

.portal-nav-link:hover,
.portal-nav-sub a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
}

.portal-nav-link.is-active,
.portal-nav-link.is-section,
.portal-nav-sub a.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}

.portal-main {
  grid-column: 2;
  grid-row: 2;
  padding: 1.15rem 1.35rem 1.5rem;
  overflow: auto;
  min-width: 0;
  min-height: 0;
}

.portal-page-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 650;
}

.portal-lead {
  margin: 0 0 1.5rem;
  color: var(--portal-muted);
  max-width: 42rem;
}

.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.portal-card {
  display: block;
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--portal-shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.portal-card:hover {
  border-color: var(--portal-accent);
  text-decoration: none;
  color: inherit;
}

.portal-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.portal-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--portal-muted);
}

.portal-empty {
  padding: 1.25rem;
  background: var(--portal-surface);
  border: 1px dashed var(--portal-border);
  border-radius: var(--portal-radius);
  color: var(--portal-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: var(--portal-radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--portal-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--portal-accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--portal-border);
  color: var(--portal-text);
}

.btn-ghost:hover {
  background: var(--portal-bg);
  color: var(--portal-text);
}

.btn-link {
  background: none;
  border: none;
  color: var(--portal-accent);
  padding: 0;
  font-weight: 600;
  cursor: pointer;
}

.portal-topbar .btn-link {
  color: var(--portal-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.auth-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--portal-font);
  color: var(--portal-text);
  background: #f3f5f8;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  background: #0b1422;
  color: #e8eef9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3.25rem);
}

.auth-visual__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(920px 480px at 18% 12%, rgba(47, 91, 234, 0.5), transparent 62%),
    radial-gradient(640px 420px at 92% 88%, rgba(77, 141, 255, 0.16), transparent 60%),
    linear-gradient(165deg, #0a1220 0%, #121c30 52%, #0c1626 100%);
}

.auth-visual__curve {
  position: absolute;
  right: -18%;
  bottom: -22%;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(77, 141, 255, 0.14), transparent 58%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: auth-curve 16s ease-in-out infinite;
}

.auth-visual__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
  animation: auth-orb 14s ease-in-out infinite;
}

.auth-visual__orb--a {
  width: 180px;
  height: 180px;
  top: 10%;
  right: 10%;
  background: radial-gradient(circle, rgba(77, 141, 255, 0.28), transparent 70%);
}

.auth-visual__orb--b {
  width: 260px;
  height: 260px;
  left: -60px;
  bottom: 6%;
  background: radial-gradient(circle, rgba(47, 91, 234, 0.45), transparent 72%);
  animation-delay: -4s;
  animation-duration: 18s;
}

.auth-visual__frame {
  position: absolute;
  top: 12%;
  right: 8%;
  width: min(42%, 260px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(77, 141, 255, 0.08), transparent 55%),
    linear-gradient(320deg, rgba(255, 255, 255, 0.04), transparent 50%);
  transform: rotate(8deg);
  animation: auth-frame 14s ease-in-out infinite;
  pointer-events: none;
}

.auth-visual__frame::before,
.auth-visual__frame::after {
  content: "";
  position: absolute;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-visual__frame::before {
  inset: 18%;
}

.auth-visual__frame::after {
  inset: 34%;
  background: rgba(77, 141, 255, 0.12);
}

.auth-visual__copy,
.auth-visual__stage {
  position: relative;
  z-index: 2;
}

.auth-visual__copy {
  position: absolute;
  top: 40%;
  left: clamp(3.5rem, 7.5vw, 5.5rem);
  right: clamp(2rem, 4vw, 3.25rem);
  transform: translateY(-50%);
  z-index: 3;
  margin: 0;
  padding: 0;
}

.auth-brand-name {
  margin: 0 0 0.85rem;
  font-family: var(--portal-font-display);
  font-size: clamp(2.75rem, 4.8vw, 3.85rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1;
}

.auth-brand-name .auth-wordmark__spil {
  color: #168af4;
}

.auth-brand-name .auth-wordmark__net {
  color: #d71920;
}

.auth-visual__title {
  margin: 0;
  padding-left: 0.12em;
  font-family: var(--portal-font);
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(183, 201, 220, 0.72);
}

.auth-visual__text {
  margin: 0;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #9aa8ba;
  font-weight: 500;
}

.auth-visual__stage {
  position: relative;
  height: min(44vh, 340px);
  margin-top: auto;
}

.auth-float {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.auth-float--a {
  left: 4%;
  bottom: 12px;
  width: min(64%, 360px);
  height: 198px;
  padding: 1.1rem 1.15rem;
  animation: auth-float-a 7.5s ease-in-out infinite;
}

.auth-float--b {
  right: 8%;
  top: 4%;
  width: 148px;
  height: 158px;
  padding: 1rem;
  animation: auth-float-b 6.8s ease-in-out infinite;
}

.auth-float--c {
  right: 12%;
  bottom: 28px;
  width: 176px;
  height: 102px;
  padding: 1rem;
  animation: auth-float-c 8.2s ease-in-out infinite;
}

.auth-float__top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.auth-float__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4d8dff;
  box-shadow: 0 0 0 6px rgba(77, 141, 255, 0.15);
}

.auth-float__pill {
  width: 72px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.auth-float__wave {
  height: 84px;
  margin-bottom: 0.85rem;
}

.auth-float__wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-float__path {
  fill: none;
  stroke: #4d8dff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: auth-draw 4.5s ease-in-out infinite;
}

.auth-float__meta {
  display: flex;
  gap: 0.5rem;
}

.auth-float__meta span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.auth-float__meta span:first-child { width: 42%; }
.auth-float__meta span:last-child { width: 28%; }

.auth-float__ringwrap {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0.2rem auto 0.8rem;
}

.auth-float__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(77, 141, 255, 0.18);
  border-top-color: #4d8dff;
  border-right-color: rgba(142, 182, 212, 0.7);
  animation: auth-spin 3.4s linear infinite;
}

.auth-float__ringcore {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: rgba(77, 141, 255, 0.22);
}

.auth-float__mini {
  display: grid;
  gap: 0.4rem;
}

.auth-float__mini span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.auth-float__mini span:last-child { width: 62%; }

.auth-float__chip {
  width: 46px;
  height: 18px;
  border-radius: 999px;
  background: rgba(77, 141, 255, 0.35);
  margin-bottom: 0.7rem;
}

.auth-float__line {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 0.5rem;
}

.auth-float__line--short { width: 58%; }

.auth-logo {
  margin: 0 0 1.35rem;
  font-family: var(--portal-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
}

.auth-logo .auth-wordmark__spil {
  color: #168af4;
}

.auth-logo .auth-wordmark__net {
  color: #d71920;
}

.auth-title {
  margin: 0 0 0.4rem;
  font-family: var(--portal-font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #142033;
}

.auth-sub {
  margin: 0 0 1.7rem;
  color: #7a8799;
  font-size: 0.95rem;
  font-weight: 500;
}

@keyframes auth-orb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(16px, -12px, 0) scale(1.06); }
}

@keyframes auth-curve {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-12px, -10px, 0) scale(1.04); }
}

@keyframes auth-frame {
  0%, 100% { transform: rotate(8deg) translate3d(0, 0, 0); }
  50% { transform: rotate(10deg) translate3d(-8px, -10px, 0); }
}

@keyframes auth-float-a {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes auth-float-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 12px, 0); }
}

@keyframes auth-float-c {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

@keyframes auth-draw {
  0% { stroke-dashoffset: 420; opacity: 0.55; }
  40%, 60% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -420; opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-visual__orb,
  .auth-visual__curve,
  .auth-visual__frame,
  .auth-float,
  .auth-float__ring,
  .auth-float__path {
    animation: none !important;
  }

  .auth-float__path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: #fff;
}

.auth-main__inner {
  width: 100%;
  max-width: 22.5rem;
}

.auth-form .form-group {
  margin-bottom: 0.85rem;
}

.auth-input {
  min-height: 2.95rem;
  border-radius: 12px;
  border: 1px solid #d5dce8;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding-left: 0.95rem;
  padding-right: 0.95rem;
}

.auth-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.16);
  outline: none;
}

.auth-input::placeholder {
  color: #9aa5b5;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.auth-pass {
  position: relative;
}

.auth-pass .auth-input {
  padding-right: 3rem;
}

.auth-pass__btn {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b778a;
  cursor: pointer;
  padding: 0;
}

.auth-pass__icon {
  display: block;
}

.auth-pass__icon--hide {
  display: none;
}

.auth-pass__btn.is-visible .auth-pass__icon--show {
  display: none;
}

.auth-pass__btn.is-visible .auth-pass__icon--hide {
  display: block;
}

.auth-pass__btn:hover,
.auth-pass__btn:focus-visible {
  color: #007bff;
  outline: none;
}

.auth-meta {
  display: flex;
  align-items: center;
  margin: 0.35rem 0 1.1rem;
}

.auth-remember {
  margin: 0;
  gap: 0.45rem;
  color: #5a6a7d;
  font-size: 0.88rem;
}

.btn.btn-primary.auth-btn {
  min-height: 2.95rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  background: #007bff;
  border-color: #007bff;
  color: #fff;
  box-shadow: none;
}

.btn.btn-primary.auth-btn:hover,
.btn.btn-primary.auth-btn:focus-visible {
  background: #0066d6;
  border-color: #0066d6;
  color: #fff;
  box-shadow: none;
}

.auth-foot {
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e6ebf2;
}

.auth-foot__lead {
  margin: 0 0 0.55rem;
  color: var(--portal-accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-foot__line {
  margin: 0.2rem 0;
  font-size: 0.88rem;
  color: #5a6a7d;
}

.auth-foot__line a {
  color: #5a6a7d;
  text-decoration: none;
  font-weight: 600;
}

.auth-foot__line a:hover {
  color: var(--portal-accent);
  text-decoration: underline;
}

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

/* AccessDenied / Logout fallback card */
.auth-card {
  width: 100%;
  max-width: 400px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--portal-border);
}

.auth-card h1 {
  margin: 0 0 0.25rem;
  font-family: var(--portal-font-display);
  font-size: 1.35rem;
}

.auth-card .auth-sub {
  margin: 0 0 1.25rem;
}

.auth-brand {
  margin: 0 0 1rem;
  font-family: var(--portal-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--portal-accent);
}

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

  .auth-visual {
    min-height: 300px;
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .auth-visual__copy {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    margin-bottom: 1rem;
  }

  .auth-visual__title {
    font-size: 0.85rem;
  }

  .auth-visual__frame {
    width: 120px;
    top: 10%;
    right: 6%;
  }

  .auth-visual__stage {
    height: 180px;
  }

  .auth-float--a {
    width: 58%;
    height: 140px;
  }

  .auth-float--b {
    width: 110px;
    height: 118px;
  }

  .auth-float--c {
    width: 130px;
    height: 84px;
  }

  .auth-main {
    padding: 1.5rem;
    align-items: flex-start;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  font: inherit;
  background: #fff;
}

.form-control:focus {
  outline: 2px solid rgba(13, 122, 140, 0.35);
  border-color: var(--portal-accent);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.validation-summary,
.field-validation-error,
.text-danger {
  color: var(--portal-danger);
  font-size: 0.875rem;
}

.validation-summary ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.coming-soon {
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 32rem;
}

.coming-soon h1 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.coming-soon p {
  margin: 0;
  color: var(--portal-muted);
}

.portal-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  padding: 0.35rem 0.6rem;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 900px) {
  .portal-shell {
    position: relative;
    grid-template-columns: 1fr;
    height: 100%;
  }

  .portal-topbar {
    grid-column: 1;
    padding-left: 1rem;
  }

  .portal-sidebar {
    display: none;
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .portal-shell.nav-open .portal-sidebar {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 88%);
    box-shadow: 16px 0 32px rgba(8, 16, 32, 0.35);
  }

  .portal-shell.nav-open .portal-sidebar-brand,
  .portal-shell.nav-open .portal-nav-link {
    justify-content: flex-start;
  }

  .portal-shell.nav-open .portal-nav-text,
  .portal-shell.nav-open .portal-nav-chev {
    opacity: 1;
    width: auto;
  }

  .portal-shell.nav-open .portal-nav-link.is-active .portal-nav-ico {
    box-shadow: none;
    padding: 0;
    margin: 0;
  }

  .portal-shell.nav-open .portal-nav-acc[open] .portal-nav-sub {
    display: flex;
  }

  .portal-main {
    grid-column: 1;
    padding: 1.15rem 1rem 2rem;
  }

  .portal-shell.nav-open .portal-main {
    display: none;
  }

  .portal-nav-toggle {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-card,
  .portal-sidebar,
  .portal-nav-chev {
    transition: none;
  }
}

.portal-page-header{display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:flex-start;margin-bottom:1.25rem}
.portal-page-header h1{margin:0;font-size:1.35rem}
.portal-page-header .muted{margin:.25rem 0 0;color:var(--portal-muted);font-size:.9rem}
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem;margin-bottom:1.25rem}
.kpi-card{background:var(--portal-surface);border:1px solid var(--portal-border);border-radius:var(--portal-radius);padding:.9rem 1rem;box-shadow:var(--portal-shadow)}
.kpi-card .label{font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;color:var(--portal-muted);font-weight:600}
.kpi-card .value{font-size:1.5rem;font-weight:700;margin-top:.35rem}
.portal-panel{background:var(--portal-surface);border:1px solid var(--portal-border);border-radius:var(--portal-radius);padding:1rem;margin-bottom:1rem}
.portal-panel h2{margin:0 0 .75rem;font-size:1rem}
.portal-list{list-style:none;margin:0;padding:0}
.portal-list li{display:flex;justify-content:space-between;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--portal-border);font-size:.9rem}
.portal-list li:last-child{border-bottom:none}
.portal-form .form-group{margin-bottom:.85rem}
.portal-form label{display:block;font-size:.85rem;font-weight:600;margin-bottom:.3rem}
.portal-form .form-control,.branch-picker .form-control,.filters .form-control{width:100%;padding:.5rem .65rem;border:1px solid var(--portal-border);border-radius:var(--portal-radius);font:inherit}
.portal-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.branch-picker{min-width:180px}
.branch-picker label{display:block;font-size:.75rem;font-weight:600;margin-bottom:.25rem;color:var(--portal-muted)}
.alert{padding:.65rem .85rem;border-radius:var(--portal-radius);margin-bottom:1rem;font-size:.9rem}
.alert-danger{background:#fef3f2;color:var(--portal-danger);border:1px solid #fecdca}
.alert-success{background:#ecfdf3;color:#067647;border:1px solid #abefc6}
.btn{display:inline-flex;align-items:center;padding:.45rem .8rem;border-radius:var(--portal-radius);border:1px solid transparent;font:inherit;font-weight:600;text-decoration:none;cursor:pointer}
.btn-primary{background:var(--portal-accent);color:#fff}
.btn-outline{background:transparent;border-color:var(--portal-border);color:var(--portal-text)}
.form-check{display:flex;align-items:center;gap:.45rem;margin:.75rem 0;font-size:.9rem}
@media (max-width:640px){.portal-page-header{flex-direction:column}.kpi-grid{grid-template-columns:1fr 1fr}}

.portal-subnav{display:flex;flex-wrap:wrap;gap:.35rem;margin:0 0 1rem;padding:0}
.portal-subnav a{padding:.35rem .7rem;border-radius:var(--portal-radius);border:1px solid var(--portal-border);color:var(--portal-muted);font-size:.85rem;font-weight:600;text-decoration:none}
.portal-subnav a.is-active,.portal-subnav a:hover{background:var(--portal-accent);border-color:var(--portal-accent);color:#fff;text-decoration:none}
.kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.75rem;margin-bottom:1rem}
.badge-danger{display:inline-block;padding:.15rem .45rem;border-radius:4px;background:#fef3f2;color:var(--portal-danger);font-size:.75rem;font-weight:700}
.form-error{color:var(--portal-danger);font-weight:600}
.form-success{color:#067647;font-weight:600}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem;margin-bottom:.75rem}
.portal-form label{display:block;margin-bottom:.75rem}
.checkbox{display:flex;align-items:center;gap:.5rem;font-weight:500}
.filters{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end;margin-bottom:1rem}
.filters label{font-size:.8rem;font-weight:600;color:var(--portal-muted)}
.pager{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.75rem}
.pager a{padding:.25rem .5rem;border:1px solid var(--portal-border);border-radius:4px;font-size:.85rem}

/* Faz 7A â€” corporate ops surfaces */
.ops-header{margin-bottom:1.25rem}
.ops-kicker{margin:0 0 .2rem;font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--portal-muted)}
.ops-header h1{margin:0;font-family:var(--portal-font-display);font-size:1.35rem;font-weight:700}
.ops-meta{margin:.35rem 0 0;color:var(--portal-muted);font-size:.875rem;display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}
.ops-dot{opacity:.5}
.ops-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:0;border:1px solid var(--portal-border);background:var(--portal-surface);margin-bottom:1rem}
.ops-kpi-item{padding:.85rem 1rem;border-right:1px solid var(--portal-border)}
.ops-kpi-item:last-child{border-right:none}
.ops-kpi-label{font-size:.68rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--portal-muted)}
.ops-kpi-value{margin-top:.35rem;font-size:1.35rem;font-weight:700;font-variant-numeric:tabular-nums}
.ops-kpi-value.is-alert,.ops-table .is-alert{color:var(--portal-danger)}
.ops-panel{background:var(--portal-surface);border:1px solid var(--portal-border);padding:1rem 1.1rem;margin-bottom:1rem}
.ops-panel h2{margin:0;font-size:.95rem;font-weight:700}
.ops-panel-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem}
.ops-panel-head h2{margin:0}
.ops-link{font-size:.8rem;font-weight:600}
.ops-empty{margin:.5rem 0;color:var(--portal-muted);font-size:.9rem}
.ops-note{margin:.25rem 0 0;font-size:.8rem}
.ops-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.ops-table{width:100%;border-collapse:collapse;font-size:.875rem}
.ops-table th{text-align:left;font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;color:var(--portal-muted);font-weight:700;padding:.4rem 0;border-bottom:1px solid var(--portal-border)}
.ops-table td{padding:.55rem 0;border-bottom:1px solid #e8edf3;vertical-align:top}
.ops-table tr:last-child td{border-bottom:none}
.ops-table .num{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.ops-table tr.is-current td{background:#f3f7fb}
.portal-page-header h1{font-family:var(--portal-font);font-size:1.2rem;font-weight:700}
.portal-panel{box-shadow:none;border-radius:var(--portal-radius)}
.kpi-card{box-shadow:none;border-radius:var(--portal-radius)}

@media (max-width:900px){
  .ops-grid{grid-template-columns:1fr}
  .portal-topbar-center{display:none}
  .portal-sidebar-branch{display:block}
  .ops-kpi{grid-template-columns:1fr 1fr}
  .ops-kpi-item{border-right:none;border-bottom:1px solid var(--portal-border)}
}
@media (max-width:640px){
  .portal-branch-chip{display:none}
  .ops-kpi{grid-template-columns:1fr 1fr}
  .portal-lockup__portal{display:none}
  .portal-tenant span{display:none}
}

.dash {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}

.dash-head {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.dash-head h1 {
  margin: 0;
  font-family: var(--portal-font-display);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--portal-text);
}

.dash-sub {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  color: var(--portal-muted);
  font-size: 0.88rem;
}

.dash-dot { opacity: 0.45; }

.dash-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}

.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 220px;
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  background:
    radial-gradient(520px 220px at 88% 10%, rgba(0, 123, 255, 0.22), transparent 62%),
    linear-gradient(165deg, #0f1b2d 0%, #15263d 100%);
  color: #e8eef9;
}

.dash-hero-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.dash-hero-mark {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.dash-hero-mark img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.dash-hero-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(183, 201, 220, 0.72);
}

.dash-hero h2 {
  margin: 0;
  font-family: var(--portal-font-display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.dash-hero-meta {
  margin: 0.45rem 0 1.15rem;
  color: #9aa8ba;
  font-size: 0.92rem;
}

.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.dash-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.4rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.dash-hero-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.dash-hero-btn--primary {
  background: #007bff;
  border-color: #007bff;
}

.dash-hero-btn--primary:hover {
  background: #0066d6;
  border-color: #0066d6;
}

.dash-shortcuts {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  padding: 1rem 0.75rem 0.75rem;
}

.dash-shortcuts h2 {
  margin: 0 0.5rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--portal-muted);
}

.dash-shortcuts a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: var(--portal-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.dash-shortcuts a::after {
  content: "â†’";
  margin-left: auto;
  color: #9aa5b5;
  font-weight: 500;
}

.dash-shortcuts a:hover {
  background: #f4f7fb;
  color: var(--portal-text);
  text-decoration: none;
}

.dash-ico {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  background: #e8f1fb;
  color: #2f5bea;
  font-size: 0.72rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.dash-kpi {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  min-width: 0;
}

.dash-kpi span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--portal-muted);
}

.dash-kpi strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.dash-kpi.is-alert strong {
  color: var(--portal-danger);
}

.dash-mid,
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  align-items: stretch;
}

.dash-grid {
  grid-template-columns: 1fr 1fr;
}

.dash-panel {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  padding: 1.05rem 1.15rem 1.1rem;
  min-width: 0;
  min-height: 180px;
}

.dash-panel h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.dash-panel-head a {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.dash-empty {
  margin: 0.4rem 0;
  color: var(--portal-muted);
  font-size: 0.92rem;
}

.dash-note {
  margin: 0.2rem 0 0;
  color: #8a97a8;
  font-size: 0.8rem;
}

.dash-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-tiles li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  background: #f8fafc;
}

.dash-tiles strong {
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-tiles span {
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dash-tiles em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--portal-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.dash-table th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--portal-muted);
  font-weight: 700;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--portal-border);
}

.dash-table td {
  padding: 0.58rem 0;
  border-bottom: 1px solid #e8edf3;
  vertical-align: top;
}

.dash-table tr:last-child td { border-bottom: none; }
.dash-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.dash-table .is-alert { color: var(--portal-danger); }

.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e8edf3;
}

.dash-list li:last-child { border-bottom: none; }

.dash-list li.is-current {
  background: #f4f8fc;
  margin: 0 -0.65rem;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  border-radius: 10px;
  border-bottom-color: transparent;
}

.dash-list strong { display: block; font-size: 0.92rem; }
.dash-list .muted { font-size: 0.78rem; }

.dash-pill {
  flex: 0 0 auto;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--portal-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.dash-pill.is-on {
  background: #e8f1fb;
  color: #2f5bea;
}

@media (max-width: 1200px) {
  .dash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dash-hero-row,
  .dash-mid,
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .dash-hero {
    min-height: 0;
  }

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

@media (max-width: 640px) {
  .dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-hero-mark {
    width: 72px;
    height: 72px;
  }

  .dash-hero-mark img {
    width: 48px;
    height: 48px;
  }

  .dash-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-shortcuts a,
  .dash-hero-btn {
    transition: none;
  }
}

.portal-context {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
  max-width: 320px;
}

.portal-context > strong {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--portal-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.portal-topbar-center .branch-selector-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.portal-topbar-center .branch-selector {
  gap: 0;
}

.portal-topbar-center .branch-selector-control {
  min-width: 160px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.portal-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--portal-muted);
}

.portal-crumb-sep { opacity: 0.45; }

.portal-feature {
  max-width: 40rem;
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  padding: 1.25rem 1.35rem;
}

.portal-feature-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portal-muted);
}

.portal-feature h1 {
  margin: 0 0 0.65rem;
  font-family: var(--portal-font);
  font-size: 1.2rem;
  font-weight: 700;
}

.portal-feature-lead {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.portal-feature-detail,
.portal-feature-contact {
  margin: 0 0 0.45rem;
  color: var(--portal-muted);
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
}

.ops-kpi-value.is-empty {
  color: var(--portal-muted);
  font-weight: 600;
}

.portal-mobile-ops {
  display: none;
}

.ops-screen .form-control,
.ops-screen select,
.ops-screen input {
  min-height: 2.6rem;
}

@media (max-width: 900px) {
  .portal-main {
    padding-bottom: 4.75rem;
  }

  .portal-mobile-ops {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    margin: 0;
    background: #fff;
    border-top: 1px solid var(--portal-border);
    padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom));
  }

  .portal-mobile-ops a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--portal-text);
    text-decoration: none;
  }

  .ops-screen label {
    font-size: 0.9rem;
  }
}

.portal-nav-text {
  font-size: 0.82rem;
}

.portal-nav-sub a {
  font-size: 0.78rem;
  padding: 0.38rem 0.55rem 0.38rem 2.35rem;
}


