:root {
  --brand-primary: #1fb5c6;
  --brand-secondary: #1e6fd6;
  --brand-tertiary: #6d8bff;
  --brand-dark: #0a2c3f;
  --text-primary: #0b1724;
  --text-muted: #5c6b7a;
  --surface: #ffffff;
  --surface-alt: #eaf4ff;
  --border-soft: #d9e2ec;
  --shadow-soft: 0 18px 50px rgba(10, 35, 58, 0.14);
  --radius-lg: 20px;
  --sidebar-blur: rgba(6, 18, 32, 0.92);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body.app-body {
  font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(38, 201, 218, 0.18), transparent 32%),
    radial-gradient(circle at 82% 6%, rgba(30, 111, 214, 0.24), transparent 36%),
    linear-gradient(135deg, #f4fbff 0%, #ebf4ff 52%, #f6fbff 100%);
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
}
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-navbar {
  background: linear-gradient(120deg, rgba(10, 44, 63, 0.95), rgba(16, 71, 107, 0.92));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.app-navbar .navbar-brand {
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #ffffff;
}

.brand-stack {
  padding: 0.35rem 0.55rem;
  border-radius: 14px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 24, 44, 0.24);
}

.brand-stack:hover {
  transform: translateY(-1px) scale(1.01);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.brand-icon-wrap {
  background: none;
  padding: 2px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(10, 58, 88, 0.28);
}

.brand-icon {
  border-radius: 14px;
  width: 72px;
  height: 72px;
  object-fit: cover;
  box-shadow: none;
}

.brand-title-wrap .brand-title {
  font-weight: 700;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, #ffffff, #c7e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-title-wrap .brand-sub {
  font-size: 0.88rem;
  color: #c3cee6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.app-navbar .badge-company {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.app-navbar .navbar-nav {
  gap: 0.35rem;
  flex-wrap: wrap;
}
.app-navbar .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.app-navbar .nav-link i {
  font-size: 1rem;
  color: #adb5bd;
}
.app-navbar .nav-link.active {
  background: rgba(0, 172, 255, 0.12);
  color: #00c2ff !important;
}
.app-navbar .nav-link.active i {
  color: #00c2ff;
}
.app-navbar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.app-navbar .brand-pill {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}
.app-navbar .user-chip {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.35rem 0.75rem;
}
.app-navbar .cta-btn {
  border-radius: 14px;
  padding: 0.6rem 1rem;
}
@media (max-width: 1200px) {
  .app-navbar .nav-link {
    padding: 0.45rem 0.55rem;
    gap: 4px;
    font-size: 0.95rem;
  }
  .app-navbar .nav-link i {
    font-size: 0.95rem;
  }
}
.app-main {
  flex: 1;
  padding-top: 2.25rem;
  padding-bottom: 2.5rem;
}

.app-main.with-sidebar {
  margin-left: 270px;
}

.app-main:not(.with-sidebar) {
  flex: 0 0 auto;
  padding-top: 1.5rem;
  padding-bottom: 0.75rem;
}

.app-main:not(.with-sidebar) .row.justify-content-center {
  padding-top: 2rem;
  padding-bottom: 1.25rem;
}

.app-main:not(.with-sidebar) ~ .app-footer {
  padding: 1.2rem 0 1.35rem;
}

.app-top-tabs-wrap {
  margin-top: -0.35rem;
  margin-bottom: 1.1rem;
}

.app-top-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.7);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(12, 31, 59, 0.12);
  padding: 0.75rem;
  backdrop-filter: blur(8px);
}

.tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(12, 31, 59, 0.08);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border 0.2s ease;
}

.tab-pill i {
  color: var(--brand-primary);
  font-size: 1rem;
}

.tab-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(12, 31, 59, 0.12);
  border-color: rgba(12, 31, 59, 0.2);
}

.tab-pill.active {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-secondary));
  color: #f8fafc;
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(31, 111, 235, 0.28);
}

.tab-pill.active i {
  color: #ffffff;
}

.app-shell.sidebar-collapsed .app-main.with-sidebar {
  margin-left: 92px;
}

