:root {
  --ip-primary: #0068b7;
  --ip-primary-dark: #004f96;
  --ip-accent: #42b8e8;
  --ip-ink: #102a43;
  --ip-muted: #60758a;
  --ip-bg: #f4f9fd;
  --ip-surface: #ffffff;
  --ip-border: #d8e7f2;
  --ip-soft-green: #e8f7fd;
  --ip-soft-blue: #eaf6ff;
  --ip-soft-yellow: #fff7df;
  --ip-danger: #c94040;
}

html,
body {
  color: var(--ip-ink);
  background: var(--ip-bg);
  font-family: "Source Sans Pro", Arial, sans-serif;
}

.invoispro-app .wrapper {
  background:
    radial-gradient(circle at top left, rgba(66, 184, 232, .18), transparent 30rem),
    linear-gradient(180deg, #f8fcff 0%, var(--ip-bg) 34rem);
}

.invoispro-app .main-header {
  min-height: 64px;
  border-bottom: 1px solid rgba(0, 104, 183, .12);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(23, 32, 42, .06);
}

.ip-topbar-title {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ip-topbar-title strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ip-primary-dark);
}

.ip-topbar-title span {
  color: var(--ip-muted);
  font-size: .82rem;
}

.ip-role-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 104, 183, .16);
  background: var(--ip-soft-green);
  color: var(--ip-primary-dark);
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
}

.ip-topbar-actions {
  gap: .65rem;
}

.ip-topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 64, 64, .18);
  background: #fff1f1;
  color: #b83030;
  font-size: .84rem;
  font-weight: 800;
  white-space: nowrap;
}

.ip-topbar-logout:hover {
  color: #fff;
  background: var(--ip-danger);
}

.invoispro-app .main-sidebar {
  background: linear-gradient(180deg, #004f96 0%, #0068b7 54%, #073b6d 100%);
  box-shadow: 10px 0 28px rgba(0, 79, 150, .20);
}

.invoispro-app .brand-link {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 1rem .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  color: #fff;
}

.invoispro-app .sidebar {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  padding-bottom: .75rem;
}

.invoispro-app .brand-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
  padding: 4px;
  background: #fff;
}

.ip-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--ip-primary-dark);
  background: #fff;
  font-weight: 800;
}

.brand-link .ip-logo-fallback {
  width: 42px;
  height: 42px;
  margin-right: .5rem;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

.ip-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ip-brand-copy .brand-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.ip-brand-copy small {
  color: rgba(255, 255, 255, .72);
  font-size: .72rem;
}

.ip-user-panel {
  margin: 1rem .75rem;
  padding: .85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .10);
}

.ip-user-panel .ip-user-label {
  margin: 0;
  color: rgba(255, 255, 255, .70);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ip-user-panel .ip-user-name {
  display: block;
  margin-top: .2rem;
  color: #fff;
  font-weight: 700;
}

.invoispro-app .ip-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: .75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .32) transparent;
}

.invoispro-app .ip-sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.invoispro-app .ip-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .28);
  border-radius: 999px;
}

.invoispro-app .nav-sidebar .nav-link {
  margin: .12rem .6rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, .78);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.invoispro-app .nav-sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .10);
  transform: translateX(2px);
}

.invoispro-app .nav-sidebar .nav-link.active {
  color: var(--ip-primary-dark);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
}

.invoispro-app .nav-sidebar .nav-icon {
  width: 1.45rem;
  color: inherit;
}

.invoispro-app .content-wrapper {
  background: transparent;
  padding-bottom: 2rem;
}

.content-header {
  padding: 1.35rem 1rem .65rem;
}

.content-header h1 {
  color: var(--ip-primary-dark);
  font-size: 1.75rem;
  font-weight: 800;
}

.content-header h1::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: .55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ip-primary), var(--ip-accent));
}

.card {
  border: 1px solid var(--ip-border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 42, .07);
}

.card-header {
  border-bottom: 1px solid var(--ip-border);
  background: #fff;
  border-radius: 8px 8px 0 0 !important;
}

.card-title {
  color: var(--ip-primary-dark);
  font-weight: 800;
}

