:root {
  --pqb-page-bg:
    radial-gradient(circle at 12% 10%, rgba(59, 130, 246, 0.2) 0, transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(239, 68, 68, 0.12) 0, transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.9) 0, rgba(244, 247, 251, 0.94) 52%, rgba(234, 242, 247, 0.98) 100%);
  --pqb-panel-white: rgba(255, 255, 255, 0.94);
  --pqb-panel-line: rgba(15, 23, 42, 0.08);
  --pqb-green-deep: #1d4ed8;
  --pqb-red-soft: #fee2e2;
  --pqb-red-strong: #c81e1e;
  --pqb-green-soft: #dbeafe;
}

body {
  background: var(--pqb-page-bg) !important;
  color: #102133;
}

body.dark {
  background:
    radial-gradient(circle at 14% 10%, rgba(59, 130, 246, 0.16) 0, transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(239, 68, 68, 0.12) 0, transparent 22%),
    linear-gradient(180deg, #0e1726 0%, #102033 100%) !important;
}

.main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 24%),
    transparent;
}

.topbar {
  background: rgba(255, 255, 255, 0.86) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.04);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.85), rgba(255, 255, 255, 0), rgba(220, 38, 38, 0.45));
}

.topbar-left h1 {
  font-size: 1.9rem !important;
  letter-spacing: -0.04em !important;
}

.page-sub {
  color: #5d6c7e !important;
  font-size: 0.95rem !important;
}

.company {
  padding: 8px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.company-name {
  color: #1e3a8a;
}

.company-period {
  color: #6b7280;
}

.view {
  max-width: 100% !important;
  padding: 28px 32px 40px !important;
}

.sidebar {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22) 0, transparent 30%),
    linear-gradient(180deg, #081321 0%, #0d1c2d 48%, #11253b 100%) !important;
}

.sidebar .brand {
  padding-right: 18px !important;
}

.sidebar .brand::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.28), rgba(255, 255, 255, 0.08), rgba(125, 211, 252, 0.2));
}

.sidebar .brand-title {
  font-size: 1rem !important;
}

.sidebar .brand-sub {
  color: rgba(221, 239, 233, 0.68) !important;
}

.pqb-sidebar-toggle {
  top: 18px !important;
  right: -14px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(191, 219, 254, 0.98), rgba(59, 130, 246, 0.98)) !important;
  border: 2px solid rgba(255, 255, 255, 0.92) !important;
  color: #12356b !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  box-shadow:
    0 14px 24px rgba(8, 19, 33, 0.24),
    0 0 0 4px rgba(255, 255, 255, 0.08) !important;
}

.pqb-sidebar-toggle:hover {
  background: linear-gradient(135deg, rgba(219, 234, 254, 1), rgba(96, 165, 250, 1)) !important;
  color: #102a5f !important;
  transform: scale(1.06);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.24), rgba(255, 255, 255, 0.03), rgba(125, 211, 252, 0.1)) !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14), 0 10px 20px rgba(29, 78, 216, 0.14);
}

.nav-item.active .nav-ico,
.nav-item:hover .nav-ico {
  color: #bfdbfe !important;
}

.sidebar-footer .user-chip {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.05)) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card,
.table-wrap,
.chart-card,
.report,
.pqb-dash-aging-card,
.pqb-dash-cashflow-chart,
.pqb-dash-cashflow-side,
.pqb-dash-greet {
  background: var(--pqb-panel-white) !important;
  border: 1px solid var(--pqb-panel-line) !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06) !important;
}

.card::before,
.table-wrap::before,
.pqb-dash-aging-card::before,
.pqb-dash-cashflow-chart::before,
.pqb-dash-cashflow-side::before,
.pqb-dash-greet::before {
  opacity: 0.72;
}

.btn-primary,
.pqb-greet-cta {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25) !important;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.2) !important;
}

.badge-open {
  background: #fef3c7 !important;
}

.badge-overdue {
  background: var(--pqb-red-soft) !important;
  color: var(--pqb-red-strong) !important;
}

.pqb-dash-greet {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  gap: 20px !important;
  padding: 26px 28px !important;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16) 0, transparent 30%),
    radial-gradient(circle at bottom right, rgba(239, 68, 68, 0.09) 0, transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96)) !important;
}

.pqb-greet-copy {
  min-width: 0;
}

.pqb-dash-greet h1 {
  font-size: 2.1rem !important;
  letter-spacing: -0.05em !important;
}

.pqb-greet-sub {
  font-size: 1rem !important;
}

.pqb-greet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pqb-greet-stat {
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.pqb-greet-stat-label {
  display: block;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 4px;
}

.pqb-greet-stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #102133;
}

.pqb-greet-stat.is-positive .pqb-greet-stat-value {
  color: var(--pqb-green-deep);
}

.pqb-greet-stat.is-alert .pqb-greet-stat-value {
  color: var(--pqb-red-strong);
}

.pqb-dash-aging {
  gap: 18px !important;
}

