/* Portal IBG - layout shell premium */
:root {
  --ibg-950: #031326;
  --ibg-850: #062b55;
  --ibg-750: #084b8f;
  --ibg-glow: rgba(36, 125, 213, .20);
  --surface-1: #ffffff;
  --surface-glass: rgba(255,255,255,.82);
  --ring: 0 0 0 4px rgba(26,119,201,.13);
}

body {
  background:
    linear-gradient(180deg, #f6f8fc 0%, #eef3f9 45%, #f8fafc 100%);
}

.app-shell {
  background:
    radial-gradient(circle at 18% 10%, rgba(26,119,201,.10), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(9,63,118,.94), rgba(3,19,38,.98)),
    linear-gradient(135deg, var(--ibg-950), var(--ibg-850));
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 18px 0 50px rgba(3,19,38,.18);
}

.sidebar::before {
  background:
    radial-gradient(circle at 20% 0%, rgba(77,163,232,.26), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 88px;
}

.sidebar-brand .brand-logo { display: none; }

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.03)),
    linear-gradient(135deg, #0d5fa6, #4da3e8);
  box-shadow: 0 16px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.28);
}

.sidebar-brand .brand-name {
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -.2px;
}

.sidebar-brand .brand-sub {
  font-size: 10px;
  letter-spacing: 1.2px;
}

.sidebar-nav a {
  min-height: 42px;
  border: 1px solid transparent;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.07);
}

.sidebar-nav a.active {
  background:
    linear-gradient(135deg, rgba(77,163,232,.30), rgba(26,119,201,.16));
  border-color: rgba(148,198,242,.22);
}

.sidebar-nav a.active::after {
  content: "";
  position: absolute;
  inset: 8px 10px auto auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7dd3fc;
  box-shadow: 0 0 0 4px rgba(125,211,252,.12);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  transition: .18s ease;
}

.sidebar-logout i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.sidebar-logout:hover {
  background: rgba(255,255,255,.09);
  color: #fff;
}

.content {
  background: transparent;
}

.topbar {
  min-height: 72px;
  height: auto;
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226,232,242,.78);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .9px;
  color: var(--ibg-600);
  text-transform: uppercase;
}

.topbar-title {
  font-size: 18px;
  letter-spacing: -.25px;
}

.topbar-right {
  gap: 10px;
}

.topbar-user {
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.7);
}

.topbar-user .user-avatar {
  width: 30px;
  height: 30px;
}

.topbar-user-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.topbar-user-text span {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .4px;
}

.topbar-user-text strong {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-primary);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ibg-800);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3,19,38,.44);
  backdrop-filter: blur(6px);
  z-index: 90;
}

.page-body {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.page-title h2 {
  font-size: 26px;
  letter-spacing: -.55px;
}

.card-soft,
.filter-card,
.kpi,
.boleto-card {
  border: 1px solid rgba(226,232,242,.92);
  box-shadow: 0 16px 42px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.04);
}

.card-soft,
.filter-card {
  background: rgba(255,255,255,.94);
}

.card-soft .card-head {
  min-height: 36px;
}

.card-soft .card-head h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.kpi {
  border-radius: 20px;
}

.kpi-icon {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.btn-ibg,
.btn-outline-ibg,
.btn-ghost {
  border-radius: 12px;
}

.btn-ibg {
  box-shadow: 0 12px 26px rgba(13,95,166,.18);
}

.btn-ghost {
  background: rgba(255,255,255,.68);
}

.empresa-select {
  min-height: 38px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15,23,42,.04);
}

.alert {
  box-shadow: var(--shadow-sm);
}

.copied-toast {
  border: 1px solid rgba(255,255,255,.08);
}

.email-modal-overlay {
  background: rgba(3,19,38,.54);
  backdrop-filter: blur(8px);
}

.email-modal-box {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 30px 90px rgba(3,19,38,.30);
}
