/* Kyleu invoices and quotes (website and admin), in the site's colours */
.inv { --i-bark: #2a1b12; --i-sun: #e8731c; --i-ember: #b8461a; --i-soft: #6e5f50; --i-line: #e6d9c3; --i-sand: #f8f1e5; --i-ok: #3f7d3a;
  background: #fffdf8; color: var(--i-bark); border: 1px solid var(--i-line); border-radius: 18px; padding: 0 0 18px; overflow: hidden; text-align: left; font-size: .95rem; line-height: 1.45;
  box-shadow: 0 18px 50px -30px rgba(42,27,18,.45); }
.inv h4 { margin: 0 0 8px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--i-soft); font-weight: 900; font-family: inherit; }
.inv-hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; min-height: 120px; background-size: cover; background-position: center 60%; color: #fff; border-bottom: 5px solid var(--i-sun); }
.inv-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,12,6,.72), rgba(20,12,6,.42)); }
.inv-hero > * { position: relative; }
.inv-brand { display: flex; align-items: center; gap: 14px; }
.inv-brand img { width: 84px; height: 68px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.inv-valid { display: block; margin-top: 2px; font-weight: 800; color: #ffd9a8 !important; }
.inv-brand b { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 1.45rem; line-height: 1.1; color: #fff; }
.inv-brand small { color: rgba(255,255,255,.88); font-size: .84rem; }
.inv-title { text-align: right; }
.inv-kind { display: block; font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 2rem; line-height: 1; color: #fff; text-transform: uppercase; letter-spacing: .05em; }
.inv-title b { display: block; margin-top: 6px; font-size: .95rem; color: #fff; }
.inv-title small { color: rgba(255,255,255,.85); }
.inv-biz { display: flex; justify-content: space-between; gap: 12px; padding: 10px 24px 14px; font-size: .78rem; color: var(--i-soft); }
.inv-biz span:last-child { text-align: right; }
.inv-status { margin: 0 24px; padding: 11px 14px; border-radius: 12px; font-weight: 800; background: #fdf0d9; color: var(--i-ember); }
.inv-paid .inv-status { background: #e8f3e4; color: var(--i-ok); }
.inv-quote .inv-status { background: var(--i-sand); color: var(--i-bark); }
.inv-cancel .inv-status { background: #fbe5e0; color: #b23a2a; }
.inv-parties { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; padding: 20px 24px 6px; }
.inv-parties b { display: block; font-size: 1.05rem; }
.inv-parties span { display: block; color: var(--i-soft); overflow-wrap: anywhere; }
.inv-parties dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; }
.inv-parties dt { color: var(--i-soft); font-size: .88rem; }
.inv-parties dd { margin: 0; font-weight: 800; }
.inv-lines { width: calc(100% - 48px); margin: 14px 24px 0; border-collapse: collapse; }
.inv-lines th { background: var(--i-bark); color: #fff; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; text-align: left; padding: 9px 12px; }
.inv-lines th:first-child { border-radius: 8px 0 0 8px; } .inv-lines th:last-child { border-radius: 0 8px 8px 0; text-align: right; }
.inv-lines td { padding: 9px 12px; border-bottom: 1px solid var(--i-line); vertical-align: top; }
.inv-lines tbody tr:nth-child(even) td { background: var(--i-sand); }
.inv-lines td:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.inv-lines .q { width: 44px; text-align: center; } .inv-lines th.q { text-align: center; }
.inv-lines .u { text-align: right; white-space: nowrap; color: var(--i-soft); } .inv-lines th.u { text-align: right; }
.inv-lines th.u, .inv-lines th.q { border-radius: 0; color: #fff; }
.inv-lines th.q:first-child { border-radius: 8px 0 0 8px; }
.inv-lines tfoot td { border: 0; padding: 6px 12px; text-align: right; }
.inv-lines tfoot td:first-child { color: var(--i-soft); }
.inv-lines tfoot .inv-total td,
.inv-lines tfoot .inv-total td:first-child { font-size: 1.1rem; font-weight: 900; color: var(--i-bark); padding-top: 12px; }
.inv-lines tfoot .inv-due td,
.inv-lines tfoot .inv-due td:first-child { font-size: 1.15rem; font-weight: 900; color: var(--i-ember); }
.inv-paid .inv-lines tfoot .inv-due td,
.inv-paid .inv-lines tfoot .inv-due td:first-child { color: var(--i-ok); }
.inv-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 24px 0; }
.inv-pay > div { background: var(--i-sand); border-radius: 12px; padding: 14px 16px; }
.inv-pay ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inv-pay li { display: flex; justify-content: space-between; gap: 10px; }
.inv-pay li small { display: block; color: var(--i-soft); font-size: .82rem; }
.inv-bank dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: .9rem; }
.inv-bank dt { color: var(--i-soft); } .inv-bank dd { margin: 0; font-weight: 800; }
.inv-refbox { margin: 10px 0 0; background: var(--i-sun); color: #fff; border-radius: 8px; padding: 6px 10px; text-align: center; font-size: .9rem; }
.inv-note { margin: 12px 24px 0; color: var(--i-soft); font-size: .86rem; }
.inv-own { color: var(--i-bark); font-weight: 800; }
.inv-paidtip { margin: 10px 0 0; font-size: .8rem; color: var(--i-soft); }
.inv-notes { margin: 24px 24px 0; }
.inv-notes ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: .86rem; color: var(--i-soft); }
.inv-notes li::marker { color: var(--i-sun); }
.inv-notes b { color: var(--i-bark); }
.inv-thanks { margin: 20px 24px 0; font-weight: 800; font-size: .9rem; }
.inv-sign { margin: 6px 24px 0; font-size: .86rem; color: var(--i-soft); }
.inv-sign b { color: var(--i-bark); }
/* DGR CP logo: the approved file, on a light background with clear space around it */
.inv-dgr { display: flex; align-items: center; gap: 36px; margin: 34px 24px 0; padding: 18px 20px; border: 1px solid var(--i-line); border-radius: 12px; background: #fff; }
.inv-dgr img { height: 44px; width: auto; flex: none; margin: 4px 0; }
.inv-dgr p { margin: 0; font-size: .86rem; color: var(--i-soft); }
.inv-dgr b { color: var(--i-bark); }
.inv-foot { margin: 16px 24px 0; padding-top: 12px; border-top: 1px solid var(--i-line); color: var(--i-soft); font-size: .76rem; text-align: center; }
@media (max-width: 640px) {
  .inv-hero { flex-direction: column; align-items: flex-start; padding: 18px 16px; }
  .inv-title { text-align: left; }
  .inv-biz { flex-direction: column; padding: 10px 16px 12px; } .inv-biz span:last-child { text-align: left; }
  .inv-notes, .inv-thanks, .inv-sign { margin-left: 16px; margin-right: 16px; }
  .inv-lines .u { display: none; }
  .inv-status { margin: 0 16px; }
  .inv-parties, .inv-pay { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .inv-pay { margin: 14px 16px 0; padding: 0; }
  .inv-lines { width: calc(100% - 32px); margin: 14px 16px 0; }
  .inv-note, .inv-foot { margin-left: 16px; margin-right: 16px; }
  .inv-dgr { flex-direction: column; align-items: flex-start; gap: 16px; margin: 16px; }
}

/* the invoice after booking and on Change my booking */
.inv-sent { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 16px auto 18px; padding: 10px 16px; border-radius: 999px; background: #fdf0d9; color: #8a4a10; font-weight: 800; max-width: max-content; }
.inv-sent.ok { background: #e8f3e4; color: #2f6a2b; }
.inv-sent svg { width: 18px; height: 18px; }
.inv-sent .spin { width: 16px; height: 16px; }
.inv-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0 6px; }
.inv-wrap { margin: 6px 0 0; }
.paid-box:empty { display: none; }
.paid-box { margin: 14px 0 0; }
.paid-form { background: #fff; border: 2px solid #3f7d3a; border-radius: 16px; padding: 18px; display: grid; gap: 12px; text-align: left; }
.paid-form h3 { margin: 0; }
.paid-form .muted { margin: 0; }
.paid-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.paid-form legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.paid-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid #e6d9c3; border-radius: 12px; cursor: pointer; }
.paid-opt:has(input:checked) { border-color: #3f7d3a; background: #f3f9f1; }
.paid-opt input { width: 20px; height: 20px; accent-color: #3f7d3a; }
.paid-opt b { display: block; } .paid-opt small { color: #6e5f50; font-size: .92rem; }
.paid-ref { margin: 0; font-size: .9rem; color: #6e5f50; }
.paid-acts { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.paid-thanks { display: flex; gap: 12px; align-items: flex-start; background: #e8f3e4; color: #2f4a2b; border-radius: 14px; padding: 16px; text-align: left; }
.paid-thanks svg { width: 24px; height: 24px; flex: none; color: #3f7d3a; }
.paid-thanks p { margin: 4px 0 0; }
.inv-modal { position: fixed; inset: 0; z-index: 200; background: rgba(30,20,12,.6); overflow-y: auto; overscroll-behavior: contain; padding: 24px 12px; }
.inv-modal-card { max-width: 820px; margin: 0 auto; background: #fbf6ee; border-radius: 20px; padding: 18px; position: relative; }
.inv-modal-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; }
.inv-modal-h h2 { margin: 0; font-size: 1.4rem; }
.inv-x { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #e6d9c3; background: #fff; display: grid; place-items: center; cursor: pointer; }
.inv-x svg { width: 20px; height: 20px; }
/* Ctrl+P while an invoice is open: print only the invoice, once. Everything that does not hold it is
   taken out of the page (not just made invisible), and the pop-ups around it stop being pinned to the
   screen, because a pinned pop-up is printed again on every page. */
@media print {
  body:has(.modal.open .inv, .inv-modal .inv, #modal:not([hidden]) .inv) *:not(:has(.inv)):not(.inv):not(.inv *) { display: none !important; }
  body:has(.modal.open .inv, .inv-modal .inv, #modal:not([hidden]) .inv) :has(.inv) { position: static !important; overflow: visible !important; max-height: none !important; height: auto !important; min-height: 0 !important; transform: none !important; margin: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; display: block !important; inset: auto !important; }
  .inv { box-shadow: none !important; border: 0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: auto; }
  .inv-hero, .inv-status, .inv-lines th, .inv-pay > div, .inv-refbox { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
