/* NBT Railway Booking v7 — public invoice view */
.nbt-inv-wrap { width: 85%; max-width: 860px; margin: 0 auto; box-sizing: border-box; }
@media (max-width: 782px) { .nbt-inv-wrap { width: auto; margin: 0 12px; } }

.nbt-inv-flash { background: #eef4ff; border: 1px solid #cfe0ff; color: #0a3c78; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }

.nbt-inv { background: #fff; border: 1px solid #e3e6ea; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(16,24,40,.08); }

/* Header band */
.nbt-inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 26px 30px; background: #0f172a; color: #e2e8f0; border-bottom: 4px solid #1d4ed8; }
.nbt-inv-brand { display: flex; align-items: center; gap: 16px; }
.nbt-inv-emblem { width: 62px; height: 62px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.nbt-inv-org { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; }
.nbt-inv-addr { font-size: 12px; color: #94a3b8; margin-top: 3px; }
.nbt-inv-headright { text-align: right; }
.nbt-inv-title { font-size: 22px; font-weight: 800; letter-spacing: 1px; color: #fff; }
.nbt-inv-ref { font-size: 14px; font-weight: 700; color: #cbd5e1; margin-top: 4px; }
.nbt-inv-date { font-size: 12px; color: #94a3b8; margin: 2px 0 8px; }
.nbt-inv-status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; letter-spacing: .5px; }

/* Body */
.nbt-inv-body { padding: 26px 30px 30px; }
.nbt-inv-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.nbt-inv-metalabel { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #98a2b3; font-weight: 700; margin-bottom: 6px; }
.nbt-inv-metaname { font-size: 16px; font-weight: 700; color: #101828; }
.nbt-inv-metablock { font-size: 13px; color: #475467; line-height: 1.6; }
.nbt-inv-metaright { text-align: right; }

.nbt-inv-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.nbt-inv-table thead th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #98a2b3; font-weight: 700; padding: 8px 0; border-bottom: 1px solid #eaecf0; }
.nbt-inv-table th.nbt-inv-amt, .nbt-inv-table td.nbt-inv-amt { text-align: right; }
.nbt-inv-table td { padding: 12px 0; border-bottom: 1px solid #f2f4f7; vertical-align: top; color: #101828; font-size: 14px; }
.nbt-inv-itemlabel { display: block; font-weight: 600; }
.nbt-inv-itemlabel em { color: #667085; font-style: italic; font-weight: 400; }
.nbt-inv-itemdesc { display: block; font-size: 12px; color: #667085; margin-top: 3px; }

.nbt-inv-totals { margin: 16px 0 0; margin-left: auto; width: 260px; }
.nbt-inv-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; color: #101828; padding: 8px 0; border-top: 2px solid #101828; }
.nbt-inv-sub { display: flex; justify-content: space-between; font-size: 12px; color: #667085; padding-top: 4px; }

.nbt-inv-note { clear: both; margin-top: 22px; padding: 14px 16px; background: #f9fafb; border: 1px solid #eaecf0; border-radius: 10px; font-size: 13px; color: #475467; }

.nbt-inv-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.nbt-inv-btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; border: 0; }
.nbt-inv-btn-primary { background: #1d4ed8; color: #fff !important; }
.nbt-inv-btn-primary:hover { background: #1a45bd; }
.nbt-inv-btn-danger { background: #fff; color: #d92d20 !important; border: 1.5px solid #f2b8b5; }
.nbt-inv-btn-danger:hover { background: #fef3f2; }
.nbt-inv-hint { margin-top: 12px; font-size: 12px; color: #98a2b3; }

/* Footer with institute logo + copyright */
.nbt-inv-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 30px; border-top: 1px solid #eaecf0; background: #fcfcfd; flex-wrap: wrap; }
.nbt-inv-foot-logo { max-height: 46px; width: auto; }
.nbt-inv-copy { font-size: 12px; color: #98a2b3; }

@media (max-width: 782px) {
  .nbt-inv-head { flex-direction: column; gap: 12px; }
  .nbt-inv-headright { text-align: left; }
  .nbt-inv-meta { flex-direction: column; gap: 14px; }
  .nbt-inv-metaright { text-align: left; }
  .nbt-inv-totals { width: 100%; }
  .nbt-inv-body { padding: 20px 16px 22px; }
  .nbt-inv-head { padding: 20px 16px; }
  /* Download and Cancel each on their own full-width row. */
  .nbt-inv-actions { flex-direction: column; gap: 10px; align-items: stretch; }
  .nbt-inv-actions form { display: block; width: 100%; }
  .nbt-inv-btn { display: block; width: 100%; box-sizing: border-box; text-align: center; flex: none; }
  .nbt-inv-foot { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
}

/* Cancellation notice below the Cancel button */
.nbt-inv-cancel-note { margin-top: 12px; padding: 10px 14px; background: #fff8e6; border: 1px solid #f5d98a; border-radius: 8px; color: #8a6d00; font-size: 13px; font-weight: 600; }