.small-box,
.info-box {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 14px 28px rgba(23, 32, 42, .09);
  overflow: hidden;
}

.small-box .inner {
  padding: 1.2rem 1.15rem;
}

.small-box h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
}

.small-box p,
.info-box-text {
  font-weight: 700;
  letter-spacing: 0;
}

.small-box .icon {
  top: 12px;
  right: 16px;
  opacity: .22;
}

.small-box .small-box-footer {
  padding: .65rem .85rem;
  font-weight: 700;
  background: rgba(0, 0, 0, .13);
}

.bg-info {
  background: linear-gradient(135deg, #0068b7, #42b8e8) !important;
}

.bg-success {
  background: linear-gradient(135deg, #008c8c, #47c1a8) !important;
}

.bg-warning {
  background: linear-gradient(135deg, #f5a524, #f7c948) !important;
  color: #2d2410 !important;
}

.bg-danger {
  background: linear-gradient(135deg, #c94040, #e75a7c) !important;
}

.info-box {
  min-height: 96px;
  background: #fff;
}

.info-box-icon {
  border-radius: 8px 0 0 8px;
}

.outline-box {
  border-left: 4px solid currentColor;
}

.outline-icon {
  background: rgba(0, 104, 183, .08);
}

.table {
  color: var(--ip-ink);
}

.table thead th {
  border-bottom: 1px solid var(--ip-border);
  background: #f7fbff;
  color: var(--ip-primary-dark);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.table td,
.table th {
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 104, 183, .035);
}

.form-control,
.custom-select,
.select2-container--default .select2-selection--single {
  border-color: #cdddea;
  border-radius: 8px;
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--ip-primary);
  box-shadow: 0 0 0 .2rem rgba(0, 104, 183, .16);
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary,
.btn-success {
  border-color: var(--ip-primary);
  background: var(--ip-primary);
}

.btn-primary:hover,
.btn-success:hover {
  border-color: var(--ip-primary-dark);
  background: var(--ip-primary-dark);
}

.btn-warning {
  border-color: var(--ip-accent);
  background: var(--ip-accent);
}

.pagination .page-link {
  color: var(--ip-primary-dark);
}

.pagination .active .page-link {
  border-color: var(--ip-primary);
  background: var(--ip-primary);
}

.main-footer {
  border-top: 1px solid var(--ip-border);
  color: var(--ip-muted);
  background: #fff;
}

.ip-auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 18%, rgba(66, 184, 232, .34), transparent 18rem),
    linear-gradient(135deg, rgba(0, 79, 150, .94), rgba(7, 59, 109, .96)),
    url("../img/invoispro-auth-pattern.svg");
  background-size: cover, cover, 680px;
}

.ip-auth-shell {
  width: min(980px, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .26);
}

.ip-auth-hero {
  min-height: 560px;
  padding: 3rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 104, 183, .82), rgba(0, 79, 150, .90)),
    url("../img/invoispro-auth-pattern.svg");
  background-size: cover, 520px;
}

.ip-auth-hero h1 {
  margin: 1.35rem 0 .8rem;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.ip-auth-hero p {
  max-width: 28rem;
  color: rgba(255, 255, 255, .84);
  font-size: 1rem;
}

.ip-auth-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  padding: 8px;
  border: 4px solid rgba(255, 255, 255, .48);
  background: #fff;
}

.ip-auth-logo.ip-logo-fallback {
  font-size: 1.45rem;
}

.ip-auth-highlights {
  display: grid;
  gap: .75rem;
  margin-top: 2rem;
}

.ip-auth-highlights span {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255, 255, 255, .92);
  font-weight: 700;
}

.ip-auth-card {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 2.35rem;
}

