.report-page {
  --report-primary: #1A56DB;
  --report-primary-light: #E1EFFE;
  --report-accent: #00B4D8;
  --report-success: #10B981;
  --report-warning: #F59E0B;
  --report-danger: #EF4444;
  --report-text: #0F172A;
  --report-muted: #475569;
  --report-border: #CBD5E1;
  --report-bg: #F1F5F9;
  --report-card: #FFFFFF;
  --report-input-bg: #FFFFFF;
  --report-radius: 12px;
  --report-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);

  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--report-bg);
  color: var(--report-text);
  line-height: 1.6;
  min-height: calc(100vh - 64px);
}

.report-page.hidden { display: none; }

.report-page .report-header {
  background: var(--report-card);
  border-bottom: 1px solid var(--report-border);
  position: sticky;
  top: 64px;
  z-index: 90;
  box-shadow: var(--report-shadow);
}

.report-page .report-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.report-page .report-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.report-page .report-logo h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--report-text);
}

.report-page .report-logo p {
  font-size: 13px;
  color: var(--report-muted);
}

.report-page .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.report-page .btn-primary {
  background: var(--report-primary);
  color: white;
}

.report-page .btn-primary:hover { background: #1648c0; }
.report-page .btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.report-page .report-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.report-page .card {
  background: var(--report-card);
  border-radius: var(--report-radius);
  padding: 24px;
  box-shadow: var(--report-shadow);
  border: 1px solid var(--report-border);
}

.report-page .card h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--report-text);
}

.report-page .subtitle {
  font-size: 13px;
  font-weight: 400;
  color: var(--report-muted);
}

.report-page .form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.report-page .form-row.compact { margin-top: 8px; }

.report-page .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 120px;
  position: relative;
}

.report-page .form-group.inline {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex: none;
}

.report-page .form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--report-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.report-page .form-group .unit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 13px;
  color: var(--report-muted);
  pointer-events: none;
}

.report-page input[type="number"],
.report-page input[type="text"],
.report-page select {
  padding: 8px 12px;
  border: 1px solid var(--report-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--report-text);
  background: var(--report-input-bg);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.report-page input[type="number"] { padding-right: 36px; }

.report-page input::placeholder {
  color: #94A3B8;
}

.report-page input:focus,
.report-page select:focus {
  outline: none;
  border-color: var(--report-primary);
  box-shadow: 0 0 0 3px var(--report-primary-light);
}

.report-page select {
  color: var(--report-text);
  background-color: var(--report-input-bg);
}

.report-page .kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.report-page .kpi-card {
  background: #F8FAFC;
  border: 1px solid var(--report-border);
  border-radius: 10px;
  padding: 16px;
}

.report-page .kpi-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--report-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--report-primary-light);
}

.report-page .chart-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: start;
}

.report-page .chart-col {
  background: #F8FAFC;
  border: 1px solid var(--report-border);
  border-radius: 10px;
  padding: 16px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-page .chart-col canvas {
  max-height: 280px;
  width: 100% !important;
}

.report-page .input-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.report-page .input-table th {
  text-align: left;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--report-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--report-border);
}

.report-page .input-table td {
  padding: 4px 4px;
}

.report-page .input-table td:first-child {
  color: var(--report-muted);
  font-weight: 600;
  width: 28px;
  text-align: center;
}

.report-page .input-table input {
  font-size: 13px;
  padding: 6px 8px;
  color: var(--report-text);
  background: var(--report-input-bg);
  border: 1px solid var(--report-border);
  border-radius: 6px;
}

.report-page #weeklyInputs .form-group {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.report-page #weeklyInputs .form-group label {
  min-width: 56px;
  text-transform: none;
  font-size: 13px;
}

.report-page .week-5.hidden { display: none; }

.report-page .notice-card { border-left: 4px solid var(--report-warning); }

.report-page .notice {
  font-size: 14px;
  color: var(--report-muted);
  margin-bottom: 16px;
}

.report-page .blank-preview {
  border: 1px dashed var(--report-border);
  border-radius: 8px;
  overflow: hidden;
}

.report-page .blank-header {
  background: var(--report-primary-light);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--report-primary);
}

.report-page .blank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.report-page .blank-table th {
  background: var(--report-primary);
  color: white;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
}

.report-page .blank-cell {
  text-align: center;
  padding: 32px;
  color: var(--report-muted);
  font-style: italic;
}

.report-page .report-footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--report-muted);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  z-index: 200;
  transition: opacity .3s, transform .3s;
  transform: translateY(0);
}

.toast.success { background: var(--report-success, #10B981); }
.toast.error { background: var(--report-danger, #EF4444); }
.toast.hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }

@media (max-width: 768px) {
  .report-page .chart-form-grid { grid-template-columns: 1fr; }
  .report-page .report-header-inner { flex-direction: column; align-items: stretch; }
  .report-page .kpi-grid { grid-template-columns: 1fr; }
}
