:root {
  --primary: #1a6b3c;
  --primary-dark: #0f5130;
  --primary-light: #e8f4ec;
  --accent: #f59e0b;
  --accent-light: #fff4dd;
  --sidebar-bg: #0f2918;
  --sidebar-hover: #173826;
  --sidebar-text: #b9cabf;
  --sidebar-active: #ffffff;
  --topbar-bg: rgba(255, 255, 255, 0.94);
  --topbar-border: #dfe7e1;
  --body-bg: #f4f7f4;
  --card-bg: #ffffff;
  --card-border: #e8ecf0;
  --text-main: #1f2a22;
  --text-muted: #6a746d;
  --success: #2f855a;
  --warning: #c8860d;
  --danger: #d64545;
  --info: #2f6f9f;
  --radius: 12px;
  --shadow: 0 12px 30px rgba(15, 41, 24, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 41, 24, 0.14);
  --ink: var(--text-main);
  --muted: var(--text-muted);
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  opacity: 0;
  z-index: 1080;
  pointer-events: none;
  background: linear-gradient(90deg, #f7d681 0%, var(--accent) 35%, var(--primary) 100%);
  box-shadow: 0 0 14px rgba(26, 107, 60, 0.28);
  transition: width 0.2s ease, opacity 0.2s ease;
}

body.is-page-loading .page-progress {
  opacity: 1;
}

.report-glossary {
  border: 1px solid rgba(26, 107, 60, 0.1);
  overflow: hidden;
}

.report-glossary-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
}

.report-glossary-summary::-webkit-details-marker {
  display: none;
}

.report-glossary-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.report-glossary-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.report-glossary-body {
  padding: 0 18px 18px;
}

.report-glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.report-glossary-item {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 242, 0.98));
  border: 1px solid rgba(26, 107, 60, 0.08);
}

.report-glossary-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.report-glossary-item p,
.report-glossary-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.report-glossary-note {
  margin-top: 14px;
}

.report-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.report-check-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(26, 107, 60, 0.12);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.report-check-chip:hover {
  border-color: rgba(26, 107, 60, 0.28);
  box-shadow: 0 8px 18px rgba(18, 53, 30, 0.08);
  transform: translateY(-1px);
}

.report-check-chip input {
  margin: 0;
}

.report-check-chip span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.chart-shell.is-loading .card-body {
  position: relative;
}

.chart-shell.is-loading .card-body::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(225, 232, 226, 0.7), rgba(244, 248, 245, 0.95), rgba(225, 232, 226, 0.7)),
    linear-gradient(rgba(220, 227, 221, 0.9) 0 0),
    linear-gradient(rgba(220, 227, 221, 0.8) 0 0),
    linear-gradient(rgba(220, 227, 221, 0.7) 0 0);
  background-repeat: no-repeat;
  background-size:
    240px 100%,
    calc(100% - 40px) calc(100% - 68px),
    calc(100% - 80px) 10px,
    calc(100% - 120px) 10px;
  background-position:
    -240px 0,
    20px 16px,
    20px calc(100% - 30px),
    20px calc(100% - 12px);
  animation: chartSkeleton 1.2s ease-in-out infinite;
  z-index: 1;
}

.chart-shell.is-loading .dashboard-chart {
  opacity: 0;
}

@keyframes chartSkeleton {
  100% {
    background-position:
      calc(100% + 240px) 0,
      20px 16px,
      20px calc(100% - 30px),
      20px calc(100% - 12px);
  }
}

@media (max-width: 767.98px) {
  .report-glossary-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-check-grid {
    grid-template-columns: 1fr;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(232, 244, 236, 0.95), transparent 38%),
    linear-gradient(180deg, #f7faf7 0%, var(--body-bg) 100%);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 14px;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

.text-primary {
  color: var(--primary) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-danger {
  color: var(--danger) !important;
}

#sidebar {
  background: linear-gradient(180deg, #12311d 0%, var(--sidebar-bg) 100%) !important;
  border-right: 0;
  box-shadow: 2px 0 16px rgba(15, 41, 24, 0.18);
}

#sidebar .nav-link {
  position: relative;
  color: var(--sidebar-text) !important;
  border-radius: 10px;
  margin: 1px 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

#sidebar .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9fdfb7, #f7d681);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

#sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-active) !important;
  transform: translateX(2px);
}

#sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(26, 107, 60, 0.92), rgba(40, 129, 77, 0.88));
  color: var(--sidebar-active) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#sidebar .nav-link.active::before,
#sidebar .nav-link:hover::before {
  transform: scaleY(1);
}

.navbar {
  background: var(--topbar-bg) !important;
  border-bottom: 1px solid var(--topbar-border);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(15, 41, 24, 0.06);
}

.navbar-brand {
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 15px;
}

.navbar .text-white-50 {
  color: var(--text-muted) !important;
  font-size: 13px;
}

.navbar .btn-outline-secondary {
  border-color: var(--card-border);
  color: var(--text-muted);
}

.navbar .btn-outline-secondary:hover {
  background: var(--body-bg);
  color: var(--text-main);
}

.navbar a.text-white {
  color: var(--text-muted) !important;
}

.navbar a.text-white:hover {
  color: var(--primary) !important;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  border-bottom: 1px solid var(--card-border);
  border-radius: var(--radius) var(--radius) 0 0 !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 14px 18px;
}

.card-header.bg-dark {
  background: linear-gradient(90deg, #163624, #244a33) !important;
  color: #fff;
}

.table {
  font-size: 13.5px;
}

.table thead.table-dark th {
  background: #173826;
  color: #eef4ef;
  font-weight: 600;
  border: none;
  padding: 12px 14px;
}

.table tbody tr:hover td {
  background: #f2f7f3;
}

.table td {
  padding: 11px 14px;
  vertical-align: middle;
  border-bottom: 1px solid #eef2ef;
  color: var(--text-main);
}

.table-hover > tbody > tr:hover > * {
  background-color: #f2f7f3;
}

.btn {
  position: relative;
  font-size: 13px;
  border-radius: 10px;
  font-weight: 600;
  min-height: 38px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.btn:active {
  transform: translateY(1px);
}

.btn::after {
  content: "";
  position: absolute;
  inset: auto auto 50% 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.btn:active::after {
  transform: translate(-50%, -50%) scale(18);
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 10px 18px rgba(26, 107, 60, 0.18);
}

.btn-success {
  background: var(--success);
  border-color: var(--success);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: rgba(26, 107, 60, 0.3);
  background: rgba(255, 255, 255, 0.7);
}

.btn-outline-primary:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: rgba(26, 107, 60, 0.45);
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
}

.form-control,
.form-select {
  border: 1px solid #d1dbd3;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-main);
  min-height: 38px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(26, 107, 60, 0.52);
  box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.12);
}

.form-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.metric-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #fbfcfb);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 107, 60, 0.04), transparent 46%);
  pointer-events: none;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.metric-card .metric-head,
.metric-card .metric-progress {
  position: relative;
  z-index: 1;
}

.metric-card .metric-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.metric-card .metric-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.metric-card .metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-wrap: wrap;
}

.metric-card .metric-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
}

