/* Government form styling + print rules for PhilFIDA Procurement forms. */

.gov-form {
    background: #fff;
    color: #000;
    max-width: 8.5in;
    margin: 1rem auto;
    padding: 0.6in 0.5in;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 0 0 1px #ddd, 0 8px 30px rgba(0,0,0,0.08);
}
.gov-letterhead { text-align: center; margin-bottom: 10px; }
.gov-letterhead .seal { width: 64px; height: 64px; object-fit: contain; }
.gov-letterhead .lh-rep { font-size: 11px; }
.gov-letterhead .lh-agency { font-weight: bold; text-transform: uppercase; font-size: 13px; }
.gov-letterhead .lh-addr { font-size: 10px; color: #222; }
.gov-form h2.form-title { text-align: center; font-size: 15px; font-weight: bold; text-transform: uppercase; margin: 12px 0; letter-spacing: .5px; }
.gov-form .form-code { text-align: right; font-size: 10px; font-style: italic; color: #444; }

.gov-form table { width: 100%; border-collapse: collapse; }
.gov-form table.bordered, .gov-form table.bordered th, .gov-form table.bordered td { border: 1px solid #000; }
.gov-form table.bordered th, .gov-form table.bordered td { padding: 4px 6px; vertical-align: top; }
.gov-form table.bordered th { background: #f0f0f0; font-weight: bold; text-align: center; }
.gov-form .num { text-align: right; font-variant-numeric: tabular-nums; }
.gov-form .ctr { text-align: center; }

.gov-field { border-bottom: 1px solid #000; min-width: 80px; display: inline-block; padding: 0 4px; }
.gov-form .meta-row { display: flex; justify-content: space-between; gap: 20px; margin: 4px 0; }
.gov-form .label { font-weight: bold; }

.sig-grid { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 24px; }
.sig-block { flex: 1 1 200px; text-align: center; }
.sig-block .sig-line { border-top: 1px solid #000; margin-top: 28px; padding-top: 2px; font-weight: bold; }
.sig-block .sig-role { font-size: 11px; }
.sig-block .sig-name { font-weight: bold; text-transform: uppercase; }
.sig-caption { font-size: 11px; }

.print-toolbar { max-width: 8.5in; margin: 1rem auto 0; display: flex; gap: 8px; justify-content: flex-end; }

@media print {
    .gov-topbar, .sidebar, .topbar, .audit-footer, .mobile-tabbar, .sidebar-overlay,
    .print-toolbar, .toast-stack, .no-print { display: none !important; }
    body { background: #fff !important; }
    .app-shell, .main, .content { display: block !important; margin: 0 !important; padding: 0 !important; }
    .gov-form { box-shadow: none; margin: 0; max-width: 100%; padding: 0.3in; }
    @page { size: Letter; margin: 0.5in; }
}