.ip-auth-card .card {
  width: 100%;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.ip-auth-card .card-header {
  padding: 0 0 1rem;
  border: 0;
}

.ip-auth-card .card-body {
  padding: 0;
}

.ip-auth-title {
  margin: 0;
  color: var(--ip-primary-dark);
  font-size: 1.55rem;
  font-weight: 800;
}

.ip-auth-subtitle {
  margin: .35rem 0 0;
  color: var(--ip-muted);
}

.ip-auth-help {
  display: flex;
  gap: .7rem;
  margin: .85rem 0 0;
  padding: .8rem .9rem;
  border: 1px solid var(--ip-border);
  border-left: 4px solid var(--ip-accent);
  border-radius: 8px;
  background: #f4fbff;
  color: var(--ip-ink);
  font-size: .9rem;
  line-height: 1.35;
}

.ip-auth-help i {
  margin-top: .18rem;
  color: var(--ip-primary);
}

.ip-auth-help a {
  color: var(--ip-primary-dark);
  font-weight: 800;
}

.ip-auth-card .input-group-text {
  border-color: #cdddea;
  background: #f7fbff;
  color: var(--ip-primary-dark);
  border-radius: 0 8px 8px 0;
}

.ip-auth-card .form-control {
  min-height: 46px;
}

.ip-auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ip-auth-actions .btn {
  min-width: 140px;
}

.ip-auth-link {
  color: var(--ip-primary-dark);
  font-weight: 700;
}

.ip-payroll-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.05rem;
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, .22), transparent 12rem),
    linear-gradient(135deg, var(--ip-primary-dark), var(--ip-primary) 58%, var(--ip-accent));
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 104, 183, .18);
}

.ip-payroll-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 1.35rem;
}

.ip-payroll-hero span,
.ip-payroll-hero small {
  display: block;
  color: rgba(255, 255, 255, .84);
}

.ip-payroll-hero span {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ip-payroll-hero strong {
  display: block;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.15;
}

.ip-income-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, .22), transparent 12rem),
    linear-gradient(135deg, #006d77, #008c8c 55%, #42b8e8);
}

.ip-expense-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, .2), transparent 12rem),
    linear-gradient(135deg, #7a4f01, #b7791f 55%, #f5a524);
}

.ip-strategy-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, .22), transparent 12rem),
    linear-gradient(135deg, #0f766e, #179c8e 58%, #42b8e8);
}

.ip-strategy-hero-danger {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, .2), transparent 12rem),
    linear-gradient(135deg, #8a2432, #c94040 58%, #e75a7c);
}

.ip-payroll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .8rem;
}

.ip-payroll-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 84px;
  padding: .85rem;
  border: 1px solid var(--ip-border);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fcff);
  box-shadow: 0 10px 20px rgba(23, 32, 42, .06);
}

.ip-payroll-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--ip-primary), var(--ip-accent));
  font-size: 1.15rem;
}

.ip-payroll-icon-warm {
  color: #2d2410;
  background: linear-gradient(135deg, #f5a524, #f7c948);
}

.ip-income-icon {
  background: linear-gradient(135deg, #006d77, #42b8e8);
}

.ip-expense-icon {
  color: #2d2410;
  background: linear-gradient(135deg, #f5a524, #f7c948);
}

.ip-payroll-label {
  display: block;
  color: var(--ip-ink);
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
}

.ip-payroll-item strong {
  display: block;
  margin-top: .25rem;
  color: var(--ip-primary-dark);
  font-size: 1rem;
  font-weight: 900;
}

.ip-category-item {
  align-items: flex-start;
}

.ip-category-copy {
  min-width: 0;
}

.ip-category-copy small {
  display: block;
  margin-top: .2rem;
  color: var(--ip-muted);
  font-size: .8rem;
  line-height: 1.25;
}

.ip-empty-panel {
  display: flex;
  align-items: center;
  gap: .6rem;
  grid-column: 1 / -1;
  padding: .95rem 1rem;
  border: 1px dashed var(--ip-border);
  border-radius: 8px;
  background: #f8fcff;
  color: var(--ip-muted);
  font-weight: 700;
}

.ip-empty-panel i {
  color: var(--ip-primary);
}

.ip-strategy-note {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-top: 1rem;
  padding: .95rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.35;
}

.ip-strategy-note i {
  margin-top: .15rem;
}

.ip-strategy-note-good {
  border: 1px solid rgba(15, 118, 110, .18);
  background: #e8fbf7;
  color: #075e54;
}

.ip-strategy-note-danger {
  border: 1px solid rgba(201, 64, 64, .2);
  background: #fff1f1;
  color: #8a2432;
}

.ip-public-register {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(66, 184, 232, .18), transparent 28rem),
    linear-gradient(180deg, #f8fcff, var(--ip-bg));
}

.ip-public-register .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.ip-public-register .card-outline.card-primary {
  border-top: 4px solid var(--ip-primary);
}

.ip-public-register .brand-image {
  width: 92px;
  height: 92px;
  object-fit: contain;
  padding: 8px;
  margin-top: 1.25rem;
  background: #fff;
}

.ip-public-register .ip-logo-fallback {
  width: 92px;
  height: 92px;
  margin-top: 1.25rem;
  border-radius: 50%;
  font-size: 1.55rem;
}

.ip-public-register .card-header h3 {
  color: var(--ip-primary-dark);
  font-weight: 800;
}

.ip-public-register hr {
  border-top-color: var(--ip-border);
}

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

  .ip-auth-hero {
    min-height: auto;
    padding: 2rem;
  }

  .ip-auth-card {
    padding: 2rem;
  }
}

@media (max-width: 575.98px) {
  .content-header h1 {
    font-size: 1.45rem;
  }

  .ip-topbar-title {
    display: none;
  }

  .ip-role-pill span {
    display: none;
  }

  .ip-topbar-logout span {
    display: none;
  }

  .ip-auth-shell {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }

  .ip-auth-hero {
    padding: 1.5rem;
  }

  .ip-auth-hero h1 {
    font-size: 1.75rem;
  }

  .ip-auth-card {
    padding: 1.5rem;
  }

  .ip-payroll-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

.score-module-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.score-module-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ip-primary), #1b8f85);
  box-shadow: 0 12px 24px rgba(0, 104, 183, .18);
  font-size: 1.5rem;
  flex: 0 0 auto;
}

.score-card {
  border: 1px solid var(--ip-border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 42, 67, .06);
}

.score-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .75rem;
}