.metric-card .metric-prefix,
.metric-card .metric-suffix {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.metric-card .metric-unit {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

.metric-card .metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  white-space: nowrap;
}

.metric-card .metric-trend.good {
  background: rgba(47, 133, 90, 0.12);
  color: var(--success);
}

.metric-card .metric-trend.bad {
  background: rgba(214, 69, 69, 0.12);
  color: var(--danger);
}

.metric-card .metric-trend.flat {
  background: rgba(106, 116, 109, 0.12);
  color: var(--text-muted);
}

.metric-card .metric-sparkline {
  position: relative;
  z-index: 1;
  height: 46px;
  margin-top: 14px;
}

.metric-card .metric-sparkline svg {
  width: 100%;
  height: 100%;
}

.inventory-summary-value {
  font-size: clamp(2.2rem, 1.2rem + 1.8vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow-wrap: normal;
}

.metric-card .metric-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.metric-card .metric-progress-ring {
  position: relative;
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
}

.metric-card .metric-progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.metric-card .metric-progress-ring circle {
  fill: none;
  stroke-width: 10;
}

.metric-card .metric-progress-ring .track {
  stroke: rgba(26, 107, 60, 0.12);
}

.metric-card .metric-progress-ring .progress {
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-dasharray: 276;
  stroke-dashoffset: 276;
  transition: stroke-dashoffset 0.9s ease;
}

.metric-card .metric-progress-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.metric-card .metric-progress-value .metric-value {
  font-size: 30px;
}

.metric-card.blue {
  border-top: 4px solid var(--primary);
}

.metric-card.green {
  border-top: 4px solid var(--success);
}

.metric-card.orange {
  border-top: 4px solid var(--accent);
}

.metric-card.red {
  border-top: 4px solid var(--danger);
}

.metric-card.orange .metric-progress-ring .progress {
  stroke: var(--accent);
}

.metric-card.green .metric-progress-ring .progress {
  stroke: var(--success);
}

.metric-card.red .metric-progress-ring .progress {
  stroke: var(--danger);
}

.main-content {
  margin-top: 56px;
  margin-left: 220px;
  padding: 28px 32px;
  min-height: calc(100vh - 56px);
  background: transparent;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress {
  border-radius: 999px;
  background: #e6ece7;
}

.progress-bar {
  border-radius: 999px;
}

.alert {
  border-radius: var(--radius);
  font-size: 13.5px;
  border-left-width: 4px;
}

.pagination .page-link {
  border-radius: 10px;
  margin: 0 2px;
  font-size: 13px;
  color: var(--primary);
  border-color: var(--card-border);
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cdd7cf;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a7b3aa;
}

.dashboard-hero {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(26, 107, 60, 0.98), rgba(17, 73, 42, 0.94));
  color: #fff;
  overflow: hidden;
}

.dashboard-hero .card-body {
  position: relative;
  padding: 28px 30px;
}

.dashboard-hero .card-body::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.dashboard-hero-title {
  font-size: 30px;
  font-weight: 700;
  margin: 12px 0 10px;
}

.dashboard-hero-summary {
  max-width: 720px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.dashboard-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-hero-side {
  position: relative;
  z-index: 1;
  min-width: 180px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  padding: 18px 20px;
  backdrop-filter: blur(8px);
}

.dashboard-hero-side-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.74);
}

.dashboard-hero-side-value {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  margin: 10px 0 6px;
}

.dashboard-hero-side-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.chart-shell .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-shell .card-body {
  padding: 14px 16px 16px;
}

.chart-shell .chart-caption {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.chart-shell .chart-note {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.dashboard-chart {
  height: 320px;
}

.dashboard-chart.tall {
  height: 340px;
}

.dashboard-chart.legend-heavy {
  height: 360px;
}

@media screen and (max-width: 1199px) {
  .dashboard-chart.legend-heavy {
    height: 340px;
  }
}

@media screen and (max-width: 767px) {
  .chart-shell .card-body {
    padding: 12px 12px 14px;
  }

  .dashboard-chart {
    height: 300px;
  }

  .dashboard-chart.tall {
    height: 320px;
  }

  .dashboard-chart.legend-heavy {
    height: 330px;
  }
}

.dashboard-side-panel {
  position: fixed;
  top: 56px;
  right: 0;
  width: 320px;
  height: calc(100vh - 56px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -8px 0 28px rgba(15, 41, 24, 0.14);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 20px;
  overflow-y: auto;
  backdrop-filter: blur(12px);
  border-left: 1px solid var(--card-border);
}

.dashboard-side-panel.is-open {
  transform: translateX(0);
}

.dashboard-side-panel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2ee;
}

.dashboard-side-panel-item:last-child {
  border-bottom: 0;
}

.empty-state {
  padding: 46px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.empty-state.empty-state-compact {
  padding: 28px 12px;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(26, 107, 60, 0.12), rgba(245, 158, 11, 0.14));
  color: var(--primary);
  font-size: 30px;
}

.empty-state-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.empty-state-text {
  max-width: 460px;
  margin: 0;
  color: var(--text-muted);
}

.empty-state-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions .btn {
  min-width: 78px;
}

.table-responsive.responsive-card-table {
  overflow-x: auto;
}

.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--card-border);
  box-shadow: 0 -6px 20px rgba(15, 41, 24, 0.08);
  z-index: 1040;
  align-items: stretch;
  justify-content: space-around;
  backdrop-filter: blur(12px);
}

.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 6px 4px;
  position: relative;
}

