@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --rc-bg: #f3f7f4;
  --rc-surface: rgba(255, 255, 255, 0.82);
  --rc-surface-strong: #ffffff;
  --rc-surface-dark: #102418;
  --rc-text: #102418;
  --rc-text-soft: #5f6f66;
  --rc-border: rgba(16, 36, 24, 0.09);
  --rc-primary: #1f8f5f;
  --rc-primary-dark: #136d46;
  --rc-secondary: #0f172a;
  --rc-accent: #e7f6ec;
  --rc-shadow: 0 18px 45px rgba(16, 36, 24, 0.12);
  --rc-radius: 22px;
  --rc-sidebar-width: 285px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--rc-text);
  background:
    radial-gradient(circle at top left, rgba(82, 180, 120, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(9, 70, 52, 0.08), transparent 23%),
    linear-gradient(180deg, #f7faf7 0%, #edf4ef 100%);
}

h1,
h2,
h3,
h4,
.brand-text,
.card-title,
.login-form-header h2,
.hero-panel h1 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.wrapper,
.content-wrapper,
.main-sidebar,
.main-header,
.main-footer,
.card,
.info-box {
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, margin-left 0.25s ease, width 0.25s ease;
}

body:not(.login-page) .wrapper {
  min-height: 100vh;
  background: transparent;
}

body:not(.login-page) .content-wrapper {
  background: transparent;
  padding-bottom: 2rem;
}

.content-header {
  padding-top: 1.5rem;
}

.content-header .container-fluid > .row,
.content-header .container-fluid > h1 {
  position: relative;
  z-index: 1;
}

.content-header .container-fluid > .row {
  margin-bottom: 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(143, 240, 177, 0.22), transparent 24%),
    rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 38px rgba(16, 36, 24, 0.08);
}

.content-header .container-fluid > h1 {
  margin: 0;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 38px rgba(16, 36, 24, 0.08);
}

.content-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.breadcrumb {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  box-shadow: 0 10px 24px rgba(16, 36, 24, 0.06);
}

.breadcrumb-item a,
.breadcrumb-item.active {
  color: var(--rc-text-soft);
  font-size: 0.82rem;
}

.main-header {
  margin: 1rem 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(16, 36, 24, 0.08);
}

body:not(.sidebar-collapse):not(.login-page) .main-header,
body:not(.sidebar-collapse):not(.login-page) .content-wrapper,
body:not(.sidebar-collapse):not(.login-page) .main-footer {
  margin-left: calc(var(--rc-sidebar-width) + 2rem) !important;
}

body.sidebar-collapse:not(.login-page) .main-header,
body.sidebar-collapse:not(.login-page) .content-wrapper,
body.sidebar-collapse:not(.login-page) .main-footer {
  margin-left: 1rem !important;
}

.main-header .nav-link {
  border-radius: 999px;
  color: var(--rc-text);
}

.main-header .nav-link:hover,
.main-header .nav-link:focus {
  background: rgba(31, 143, 95, 0.1);
  color: var(--rc-primary-dark);
}

.navbar-ops {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.navbar-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(31, 143, 95, 0.1);
  color: var(--rc-primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #2fd27b;
  box-shadow: 0 0 0 5px rgba(47, 210, 123, 0.14);
}

.navbar-user {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 36, 24, 0.08);
  box-shadow: 0 12px 24px rgba(16, 36, 24, 0.06);
}

.navbar-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #1f8f5f, #49c17a);
  font-size: 0.85rem;
}

.dropdown-menu {
  border: 1px solid rgba(16, 36, 24, 0.08);
  border-radius: 18px;
  padding: 0.5rem;
  box-shadow: 0 22px 42px rgba(16, 36, 24, 0.12);
}

.dropdown-item {
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(31, 143, 95, 0.08);
  color: var(--rc-primary-dark);
}

.main-sidebar {
  width: var(--rc-sidebar-width);
  margin: 1rem 0 1rem 1rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(73, 193, 122, 0.18), transparent 35%),
    linear-gradient(180deg, #13281c 0%, #102418 100%);
  box-shadow: 0 22px 52px rgba(16, 36, 24, 0.22);
}

.main-sidebar::before {
  width: var(--rc-sidebar-width);
  border-radius: 28px;
}

body.sidebar-collapse:not(.login-page) .main-sidebar,
body.sidebar-collapse:not(.login-page) .main-sidebar::before {
  margin-left: calc(-1 * (var(--rc-sidebar-width) + 2rem)) !important;
}