.pqb-focus-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .92fr);
  gap: 18px;
  margin: 18px 0;
}

.pqb-action-card,
.pqb-task-panel {
  padding: 22px !important;
}

.pqb-action-head,
.pqb-task-head,
.pqb-task-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pqb-task-kicker {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #1d4ed8;
  font-weight: 800;
  margin-bottom: 6px;
}

.pqb-action-head h3,
.pqb-task-head h3 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -.03em;
}

.pqb-action-link {
  font-size: .82rem;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
}

.pqb-action-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pqb-action-tile {
  display: block;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(15, 23, 42, .06);
  transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease;
}

.pqb-action-tile strong,
.pqb-task-item strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 6px;
}

.pqb-action-tile span,
.pqb-task-item small,
.pqb-task-meta {
  display: block;
  color: #64748b;
  line-height: 1.55;
}

.pqb-action-tile:hover,
.pqb-task-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .18);
  box-shadow: 0 18px 30px rgba(15, 23, 42, .08);
}

.pqb-task-score {
  min-width: 58px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(219, 234, 254, .88);
  color: #1d4ed8;
  font-weight: 800;
}

.pqb-task-progress {
  margin: 16px 0 10px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8eef3;
}

.pqb-task-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #1d4ed8, rgba(125, 211, 252, .8));
}

.pqb-task-meta {
  font-size: .84rem;
  margin-bottom: 14px;
}

.pqb-task-panel.is-complete .pqb-task-meta {
  margin-bottom: 10px;
}

.pqb-task-groups {
  display: grid;
  gap: 12px;
}

.pqb-task-groups.is-complete-collapsed {
  display: none;
}

.pqb-task-groups.is-collapsed .pqb-task-group {
  padding: 12px;
}

.pqb-task-group {
  padding: 14px;
  border-radius: 18px;
  background: rgba(248, 250, 252, .9);
  border: 1px solid rgba(15, 23, 42, .05);
}

.pqb-task-group-head strong {
  font-size: .95rem;
}

.pqb-task-group-head span {
  font-size: .76rem;
  color: #64748b;
  font-weight: 700;
}

.pqb-task-items {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.pqb-task-groups.is-collapsed .pqb-task-items {
  gap: 8px;
  margin-top: 10px;
}

.pqb-task-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(15, 23, 42, .05);
  text-decoration: none;
  color: inherit;
}

.pqb-task-groups.is-collapsed .pqb-task-item {
  padding: 10px 12px;
}

.pqb-task-groups.is-collapsed .pqb-task-item strong {
  margin-bottom: 0 !important;
}

.pqb-task-groups.is-collapsed .pqb-task-item small {
  display: none;
}

.pqb-task-check {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  background: #eff6ff;
  color: #1d4ed8;
}

.pqb-task-item.is-done .pqb-task-check {
  background: #dbeafe;
  color: #1d4ed8;
}

.pqb-task-copy small {
  font-size: .78rem;
}

.pqb-dash-aging-card {
  position: relative;
  overflow: hidden;
}

.pqb-dash-aging-card::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(125, 211, 252, 0.55));
}

.pqb-aging-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.pqb-aging-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--pqb-green-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pqb-aging-chip.is-payables {
  background: rgba(239, 68, 68, 0.1);
  color: var(--pqb-red-strong);
}

.pqb-aging-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.92rem !important;
}

.pqb-aging-bucket {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.pqb-bucket-label {
  font-size: 0.73rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pqb-bucket-amount {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.pqb-bucket-days {
  font-size: 0.72rem;
  color: #8b98a8;
}

.pqb-dash-cashflow {
  gap: 18px !important;
}

.pqb-cf-head {
  margin-bottom: 18px !important;
}

.pqb-cf-head h3 {
  font-size: 1.12rem !important;
}

.pqb-dash-cashflow-side {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 250, 0.96)) !important;
}

.pqb-cf-side-row:first-child {
  padding-top: 4px;
}

.pqb-cf-side-label {
  color: #718096 !important;
}

.pqb-cf-side-value {
  font-size: 1.5rem !important;
}

.pqb-welcome-panel {
  padding: 42px !important;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14) 0, transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)) !important;
}

.pqb-welcome-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.pqb-welcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.pqb-welcome-step {
  display: block;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pqb-welcome-step:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.pqb-welcome-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pqb-welcome-step-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.pqb-welcome-step-title {
  font-size: 0.98rem;
  font-weight: 700;
}

.pqb-welcome-step-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .pqb-dash-greet {
    grid-template-columns: 1fr;
  }

  .pqb-greet-cta {
    justify-self: start;
  }

  .pqb-focus-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .view {
    padding: 22px 18px 32px !important;
  }

  .pqb-welcome-grid {
    grid-template-columns: 1fr;
  }

  .pqb-action-grid {
    grid-template-columns: 1fr;
  }
}