.tabbar-item i {
  font-size: 20px;
  line-height: 1;
}

.tabbar-item.active {
  color: var(--primary);
}

.tabbar-item:active {
  background: var(--primary-light);
}

.app-mobile-drawer {
  background: linear-gradient(180deg, #f7faf7 0%, #eef4ef 100%);
}

.app-mobile-drawer-header {
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(18, 58, 32, 0.08);
}

.app-mobile-drawer-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(26, 107, 60, 0.08);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.app-mobile-drawer-meta {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.app-mobile-drawer-body {
  padding: 14px 16px 24px;
}

.app-mobile-drawer-group + .app-mobile-drawer-group {
  margin-top: 18px;
}

.app-mobile-drawer-group-title {
  margin-bottom: 10px;
  color: #335546;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.app-mobile-drawer-links {
  display: grid;
  gap: 10px;
}

.app-mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(18, 58, 32, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: #173826;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(20, 46, 30, 0.05);
}

.app-mobile-drawer-link:hover,
.app-mobile-drawer-link:focus-visible {
  color: var(--primary);
  border-color: rgba(26, 107, 60, 0.18);
  text-decoration: none;
}

.app-mobile-drawer-link.is-active {
  border-color: rgba(26, 107, 60, 0.2);
  background: rgba(236, 246, 239, 0.98);
  color: var(--primary);
}

.app-mobile-drawer-link span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 991px) {
  #sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 18px 16px 76px;
  }

  .mobile-tabbar {
    display: flex;
  }

  .dashboard-hero .card-body {
    padding: 24px 20px;
  }
}

@media (max-width: 768px) {
  .btn,
  .form-control,
  .form-select {
    min-height: 44px;
  }

  .page-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .metric-card {
    padding: 18px 18px 16px;
  }

  .metric-card .metric-value {
    font-size: 28px;
  }

  .metric-card .metric-progress {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-card .metric-progress-ring {
    width: 92px;
    height: 92px;
  }

  .dashboard-hero-title {
    font-size: 24px;
  }

  .dashboard-hero-summary {
    font-size: 14px;
  }

  .dashboard-hero-side {
    width: 100%;
  }

  .dashboard-side-panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 78vh;
    border-left: 0;
    border-top: 1px solid var(--card-border);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .dashboard-side-panel.is-open {
    transform: translateY(0);
  }

  .table-responsive.responsive-card-table {
    overflow: visible;
  }

  .responsive-card-table table,
  .responsive-card-table thead,
  .responsive-card-table tbody,
  .responsive-card-table tr,
  .responsive-card-table td {
    display: block;
    width: 100%;
  }

  .responsive-card-table thead {
    display: none;
  }

  .responsive-card-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .responsive-card-table tr {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 4px 14px;
  }

  .responsive-card-table tr.table-danger {
    background: #fff5f5;
    border-color: #f4d4d4;
  }

  .responsive-card-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e4ebe5;
    text-align: right;
  }

  .responsive-card-table td:last-child {
    border-bottom: 0;
    padding-bottom: 12px;
  }

  .responsive-card-table td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
  }

  .responsive-card-table td[data-label="操作"] {
    display: block;
    text-align: left;
  }

  .responsive-card-table td[data-label="操作"]::before {
    display: block;
    margin-bottom: 8px;
  }

  .table-actions .btn {
    flex: 1 1 120px;
  }
}