.app-shell.sidebar-collapsed .app-sidebar {
  width: 92px;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.app-shell.sidebar-collapsed .sidebar-nav .nav-link span {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-nav .section-title {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-nav .nav-link {
  justify-content: center;
  padding: 0.6rem 0.45rem;
}

.app-shell.sidebar-collapsed .nav-section {
  padding: 0;
  margin-bottom: 0.4rem;
}

.app-shell.sidebar-collapsed .sidebar-nav ul {
  gap: 0.35rem;
}

.app-shell.sidebar-collapsed .sidebar-header {
  justify-content: center;
}

.app-shell.sidebar-collapsed .sidebar-header .brand-title-wrap {
  display: none;
}

.app-shell.sidebar-collapsed .brand-icon-wrap {
  box-shadow: none;
}

.sidebar-toggle {
  border-radius: 12px;
  padding: 0.35rem 0.55rem;
  position: absolute;
  right: -18px;
  top: 10px;
  z-index: 5;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.22), rgba(34, 211, 238, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
}

.app-shell.sidebar-collapsed .sidebar-toggle i {
  transform: rotate(180deg);
}

.app-sidebar {
  width: 270px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(11, 19, 44, 0.96), rgba(7, 12, 26, 0.94));
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem 1.35rem;
  display: flex;
  flex-direction: column;
  z-index: 1030;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 12px 0 40px rgba(9, 12, 26, 0.38);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-nav ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nav-section {
  padding: 0.35rem 0.25rem 0.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-nav .section-title {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.68);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0 0.35rem 0.35rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-nav .nav-link i {
  font-size: 1.05rem;
  color: #9fb4d9;
}

.sidebar-nav .nav-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.01);
  border-color: transparent;
  pointer-events: none;
}

.sidebar-nav .nav-link.disabled i {
  color: rgba(159, 180, 217, 0.55);
}

.sidebar-nav .nav-link.disabled:hover {
  background: rgba(255, 255, 255, 0.01);
  color: rgba(255, 255, 255, 0.65);
  transform: none;
  box-shadow: none;
}

.sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.06);
}

.sidebar-nav .nav-link.active {
  background: linear-gradient(120deg, rgba(31, 111, 235, 0.32), rgba(34, 211, 238, 0.28));
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(31, 111, 235, 0.28);
}

.sidebar-nav .nav-link.active i {
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-quota {
  margin-top: 0.75rem;
  padding: 0.6rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-quota .quota-progress {
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.sidebar-quota .progress-bar {
  border-radius: 999px;
}

.sidebar-footer .compact-actions {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

.app-shell.sidebar-collapsed .sidebar-footer .user-chip,
.app-shell.sidebar-collapsed .sidebar-footer .btn {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-footer .compact-actions {
  display: flex;
}

.app-shell.sidebar-collapsed .sidebar-nav .nav-link i {
  margin: 0 auto;
}

.app-shell.sidebar-collapsed .brand-stack {
  padding: 0.3rem;
  justify-content: center;
  width: 100%;
}

.app-shell.sidebar-collapsed .brand-icon-wrap {
  box-shadow: none;
}

.app-shell.sidebar-collapsed .brand-title-wrap,
.app-shell.sidebar-collapsed .brand-title-wrap .brand-title,
.app-shell.sidebar-collapsed .brand-title-wrap .brand-sub,
.app-shell.sidebar-collapsed .user-chip,
.app-shell.sidebar-collapsed .badge-company {
  display: none !important;
}

.sidebar-footer .user-chip {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.badge-company {
  background: linear-gradient(120deg, rgba(31, 111, 235, 0.25), rgba(34, 211, 238, 0.22));
  color: #e2e8f0;
}

@media (max-width: 992px) {
  .app-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 1rem 0.9rem 0.85rem;
  }

  .app-main.with-sidebar {
    margin-left: 0;
    padding-top: 1.75rem;
  }

  .app-shell.sidebar-collapsed .app-main.with-sidebar {
    margin-left: 0;
  }

  .app-shell.sidebar-collapsed .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 92px;
    padding: 0.85rem 0.6rem;
    z-index: 1040;
    overflow-y: auto;
  }

  .app-shell.sidebar-collapsed .app-main.with-sidebar {
    margin-left: 92px;
  }

  .sidebar-header {
    margin-bottom: 0.35rem;
  }

  .brand-stack {
    padding: 0.2rem 0.35rem;
  }

  .brand-icon {
    width: 52px;
    height: 52px;
  }

  .brand-title-wrap .brand-title {
    font-size: 1rem;
  }

  .brand-title-wrap .brand-sub {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .sidebar-toggle {
    top: 6px;
  }

  .sidebar-nav {
    flex-direction: column;
    gap: 0.55rem;
  }

  .nav-section {
    padding: 0.35rem 0.35rem 0.3rem;
  }

  .sidebar-nav .section-title {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 0 0.2rem 0.25rem;
  }

  .sidebar-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .sidebar-nav .nav-link {
    width: auto;
    flex: 1 1 150px;
    padding: 0.45rem 0.55rem;
    font-size: 0.88rem;
    gap: 6px;
  }

  .sidebar-nav .nav-link i {
    font-size: 0.95rem;
  }

  .app-top-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0.55rem;
    padding: 0.6rem;
  }

  .tab-pill {
    flex: 0 0 auto;
  }

  .sidebar-footer {
    margin-top: 0;
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding-top: 0.4rem;
  }

  .sidebar-footer .btn {
    white-space: nowrap;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }

  .sidebar-footer .user-chip {
    padding: 0.35rem 0.55rem;
    font-size: 0.85rem;
  }
}
.flash-stack .alert {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-soft);
}
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--brand-primary);
  font-weight: 600;
}
.page-header h1 {
  margin: 0.35rem 0 0;
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--surface);
}
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
}
.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f6f8ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.stat-card.metric-contrast {
  background: radial-gradient(circle at 10% 20%, rgba(34, 211, 238, 0.18), transparent 52%),
    radial-gradient(circle at 78% 0%, rgba(31, 111, 235, 0.18), transparent 46%),
    #0b132c;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(10, 23, 51, 0.3);
}

