@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/sourcesanspro/SourceSansPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/sourcesanspro/SourceSansPro-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/sourcesanspro/SourceSansPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-ink: #14213d;
  --brand-accent: #f97316;
  --brand-accent-soft: rgba(249, 115, 22, 0.14);
  --brand-sky: #eef4ff;
  --brand-surface: rgba(255, 255, 255, 0.92);
  --brand-border: rgba(20, 33, 61, 0.08);
  --brand-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --brand-shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.06);
  --brand-text: #21304b;
  --brand-muted: #71809b;
  --brand-success: #0f9f67;
  --brand-danger: #d64545;
}

html,
body {
  font-family: "Source Sans Pro", "Segoe UI", sans-serif;
  color: var(--brand-text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #f6f8fc 0%, #eef2f9 100%);
}

body {
  letter-spacing: 0.01em;
}

.container-scroller {
  background: transparent;
}

.navbar {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.navbar .navbar-brand-wrapper {
  background: transparent;
  border-right: 1px solid rgba(20, 33, 61, 0.06);
}

.navbar .brand-logo img,
.navbar .brand-logo-mini img {
  max-height: 38px;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  margin-left: 0.9rem;
}

.brand-title strong {
  font-size: 1rem;
  color: var(--brand-ink);
  font-weight: 700;
}

.brand-title span {
  font-size: 0.76rem;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(20, 33, 61, 0.05);
  color: var(--brand-text);
  border: 1px solid rgba(20, 33, 61, 0.06);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.topbar-chip i {
  color: var(--brand-accent);
}

.nav-profile .nav-link {
  background: rgba(20, 33, 61, 0.04);
  border: 1px solid rgba(20, 33, 61, 0.06);
  border-radius: 16px;
  padding: 0.45rem 0.7rem;
}

.nav-profile .nav-link img,
.sidebar .nav-profile img {
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.sidebar {
  background: linear-gradient(180deg, rgba(20, 33, 61, 0.98), rgba(17, 24, 39, 0.98));
  box-shadow: 18px 0 40px rgba(15, 23, 42, 0.14);
}

.sidebar .nav-profile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  margin: 1rem;
  padding: 1rem;
}

.sidebar .sidebar-profile-name,
.sidebar .sidebar-profile-designation,
.sidebar .nav .nav-link .menu-title,
.sidebar .nav .nav-link i {
  color: rgba(255, 255, 255, 0.92) !important;
}

.sidebar .nav .nav-link {
  border-radius: 16px;
  margin: 0.2rem 0.8rem;
  padding: 0.95rem 1rem;
  transition: all 0.2s ease;
}

.sidebar .nav .nav-link:hover,
.sidebar .nav .nav-item.active > .nav-link,
.sidebar .nav .sub-menu .nav-link.active {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.18), rgba(59, 130, 246, 0.18));
  transform: translateX(2px);
}

.sidebar .nav.sub-menu,
.sidebar .nav .sub-menu {
  background: transparent;
}

.page-body-wrapper {
  background: transparent;
}

.main-panel {
  background: transparent;
}

.content-wrapper {
  background: transparent;
  padding: 2rem 2rem 1.5rem;
}

.theme-setting-wrapper,
#settings-trigger {
  display: none;
}

.card,
.modal-content,
.auth-form-light {
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  box-shadow: var(--brand-shadow-soft);
  background: var(--brand-surface);
}

.card {
  overflow: hidden;
}

.card .card-title,
.modal-title {
  color: var(--brand-ink);
  font-weight: 700;
  letter-spacing: 0;
}

.footer {
  background: transparent;
}

.footer .footer-wrap {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 33, 61, 0.06);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  box-shadow: var(--brand-shadow-soft);
}

.btn {
  border-radius: 14px;
  font-weight: 600;
  box-shadow: none;
}