.score-focus-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem;
  border-radius: 8px;
  background: var(--ip-soft-blue);
  color: var(--ip-ink);
  font-weight: 700;
}

.score-focus-item i {
  color: var(--ip-primary);
}

.score-workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
}

.score-workflow-step {
  min-height: 92px;
  padding: .9rem;
  border-radius: 8px;
  border: 1px solid var(--ip-border);
  background: #ffffff;
}

.score-workflow-step span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .55rem;
  border-radius: 50%;
  background: var(--ip-primary);
  color: #ffffff;
  font-weight: 800;
}

.score-workflow-step strong {
  display: block;
  line-height: 1.25;
}

.score-next-list {
  margin: 0;
  padding-left: 1.15rem;
}

.score-next-list li {
  margin-bottom: .45rem;
}

.nav-sidebar .nav-header {
  margin: .85rem .8rem .25rem;
  color: rgba(255, 255, 255, .62);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.score-module-tile {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--ip-border);
  background: #ffffff;
  color: var(--ip-ink);
  box-shadow: 0 10px 24px rgba(16, 42, 67, .06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.score-module-tile:hover {
  color: var(--ip-ink);
  transform: translateY(-2px);
  border-color: rgba(0, 104, 183, .35);
  box-shadow: 0 14px 30px rgba(16, 42, 67, .10);
}

.score-module-tile span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .8rem;
  border-radius: 8px;
  background: var(--ip-soft-blue);
  color: var(--ip-primary);
  font-size: 1.2rem;
}

.score-module-tile strong {
  font-size: 1.02rem;
  margin-bottom: .35rem;
}

.score-module-tile small {
  color: var(--ip-muted);
  line-height: 1.35;
}
/* SCoRe premium refresh for legacy AdminLTE pages */
:root {
  --ip-primary: #0F4C81;
  --ip-primary-dark: #083B66;
  --ip-accent: #2A9D8F;
  --ip-warm: #F4B942;
  --ip-ink: #1E293B;
  --ip-muted: #64748B;
  --ip-bg: #F8FAFC;
  --ip-surface: #FFFFFF;
  --ip-border: #E2E8F0;
  --ip-soft-green: #E8F8F5;
  --ip-soft-blue: #EAF4FB;
  --ip-soft-yellow: #FFF7E0;
}

.invoispro-app .content-wrapper > .content-header .row.mb-2 {
  align-items: center;
  margin: 0 0 1rem !important;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(226, 232, 240, .78);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 18%, rgba(255,255,255,.22), transparent 13rem),
    linear-gradient(135deg, #0F4C81 0%, #1D6FA5 48%, #2A9D8F 100%);
  box-shadow: 0 16px 34px rgba(15, 76, 129, .18);
}

.invoispro-app .content-wrapper > .content-header .row.mb-2 h1 {
  margin: 0;
  color: #fff;
  font-weight: 850;
  letter-spacing: .1px;
}

.invoispro-app .content-wrapper > .content-header .row.mb-2 h1::after {
  width: 72px;
  height: 4px;
  margin-top: .55rem;
  background: linear-gradient(90deg, #F4B942, rgba(255,255,255,.82));
}

.invoispro-app .content-wrapper > .content-header .row.mb-2 p,
.invoispro-app .content-wrapper > .content-header .row.mb-2 .text-muted {
  color: rgba(255, 255, 255, .84) !important;
}

.invoispro-app .content-wrapper > .content-header .row.mb-2 .btn {
  border-radius: 999px;
  padding: .55rem 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.invoispro-app .content-wrapper > .content-header .row.mb-2 .btn-primary,
.invoispro-app .content-wrapper > .content-header .row.mb-2 .btn-success {
  border-color: rgba(255,255,255,.92);
  background: #fff;
  color: #0F4C81;
}

.invoispro-app .content-wrapper > .content-header .row.mb-2 .btn-outline-primary,
.invoispro-app .content-wrapper > .content-header .row.mb-2 .btn-outline-success {
  border-color: rgba(255,255,255,.72);
  color: #fff;
  background: rgba(255,255,255,.12);
}

.invoispro-app .content-wrapper > .content-header .row.mb-2 .btn-outline-primary:hover,
.invoispro-app .content-wrapper > .content-header .row.mb-2 .btn-outline-success:hover {
  color: #0F4C81;
  background: #fff;
}

.invoispro-app .content .card,
.invoispro-app .modal-content {
  border: 1px solid var(--ip-border);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 76, 129, .075);
  overflow: hidden;
}

.invoispro-app .content .card + .card {
  margin-top: 1rem;
}

.invoispro-app .content .card-header,
.invoispro-app .modal-header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #fff, #FBFDFF);
  border-bottom: 1px solid var(--ip-border);
}

.invoispro-app .content .card-primary:not(.card-outline) > .card-header,
.invoispro-app .content .card-info:not(.card-outline) > .card-header,
.invoispro-app .content .card-success:not(.card-outline) > .card-header {
  color: #0F4C81;
  background: linear-gradient(180deg, #fff, #FBFDFF);
  border-bottom: 1px solid var(--ip-border);
}

.invoispro-app .content .card-title,
.invoispro-app .modal-title {
  margin: 0;
  color: #0F4C81;
  font-weight: 850;
  letter-spacing: .1px;
}

.invoispro-app .content .card-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: .55rem;
  border-radius: 50%;
  background: #2A9D8F;
  box-shadow: 0 0 0 4px rgba(42,157,143,.12);
  vertical-align: .08rem;
}

.invoispro-app .form-group label {
  color: #1E293B;
  font-weight: 800;
  font-size: .92rem;
}

.invoispro-app .form-control,
.invoispro-app .custom-select,
.invoispro-app select.form-control,
.invoispro-app textarea.form-control {
  min-height: 42px;
  border-color: #CBD5E1;
  border-radius: 10px;
  background: #fff;
}

.invoispro-app textarea.form-control {
  min-height: auto;
}

.invoispro-app .form-control::placeholder {
  color: #94A3B8;
}

.invoispro-app .btn {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .01em;
}

.invoispro-app .btn-sm {
  padding: .35rem .65rem;
}

.invoispro-app .btn-primary,
.invoispro-app .btn-success {
  border-color: transparent;
  background: linear-gradient(135deg, #0F4C81, #2A9D8F);
  color: #fff;
}

.invoispro-app .btn-primary:hover,
.invoispro-app .btn-success:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #083B66, #21867B);
}

.invoispro-app .btn-warning {
  border-color: transparent;
  background: linear-gradient(135deg, #F4B942, #F7D36B);
  color: #1E293B;
}

.invoispro-app .btn-danger {
  border-color: transparent;
  background: linear-gradient(135deg, #DC3545, #F87171);
}

.invoispro-app .btn-outline-primary,
.invoispro-app .btn-outline-success {
  border-color: rgba(15,76,129,.24);
  color: #0F4C81;
  background: #fff;
}

.invoispro-app .btn-outline-primary:hover,
.invoispro-app .btn-outline-success:hover {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #0F4C81, #2A9D8F);
}

.invoispro-app .table-responsive {
  border-radius: 0 0 14px 14px;
}

.invoispro-app .table {
  margin-bottom: 0;
}

.invoispro-app .table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--ip-border);
  background: #F8FAFC;
  color: #0F4C81;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.invoispro-app .table td,
.invoispro-app .table th {
  padding: .9rem .95rem;
  border-color: #E8EEF5;
  vertical-align: middle;
}

.invoispro-app .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(15, 76, 129, .025);
}

.invoispro-app .table-hover tbody tr:hover {
  background-color: rgba(42, 157, 143, .055);
}

.invoispro-app .badge {
  border-radius: 999px;
  padding: .42rem .58rem;
  font-weight: 850;
}

.invoispro-app .badge-primary,
.invoispro-app .badge-info {
  background: #DBEAFE;
  color: #0F4C81;
}

.invoispro-app .badge-success {
  background: #DCFCE7;
  color: #166534;
}

.invoispro-app .badge-danger {
  background: #FEE2E2;
  color: #991B1B;
}

.invoispro-app .badge-warning {
  background: #FEF3C7;
  color: #92400E;
}

.invoispro-app .info-box {
  border: 1px solid var(--ip-border);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15,76,129,.07);
}