@media print {
  #sidebar,
  .navbar,
  .mobile-tabbar,
  .btn,
  .toast-container,
  #costDetailPanel,
  .form-select,
  .page-title .btn,
  .no-print {
    display: none !important;
  }

  .main-content {
    margin: 0 !important;
    padding: 10px !important;
  }

  body {
    background: #fff !important;
    font-size: 12px;
    color: #000;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
    margin-bottom: 12px;
  }

  .card-header.bg-dark,
  thead.table-dark th {
    background: #173826 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  table {
    font-size: 11px;
    width: 100% !important;
  }

  td,
  th {
    padding: 6px 8px !important;
  }

  .metric-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .metric-card.blue {
    border-top: 3px solid var(--primary) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .metric-card.green {
    border-top: 3px solid var(--success) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .metric-card.orange {
    border-top: 3px solid var(--accent) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .metric-card.red {
    border-top: 3px solid var(--danger) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  [id^="chart"] {
    display: none !important;
  }

  .page-title {
    font-size: 16px;
    margin-bottom: 12px;
    border-bottom: 2px solid #173826;
    padding-bottom: 6px;
  }

  .print-page-break {
    page-break-after: always;
  }

  .card + .card {
    page-break-before: auto;
  }

  thead {
    display: table-header-group;
  }

  tfoot {
    display: table-footer-group;
  }

  .badge {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    border: 1px solid rgba(0, 0, 0, 0.15);
  }

  @page {
    margin: 15mm 12mm;
    size: A4;
  }
}

@media screen {
  body {
    background:
      radial-gradient(circle at 0% 0%, rgba(159, 223, 183, 0.16), transparent 30%),
      radial-gradient(circle at 100% 12%, rgba(245, 158, 11, 0.12), transparent 24%),
      linear-gradient(180deg, #f8fbf8 0%, #eef4ef 100%);
  }

  .app-topbar {
    background: rgba(252, 253, 252, 0.94);
    border-bottom: 1px solid rgba(18, 58, 32, 0.1);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(14, 41, 23, 0.08);
    z-index: 1045;
  }

  .app-topbar-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 24px;
  }

  .app-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    text-decoration: none;
  }

  .app-brand:hover {
    text-decoration: none;
  }

  .app-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #1f6f42, #144d2f);
    color: #fff;
    box-shadow: 0 10px 22px rgba(20, 77, 47, 0.24);
    font-size: 18px;
    flex-shrink: 0;
  }

  .app-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

.app-brand-title-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 4px;
}

  .app-brand-copy strong {
    color: #193726;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

.app-brand-clock {
  display: inline-flex;
  align-items: center;
  padding: 0 0 2px 16px;
  border-left: 1px solid rgba(25, 55, 38, 0.14);
  color: #5b6e62;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

  .app-brand-copy small {
    color: #718177;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 4px;
  }

  .app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .app-topbar-alert {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
    padding: 6px 8px 6px 14px;
    border-radius: 18px;
    border: 1px solid rgba(210, 53, 78, 0.16);
    background: linear-gradient(135deg, rgba(255, 239, 242, 0.98), rgba(255, 246, 238, 0.96));
    box-shadow: 0 12px 24px rgba(180, 35, 60, 0.1);
  }

  .app-topbar-alert[hidden] {
    display: none !important;
  }

  .app-topbar-alert-body {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8f2436;
    text-decoration: none;
  }

  .app-topbar-alert-body:hover {
    color: #7d1e2f;
    text-decoration: none;
  }

  .app-topbar-alert-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(212, 57, 81, 0.12);
    color: #be2f46;
    font-size: 15px;
    flex-shrink: 0;
  }

  .app-topbar-alert-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }

  .app-topbar-alert-copy strong {
    font-size: 12px;
    font-weight: 800;
    color: #8f2436;
  }

  .app-topbar-alert-copy span {
    margin-top: 3px;
    font-size: 12px;
    color: #a24052;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-topbar-alert-close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    background: rgba(212, 57, 81, 0.08);
    color: #a5384a;
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }

  .app-topbar-alert-close:hover {
    background: rgba(212, 57, 81, 0.14);
    color: #892437;
    transform: translateY(-1px);
  }

  .app-icon-button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(18, 58, 32, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: #274c37;
    box-shadow: 0 8px 18px rgba(20, 46, 30, 0.06);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .app-icon-button:hover {
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(20, 46, 30, 0.1);
    border-color: rgba(26, 107, 60, 0.18);
  }

  .app-icon-button .badge {
    min-width: 22px;
    padding-inline: 6px;
  }

  .app-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 7px 10px 7px 8px;
    border-radius: 18px;
    border: 1px solid rgba(18, 58, 32, 0.08);
    background: rgba(255, 255, 255, 0.88);
    color: #173826;
    box-shadow: 0 10px 24px rgba(20, 46, 30, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .app-user-trigger:hover,
  .app-user-trigger[aria-expanded="true"] {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(20, 46, 30, 0.12);
    border-color: rgba(26, 107, 60, 0.18);
  }

  .app-user-avatar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(26, 107, 60, 0.16), rgba(245, 158, 11, 0.18));
    color: #133722;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
  }

  .app-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.15;
  }

  .app-user-meta strong {
    font-size: 13px;
    font-weight: 700;
    color: #173826;
  }

  .app-user-meta small {
    font-size: 11px;
    color: #7d8b82;
    margin-top: 4px;
  }

  .app-dropdown-menu {
    min-width: 220px;
    border: 1px solid rgba(18, 58, 32, 0.08);
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 24px 48px rgba(15, 41, 24, 0.16);
  }

  .app-dropdown-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 8px;
    color: #6f7d74;
    font-size: 12px;
  }

  .app-dropdown-meta strong {
    color: #183723;
    font-size: 14px;
  }

  .app-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    color: #274134;
  }

  .app-dropdown-menu .dropdown-item:hover {
    background: #eef6f0;
    color: #153723;
  }

  .app-shell {
    min-height: 100vh;
  }

  #sidebar.app-sidebar {
    position: fixed;
    top: 72px;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: 280px;
    padding: 18px 16px 20px;
    background:
      linear-gradient(180deg, rgba(15, 47, 28, 0.98), rgba(10, 28, 18, 0.98)),
      radial-gradient(circle at top right, rgba(247, 214, 129, 0.1), transparent 28%);
    box-shadow: 12px 0 30px rgba(11, 28, 18, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    overscroll-behavior: contain;
    z-index: 1035;
  }

  .app-sidebar-inner {
      display: flex;
      flex-direction: column;
      flex: 1 1 auto;
      min-height: 0;
      gap: 10px;
    }
  
  .app-nav-list {
      display: flex;
      flex-direction: column;
    flex: 1 1 auto;
      min-height: 0;
      gap: 10px;
      overflow-y: auto;
      overflow-anchor: none;
      overscroll-behavior: contain;
      scrollbar-gutter: stable;
      padding-right: 8px;
      padding-bottom: 10px;
      scrollbar-width: thin;
      scrollbar-color: rgba(151, 191, 166, 0.78) rgba(255, 255, 255, 0.05);
      scroll-behavior: auto;
    }
  
  .app-nav-list::-webkit-scrollbar {
      width: 10px;
    }
  
  .app-nav-list::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.04);
      border-radius: 999px;
      border: 2px solid transparent;
      background-clip: padding-box;
    }
  
  .app-nav-list::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, rgba(196, 224, 206, 0.86), rgba(105, 154, 122, 0.96));
      border-radius: 999px;
      border: 2px solid rgba(14, 42, 25, 0.92);
      min-height: 48px;
    }
  
  .app-nav-list::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, rgba(213, 236, 221, 0.92), rgba(121, 171, 138, 1));
    }

  .app-nav-group {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
  }

  .app-nav-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: transparent;
    border: 0;
    color: #d9e7dd;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease;
  }

  .app-nav-toggle:hover,
  .app-nav-toggle.is-active,
  .app-nav-toggle[aria-expanded="true"] {
      background: rgba(255, 255, 255, 0.05);
      color: #fff;
    }

  .app-nav-direct {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 16px;
      padding: 14px 16px;
      border-radius: 18px;
      color: #d9e7dd;
      font-size: 14px;
      font-weight: 700;
      text-decoration: none;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.04);
      transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    }

  .app-nav-direct:hover,
  .app-nav-direct.is-active {
      background: rgba(255, 255, 255, 0.05);
      color: #fff;
      border-color: rgba(255, 255, 255, 0.08);
    }

  .app-nav-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .app-nav-toggle > .bi-chevron-down {
    color: rgba(226, 237, 229, 0.72);
    transition: transform 0.18s ease, color 0.18s ease;
  }

  .app-nav-toggle[aria-expanded="true"] > .bi-chevron-down {
    transform: rotate(180deg);
    color: #f7d681;
  }

  .app-nav-submenu {
    padding: 0 10px 12px;
  }

  .app-nav-submenu.collapse,
  .app-nav-submenu.collapsing {
    transition: none !important;
  }

  .app-nav-submenu.show,
  .app-nav-submenu.collapsing {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    padding: 0 10px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: auto;
  }

  .app-nav-submenu.collapsing {
    transition: none;
  }

  .app-nav-sublink {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-top: 6px;
    padding: 9px 14px;
    border-radius: 14px;
    color: rgba(222, 236, 227, 0.78);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    pointer-events: auto;
  }

  .app-nav-sublink:hover,
  .app-nav-sublink.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(36, 116, 68, 0.78), rgba(25, 72, 43, 0.72));
    transform: translateX(2px);
  }

  .main-content {
    margin-top: 72px;
    margin-left: 280px;
    padding: 30px 34px 42px;
    min-height: calc(100vh - 72px);
    background: transparent;
  }

  .app-messages {
    margin-bottom: 18px;
  }

  .toast-container {
    top: 82px !important;
    right: 18px !important;
    z-index: 1090;
  }

  .btn {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 22px rgba(19, 40, 25, 0.06);
  }

  .btn-sm {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 12px;
  }

  .btn-primary {
    background: linear-gradient(135deg, #1f7a47, #14522f);
    border-color: #14522f;
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, #176139, #103f25);
    border-color: #103f25;
  }

  .btn-outline-primary,
  .btn-outline-secondary,
  .btn-outline-warning,
  .btn-outline-danger,
  .btn-outline-success {
    background: rgba(255, 255, 255, 0.9);
  }

  .btn-outline-secondary {
    color: #34513f;
    border-color: rgba(27, 58, 38, 0.16);
  }

  .btn-outline-secondary:hover {
    color: #143623;
    background: #eef5f0;
    border-color: rgba(27, 58, 38, 0.28);
  }

  .btn-outline-warning {
    color: #8a6400;
    border-color: rgba(202, 134, 13, 0.45);
  }

  .btn-outline-warning:hover {
    color: #654900;
    background: #fff3d9;
    border-color: rgba(202, 134, 13, 0.7);
  }

  .btn-outline-danger {
    color: #9f2f36;
    border-color: rgba(214, 69, 69, 0.42);
  }

  .btn-outline-danger:hover {
    color: #7f2026;
    background: #fff0f0;
    border-color: rgba(214, 69, 69, 0.68);
  }

  .btn-outline-success {
    color: #1c6a42;
    border-color: rgba(47, 133, 90, 0.42);
  }

  .btn-outline-success:hover {
    color: #155132;
    background: #eef9f2;
    border-color: rgba(47, 133, 90, 0.68);
  }

  .page-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #173826;
    margin-bottom: 6px;
  }

  .app-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
  }

  .app-page-subtitle {
    margin: 0;
    color: #708076;
    font-size: 14px;
    line-height: 1.7;
  }

  .app-action-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }

  .app-toolbar-card {
    border-radius: 20px;
  }

  .app-toolbar-card .card-body {
    padding: 16px 18px;
  }

  .app-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .app-filter-label {
    font-size: 13px;
    font-weight: 700;
    color: #5f7166;
  }

  .app-chip-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .app-chip-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(26, 107, 60, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: #2b4738;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .app-chip-link:hover,
  .app-chip-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, #1f7a47, #14522f);
    border-color: #14522f;
    box-shadow: 0 12px 22px rgba(20, 82, 47, 0.22);
    transform: translateY(-1px);
  }

  .app-chip-count {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(19, 55, 34, 0.08);
    font-size: 11px;
    font-weight: 800;
  }

  .app-chip-link.is-active .app-chip-count {
    background: rgba(255, 255, 255, 0.2);
  }

  .app-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .app-section-card {
    border-radius: 24px;
    border: 1px solid rgba(20, 65, 39, 0.08);
    box-shadow: 0 16px 34px rgba(15, 41, 24, 0.08);
    overflow: hidden;
  }

  .app-section-card .card-body {
    padding: 22px 24px;
  }

  .app-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
  }

  .app-section-kicker {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6e7e73;
  }

  .app-section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #173826;
    letter-spacing: -0.02em;
  }

  .app-section-note {
    margin: 6px 0 0;
    color: #708076;
    font-size: 13px;
    line-height: 1.7;
  }

  .app-soft-alert {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(26, 107, 60, 0.1);
    background: linear-gradient(135deg, rgba(247, 252, 248, 0.96), rgba(255, 247, 228, 0.8));
    color: #3f5548;
    font-size: 13px;
    line-height: 1.7;
  }

  .app-soft-alert strong {
    color: #173826;
  }

  .app-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
  }

  .app-entry-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(20, 65, 39, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 247, 0.92));
    box-shadow: 0 14px 32px rgba(15, 41, 24, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .app-entry-card:hover {
    transform: translateY(-2px);
    border-color: rgba(26, 107, 60, 0.16);
    box-shadow: 0 20px 36px rgba(15, 41, 24, 0.1);
  }

  .app-entry-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(31, 122, 71, 0.14), rgba(245, 158, 11, 0.16));
    color: #185633;
    font-size: 20px;
    flex-shrink: 0;
  }

  .app-entry-body {
    min-width: 0;
    flex: 1 1 auto;
  }

  .app-entry-title {
    margin: 0;
    color: #173826;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .app-entry-summary {
    margin: 6px 0 0;
    color: #708076;
    font-size: 13px;
    line-height: 1.7;
  }

  .app-entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
  }

  .app-inline-stat {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(20, 65, 39, 0.06);
    color: #3c5245;
    font-size: 12px;
    font-weight: 700;
  }

  .app-entry-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
  }

  .app-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(20, 65, 39, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: #244436;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  }

  .app-list-row:hover {
    color: #153723;
    text-decoration: none;
    transform: translateX(2px);
    border-color: rgba(26, 107, 60, 0.18);
    background: #f8fcf9;
  }

  .app-list-row strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
  }

  .app-list-row span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #728178;
  }

  @media (max-width: 767.98px) {
    .app-entry-card {
      flex-direction: column;
    }

    .app-entry-icon {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      font-size: 18px;
    }
  }

  .app-form-grid .form-label {
    margin-bottom: 8px;
    color: #274235;
    font-size: 13px;
    font-weight: 700;
  }

  .app-form-grid .form-text {
    color: #718177;
    font-size: 12px;
    line-height: 1.65;
  }

  .app-form-grid .form-control,
  .app-form-grid .form-select,
  .app-form-grid .input-group-text {
    min-height: 44px;
    border-radius: 14px;
  }

  .app-form-grid .input-group-text {
    background: #f3f7f4;
    color: #4b6254;
    font-size: 12px;
    font-weight: 700;
  }

  .app-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .app-form-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 20px;
  }

  .app-reference-panel {
    min-height: 100%;
  }

  .app-list-note {
    margin: 0;
    padding-left: 18px;
    color: #587061;
    font-size: 13px;
    line-height: 1.75;
  }

  .app-list-note li + li {
    margin-top: 6px;
  }

  .login-shell {
    min-height: 100vh;
    padding: 32px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(circle at top left, rgba(245, 214, 129, 0.22), transparent 28%),
      radial-gradient(circle at right center, rgba(41, 112, 67, 0.22), transparent 32%),
      linear-gradient(135deg, #f2f7f2 0%, #edf3ee 38%, #f9fbf7 100%);
  }

  .login-layout {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 28px;
    align-items: stretch;
  }

  .login-hero,
  .login-panel {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(20, 65, 39, 0.08);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 54px rgba(15, 41, 24, 0.12);
    backdrop-filter: blur(18px);
  }

  .login-hero {
    padding: 34px 34px 26px;
    background:
      radial-gradient(circle at top right, rgba(245, 214, 129, 0.24), transparent 32%),
      radial-gradient(circle at bottom left, rgba(94, 168, 113, 0.18), transparent 26%),
      linear-gradient(145deg, rgba(18, 58, 32, 0.98), rgba(12, 37, 22, 0.98));
    color: #eef6f0;
    display: flex;
    flex-direction: column;
  }

  .login-hero::after {
    content: '';
    position: absolute;
    inset: auto -60px -80px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 214, 129, 0.26), transparent 68%);
    pointer-events: none;
  }

  .login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f3f8f4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .login-title {
    margin: 22px 0 12px;
    max-width: 560px;
    font-size: 44px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.05em;
  }

  .login-subtitle {
    max-width: 520px;
    margin: 0;
    color: rgba(237, 246, 240, 0.78);
    font-size: 15px;
    line-height: 1.8;
  }

  .login-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
  }

  .login-brand-mark {
    width: 66px;
    height: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .login-brand-mark img {
    width: 42px;
    height: 42px;
    object-fit: contain;
  }

  .login-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .login-brand-copy strong {
    color: #ffffff;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
  }

  .login-brand-copy small {
    color: rgba(243, 248, 244, 0.72);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
  }

  .login-hero-copy {
    margin-top: 26px;
  }

  .login-hero-pills {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .login-hero-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f2f7f4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .login-scene {
    position: relative;
    margin-top: auto;
    min-height: 310px;
    border-radius: 28px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(214, 240, 224, 0.14), rgba(214, 240, 224, 0.02)),
      rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .login-scene-glow {
    position: absolute;
    inset: 18px 18px auto auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 211, 122, 0.42), rgba(248, 211, 122, 0));
    pointer-events: none;
    z-index: 0;
  }

  .login-scene-art {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 310px;
    z-index: 1;
  }

  .login-panel {
    padding: 34px 30px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .login-panel-copy {
    margin: 4px 0 0;
    color: #718177;
    font-size: 14px;
    line-height: 1.6;
  }

  .login-form .form-control {
    min-height: 54px;
    border-radius: 18px;
    font-size: 15px;
    padding-inline: 16px;
    border-color: rgba(19, 61, 35, 0.12);
    background: rgba(252, 253, 251, 0.96);
  }

  .login-form .form-control:focus {
    border-color: rgba(27, 109, 62, 0.44);
    box-shadow: 0 0 0 0.25rem rgba(33, 110, 65, 0.12);
  }

  .login-submit-btn {
    min-height: 56px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 16px 26px rgba(25, 89, 50, 0.18);
  }

  .login-panel-footer {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(21, 57, 34, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: #688075;
    font-size: 12px;
    font-weight: 700;
  }

  .login-panel-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .login-panel-footer i {
    color: #1f6f42;
  }

  .login-feature-grid {
    display: none;
  }

  .login-hint,
  .login-account-list,
  .login-account-item {
    display: none;
  }

  .login-feature-card strong {
    display: block;
    margin-bottom: 8px;
    color: #fff4d1;
    font-size: 15px;
    font-weight: 800;
  }

  .login-feature-card p {
    margin: 0;
    color: rgba(239, 246, 241, 0.74);
    font-size: 13px;
    line-height: 1.75;
  }

  .login-panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
  }

  .login-panel-mark {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(145deg, #1f6f42, #144d2f);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 14px 26px rgba(20, 77, 47, 0.2);
    flex-shrink: 0;
  }

  .login-panel-title {
    margin: 0;
    color: #173826;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.04em;
  }

  .login-form .form-label {
    margin-bottom: 8px;
    color: #244334;
    font-size: 13px;
    font-weight: 800;
  }

  .app-switch-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(18, 58, 32, 0.08);
    box-shadow: 0 10px 24px rgba(15, 41, 24, 0.06);
  }

  .app-switch-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 12px;
    color: #375240;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }

  .app-switch-link:hover,
  .app-switch-link.is-active {
    color: #173826;
    background: linear-gradient(135deg, rgba(159, 223, 183, 0.34), rgba(245, 214, 129, 0.28));
    transform: translateY(-1px);
  }

  .role-pill,
  .status-pill,
  .tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
  }