/* v2.0.0 - lighter dashboard surfaces */
:root {
  --pqb-page-bg: linear-gradient(180deg, #f7fafc 0%, #f2f6fb 100%);
  --pqb-panel-white: #ffffff;
  --pqb-panel-line: rgba(148, 163, 184, 0.2);
}

body {
  background: var(--pqb-page-bg) !important;
}

body.dark {
  background: linear-gradient(180deg, #0f172a 0%, #162033 100%) !important;
}

.main {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(243, 247, 251, 0.88) 100%);
}

.sidebar {
  background:
    radial-gradient(circle at 16% 6%, rgba(252, 211, 77, 0.34) 0, rgba(252, 211, 77, 0.1) 16%, transparent 34%),
    radial-gradient(circle at 0% 28%, rgba(255, 255, 255, 0.22) 0, transparent 26%),
    linear-gradient(155deg, rgba(7, 46, 36, 0.98) 0%, rgba(10, 79, 59, 0.98) 38%, rgba(17, 130, 91, 0.96) 72%, rgba(106, 188, 98, 0.93) 100%) !important;
  border-right: 1px solid rgba(240, 223, 164, 0.26) !important;
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,.08),
    inset 0 1px 0 rgba(255,255,255,.12),
    18px 0 38px rgba(6, 37, 28, 0.18);
  overflow: visible !important;
  position: relative;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(140deg, rgba(255, 240, 186, 0.26) 0%, rgba(255, 240, 186, 0.06) 18%, rgba(255, 255, 255, 0) 44%),
    linear-gradient(200deg, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.1) 76%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.sidebar .brand::after {
  display: none !important;
}

.sidebar .brand {
  position: relative;
  padding: 18px 18px 20px !important;
  min-height: 86px !important;
}

.sidebar .brand::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(252, 211, 77, 0.5), rgba(110, 231, 183, 0.34), rgba(255, 255, 255, 0));
}

.sidebar .brand-logo-img {
  width: 54px !important;
  height: 54px !important;
  padding: 7px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)) !important;
  border: 1px solid rgba(255, 240, 186, 0.24);
  box-shadow:
    0 12px 22px rgba(5, 31, 22, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.sidebar .brand-title {
  color: #f8fffb !important;
  font-size: 1.06rem !important;
  letter-spacing: -0.02em !important;
}

.sidebar .brand-sub {
  color: rgba(236, 253, 245, 0.82) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sidebar .nav-group {
  color: rgba(239, 253, 245, 0.82) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 14px !important;
  margin: 10px 12px 4px !important;
  padding: 12px 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-search-wrap {
  display: none !important;
}

.sidebar .nav-group:hover {
  color: #fff8df !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.sidebar .nav-group .chev {
  display: none !important;
}

.sidebar .nav-group::after {
  display: none !important;
}

.sidebar .nav-group-indicator {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  margin-left: 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.92), rgba(110, 231, 183, 0.96)) !important;
  color: #083a2d !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow:
    0 8px 18px rgba(5, 49, 34, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.sidebar .nav-item {
  color: rgba(242, 252, 247, 0.9) !important;
  margin: 4px 12px !important;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.sidebar .nav-item:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)) !important;
  color: #ffffff !important;
  border-color: rgba(255, 240, 186, 0.18);
}

.sidebar .nav-item.active {
  background: linear-gradient(90deg, rgba(252, 211, 77, 0.16), rgba(56, 189, 126, 0.24), rgba(255, 255, 255, 0.06)) !important;
  color: #ffffff !important;
  border-color: rgba(255, 240, 186, 0.22);
  box-shadow:
    inset 3px 0 0 #f7d77f,
    0 12px 24px rgba(5, 49, 34, 0.24) !important;
}

.sidebar .nav-item.active .nav-ico,
.sidebar .nav-item:hover .nav-ico {
  color: #fff4c7 !important;
}

.sidebar-footer .user-chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)) !important;
  border: 1px solid rgba(255, 240, 186, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar .user-name {
  color: #ffffff !important;
}

.sidebar .user-role {
  color: rgba(220, 252, 231, 0.8) !important;
}

.topbar {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid #e3ebf3 !important;
  box-shadow: none !important;
}

.topbar::after {
  display: none !important;
}

.card,
.table-wrap,
.chart-card,
.report,
.pqb-dash-aging-card,
.pqb-dash-cashflow-chart,
.pqb-dash-cashflow-side,
.pqb-dash-greet {
  border-radius: 22px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05) !important;
}

.card::before,
.table-wrap::before,
.pqb-dash-aging-card::before,
.pqb-dash-cashflow-chart::before,
.pqb-dash-cashflow-side::before,
.pqb-dash-greet::before {
  opacity: 0 !important;
}

.pqb-dash-greet {
  background: #ffffff !important;
  padding: 24px 26px !important;
}

.pqb-dash-greet h1,
.pqb-action-head h3,
.pqb-task-head h3,
.pqb-aging-head h3,
.pqb-cf-head h3,
.pqb-welcome-panel h2 {
  font-family: Inter, "Segoe UI", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}

.pqb-dash-greet h1 {
  font-size: 2rem !important;
}

