/* /invoice only. Re-uses the CV page layout names (.cv-stage, .cv-btns) only inside this page's own css. */
.inv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 1100px) { .inv-layout { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); } .cv-stage { position: sticky; top: 80px; } }
.inv-form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: .6rem .8rem .8rem; margin: .6rem 0; min-width: 0; }
.inv-form legend { font-weight: 700; padding: 0 .3rem; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.iv-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 84px 34px; gap: .35rem; margin-bottom: .4rem; }
.iv-row input { min-height: 40px; width: 100%; padding: .4rem .5rem; }
.iv-row .g-x { border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; }
.iv-sum { margin: .8rem 0 .2rem; padding: .7rem .9rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 1.05rem; }
.iv-sum small { color: var(--muted); font-size: .85rem; }
.cv-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; } .cv-btns .btn { flex: 1 1 140px; }
.cv-stage { overflow-x: auto; border-radius: 16px; background: #d9dde3; padding: 12px; }
.iv-sheet { width: 794px; min-height: 1000px; margin: 0 auto; background: #fff; color: #1b1f24; padding: 44px 48px; font: 14px/1.5 "Inter", "Hind Siliguri", Arial, sans-serif; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.iv-sheet.lang-bn { font-family: "Hind Siliguri", "Inter", sans-serif; font-size: 15px; }
.ivh { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 3px solid #0E7C86; padding-bottom: 12px; }
.ivh h2 { margin: 0; font-size: 28px; color: #0b4f55; } .ivh p { margin: 2px 0 0; color: #444; }
.iv-kind { background: #0E7C86; color: #fff; padding: 6px 16px; border-radius: 30px; font-weight: 700; white-space: nowrap; }
.ivm { display: flex; justify-content: space-between; gap: 20px; margin: 14px 0; } .ivm .r { text-align: right; }
.ivt { width: 100%; border-collapse: collapse; }
.ivt th, .ivt td { border: 1px solid #bbb; padding: 7px 8px; text-align: left; }
.ivt th { background: #eef6f7; } .ivt .n, .ivs .n { text-align: right; white-space: nowrap; }
.ivt td:first-child, .ivt th:first-child { width: 44px; text-align: center; }
.ivs { margin: 10px 0 0 auto; border-collapse: collapse; min-width: 300px; }
.ivs th { text-align: left; padding: 5px 12px; font-weight: 600; } .ivs td { padding: 5px 8px; }
.ivs .tot th, .ivs .tot td { border-top: 2px solid #111; font-size: 17px; font-weight: 800; }
.ivs .due td, .ivs .due th { color: #b42318; font-weight: 700; }
.ivw { margin: 14px 0 0; padding: 8px 10px; background: #f6f7f8; border-left: 4px solid #0E7C86; }
.ivn { margin: 10px 0 0; color: #444; }
.ivf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 70px; text-align: center; font-size: 13px; }
.ivf div { width: 180px; } .ivf span { display: block; border-top: 1px solid #333; margin-bottom: 4px; } .ivf p { margin: 0; color: #666; }
@media print {
  @page { size: A4; margin: 0; }
  body * { visibility: hidden !important; }
  .iv-sheet, .iv-sheet * { visibility: visible !important; }
  .iv-sheet { position: absolute; left: 0; top: 0; zoom: 1 !important; box-shadow: none; width: 210mm; min-height: auto; }
  .bnav, .site-head, .site-foot, .announce { display: none !important; }
  body.has-bnav { padding: 0 !important; }
}
