/* ==========================================================================
   Travelco Quotation Builder — front-end styles
   ========================================================================== */

#tqbb-app, #tqbb-app *, #tqbb-app *::before, #tqbb-app *::after { box-sizing: border-box; }

.tqbb-app {
	--blue: #2563eb; --blue-light: #eef2ff; --green: #16a34a; --red: #dc2626; --red-light: #fef2f2;
	--amber: #d97706; --purple: #7c3aed; --border: #e5e7eb; --bg: #f5f7fa; --text: #1f2937; --muted: #6b7280;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.4;
	position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; min-height: 100vh;
}
.tqbb-app a, .tqbb-app a:hover, .tqbb-app a:visited { text-decoration: none !important; color: inherit; }
.tqbb-app button { font-family: inherit; cursor: pointer; }
.tqbb-app input, .tqbb-app select, .tqbb-app textarea { font-family: inherit; }

svg.dashicon { width: 16px; height: 16px; min-width: 16px; flex-shrink: 0; display: inline-block; vertical-align: middle; }

.tqbb-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 120px 20px; color: var(--muted); }
.tqbb-spinner { width: 34px; height: 34px; border: 3px solid #dbeafe; border-top-color: var(--blue); border-radius: 50%; animation: tqbb-spin .8s linear infinite; }
@keyframes tqbb-spin { to { transform: rotate(360deg); } }
.tqbb-login-wall { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg); }
.tqbb-login-card { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 36px 32px 30px; box-shadow: 0 4px 24px rgba(15,23,42,.06); text-align: center; }
.tqbb-login-logo { max-width: 190px; max-height: 70px; width: auto; height: auto; margin: 0 auto 22px; display: block; }
.tqbb-login-title { font-size: 17px; font-weight: 700; color: var(--text); margin: 0 0 20px; }
.tqbb-login-error { background: var(--red-light); color: var(--red); border: 1px solid #fecaca; border-radius: 8px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 16px; text-align: left; }
.tqbb-login-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.tqbb-login-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.tqbb-login-field input[type="text"], .tqbb-login-field input[type="password"] {
	width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text) !important; background-color: #f0f0f0 !important; box-sizing: border-box;
}
.tqbb-login-field input:focus { outline: none; border-color: var(--blue); background-color: #fff !important; box-shadow: 0 0 0 3px var(--blue-light); }
.tqbb-login-remember { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); cursor: pointer; user-select: none; }
.tqbb-login-remember input { width: 14px; height: 14px; }
.tqbb-login-submit {
	margin-top: 4px; width: 100%; padding: 11px 16px; border: 1px solid #067DCA !important; border-radius: 8px;
	background-color: #067DCA !important; background-image: none !important; color: #fff !important;
	font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.tqbb-login-submit:hover { background-color: #0568A8 !important; border-color: #0568A8 !important; color: #fff !important; }
.tqbb-login-lostpw { display: block; margin-top: 18px; font-size: 12.5px; color: var(--muted); text-decoration: none; }
.tqbb-login-lostpw:hover { color: var(--blue); text-decoration: underline; }

.tqb-shell { display: flex; min-height: 100vh; align-items: stretch; }

.tqb-sidebar { width: 230px; flex: 0 0 230px; background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; transition: width .18s ease, flex-basis .18s ease; }
.tqb-sidebar-header { padding: 16px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tqb-sidebar-header img { max-width: 130px; height: auto; display: block; transition: opacity .15s ease; }
.tqb-sidebar-collapse-btn {
	background: #fff !important; border: 1px solid var(--border) !important; color: var(--muted) !important;
	width: 28px; height: 28px; flex: 0 0 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
}
.tqb-sidebar-collapse-btn:hover { background: var(--bg) !important; color: var(--text) !important; }
.tqb-sidebar-collapse-btn .dashicon { width: 15px; height: 15px; transition: transform .18s ease; }
.tqb-nav { flex: 1; padding: 8px 12px; }
.tqb-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; margin-bottom: 2px; color: #475569; font-size: 13.5px; font-weight: 500; text-decoration: none !important; white-space: nowrap; overflow: hidden; }
.tqb-nav-item:hover { background: #f1f5f9; color: var(--text); }
.tqb-nav-item.active { background: var(--blue); color: #fff; }
.tqb-nav-item .dashicon { width: 18px; height: 18px; flex: 0 0 18px; }
.tqb-sidebar-footer { padding: 16px 20px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); white-space: nowrap; overflow: hidden; }

/* Collapsed sidebar — icons only, more room for the two-column builder */
.tqb-sidebar.collapsed { width: 64px; flex: 0 0 64px; }
.tqb-sidebar.collapsed .tqb-sidebar-header { justify-content: center; padding: 16px 8px; }
.tqb-sidebar.collapsed .tqb-sidebar-header img { display: none; }
.tqb-sidebar.collapsed .tqb-sidebar-collapse-btn .dashicon { transform: rotate(180deg); }
.tqb-sidebar.collapsed .tqb-nav-item span,
.tqb-sidebar.collapsed .tqb-sidebar-footer { display: none; }
.tqb-sidebar.collapsed .tqb-nav-item { justify-content: center; padding: 10px; }
.tqb-sidebar.collapsed .tqb-sidebar-footer { padding: 12px 0; text-align: center; }

.tqb-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tqb-topbar { display: flex; align-items: center; gap: 16px; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.tqb-hamburger { display: none; background: none; border: none; padding: 6px; color: var(--text); }
.tqb-hamburger .dashicon { width: 22px; height: 22px; }
.tqb-topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.tqb-user { display: flex; align-items: center; gap: 10px; }
.tqb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: 0 0 34px; }
.tqb-user-meta { line-height: 1.25; }
.tqb-logout-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); border: 1px solid var(--border); margin-left: 4px; flex: 0 0 auto; }
.tqb-logout-btn svg { width: 16px; height: 16px; }
.tqb-logout-btn:hover { background: var(--red-light); border-color: #fecaca; color: var(--red); }
.tqb-user-name { font-weight: 600; font-size: 13.5px; }
.tqb-user-role { font-size: 11.5px; color: var(--muted); }

.tqb-content { padding: 24px; max-width: 100%; }
.tqb-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.tqb-page-title { font-size: 26px; font-weight: 700; margin: 0 0 4px; }
.tqb-page-sub { color: var(--muted); font-size: 13.5px; margin: 0; }
.tqb-page-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tqb-builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tqb-feed-wrap { max-width: 980px; }
#tqb-preview-col { position: sticky; top: 16px; align-self: start; }
.tqb-preview-panel { margin-bottom: 0; }
.tqb-preview-tools { display: flex; align-items: center; gap: 8px; }
.tqb-preview-status { font-size: 12px; color: var(--muted); }
.tqb-preview-body { max-height: calc(100vh - 150px); overflow-y: auto; background: #eef0f4; padding: 12px; }
.tqb-preview-pages { display: flex; flex-direction: column; gap: 12px; min-height: 120px; }
.tqb-preview-canvas { display: block; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); border-radius: 2px; }
.tqb-preview-frame { width: 100%; height: 70vh; border: 0; background: #fff; }

.tqb-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600; border: 1px solid transparent; line-height: 1.2; cursor: pointer; background-image: none !important; box-shadow: none !important; }
#tqbb-app .tqb-btn-primary, .tqb-modal .tqb-btn-primary { background: var(--blue) !important; background-image: none !important; color: #fff !important; border-color: var(--blue) !important; }
#tqbb-app .tqb-btn-primary:hover, .tqb-modal .tqb-btn-primary:hover { background: #1d4ed8 !important; color: #fff !important; }
#tqbb-app .tqb-btn-secondary, .tqb-modal .tqb-btn-secondary { background: #fff !important; background-image: none !important; border-color: var(--border) !important; color: var(--text) !important; }
#tqbb-app .tqb-btn-secondary:hover, .tqb-modal .tqb-btn-secondary:hover { background: var(--bg) !important; color: var(--text) !important; }
#tqbb-app .tqb-btn-danger, .tqb-modal .tqb-btn-danger { background: var(--red) !important; background-image: none !important; color: #fff !important; border-color: var(--red) !important; }
#tqbb-app .tqb-btn-ghost-danger, .tqb-modal .tqb-btn-ghost-danger { background: #fff !important; background-image: none !important; color: var(--red) !important; border-color: #fecaca !important; }
#tqbb-app .tqb-btn-whatsapp, .tqb-modal .tqb-btn-whatsapp { background: #16a34a !important; background-image: none !important; color: #fff !important; border-color: #16a34a !important; }
#tqbb-app .tqb-btn-whatsapp:hover, .tqb-modal .tqb-btn-whatsapp:hover { background: #15803d !important; color: #fff !important; }

.tqb-panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.tqb-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.tqb-panel-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.tqb-panel-title .dashicon { color: var(--blue); width: 17px; height: 17px; }
.tqb-panel-body { padding: 14px 18px 18px; }
.tqb-panel-body.no-pad { padding: 0; }
.tqb-count-pill { background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

/* Collapsible accordion panels (left "Prices & Details" column) */
.tqb-panel-head-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; flex: 1; min-width: 0; user-select: none; }
.tqb-panel-head-toggle .chevron { transition: transform .2s ease; color: var(--muted); flex: 0 0 auto; }
.tqb-panel-head-toggle.open .chevron { transform: rotate(180deg); }
.tqb-collapsible-body { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.tqb-collapsible-body.open { max-height: 4000px; }
.tqb-collapsible-body .tqb-panel-body { border-top: 1px solid var(--border); }
.tqb-dest-header .chevron { transition: transform .2s ease; color: var(--muted); flex: 0 0 auto; width: 15px; height: 15px; }
.tqb-dest-header.open .chevron { transform: rotate(180deg); }

#tqb-quotation-col .tqb-form-section { transition: padding-bottom .28s ease; }
#tqb-quotation-col .tqb-form-section-title.tqb-q-toggle { transition: margin-bottom .28s ease; }
#tqb-quotation-col .tqb-form-section.is-collapsed { padding-bottom: 0; }
#tqb-quotation-col .tqb-form-section.is-collapsed > .tqb-form-section-title { margin-bottom: 0; border-bottom-color: transparent; }
/* Right-hand Quotation column: every section's title bar opens and closes
   its section with a slide, same idea as the left column's accordions. The
   body slides via a grid-row transition rather than a max-height one, so a
   long section (a 17-day itinerary, say) is never clipped at some fixed
   height. */
.tqb-q-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.tqb-q-toggle .chevron { transition: transform .2s ease; color: var(--muted); flex: 0 0 auto; order: 2; margin-left: auto; width: 16px; height: 16px; }
.tqb-q-toggle.open .chevron { transform: rotate(180deg); }
.tqb-q-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.tqb-q-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.tqb-q-body.open { grid-template-rows: 1fr; }
.tqb-q-body > .tqb-q-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .28s; }
.tqb-q-body.open > .tqb-q-inner { visibility: visible; transition-delay: 0s; }
.tqb-q-body.open.settled > .tqb-q-inner { overflow: visible; }

.tqb-table-wrap { overflow-x: auto; }
table.tqb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tqb-table th { text-align: left; padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.tqb-table td { padding: 12px 14px; border-bottom: 1px solid #f1f3f5; vertical-align: middle; }
table.tqb-table tr:last-child td { border-bottom: none; }
table.tqb-table tr:hover td { background: #fafbfc; }
.tqb-cell-name { font-weight: 600; }
.tqb-cell-id { font-weight: 700; color: var(--blue); }
.tqb-link { cursor: pointer; }
.tqb-link:hover { color: var(--blue); text-decoration: underline !important; }
.tqb-muted { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.tqb-empty { color: var(--muted); font-size: 13px; padding: 24px; text-align: center; }

.tqb-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }

.tqb-status-select { border: none; background: #f1f5f9; font-weight: 700; font-size: 11.5px; padding: 4px 8px; border-radius: 999px; appearance: none; cursor: pointer; }

/* Toast */
.tqb-toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.tqb-toast { background: #16233f; color: #fff; padding: 12px 16px; border-radius: 8px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.2); display: flex; align-items: center; gap: 10px; min-width: 220px; }
.tqb-toast.success { border-left: 4px solid var(--green); }
.tqb-toast.error { border-left: 4px solid var(--red); }

/* Modal */
.tqb-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.tqb-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 70px rgba(15,23,42,.3); }
.tqb-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 2; }
.tqb-modal-title-wrap { display: flex; align-items: center; gap: 12px; }
.tqb-modal-title-icon { width: 38px; height: 38px; border-radius: 10px; background: #dbeafe; color: var(--blue); display: flex; align-items: center; justify-content: center; flex: 0 0 38px; }
.tqb-modal-title { font-size: 17px; font-weight: 700; line-height: 1.2; }
.tqb-modal-subtitle { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tqb-modal-close { background: #fff !important; border: 1px solid var(--border) !important; color: var(--muted) !important; padding: 7px; border-radius: 8px; display: flex; }
.tqb-modal-close:hover { background: var(--bg) !important; }
.tqb-modal-body { padding: 22px 24px 8px; }
.tqb-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: #fff; flex-wrap: wrap; }
.tqb-modal-foot-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }

.tqb-form-section { margin-bottom: 20px; }
.tqb-form-section-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.tqb-form-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.tqb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tqb-form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.tqb-field { display: flex; flex-direction: column; gap: 6px; }
.tqb-field.full { grid-column: 1 / -1; }
.tqb-field label { font-size: 12.5px; font-weight: 600; }
.tqb-field label .req { color: var(--red); }
.tqb-field input, .tqb-field select, .tqb-field textarea { padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 13.5px; width: 100%; background: #f4f5f7; color: var(--text); }
.tqb-field input:focus, .tqb-field select:focus, .tqb-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); background: #fff; }
.tqb-field textarea { resize: vertical; min-height: 70px; }
.tqb-field input:disabled { background: var(--bg) !important; color: var(--muted); }
.tqb-field-hint { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tqb-error { color: var(--red); font-size: 12.5px; margin-top: 6px; min-height: 16px; }

/* Itinerary builder inside the quotation form */
.tqb-itin-add-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.tqb-itin-add-row .tqb-field { flex: 1; min-width: 160px; margin-bottom: 0; }
.tqb-itin-list { display: flex; flex-direction: column; gap: 8px; }
.tqb-itin-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.tqb-itin-badge { flex: 0 0 auto; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tqb-itin-main { flex: 1; min-width: 0; }
.tqb-itin-main strong { display: block; font-size: 13px; }
.tqb-itin-main span { font-size: 11.5px; color: var(--muted); }
.tqb-itin-remove { background: none !important; border: none !important; color: var(--red) !important; padding: 4px; }

/* Suggested / computed total */
.tqb-total-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 12.8px; margin-top: 10px; }
.tqb-total-row span.label { color: var(--muted); flex: 1; min-width: 160px; }
.tqb-total-row strong { font-size: 17px; }

/* Rates & Pricing */
.tqb-country-card { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; background: #fff; overflow: hidden; }
.tqb-country-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fafbfc; border-bottom: 1px solid var(--border); flex-wrap: wrap; cursor: pointer; }
.tqb-country-head h3 { font-size: 16px; margin: 0; }
.tqb-country-head .tqb-country-meta { color: var(--muted); font-size: 12.5px; }
.tqb-country-body { padding: 18px; display: none; }
.tqb-country-body.open { display: block; }
.tqb-rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tqb-rate-section h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--blue); margin: 0 0 10px; }
.tqb-rate-input-name { padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; width: 100%; background: #fff; }
.tqb-rate-input-price { padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; width: 100px; background: #fff; }
.tqb-rate-input-desc { padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; font-size: 12.5px; width: 100%; background: #fff; }

/* Quotation preview */
.tqb-preview { padding: 4px 2px 8px; }
.tqb-preview-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--blue); padding-bottom: 16px; margin-bottom: 18px; }
.tqb-preview-head img { max-height: 40px; }
.tqb-preview-meta { text-align: right; font-size: 12px; color: var(--muted); line-height: 1.6; }
.tqb-preview-meta strong { display: block; font-size: 14px; color: var(--text); }
.tqb-preview h2 { font-size: 18px; margin: 0 0 4px; }
.tqb-preview-sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; display: flex; align-items: center; gap: 8px; }
.tqb-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.tqb-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.tqb-card h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); margin: 0 0 8px; }
.tqb-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px solid #f1f3f5; }
.tqb-row:last-child { border-bottom: none; }
.tqb-row span:first-child { color: var(--muted); }
.tqb-row span:last-child { font-weight: 600; text-align: right; }
.tqb-total-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tqb-total-box span { font-size: 13px; color: #1e40af; }
.tqb-total-box strong { font-size: 20px; color: #1e40af; }
.tqb-section { margin-bottom: 16px; }
.tqb-section h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.tqb-section p { font-size: 13px; line-height: 1.6; white-space: pre-wrap; margin: 0; }
.tqb-day { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #f1f3f5; }
.tqb-day:first-child { border-top: none; }
.tqb-day .badge { flex: 0 0 auto; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; height: fit-content; white-space: nowrap; }
.tqb-day strong { display: block; font-size: 13px; }
.tqb-day span { font-size: 12px; color: var(--muted); }
.tqb-day .meal-note { display: block; font-size: 11px; color: var(--blue); font-weight: 600; margin-top: 3px; }

/* Progress bar */
.tqb-progress-bar { height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.tqb-progress-fill { height: 100%; width: 35%; background: var(--blue); border-radius: 999px; animation: tqb-progress-slide 1.1s ease-in-out infinite; }
@keyframes tqb-progress-slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }

.tqb-version-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--bg); color: var(--muted); cursor: pointer; margin-right: 4px; border: 1px solid var(--border); }
.tqb-version-chip:hover { background: #eef2ff; color: var(--blue); border-color: #c7d2fe; }
.tqb-version-chip.active { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }

/* Responsive */
@media (max-width: 1000px) {
	.tqb-rate-grid { grid-template-columns: 1fr; }
	.tqb-preview-grid { grid-template-columns: 1fr; }
	.tqb-builder-grid { grid-template-columns: 1fr !important; }
	#tqb-preview-col { position: static; }
	.tqb-preview-body { max-height: none; }
}
@media (max-width: 860px) {
	.tqb-hamburger { display: inline-flex; }
	.tqb-sidebar { position: fixed; left: -260px; top: 0; z-index: 40; transition: left .2s ease; box-shadow: 10px 0 30px rgba(0,0,0,.2); }
	.tqb-sidebar.open { left: 0; }
	.tqb-sidebar.collapsed { width: 230px; flex: 0 0 230px; }
	.tqb-sidebar-collapse-btn { display: none; }
	.tqb-content { padding: 16px; }
	.tqb-form-grid { grid-template-columns: 1fr; }
	.tqb-form-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.tqb-user-meta { display: none; }
}

/* Day-wise itinerary card — image + day badge overlay, destinations list,
   accommodation pill. Used in the live Quotation preview and Quotations
   history view (mirrors the PDF/shareable-page layout). */
.tqb-itin-card { display: flex; gap: 0; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.tqb-itin-card:last-child { margin-bottom: 0; }
.tqb-itin-card-media { position: relative; flex: 0 0 38%; min-height: 150px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.tqb-itin-card-media img { width: 100%; flex: 1 1 0; min-height: 0; object-fit: cover; display: block; }
.tqb-itin-card-placeholder { width: 100%; flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); background: linear-gradient(135deg, #eef2ff, #f5f7fa); }
.tqb-itin-card-placeholder .dashicon { width: 34px; height: 34px; opacity: .5; }
.tqb-itin-card-badge { position: absolute; top: 10px; left: 10px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.tqb-itin-card-body { flex: 1; min-width: 0; padding: 14px 16px; }
.tqb-itin-card-title { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.tqb-itin-card-title .dashicon { width: 18px; height: 18px; color: #dc2626; flex: 0 0 auto; }
.tqb-itin-card-title strong { font-size: 15px; color: var(--text); }
.tqb-itin-card-note { font-size: 11.5px; font-weight: 600; margin-bottom: 8px; }
.tqb-itin-dest { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; }
.tqb-itin-dest-dot { flex: 0 0 auto; width: 9px; height: 9px; border: 2px solid var(--blue); border-radius: 50%; margin-top: 4px; }
.tqb-itin-dest strong { display: block; font-size: 12.5px; color: var(--text); }
.tqb-itin-dest-desc { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 1px; }
.tqb-itin-accom { display: inline-flex; align-items: center; gap: 6px; background: #eff6ff; color: var(--blue); font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: 7px; margin-top: 6px; }
.tqb-itin-accom .dashicon { width: 13px; height: 13px; }

/* Terms and Condition — basic rich-text editor (Bold / Italic / List) */
.tqb-richtext-toolbar { display: flex; gap: 6px; margin-bottom: 8px; }
.tqb-richtext-toolbar button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--text); cursor: pointer; font-size: 12.5px; }
.tqb-richtext-toolbar button:hover { background: var(--bg); }
.tqb-richtext-toolbar button .dashicon { width: 13px; height: 13px; }
.tqb-richtext-editor { min-height: 190px; max-height: 420px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 13.5px; line-height: 1.6; background: #f4f5f7; color: var(--text); }
.tqb-richtext-editor:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); background: #fff; }
.tqb-richtext-editor ul, .tqb-richtext-editor ol { margin: 6px 0; padding-left: 22px; }
.tqb-richtext-editor li { margin-bottom: 3px; }

/* ---- Quotation Builder: every section is its own card — colored accent bar,
   tinted header band and a step number — so the long form reads as
   clearly separated steps. Hidden sections (e.g. Air Ticket when it's
   unchecked) drop out and the numbers close up automatically. ---- */
#tqb-quotation-col > .tqb-panel > .tqb-panel-body { background: #f8fafc; counter-reset: tqbsec; }
#tqb-quotation-col .tqb-form-section {
	--sec: #475569; --sec-bg: #f1f5f9;
	background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--sec);
	border-radius: 12px; padding: 0 18px 18px; margin-bottom: 18px; overflow: hidden;
	box-shadow: 0 1px 3px rgba(15,23,42,.06);
}
#tqb-quotation-col .tqb-form-section-title {
	margin: 0 -18px 16px; padding: 12px 18px; gap: 10px; background: var(--sec-bg); color: var(--sec);
	border-bottom: 1px solid var(--border); font-size: 12px;
}
#tqb-quotation-col .tqb-form-section-title::after { display: none; }
#tqb-quotation-col .tqb-form-section-title::before {
	counter-increment: tqbsec; content: counter(tqbsec);
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px;
	border-radius: 50%; background: var(--sec); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0;
}
#tqb-quotation-col .tqb-form-section[data-sec="service"] .tqb-form-section-title::before { display: none; }
#tqb-quotation-col .tqb-form-section[data-sec="customer"]   { --sec: #1d4ed8; --sec-bg: #eff6ff; }
#tqb-quotation-col .tqb-form-section[data-sec="airticket"]  { --sec: #0369a1; --sec-bg: #f0f9ff; }
#tqb-quotation-col .tqb-form-section[data-sec="visa"]       { --sec: #0f766e; --sec-bg: #f0fdfa; }
#tqb-quotation-col .tqb-form-section[data-sec="tour"]       { --sec: #15803d; --sec-bg: #f0fdf4; }
#tqb-quotation-col .tqb-form-section[data-sec="inclusions"] { --sec: #b45309; --sec-bg: #fffbeb; }
#tqb-quotation-col .tqb-form-section[data-sec="itinerary"]  { --sec: #6d28d9; --sec-bg: #f5f3ff; }
#tqb-quotation-col .tqb-form-section[data-sec="terms"]      { --sec: #4338ca; --sec-bg: #eef2ff; }
#tqb-quotation-col .tqb-form-section[data-sec="notes"]      { --sec: #c2410c; --sec-bg: #fff7ed; }
/* Pricing closes the form with a dark band, so the money stands apart. */
#tqb-quotation-col .tqb-form-section[data-sec="pricing"] { --sec: #1e293b; --sec-bg: #1e293b; }
#tqb-quotation-col .tqb-form-section[data-sec="pricing"] .tqb-form-section-title { color: #fff; border-bottom-color: #1e293b; }
#tqb-quotation-col .tqb-form-section[data-sec="pricing"] .tqb-form-section-title::before { background: #fff; color: #1e293b; }

/* 24-hour time picker: Hour and Minute selects side by side. */
.tqb-time24 { display: flex; align-items: center; gap: 6px; }
.tqb-time24 select { flex: 1 1 0; min-width: 0; width: auto; padding-left: 10px; padding-right: 4px; }
.tqb-time24 > span { font-weight: 700; color: var(--muted); }

/* ---- Left side: the rate card uses the same colours as the matching
   sections on the right, so Air Ticket / Visa / Tour Package (and the
   panels behind Tour Details, Inclusions, Itinerary and Terms) are
   instantly recognisable. ---- */
.tqb-seg[data-sec="airticket"] { --sec: #0369a1; --sec-bg: #f0f9ff; }
.tqb-seg[data-sec="visa"]      { --sec: #0f766e; --sec-bg: #f0fdfa; }
.tqb-seg[data-sec="tour"]      { --sec: #15803d; --sec-bg: #f0fdf4; }
.tqb-panel[data-sec="tour"]       { --sec: #15803d; }
.tqb-panel[data-sec="inclusions"] { --sec: #b45309; }
.tqb-panel[data-sec="itinerary"]  { --sec: #6d28d9; }
.tqb-panel[data-sec="terms"]      { --sec: #4338ca; }
.tqb-panel[data-sec] { border-left: 4px solid var(--sec); }
.tqb-seg {
	--sec: #475569; --sec-bg: #f1f5f9;
	background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--sec);
	border-radius: 12px; padding: 0 16px 14px; margin: 16px 0; overflow: hidden;
}
.tqb-seg-title {
	margin: 0 -16px 12px; padding: 10px 16px; background: var(--sec-bg); color: var(--sec);
	border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
/* Read-only value (visa fares on the right, which are set on the left). */
.tqb-static { padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: #f8fafc; font-size: 13.5px; font-weight: 600; color: var(--text); }

/* Standalone app (not inside a WordPress theme): no full-bleed trick needed. */
.tqbb-app.tqbb-standalone { left: 0; right: 0; margin-left: 0; margin-right: 0; width: 100%; }
body.tqbb-body { margin: 0; background: #f5f7fa; }

/* Leads + Sales Team */
.tqb-lead-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tqb-stat-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 14px 12px; }
.tqb-stat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.tqb-stat-icon .dashicon { width: 19px; height: 19px; }
.tqb-stat-num { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--text); }
.tqb-stat-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tqb-stat-delta { font-size: 11.5px; font-weight: 600; color: var(--green); margin-top: 8px; }
.tqb-stat-delta.down { color: var(--red); }
.tqb-lead-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.tqb-lead-filters select { min-width: 150px; }
.tqb-lead-search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; background: #fff; }
.tqb-lead-search .dashicon { width: 16px; height: 16px; color: var(--muted); flex: 0 0 auto; }
.tqb-lead-search input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; outline: none; }
.tqb-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tqb-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.tqb-lead-row { cursor: pointer; }
.tqb-lead-h { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); margin: 0 0 10px; }
.tqb-source-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.tqb-source-opt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--border) !important; background: #fff !important; color: var(--c) !important; font-size: 13px; font-weight: 600; cursor: pointer; }
.tqb-source-opt .dashicon { width: 15px; height: 15px; }
.tqb-source-opt.on { background: var(--bg) !important; border-color: var(--c) !important; box-shadow: 0 0 0 2px var(--c) inset; }
.tqb-avatar { width: 34px; height: 34px; border-radius: 50%; background: #dbeafe; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: 0 0 34px; }
.tqb-bar { width: 90px; height: 6px; background: #eef0f3; border-radius: 99px; overflow: hidden; }
.tqb-bar span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.tqb-lead-filters select { padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 13px; }
.tqb-lead-search input { padding: 9px 0 !important; background: transparent !important; }

.tqb-period-bar { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.tqb-period-btn { border: 0 !important; background: transparent !important; color: var(--muted) !important; padding: 7px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tqb-period-btn.on { background: var(--blue) !important; color: #fff !important; }
.tqb-lead-table td, .tqb-lead-table th { white-space: nowrap; }
.tqb-lead-name { font-weight: 700; color: var(--text); text-decoration: none; }
.tqb-lead-name:hover { color: var(--blue); }
.tqb-st-cell { cursor: pointer; text-align: left; }
.tqb-st-cell:hover { background: #f3f6fb !important; }
.tqb-st-cell.current .tqb-pill { box-shadow: 0 0 0 2px currentColor; }
.tqb-st-empty { color: #c0c6cf; padding: 0 6px; }
.tqb-lead-note { width: 170px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 12.5px; background: #fff; }
.tqb-lead-table .tqb-pill { font-size: 11.5px; }
.tqb-lead-table td, .tqb-lead-table th { padding-left: 10px; padding-right: 10px; }
.tqb-lead-note { width: 140px; }
.tqb-dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .tqb-dash-grid { grid-template-columns: 1fr; } }
.tqb-act { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; margin-bottom: 10px; font-size: 14px; }
.tqb-act:last-child { margin-bottom: 0; }
.tqb-act .dashicon { width: 20px; height: 20px; flex: 0 0 20px; }
.tqb-act-text { flex: 1; min-width: 0; }
.tqb-act-time { font-size: 13px; color: #6b7280; white-space: nowrap; }
.tqb-act-success { background: #e8faf0; color: #0f6b3c; }
.tqb-act-warning { background: #fff9e6; color: #92400e; }
.tqb-act-info { background: #eef4ff; color: #1d4ed8; }
.tqb-act-danger { background: #fff0f0; color: #b91c1c; }
[data-act-lead] { cursor: pointer; }
.tqb-rank { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: #eef0f3; color: #475569; font-weight: 700; font-size: 12px; align-items: center; justify-content: center; }
.tqb-rank-1 { background: #fde68a; color: #92400e; } .tqb-rank-2 { background: #e5e7eb; color: #374151; } .tqb-rank-3 { background: #fed7aa; color: #9a3412; }
.tqb-status-pick { appearance: auto; border: 1.5px solid; border-radius: 999px; padding: 5px 10px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.tqb-lead-table .tqb-lead-name { cursor: pointer; }
/* One font stack everywhere, including toasts and pop-ups appended to <body> */
html, body, body *:not(svg):not(svg *) { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; }
#db-acts { max-height: 640px; overflow-y: auto; }

/* Group Tours */
.gt-cards { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.gt-card { flex: 0 0 250px; background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 14px; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.gt-card:hover { box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.gt-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.gt-card-name { font-weight: 700; font-size: 14.5px; margin-bottom: 2px; }
.gt-card-sub { font-size: 12px; color: var(--muted); margin-bottom: 10px; white-space: normal; }
.gt-card-foot { display: flex; justify-content: space-between; font-size: 12.5px; margin-top: 7px; color: var(--text); }
.gt-card-foot strong { color: var(--green); } .gt-card-foot span { color: var(--muted); }
.gt-bar { height: 7px; background: #e8edf3; border-radius: 99px; overflow: hidden; }
.gt-bar span { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #4f46e5); border-radius: 99px; }
.gt-bar.big { height: 10px; }
.gt-layout { display: grid; grid-template-columns: minmax(340px, 560px) minmax(300px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .gt-layout { grid-template-columns: 1fr; } }
.gt-plane-wrap { display: flex; justify-content: center; background: radial-gradient(circle at 50% 0, #e0ecff, #f1f5fb 60%); border: 1px solid var(--border); border-radius: 18px; padding: 26px 12px 26px; overflow: auto; }
.gt-plane { position: relative; background: linear-gradient(180deg, #ffffff, #f5f8fc); border: 2px solid #cfd9e8; border-radius: 170px 170px 46px 46px / 150px 150px 46px 46px; padding: 62px 34px 34px; box-shadow: 0 14px 34px rgba(37,99,235,.12), inset 0 0 0 6px #f0f4fa; min-width: 300px; }
.gt-plane::before, .gt-plane::after { content: ''; position: absolute; top: 34%; width: 62px; height: 120px; background: linear-gradient(180deg, #d6e0ef, #c2cfe3); z-index: -1; }
.gt-plane::before { left: -60px; clip-path: polygon(100% 0, 0 70%, 0 100%, 100% 60%); }
.gt-plane::after { right: -60px; clip-path: polygon(0 0, 100% 70%, 100% 100%, 0 60%); }
.gt-cockpit { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.gt-cockpit span { width: 26px; height: 12px; background: #9fb6d6; border-radius: 4px 4px 12px 12px; }
.gt-flightname { text-align: center; font-weight: 700; font-size: 12.5px; color: #475569; letter-spacing: .04em; margin-bottom: 12px; display: flex; gap: 6px; justify-content: center; align-items: center; }
.gt-flightname .dashicon { width: 14px; height: 14px; }
.gt-row { display: flex; justify-content: center; align-items: center; gap: 0; margin-bottom: 7px; }
.gt-group { display: flex; gap: 6px; }
.gt-aisle { width: 30px; text-align: center; font-size: 11px; color: #94a3b8; font-weight: 600; flex: 0 0 30px; }
.gt-head .gt-col { width: 36px; text-align: center; font-size: 11px; font-weight: 700; color: #94a3b8; }
.gt-seat { width: 36px; height: 38px; border-radius: 10px 10px 7px 7px; border: 1.5px solid; font-size: 11.5px; font-weight: 700; padding: 0; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.gt-seat::after { content: ''; position: absolute; bottom: 3px; left: 5px; right: 5px; height: 4px; border-radius: 3px; background: currentColor; opacity: .18; }
.gt-none { border-color: transparent; background: transparent; }
.gt-none::after { display: none; }
.gt-free { background: #e8faf0 !important; border-color: #4ade80 !important; color: #15803d !important; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.gt-free:hover { transform: translateY(-2px); box-shadow: 0 5px 10px rgba(22,163,74,.25); }
.gt-free.sel, .gt-sel-demo { background: #fde68a !important; border-color: #f59e0b !important; color: #92400e !important; transform: translateY(-2px); box-shadow: 0 5px 12px rgba(245,158,11,.4); }
.gt-booked { background: #dbe7fb !important; border-color: #93b4ea !important; color: #1e40af !important; cursor: pointer; }
.gt-booked.mine { background: #ede9fe !important; border-color: #8b5cf6 !important; color: #5b21b6 !important; }
.gt-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.gt-legend span { display: inline-flex; align-items: center; gap: 6px; } .gt-legend .gt-seat { width: 18px; height: 20px; border-radius: 6px; }
.gt-legend .gt-seat::after { display: none; }
.gt-side .tqb-panel { background: #fff; }
.gt-tour-title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.gt-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569; margin-bottom: 5px; }
.gt-meta .dashicon { width: 15px; height: 15px; color: var(--blue); }
.gt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.gt-stat { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.gt-stat b { display: block; font-size: 24px; font-weight: 800; } .gt-stat span { font-size: 11.5px; color: var(--muted); }
.gt-stat.booked b { color: #2563eb; } .gt-stat.pending b { color: #16a34a; }
.gt-chip { display: inline-block; padding: 3px 9px; margin: 0 5px 5px 0; border-radius: 8px; background: #eef2ff; color: #3730a3; font-size: 12px; font-weight: 700; }
.gt-chip.hot { background: #fde68a; color: #92400e; }
.gt-chip-btn { border: 0 !important; cursor: pointer; } .gt-chip-btn:hover { background: #c7d2fe !important; }
.gt-pax-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .gt-pax-row input { flex: 1; }

/* ---- Flight loaders ---------------------------------------------------- */
.tqb-plane-svg { width: 100%; height: 100%; display: block; }
.tqb-fly-cloud { position: absolute; height: 10px; width: 34px; border-radius: 10px; background: #e6edff; opacity: .9; animation: tqb-cloud 6s linear infinite; }
.tqb-fly-cloud::before { content: ""; position: absolute; left: 6px; top: -6px; width: 16px; height: 14px; border-radius: 50%; background: inherit; }
.tqb-fly-cloud.c1 { top: 16px; left: 8%; animation-duration: 7s; }
.tqb-fly-cloud.c2 { top: 40px; left: 60%; animation-duration: 5s; transform: scale(.7); }
.tqb-fly-cloud.c3 { top: 64px; left: 30%; animation-duration: 9s; transform: scale(.9); }
@keyframes tqb-cloud { from { translate: 120px 0; } to { translate: -240px 0; } }
.tqb-fly-plane { position: absolute; width: 34px; height: 34px; color: #0080cc; left: 50%; top: 50%; margin: -17px 0 0 -17px; transform: rotate(0deg); animation: tqb-bob 2.4s ease-in-out infinite; filter: drop-shadow(0 6px 5px rgba(59,79,216,.25)); }
@keyframes tqb-bob { 0%,100% { translate: -6px 3px; rotate: 6deg; } 50% { translate: 6px -5px; rotate: -4deg; } }
.tqb-dots i { font-style: normal; animation: tqb-dot 1.2s infinite; opacity: .2; }
.tqb-dots i:nth-child(2) { animation-delay: .2s; } .tqb-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes tqb-dot { 0%,100% { opacity: .2; } 40% { opacity: 1; } }

/* inline loader (replaces "Loading…") */
.tqb-fly-loader { padding: 28px 16px; text-align: center; color: #5b6478; }
.tqb-fly-track { position: relative; height: 46px; max-width: 260px; margin: 0 auto 6px; overflow: hidden; border-radius: 24px; background: linear-gradient(180deg,#f1f4ff,#fff); }
.tqb-fly-track .tqb-fly-plane { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.tqb-fly-track .tqb-fly-cloud.c1 { top: 8px; } .tqb-fly-track .tqb-fly-cloud.c2 { top: 28px; }
.tqb-fly-msg { font-size: 13px; font-weight: 600; }

/* full-screen overlay for slow actions */
.tqb-fly-overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(20,26,50,.38); backdrop-filter: blur(3px); animation: tqb-fade .18s ease-out; }
.tqb-fly-overlay.out { opacity: 0; transition: opacity .2s; }
@keyframes tqb-fade { from { opacity: 0; } to { opacity: 1; } }
.tqb-fly-card { position: relative; width: min(340px, 90vw); padding: 66px 24px 24px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 24px 60px rgba(20,26,80,.3); }
.tqb-fly-badge { position: absolute; left: 50%; top: -34px; width: 72px; height: 72px; margin-left: -36px; border-radius: 50%; background: linear-gradient(135deg,#0080cc,#00a0e8); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(59,79,216,.45); }
.tqb-fly-badge-plane { width: 34px; height: 34px; display: block; animation: tqb-takeoff 2.4s ease-in-out infinite; }
@keyframes tqb-takeoff { 0%,100% { translate: -3px 3px; rotate: 0deg; } 50% { translate: 3px -3px; rotate: -8deg; } }
.tqb-fly-ring { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid transparent; border-top-color: #f09c14; border-right-color: #cc2229; animation: tqb-spin 1.1s linear infinite; }
@keyframes tqb-spin { to { transform: rotate(360deg); } }
.tqb-fly-sky { position: relative; height: 92px; margin-bottom: 14px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg,#dfe6ff,#f6f8ff); }
.tqb-fly-sky::after { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 2px dashed #b5c0ff; opacity: .8; }
.tqb-fly-sky .tqb-fly-plane { width: 40px; height: 40px; margin: -20px 0 0 -20px; z-index: 1; }
.tqb-fly-title { font-size: 16px; font-weight: 700; color: #1d2340; }
.tqb-fly-sub { margin-top: 4px; font-size: 12.5px; color: #7a8299; }

/* thin top progress bar for every request */
.tqb-progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 100001; pointer-events: none; opacity: 0; transition: opacity .25s; }
.tqb-progress.on { opacity: 1; }
.tqb-progress span { display: block; height: 100%; width: 30%; background: linear-gradient(90deg,#0080cc,#cc2229,#f09c14); border-radius: 0 3px 3px 0; animation: tqb-bar 1.2s ease-in-out infinite; }
.tqb-progress.done span { animation: none; width: 100%; transition: width .2s; }
@keyframes tqb-bar { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .tqb-fly-plane, .tqb-fly-badge-plane, .tqb-fly-cloud, .tqb-fly-ring, .tqb-topbar span { animation: none !important; } }

/* ---- AI Itinerary Builder ---------------------------------------------- */
.tqb-ai-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 10px; font-weight: 700; font-size: 13px; color: #fff; cursor: pointer; background: linear-gradient(135deg,#3b4fd8,#8b5cf6); box-shadow: 0 6px 16px rgba(91,80,230,.35); transition: transform .15s, box-shadow .15s; }
.tqb-ai-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(91,80,230,.45); }
.tqb-ai-btn svg { width: 16px; height: 16px; stroke: #fff; }
#tqbb-app .tqb-ai-go, .tqb-modal .tqb-ai-go { background: linear-gradient(135deg,#3b4fd8,#8b5cf6) !important; border: 0 !important; }
.tqb-ai-intro { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: linear-gradient(135deg,#eef2ff,#f5f0ff); color: #3b3f66; font-size: 13px; line-height: 1.45; }
.tqb-ai-intro svg { width: 20px; height: 20px; flex: 0 0 auto; color: #6d4cf0; stroke: #6d4cf0; }
.tqb-ai-empty { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; } .tqb-ai-empty svg { width: 22px; height: 22px; stroke: #6d4cf0; flex: 0 0 auto; }
.tqb-ai-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tqb-ai-chip { border: 1px dashed #c4b5fd; background: #faf8ff; color: #5b3fd0; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.tqb-ai-chip:hover { background: #f1ebff; }
.tqb-ai-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tqb-ai-grid.c2 { grid-template-columns: repeat(2, 1fr); } .tqb-ai-grid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .tqb-ai-grid.c2, .tqb-ai-grid.c3 { grid-template-columns: 1fr; } }
.tqb-ai-opt { border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.tqb-ai-opt:hover { border-color: #a5b4fc; box-shadow: 0 8px 24px rgba(59,79,216,.12); }
.tqb-ai-opt-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.tqb-ai-opt-sum { font-size: 12.5px; color: var(--muted); margin: 8px 0 10px; line-height: 1.45; }
.tqb-ai-days { display: flex; flex-direction: column; gap: 8px; flex: 1; max-height: 340px; overflow: auto; }
.tqb-ai-day { display: flex; gap: 8px; align-items: center; }
.tqb-ai-day-n { flex: 0 0 44px; font-size: 11px; font-weight: 800; color: #3b4fd8; background: #eef2ff; border-radius: 8px; padding: 3px 0; text-align: center; }
.tqb-ai-thumb { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 9px; background: #e5e7eb center/cover no-repeat; }
.tqb-ai-day-t { font-size: 13px; font-weight: 600; line-height: 1.3; }
.tqb-ai-kb-head { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); margin-bottom: 8px; }
.tqb-ai-kb { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 6px; }
.tqb-ai-kb-ico { width: 32px; height: 32px; border-radius: 9px; background: #eef2ff; display: flex; align-items: center; justify-content: center; } .tqb-ai-kb-ico svg { width: 16px; height: 16px; }
.tqb-ai-kb-main { flex: 1; min-width: 0; }

.tqb-ai-fields { margin-top: 14px; padding: 12px; border: 1px dashed #c4b5fd; border-radius: 12px; background: #faf8ff; }
.tqb-ai-fields-title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #5b3fd0; margin-bottom: 10px; }
.tqb-ai-fields-title svg { width: 14px; height: 14px; stroke: #6d4cf0; } .tqb-ai-fields-title span { font-weight: 500; color: var(--muted); }
.tqb-ai-warn { display: flex; gap: 4px; align-items: flex-start; margin-top: 3px; font-size: 11.5px; color: #b45309; line-height: 1.35; }
.tqb-ai-warn svg { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 2px; stroke: #b45309; }

/* ---- v1.6: presence, bell, queue, teams, Meta ---- */
.tqb-presence { margin: auto 12px 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #f9fafb; font-size: 13px; }
.tqb-presence:empty { display: none; }
.tqb-pres-state { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tqb-pres-btns { display: flex; gap: 6px; margin-top: 10px; }
.tqb-pres-btns .tqb-btn { flex: 1; padding: 7px 8px; font-size: 12.5px; justify-content: center; }
.tqb-pres-hint { margin-top: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.tqb-sidebar.collapsed .tqb-presence { display: none; }
.tqb-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #9ca3af; flex: 0 0 9px; }
.tqb-dot-available { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.tqb-dot-break { background: #f59e0b; }
.tqb-dot-offline { background: #9ca3af; }
.tqb-bell-wrap { position: relative; }
.tqb-bell { position: relative; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tqb-bell svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tqb-bell-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tqb-bell-panel { position: absolute; right: 0; top: 44px; width: 340px; max-width: 86vw; max-height: 420px; overflow: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); z-index: 60; }
.tqb-bell-head { padding: 12px 14px; font-weight: 700; border-bottom: 1px solid var(--border); }
.tqb-notif { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.tqb-notif.unread { background: #eff6ff; }
.tqb-notif-overdue { border-left: 3px solid #dc2626; }
.tqb-notif-queue { border-left: 3px solid #f59e0b; }
.tqb-notif small { color: var(--muted); }
.tqb-wa-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #dcfce7; color: #15803d !important; font-size: 11.5px; font-weight: 600; text-decoration: none; vertical-align: middle; }
.tqb-wa-btn svg { width: 12px; height: 12px; }
.tqb-queue-panel { border-color: #fcd34d; }
.tqb-queue-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #f1f5f9; }
.tqb-assign-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow: auto; }
.tqb-assign-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font: inherit; }
.tqb-assign-row:hover { border-color: var(--blue); background: #f8fafc; }
.tqb-assign-name { flex: 1; display: flex; flex-direction: column; }
.tqb-assign-name small { color: var(--muted); }
.tqb-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tqb-tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted); }
.tqb-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.tqb-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tqb-team-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.tqb-team-members { display: flex; flex-direction: column; gap: 4px; font-size: 13px; max-height: 150px; overflow: auto; }
.tqb-team-card input[type=text] { font-size: 12.5px; }
.tqb-copy-row { display: flex; gap: 8px; }
.tqb-copy-row input { flex: 1; }
.tqb-guide { padding-left: 20px; line-height: 1.55; font-size: 13.5px; }
.tqb-guide li { margin-bottom: 8px; }
.tqb-guide code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.tqb-user .tqb-avatar { color: #fff; }

/* ---- v1.7: live ticket prices ---- */
.tqb-air-src { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 4px 0 8px; }
.tqb-air-src-btn { padding: 8px 14px; font: inherit; font-weight: 600; font-size: 13px; border: 0; background: #fff; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tqb-air-src-btn + .tqb-air-src-btn { border-left: 1px solid var(--border); }
.tqb-air-src-btn.on { background: var(--blue); color: #fff; }
.tqb-air-src-btn svg { width: 14px; height: 14px; }
.tqb-live-note { display: flex; gap: 10px; align-items: flex-start; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 6px; }
.tqb-live-note svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; }
.tqb-fares { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.tqb-fare { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.tqb-fare-main { flex: 1; min-width: 0; }
.tqb-fare-air { display: flex; align-items: center; gap: 8px; }
.tqb-fare-air img { height: 20px; width: 20px; object-fit: contain; }
.tqb-fare-price { font-weight: 800; font-size: 16px; white-space: nowrap; }
.tqb-fare-main { white-space: normal; overflow-wrap: anywhere; }
.tqb-live-err { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; margin: 8px 0; }
.tqb-lv-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.tqb-lv-head > div { min-width: 0; }
.tqb-lv-picked { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 12.5px; margin-bottom: 10px; }
.tqb-lv-journey { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.tqb-lv-title { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.tqb-lv-seg { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; font-size: 13.5px; }
.tqb-lv-seg img { height: 22px; width: 22px; object-fit: contain; margin-top: 1px; }
.tqb-lv-layover { margin: 6px 0 6px 32px; font-size: 12px; color: var(--muted); border-left: 2px dashed var(--border); padding-left: 10px; }
.tqb-lv-fare { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.tqb-lv-fare-amt { font-size: 24px; font-weight: 800; }
@media (max-width: 640px) { .tqb-fare { flex-wrap: wrap; } .tqb-lv-head { flex-direction: column; align-items: flex-start; } }
#q-air-live-wrap, #q-air-manual-wrap { min-width: 0; max-width: 100%; }
#q-air-live-wrap .tqb-fare { flex-wrap: wrap; }
#q-air-live-wrap .tqb-fare-main { flex: 1 1 100%; }
#q-air-live-wrap .tqb-fare > div:nth-child(2) { margin-right: auto; text-align: left !important; }
.tqb-lv-seg > div { min-width: 0; overflow-wrap: anywhere; }
.tqb-lv-journey, .tqb-lv-fare { min-width: 0; max-width: 100%; box-sizing: border-box; }
.tqb-lv-head .tqb-btn { flex: none; white-space: nowrap; }
.tqb-lv-head > div { overflow-wrap: anywhere; }
.tqb-q-inner { min-width: 0; }
.tqb-lv-line { font-size: 12.5px; color: var(--muted); white-space: normal; overflow-wrap: anywhere; }
.tqb-lv-seg > div { flex: 1 1 0; }
.tqb-lv-head > div { flex: 1 1 0; min-width: 0; }

/* ---- Sign-in page (two columns) ---- */
.lg-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 100vh; background: #fff; font-family: inherit; }
.lg-left { position: relative; overflow: hidden; color: #fff; padding: 56px clamp(28px, 5vw, 72px) 28px; display: flex; flex-direction: column; justify-content: space-between;
	background: radial-gradient(1200px 700px at 0% 0%, #1596e6 0%, rgba(21,150,230,0) 60%), linear-gradient(155deg, #006bb3 0%, #0080cc 45%, #00569a 100%); }
.lg-blob { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.lg-b1 { width: 380px; height: 380px; right: -120px; top: -110px; background: radial-gradient(circle at 30% 30%, rgba(240,156,20,.55), rgba(240,156,20,0) 70%); animation: lgfloat 14s ease-in-out infinite; }
.lg-b2 { width: 460px; height: 460px; left: -160px; bottom: -180px; background: radial-gradient(circle at 60% 40%, rgba(204,34,41,.5), rgba(204,34,41,0) 70%); animation: lgfloat 18s ease-in-out infinite reverse; }
.lg-b3 { width: 240px; height: 240px; right: 18%; bottom: 14%; background: radial-gradient(circle, rgba(255,255,255,.14), rgba(255,255,255,0) 70%); animation: lgfloat 11s ease-in-out infinite; }
@keyframes lgfloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(18px,-22px); } }
.lg-left-in { position: relative; z-index: 1; max-width: 640px; }
.lg-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: 6px 12px; border-radius: 999px; }
.lg-hero { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; font-weight: 800; margin: 18px 0 10px; letter-spacing: -.02em; }
.lg-sub { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.86); margin: 0 0 28px; max-width: 480px; }
.lg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lg-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); border-radius: 18px; padding: 16px 18px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,40,90,.18); min-width: 0; animation: lgrise .6s ease both; }
.lg-card-conv { animation-delay: .08s; } .lg-card-dest { animation-delay: .16s; } .lg-card-tours { animation-delay: .24s; }
@keyframes lgrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lg-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.78); margin-bottom: 10px; }
.lg-big { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.lg-note { margin-top: 8px; font-size: 12.5px; color: rgba(255,255,255,.84); }
.lg-card-lead .lg-note { display: inline-block; background: rgba(240,156,20,.9); color: #3b2500; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.lg-ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#f09c14 calc(var(--p) * 1%), rgba(255,255,255,.22) 0); position: relative; }
.lg-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #0a6fb4; }
.lg-ring span { position: relative; font-size: 20px; font-weight: 800; }
.lg-card-dest, .lg-card-tours { grid-column: span 1; }
.lg-dest, .lg-tour { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.lg-dest + .lg-dest, .lg-tour + .lg-tour { border-top: 1px solid rgba(255,255,255,.14); }
.lg-flag { position: relative; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.22); display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(255,255,255,.6); font-size: 11px; font-weight: 800; }
.lg-flag::before { content: attr(data-i); }
.lg-flag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lg-dest-main, .lg-tour-main { flex: 1; min-width: 0; }
.lg-dest-name, .lg-tour-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-dest-name em { font-style: normal; font-size: 10px; font-weight: 800; background: #f09c14; color: #3b2500; border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.lg-bar { height: 6px; background: rgba(255,255,255,.2); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.lg-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f09c14, #ffd27a); border-radius: 99px; }
.lg-dest-n { font-weight: 800; font-size: 14px; }
.lg-tour-when { font-size: 12px; color: rgba(255,255,255,.8); }
.lg-date { flex: 0 0 auto; text-align: center; background: #fff; color: #0a4f84; border-radius: 10px; padding: 4px 9px; line-height: 1.05; box-shadow: 0 4px 10px rgba(0,40,90,.2); }
.lg-date b { display: block; font-size: 17px; } .lg-date span { font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: #cc2229; }
.lg-empty { font-size: 13px; color: rgba(255,255,255,.8); padding: 6px 0; }
.lg-foot { position: relative; z-index: 1; font-size: 12px; color: rgba(255,255,255,.7); margin-top: 24px; }
.lg-right { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: #fff; }
.lg-form-wrap { width: 100%; max-width: 380px; }
.lg-logo { display: block; width: 210px; max-width: 70%; height: auto; margin: 0 0 30px; }
.lg-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: #0f172a; margin: 0 0 6px; }
.lg-title-sub { color: #64748b; font-size: 14.5px; margin: 0 0 24px; }
.lg-form { display: flex; flex-direction: column; gap: 16px; }
.lg-field label { display: block; font-size: 12.5px; font-weight: 700; color: #475569; margin-bottom: 6px; }
.lg-field input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; font: inherit; font-size: 15px; border: 1.5px solid #dbe3ec; border-radius: 12px; background: #fff; color: #0f172a; transition: border-color .15s, box-shadow .15s; }
.lg-field input:focus { outline: none; border-color: #0080cc; box-shadow: 0 0 0 4px rgba(0,128,204,.14); }
.lg-pw { position: relative; } .lg-pw input { padding-right: 64px; }
.lg-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #0080cc; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.lg-eye:hover { background: #eef6fc; }
.lg-submit { height: 48px; border-radius: 12px; font-size: 15px; font-weight: 700; margin-top: 4px; background: linear-gradient(135deg, #0a8ee0, #0070b8) !important; border: 0 !important; color: #fff !important; cursor: pointer; box-shadow: 0 8px 18px rgba(0,128,204,.28); transition: transform .12s, box-shadow .12s; }
.lg-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(0,128,204,.34); background: linear-gradient(135deg, #0a8ee0, #0070b8) !important; }
.lg-fine { margin-top: 22px; font-size: 12.5px; color: #94a3b8; }
@media (max-width: 960px) { .lg-wrap { grid-template-columns: 1fr; } .lg-left { display: none; } .lg-right { min-height: 100vh; } }
@media (max-width: 1180px) and (min-width: 961px) { .lg-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lg-blob, .lg-card { animation: none; } }
.lg-left-in { margin: auto 0; padding-top: 12px; }

/* ---- avatars, profile, branches ---- */
.tqb-avatar-img { background: #e2e8f0 !important; overflow: hidden; padding: 0; }
.tqb-avatar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#tqb-user-avatar { display: inline-flex; text-decoration: none; }
.tqb-avatar-xl { width: 112px !important; height: 112px !important; font-size: 40px !important; margin: 0 auto 14px; display: flex !important; align-items: center; justify-content: center; color: #fff; border-radius: 50%; font-weight: 700; }
.tqb-profile-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.tqb-profile-card { text-align: center; padding: 28px 20px !important; }
.tqb-profile-name { font-size: 19px; font-weight: 800; color: var(--text); }
.tqb-branch-list { display: flex; flex-direction: column; gap: 8px; }
.tqb-branch-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.tqb-branch-name { flex: 1; font-weight: 600; }
@media (max-width: 860px) { .tqb-profile-grid { grid-template-columns: 1fr; } }

/* ---- icon-only loader in the logo colours ---- */
.tqb-spin { --d: 64px; position: relative; width: var(--d); height: var(--d); margin: 0 auto; display: inline-block; }
.tqb-spin.sm { --d: 44px; } .tqb-spin.lg { --d: 76px; }
.tqb-spin-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #0080cc, #cc2229, #f09c14, #0080cc); animation: tqb-spin 1.1s linear infinite;
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.tqb-spin-plane { position: absolute; inset: 22%; color: #0080cc; display: block; animation: tqb-takeoff 1.8s ease-in-out infinite; }
.tqb-spin-plane svg { width: 100%; height: 100%; display: block; }
.tqb-fly-overlay.mini { background: rgba(255,255,255,.55); backdrop-filter: blur(2px); }
.tqb-fly-overlay.mini .tqb-spin { background: #fff; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,60,110,.18); padding: 0; }
.tqb-fly-loader { padding: 28px 16px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .tqb-spin-ring, .tqb-spin-plane { animation-duration: 3s !important; } }

/* v1.9 – people cells with photo */
.tqb-person{display:flex;align-items:center;gap:10px;}
.tqb-person .tqb-avatar{flex:0 0 auto;}

/* v1.10 – Analytics */
.tqb-an-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px;}
.tqb-an-kpi{background:#fff;border:1px solid var(--border);border-radius:14px;padding:16px 18px;border-top:4px solid var(--k);box-shadow:0 1px 2px rgba(15,23,42,.04);}
.tqb-an-kpi .k-label{font-size:12.5px;color:var(--muted);font-weight:600;}
.tqb-an-kpi .k-val{font-size:32px;font-weight:800;color:var(--k);line-height:1.15;margin:4px 0 2px;}
.tqb-an-kpi .k-sub{font-size:12px;color:var(--muted);}
.tqb-an-grid{display:grid;gap:16px;margin-bottom:16px;}
.tqb-an-g2{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);}
.tqb-an-g2b{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
.tqb-an-grid .tqb-panel,.tqb-an-body > .tqb-panel{margin-bottom:0;}
#an-body > .tqb-panel{margin-bottom:16px;}
.tqb-an-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-bottom:10px;font-weight:600;}
.tqb-an-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px;}
.tqb-an-trend{width:100%;height:auto;display:block;}
.tqb-an-trend .an-grid{stroke:#e8edf5;stroke-width:1;}
.tqb-an-trend .an-axis{font-size:11px;fill:#8392a8;}
.tqb-an-trend .an-line{fill:none;stroke-width:2.6;stroke-linejoin:round;stroke-linecap:round;}
.tqb-an-trend .an-hit:hover{fill:rgba(0,128,204,.07);}
.tqb-an-donut{width:170px;height:170px;flex:0 0 auto;}
.tqb-an-donut .an-big{font-size:26px;font-weight:800;fill:#0f172a;}
.tqb-an-donut .an-small{font-size:11px;fill:#8392a8;}
.tqb-an-srcwrap,.tqb-an-outwrap{display:flex;align-items:center;gap:20px;flex-wrap:wrap;justify-content:center;}
.tqb-an-srclist{flex:1;min-width:190px;display:flex;flex-direction:column;gap:9px;font-size:13px;}
.tqb-an-srclist > div{display:flex;align-items:center;gap:8px;}
.tqb-an-srclist i{width:10px;height:10px;border-radius:3px;flex:0 0 auto;}
.tqb-an-srclist span{flex:1;color:#334155;}
.tqb-an-srclist em{font-style:normal;color:var(--muted);width:36px;text-align:right;}
.tqb-an-srclist small{color:var(--muted);font-size:11px;}
.tqb-an-bars{display:flex;flex-direction:column;gap:12px;}
.tqb-an-row{display:grid;grid-template-columns:minmax(120px,210px) 1fr 110px;align-items:center;gap:14px;}
.tqb-an-label{font-size:13px;color:#1e293b;min-width:0;}
.tqb-an-label .tqb-person{gap:10px;}
.tqb-an-track{display:flex;height:16px;background:#eef2f8;border-radius:8px;overflow:hidden;}
.tqb-an-track span{display:block;height:100%;transition:width .5s ease;}
.tqb-an-val{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:13px;}
.tqb-an-pill{font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;background:#fef3c7;color:#b45309;font-style:normal;}
.tqb-an-pill.hi{background:#dcfce7;color:#15803d;}
@media(max-width:1000px){.tqb-an-kpis{grid-template-columns:repeat(2,1fr);}.tqb-an-g2,.tqb-an-g2b{grid-template-columns:1fr;}}
@media(max-width:600px){.tqb-an-row{grid-template-columns:1fr 90px;}.tqb-an-track{grid-column:1/-1;order:3;}}

/* v1.11 – Travelco Members */
.tqb-cust{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;padding:3px 10px;border-radius:999px;white-space:nowrap;}
.tqb-cust svg{width:12px;height:12px;}
.tqb-cust-new{background:#e0f2fe;color:#0369a1;}
.tqb-cust-member{background:linear-gradient(135deg,#ede9fe,#fce7f3);color:#6d28d9;box-shadow:inset 0 0 0 1px rgba(109,40,217,.18);}
.tqb-cust-member svg{fill:#f09c14;stroke:#f09c14;}
.tqb-head-actions{display:flex;gap:8px;flex-wrap:wrap;}
.tqb-import-done{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:12px 14px;color:#166534;}
.tqb-person .tqb-avatar:not(.tqb-avatar-img),.tqb-an-row .tqb-avatar:not(.tqb-avatar-img){color:#fff;}

/* v1.12 – select, bulk bar */
.tqb-chk{width:36px;text-align:center;}
.tqb-chk input{width:16px;height:16px;cursor:pointer;accent-color:var(--blue);}
.tqb-bulkbar{display:flex;align-items:center;gap:10px;padding:10px 16px;background:#eff6ff;border-bottom:1px solid #bfdbfe;font-weight:600;color:#1e40af;font-size:13px;}
.tqb-bulkbar span{margin-right:auto;}
.tqb-dest-taken{opacity:.45;}
.tqb-dest-taken span{text-decoration:line-through;text-decoration-color:rgba(100,116,139,.5);}