.pqb-dashboard-shell {
  max-width: 1460px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.pqb-dashboard-intro {
  display: grid;
  gap: 14px;
}

.pqb-greet-sub,
.pqb-task-meta,
.pqb-action-tile span,
.pqb-task-item small,
.pqb-task-group-head span,
.pqb-bucket-days,
.pqb-cf-side-date {
  color: #64748b !important;
}

.pqb-greet-stat {
  min-width: 132px;
  background: #f8fafc;
  border: 1px solid #e5edf5;
  border-radius: 16px;
}

.pqb-module-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.pqb-module-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  min-height: 68px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e3ebf3;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.pqb-module-pill:hover {
  border-color: #c9ddcd;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
}

.pqb-module-pill-badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pqb-module-pill span:last-child {
  font-size: 1rem;
  font-weight: 700;
}

.pqb-dashboard-overview,
.pqb-focus-row,
.pqb-dash-aging,
.pqb-dash-cashflow {
  gap: 18px !important;
  margin: 0 !important;
}

.pqb-action-card,
.pqb-task-panel {
  padding: 20px !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pqb-action-grid {
  gap: 10px;
  margin-top: 14px;
}

.pqb-action-tile,
.pqb-task-item,
.pqb-task-group,
.pqb-aging-bucket {
  background: #ffffff !important;
  border: 1px solid #e6edf5 !important;
  border-radius: 16px !important;
}

.pqb-task-progress {
  background: #e9f0f5;
}

.pqb-task-groups {
  margin-top: 4px;
}

.pqb-task-groups.is-collapsed .pqb-task-group-extra {
  display: none !important;
}

.pqb-task-toggle {
  margin-top: 14px;
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 0;
}

.pqb-task-toggle:hover {
  color: #1e40af;
  text-decoration: underline;
}

.pqb-task-score {
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.pqb-dash-aging-card,
.pqb-dash-cashflow-chart,
.pqb-dash-cashflow-side,
.pqb-dashboard-overview .card {
  height: 100%;
}

.pqb-overview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.pqb-overview-metrics {
  gap: 12px;
  margin: 16px 0;
}

.pqb-overview-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.pqb-overview-chart-wrap {
  height: 300px;
  min-height: 300px;
}

.pqb-overview-list-wrap {
  border-radius: 18px;
  border: 1px solid #e6edf5;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.88), rgba(255, 255, 255, 0.96));
  padding: 16px;
}

.pqb-overview-list-head {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1d4ed8;
  margin-bottom: 12px;
}

.pqb-overview-list {
  display: grid;
  gap: 10px;
}

.pqb-overview-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #edf2f7;
}

.pqb-overview-list-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.pqb-overview-list-copy {
  min-width: 0;
}

.pqb-overview-list-copy strong {
  display: block;
  font-size: 0.94rem;
  color: #102133;
  margin-bottom: 4px;
}

.pqb-overview-list-copy small {
  display: block;
  color: #64748b;
  line-height: 1.45;
}

.pqb-overview-list-value {
  font-weight: 800;
  color: #102133;
  text-align: right;
}

.pqb-overview-empty {
  color: #64748b;
  font-size: 0.92rem;
  padding: 8px 0 2px;
}

.pqb-dash-aging-card::after {
  left: 22px;
  right: 22px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(125, 211, 252, 0.35));
}

.pqb-dash-cashflow-side {
  background: #ffffff !important;
}

.pqb-welcome-panel {
  background: #ffffff !important;
}

@media (max-width: 760px) {
  .pqb-module-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pqb-module-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .pqb-overview-chart-grid {
    grid-template-columns: 1fr;
  }

  .pqb-overview-chart-wrap {
    height: 260px;
    min-height: 260px;
  }
}

@media (max-width: 1180px) {
  .pqb-module-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .pqb-module-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* =============================================================================
   Amova Finance blue-shell final override
   Keeps the signed-in workspace on the blue brand even when older shell layers
   still carry the previous green styling underneath.
   ============================================================================= */
:root {
  --amova-shell-blue-strong: #1d4ed8;
  --amova-shell-blue: #2563eb;
  --amova-shell-blue-soft: #dbeafe;
}

.sidebar {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.24) 0, transparent 32%),
    linear-gradient(180deg, #081321 0%, #0b1930 48%, #102544 100%) !important;
}

.sidebar .brand::after {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.3), rgba(255, 255, 255, 0.08), rgba(239, 68, 68, 0.18)) !important;
}

.sidebar .brand-sub {
  color: rgba(198, 221, 255, 0.72) !important;
}

.pqb-sidebar-toggle {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(191, 219, 254, 0.96)) !important;
  border: 2px solid rgba(147, 197, 253, 0.9) !important;
  color: var(--amova-shell-blue-strong) !important;
  box-shadow:
    0 14px 24px rgba(8, 19, 33, 0.22),
    0 0 0 4px rgba(219, 234, 254, 0.18) !important;
}

