/* Kenya Doc Maker 3.8: professional document systems, not decorative skins. */
.bdk-document.premium-output:not(.template-thermal){font-family:Arial,"Helvetica Neue",sans-serif;letter-spacing:0;box-shadow:0 12px 34px rgba(16,35,48,.12);color:#17232d}
.bdk-document.premium-output:not(.template-thermal) header{align-items:flex-start}
.bdk-document.premium-output:not(.template-thermal) header h2{font-size:17px;text-transform:none;letter-spacing:-.2px}
.bdk-document.premium-output:not(.template-thermal) .doc-title h1{font-size:22px;letter-spacing:.6px}
.bdk-document.premium-output:not(.template-thermal) .doc-chip{font-size:7px;letter-spacing:1.25px}
.bdk-document.premium-output:not(.template-thermal) .meta>div{min-height:78px;border-radius:0;box-shadow:none}
.bdk-document.premium-output:not(.template-thermal) table{border-collapse:collapse}
.bdk-document.premium-output:not(.template-thermal) th{padding:10px 9px;font-size:8px;letter-spacing:.35px;text-transform:uppercase}
.bdk-document.premium-output:not(.template-thermal) td{padding:11px 9px;font-size:9px}
.bdk-document.premium-output:not(.template-thermal) .doc-note{border-radius:0;box-shadow:none}

/* Proposals: generous offer hierarchy and a formal acceptance area. */
.bdk-document[data-layout-family="proposal"]{border:1px solid #9aa8b2;border-top:7px solid var(--doc-accent,#087f5b)}
.bdk-document[data-layout-family="proposal"] header{border-bottom:1px solid #9aa8b2}
.bdk-document[data-layout-family="proposal"] .bdk-layout-panel.offer{border:0;border-left:5px solid var(--doc-accent,#087f5b);background:#eef4f2}
.bdk-document[data-layout-family="proposal"] .proposal-parties>div:first-child{border-top:3px solid #203746}
.bdk-document[data-layout-family="proposal"] .totals .grand{background:#203746;color:#fff;border:0}
.bdk-document[data-layout-family="proposal"] .signature-grid>div:last-child span:after{content:" — OFFER ACCEPTANCE"}

/* Invoices: dense accounts layout with a strong amount-due block. */
.bdk-document[data-layout-family="billing"]{border:1px solid #a8b3bb;border-top:12px solid #17324a}
.bdk-document[data-layout-family="billing"] header{border-bottom:0}
.bdk-document[data-layout-family="billing"] .bdk-layout-panel.billing{border:1px solid #a8b3bb;border-left:5px solid var(--doc-accent,#1d4ed8);background:#fff}
.bdk-document[data-layout-family="billing"] .meta{border-top:1px solid #cad2d8;border-bottom:1px solid #cad2d8}
.bdk-document[data-layout-family="billing"] .meta>div{border:0;background:#fff}
.bdk-document[data-layout-family="billing"] .totals .grand{background:#17324a;color:#fff;border:0;font-size:13px}

/* Tax invoices: conservative statutory record treatment. */
.bdk-document[data-layout-family="tax"]{border:2px solid #1f3342}
.bdk-document[data-layout-family="tax"] header{margin:0;padding:0 0 16px;background:#fff;color:#17232d;border-bottom:5px double #1f3342}
.bdk-document[data-layout-family="tax"] header h1,.bdk-document[data-layout-family="tax"] header h2,.bdk-document[data-layout-family="tax"] header p,.bdk-document[data-layout-family="tax"] .doc-title>b{color:#17232d}
.bdk-document[data-layout-family="tax"] .bdk-layout-panel.tax{border:1px solid #7d8d98;background:#f2f4f5;box-shadow:none}
.bdk-document[data-layout-family="tax"] th{background:#1f3342}

/* Receipts: payment certificate, not a miniature invoice. */
.bdk-document[data-layout-family="receipt"]{border:4px double #1f5f49;background:#fff}
.bdk-document[data-layout-family="receipt"] header{display:grid;grid-template-columns:1fr auto;text-align:left;border-bottom:1px solid #8da79d}
.bdk-document[data-layout-family="receipt"] header .brand{text-align:left}.bdk-document[data-layout-family="receipt"] header .doc-title{text-align:right}
.bdk-document[data-layout-family="receipt"] .bdk-layout-panel.paid{order:0;border:0;border-top:1px solid #1f5f49;border-bottom:1px solid #1f5f49;border-radius:0;background:#eef5f1;text-align:left}
.bdk-document[data-layout-family="receipt"] .receipt-parties{display:none}
.bdk-document[data-layout-family="receipt"] .totals{width:100%;margin:15px 0;border:2px solid #1f5f49;padding:10px}
.bdk-document[data-layout-family="receipt"] .totals p:not(.grand){display:none}.bdk-document[data-layout-family="receipt"] .totals .grand{border:0;background:#fff;color:#143f31;font-size:16px}
.bdk-document[data-layout-family="receipt"] table{border-color:#8da79d}.bdk-document[data-layout-family="receipt"] th{background:#244d3f}

/* Procurement orders: formal supplier instruction and approval chain. */
.bdk-document[data-layout-family="procurement"]{border:1px solid #798a96;border-left:9px solid #183b56}
.bdk-document[data-layout-family="procurement"] header{border-bottom:4px solid #183b56}
.bdk-document[data-layout-family="procurement"] .bdk-layout-panel.procurement,.bdk-document[data-layout-family="procurement"] .bdk-layout-panel.fulfilment{border:1px solid #95a5b0;border-radius:0;background:#eef2f4;box-shadow:none}
.bdk-document[data-layout-family="procurement"] .order-parties>div:first-child{border-left:5px solid #183b56}
.bdk-document[data-layout-family="procurement"] th{background:#183b56}.bdk-document[data-layout-family="procurement"] .totals .grand{background:#183b56;color:#fff;border:0}

/* Movement documents: controlled warehouse registers with no monetary styling. */
.bdk-document[data-layout-family="movement"]{border:2px solid #42515c;background:#fff}
.bdk-document[data-layout-family="movement"] header{padding:0 0 15px;background:#fff;border-bottom:5px solid #42515c}
.bdk-document[data-layout-family="movement"] .bdk-layout-panel.movement{border:1px solid #42515c;background:#eef1f3;color:#17232d}
.bdk-document[data-layout-family="movement"] .bdk-layout-panel.movement .layout-title,.bdk-document[data-layout-family="movement"] .bdk-layout-panel.movement small,.bdk-document[data-layout-family="movement"] .bdk-layout-panel.movement b{color:#17232d}
.bdk-document[data-layout-family="movement"] .movement-register td:last-child{height:48px;border-left:2px solid #74838d}
.bdk-document[data-layout-family="movement"] .signature-grid{border-top:4px double #42515c;padding-top:15px}

/* Adjustments: auditable correction documents. */
.bdk-document[data-layout-family="adjustment"]{border:1px solid #8f9aa2}
.bdk-document[data-layout-family="adjustment"] header{border-bottom:5px double #333f48}
.bdk-document[data-layout-family="adjustment"] .bdk-layout-panel.adjustment{border:1px solid #8f9aa2;border-left:7px solid #333f48;background:#f3f4f5}
.bdk-document[data-layout-family="adjustment"] .totals .grand{background:#333f48;color:#fff;border:0}

/* Operational work records: ruled job-sheet presentation. */
.bdk-document[data-layout-family="operations"]{border:1px solid #7c8992;background:#fff}
.bdk-document[data-layout-family="operations"] header{border-bottom:8px solid #354550}
.bdk-document[data-layout-family="operations"] .bdk-layout-panel.job{border:1px solid #8e9aa3;background:#edf0f2;box-shadow:inset 7px 0 #354550}
.bdk-document[data-layout-family="operations"] .job-schedule td:nth-child(2){height:52px}
.bdk-document[data-layout-family="operations"] .doc-note{min-height:54px;background:repeating-linear-gradient(#fff,#fff 20px,#dfe4e7 21px)}

/* Collections: serious overdue notice, without promotional graphics. */
.bdk-document[data-layout-family="collections"]{border:2px solid #7d2b2b}
.bdk-document[data-layout-family="collections"] header{border-bottom:6px solid #7d2b2b}
.bdk-document[data-layout-family="collections"] .bdk-layout-panel.overdue{border:1px solid #7d2b2b;border-left:8px solid #7d2b2b;background:#f8eeee}
.bdk-document[data-layout-family="collections"] .bdk-layout-panel.overdue .totals{border-top:1px solid #7d2b2b}

/* Statements: accounting ledger with controlled closing balance. */
.bdk-document[data-layout-family="ledger"]{border:1px solid #667785;border-top:10px solid #172d40}
.bdk-document[data-layout-family="ledger"] header{border-bottom:1px solid #667785}
.bdk-document[data-layout-family="ledger"] .bdk-layout-panel.statement{border-radius:0;background:#172d40}
.bdk-document[data-layout-family="ledger"] .statement-ledger th{background:#172d40}.bdk-document[data-layout-family="ledger"] .statement-ledger tbody tr:nth-child(even){background:#edf1f4}
.bdk-document[data-layout-family="ledger"] .totals .grand{border:1px solid #172d40;background:#fff;color:#172d40}

@media(max-width:520px){.bdk-document.premium-output:not(.template-thermal){box-shadow:none}.bdk-document[data-layout-family="receipt"] header{grid-template-columns:1fr}.bdk-document[data-layout-family="receipt"] header .doc-title{text-align:left}.bdk-document[data-layout-family="receipt"] .bdk-layout-panel.paid .layout-fields{grid-template-columns:1fr 1fr}}
@media print{.bdk-document.premium-output:not(.template-thermal){box-shadow:none}.bdk-document[data-layout-family="operations"] .doc-note{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
