/* OHHSEM Travel canonical invoice UI — v1.5.0-alpha.90
   One document system, two content variants: Flight and Experience.
   This file intentionally uses isolated ots-doc-* selectors so invoice layout
   does not depend on legacy payment-link / invoice override layers. */

.ots-public-payment.ots-doc-invoice-page{
  min-height:100vh;
  display:block;
  background:#f2f4f7;
  padding:28px 18px 48px;
  color:#111;
  font-size:14px;
  line-height:1.45;
}
.ots-doc-invoice-page *{box-sizing:border-box}
.ots-doc-invoice-stage{width:100%;max-width:980px;margin:0 auto}
.ots-doc-invoice-sheet{
  width:100%;
  max-width:980px;
  margin:0 auto;
  overflow:hidden;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  box-shadow:0 18px 48px rgba(28,38,54,.08);
  color:#111;
}

/* Header / company identity */
.ots-doc-invoice-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:16px 50px;
  border-bottom:1px solid #e7eaee;
}
.ots-doc-invoice-brand{display:flex;align-items:center;gap:36px;min-width:0;max-width:76%}
.ots-doc-invoice-brand>img{display:block;width:164px;max-width:164px;height:auto;max-height:44px;object-fit:contain;object-position:left center;flex:0 0 auto}
.ots-doc-company-info{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;color:#4b5563;font-size:11px;font-weight:400;line-height:1.4}
.ots-doc-company-name-line{display:grid;grid-template-columns:max-content max-content;align-items:baseline;justify-content:start;column-gap:10px;min-width:0}
.ots-doc-company-name-line strong{color:#111;font-size:14px;font-weight:700;line-height:1.35;white-space:nowrap}
.ots-doc-company-name-line span{white-space:nowrap}
.ots-doc-company-address{max-width:360px}
.ots-doc-status{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid #e1e5ea;border-radius:999px;background:#f7f8fa;color:#4b5563;font-size:12px;font-weight:700;white-space:nowrap;flex:0 0 auto}
.ots-doc-status i{width:7px;height:7px;border-radius:50%;background:#8b95a3}
.ots-doc-status.paid{background:#eef9f3;border-color:#cfe9dc;color:#157347}.ots-doc-status.paid i{background:#20a874}
.ots-doc-status.deposit{background:#eef5ff;border-color:#cdddf7;color:#285f9b}.ots-doc-status.deposit i{background:#3f7fc5}
.ots-doc-status.pending{background:#fff8e8;border-color:#f0dfb7;color:#8a6519}.ots-doc-status.pending i{background:#e0a323}
.ots-doc-status.expired{background:#fff1f2;border-color:#f3d1d6;color:#b42336}.ots-doc-status.expired i{background:#d92d45}

/* Invoice title + meta */
.ots-doc-title-row{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:24px;align-items:start;padding:24px 50px 18px}
.ots-doc-eyebrow,.ots-doc-card-label{display:block;color:#687386;font-size:11px;font-weight:750;letter-spacing:.055em;line-height:1.2}
.ots-doc-title-copy h1{margin:4px 0 2px;color:#111;font-size:28px;font-weight:750;line-height:1.05;letter-spacing:-.02em}
.ots-doc-title-copy>p{margin:0;color:#4b5563;font-size:14px}
.ots-doc-sales{display:flex;align-items:baseline;gap:8px;margin-top:9px;color:#4b5563;font-size:12px}
.ots-doc-sales span{font-weight:500}.ots-doc-sales strong{color:#374151;font-size:13px;font-weight:600}
.ots-doc-meta{overflow:hidden;border:1px solid #e5e7eb;border-radius:10px;background:#fff}
.ots-doc-meta>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;align-items:center;padding:8px 11px;border-bottom:1px solid #eceff2}
.ots-doc-meta>div:last-child{border-bottom:0}
.ots-doc-meta span{color:#4b5563;font-size:12px;font-weight:400}.ots-doc-meta strong{color:#111;font-size:13px;font-weight:600;text-align:right}

/* Shared content rail */
.ots-doc-card{margin:0 50px 12px;padding:16px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;color:#111}
.ots-doc-customer-card h3{margin:6px 0 0;color:#111;font-size:15px;font-weight:650;line-height:1.4}
.ots-doc-customer-card p{margin:3px 0 0;color:#4b5563;font-size:13px;font-weight:400;line-height:1.4}
.ots-doc-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:8px}
.ots-doc-section-head h2{margin:0;color:#111;font-size:17px;font-weight:700;line-height:1.3}

/* Booking details: one clean top-to-bottom rhythm */
.ots-doc-booking-list{display:block;width:100%}
.ots-doc-booking-row{display:grid;grid-template-columns:215px minmax(0,1fr);gap:20px;align-items:start;padding:8px 0;border-bottom:1px solid #e5e7eb}
.ots-doc-booking-row>span{color:#4b5563;font-size:13px;font-weight:600;line-height:1.35}
.ots-doc-booking-row>div{min-width:0}
.ots-doc-booking-row strong{display:block;color:#111;font-size:14px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.ots-doc-booking-row small{display:block;margin-top:2px;color:#4b5563;font-size:12.5px;font-weight:400;line-height:1.4}
.ots-doc-package-value{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;min-width:0}
.ots-doc-package-value strong,.ots-doc-package-value small{display:inline;margin:0}

/* Flight-only itinerary — preserve the approved two-card information pattern. */
.ots-doc-subsection-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 9px}
.ots-doc-subsection-head h3{margin:0;color:#111;font-size:16px;font-weight:700;line-height:1.3}
.ots-doc-subsection-head>span{color:#4b5563;font-size:12.5px;font-weight:500}
.ots-doc-flight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ots-doc-flight-leg{padding:13px 14px;border:1px solid #dfe4ea;border-radius:10px;background:#fff}
.ots-doc-flight-leg>span{display:block;color:#df2638;font-size:9px;font-weight:800;letter-spacing:.055em;line-height:1.2}
.ots-doc-flight-leg>strong{display:block;margin-top:6px;color:#111;font-size:12px;font-weight:650;line-height:1.35}
.ots-doc-flight-leg p{margin:5px 0 2px;color:#111;font-size:15px;font-weight:700;line-height:1.3}
.ots-doc-flight-leg time{display:block;color:#344054;font-size:12.5px;font-weight:600;line-height:1.35}

/* Passenger / Guest details */
.ots-doc-people-section{margin-top:20px}
.ots-doc-people-table{overflow:hidden;border:1px solid #e5e7eb;border-radius:8px;background:#fff}
.ots-doc-people-table>div{display:grid;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #e5e7eb}
.ots-doc-people-table>div:last-child{border-bottom:0}
.ots-doc-people-table.is-experience>div{grid-template-columns:minmax(0,1.45fr) minmax(145px,.9fr) 92px 92px}
.ots-doc-people-table.is-flight>div{grid-template-columns:minmax(0,1.45fr) minmax(170px,.95fr) 100px}
.ots-doc-people-table .head{background:#f7f7f8;color:#4b5563;font-size:12px;font-weight:700}
.ots-doc-person-row>span{min-width:0;color:#111;font-size:14px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
.ots-doc-empty-people{padding:12px;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb;color:#4b5563;font-size:14px}

/* Price breakdown */
.ots-doc-price-table{overflow:hidden;border:1px solid #e5e7eb;border-radius:8px;background:#fff}
.ots-doc-price-table>div{display:grid;grid-template-columns:minmax(0,1.8fr) 60px 120px 130px;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid #e5e7eb}
.ots-doc-price-table>div:last-child{border-bottom:0}
.ots-doc-price-table .head{background:#f7f7f8;color:#4b5563;font-size:12px;font-weight:700}
.ots-doc-price-table>div:not(.head),.ots-doc-price-table strong{color:#111;font-size:14px;font-weight:400}
.ots-doc-price-table>div>span:nth-child(n+2),.ots-doc-price-table>div>strong{text-align:right}
.ots-doc-price-table>div>strong{font-weight:600}
.ots-doc-totals{width:min(390px,100%);margin:10px 0 0 auto}
.ots-doc-totals>div{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:5px 1px}
.ots-doc-totals span{color:#4b5563;font-size:13px;font-weight:400}.ots-doc-totals strong{color:#111;font-size:14px;font-weight:600}
.ots-doc-totals>div:last-child{margin-top:3px;padding-top:9px;border-top:1px solid #dfe3e8}
.ots-doc-totals>div:last-child strong{font-size:15px;font-weight:700}

/* Single action / footer */
.ots-doc-actions{display:flex;justify-content:flex-end;margin:0 50px 12px}
.ots-doc-print-button{min-height:40px;padding:0 16px}
.ots-doc-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:16px 50px 18px;border-top:1px solid #e7eaee;color:#4b5563}
.ots-doc-footer>div{display:grid;gap:2px}.ots-doc-footer>div:last-child{text-align:right}
.ots-doc-footer strong{color:#111;font-size:11px;font-weight:650}.ots-doc-footer span{font-size:10.5px;font-weight:400}

/* Mobile is a faithful full-page preview, not a second invoice layout. */
@media(max-width:760px){
  .ots-public-payment.ots-doc-invoice-page{padding:12px;overflow:hidden;background:#f2f4f7}
  .ots-doc-invoice-stage{width:100%;max-width:none;margin:0;overflow:hidden}
  .ots-doc-invoice-sheet{width:820px;min-width:820px;max-width:820px;margin:0;border-radius:18px;will-change:transform}
  .ots-doc-invoice-header{padding:16px 50px}
  .ots-doc-title-row{grid-template-columns:minmax(0,1fr) 285px;gap:24px;padding:22px 50px 18px}
  .ots-doc-booking-row{grid-template-columns:215px minmax(0,1fr)}
  .ots-doc-footer{flex-direction:row;align-items:flex-end;padding:16px 50px 18px}
  .ots-doc-footer>div:last-child{text-align:right}
}

/* Print is always the same desktop/A4 document, including when started on a phone. */
@media print{
  .ots-public-payment.ots-doc-invoice-page,
  .ots-public-payment.ots-doc-invoice-page.is-printing{
    width:210mm;
    min-width:210mm;
    max-width:210mm;
    min-height:0;
    margin:0 auto;
    padding:0;
    overflow:visible;
    background:#fff;
    font-size:14px;
  }
  .ots-doc-invoice-stage{width:210mm;min-width:210mm;max-width:210mm;height:auto;margin:0;overflow:visible}
  .ots-doc-invoice-sheet{width:210mm;min-width:210mm;max-width:210mm;margin:0;transform:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
  .ots-doc-invoice-header{padding:16px 50px}
  .ots-doc-invoice-brand{gap:36px;max-width:76%}
  .ots-doc-invoice-brand>img{width:164px;max-width:164px;max-height:44px}
  .ots-doc-title-row{grid-template-columns:minmax(0,1fr) 285px;gap:24px;padding:24px 50px 18px}
  .ots-doc-card{width:calc(210mm - 100px);margin-left:50px;margin-right:50px}
  .ots-doc-booking-row{grid-template-columns:215px minmax(0,1fr);gap:20px;padding:8px 0}
  .ots-doc-flight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ots-doc-people-table.is-experience>div{grid-template-columns:minmax(0,1.45fr) minmax(145px,.9fr) 92px 92px}
  .ots-doc-people-table.is-flight>div{grid-template-columns:minmax(0,1.45fr) minmax(170px,.95fr) 100px}
  .ots-doc-price-table>div{grid-template-columns:minmax(0,1.8fr) 60px 120px 130px}
  .ots-doc-actions{display:none}
  .ots-doc-footer{flex-direction:row;align-items:flex-end;padding:16px 50px 18px}
  .ots-doc-footer>div:last-child{text-align:right}
}