.stat-card.metric-contrast .label {
  color: #c7d9ff;
}

.stat-card.metric-contrast .value {
  color: #ffffff;
}

.stat-card.metric-contrast .hint {
  color: #cbdffc;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card .metric-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.14), rgba(34, 211, 238, 0.18));
  color: #1f6feb;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.metric-card.metric-contrast .metric-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.metric-card .metric-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.panel-gradient {
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.12), rgba(34, 211, 238, 0.18));
  border: 1px solid rgba(31, 111, 235, 0.18);
  border-radius: var(--radius-lg);
}

.tilt-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tilt-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.fade-up {
  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.panel-gradient {
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.12), rgba(34, 211, 238, 0.18));
  border: 1px solid rgba(31, 111, 235, 0.18);
  border-radius: var(--radius-lg);
}
.stat-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.stat-card .value {
  font-size: 2rem;
  font-weight: 600;
  margin: 0.4rem 0 0;
}
.stat-card .hint {
  font-size: 0.9rem;
  color: var(--brand-primary);
}
.table-modern {
  border-spacing: 0;
}
.table-modern thead tr {
  background: #f1f4ff;
}
.table-modern thead th {
  border: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0.9rem 0.75rem;
}
.table-modern tbody td {
  vertical-align: middle;
  border-color: var(--surface-alt);
  padding: 1rem 0.75rem;
}
.table-agentes thead th,
.table-agentes tbody td {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.table-agentes tbody td.agent-username-cell .agent-username {
  white-space: nowrap;
}
.table-agentes tbody td:nth-child(2) code {
  word-break: break-all;
}
.table-agentes th.table-agentes-actions-header {
  text-align: right;
  padding-right: 1.5rem;
}
.table-agentes td.table-agentes-actions-cell {
  padding-right: 1.5rem;
}
.table-modern tbody tr:hover {
  background: rgba(31, 111, 235, 0.05);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.status-pill.success {
  background: rgba(16, 185, 129, 0.15);
  color: #0f8a62;
}
.status-pill.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}
.status-pill.neutral {
  background: rgba(34, 211, 238, 0.18);
  color: #0f7490;
}
.status-pill.warning {
  background: rgba(234, 179, 8, 0.2);
  color: #92400e;
}
.btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
}
.btn-primary {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-secondary));
  border: none;
}
.btn-primary:hover {
  opacity: 0.96;
  box-shadow: 0 12px 24px rgba(31, 111, 235, 0.18);
}
.btn-outline-primary {
  border: 1px solid rgba(31, 111, 235, 0.35);
  color: var(--brand-primary);
}
.btn-outline-primary:hover {
  background: rgba(31, 111, 235, 0.1);
  color: var(--brand-primary);
}
.btn-icon {
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
}
.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 0.75rem 0.95rem;
}
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(31, 111, 235, 0.15);
  border-color: var(--brand-primary);
}

.input-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.input-stack .form-control {
  margin-bottom: 0;
}
.list-chip,
.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.06);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}
.action-chip i {
  font-size: 0.9rem;
}
.action-chip.create {
  background: rgba(34, 197, 94, 0.18);
  color: #047857;
}
.action-chip.reset {
  background: rgba(59, 130, 246, 0.18);
  color: #1d4ed8;
}
.action-chip.block {
  background: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}