.btn-primary,
.btn-success {
  border: none;
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.btn-primary:hover,
.btn-success:hover {
  background: linear-gradient(135deg, #ea6b12, #f5832b);
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-inverse-info {
  border-radius: 14px;
}

.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 46px;
  border-radius: 14px !important;
  border: 1px solid rgba(20, 33, 61, 0.12) !important;
  box-shadow: none !important;
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: rgba(249, 115, 22, 0.7) !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12) !important;
}

.select2-dropdown {
  border-radius: 16px !important;
  border: 1px solid rgba(20, 33, 61, 0.1) !important;
  box-shadow: var(--brand-shadow-soft);
}

.input-group > .form-control,
.input-group > .btn {
  min-height: 48px;
}

.table-responsive {
  border-radius: 20px;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  border-top: 0;
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(20, 33, 61, 0.03);
}

.table td {
  vertical-align: middle;
  border-color: rgba(20, 33, 61, 0.06);
}

.table-bordered {
  border: 1px solid rgba(20, 33, 61, 0.06);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border-radius: 12px;
  border: 1px solid rgba(20, 33, 61, 0.12);
  min-height: 40px;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: var(--brand-accent-soft);
  color: #b45309;
  font-weight: 700;
  font-size: 0.78rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2,
.section-header h3,
.section-header h4 {
  margin-bottom: 0.25rem;
  color: var(--brand-ink);
  font-weight: 700;
}

.section-header p {
  margin: 0;
  color: var(--brand-muted);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #14213d, #1d4ed8);
  color: #fff;
  box-shadow: 0 24px 60px rgba(20, 33, 61, 0.2);
}

.hero-panel h2,
.hero-panel h3,
.hero-panel p,
.hero-panel .text-muted {
  color: #fff !important;
}

.hero-panel .muted-soft {
  color: rgba(255, 255, 255, 0.74) !important;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-actions .btn {
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
}

.hero-actions .btn-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.25rem 1.15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 33, 61, 0.06);
  box-shadow: var(--brand-shadow-soft);
}

.stat-card .label {
  color: var(--brand-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.stat-card .value {
  margin: 0.45rem 0 0.3rem;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--brand-ink);
}

.stat-card .meta {
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.quick-link-card {
  display: block;
  padding: 1.1rem 1.1rem 1rem;
  border-radius: 22px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: var(--brand-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--brand-shadow);
  text-decoration: none;
}

.quick-link-card i {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 0.9rem;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.quick-link-card strong {
  display: block;
  color: var(--brand-ink);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.quick-link-card span {
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.panel-subtle {
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: var(--brand-shadow-soft);
}

.page-intro {
  margin-bottom: 1.25rem;
}

.page-intro h4,
.page-intro h3 {
  margin-bottom: 0.35rem;
}

.page-intro p {
  margin-bottom: 0;
  color: var(--brand-muted);
}

.modal-header,
.modal-footer {
  border-color: rgba(20, 33, 61, 0.08);
}

.auth .auth-form-light {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  padding-top: 2.25rem !important;
  padding-bottom: 2.25rem !important;
}

.auth .brand-logo img {
  max-height: 52px;
}

.login-page-shell {
  position: relative;
}

.login-page-shell::before,
.login-page-shell::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(20px);
  z-index: 0;
}

.login-page-shell::before {
  width: 280px;
  height: 280px;
  background: rgba(249, 115, 22, 0.16);
  top: 8%;
  left: 7%;
}

.login-page-shell::after {
  width: 340px;
  height: 340px;
  background: rgba(59, 130, 246, 0.14);
  right: 6%;
  bottom: 10%;
}

.login-panel-note {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  background: rgba(20, 33, 61, 0.04);
  border-radius: 16px;
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.legacy-dashboard {
  opacity: 0.7;
}

.legacy-dashboard-hidden {
  display: none !important;
}

.dashboard-v2__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 1.9rem;
  border-radius: 28px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  background:
    radial-gradient(circle at right top, rgba(249, 115, 22, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 249, 253, 0.92));
  box-shadow: var(--brand-shadow-soft);
}

.dashboard-v2__hero h2 {
  margin: 0.7rem 0 0.4rem;
  color: var(--brand-ink);
  font-size: 2rem;
  font-weight: 700;
}

.dashboard-v2__hero p {
  max-width: 720px;
  margin: 0;
  color: var(--brand-muted);
  font-size: 1rem;
}

.dashboard-v2__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-v2__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-metric-card {
  padding: 1.25rem 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--brand-shadow-soft);
}

.dashboard-metric-card .metric-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--brand-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.dashboard-metric-card .metric-value {
  display: block;
  color: var(--brand-ink);
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 700;
}

.dashboard-metric-card .metric-note {
  display: block;
  margin-top: 0.45rem;
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.dashboard-metric-card .metric-note span {
  color: var(--brand-accent);
  font-weight: 700;
}

.dashboard-v2-card {
  height: 100%;
}

.dashboard-v2-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-v2-chart {
  min-height: 250px;
}

.dashboard-v2-chart--large {
  min-height: 320px;
}

.dashboard-v2-best {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.dashboard-v2-donut {
  display: flex;
  align-items: center;
  justify-content: center;
}

.compact-legend li {
  margin-bottom: 0.65rem;
}

.compact-legend li:last-child {
  margin-bottom: 0;
}

.dashboard-v2-gauge {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

#dashboardProductOrderGauge {
  min-height: 220px;
}

@media (max-width: 1199px) {
  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-v2__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-v2-best {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .content-wrapper {
    padding: 1.2rem 1rem;
  }

  .quick-links,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .brand-title {
    display: none;
  }

  .topbar-chip {
    display: none;
  }

  .hero-panel {
    padding: 1.35rem;
  }

  .dashboard-v2__hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-v2__metrics {
    grid-template-columns: 1fr;
  }
}
