* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #f4f6f9; color: #2c3e50;
  padding: 24px; min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; }

header {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff; padding: 24px 28px; border-radius: 12px; margin-bottom: 20px;
}
header h1 { font-size: 1.5rem; margin-bottom: 6px; }
header p  { font-size: 0.9rem; opacity: 0.9; }

.panel {
  background: #fff; padding: 22px; border-radius: 10px;
  margin-bottom: 18px; box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.panel h2 {
  font-size: 1.05rem; margin-bottom: 14px; color: #1e3a8a;
  border-bottom: 2px solid #e2e8f0; padding-bottom: 8px;
}

.upload-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 700px) { .upload-grid { grid-template-columns: 1fr; } }

.upload-box {
  border: 2px dashed #cbd5e1; border-radius: 10px; padding: 20px;
  text-align: center; transition: 0.2s; cursor: pointer; background: #f8fafc;
}
.upload-box:hover { border-color: #2563eb; background: #eff6ff; }
.upload-box.filled { border-color: #16a34a; background: #f0fdf4; }
.upload-box.error  { border-color: #dc2626; background: #fef2f2; }
.upload-box .icon { font-size: 2rem; margin-bottom: 8px; }
.upload-box .label { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.upload-box .hint { font-size: 0.8rem; color: #64748b; }
.upload-box .filename {
  font-size: 0.85rem; color: #16a34a; margin-top: 8px; font-weight: 600;
  word-break: break-all;
}
.upload-box .info { font-size: 0.8rem; margin-top: 6px; color: #2563eb; }
input[type="file"] { display: none; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; align-items: center; }

button {
  padding: 12px 22px; border: none; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: 0.2s;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover:not(:disabled) { background: #1d4ed8; }

.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover:not(:disabled) { background: #15803d; }

.btn-secondary { background: #64748b; color: #fff; }
.btn-secondary:hover:not(:disabled) { background: #475569; }

.btn-copy { background: #7c3aed; color: #fff; }
.btn-copy:hover:not(:disabled) { background: #6d28d9; }

.status-msg {
  margin-top: 14px; padding: 12px 16px; border-radius: 6px;
  font-size: 0.88rem; display: none;
}
.status-msg.show { display: block; }
.status-msg.info    { background: #eff6ff; color: #1e40af; border-left: 4px solid #2563eb; }
.status-msg.success { background: #f0fdf4; color: #15803d; border-left: 4px solid #16a34a; }
.status-msg.warning { background: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }
.status-msg.error   { background: #fef2f2; color: #b91c1c; border-left: 4px solid #dc2626; }

.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px; margin-bottom: 18px;
}
.kpi-card {
  background: #fff; padding: 18px; border-radius: 10px;
  border-left: 5px solid #2563eb; box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.kpi-card.qris  { border-left-color: #f59e0b; }
.kpi-card.scb   { border-left-color: #8b5cf6; }
.kpi-card.match { border-left-color: #16a34a; }
.kpi-label { font-size: 0.78rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-value { font-size: 1.5rem; font-weight: 700; margin-top: 6px; }
.kpi-sub   { font-size: 0.8rem; color: #64748b; margin-top: 4px; }

.table-wrap {
  overflow-x: auto; background: #fff; border-radius: 10px;
  max-height: 500px; overflow-y: auto; box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
th {
  background: #1e3a8a; color: #fff; position: sticky; top: 0; z-index: 1;
  font-weight: 600;
}
tr:hover { background: #f1f5f9; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.zero { color: #cbd5e1; }
.has-value { color: #16a34a; font-weight: 600; }
.hidden { display: none; }