.role-pill.admin { background: rgba(214, 69, 69, 0.14); color: #aa2831; }
.role-pill.tech { background: rgba(47, 111, 159, 0.14); color: #275f86; }
.role-pill.feeder { background: rgba(47, 133, 90, 0.14); color: #1f6a45; }
.role-pill.stock { background: rgba(178, 115, 34, 0.14); color: #8b5b17; }

  .status-pill.active { background: rgba(47, 133, 90, 0.14); color: #1f6a45; }
  .status-pill.inactive { background: rgba(106, 116, 109, 0.14); color: #5e6862; }
  .tag-pill.soft { background: rgba(255, 255, 255, 0.94); border: 1px solid rgba(21, 57, 34, 0.1); color: #274235; }

  .table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .table-actions .btn {
    min-width: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .table-actions .btn:disabled {
    opacity: 0.52;
    box-shadow: none;
  }

  .mobile-tabbar {
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(252, 253, 252, 0.96);
    border-top: 1px solid rgba(18, 58, 32, 0.08);
    box-shadow: 0 -10px 28px rgba(15, 41, 24, 0.08);
  }

  .tabbar-item {
    gap: 4px;
    font-size: 11px;
    color: #6d7e73;
    font-weight: 700;
  }

  .tabbar-item::before {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    top: 6px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(26, 107, 60, 0.94), rgba(245, 158, 11, 0.94));
    opacity: 0;
    transform: scaleX(0.3);
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .tabbar-item.active::before {
    opacity: 1;
    transform: scaleX(1);
  }

  .tabbar-item.active {
    color: #173826;
  }

  .tabbar-item i {
    font-size: 19px;
  }
}

@media screen and (max-width: 991px) {
  .app-topbar-inner {
    min-height: 64px;
    padding: 0 16px;
  }

  .app-brand-copy strong {
    font-size: 18px;
  }

  .app-brand-clock,
  .app-topbar-alert {
    display: none !important;
  }

  .app-brand-copy small,
  .app-user-meta {
    display: none;
  }

  #sidebar.app-sidebar {
    display: none;
  }

  .main-content {
    margin-top: 64px;
    margin-left: 0;
    padding: 20px 16px 92px;
    min-height: calc(100vh - 64px);
  }

  .toast-container {
    top: 74px !important;
    right: 10px !important;
    left: 10px !important;
  }

  .app-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .app-action-group {
    justify-content: flex-start;
  }

  .app-section-header {
    flex-direction: column;
    align-items: stretch;
  }
}

@media screen and (max-width: 768px) {
  .page-title {
    font-size: 26px;
  }

  .app-switch-group,
  .app-chip-group {
    width: 100%;
  }

  .app-switch-link,
  .app-chip-link {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .table-actions .btn {
    flex: 1 1 calc(50% - 8px);
  }

  .app-form-actions .btn,
  .app-action-group .btn {
    width: 100%;
  }

  .app-form-split,
  .login-layout,
  .login-feature-grid {
    grid-template-columns: 1fr;
  }

  .login-shell {
    padding: 20px 14px;
  }

  .login-hero,
  .login-panel {
    border-radius: 26px;
  }

  .login-hero {
    padding: 26px 22px;
  }

  .login-panel {
    padding: 24px 20px;
  }

  .login-title {
    font-size: 34px;
  }

  .login-brand-copy strong {
    font-size: 24px;
  }

  .login-scene {
    min-height: 240px;
  }

  .login-scene-art {
    min-height: 240px;
  }
}

.login-shell.login-shell--refined {
  min-height: 100vh;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(245, 214, 129, 0.18), transparent 26%),
    radial-gradient(circle at right 18%, rgba(67, 142, 91, 0.16), transparent 24%),
    linear-gradient(135deg, #f3f7f2 0%, #eef4ef 42%, #f9fbf8 100%);
}

.login-shell--refined .login-stage {
  position: relative;
  width: min(1040px, 100%);
  min-height: min(680px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 20px;
  align-items: stretch;
}

.login-shell--refined .login-brand-panel,
.login-shell--refined .login-form-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(20, 65, 39, 0.08);
  box-shadow: 0 24px 54px rgba(15, 41, 24, 0.1);
}

.login-shell--refined .login-brand-panel {
  padding: 30px 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 86% 16%, rgba(245, 214, 129, 0.22), transparent 18%),
    linear-gradient(145deg, #163927 0%, #0f2f20 48%, #173826 100%);
  color: #f1f7f3;
}

.login-shell--refined .login-form-panel {
  padding: 34px 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.login-shell--refined .login-brand-top {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  z-index: 1;
}

.login-shell--refined .login-brand-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.login-shell--refined .login-brand-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.login-shell--refined .login-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-shell--refined .login-brand-text strong {
  color: #ffffff;
  font-size: 29px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.login-shell--refined .login-brand-text small {
  color: rgba(240, 246, 242, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.login-shell--refined .login-brand-main {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.login-shell--refined .login-brand-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 250, 247, 0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.login-shell--refined .login-brand-title {
  margin: 20px 0 12px;
  max-width: 540px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.login-shell--refined .login-brand-subtitle {
  max-width: 480px;
  margin: 0;
  color: rgba(236, 245, 239, 0.78);
  font-size: 15px;
  line-height: 1.75;
}

.login-shell--refined .login-brand-tags {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-shell--refined .login-brand-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4f8f5;
  font-size: 12px;
  font-weight: 800;
}

.login-shell--refined .login-brand-metrics {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-shell--refined .login-brand-metric {
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-shell--refined .login-brand-metric span {
  display: block;
  margin-bottom: 8px;
  color: rgba(232, 242, 236, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.login-shell--refined .login-brand-metric strong {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.login-shell--refined .login-brand-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
}

.login-shell--refined .login-brand-glow-a {
  top: -36px;
  right: -28px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245, 214, 129, 0.3), rgba(245, 214, 129, 0));
}

.login-shell--refined .login-brand-glow-b {
  left: -40px;
  bottom: -54px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(76, 162, 103, 0.2), rgba(76, 162, 103, 0));
}

.login-shell--refined .login-brand-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
  opacity: 0.35;
}

.login-shell--refined .login-form-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.login-shell--refined .login-form-mark {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #1e6e42, #144c2f);
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 14px 26px rgba(20, 77, 47, 0.18);
  flex-shrink: 0;
}

.login-shell--refined .login-form-title {
  margin: 0;
  color: #173826;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.login-shell--refined .login-form-subtitle {
  margin: 4px 0 0;
  color: #6f8176;
  font-size: 14px;
  line-height: 1.55;
}

.login-shell--refined .login-form-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(247, 250, 247, 0.96);
  border: 1px solid rgba(20, 65, 39, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.login-shell--refined .login-form-card .form-label {
  margin-bottom: 8px;
  color: #244334;
  font-size: 13px;
  font-weight: 800;
}

.login-shell--refined .login-form-card .form-control {
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(18, 58, 32, 0.12);
  background: #ffffff;
  color: #173826;
  font-size: 15px;
  padding-inline: 16px;
}

.login-shell--refined .login-form-card .form-control:focus {
  border-color: rgba(28, 109, 63, 0.42);
  box-shadow: 0 0 0 0.25rem rgba(31, 111, 66, 0.12);
}

.login-shell--refined .login-submit-btn {
  min-height: 56px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 24px rgba(25, 89, 50, 0.16);
}

.login-shell--refined .login-form-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(21, 57, 34, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: #6d8176;
  font-size: 12px;
  font-weight: 700;
}

.login-shell--refined .login-form-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-shell--refined .login-form-footer i {
  color: #1d6d41;
}

@media screen and (max-width: 991px) {
  .login-shell.login-shell--refined {
    padding: 16px;
    overflow: auto;
  }

  .login-shell--refined .login-stage {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .login-shell--refined .login-brand-panel,
  .login-shell--refined .login-form-panel {
    border-radius: 28px;
  }

  .login-shell--refined .login-brand-panel {
    padding: 24px 22px;
  }

  .login-shell--refined .login-brand-title {
    font-size: 34px;
  }

  .login-shell--refined .login-brand-metrics {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 640px) {
  .login-shell.login-shell--refined {
    padding: 12px;
  }

  .login-shell--refined .login-brand-panel,
  .login-shell--refined .login-form-panel {
    border-radius: 24px;
  }

  .login-shell--refined .login-brand-text strong {
    font-size: 23px;
  }

  .login-shell--refined .login-brand-title {
    font-size: 30px;
  }

  .login-shell--refined .login-form-panel {
    padding: 24px 18px 20px;
  }

  .login-shell--refined .login-form-card {
    padding: 18px;
    border-radius: 20px;
  }
}

.login-shell.login-shell--split {
  min-height: 100vh;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at left top, rgba(245, 214, 129, 0.16), transparent 24%),
    radial-gradient(circle at right 18%, rgba(77, 129, 88, 0.16), transparent 22%),
    linear-gradient(135deg, #f4f7f2 0%, #edf3ee 45%, #f8faf7 100%);
}

.login-shell--split .login-split-stage {
  width: min(1120px, 100%);
  min-height: min(700px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 420px);
  gap: 22px;
  align-items: stretch;
}

.login-shell--split .login-visual-panel,
.login-shell--split .login-box-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(20, 65, 39, 0.08);
  box-shadow: 0 24px 54px rgba(15, 41, 24, 0.1);
}

.login-shell--split .login-visual-panel {
  min-height: 100%;
  background: #173826;
}

.login-shell--split .login-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-shell--split .login-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 31, 20, 0.68) 0%, rgba(16, 43, 27, 0.38) 42%, rgba(20, 49, 31, 0.1) 100%),
    linear-gradient(180deg, rgba(11, 32, 19, 0.08), rgba(11, 32, 19, 0.34));
}

.login-shell--split .login-visual-copy {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  z-index: 1;
  max-width: 420px;
}

.login-shell--split .login-visual-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(246, 249, 247, 0.96);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.login-shell--split .login-visual-title {
  margin: 18px 0 10px;
  color: #ffffff;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.login-shell--split .login-visual-subtitle {
  margin: 0;
  color: rgba(236, 244, 239, 0.8);
  font-size: 15px;
  line-height: 1.75;
}

.login-shell--split .login-box-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.login-shell--split .login-box-card {
  width: 100%;
  padding: 28px;
  border-radius: 28px;
  background: rgba(248, 251, 248, 0.96);
  border: 1px solid rgba(20, 65, 39, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.login-shell--split .login-box-head {
  margin-bottom: 22px;
}

.login-shell--split .login-box-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(29, 109, 65, 0.08);
  color: #205f3c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.login-shell--split .login-box-title {
  margin: 16px 0 8px;
  color: #173826;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.login-shell--split .login-box-subtitle {
  margin: 0;
  color: #718177;
  font-size: 14px;
  line-height: 1.6;
}

.login-shell--split .login-form--split .form-label {
  margin-bottom: 8px;
  color: #244334;
  font-size: 13px;
  font-weight: 800;
}

.login-shell--split .login-form--split .form-control {
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(18, 58, 32, 0.12);
  background: #ffffff;
  color: #173826;
  font-size: 15px;
  padding-inline: 16px;
}

.login-shell--split .login-form--split .form-control:focus {
  border-color: rgba(28, 109, 63, 0.4);
  box-shadow: 0 0 0 0.25rem rgba(31, 111, 66, 0.12);
}

.login-shell--split .login-submit-btn {
  min-height: 56px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 24px rgba(25, 89, 50, 0.14);
}

.login-shell--split .login-box-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(21, 57, 34, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: #6d8176;
  font-size: 12px;
  font-weight: 700;
}

.login-shell--split .login-box-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-shell--split .login-box-footer i {
  color: #1d6d41;
}

@media screen and (max-width: 991px) {
  .login-shell.login-shell--split {
    padding: 16px;
    overflow: auto;
  }

  .login-shell--split .login-split-stage {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .login-shell--split .login-visual-panel,
  .login-shell--split .login-box-panel {
    border-radius: 28px;
  }

  .login-shell--split .login-visual-panel {
    min-height: 260px;
  }

  .login-shell--split .login-visual-copy {
    left: 24px;
    right: 24px;
    bottom: 24px;
    max-width: 360px;
  }

  .login-shell--split .login-visual-title {
    font-size: 30px;
  }
}

@media screen and (max-width: 640px) {
  .login-shell.login-shell--split {
    padding: 12px;
  }

  .login-shell--split .login-box-panel {
    padding: 14px;
  }

  .login-shell--split .login-box-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .login-shell--split .login-box-title {
    font-size: 30px;
  }

  .login-shell--split .login-visual-title {
    font-size: 26px;
  }

  .login-shell--split .login-box-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