.pqb-sidebar-toggle:hover {
  background: linear-gradient(135deg, rgba(239, 246, 255, 1), rgba(147, 197, 253, 0.98)) !important;
  color: #0f2f7a !important;
}

.sidebar .nav-item.active,
.nav-item.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.26), rgba(255, 255, 255, 0.05), rgba(59, 130, 246, 0.08)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(96, 165, 250, 0.18),
    inset 3px 0 0 rgba(59, 130, 246, 0.92),
    0 10px 22px rgba(37, 99, 235, 0.16) !important;
  color: #ffffff !important;
}

.sidebar .nav-item.active::before,
.nav-item.active::before {
  background: var(--amova-shell-blue) !important;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.55) !important;
}

.nav-item.active .nav-ico,
.nav-item:hover .nav-ico {
  color: #bfdbfe !important;
}

.sidebar-footer .user-chip,
.sidebar .user-chip {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.05)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sidebar .user-avatar,
.user-avatar {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.24) !important;
}

.btn-primary,
.pqb-greet-cta,
.pqb-cmd-btn.pqb-cmd-new {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25) !important;
}

.btn-primary:hover,
.pqb-greet-cta:hover,
.pqb-cmd-btn.pqb-cmd-new:hover {
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.32) !important;
}

.btn-ghost:hover {
  border-color: rgba(59, 130, 246, 0.42) !important;
  color: var(--amova-shell-blue-strong) !important;
  background: rgba(219, 234, 254, 0.45) !important;
}

.nav-search:focus,
.pqb-cmd-search-input:focus {
  border-color: rgba(59, 130, 246, 0.8) !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14) !important;
}

.nav-item mark {
  background: var(--amova-shell-blue) !important;
  color: #fff !important;
}

.pqb-statusbar .pqb-status-left .pqb-status-dot {
  background: var(--amova-shell-blue) !important;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.6) !important;
}

.pqb-dash-greet {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16) 0, transparent 30%),
    radial-gradient(circle at bottom right, rgba(239, 68, 68, 0.08) 0, transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96)) !important;
}

.pqb-greet-stat.is-positive .pqb-greet-stat-value,
.pqb-cf-side-value.incoming,
.pqb-aging-bucket.current .pqb-bucket-label,
.pqb-overview-list-head {
  color: var(--amova-shell-blue-strong) !important;
}

.pqb-aging-bar-seg.current {
  background: linear-gradient(90deg, #3b82f6, #60a5fa) !important;
}

.pqb-task-kicker,
.pqb-action-link,
.pqb-task-toggle,
.pqb-overview-list-head {
  color: var(--amova-shell-blue-strong) !important;
}

.pqb-task-toggle:hover,
.pqb-action-link:hover {
  color: #153eaf !important;
}

.pqb-task-score,
.pqb-aging-chip,
.pqb-welcome-step-num {
  background: rgba(219, 234, 254, 0.88) !important;
  border-color: rgba(147, 197, 253, 0.36) !important;
  color: var(--amova-shell-blue-strong) !important;
}

.pqb-task-progress span,
.pqb-dash-aging-card::after {
  background: linear-gradient(90deg, #3b82f6, #60a5fa, rgba(239, 68, 68, 0.65)) !important;
}

.pqb-module-pill-badge {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}

.pqb-module-pill:hover,
.pqb-action-tile:hover,
.pqb-task-item:hover,
.pqb-welcome-step:hover {
  border-color: rgba(96, 165, 250, 0.22) !important;
}

.company {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.96)) !important;
  border: 1px solid rgba(59, 130, 246, 0.16) !important;
}

.company-name {
  color: #1e3a8a !important;
}

.sidebar .nav-group,
.sidebar .nav-group:hover {
  color: #eef4ff !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(191, 219, 254, 0.14)) !important;
  box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.22) !important;
  text-shadow: 0 1px 0 rgba(8, 19, 33, 0.16);
}

.sidebar .nav-group::after {
  color: #dbeafe !important;
}

.sidebar .nav-group-indicator {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(191, 219, 254, 0.92)) !important;
  color: var(--amova-shell-blue-strong) !important;
  box-shadow:
    0 8px 18px rgba(37, 99, 235, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

.sidebar .nav-item:hover {
  background: linear-gradient(90deg, rgba(219, 234, 254, 0.75), rgba(255, 255, 255, 0.65)) !important;
  border-color: rgba(96, 165, 250, 0.18) !important;
  color: #0f172a !important;
}

.sidebar .nav-item {
  color: rgba(239, 246, 255, 0.92) !important;
  text-shadow: 0 1px 0 rgba(8, 19, 33, 0.14);
}

.sidebar .nav-item .nav-ico {
  color: rgba(191, 219, 254, 0.9) !important;
}

.sidebar .nav-item:hover .nav-ico,
.sidebar .nav-item.active .nav-ico {
  color: #ffffff !important;
}

.sidebar .user-name {
  color: #f8fbff !important;
}

.sidebar .user-role {
  color: rgba(219, 234, 254, 0.86) !important;
}

#logout-btn {
  width: auto !important;
  min-width: 98px;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(147, 197, 253, 0.42) !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.96), rgba(29, 78, 216, 0.96)) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22) !important;
}