body.sidebar-collapse:not(.login-page) .main-sidebar {
  box-shadow: none;
  pointer-events: none;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.3rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #8ff0b1, #1f8f5f);
  color: #092013;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(31, 143, 95, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-link .brand-text {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar .user-panel {
  margin: 1.15rem 1rem 1.35rem;
  padding: 0.95rem;
  border-radius: 20px;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar .user-panel .image img {
  border: 2px solid rgba(255, 255, 255, 0.14);
}

.sidebar .user-panel .info a {
  font-weight: 700;
  color: #ffffff;
}

.user-role {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
}

.nav-sidebar {
  padding: 0 0.8rem 1.2rem;
}

.nav-sidebar > .nav-item {
  margin-bottom: 0.4rem;
}

.nav-sidebar .nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.78rem;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.74);
  padding: 0.78rem 0.95rem;
  font-weight: 600;
  width: 100%;
  overflow: hidden;
}

.nav-sidebar .nav-link > .nav-icon {
  flex: 0 0 1.35rem;
  margin-right: 0;
  text-align: center;
}

.nav-sidebar .nav-link p {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0;
  margin-bottom: 0;
  line-height: 1.35;
  font-size: 0.96rem;
}

.nav-sidebar > .nav-item > .nav-link p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.7rem;
  width: 100%;
}

.nav-sidebar .nav-link:hover,
.nav-sidebar .nav-link:focus,
.nav-sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-sidebar .menu-open > .nav-link {
  background: rgba(143, 240, 177, 0.12);
  color: #ffffff;
}