.invoispro-app .info-box-icon {
  border-radius: 12px;
  margin: .65rem;
  width: 58px;
}

.invoispro-app .info-box-content {
  padding: .85rem .75rem .85rem 0;
}

.invoispro-app .info-box-text {
  color: #1E293B;
  font-weight: 850;
}

.invoispro-app .info-box-number {
  color: #0F4C81;
  font-size: 1.1rem;
}

.invoispro-app .pagination {
  margin-bottom: 0;
}

.invoispro-app .pagination .page-link {
  border-color: #E2E8F0;
  color: #0F4C81;
  font-weight: 800;
}

.invoispro-app .pagination .active .page-link {
  border-color: #0F4C81;
  background: #0F4C81;
}

.invoispro-app .alert {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15,76,129,.07);
}

.invoispro-app .border-left-primary {
  border-left: 5px solid #2A9D8F !important;
}

@media (max-width: 767.98px) {
  .invoispro-app .content-wrapper > .content-header .row.mb-2 {
    padding: 1rem;
  }

  .invoispro-app .content-wrapper > .content-header .row.mb-2 [class*="text-"] {
    text-align: left !important;
  }
}
/* SCoRe unified module tabs */
.invoispro-app .content-wrapper .nav.nav-pills:not(.nav-sidebar) {
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.15rem !important;
}

