/* Kenya Doc Maker Core 7.12 premium visual system */
.bdk-document.kdm-premium{--kdm-primary:#102a43;--kdm-soft:#f1f5f7;--kdm-line:#d8e1e5;--kdm-gold:#c9a227}
.bdk-document.kdm-premium .kdm-premium-sheet{background:#fff}
.bdk-document.kdm-premium .kdm-premium-sheet>header{position:relative;background:var(--kdm-primary)!important;border-bottom-color:var(--kdm-accent)!important}
.bdk-document.kdm-premium .kdm-title h1,.bdk-document.kdm-premium .kdm-title h2,.bdk-document.kdm-premium .kdm-title h3{color:#fff!important}
.bdk-document.kdm-premium .kdm-items h4,.bdk-document.kdm-premium .kdm-totals>div{background:var(--kdm-primary)!important}
.bdk-document.kdm-premium .kdm-items th{background:var(--kdm-primary)!important;color:#fff!important;border-right:1px solid #ffffff32!important}
.bdk-document.kdm-premium .kdm-items tbody tr:nth-child(even) td{background:var(--kdm-soft)!important}
.bdk-document.kdm-premium .kdm-hero>div,.bdk-document.kdm-premium .kdm-notes article{background:var(--kdm-soft)}
.bdk-document.kdm-premium .kdm-title small{border-color:#ffffff70;background:#ffffff12}
.bdk-document.kdm-premium .kdm-amount{box-shadow:0 9px 22px color-mix(in srgb,var(--kdm-accent) 24%,transparent)}

.template-modern.kdm-premium{--kdm-primary:#102a43;--kdm-soft:#eef4f7}
.template-modern.kdm-premium .kdm-premium-sheet>header{background:linear-gradient(125deg,#102a43,#174f73)!important}
.template-modern.kdm-premium .kdm-premium-sheet>header:after{content:"EXECUTIVE SERIES";position:absolute;right:40px;bottom:8px;color:#ffffff70;font-size:6px;font-weight:800;letter-spacing:1.8px}

.template-corporate.kdm-premium{--kdm-primary:#1f365c;--kdm-accent:#c9a227!important;--kdm-soft:#f7f5ef;--kdm-line:#d9d1b8}
.template-corporate.kdm-premium .kdm-premium-sheet>header{background:#1f365c!important;border-bottom:7px solid #c9a227!important}
.template-corporate.kdm-premium .kdm-title small{color:#f4d35e;border-color:#c9a227}
.template-corporate.kdm-premium .kdm-hero>div:first-child{border-left-color:#c9a227}
.template-corporate.kdm-premium .kdm-info small,.template-corporate.kdm-premium .kdm-notes small{color:#9a7818}
.template-corporate.kdm-premium .kdm-items th{border-color:#ffffff25!important}

.template-minimal.kdm-premium{--kdm-primary:#1e293b;--kdm-accent:#64748b!important;--kdm-soft:#f8fafc;--kdm-line:#cbd5e1}
.template-minimal.kdm-premium .kdm-premium-sheet>header{background:#fff!important;border-top:5px solid #1e293b!important;border-bottom:1px solid #94a3b8!important}
.template-minimal.kdm-premium .kdm-brand h2,.template-minimal.kdm-premium .kdm-title h1,.template-minimal.kdm-premium .kdm-title>b{color:#0f172a!important}
.template-minimal.kdm-premium .kdm-title h2,.template-minimal.kdm-premium .kdm-title h3{color:#0f172a!important}
.template-minimal.kdm-premium .kdm-brand p,.template-minimal.kdm-premium .kdm-title small{color:#475569!important}
.template-minimal.kdm-premium .kdm-title small{background:#f1f5f9;border-color:#94a3b8}
.template-minimal.kdm-premium .kdm-hero>div,.template-minimal.kdm-premium .kdm-notes article{border:1px solid #e2e8f0;border-radius:0;background:#fff}
.template-minimal.kdm-premium .kdm-amount{border-radius:0!important;box-shadow:none}

.template-gold.kdm-premium{--kdm-primary:#24231f;--kdm-accent:#b48a2a!important;--kdm-soft:#f8f5ec;--kdm-line:#d9cfb4}
.template-gold.kdm-premium .kdm-premium-sheet{background:linear-gradient(90deg,#fff 0,#fff 97%,#b48a2a 97%,#b48a2a 100%)}
.template-gold.kdm-premium .kdm-premium-sheet>header{background:linear-gradient(125deg,#171713,#302d25)!important;border-bottom-color:#b48a2a!important}
.template-gold.kdm-premium .kdm-title small{color:#e6c96e;border-color:#b48a2a}
.template-gold.kdm-premium .kdm-info small,.template-gold.kdm-premium .kdm-notes small{color:#8f6b19}

.template-colorful.kdm-premium{--kdm-primary:#143b49;--kdm-accent:#087f5b!important;--kdm-soft:#edf8f5;--kdm-line:#c8e1da}
.template-colorful.kdm-premium .kdm-premium-sheet>header{background:linear-gradient(120deg,#0b6f55 0 47%,#145b8c 47% 100%)!important;border-bottom-color:#f5c842!important}
.template-colorful.kdm-premium .kdm-amount{background:linear-gradient(115deg,#087f5b,#145b8c)!important}
.template-colorful.kdm-premium .kdm-items h4,.template-colorful.kdm-premium .kdm-totals>div{background:linear-gradient(110deg,#143b49,#145b8c)!important}
.template-colorful.kdm-premium .kdm-items th{background:#087f5b!important}
.template-colorful.kdm-premium .kdm-hero>div{border-radius:14px}

/* Signature Invoice: approved KenyaDocMaker navy, teal and gold billing design. */
.template-signature-invoice.kdm-premium{--kdm-primary:#0b1f3a;--kdm-accent:#0e7c7b!important;--kdm-soft:#eef4f6;--kdm-line:#d7e2e6;--kdm-gold:#f2b544}
.template-signature-invoice.kdm-premium .kdm-premium-sheet{border-right:7px solid var(--kdm-gold)}
.template-signature-invoice.kdm-premium .kdm-premium-sheet>header{background:#0b1f3a!important;border-bottom:7px solid #f2b544!important}
.template-signature-invoice.kdm-premium .kdm-title small{color:#f2b544;border-color:#f2b544;background:transparent}
.template-signature-invoice.kdm-premium .kdm-title h1{color:#f2b544!important;letter-spacing:1px!important;text-transform:uppercase}
.template-signature-invoice.kdm-premium .kdm-billing-opening{grid-template-columns:1.15fr .85fr}
.template-signature-invoice.kdm-premium .kdm-billing-opening .kdm-party{border-left:0;border-top:5px solid #0e7c7b;background:#fff;padding-left:0}
.template-signature-invoice.kdm-premium .kdm-billing-opening .kdm-summary{background:#eef4f6;border-radius:0}
.template-signature-invoice.kdm-premium .kdm-billing-opening .kdm-amount{grid-column:1/-1;border-radius:0!important;background:#0b1f3a!important;box-shadow:none}
.template-signature-invoice.kdm-premium .kdm-billing-opening .kdm-amount small{color:#f2b544!important}
.template-signature-invoice.kdm-premium .kdm-billing-opening .kdm-amount strong{font-size:21px}
.template-signature-invoice.kdm-premium .kdm-items h4{background:#0e7c7b!important}
.template-signature-invoice.kdm-premium .kdm-items th{background:#0e7c7b!important;letter-spacing:.7px}
.template-signature-invoice.kdm-premium .kdm-items td{padding-top:14px!important;padding-bottom:14px!important}
.template-signature-invoice.kdm-premium .kdm-lower{grid-template-columns:1.1fr .9fr}
.template-signature-invoice.kdm-premium .kdm-notes article{border-left:4px solid #0e7c7b;border-radius:0}
.template-signature-invoice.kdm-premium .kdm-totals>div{border-radius:0;background:#0b1f3a!important;border-right:5px solid #f2b544}
.template-signature-invoice.kdm-premium .kdm-signatures{border-top:1px solid #d7e2e6;padding-top:18px}
.template-signature-invoice.kdm-premium .kdm-premium-sheet>footer{border-top-color:#0e7c7b;color:#5b6673}

.template-thermal.kdm-premium{--kdm-primary:#111827;--kdm-accent:#111827!important;--kdm-soft:#f9fafb;max-width:390px!important;margin-inline:auto!important;box-shadow:0 12px 35px #11182725!important}
.template-thermal.kdm-premium .kdm-premium-sheet{padding-inline:22px}
.template-thermal.kdm-premium .kdm-premium-sheet>header{grid-template-columns:1fr!important;margin-inline:-22px!important;padding:25px 22px!important;text-align:center;border-bottom:3px dashed #111827!important;background:#fff!important}
.template-thermal.kdm-premium .kdm-brand,.template-thermal.kdm-premium .kdm-title{display:block;text-align:center}
.template-thermal.kdm-premium .kdm-brand h2,.template-thermal.kdm-premium .kdm-title h1,.template-thermal.kdm-premium .kdm-title>b{color:#111827!important}
.template-thermal.kdm-premium .kdm-brand p,.template-thermal.kdm-premium .kdm-title small{color:#4b5563!important}
.template-thermal.kdm-premium .kdm-hero,.template-thermal.kdm-premium .kdm-lower{grid-template-columns:1fr}
.template-thermal.kdm-premium .kdm-items th{font-size:6px!important}.template-thermal.kdm-premium .kdm-items td{font-size:7px!important;padding:8px 4px!important}

.bdk-template-card[data-template=corporate] i{background:linear-gradient(#1f365c 0 32px,#c9a227 32px 40px);box-shadow:none}
.bdk-template-card[data-template=modern] i{background:linear-gradient(135deg,#102a43,#174f73);box-shadow:inset 0 -4px #087f5b}
.bdk-template-card[data-template=minimal] i{background:#fff;box-shadow:inset 0 4px #1e293b,inset 0 -1px #64748b}
.bdk-template-card[data-template=gold] i{background:linear-gradient(#24231f 0 32px,#b48a2a 32px 40px);box-shadow:none}
.bdk-template-card[data-template=colorful] i{background:linear-gradient(135deg,#087f5b 0 50%,#145b8c 50%);box-shadow:inset 0 -4px #f5c842}

@media print{
 .template-gold.kdm-premium .kdm-premium-sheet{background:#fff!important}
 .template-modern.kdm-premium .kdm-premium-sheet>header:after{display:none}
}
