/* Industry dashboard - modern UI */
.industry-dashboard .page-header { margin-bottom: 0; }
.industry-dashboard .page-subtitle {
  color: var(--color-text-muted);
  margin: 0.25rem 0 0 0;
  font-size: 0.9375rem;
}

.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.dashboard-actions .btn { min-width: 140px; }

/* Recent submissions table – scrollable when many rows */
#view-industry-dashboard .table-scroll-wrap,
#view-industry-submissions .table-scroll-wrap {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#view-industry-dashboard .table-scroll-wrap .dashboard-table thead th,
#view-industry-submissions .table-scroll-wrap .dashboard-table thead th {
  position: sticky;
  top: 0;
  background: var(--color-surface, #fff);
  z-index: 1;
  box-shadow: 0 1px 0 var(--color-border, #e5e7eb);
}

/* Industry Map – modern view */
.industry-map-modern .dashboard-header { margin-bottom: var(--space-xl); }
.industry-map-loading {
  padding: var(--space-md);
  text-align: center;
  color: var(--color-text-muted, #64748b);
  margin: 0;
}
.industry-map-loading .fa-spinner { margin-right: 0.5rem; }
.industry-map-stats { margin-bottom: var(--space-lg); }
.industry-map-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}
.industry-map-stat {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-surface, #fff);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.industry-map-stat:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.industry-map-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.industry-map-stat-icon.stat-trees { background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.15)); color: #16a34a; }
.industry-map-stat-icon.stat-verified { background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.15)); color: #2563eb; }
.industry-map-stat-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.industry-map-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--color-text, #1e293b); line-height: 1.2; }
.industry-map-stat-label { font-size: 0.8125rem; color: var(--color-text-muted, #64748b); font-weight: 500; }

.industry-map-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-lg);
  align-items: start;
}
@media (max-width: 900px) {
  .industry-map-layout { grid-template-columns: 1fr; }
}
.industry-map-card {
  padding: var(--space-lg);
  background: var(--color-surface, #fff);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.industry-map-card .chart-title { margin-bottom: var(--space-md); }
.industry-map-container {
  height: 480px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg, #f1f5f9);
}
.industry-map-sidebar { min-width: 0; }
.industry-map-sidebar-card {
  padding: var(--space-lg);
  background: var(--color-surface, #fff);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: var(--space-lg);
}
.industry-map-sidebar-card .chart-title { margin-bottom: var(--space-md); display: flex; align-items: center; gap: 0.5rem; }
.industry-map-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary, #0d9488);
  border-radius: 999px;
}
.industry-map-list {
  max-height: 400px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.industry-map-ul { list-style: none; margin: 0; padding: 0; }
.industry-map-li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.industry-map-li:last-child { border-bottom: none; }
.industry-map-li-coords { font-weight: 600; color: var(--color-text, #1e293b); font-family: ui-monospace, monospace; font-size: 0.8125rem; }
.industry-map-li-meta { color: var(--color-text-muted, #64748b); font-size: 0.8125rem; display: flex; align-items: center; gap: 0.35rem; }
.industry-map-verified { color: #16a34a; }
.industry-map-more { margin: 0.5rem 0 0 0; font-size: 0.8125rem; color: var(--color-text-muted, #64748b); }

/* Flash message (e.g. after Pay now) */
.flash-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  font-weight: 500;
}
.flash-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Submit form - full page width */
.form-card-full {
  max-width: none;
  width: 100%;
}

.form-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Production lines (multiple material / volume / units) */
.production-lines-wrap { margin-bottom: var(--space-lg); }
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: 0.5rem;
}
.form-label-row .form-label { margin-bottom: 0; }
.form-label-row-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.production-lines-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.production-line-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 120px auto;
  align-items: center;
  gap: 0.5rem;
}
.production-line-row .form-control { min-width: 0; }
.production-line-remove {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
}
.production-line-remove:hover {
  color: var(--color-error, #c00);
  background: rgba(204, 0, 0, 0.08);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover {
  background: var(--color-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
@media (max-width: 560px) {
  .production-line-row {
    grid-template-columns: 1fr 80px auto;
  }
  .production-line-row .production-line-units { grid-column: 1 / -1; max-width: 140px; }
}

/* Material type row + popover (add / edit / delete from icon) */
.material-type-wrap { position: relative; }
.material-type-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.material-type-row .form-control { flex: 1; min-width: 0; }
.material-icon-btn {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--color-text-muted);
}
.material-icon-btn:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.material-popover {
  position: fixed;
  z-index: 1000;
  min-width: 260px;
  max-width: 320px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
}
.material-popover[hidden] { display: none !important; }

/* Full-width modal variant */
.material-popover-fullwidth {
  inset: 0;
  min-width: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}
.material-popover-fullwidth[hidden] { display: none !important; }
.material-popover-fullwidth .material-popover-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.material-popover-fullwidth .material-popover-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.material-popover-fullwidth .material-popover-list {
  max-height: 50vh;
  flex: 1;
  min-height: 0;
}
.material-popover-add-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}
.material-popover-field {
  flex: 1;
  min-width: 140px;
}
.material-popover-field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}
.material-popover-field-label-invisible { visibility: hidden; }
.material-popover-add-btn-wrap {
  flex: 0 0 auto;
  min-width: auto;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.material-popover-add-btn-wrap .btn { flex-shrink: 0; }

.material-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.9375rem;
}
.material-popover-close {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--color-text-muted);
  border-radius: var(--radius);
}
.material-popover-close:hover { color: var(--color-text); background: var(--color-bg); }
.material-popover-add {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.material-popover-add .form-control { margin-bottom: 0; }
.material-popover-add-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.material-popover-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  max-height: 220px;
  overflow-y: auto;
}
.material-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.material-list-item:hover { background: var(--color-bg); }
.material-list-item .material-label { flex: 1; min-width: 0; }
.material-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.material-list-item .material-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  min-width: 2rem;
  padding: 0.35rem 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  border-radius: var(--radius);
  font-size: 0.8125rem;
}
.material-list-item .material-btn-icon:hover {
  color: var(--color-primary);
  background: var(--color-bg);
}
.material-list-item .material-btn-icon.material-delete:hover { color: var(--color-danger, #dc2626); }
.material-list-item .material-btn-icon .material-btn-label { white-space: nowrap; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary-gradient);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-primary);
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Charts */
.dashboard-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.chart-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.chart-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-md) 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-title i { color: var(--color-primary); }

.chart-container canvas { max-width: 100%; }

/* Table */
.dashboard-table-card { padding: var(--space-lg); }
.dashboard-table-card .chart-title { margin-bottom: var(--space-md); }

/* Report production: emission factor reference table */
.industry-report-production-card {
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.industry-report-production-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text, #1e293b);
}
.industry-report-production-subtitle {
  margin: 0 0 var(--space-md) 0;
  font-size: 0.875rem;
  color: var(--color-text-muted, #64748b);
}
.industry-report-production-meta {
  margin-bottom: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.industry-report-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}
.industry-report-meta-row:last-child { margin-bottom: 0; }
.industry-report-meta-row .form-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted, #64748b);
}
.industry-report-meta-row .optional {
  font-weight: 400;
  color: var(--color-text-muted, #94a3b8);
}
.industry-report-year {
  width: 11rem;
}
.industry-report-site {
  flex: 1;
  min-width: 12rem;
}
.industry-report-notes {
  flex: 1;
  min-width: 100%;
  resize: vertical;
}
.industry-report-planting-summary {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-bg, #f8fafc);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e2e8f0);
}
.industry-report-planting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}
.industry-report-planting-row:not(:last-child) {
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.industry-report-planting-label {
  font-size: 0.9375rem;
  color: var(--color-text, #1e293b);
}
.industry-report-planting-label i {
  margin-right: 0.35rem;
  color: var(--color-primary, #059669);
}
.industry-report-planting-value {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-primary, #059669);
}
.industry-report-pay-wrap {
  margin-top: var(--space-lg);
  width: 100%;
}
.industry-report-pay-now-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-primary, #059669);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}
.industry-report-pay-now-btn:hover {
  background: var(--color-primary-hover, #047857);
  color: white;
  text-decoration: none;
}
.industry-report-pay-now-btn i {
  margin-right: 0.5rem;
}
.industry-emission-table { margin-bottom: var(--space-md); }
.industry-emission-table th { white-space: nowrap; }
.industry-emission-table td .form-control {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.industry-emission-table .industry-emission-total-co2 {
  font-weight: 600;
  color: var(--color-text, #1e293b);
  min-width: 5rem;
}
.industry-emission-table .industry-emission-remove-row {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
.industry-emission-table .industry-emission-remove-row:hover {
  color: #dc2626;
  background: #fef2f2;
}
.industry-emission-table .industry-emission-unit[readonly] {
  background: var(--color-bg, #f1f5f9);
  cursor: default;
}
.industry-emission-table select.industry-emission-select {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.industry-emission-loading {
  text-align: center;
  padding: var(--space-lg);
  color: var(--color-text-muted, #64748b);
}
.industry-emission-total-row {
  font-weight: 600;
  background: var(--color-bg, #f8fafc);
}
.industry-emission-grand-total-label {
  text-align: right;
  padding-right: 1rem;
}
.industry-emission-grand-total-value {
  font-weight: 700;
  color: var(--color-primary, #059669);
}
.industry-emission-add-row-btn {
  margin-top: 0.25rem;
}
.industry-report-years-bar-wrap {
  margin-top: var(--space-lg);
  padding: var(--space-md) 0;
}
.industry-report-years-bar-wrap .form-label {
  margin: 0 0 var(--space-sm) 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted, #64748b);
}
.industry-report-years-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.industry-report-years-slider {
  flex: 1;
  min-width: 8rem;
  max-width: 20rem;
  height: 0.5rem;
  accent-color: var(--color-primary, #059669);
}
.industry-report-years-value {
  font-weight: 600;
  min-width: 4rem;
  color: var(--color-text, #1e293b);
}

.industry-ec0-stats { margin-bottom: var(--space-xl); }
.industry-ec0-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-lg);
}
.industry-ec0-stat-cards .stat-card {
  padding: var(--space-lg);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.industry-ec0-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.industry-ec0-charts .chart-card { padding: var(--space-lg); }
.industry-ec0-charts .chart-title { margin-bottom: var(--space-md); }
.status-badge.verified { background: #d1fae5; color: #065f46; }

.industry-submissions-filter {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.industry-filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted, #64748b);
}
.industry-filter-select {
  min-width: 160px;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.dashboard-table th,
.dashboard-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.dashboard-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.dashboard-table tbody tr:hover {
  background: var(--color-bg);
}

.dashboard-table .status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.pending_payment { background: #fef3c7; color: #92400e; }
.status-badge.paid { background: #dbeafe; color: #1e40af; }
.status-badge.assigned { background: #d1fae5; color: #065f46; }

.dashboard-table .table-link {
  font-weight: 500;
  color: var(--color-primary);
}
.dashboard-table .table-link:hover { text-decoration: underline; }

.table-empty {
  padding: var(--space-xl);
  text-align: center;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .dashboard-header { flex-direction: column; align-items: stretch; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-charts { grid-template-columns: 1fr; }
}

/* Calculation result report style */
.result-report-card { padding: var(--space-lg); }
.result-report-title {
  margin: 0 0 var(--space-md) 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text, #1e293b);
}
.result-report-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}
.result-report-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.result-report-row:last-child { border-bottom: none; }
.result-report-label {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #64748b);
}
.result-report-value {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text, #1e293b);
}
.report-lines-table {
  font-size: 0.875rem;
  border-collapse: collapse;
  margin-top: 0.25rem;
}
.report-lines-table th, .report-lines-table td {
  padding: 0.25rem 0.5rem;
  text-align: left;
  border: 1px solid var(--color-border);
}
.result-report-secondary {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-text-muted, #64748b);
}
.result-report-actions { margin: 0; }

/* Submission report detail page */
.report-loading {
  padding: var(--space-xl);
  text-align: center;
  color: var(--color-text-muted, #64748b);
}
.report-loading .fa-spinner { margin-right: 0.5rem; }
.report-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  width: 100%;
  max-width: none;
}
.report-detail .card {
  padding: var(--space-lg);
}
.report-header {
  margin-bottom: 0;
}
.report-submission-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text, #1e293b);
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-text-muted, #64748b);
}
.report-status {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius, 6px);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: capitalize;
}
.report-status-paid,
.report-status-assigned { background: #d4edda; color: #155724; }
.report-status-pending_payment { background: #fff3cd; color: #856404; }
.report-section-title {
  margin: 0 0 var(--space-md) 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text, #1e293b);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.report-section-title i { color: var(--color-primary, #0d9488); }
.report-section-body { padding-top: 0; }
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
}
.report-grid-highlight .report-field-value { font-weight: 700; }
.report-value-co2 { color: var(--color-primary, #0d9488); }
.report-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.report-field-full { grid-column: 1 / -1; }
.report-field-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #64748b);
  text-transform: capitalize;
}
.report-field-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text, #1e293b);
}
.report-secondary {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-text-muted, #64748b);
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}
.report-table th,
.report-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.report-table th {
  font-weight: 600;
  color: var(--color-text-muted, #64748b);
  background: var(--color-bg, #f8fafc);
}
.report-table tbody tr:hover { background: var(--color-bg, #f8fafc); }
.report-empty {
  margin: 0;
  color: var(--color-text-muted, #64748b);
  font-size: 0.9375rem;
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-sm);
}
.report-actions .btn { min-width: 140px; }

/* Industry report – modern UI */
.industry-report-modern .dashboard-header { margin-bottom: var(--space-xl); }
.industry-report-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: 100%;
  max-width: none;
}
.industry-report-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}
.industry-report-stat {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-surface, #fff);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.industry-report-stat:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.industry-report-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.industry-report-stat-icon.stat-co2 { background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(6, 182, 212, 0.15)); color: #0ea5e9; }
.industry-report-stat-icon.stat-trees { background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.15)); color: #16a34a; }
.industry-report-stat-icon.stat-fee { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.15)); color: #7c3aed; }
.industry-report-stat-icon.stat-status { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15)); color: #d97706; }
.industry-report-stat-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.industry-report-stat-value { font-size: 1.25rem; font-weight: 700; color: var(--color-text, #1e293b); line-height: 1.2; }
.industry-report-stat-label { font-size: 0.8125rem; color: var(--color-text-muted, #64748b); font-weight: 500; }
.industry-report-stat .report-status { font-size: 0.875rem; }

.industry-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.industry-report-card {
  padding: var(--space-lg);
  background: var(--color-surface, #fff);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.industry-report-card .chart-title { margin-bottom: var(--space-md); }
.industry-report-card-body { padding-top: 0; }
.chart-wrap-report { position: relative; height: 220px; }
.chart-wrap-report canvas { max-height: 220px; }
.industry-report-kv {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}
.industry-report-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.industry-report-kv-label { font-size: 0.875rem; color: var(--color-text-muted, #64748b); font-weight: 500; flex-shrink: 0; }
.industry-report-kv-value { font-size: 0.9375rem; font-weight: 600; color: var(--color-text, #1e293b); text-align: right; }
.industry-report-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: flex-start;
}
.industry-report-meta-row .industry-report-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.industry-report-meta-row .industry-report-meta-item .industry-report-kv-label { margin-bottom: 0; }
.industry-report-meta-row .industry-report-meta-item .industry-report-kv-value { text-align: left; }
.industry-report-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.industry-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}
.industry-report-table th,
.industry-report-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.industry-report-table th {
  font-weight: 600;
  color: var(--color-text-muted, #64748b);
  background: var(--color-bg, #f8fafc);
  font-size: 0.8125rem;
}
.industry-report-table tbody tr:hover { background: var(--color-bg, #f8fafc); }

/* Result popup (modal) */
.result-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.result-popup-overlay[hidden] { display: none !important; }
.result-popup-overlay.result-popup-open {
  opacity: 1;
  visibility: visible;
}
.result-popup-overlay.result-popup-open[hidden] { display: flex !important; }
.result-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.result-popup-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface, #fff);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-lg, 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1));
  padding: var(--space-lg);
}
.result-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.result-popup-header .result-report-title { margin: 0; }
.result-popup-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text-muted, #64748b);
  cursor: pointer;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.result-popup-close:hover {
  background: var(--color-bg, #f1f5f9);
  color: var(--color-text, #1e293b);
}
.result-popup-box .result-report-body { margin-bottom: var(--space-md); }
.result-popup-box .result-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-md);
}