.invoispro-app .content-wrapper .nav.nav-pills:not(.nav-sidebar) > .nav-item {
  margin: 0 0 6px 0;
}

.invoispro-app .content-wrapper .nav.nav-pills:not(.nav-sidebar) > .nav-item > .nav-link {
  border: 1px solid rgba(42,157,143,.10) !important;
  border-radius: 999px !important;
  background: #EFFAFB !important;
  color: #0F4C81 !important;
  font-weight: 850 !important;
  padding: 13px 24px !important;
  box-shadow: 0 8px 20px rgba(15,76,129,.06) !important;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}

.invoispro-app .content-wrapper .nav.nav-pills:not(.nav-sidebar) > .nav-item > .nav-link:hover {
  transform: translateY(-1px);
  background: #E3F6F7 !important;
  color: #0B3F6B !important;
  box-shadow: 0 12px 24px rgba(15,76,129,.10) !important;
}

.invoispro-app .content-wrapper .nav.nav-pills:not(.nav-sidebar) > .nav-item > .nav-link.active,
.invoispro-app .content-wrapper .nav.nav-pills:not(.nav-sidebar) > .nav-item.show > .nav-link {
  border-color: transparent !important;
  background: linear-gradient(135deg,#0F4C81 0%,#1D6FA5 46%,#2A9D8F 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(42,157,143,.24) !important;
}

.invoispro-app .content-wrapper .nav.nav-pills:not(.nav-sidebar) > .nav-item > .nav-link i {
  margin-right: 7px;
}

@media (max-width: 575.98px) {
  .invoispro-app .content-wrapper .nav.nav-pills:not(.nav-sidebar) {
    gap: 6px;
  }

  .invoispro-app .content-wrapper .nav.nav-pills:not(.nav-sidebar) > .nav-item > .nav-link {
    padding: 10px 15px !important;
    font-size: 13px;
  }
}

/* SCoRe unified page hero/header */
.invoispro-app .content-wrapper > .content-header {
  padding: 1.25rem 1.25rem .65rem;
}

.invoispro-app .content-wrapper .score-hero,
.invoispro-app .content-wrapper .gov-hero,
.invoispro-app .content-wrapper .sd-hero,
.invoispro-app .content-wrapper .inv-hero,
.invoispro-app .content-wrapper .pos-hero,
.invoispro-app .content-wrapper .supplier-hero {
  width: 100%;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 20px !important;
  padding: 28px 34px !important;
  color: #fff !important;
  background: linear-gradient(100deg,#0F4C81 0%,#17669A 45%,#2A9D8F 76%,#56BFAE 100%) !important;
  box-shadow: 0 18px 40px rgba(15,76,129,.18) !important;
  overflow: hidden;
  position: relative;
}

.invoispro-app .content-wrapper .score-hero::after,
.invoispro-app .content-wrapper .gov-hero::after,
.invoispro-app .content-wrapper .sd-hero::after,
.invoispro-app .content-wrapper .inv-hero::after,
.invoispro-app .content-wrapper .pos-hero::after,
.invoispro-app .content-wrapper .supplier-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  pointer-events: none;
}

.invoispro-app .content-wrapper .score-hero h1,
.invoispro-app .content-wrapper .gov-hero h1,
.invoispro-app .content-wrapper .sd-hero h1,
.invoispro-app .content-wrapper .inv-hero h1,
.invoispro-app .content-wrapper .pos-hero h1,
.invoispro-app .content-wrapper .supplier-hero h1 {
  margin: 0 !important;
  font-size: clamp(30px, 3vw, 42px) !important;
  font-weight: 950 !important;
  letter-spacing: -.3px !important;
  line-height: 1.08 !important;
  color: #fff !important;
  position: relative;
  z-index: 1;
}

.invoispro-app .content-wrapper .score-hero h1::after,
.invoispro-app .content-wrapper .gov-hero h1::after,
.invoispro-app .content-wrapper .sd-hero h1::after,
.invoispro-app .content-wrapper .inv-hero h1::after,
.invoispro-app .content-wrapper .pos-hero h1::after,
.invoispro-app .content-wrapper .supplier-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 13px;
  border-radius: 999px;
  background: #F4B942;
}