#logout-btn:hover {
  background: linear-gradient(135deg, rgba(96, 165, 250, 1), rgba(37, 99, 235, 1)) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.pqb-cmd-search {
  border-color: rgba(147, 197, 253, 0.56) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.9)) !important;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.06) !important;
}

.pqb-cmd-search:hover {
  border-color: rgba(96, 165, 250, 0.74) !important;
  box-shadow:
    inset 0 0 0 1px rgba(59, 130, 246, 0.08),
    0 10px 22px rgba(37, 99, 235, 0.08) !important;
}

.pqb-cmd-search-icon {
  color: var(--amova-shell-blue) !important;
}

.topbar-right .company {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.98)) !important;
  border: 1px solid rgba(147, 197, 253, 0.42) !important;
}

.pqb-task-check,
.pqb-task-item.is-done .pqb-task-check {
  background: rgba(219, 234, 254, 0.9) !important;
  color: var(--amova-shell-blue-strong) !important;
}

.pqb-greet-avatar {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  color: #fff !important;
}

.pqb-cf-side-value.incoming,
.pqb-aging-buckets .current .amt,
.pqb-aging-buckets .current strong {
  color: var(--amova-shell-blue-strong) !important;
}

.pqb-welcome-panel {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14) 0, transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)) !important;
}

.pqb-welcome-step {
  background: rgba(255, 255, 255, 0.86) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

.pqb-task-score {
  border: 1px solid rgba(147, 197, 253, 0.34) !important;
}

.badge-paid,
.title-status.status-paid,
.title-status.status-converted,
.title-status.status-received,
.title-status.status-billed {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

/*
   Proqal Finance blue-glass final override
   Keeps the shell consistently blue/white and removes legacy green accents.
*/
:root {
  --proqal-shell-blue: #2563eb;
  --proqal-shell-blue-strong: #1d4ed8;
  --proqal-shell-blue-soft: #dbeafe;
  --proqal-shell-blue-mist: rgba(59, 130, 246, 0.16);
}

.sidebar {
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18) 0, transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 52%, #e6f0ff 100%) !important;
  border-right: 1px solid rgba(148, 163, 184, 0.18) !important;
}

.sidebar .brand::after {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.26), rgba(255, 255, 255, 0.7), rgba(147, 197, 253, 0.18)) !important;
}

.sidebar .brand-title,
.sidebar .user-name {
  color: #3b82f6 !important;
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.14);
}

.sidebar .brand-sub,
.sidebar .user-role {
  color: rgba(163, 191, 250, 0.98) !important;
}

.sidebar .nav-group,
.sidebar .nav-group:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  box-shadow:
    0 10px 22px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(191, 219, 254, 0.28) !important;
}

.sidebar .nav-group::after {
  color: rgba(255, 255, 255, 0.96) !important;
  opacity: 0.92 !important;
}

.sidebar .nav-item {
  color: #aac6ff !important;
}

.sidebar .nav-item .nav-ico {
  color: rgba(145, 181, 255, 0.98) !important;
}

.sidebar .nav-item:hover {
  background: linear-gradient(90deg, rgba(219, 234, 254, 0.9), rgba(255, 255, 255, 0.72)) !important;
  color: #0f172a !important;
}

.sidebar .nav-item.active,
.nav-item.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.22), rgba(255, 255, 255, 0.62), rgba(191, 219, 254, 0.3)) !important;
  color: #1d4ed8 !important;
  box-shadow:
    inset 3px 0 0 #2563eb,
    0 12px 24px rgba(37, 99, 235, 0.12) !important;
}

.sidebar .nav-item.active::before,
.nav-item.active::before {
  background: #2563eb !important;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.35) !important;
}

.sidebar .nav-item.active .nav-ico,
.nav-item.active .nav-ico {
  color: #2563eb !important;
}

.sidebar .user-chip {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.68), rgba(255, 255, 255, 0.82)) !important;
  border: 1px solid rgba(147, 197, 253, 0.32) !important;
}

.pqb-sidebar-toggle {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  border: 2px solid rgba(255, 255, 255, 0.96) !important;
  color: #ffffff !important;
  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.22),
    0 0 0 4px rgba(219, 234, 254, 0.28) !important;
}

.pqb-sidebar-toggle:hover {
  background: linear-gradient(135deg, #60a5fa, #2563eb) !important;
  color: #ffffff !important;
}

.btn-primary,
.pqb-greet-cta,
.pqb-cmd-btn.pqb-cmd-new,
.r-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24) !important;
}

.pqb-cmd-search,
.pqb-cmd-search-input:focus {
  border-color: rgba(96, 165, 250, 0.68) !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14) !important;
}

