*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background: linear-gradient(to bottom right, #f8fafc, #ecfdf5, #f0fdfa);
    line-height: 1.5;
}
.min-h-screen { min-height: 100vh; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.p-6 { padding: 1.5rem; }
.p-4 { padding: 1rem; }
.p-3 { padding: 0.75rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mt-8 { margin-top: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.w-full { width: 100%; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.h-48 { height: 12rem; }
.h-16 { height: 4rem; }
.h-12 { height: 3rem; }
.object-contain { object-fit: contain; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.text-white { color: #fff; }
.text-slate-900 { color: #0f172a; }
.text-slate-800 { color: #1e293b; }
.text-slate-700 { color: #334155; }
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-red-600 { color: #dc2626; }
.text-brand-700 { color: #0b544f; }
.text-brand-600 { color: #0d655f; }
.bg-white { background-color: #fff; }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white\/70 { background-color: rgba(255, 255, 255, 0.7); }
.bg-brand-50 { background-color: #eef9f3; }
.bg-brand-600 { background-color: #0d655f; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-slate-50 { background-color: #f8fafc; }
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-slate-100 { border-color: #f1f5f9; }
.border-emerald-100 { border-color: #d1fae5; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-brand-600 { border-color: #0d655f; }
.border-red-200 { border-color: #fecaca; }
.border-dashed { border-style: dashed; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }
.shadow-brand-600\/20 { box-shadow: 0 10px 15px -3px rgb(13 101 95 / 0.2); }
.backdrop-blur { backdrop-filter: blur(8px); }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.touch-none { touch-action: none; }
.transition { transition: all 0.15s ease; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.625rem 1rem;
    font: inherit;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 2px #d5f0e3;
}
button, .btn {
    border: none;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}
.success-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 0 0.25rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    text-decoration: none;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.btn-icon {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    max-width: 1.125rem;
    flex-shrink: 0;
}
.btn svg {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}
.btn-icon--lg {
    width: 2rem;
    height: 2rem;
}
.btn-primary {
    background-color: #0d655f;
    color: #fff;
    border: 1px solid #0d655f;
}
.btn-primary:hover {
    background-color: #0b544f;
    border-color: #0b544f;
    color: #fff;
    box-shadow: 0 4px 12px rgb(13 101 95 / 0.28);
    transform: translateY(-1px);
}
.btn-outline {
    background-color: #fff;
    color: #0b544f;
    border: 1px solid #0d655f;
}
.btn-outline:hover {
    background-color: #eef9f3;
    color: #0b544f;
    box-shadow: 0 4px 12px rgb(13 101 95 / 0.12);
    transform: translateY(-1px);
}
.btn-secondary {
    background-color: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.btn-secondary:hover {
    background-color: #f8fafc;
    color: #334155;
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgb(15 23 42 / 0.08);
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}
.success-icon { color: #059669; }
.success-summary p + p { margin-top: 0.375rem; }

/* ── Halaman sukses ── */
.success-page {
    padding: 0.5rem 0 2rem;
}
.success-card {
    max-width: 42rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #fff;
    border: 1px solid #a7f3d0;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
.success-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 9999px;
    background: #d1fae5;
    color: #059669;
}
.success-icon-wrap svg {
    width: 2rem;
    height: 2rem;
}
.success-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}
.success-message {
    margin: 0.75rem 0 0;
    padding: 0 0.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #475569;
}
.success-summary {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.5;
}
.success-summary__label {
    font-weight: 600;
    color: #334155;
}
.rounded-xl.border.border-slate-300.px-3.py-1\.5.text-sm:hover { background: #f8fafc; }
.bg-brand-600:hover, button.bg-brand-600:hover { background-color: #0b544f; }
button:disabled { cursor: not-allowed; opacity: 0.6; }
label.flex.cursor-pointer.items-center.gap-2.rounded-xl.border:hover,
label.system-card:hover,
label.flex.cursor-pointer.flex-col:hover { border-color: #5eead4; }
label.system-card:has(:checked),
label.flex:has(:checked) { border-color: #0d655f; background-color: #eef9f3; }
.rounded-xl.border.border-emerald-200.bg-emerald-50 { background: #ecfdf5; color: #065f46; padding: 0.75rem 1rem; }
.rounded-xl.border.border-red-200.bg-red-50 { background: #fef2f2; color: #991b1b; padding: 0.75rem 1rem; }
.header-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.0625rem;
    line-height: 1.1;
    min-width: 0;
}
.header-brand p {
    margin: 0;
    font-size: 0.625rem;
    line-height: 1.1;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-brand h1 {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #d1fae5;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.04);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    min-height: 3rem;
}
.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
}
.site-header__logo {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 9999px;
    object-fit: contain;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}
.site-header__badge {
    display: none;
    flex-shrink: 0;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: #eef9f3;
    color: #0b544f;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
@media (min-width: 480px) {
    .site-header__badge { display: inline-flex; }
    .header-brand p { font-size: 0.6875rem; }
    .header-brand h1 { font-size: 0.875rem; }
}
@media (min-width: 640px) {
    .site-header__inner { padding: 0.625rem 1rem; min-height: 3.25rem; }
    .site-header__logo { width: 2.5rem; height: 2.5rem; }
    .header-brand h1 { font-size: 0.9375rem; }
}
@media (min-width: 640px) {
    .sm\:inline { display: inline; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:justify-between { justify-content: space-between; }
    .success-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    .success-actions .btn {
        min-width: 11rem;
        min-height: 2.75rem;
    }
    .success-card {
        padding: 2.5rem 2.25rem;
    }
    .success-summary {
        padding: 1.375rem 1.75rem;
    }
}
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Berita Acara detail (web preview + print) ── */
.main--report {
    max-width: none;
    padding: 0;
}
.report-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
    scroll-margin-top: 4.5rem;
}
@media (min-width: 768px) {
    .report-page {
        padding-top: 2.5rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
.report-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 210mm;
    margin-left: auto;
    margin-right: auto;
}
.report-actions__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
}
.report-actions__group--end {
    justify-content: flex-end;
    margin-left: auto;
}
.btn-toolbar {
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.08), 0 1px 2px rgb(15 23 42 / 0.04);
}
.btn-toolbar:hover {
    box-shadow: 0 4px 12px rgb(15 23 42 / 0.12);
}
@media (max-width: 639px) {
    .report-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .report-actions__group {
        width: 100%;
    }
    .report-actions__group--end {
        margin-left: 0;
    }
    .report-actions .btn {
        width: 100%;
    }
}
.report-sheet {
    width: 100%;
    max-width: 210mm;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    overflow: hidden;
    box-sizing: border-box;
}
#area-berita-acara {
    width: 100%;
    min-height: 297mm;
    padding: 2rem;
    box-sizing: border-box;
    background: #fff;
}
@media (min-width: 768px) {
    #area-berita-acara {
        padding: 2.5cm;
    }
}
.report-upload-status {
    max-width: 210mm;
    margin: 0 auto 1rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
}
.report-upload-status--info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.report-upload-status--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.report-upload-status--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.btn--loading { opacity: 0.75; cursor: wait; }
.btn--success { background-color: #059669 !important; border-color: #059669 !important; color: #fff !important; }
.btn--error { border-color: #f87171 !important; }

/* Mode export — ukuran tetap A4 portrait (794×1123 px @ 96dpi) */
#area-berita-acara.ba-pdf-export,
.report-sheet.ba-pdf-export-sheet {
    width: 794px !important;
    max-width: 794px !important;
    min-width: 794px !important;
    height: 1123px !important;
    min-height: 1123px !important;
    max-height: 1123px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}
#area-berita-acara.ba-pdf-export {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 57px 57px 57px 76px !important; /* atas/kanan/bawah 15mm, kiri 20mm */
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    background: #fff !important;
    overflow: visible !important;
}
.report-sheet.ba-pdf-export-sheet {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
}
#area-berita-acara.ba-pdf-export .ba-ttd {
    margin-top: 1.25rem !important;
    padding-top: 0 !important;
}
#area-berita-acara.ba-pdf-export .ba-doc-footer {
    flex-shrink: 0;
    margin-top: 0.75rem !important;
    overflow: visible !important;
    word-break: break-word;
    line-height: 1.4;
}
#area-berita-acara.ba-pdf-export .ba-section--qualitative {
    flex: 0 0 auto;
}
#area-berita-acara.ba-pdf-export .ba-qualitative {
    flex: 0 0 auto;
    min-height: 4rem;
    max-height: none;
    overflow: visible;
}
#area-berita-acara.ba-pdf-export .ba-signature-img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 180px !important;
    max-height: 60px !important;
    margin: 0.25rem auto !important;
}
#area-berita-acara.ba-pdf-export .ba-table {
    width: 100% !important;
    table-layout: fixed;
}
#area-berita-acara.ba-pdf-export .ba-table th,
#area-berita-acara.ba-pdf-export .ba-table td {
    overflow-wrap: break-word;
    word-break: break-word;
}
.ba-document {
    color: #1e293b;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}
html { scroll-padding-top: 4.5rem; }
.ba-header {
    text-align: center;
    margin-bottom: 0.625rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0d655f;
}
.ba-institution {
    margin: 0 0 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.ba-title {
    margin: 0 0 0.125rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #0f172a;
}
.ba-subtitle {
    margin: 0;
    font-size: 0.75rem;
    color: #475569;
}
.ba-section {
    margin-bottom: 0.5rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid #e2e8f0;
}
.ba-section--qualitative { margin-bottom: 0.375rem; }
.ba-section-title {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0d655f;
    line-height: 1.3;
}
.ba-section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.375rem;
    height: 1.375rem;
    margin-right: 0.375rem;
    padding: 0 0.25rem;
    border-radius: 4px;
    background: #0d655f;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    vertical-align: middle;
}
.ba-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.ba-table th,
.ba-table td {
    border: 1px solid #d1d5db;
    padding: 0.625rem 1rem;
    vertical-align: middle;
    line-height: 1.35;
}
.report-sheet .ba-table thead th {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 600;
}
.ba-text-left,
.ba-text-left th,
.ba-text-left td {
    text-align: left !important;
}
.ba-table--identitas th,
.ba-table--identitas td,
.ba-table--identitas .ba-identitas-label,
.ba-table--identitas .ba-identitas-value {
    text-align: left !important;
    vertical-align: top;
    padding: 0.5rem 1rem;
}
.report-sheet .ba-table--identitas th,
.report-sheet .ba-table--identitas td,
.report-sheet .ba-table--identitas .ba-identitas-label,
.report-sheet .ba-table--identitas .ba-identitas-value {
    text-align: left !important;
    vertical-align: top;
}
.report-sheet .ba-table--identitas th,
.report-sheet .ba-table--identitas .ba-identitas-label {
    background: #f8fafc;
    color: #334155;
    width: 30%;
}
.report-sheet .ba-table--identitas td,
.report-sheet .ba-table--identitas .ba-identitas-value {
    background: #fff;
    width: 70%;
}
.ba-table--identitas th,
.ba-table--identitas .ba-identitas-label {
    width: 30%;
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
}
.ba-table--identitas td,
.ba-table--identitas .ba-identitas-value {
    width: 70%;
    word-break: break-word;
}
.ba-table thead th {
    background: #0d655f;
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}
.ba-table--matriks .col-no,
.ba-table--matriks .col-skor { text-align: center; }
.ba-table--matriks .col-no { width: 3.5rem; }
.ba-table--matriks .col-skor { width: 4.5rem; }
.ba-skor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: #eef9f3;
    color: #0d655f;
    font-weight: 700;
    font-size: 0.75rem;
}
.ba-table--rekap td { text-align: center; vertical-align: middle; }
.ba-table--rekap .rekap-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
}
.ba-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.3;
}
.ba-badge--accepted { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.ba-badge--notes { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.ba-badge--rejected { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.success-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.ba-qualitative {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #0d655f;
    border-radius: 0 0.375rem 0.375rem 0;
    background: #f8fafc;
    font-size: 0.75rem;
    line-height: 1.45;
    min-height: 6.25rem;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
}
.ba-ttd {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 0.25rem;
    page-break-inside: avoid;
}
.ba-signature {
    width: 240px;
    text-align: center;
    font-size: 0.8125rem;
}
.ba-signature p { margin: 0.1875rem 0; }
.ba-ttd-date { font-size: 0.8125rem; }
.ba-ttd-role { font-size: 0.8125rem; }
.ba-signature-img {
    display: block;
    max-width: 180px;
    max-height: 60px;
    margin: 0.25rem auto;
    object-fit: contain;
}
.ba-signature-space {
    height: 60px;
    margin: 0.25rem auto;
}
.ba-signer-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}
.ba-signer-id {
    font-size: 0.6875rem;
    margin-top: 0.125rem;
}
.ba-doc-footer {
    margin-top: 0.375rem;
    padding-top: 0.375rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.625rem;
    color: #64748b;
    line-height: 1.4;
}
.ba-muted { color: #64748b; font-size: 0.75rem; }

@media print {
    @page {
        size: A4 portrait;
        margin: 15mm;
    }
    body {
        background: #fff !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    header,
    footer,
    .no-print,
    .print-hidden,
    .report-actions,
    .report-toolbar,
    .site-header,
    .rounded-xl.border.border-emerald-200.bg-emerald-50,
    .rounded-xl.border.border-red-200.bg-red-50 {
        display: none !important;
    }
    main {
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .report-sheet {
        width: 100%;
        max-width: none;
        min-height: auto;
        margin: 0;
        padding: 10mm;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    .report-sheet .ba-ttd {
        margin-top: 1.25rem;
        page-break-inside: avoid;
    }
    .ba-document { min-height: auto; }
    .ba-section,
    .ba-ttd { page-break-inside: avoid; }
    .ba-table thead th {
        background: #0d655f !important;
        color: #fff !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .ba-table--identitas th,
    .ba-table--identitas td,
    .ba-table--identitas .ba-identitas-label,
    .ba-table--identitas .ba-identitas-value {
        text-align: left !important;
        background: #f1f5f9 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .ba-table--identitas td,
    .ba-table--identitas .ba-identitas-value {
        background: #fff !important;
    }
    .ba-badge--accepted { background: #dcfce7 !important; color: #166534 !important; }
    .ba-badge--notes { background: #fef9c3 !important; color: #854d0e !important; }
    .ba-badge--rejected { background: #fee2e2 !important; color: #991b1b !important; }
    .ba-section-label {
        background: #0d655f !important;
        color: #fff !important;
    }
}
