/* BreezePDF Pro pages: /forms, /signatures, /f/<id> */
@font-face { font-family: 'Clean'; src: url('/fonts/clean.ttf') format('truetype'); font-display: swap; }
:root { --primary: #3498db; --primary-dark: #2176b5; --text: #1e293b; --muted: #64748b; --border: #e2e8f0; --bg: #f6f8fb; --ok: #16a34a; --warn: #d97706; --bad: #dc2626; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Clean', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); }
.bz-top { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.bz-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.bz-logo img { width: 24px; height: 24px; }
.bz-nav { display: flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.bz-nav a { padding: 6px 12px; border-radius: 6px; text-decoration: none; color: #334155; font-size: 14px; font-weight: 600; }
.bz-nav a.active, .bz-nav a:hover { background: #eef6fd; color: var(--primary-dark); }
.bz-top .bz-user { margin-left: auto; font-size: 13px; color: var(--muted); }
.bz-main { max-width: 1180px; margin: 0 auto; padding: 24px; }
h1 { font-size: 1.5rem; margin: 0 0 6px; }
.bz-sub { color: var(--muted); margin: 0 0 20px; line-height: 1.5; }
.bz-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.bz-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: #334155; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.bz-btn:hover { background: #f8fafc; }
.bz-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.bz-btn.primary:hover { background: var(--primary-dark); }
.bz-btn.danger { color: var(--bad); border-color: #fecaca; }
.bz-btn.small { padding: 5px 10px; font-size: 13px; }
.bz-btn:disabled { opacity: .55; cursor: default; }
.bz-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize; background: #e2e8f0; color: #334155; }
.bz-badge.open, .bz-badge.completed, .bz-badge.signed { background: #dcfce7; color: #166534; }
.bz-badge.sent, .bz-badge.viewed { background: #dbeafe; color: #1e40af; }
.bz-badge.closed, .bz-badge.expired, .bz-badge.voided, .bz-badge.draft, .bz-badge.limit { background: #f1f5f9; color: #475569; }
.bz-badge.declined, .bz-badge.failed { background: #fee2e2; color: #991b1b; }
.bz-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.bz-privacy { display: flex; gap: 8px; align-items: flex-start; background: #f0f7ff; border: 1px solid #d0e3f7; color: #1e3a5f; border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.5; }
.bz-table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: #fff; max-height: 70vh; }
table.bz-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.bz-table th, .bz-table td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; text-align: left; vertical-align: top; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.bz-table th { position: sticky; top: 0; background: #f8fafc; font-weight: 700; color: #334155; cursor: pointer; user-select: none; z-index: 1; }
.bz-table th .arrow { color: var(--primary); margin-left: 4px; }
.bz-table tr:hover td { background: #fafcff; }
.bz-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bz-input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 14px; color: var(--text); background: #fff; }
.bz-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(52,152,219,.15); }
label.bz-field { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 12px; }
label.bz-field .bz-input { display: block; width: 100%; margin-top: 4px; font-weight: 400; }
.bz-empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.bz-lock { text-align: center; padding: 36px 24px; }
.bz-lock h2 { margin: 0 0 8px; }
.bz-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 100010; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.bz-meter { height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; width: 180px; display: inline-block; vertical-align: middle; margin-left: 8px; }
.bz-meter > span { display: block; height: 100%; background: var(--primary); }
.bz-modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 100005; display: flex; align-items: center; justify-content: center; padding: 16px; }
.bz-modal { background: #fff; border-radius: 12px; padding: 24px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.bz-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .bz-main { padding: 14px; } .bz-top { padding: 10px 14px; } }