.action-chip.unblock {
  background: rgba(16, 185, 129, 0.18);
  color: #0f766e;
}
.action-chip.group {
  background: rgba(217, 119, 6, 0.2);
  color: #92400e;
}
.action-chip.add {
  background: rgba(14, 165, 233, 0.18);
  color: #075985;
}
.action-chip.schedule {
  background: rgba(99, 102, 241, 0.2);
  color: #4338ca;
}
.action-chip.remove {
  background: rgba(147, 51, 234, 0.18);
  color: #6b21a8;
}
.action-chip.neutral {
  background: rgba(148, 163, 184, 0.25);
  color: #334155;
}
.chart-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.chart-wrapper.chart-sm canvas {
  max-height: 160px !important;
}
.chart-wrapper.chart-md canvas {
  max-height: 200px !important;
}
.app-footer {
  border-top: 1px solid rgba(11, 19, 44, 0.08);
  padding: 1.75rem 0;
  font-size: 0.88rem;
  color: #63708c;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
}
.hero-card {
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(11, 19, 44, 0.95), rgba(31, 111, 235, 0.9));
  color: #ffffff;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 160%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 60%);
}
.hero-card h2,
.hero-card p {
  position: relative;
  z-index: 2;
}
.hero-card .badge-soft {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}
.split-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.scroll-card {
  max-height: 420px;
  overflow-y: auto;
}
.table thead th {
  border-top: none;
}
.badge-hint {
  background: rgba(31, 111, 235, 0.16);
  color: var(--brand-primary);
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.2rem 0.8rem;
  letter-spacing: 0.05em;
}
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}
@media (max-width: 767px) {
  .app-main {
    padding-top: 1.4rem;
  }
  .app-main:not(.with-sidebar) {
    flex: 0 0 auto;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
  }
  .app-main:not(.with-sidebar) .row.justify-content-center {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
  }
  .app-footer {
    padding: 0.75rem 0 0.9rem;
    font-size: 0.82rem;
  }
  .hero-card {
    padding: 1.5rem;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-actions {
    width: 100%;
  }
.page-actions .btn {
  flex: 1;
}
}

.card,
.glass-card,
.hero-card,
.panel-gradient,
.btn,
.btn-icon,
.form-control,
.form-select,
.form-label,
.badge,
.status-pill,
.list-chip,
.action-chip,
.badge-hint,
.app-navbar .badge-company,
.hero-card .badge-soft,
.app-navbar,
.app-sidebar,
.app-navbar .nav-link,
.app-navbar .brand-pill,
.app-navbar .user-chip,
.brand-stack,
.brand-icon-wrap,
.brand-icon,
.nav-section,
.sidebar-nav .nav-link,
.sidebar-toggle,
.sidebar-quota,
.sidebar-footer .user-chip,
.app-top-tabs,
.tab-pill {
  border-radius: 0;
}

.btn-x-compact {
  width: 22px;
  height: 22px;
  padding: 0;
  line-height: 1;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.policy-card-header {
  flex-wrap: wrap;
}

.policy-card-title {
  min-width: 0;
  flex: 1 1 220px;
}

.policy-card-header .status-pill {
  margin-left: auto;
}

.policy-link-form .form-control {
  width: 100%;
}

.policy-status-form .form-select {
  min-width: 140px;
  flex: 1 1 160px;
}

.policy-status-form .btn {
  flex: 0 0 auto;
}

.governance-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.governance-tile {
  position: relative;
  border: 1px solid rgba(31, 111, 235, 0.16);
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.03);
}

.governance-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-secondary), var(--brand-primary));
}

.governance-value {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.governance-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.governance-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.governance-samples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.governance-sample {
  border: 1px solid rgba(31, 111, 235, 0.14);
  background: linear-gradient(180deg, rgba(234, 244, 255, 0.7), rgba(255, 255, 255, 0.9));
  padding: 0.95rem;
}

.governance-sample-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.governance-list li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.governance-bullet {
  width: 6px;
  height: 6px;
  margin-top: 0.4rem;
  background: var(--brand-primary);
  flex: 0 0 auto;
}

.governance-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.governance-grid .card {
  min-height: 320px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 111, 235, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #f3f8ff 100%);
  box-shadow: 0 20px 45px rgba(10, 35, 58, 0.12);
}

.governance-grid .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}

.governance-grid .card-body {
  padding: 1.35rem;
}

.governance-grid .card-body > .d-flex {
  padding-bottom: 0.65rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.governance-grid .badge-hint {
  background: rgba(31, 111, 235, 0.12);
  color: #1e6fd6;
  font-weight: 600;
}

.global-processing {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 19, 44, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.global-processing.active {
  opacity: 1;
  pointer-events: all;
}

.global-processing-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.35rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 111, 235, 0.18);
  box-shadow: 0 20px 45px rgba(10, 35, 58, 0.18);
  color: var(--text-primary);
  font-weight: 600;
}

.global-processing .spinner-border {
  width: 1.6rem;
  height: 1.6rem;
}