.pqb-statusbar .pqb-status-left .pqb-status-dot,
.pqb-aging-bar-seg.current,
.pqb-task-progress span,
.pqb-dash-aging-card::after {
  background: linear-gradient(90deg, #3b82f6, #60a5fa) !important;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.2) !important;
}

.pqb-aging-bucket.current .pqb-bucket-label,
.pqb-cf-side-value.incoming,
.pqb-aging-buckets .current .amt,
.pqb-aging-buckets .current strong,
.pqb-greet-cta,
.pqb-action-link,
.pqb-task-toggle {
  color: #1d4ed8 !important;
}

.pqb-dash-greet,
.pqb-welcome-panel {
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.12) 0, transparent 28%),
    radial-gradient(circle at bottom right, rgba(191, 219, 254, 0.16) 0, transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96)) !important;
}

.pqb-greet-avatar,
.sidebar .user-avatar {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2) !important;
}

.sidebar .brand-title {
  color: #2563eb !important;
  text-shadow: 0 0 18px rgba(37, 99, 235, 0.16) !important;
  font-weight: 800 !important;
}

/* Product logos are wide artwork, not square icons. Keep the full logo visible. */
.login-brand:has(.product-logo-mark) {
  justify-content: center !important;
  gap: 0 !important;
}

/* Dashboard polish: calmer shell, cleaner hierarchy, less crowding */
.topbar {
  grid-template-columns: minmax(220px, 0.9fr) minmax(320px, 520px) auto !important;
  gap: 16px !important;
  padding: 10px 22px !important;
}

.topbar-left {
  gap: 10px !important;
  min-width: 0 !important;
}

.topbar-left h1 {
  max-width: 260px;
  font-size: 1.14rem !important;
}

.page-sub {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pqb-cmd {
  min-width: 0;
}

.pqb-cmd-btn {
  max-width: 100%;
  padding: 9px 14px !important;
  font-size: 0.84rem !important;
}

.sidebar .nav-group {
  color: rgba(191, 219, 254, 0.42) !important;
}

.sidebar .nav-item {
  color: rgba(226, 236, 255, 0.9) !important;
  font-weight: 560 !important;
}

.sidebar .nav-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.sidebar .nav-item.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.24), rgba(147, 197, 253, 0.1)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(147, 197, 253, 0.18),
    0 10px 20px rgba(29, 78, 216, 0.12) !important;
}

.sidebar .nav {
  padding-top: 14px !important;
}

.sidebar .user-chip {
  border-radius: 18px !important;
  padding: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sidebar .user-name {
  color: #f8fbff !important;
}

.sidebar .user-role {
  color: rgba(191, 219, 254, 0.72) !important;
}

.pqb-dashboard-shell,
.pqb-dashboard-intro {
  display: grid;
  gap: 18px;
}

.pqb-dash-greet {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: start !important;
  padding: 22px 24px 18px !important;
}

.pqb-greet-copy {
  display: grid;
  gap: 8px;
}

.pqb-dash-greet h1 {
  line-height: 1.02;
  max-width: 14ch;
}

.pqb-greet-sub {
  font-size: 1rem !important;
}

.pqb-greet-meta {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) !important;
  gap: 10px !important;
  margin-top: 6px !important;
  align-items: stretch;
}

.pqb-greet-stat {
  min-width: 0 !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
}

.pqb-greet-cta {
  align-self: start;
  justify-self: end;
  min-width: 132px;
  justify-content: center;
  margin-top: 6px;
}

.pqb-module-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
  margin-top: 0;
}

.pqb-module-pill {
  min-height: 0;
  padding: 9px 12px !important;
  border-radius: 14px !important;
  justify-content: flex-start !important;
}

.pqb-focus-row {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: start;
}

.pqb-action-card,
.pqb-task-panel,
.pqb-dashboard-overview .card {
  border-radius: 22px !important;
}

.pqb-action-grid {
  gap: 10px !important;
}

.pqb-action-tile {
  min-height: 0;
  padding: 14px 15px !important;
}

.pqb-action-tile strong {
  margin-bottom: 4px !important;
}

.pqb-action-tile span {
  font-size: 0.8rem;
  line-height: 1.38;
}

.pqb-dashboard-overview {
  gap: 18px !important;
}

.pqb-overview-head h3 {
  margin: 2px 0 0 !important;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.pqb-overview-head .btn {
  padding: 10px 14px !important;
  border-radius: 14px !important;
  white-space: nowrap;
}

.pqb-overview-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 14px 0 16px !important;
}

.pqb-overview-metrics .kpi-card {
  padding: 12px 14px !important;
  border-radius: 16px !important;
}

.pqb-overview-metrics .kpi-label {
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pqb-overview-metrics .kpi-value {
  font-size: 1.7rem !important;
}

.pqb-overview-chart-grid {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px) !important;
  gap: 14px !important;
}

.pqb-overview-chart-wrap {
  height: 240px !important;
  min-height: 240px !important;
}

.pqb-overview-list-wrap {
  max-height: 240px;
  overflow: auto;
  padding: 14px !important;
}

.pqb-overview-list {
  gap: 8px !important;
}

