/* SmartNews Reportアプリ カスタムスタイル */

.kpi-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #6366f1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.kpi-card .label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.kpi-card .value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.25rem;
  line-height: 1.2;
  word-break: break-word;
}
.kpi-card .sub {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}
.kpi-card .gross-value {
  color: #047857;
  font-weight: 700;
}
.kpi-card .net-value {
  color: #475569;
}

/* テーブル */
table.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
table.report-table thead th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  text-align: right;
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
  position: sticky;
  top: 0;
  cursor: pointer;
  user-select: none;
}
table.report-table thead th:first-child,
table.report-table thead th.text-left {
  text-align: left;
}
table.report-table thead th:hover {
  background: #e2e8f0;
}
table.report-table tbody td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: right;
  white-space: nowrap;
}
table.report-table tbody td:first-child,
table.report-table tbody td.text-left {
  text-align: left;
  white-space: normal;
  max-width: 320px;
}
table.report-table tbody tr:hover {
  background: #f8fafc;
}
table.report-table tfoot td {
  padding: 0.65rem 0.75rem;
  font-weight: 700;
  background: #f8fafc;
  border-top: 2px solid #e2e8f0;
  text-align: right;
  color: #0f172a;
}
table.report-table tfoot td:first-child {
  text-align: left;
}

.gross-cell {
  color: #047857;
  font-weight: 600;
}
.net-cell {
  color: #334155;
}
.muted {
  color: #94a3b8;
  font-size: 0.7rem;
}

/* ドロップゾーン強調 */
#dropzone.dragover {
  border-color: #6366f1 !important;
  background: #eef2ff !important;
}

.sort-arrow {
  font-size: 0.65rem;
  margin-left: 0.25rem;
  color: #94a3b8;
}
.sort-arrow.active {
  color: #6366f1;
}
