:root {
  --blue: #004aad;
  --bg: #f3f6fb;
  --card: #ffffff;
  --muted: #6b7280;
  --hover: #005fcc;
}

/* Reset */
* { box-sizing: border-box; margin:0; padding:0; }

/* Body & font */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: #222;
  line-height: 1.5;
}

/* Header */
.header {
  background: var(--blue);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header img { height: 60px; }
.header h1 { font-size: 22px; margin:0; }
.header .small { font-size: 13px; color: #ddd; }

/* Container & Card */
.container {
  max-width: 960px;
  margin: 24px auto;
  padding: 16px;
}
.card {
  background: var(--card);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
}

/* Form */
label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
input, select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Buttons */
.btn {
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}
.btn:hover { background: var(--hover); }
.btn-alt { background: #555; }
.btn-alt:hover { background: #444; }

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 15px;
}
th, td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
}
th {
  background: var(--blue);
  color: white;
}
tr:nth-child(even) { background: #f9f9f9; }

/* Small text */
.small { font-size: 13px; color: var(--muted); }

/* Dokumen konfirmasi */
.print-area {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
}
.print-area .header-doc {
  text-align: center;
  border-bottom: 2px solid var(--blue);
  margin-bottom: 15px;
  padding-bottom: 10px;
}
.print-area .header-doc img { height: 70px; }
.print-area h3 { color: var(--blue); text-align: center; margin-top: 0; }
.print-area .doc-section { padding: 12px; background:#fff; border:1px solid #e6e6e6; border-radius:8px; }

/* Cetak */
@media print {
  body { background: #fff; color: #000; }
  .header, .btn { display: none !important; }
  .card { box-shadow: none; border: 1px solid #000; }
  .print-area { max-height: 950px; overflow: hidden; page-break-inside: avoid; }
}

/* Responsive */
@media (max-width: 600px) {
  .header { flex-direction: column; align-items: flex-start; }
  .container { padding: 12px; margin: 12px; }
  .btn { width: 100%; }
}