.invoispro-app .content-wrapper .score-hero p,
.invoispro-app .content-wrapper .gov-hero p,
.invoispro-app .content-wrapper .sd-hero p,
.invoispro-app .content-wrapper .inv-hero p,
.invoispro-app .content-wrapper .pos-hero p,
.invoispro-app .content-wrapper .supplier-hero p {
  max-width: 980px;
  margin: 9px 0 0 !important;
  color: rgba(255,255,255,.92) !important;
  font-size: clamp(15px, 1.45vw, 20px) !important;
  line-height: 1.45 !important;
  position: relative;
  z-index: 1;
}

.invoispro-app .content-wrapper .score-hero .btn,
.invoispro-app .content-wrapper .gov-hero .btn,
.invoispro-app .content-wrapper .sd-hero .btn,
.invoispro-app .content-wrapper .inv-hero .btn,
.invoispro-app .content-wrapper .pos-hero .btn,
.invoispro-app .content-wrapper .supplier-hero .btn {
  border-radius: 999px;
  border-color: rgba(255,255,255,.44);
  color: #fff;
  background: rgba(255,255,255,.16);
  position: relative;
  z-index: 1;
}

@media (max-width: 767.98px) {
  .invoispro-app .content-wrapper > .content-header {
    padding: 1rem .85rem .5rem;
  }

  .invoispro-app .content-wrapper .score-hero,
  .invoispro-app .content-wrapper .gov-hero,
  .invoispro-app .content-wrapper .sd-hero,
  .invoispro-app .content-wrapper .inv-hero,
  .invoispro-app .content-wrapper .pos-hero,
  .invoispro-app .content-wrapper .supplier-hero {
    min-height: 112px;
    padding: 23px 22px !important;
  }
}

