/* Shared Advance Report theme (aligned with Dashboard + Phoenix) */
.advance-report-page {
  background: #f5f7fa;
}
.advance-report-page .report-toolbar {
  background: #fff;
  border-bottom: 1px solid var(--phoenix-border-color, #e3e6ed);
}
.advance-report-page .report-toolbar-inner {
  padding: 1.1rem 1.5rem 1.25rem;
}
.advance-report-page .report-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #222834;
  margin: 0;
  letter-spacing: -0.02em;
}
.advance-report-page .report-subtitle {
  margin: 0.2rem 0 0;
  color: #6e7891;
  font-size: 0.86rem;
}
.advance-report-page .breadcrumb {
  margin-bottom: 0;
  background: transparent;
  font-size: 0.8rem;
}
.advance-report-page .breadcrumb-item + .breadcrumb-item::before {
  color: #9fa6bc;
}
.advance-report-page .breadcrumb a {
  color: #6e7891;
  text-decoration: none;
}
.advance-report-page .breadcrumb-item.active {
  color: #3874ff;
  font-weight: 600;
}

.advance-report-page .report-filter-panel {
  background: var(--phoenix-gray-50, #f8f9fb);
  border: 1px solid var(--phoenix-border-color, #e3e6ed);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
}
.advance-report-page .report-filter-panel .form-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6e7891;
  margin-bottom: 0.3rem;
}
.advance-report-page .report-filter-panel .form-control,
.advance-report-page .report-filter-panel .form-select {
  border-radius: 0.5rem;
  border-color: #d8dee8;
  min-height: 2.35rem;
}
.advance-report-page .report-filter-panel .form-control:focus,
.advance-report-page .report-filter-panel .form-select:focus {
  border-color: #3874ff;
  box-shadow: 0 0 0 0.2rem rgba(56, 116, 255, 0.15);
}
.advance-report-page .report-body {
  padding: 1.25rem 1.5rem 2rem;
}

.dashboard-stat-card {
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid transparent;
  height: 100%;
}
.dashboard-stat-card p {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem !important;
}
.dashboard-stat-card h3 {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.dashboard-stat-purple { background: #ede9fe; }
.dashboard-stat-yellow { background: #fef3c7; }
.dashboard-stat-blue { background: #dbeafe; }
.dashboard-stat-green { background: #dcfce7; }
.dashboard-stat-teal { background: #ccfbf1; }
.dashboard-stat-red { background: #fee2e2; }
.dashboard-stat-badge {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #111827 !important;
  font-weight: 700;
  font-size: 0.72rem;
}

.dashboard-chart-card {
  border-radius: 0.85rem !important;
  overflow: hidden;
  border: 1px solid var(--phoenix-border-color, #e3e6ed) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
}
.dashboard-chart-card .card-header {
  background: #fff;
  border-bottom: 1px solid #eef1f6 !important;
  padding: 0.95rem 1.15rem 0.35rem !important;
}
.dashboard-chart-card .card-header h5 {
  font-size: 1rem;
  color: #222834;
}
.dashboard-chart-card .card-body {
  overflow: hidden;
  padding: 0.75rem 1.15rem 1.15rem !important;
}
.dashboard-chart {
  min-height: 280px;
}
.dashboard-type-progress {
  height: 8px;
  border-radius: 999px;
  background: #eef2f7;
}

.advance-report-table {
  margin-bottom: 0;
}
.advance-report-table thead th {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5e6a75;
  white-space: nowrap;
  background: #f5f7fa !important;
  border-bottom: 1px solid #e3e6ed !important;
  padding: 0.75rem 0.7rem;
}
.advance-report-table tbody td {
  font-size: 0.86rem;
  color: #31374a;
  padding: 0.78rem 0.7rem;
  border-color: #eef1f4;
  vertical-align: middle;
}
.advance-report-table tbody tr:hover {
  background: #f8faff;
}
.advance-report-table .btn-view {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  color: #3874ff;
  background: #eef3ff;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.advance-report-table .btn-view:hover {
  background: #3874ff;
  color: #fff;
}

.interest-ring-wrap {
  display: inline-flex;
  align-items: center;
}
.interest-ring {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.interest-ring::before {
  content: "";
  position: absolute;
  inset: 0.3rem;
  border-radius: 50%;
  background: #fff;
}
.interest-ring span {
  position: relative;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 700;
  color: #31374a;
}

.report-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #7d879c;
}
.report-empty i {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  opacity: 0.55;
}

/* ========== User Individual Report ========== */
.uir-page {
  background: #f5f7fa;
}
.uir-topbar {
  background: #fff;
  border-bottom: 1px solid #e3e6ed;
}
.uir-page-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #222834;
  letter-spacing: -0.02em;
}
.uir-breadcrumb {
  background: transparent;
  font-size: 0.8rem;
}
.uir-breadcrumb a {
  color: #6e7891;
  text-decoration: none;
}
.uir-breadcrumb .breadcrumb-item.active {
  color: #3874ff;
  font-weight: 600;
}
.uir-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #a9b1c5;
}

.uir-card {
  border: 1px solid #e3e6ed !important;
  border-radius: 0.9rem !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
  background: #fff;
  overflow: hidden;
}
.uir-card-head {
  padding: 1rem 1.25rem 0.25rem;
}
.uir-card-head h5 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #222834;
}

.uir-donut {
  min-height: 300px;
}
.uir-chart-funnel {
  min-height: 280px;
}
.uir-chart-pipeline {
  min-height: 300px;
}

.uir-kpi-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.uir-kpi {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.55rem;
}
.uir-kpi__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}
.uir-kpi__value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  text-align: right;
}
.uir-kpi__pct {
  min-width: 3.4rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.uir-kpi--teal { background: #99f6e4; }
.uir-kpi--blue { background: #93c5fd; }
.uir-kpi--violet { background: #c4b5fd; }
.uir-kpi--green { background: #86efac; }
.uir-kpi--red { background: #fca5a5; }

.uir-profile {
  top: 1rem;
}
.uir-profile__header {
  height: 4.25rem;
  background: #31374a;
}
.uir-profile__body {
  padding: 0 1.25rem 1.35rem;
}
.uir-profile__identity {
  margin-top: -2.1rem;
  margin-bottom: 0.35rem;
}
.uir-profile__avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  background: #e5e7eb;
  margin-bottom: 0.65rem;
}
.uir-profile__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #222834;
  margin: 0 0 0.15rem;
}
.uir-profile__role {
  margin: 0;
  color: #6e7891;
  font-size: 0.9rem;
  font-weight: 600;
}
.uir-profile__meta {
  margin-top: 1.1rem;
  border-top: 1px solid #eef1f4;
}
.uir-profile__meta li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #eef1f4;
  font-size: 0.88rem;
}
.uir-profile__meta li:last-child {
  border-bottom: 0;
}
.uir-profile__meta span {
  color: #6b7684;
  font-weight: 500;
  flex-shrink: 0;
}
.uir-profile__meta strong {
  text-align: right;
  color: #222834;
  font-weight: 700;
}
.uir-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.uir-status--active {
  background: #dcfce7;
  color: #15803d;
}
.uir-status--inactive {
  background: #e5e7eb;
  color: #4b5563;
}
.uir-profile__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.uir-btn-primary {
  background: #31374a !important;
  border-color: #31374a !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 0.5rem !important;
  min-height: 2.55rem;
  box-shadow: 0 6px 14px rgba(49, 55, 74, 0.22);
}
.uir-btn-primary:hover {
  background: #222834 !important;
  border-color: #222834 !important;
  color: #fff !important;
}
.uir-filter-box {
  background: #f8f9fb;
  border: 1px solid #e3e6ed;
  border-radius: 0.65rem;
  padding: 0.9rem;
}
.uir-filter-box .form-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6e7891;
  margin-bottom: 0.25rem;
}

@media (max-width: 1199.98px) {
  .uir-profile {
    position: static !important;
  }
}
@media (max-width: 991.98px) {
  .uir-content {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 991.98px) {
  .advance-report-page .report-body {
    padding: 1rem;
  }
  .advance-report-page .report-toolbar-inner {
    padding: 1rem;
  }
}

