:root {
    --blue: #1b75bb;
    --green: #29a64a;
    --orange: #f7941d;
    --purple: #2a2258;
    --light: #f6f8fb;
    --text: #1d2330;
    --muted: #687386;
    --border: #dfe5ee;
    --danger: #c62828;
    --success: #178244;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #f7fbff 0%, #fff7ec 100%);
}
a { color: var(--blue); text-decoration: none; }
.container { width: min(1080px, calc(100% - 28px)); margin: 0 auto; }
.header { padding: 22px 0 8px; text-align: center; }
.logo { max-width: 220px; height: auto; }
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(42, 34, 88, 0.08);
    padding: 24px;
    margin: 18px 0;
}
.hero-title { margin: 6px 0 6px; color: var(--purple); font-size: clamp(24px, 5vw, 38px); }
.hero-text { color: var(--muted); line-height: 1.55; margin-top: 0; }
.progress { height: 10px; border-radius: 999px; background: #e8edf5; overflow: hidden; margin: 12px 0 18px; }
.progress-bar { height: 100%; width: 16.66%; background: linear-gradient(90deg, var(--blue), var(--green), var(--orange)); transition: width .25s ease; }
.step-title { color: var(--purple); margin: 0 0 14px; }
.form-step { display: none; }
.form-step.active { display: block; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; margin: 0 0 7px; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 13px;
    font-size: 16px;
    background: #fff;
    color: var(--text);
}
textarea { min-height: 95px; resize: vertical; }
.help { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 6px 0 0; }
.required { color: var(--danger); }
.btn-row { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; flex-wrap: wrap; }
button, .btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: inline-block;
}
.btn-primary { background: var(--blue); color: white; }
.btn-secondary { background: #edf2f8; color: var(--purple); }
.btn-orange { background: var(--orange); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-small { padding: 8px 12px; font-size: 14px; }
.child-card { border: 1px dashed #bfd2e7; border-radius: 18px; padding: 16px; margin-bottom: 14px; background: #fbfdff; }
.child-card h3 { margin-top: 0; color: var(--blue); }
.batch-list { display: grid; gap: 10px; }
.batch-option {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 13px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff;
}
.batch-option input { width: auto; margin-top: 4px; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.badge-open { background: #e9f8ef; color: var(--success); }
.badge-full { background: #fff0e0; color: #9b4b00; }
.review-box { background: #f8fafc; border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin: 10px 0; }
.review-box h3 { margin: 0 0 10px; color: var(--purple); }
.notice { border-left: 5px solid var(--orange); background: #fff9ef; padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.admin-nav { background: var(--purple); color: white; padding: 12px 0; }
.admin-nav .container { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.admin-nav a { color: white; font-weight: 700; padding: 7px 10px; border-radius: 10px; }
.admin-nav a:hover { background: rgba(255,255,255,.14); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; padding: 11px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #f3f6fb; color: var(--purple); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.stat strong { display: block; color: var(--purple); font-size: 26px; }
.print-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--border); padding-bottom: 12px; }
.print-logo { max-width: 180px; }
@media (max-width: 720px) {
    .card { padding: 18px; border-radius: 18px; }
    .grid { grid-template-columns: 1fr; }
    .btn-row { flex-direction: column-reverse; }
    .btn-row button, .btn-row .btn { width: 100%; text-align: center; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media print {
    body { background: white; }
    .no-print, .admin-nav, .btn, button { display: none !important; }
    .card { box-shadow: none; border: none; margin: 0; padding: 0; }
    .container { width: 100%; }
}
