/* Owner-controlled New Bill presentation. Existing invoice IDs & calculation code preserved. */
#invoice { --ns-bill-customer:#2165d5; --ns-bill-product:#168b60; --ns-bill-payment:#d2871c; --ns-bill-finish:#7653b3; }
#invoice .ns-bill-card {background:#fff; border:1px solid #dde5f1; border-radius:18px; padding:16px; margin:15px 0; box-shadow:0 6px 16px #172c5010; min-width:0;}
#invoice .ns-bill-card[data-bill-section=customer]{border-top:4px solid var(--ns-bill-customer);background:linear-gradient(150deg,#f7faff,#fff 52%)}
#invoice .ns-bill-card[data-bill-section=items]{border-top:4px solid var(--ns-bill-product);background:linear-gradient(150deg,#f6fef9,#fff 52%)}
#invoice .ns-bill-card[data-bill-section=pay]{border-top:4px solid var(--ns-bill-payment);background:linear-gradient(150deg,#fffbf3,#fff 52%)}
#invoice .ns-bill-card[data-bill-section=complete]{border-top:4px solid var(--ns-bill-finish);background:linear-gradient(150deg,#fbf8ff,#fff 52%)}
#invoice .ns-bill-card .ns-flow-heading{border-bottom:0;margin:0 0 14px;padding:0 0 8px}
#invoice .ns-bill-card .ns-flow-step {min-width:46px;width:46px;height:46px;font-size:22px;border-radius:14px}
#invoice .ns-bill-card[data-bill-section=customer] .ns-flow-step{color:var(--ns-bill-customer);background:#e5efff}
#invoice .ns-bill-card[data-bill-section=items] .ns-flow-step{color:var(--ns-bill-product);background:#e0faeb}
#invoice .ns-bill-card[data-bill-section=pay] .ns-flow-step{color:var(--ns-bill-payment);background:#fff0d5}
#invoice .ns-bill-card[data-bill-section=complete] .ns-flow-step{color:var(--ns-bill-finish);background:#f0e9ff}
#invoice .ns-bill-card input,#invoice .ns-bill-card select,#invoice .ns-bill-card textarea{width:100%;min-width:0;max-width:100%;border-radius:11px}
#invoice .ns-bill-card>.row {min-width:0;gap:10px}
#invoice .ns-bill-card .field{min-width:0}
#invoice .ns-bill-card[data-bill-section=complete] .grand{padding:14px;border-radius:14px;background:#e8f4ee;color:#155a47}
#invoice.ns-bill-compact .ns-bill-card{padding:10px;margin:9px 0;border-radius:12px}
#invoice.ns-bill-compact .ns-bill-card .ns-flow-step{min-width:35px;width:35px;height:35px;font-size:18px}
#invoice.ns-bill-compact .ns-bill-card .ns-flow-heading{margin-bottom:8px}
#invoice.ns-bill-simple .ns-bill-card{border-top-width:1px;box-shadow:none;background:#fff;padding:10px}
#invoice .ns-bill-card .ns-payment-stable-section{margin:9px 0!important;}
@media(max-width:430px){#invoice .ns-bill-card{padding:12px}#invoice .ns-bill-card>.row{flex-wrap:wrap}#invoice .ns-bill-card>.row>.field{min-width:130px;flex:1 1 130px}}
@media print{#invoice .ns-bill-card{box-shadow:none!important;border:0!important;background:#fff!important;padding:0!important}}