.nav-sidebar .nav-treeview {
  padding-left: 0;
  margin-top: 0.45rem;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link {
  margin-top: 0.35rem;
  padding: 0.68rem 0.85rem 0.68rem 1rem;
  color: rgba(255, 255, 255, 0.66);
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link > .nav-icon {
  flex-basis: 1rem;
  width: 1rem;
  font-size: 0.7rem;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link p {
  font-size: 0.9rem;
}

.nav-sidebar .nav-link > .right,
.nav-sidebar .nav-link > p > .right,
.nav-sidebar .right {
  position: static !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 0.25rem;
}

.nav-icon {
  width: 1.35rem;
}

.main-sidebar,
.main-sidebar::before {
  width: var(--rc-sidebar-width) !important;
}

.main-sidebar .sidebar {
  height: calc(100% - 5.75rem);
  padding-bottom: 1rem;
  overflow-x: hidden;
}

.card,
.info-box {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--rc-radius);
  background: var(--rc-surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--rc-shadow);
  overflow: hidden;
}

.card:hover,
.info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(16, 36, 24, 0.15);
}

.card-header {
  border-bottom: 1px solid rgba(16, 36, 24, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
}

.card-header,
.card-body,
.card-footer {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.rc-table-card {
  overflow: visible;
}

.rc-table-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 0.95rem;
}

.rc-table-card .card-title {
  margin: 0;
}

.rc-table-shell {
  overflow-x: auto;
  margin: 0 -0.1rem;
  padding-bottom: 0.2rem;
}

.rc-data-table {
  width: 100% !important;
  margin-bottom: 0 !important;
  border-collapse: separate;
  border-spacing: 0 0.55rem;
}

.rc-data-table thead th {
  border: 0 !important;
  background: transparent !important;
  color: var(--rc-text-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rc-data-table tbody tr {
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 16px 28px rgba(16, 36, 24, 0.06);
}

.rc-data-table tbody tr:hover {
  background: rgba(31, 143, 95, 0.06);
}

.rc-data-table tbody td {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  vertical-align: middle;
  border-top: 1px solid rgba(16, 36, 24, 0.07) !important;
  border-bottom: 1px solid rgba(16, 36, 24, 0.07) !important;
  background: rgba(255, 255, 255, 0.84);
}

.rc-data-table tbody td:first-child {
  border-left: 1px solid rgba(16, 36, 24, 0.07) !important;
  border-radius: 16px 0 0 16px;
}

.rc-data-table tbody td:last-child {
  border-right: 1px solid rgba(16, 36, 24, 0.07) !important;
  border-radius: 0 16px 16px 0;
}

.dataTables_wrapper .row:first-child {
  margin-bottom: 1rem;
}

.dataTables_wrapper .row:last-child {
  margin-top: 1rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  font-size: 0.88rem;
  color: var(--rc-text-soft);
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
  margin-bottom: 0;
  font-weight: 700;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(16, 36, 24, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.dataTables_wrapper .dataTables_length select {
  padding-right: 2rem;
}

.dataTables_wrapper .dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dataTables_wrapper .dt-buttons .btn,
.dataTables_wrapper .btn {
  border-radius: 12px;
}

.dataTables_wrapper .dt-buttons .btn {
  border: 0;
  padding: 0.58rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(16, 36, 24, 0.06);
  color: var(--rc-text);
}

.dataTables_wrapper .dt-buttons .btn:hover,
.dataTables_wrapper .dt-buttons .btn:focus {
  background: rgba(31, 143, 95, 0.12);
  color: var(--rc-primary-dark);
}

.btn.btn-xs {
  border: 0;
  border-radius: 12px;
  padding: 0.48rem 0.72rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: none;
}

.card-footer {
  border-top: 1px solid rgba(16, 36, 24, 0.07);
  background: rgba(255, 255, 255, 0.35);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
}

.card-subtitle {
  color: var(--rc-text-soft);
  font-size: 0.88rem;
}

.info-box {
  min-height: 132px;
  padding: 0.35rem;
}

.info-box .info-box-icon {
  width: 5.2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 143, 95, 0.14), rgba(73, 193, 122, 0.24));
}

.info-box .info-box-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.info-box .info-box-content {
  justify-content: center;
}

.info-box .info-box-text {
  color: var(--rc-text-soft);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-box .info-box-number {
  display: block;
  margin-top: 0.35rem;
  color: var(--rc-text);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
}

.hero-panel {
  margin-bottom: 1.5rem;
  padding: 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: 1rem;
  padding: 1.4rem;
}

.hero-copy {
  padding: 1.8rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(143, 240, 177, 0.24), transparent 26%),
    linear-gradient(135deg, #11291c, #1f8f5f);
  color: #ffffff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 1rem 0 0.85rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

.hero-copy p {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-actions .btn {
  min-width: 160px;
}

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

.hero-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1.2rem;
  border: 1px solid rgba(16, 36, 24, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-stat-label {
  color: var(--rc-text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.hero-stat-note {
  color: var(--rc-text-soft);
  font-size: 0.85rem;
}

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

.btn-primary,
.btn-info,
.btn-success {
  border-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #1f8f5f, #49c17a);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #19744d, #3daf6d);
}

.btn-secondary {
  border-color: transparent;
  background: rgba(15, 23, 42, 0.08);
  color: var(--rc-secondary);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(15, 23, 42, 0.14);
  color: var(--rc-secondary);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.form-control,
.custom-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 46px;
  border-radius: 14px;
  border-color: rgba(16, 36, 24, 0.12);
  box-shadow: none;
}

.form-control:focus,
.custom-select:focus {
  border-color: rgba(31, 143, 95, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(31, 143, 95, 0.12);
}

.form-group label {
  margin-bottom: 0.45rem;
  color: var(--rc-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-group small,
.text-muted {
  color: var(--rc-text-soft) !important;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  border-top: 0;
  border-bottom: 1px solid rgba(16, 36, 24, 0.08);
  color: var(--rc-text-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table td,
.table th {
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(16, 36, 24, 0.06);
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(248, 252, 249, 0.82);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border-radius: 12px;
  border-color: rgba(16, 36, 24, 0.12);
  min-height: 38px;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  padding-top: 0.6rem;
}

.alert {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(16, 36, 24, 0.08);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill.success {
  background: rgba(31, 143, 95, 0.12);
  color: var(--rc-primary-dark);
}

.status-pill.warn {
  background: rgba(245, 158, 11, 0.14);
  color: #a16207;
}

.section-spacer {
  height: 0.4rem;
}

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

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--rc-shadow);
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 143, 95, 0.16), transparent 68%);
}

.metric-label {
  display: block;
  color: var(--rc-text-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  margin-top: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.metric-note {
  display: block;
  margin-top: 0.65rem;
  color: var(--rc-text-soft);
  font-size: 0.88rem;
}

.metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.metric-trend.up {
  background: rgba(31, 143, 95, 0.12);
  color: var(--rc-primary-dark);
}

.metric-trend.down {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.metric-trend.neutral {
  background: rgba(15, 23, 42, 0.08);
  color: var(--rc-secondary);
}

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

.analytics-span-4 {
  grid-column: span 4;
}

.analytics-span-5 {
  grid-column: span 5;
}

.analytics-span-6 {
  grid-column: span 6;
}

.analytics-span-7 {
  grid-column: span 7;
}

.analytics-span-8 {
  grid-column: span 8;
}

.analytics-span-12 {
  grid-column: span 12;
}

.analytics-card {
  height: 100%;
}

.analytics-card .card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding-top: 1rem;
  padding-bottom: 0.9rem;
}

.analytics-card .card-title,
.analytics-card .card-subtitle {
  margin: 0;
}

.analytics-card .card-subtitle {
  max-width: 38rem;
  line-height: 1.45;
}

.chart-stage {
  position: relative;
  min-height: 320px;
}

.chart-stage.chart-stage-sm {
  min-height: 260px;
}

.analytics-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.analytics-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(16, 36, 24, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.analytics-list-copy {
  min-width: 0;
}

.analytics-list-title {
  display: block;
  color: var(--rc-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.analytics-list-subtitle {
  display: block;
  margin-top: 0.15rem;
  color: var(--rc-text-soft);
  font-size: 0.82rem;
}

.analytics-list-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

.analysis-hero-copy p {
  max-width: 52rem;
  margin-bottom: 0;
  color: var(--rc-text-soft);
}

.analysis-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.analysis-shortcut-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(16, 36, 24, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
}

.analysis-shortcut-card:hover,
.analysis-shortcut-card:focus {
  text-decoration: none;
  color: inherit;
  border-color: rgba(31, 143, 95, 0.16);
  box-shadow: 0 18px 34px rgba(16, 36, 24, 0.08);
}

.analysis-shortcut-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 16px;
  background: rgba(31, 143, 95, 0.12);
  color: var(--rc-primary-dark);
  font-size: 1rem;
}

.analysis-shortcut-title {
  font-size: 1rem;
  font-weight: 800;
}

.analysis-shortcut-note {
  color: var(--rc-text-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.analysis-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(16, 36, 24, 0.06);
}

.analysis-toolbar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.analysis-toolbar-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.analysis-toolbar-title {
  font-size: 0.96rem;
  font-weight: 800;
}

.analysis-toolbar-note {
  color: var(--rc-text-soft);
  font-size: 0.84rem;
}

.analysis-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}

.analysis-filter-form .form-control {
  min-width: 180px;
}

.analysis-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.analysis-toolbar-panel {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 36, 24, 0.08);
}

.analysis-toolbar-panel[hidden] {
  display: none !important;
}

.analysis-toggle-btn {
  white-space: nowrap;
}

.analysis-toolbar.is-open .analysis-toggle-btn {
  background: rgba(31, 143, 95, 0.1);
  border-color: rgba(31, 143, 95, 0.24);
  color: var(--rc-primary-dark);
}

.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(16, 36, 24, 0.06);
}

.page-toolbar-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.page-toolbar-title {
  font-size: 0.96rem;
  font-weight: 800;
}

.page-toolbar-note {
  color: var(--rc-text-soft);
  font-size: 0.84rem;
}

.page-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex: 1 1 520px;
}

.page-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.page-filter-form .form-control,
.page-filter-form .custom-select {
  min-width: 170px;
}

.page-toolbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.page-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(16, 36, 24, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 28px rgba(16, 36, 24, 0.05);
}

.page-kpi-label {
  color: var(--rc-text-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-kpi-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.page-kpi-note {
  color: var(--rc-text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.analytics-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.analytics-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 143, 95, 0.1);
  color: var(--rc-primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}

.dot.plastic {
  background: #3b82f6;
}

.dot.paper {
  background: #94a3b8;
}

.dot.metal {
  background: #10b981;
}

.dot.domestic {
  background: #f59e0b;
}

.insight-table td:first-child,
.insight-table th:first-child {
  width: 55%;
}

.pagination .page-link {
  border: 0;
  color: var(--rc-text);
  border-radius: 12px;
  margin: 0 0.15rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 20px rgba(16, 36, 24, 0.06);
}

.pagination .page-item.active .page-link {
  color: #ffffff;
  background: linear-gradient(135deg, #1f8f5f, #49c17a);
}

.main-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 1rem 1rem;
  padding: 1rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(16, 36, 24, 0.08);
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-copy strong {
  color: var(--rc-text);
}

.footer-copy span {
  color: var(--rc-text-soft);
  font-size: 0.85rem;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--rc-text-soft);
  font-size: 0.82rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(31, 143, 95, 0.1);
  color: var(--rc-primary-dark);
  font-weight: 800;
}

.login-page {
  min-height: 100vh;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at top left, rgba(143, 240, 177, 0.42), transparent 24%),
    radial-gradient(circle at bottom right, rgba(31, 143, 95, 0.24), transparent 28%),
    linear-gradient(135deg, #edf6ef 0%, #f7fbf8 48%, #e8f1eb 100%);
}

.login-box-modern {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.login-card {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 26px 60px rgba(16, 36, 24, 0.16);
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.login-shell {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.4rem 2.4rem 2.15rem;
  background:
    linear-gradient(135deg, rgba(17, 41, 28, 0.98), rgba(31, 143, 95, 0.92)),
    #1f8f5f;
  color: #ffffff;
}

.login-form-panel {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 2.2rem;
  background: #ffffff;
}

.login-form-panel-inner {
  width: 100%;
  margin: 0;
}

.login-brand-copy {
  max-width: 30rem;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.44rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-brand-panel h1 {
  margin: 1rem 0 0.55rem;
  color: #ffffff;
  font-size: clamp(2.3rem, 4vw, 3.15rem);
  line-height: 1.02;
}

.login-brand-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  line-height: 1.7;
}

.login-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.login-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.login-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  flex: 0 0 auto;
}

.login-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.login-feature-copy strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.login-feature-copy span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.55;
}

.login-form-header {
  text-align: left;
}

.login-form-header h2 {
  margin: 0;
  color: #102418;
  font-size: 1.7rem;
  line-height: 1.15;
}

.login-form-header p {
  color: #526259;
  margin: 0.55rem 0 1.35rem;
  line-height: 1.55;
}

.login-form-panel form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.login-field {
  margin-bottom: 0;
}

.login-field label {
  display: block;
  margin-bottom: 0.45rem;
  color: #102418;
  font-size: 0.92rem;
  font-weight: 700;
}

.login-card .input-group {
  align-items: stretch;
  margin-bottom: 0 !important;
}

.login-card .input-group-text {
  min-width: 52px;
  justify-content: center;
  border-radius: 0 16px 16px 0;
  border-color: #d6e2db;
  background: #f3f7f4;
  color: #526259;
}

.login-card .form-control {
  border-right: 0;
  border-color: #d6e2db;
  border-radius: 16px 0 0 16px;
  background: #f3f7f4;
  color: #102418;
  font-size: 0.98rem;
  padding-left: 1rem;
}

.login-card .form-control,
.login-card .input-group-text,
.login-card .btn-block {
  min-height: 56px;
}

.login-card .form-control::placeholder {
  color: #7a8a81;
}

.login-card .form-control:focus {
  background: #ffffff;
  border-color: rgba(31, 143, 95, 0.5);
}

.login-card .input-group:focus-within .input-group-text {
  background: #ffffff;
  border-color: rgba(31, 143, 95, 0.5);
  color: #1f8f5f;
}

.login-card .btn-block {
  margin-top: 0.25rem;
  border-radius: 16px;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
}

.login-helper-text {
  color: #66776e;
  font-size: 0.84rem;
  text-align: center;
  margin: 1rem 0 0;
  line-height: 1.6;
}

.rc-inline-alert {
  border: 1px solid rgba(220, 53, 69, 0.12);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  background: #fff3f4;
  color: #8d1b28;
}

.rc-fade-in {
  animation: rc-rise 0.48s ease both;
}

@keyframes rc-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.dark-mode {
  --rc-bg: #08140d;
  --rc-surface: rgba(11, 28, 18, 0.78);
  --rc-surface-strong: #0d2417;
  --rc-text: #ebf8f1;
  --rc-text-soft: #91a89b;
  --rc-border: rgba(255, 255, 255, 0.08);
  --rc-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at top left, rgba(73, 193, 122, 0.16), transparent 24%),
    linear-gradient(180deg, #08140d 0%, #0d1d14 100%);
  color: var(--rc-text);
}

body.dark-mode .main-header,
body.dark-mode .main-footer,
body.dark-mode .card,
body.dark-mode .info-box,
body.dark-mode .hero-stat,
body.dark-mode .metric-card,
body.dark-mode .breadcrumb,
body.dark-mode .navbar-user {
  background: rgba(10, 24, 16, 0.84);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--rc-text);
}

body.dark-mode .content-wrapper {
  background: transparent;
}

body.dark-mode .card-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .content-header .container-fluid > .row,
body.dark-mode .content-header .container-fluid > h1,
body.dark-mode .analytics-list-item {
  background: rgba(10, 24, 16, 0.84);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .table thead th,
body.dark-mode .breadcrumb-item a,
body.dark-mode .breadcrumb-item.active,
body.dark-mode .footer-copy span,
body.dark-mode .footer-meta,
body.dark-mode .hero-stat-label,
body.dark-mode .hero-stat-note,
body.dark-mode .info-box .info-box-text,
body.dark-mode .login-form-header p,
body.dark-mode .login-helper-text {
  color: var(--rc-text-soft);
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.02);
}

body.dark-mode .form-control,
body.dark-mode .custom-select,
body.dark-mode .select2-container--default .select2-selection--single,
body.dark-mode .select2-container--default .select2-selection--multiple,
body.dark-mode .login-card .input-group-text {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--rc-text);
}

body.dark-mode .dataTables_wrapper .dataTables_filter input,
body.dark-mode .dataTables_wrapper .dataTables_length select,
body.dark-mode .dataTables_wrapper .dt-buttons .btn,
body.dark-mode .page-toolbar,
body.dark-mode .page-kpi,
body.dark-mode .analysis-toolbar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--rc-text);
}

body.dark-mode .analysis-toolbar-panel {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .rc-data-table tbody tr:hover {
  background: rgba(143, 240, 177, 0.08);
}

@media (max-width: 991.98px) {
  body:not(.login-page) .main-header,
  body:not(.login-page) .content-wrapper,
  body:not(.login-page) .main-footer {
    margin-left: 0.75rem;
  }

  .main-header {
    margin-right: 0.75rem;
    margin-left: 0.75rem;
  }

  .main-sidebar {
    width: calc(var(--rc-sidebar-width) - 10px);
    margin-left: 0.75rem;
    margin-right: 0;
    z-index: 1042;
  }

  .main-sidebar::before {
    width: calc(var(--rc-sidebar-width) - 10px);
  }

  body:not(.sidebar-open):not(.login-page) .main-sidebar,
  body:not(.sidebar-open):not(.login-page) .main-sidebar::before {
    margin-left: calc(-1 * var(--rc-sidebar-width)) !important;
  }

  body:not(.sidebar-open):not(.login-page) .main-sidebar {
    pointer-events: none;
  }

  body.sidebar-open:not(.login-page) .main-sidebar,
  body.sidebar-open:not(.login-page) .main-sidebar::before {
    margin-left: 0.75rem !important;
  }

  body.sidebar-open:not(.login-page) .main-sidebar {
    pointer-events: auto;
  }

  body.sidebar-open:not(.login-page) .main-header,
  body.sidebar-open:not(.login-page) .content-wrapper,
  body.sidebar-open:not(.login-page) .main-footer {
    margin-left: 0.75rem !important;
  }

  .login-box-modern {
    width: min(860px, 100%);
  }

  .login-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .login-brand-panel,
  .login-form-panel {
    padding: 1.9rem;
  }

  .content-header {
    padding-top: 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .analytics-span-4,
  .analytics-span-5,
  .analytics-span-6,
  .analytics-span-7,
  .analytics-span-8 {
    grid-column: span 12;
  }

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

  .analysis-toolbar {
    padding: 1rem;
  }

  .analysis-toolbar-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .main-footer {
    flex-direction: column;
    align-items: flex-start;
    margin-right: 0.75rem;
    margin-left: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .main-header {
    padding-left: 0.2rem;
    padding-right: 0.35rem;
  }

  .navbar-user {
    padding-right: 0.35rem;
    padding-left: 0.45rem;
  }

  .navbar-user > span:last-child {
    display: none;
  }

  .navbar-status {
    display: none;
  }

  .hero-copy {
    padding: 1.4rem;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    gap: 1.35rem;
    padding: 1.5rem 1.25rem 1.1rem;
  }

  .login-form-panel {
    padding: 1.2rem 1.25rem 1.35rem;
  }

  .login-brand-panel h1 {
    font-size: 1.7rem;
  }

  .login-feature-item {
    padding: 0.9rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .analysis-shortcuts {
    grid-template-columns: 1fr;
  }

  .analysis-filter-form {
    width: 100%;
  }

  .analysis-filter-form .form-control,
  .analysis-filter-form .btn,
  .page-filter-form,
  .page-filter-form .form-control,
  .page-filter-form .custom-select,
  .analysis-toolbar-actions {
    width: 100%;
  }

  .content-header h1 {
    font-size: 1.5rem;
  }

  .analysis-toolbar-actions,
  .page-toolbar-links {
    gap: 0.55rem;
  }

  .table td,
  .table th {
    padding: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