.pqb-overview-list-row {
  padding: 10px 0 !important;
}

.pqb-overview-list-copy strong {
  font-size: 0.9rem !important;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pqb-overview-list-copy small {
  font-size: 0.78rem !important;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pqb-overview-list-value {
  font-size: 0.94rem;
}

@media (max-width: 1400px) {
  .page-sub {
    display: none;
  }

  .topbar {
    grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 420px) auto !important;
  }

  .pqb-dash-greet {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .pqb-greet-cta {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
  }

  .pqb-overview-chart-grid {
    grid-template-columns: 1fr !important;
  }

  .pqb-overview-chart-wrap {
    height: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 1000px) {
  .pqb-focus-row,
  .pqb-dashboard-overview {
    grid-template-columns: 1fr !important;
  }

  .pqb-overview-chart-grid {
    grid-template-columns: 1fr !important;
  }

  .pqb-overview-chart-wrap,
  .pqb-overview-list-wrap {
    max-height: none;
  }

  .pqb-module-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .pqb-module-strip,
  .pqb-greet-meta {
    grid-template-columns: 1fr !important;
  }
}

.login-brand:has(.product-logo-mark)::after {
  left: 12% !important;
  right: 12% !important;
}

.login-logo-mark.product-logo-mark {
  width: min(380px, 86vw) !important;
  height: 136px !important;
  padding: 12px 18px !important;
  border-radius: 28px !important;
}

.sidebar .brand:has(.product-logo-mark) {
  justify-content: center !important;
  padding: 18px 14px 20px !important;
  min-height: 112px !important;
}

.sidebar .brand .product-brand-text {
  display: none !important;
}

.sidebar .brand-logo-mark.product-logo-mark {
  width: 188px !important;
  max-width: calc(100% - 28px) !important;
  height: 82px !important;
  padding: 8px 12px !important;
  border-radius: 22px !important;
  font-size: 0 !important;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,246,255,.82)) !important;
  border: 1px solid rgba(147,197,253,.58) !important;
  box-shadow:
    0 18px 34px rgba(37,99,235,.16),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
}

.product-logo-mark img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

#app.pqb-sidebar-collapsed .sidebar .brand:has(.product-logo-mark) {
  min-height: 78px !important;
  padding: 16px 8px !important;
}

#app.pqb-sidebar-collapsed .sidebar .brand-logo-mark.product-logo-mark {
  width: 46px !important;
  height: 46px !important;
  padding: 5px !important;
  border-radius: 16px !important;
}

/*
   Calm sidebar finish
   Keeps the blue Proqal Finance identity but removes the overpowering glass/glow.
*/
.sidebar {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(241, 247, 255, 0.97) 48%, rgba(233, 242, 255, 0.95) 100%) !important;
  border-right: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: 8px 0 28px rgba(15, 23, 42, 0.055) !important;
}

.sidebar::before {
  opacity: 0.16 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 38%) !important;
  pointer-events: none !important;
}

.sidebar .brand::after {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.16), rgba(147, 197, 253, 0.12), rgba(255, 255, 255, 0)) !important;
}

.sidebar .brand-title,
.sidebar .user-name {
  color: #1e3a8a !important;
  text-shadow: none !important;
}

.sidebar .brand-sub,
.sidebar .user-role {
  color: rgba(71, 85, 105, 0.86) !important;
}

.sidebar .nav-group,
.sidebar .nav-group:hover {
  color: #1e40af !important;
  background: rgba(219, 234, 254, 0.56) !important;
  border: 1px solid rgba(147, 197, 253, 0.28) !important;
  box-shadow: none !important;
}

.sidebar .nav-group::after {
  color: #2563eb !important;
  opacity: 0.78 !important;
}

.sidebar .nav-item {
  color: #1d4ed8 !important;
  background: transparent !important;
  text-shadow: none !important;
}

.sidebar .nav-item .nav-ico {
  color: #2563eb !important;
  opacity: 0.84 !important;
}

.sidebar .nav-item:hover {
  color: #0f2f73 !important;
  background: rgba(219, 234, 254, 0.58) !important;
  box-shadow: none !important;
  transform: none !important;
}

.sidebar .nav-item.active,
.nav-item.active {
  color: #123a86 !important;
  background: rgba(191, 219, 254, 0.72) !important;
  box-shadow: inset 3px 0 0 #2563eb !important;
}

.sidebar .nav-item.active::before,
.nav-item.active::before {
  background: #2563eb !important;
  box-shadow: none !important;
}

.sidebar .nav-item.active .nav-ico,
.nav-item.active .nav-ico {
  color: #1d4ed8 !important;
}

.sidebar .user-chip {
  background: rgba(255, 255, 255, 0.64) !important;
  border-color: rgba(147, 197, 253, 0.24) !important;
  box-shadow: none !important;
}

.pqb-sidebar-toggle {
  background: #2563eb !important;
  border: 2px solid rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16) !important;
}

.pqb-sidebar-toggle:hover {
  background: #1d4ed8 !important;
}
