/* CloseFlight GDS tools (2026-11-26) */
body { background: var(--cf-bg); color: var(--cf-text); }
.gd-wrap { max-width: 1200px; margin: 0 auto; padding: 26px 16px 48px; }
.gd-crumbs { font-size: .85rem; color: var(--cf-muted); margin: 0 0 10px; }
.gd-crumbs a { color: var(--cf-muted); }
.gd-eyebrow { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1565c0; background: #e8f0fe; border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.gd-head h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 10px; text-align: left; color: var(--cf-text); }
.gd-lead { font-size: 1.05rem; line-height: 1.6; color: var(--cf-muted); max-width: 860px; margin: 0 0 16px; }
.gd-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.gd-tabs a { padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--cf-border); background: var(--cf-card); color: var(--cf-text); font-weight: 700; text-decoration: none; }
.gd-tabs a[aria-current] { background: linear-gradient(90deg, #1565c0, #6d32e5); color: #fff; border-color: transparent; }
.gd-card { background: var(--cf-card); border: 1px solid var(--cf-border); border-radius: 18px; box-shadow: 0 2px 16px rgba(0,0,0,.06); padding: 22px; margin-bottom: 20px; }
.gd-card h2 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.gd-step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #e8f0fe; color: #1565c0; font-size: .9rem; font-weight: 800; flex: none; }
.gd-card > .gd-row { min-height: 44px; margin-bottom: 14px; }
.gd-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; }
.gd-ex span { font-size: .85rem; font-weight: 700; color: var(--cf-muted); margin-right: 2px; }
.gd-ex button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #cbd5e1; background: #fff; color: #0f172a; font-weight: 700; font-size: .88rem; cursor: pointer; transition: border-color .15s, background .15s; }
.gd-ex button:hover { border-color: #1565c0; color: #1565c0; }
.gd-ex button[aria-pressed="true"] { background: #1565c0; border-color: #1565c0; color: #fff; }
.gd-ex button[data-s="problems"] { border-style: dashed; }
.gd-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.gd-tool > .gd-card { display: flex; flex-direction: column; margin-bottom: 0; }
#gdTicketTool { margin-bottom: 20px; }
.gd-out #gdTicket.gd-empty { flex: 1; }
.gd-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.gd-row select { min-height: 40px; border: 1.5px solid var(--cf-border); border-radius: 10px; padding: 0 10px; font: inherit; font-size: .9rem; max-width: 100%; }
.gd-hint { font-size: .88rem; color: var(--cf-muted); margin: 4px 0 12px; line-height: 1.6; }
#gdPnr, .gd-ask { width: 100%; min-height: 300px; font-family: Consolas, "Courier New", monospace; font-size: .86rem; line-height: 1.45; padding: 12px; border: 1.5px solid var(--cf-border); border-radius: 12px; resize: vertical; white-space: pre; overflow: auto; background: #f8fafc; color: #0f172a; flex: 1; border-color: #cbd5e1; }
.gd-ask { min-height: 90px; white-space: pre-wrap; background: #fff; color: var(--cf-text); font-family: inherit; font-size: 1.05rem; }
#gdPnr:focus, .gd-ask:focus { outline: none; border-color: #1565c0; box-shadow: 0 0 0 3px rgba(21,101,192,.15); }
.gd-agency { margin-top: 14px; border-top: 1px solid var(--cf-border); padding-top: 10px; }
.gd-agency summary { cursor: pointer; font-weight: 700; color: #1565c0; padding: 6px 0; }
.gd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.gd-fields label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 700; }
.gd-fields label.wide { grid-column: 1 / -1; }
.gd-fields small { font-weight: 500; color: var(--cf-muted); }
.gd-fields input, .gd-fields textarea { min-height: 42px; padding: 8px 10px; border: 1.5px solid var(--cf-border); border-radius: 10px; font: inherit; font-weight: 400; }
.gd-link { background: none; border: 0; padding: 0; color: #1565c0; text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; text-align: left; }
.gd-private, .gd-notes { font-size: .82rem; color: var(--cf-muted); margin: 10px 0 0; line-height: 1.5; }
.gd-btns { display: flex; gap: 8px; }
.gd-btn[hidden] { display: none; }
.gd-btn { white-space: nowrap; min-height: 42px; padding: 0 16px; border-radius: 11px; border: 1.5px solid var(--cf-border); background: #fff; color: #1a237e; font-weight: 700; cursor: pointer; }
.gd-wa { display: inline-flex; align-items: center; gap: 6px; background: #25d366; border-color: #25d366; color: #fff; }
.gd-wa:hover:not(:disabled) { background: #1ebe5a; }
.gd-btn:disabled { opacity: .45; cursor: default; }
.gd-main { background: linear-gradient(90deg, #1565c0, #6d32e5); color: #fff; border-color: transparent; }
.gd-sm { min-height: 32px; padding: 0 12px; font-size: .82rem; }
.gd-empty { color: var(--cf-muted); text-align: center; padding: 50px 12px; border: 1.5px dashed var(--cf-border); border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #fbfcfe; }
.gd-empty-in strong { display: block; font-size: 1.1rem; color: var(--cf-text); margin: 10px 0 14px; }
.gd-empty-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #e8f0fe; color: #1565c0; font-size: 1.8rem; line-height: 64px; }
.gd-empty-in ol { list-style: decimal; text-align: left; display: inline-block; margin: 0; padding-left: 20px; line-height: 2; font-size: .92rem; }
.gd-w { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 9px 12px; margin: 0 0 8px; font-size: .9rem; line-height: 1.45; }
.gd-w-status, .gd-w-dow, .gd-w-none, .gd-w-pages { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* itinerary */
.gd-ticket { position: relative; overflow: hidden; background: #fff; color: #0f172a; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px; }
.gd-t-top { display: flex; justify-content: space-between; gap: 14px; align-items: center; border-bottom: 3px solid #1565c0; padding-bottom: 14px; margin-bottom: 6px; }
.gd-t-brand { display: flex; gap: 12px; align-items: center; }
.gd-t-brand img { flex: 0 0 auto; width: auto; max-width: 160px; height: 64px; object-fit: contain; object-position: left center; }
.gd-t-brand strong { display: block; font-size: 1.15rem; }
.gd-t-brand span { font-size: .85rem; color: #475569; }
.gd-t-ref { text-align: right; }
.gd-t-ref span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; }
.gd-t-ref b { font-size: 1.5rem; letter-spacing: .12em; font-family: Consolas, monospace; }
.gd-t-ref small { display: block; color: #64748b; }
.gd-t-sec { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #64748b; margin: 16px 0 6px; }
.gd-t-pax { width: 100%; border-collapse: collapse; font-size: .93rem; }
.gd-t-pax td { padding: 7px 0; border-bottom: 1px solid #f1f5f9; }
.gd-t-pax td:last-child { text-align: right; color: #475569; }
.gd-t-pax small { color: #64748b; }
.gd-t-pax em { font-style: normal; font-size: .75rem; background: #eef2ff; color: #3730a3; border-radius: 6px; padding: 1px 6px; }
.gd-t-seg { border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; margin: 8px 0; }
.gd-k-bad { border-color: #fca5a5; background: #fef2f2; }
.gd-k-wait, .gd-k-warn { border-color: #fdba74; background: #fffbeb; }
.gd-t-al { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gd-t-al img { width: 34px; height: 34px; object-fit: contain; }
.gd-t-al div { flex: 1; }
.gd-t-al b { display: block; }
.gd-t-al span { font-size: .82rem; color: #64748b; }
.gd-t-al i { font-style: normal; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #dcfce7; color: #166534; white-space: nowrap; }
.gd-k-bad .gd-t-al i { background: #fee2e2; color: #991b1b; }
.gd-k-wait .gd-t-al i, .gd-k-warn .gd-t-al i { background: #ffedd5; color: #9a3412; }
.gd-t-way { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.gd-t-way b { font-size: 1.45rem; display: block; }
.gd-t-way span { display: block; font-weight: 600; }
.gd-t-way small { color: #64748b; font-size: .8rem; }
.gd-t-arr { text-align: right; }
.gd-t-line { min-width: 90px; text-align: center; font-size: .8rem; color: #475569; border-bottom: 2px dashed #cbd5e1; padding-bottom: 4px; position: relative; }
.gd-t-line svg { display: block; margin: 0 auto 2px; width: 22px; height: 22px; fill: #1565c0; }
.gd-t-conn { text-align: center; font-size: .82rem; color: #475569; background: #f8fafc; border-radius: 8px; padding: 6px; margin: 4px 30px; }
.gd-t-conn.warn { background: #fffbeb; color: #9a3412; font-weight: 700; }
.gd-t-ttl { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fffbeb; color: #92400e; font-weight: 700; }
.gd-t-foot { margin-top: 14px; font-size: .78rem; color: #64748b; border-top: 1px solid #e2e8f0; padding-top: 10px; }

/* watermark (screen + print), agency logo placeholder (screen only), plane instead of airline logo (print only) */
.gd-t-wm { position: absolute; inset: 0; background-repeat: repeat; pointer-events: none; z-index: 0; }
.gd-ticket > :not(.gd-t-wm) { position: relative; z-index: 1; }
.gd-t-logoph { border: 1.5px dashed #94a3b8; background: #f8fafc; color: #475569; border-radius: 10px; padding: 6px 10px; font-size: .8rem; font-weight: 700; cursor: pointer; flex: 0 0 160px; width: 160px; height: 64px; line-height: 1.3; }
.gd-t-logoph:hover { border-color: #1565c0; color: #1565c0; }
.gd-t-plane { display: none; width: 34px; height: 34px; border-radius: 50%; background: #e8f0fe; color: #1565c0; font-size: 1.1rem; line-height: 34px; text-align: center; flex: none; }
.gd-det { width: fit-content; display: block; margin: 6px 0 0; padding: 4px 12px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: .82rem; font-weight: 700; }
.gd-det[hidden] { display: none; }
.gd-upsell { margin: 0 0 10px; font-size: .86rem; color: var(--cf-muted); }
.gd-upsell a { color: #1565c0; font-weight: 700; }

/* builder */
.gd-under { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gd-under li { background: #ecfdf5; color: #065f46; border-radius: 999px; padding: 4px 11px; font-size: .84rem; font-weight: 600; }
.gd-alt { font-size: .84rem; color: var(--cf-muted); margin: 0 0 8px; }
.gd-sys { display: flex; border: 1.5px solid var(--cf-border); border-radius: 11px; overflow: hidden; }
.gd-sys button { border: 0; background: #fff; padding: 8px 14px; font-weight: 700; cursor: pointer; color: var(--cf-text); }
.gd-sys button[aria-selected="true"] { background: #1565c0; color: #fff; }
.gd-steps { margin: 0 0 14px; padding-left: 22px; }
.gd-steps li { margin: 0 0 14px; }
.gd-cmd { display: flex; gap: 8px; align-items: center; }
.gd-cmd code { flex: 1; background: #0f172a; color: #a7f3d0; font-family: Consolas, monospace; font-size: 1.02rem; padding: 8px 12px; border-radius: 9px; word-break: break-all; }
.gd-steps p { margin: 5px 0 4px; font-size: .9rem; }
.gd-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-parts span { font-size: .78rem; color: var(--cf-muted); background: #f1f5f9; border-radius: 7px; padding: 3px 8px; }
.gd-parts code { color: #1565c0; font-weight: 700; margin-right: 5px; background: none; padding: 0; }
.gd-faq details { border-bottom: 1px solid var(--cf-border); padding: 12px 0; }
.gd-faq summary { cursor: pointer; font-weight: 700; }
.gd-faq p { margin: 8px 0 0; color: var(--cf-muted); line-height: 1.6; }
#cf-cw-open, #scrollUp { display: none !important; }
@media (max-width: 560px) { .gd-card { padding: 16px; } .gd-ticket { padding: 14px; } .gd-out > .gd-row .gd-btns { width: 100%; } .gd-out > .gd-row .gd-btn { flex: 1; padding: 0 8px; justify-content: center; } .gd-t-pax td:last-child { white-space: nowrap; font-size: .82rem; } .gd-t-pax td:last-child b { font-weight: 700; } .gd-t-way b { font-size: 1.2rem; } }
@media (max-width: 860px) { .gd-tool { grid-template-columns: 1fr; } #gdPnr { min-height: 220px; } .gd-fields { grid-template-columns: 1fr; } .gd-head h1 { font-size: 1.55rem; } }
@media print {
    body * { visibility: hidden !important; }
    body > *:not(:has(.gd-ticket)), .gd-wrap > *:not(:has(.gd-ticket)), .gd-tool > *:not(:has(.gd-ticket)), .gd-out > *:not(.gd-ticket) { display: none !important; }
    .gd-wrap, .gd-tool, .gd-out { margin: 0 !important; padding: 0 !important; box-shadow: none !important; border: 0 !important; }
    .gd-ticket, .gd-ticket * { visibility: visible !important; }
    .gd-ticket { position: relative; width: 100%; border: 0; padding: 0; }
    html, body { height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
    .gd-t-seg, .gd-t-conn, .gd-t-ttl, .gd-t-al i, .gd-t-pax em { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .gd-t-seg { break-inside: avoid; }
    .gd-t-logoph, .gd-t-alogo { display: none !important; }
    html, body, body *:not(.gd-ticket *) { background: #fff !important; }
    .gd-tool, .gd-out { display: block !important; height: auto !important; min-height: 0 !important; }
    .gd-t-plane { display: inline-block !important; }
    .gd-t-wm, .gd-t-plane { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.gd-w.gd-w-sample { background: #eef4ff; border-color: #c7d7fe; color: #1e3a8a; }
.gd-t-sample { display: table; margin: 0 auto 12px; position: relative; z-index: 2; background: #fde68a; color: #92400e; font-weight: 800; letter-spacing: .2em; font-size: .78rem; padding: 3px 12px; border-radius: 999px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.gd-ticket { position: relative; }