/* SCoRe superadmin consistency */
.invoispro-app .content-wrapper .score-hero.sa-hero {
  min-height: 128px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 20px !important;
  padding: 28px 34px !important;
  background: linear-gradient(100deg,#0F4C81 0%,#17669A 45%,#2A9D8F 76%,#56BFAE 100%) !important;
  box-shadow: 0 18px 40px rgba(15,76,129,.18) !important;
}

.invoispro-app .content-wrapper .score-hero.sa-hero h1 {
  font-size: clamp(30px, 3vw, 42px) !important;
  font-weight: 950 !important;
  line-height: 1.08 !important;
  color: #fff !important;
}

.invoispro-app .content-wrapper .score-hero.sa-hero p {
  max-width: 980px !important;
  color: rgba(255,255,255,.92) !important;
  font-size: clamp(15px, 1.45vw, 20px) !important;
}

.invoispro-app .content-wrapper .score-hero.sa-hero .btn,
.invoispro-app .content-wrapper .btn-score-hero {
  min-height: 44px;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.46) !important;
  color: #fff !important;
  background: rgba(255,255,255,.16) !important;
  box-shadow: 0 12px 26px rgba(6,40,61,.12) !important;
  font-weight: 850 !important;
  backdrop-filter: blur(12px);
}

.invoispro-app .content-wrapper .score-hero.sa-hero .btn:hover,
.invoispro-app .content-wrapper .btn-score-hero:hover {
  color: #fff !important;
  background: rgba(255,255,255,.24) !important;
  transform: translateY(-1px);
}

.invoispro-app .content-wrapper .sa-metric {
  border: 1px solid #E2E8F0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(15,76,129,.08) !important;
}

.invoispro-app .content-wrapper .sa-metric .icon,
.invoispro-app .content-wrapper .sa-quick-link i {
  background: linear-gradient(135deg,#0F4C81,#2A9D8F) !important;
}

.invoispro-app .content-wrapper .sa-metric .value,
.invoispro-app .content-wrapper .sa-tenant-name,
.invoispro-app .content-wrapper .sa-card .card-title {
  color: #0F4C81 !important;
}

.invoispro-app .content-wrapper .sa-card {
  border: 1px solid #E2E8F0 !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 34px rgba(15,76,129,.08) !important;
}

.invoispro-app .content-wrapper .sa-quick-link {
  border: 1px solid #E2E8F0 !important;
  border-radius: 16px !important;
  color: #1E293B !important;
  box-shadow: 0 12px 26px rgba(15,76,129,.06) !important;
  transition: transform .16s ease, box-shadow .16s ease, color .16s ease;
}

.invoispro-app .content-wrapper .sa-quick-link:hover {
  color: #0F4C81 !important;
  box-shadow: 0 16px 30px rgba(42,157,143,.12) !important;
}

.invoispro-app .content-wrapper .modal-footer .btn-secondary,
.invoispro-app .content-wrapper .btn-default,
.invoispro-app .content-wrapper .btn-secondary {
  border: 1px solid #CBD5E1 !important;
  border-radius: 999px !important;
  color: #0F4C81 !important;
  background: #fff !important;
  font-weight: 800 !important;
}

.invoispro-app .content-wrapper .modal-footer .btn-secondary:hover,
.invoispro-app .content-wrapper .btn-default:hover,
.invoispro-app .content-wrapper .btn-secondary:hover {
  color: #0F4C81 !important;
  background: #EAF6FA !important;
}