/* Shared portal geometry. Fonts, colours, calendar direction and workflows are owned by their feature styles. */
:root{--rj-layout-space:16px;--rj-layout-control:48px;--rj-layout-panel:24px;--rj-layout-gutter:20px}

/* Let grid and flex children shrink before their content can widen the page. */
body:not(.wp-admin)>main,
:is(.auth,.member-wait,.rj-global-nav,.rj-search,.rj-vault,.rj-member-admin,.rj-mg-panel,.rj-my-bookings),
:is(.rj-global-nav,.rj-search,.rj-vault,.rj-member-admin,.rj-mg-panel,.rj-my-bookings)>*,
:is(.rj-fields,.rj-record-header,.rj-ticket-find,.rj-mg-form,.rj-my-range,.rj-member-filter,.rj-r-grid,.rj-bag-grid,.rj-dc-controls)>*{box-sizing:border-box;min-inline-size:0}
body:not(.wp-admin)>main{max-inline-size:1480px;inline-size:100%;margin-block:24px 36px;margin-inline:auto;padding-inline:var(--rj-layout-gutter)}
body:not(.wp-admin)>header{column-gap:20px;row-gap:12px;padding-inline:max(var(--rj-layout-gutter),calc((100% - 1440px)/2))}
body:not(.wp-admin)>header>.brand{flex-shrink:0}
body:not(.wp-admin)>footer{padding:24px var(--rj-layout-gutter)}
.rj-global-nav{gap:16px 24px;margin-block:0 24px;padding:18px 20px;align-items:center;flex-wrap:wrap}
.rj-global-nav .rj-global-greeting{flex:1 1 200px}
.rj-global-nav .links{gap:10px;min-inline-size:0}
.rj-global-nav .links>.button{min-block-size:var(--rj-layout-control);height:auto;white-space:normal}
.rj-workspace-tabs{gap:8px;margin-block:16px 20px;padding:8px}
.rj-workspace-tabs>button{min-block-size:var(--rj-layout-control);height:auto;margin:0;white-space:normal;overflow-wrap:anywhere}

/* Labels stack naturally; a long translation must not overlap its control. */
:is(.rj-mg-form,.rj-ticket-find,.rj-my-range,.rj-record-lookup-form,.rj-member-filter,.rj-member-profile,.rj-member-sign-edit,.rj-dc-controls)>label{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-inline-size:0;max-inline-size:100%;margin:0!important;height:auto}
:is(.rj-mg-form,.rj-ticket-find,.rj-my-range,.rj-record-lookup-form,.rj-member-filter,.rj-member-profile,.rj-member-sign-edit,.rj-dc-controls)>label>span{margin:0!important}
:is(.rj-mg-form,.rj-my-bookings,.rj-vault,.rj-member-admin,.auth) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select){box-sizing:border-box;max-inline-size:100%;min-inline-size:0;min-block-size:var(--rj-layout-control);height:auto;vertical-align:middle}
:is(.rj-mg-form,.rj-my-bookings,.rj-vault,.rj-member-admin,.auth) textarea{box-sizing:border-box;inline-size:100%;max-inline-size:100%;min-block-size:104px;resize:vertical}
:is(.rj-mg-form,.rj-ticket-find,.rj-my-range,.rj-record-lookup-form,.rj-member-filter)>:is(button,.button){align-self:end;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-block-size:var(--rj-layout-control);height:auto!important;max-inline-size:100%;margin:0!important;white-space:normal;overflow-wrap:anywhere}
.rj-mg-panel{--rj-layout-panel:24px;min-inline-size:0;padding:var(--rj-layout-panel);margin-block:20px}
.rj-mg-content{min-inline-size:0}
.rj-mg-content>h2:first-child{margin:calc(-1 * var(--rj-layout-panel)) calc(-1 * var(--rj-layout-panel)) 20px;padding:18px var(--rj-layout-panel)}
.rj-mg-form{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:16px;align-items:end;margin-block:16px;padding:16px}
.rj-mg-form>label{width:auto!important;min-width:0!important;max-width:100%}
.rj-mg-form>label>:is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,.rj-choose-flight){inline-size:100%!important;width:100%!important;min-block-size:var(--rj-layout-control);margin-block:0!important}
.rj-mg-form>button{inline-size:100%!important;width:100%!important}
.rj-mg-form>label:has(.rj-date-row){max-inline-size:100%!important}
.rj-mg-form .rj-date-row{margin-block:0}
.rj-mg-form .rj-date-row>button{grid-column:auto!important;align-self:stretch}
body .rj-mg-form .rj-date-row .rj-day-step{box-sizing:border-box;width:44px!important;min-width:44px!important;max-width:44px!important;padding-inline:0!important}
.rj-backend-pages .rj-mg-form,.rj-central-audit>.rj-mg-form{display:inline-flex!important;gap:10px;padding:8px;margin:0}
.rj-builder-buttons,.rj-penalty-actions{gap:12px;align-items:stretch}
.rj-builder-buttons>button,.rj-penalty-actions>button{margin:0;min-block-size:44px;white-space:normal}

/* Authentication and account management use the same vertical rhythm. */
body:not(.wp-admin):has(.auth)>main{margin-block:28px 36px}
.auth{inline-size:100%;max-inline-size:480px;padding:28px}
.auth form>label{height:auto;margin-block:18px 8px}
.auth form>input:not([type=hidden]){box-sizing:border-box;inline-size:100%;min-inline-size:0;margin:0;min-block-size:52px;height:auto}
.auth form>button{inline-size:100%;min-block-size:52px;height:auto;margin-block:22px 0}
.auth .auth-links{flex-wrap:wrap;gap:12px 20px;align-items:center}
.auth .notice{max-inline-size:100%;text-align:start}
.member-wait{inline-size:100%;min-inline-size:0;margin-block:24px}
.wait-top{flex-wrap:wrap}.wait-actions{gap:12px}.wait-actions>a{display:inline-flex;justify-content:center;align-items:center;min-block-size:48px}
.rj-vault .card{padding:24px!important;margin-block:20px!important;min-inline-size:0}
.rj-vault .card>h2{margin-block:0 16px}
.rj-vault .card>form>label{margin-block:18px 8px!important;height:auto}
.rj-vault .card>form>input{inline-size:100%;margin:0;min-block-size:var(--rj-layout-control)}
.rj-vault section{padding:18px!important;margin-block:16px!important;min-inline-size:0}
.rj-vault section>form{display:inline-flex!important;flex-wrap:wrap;align-items:center;gap:10px;max-inline-size:100%;vertical-align:middle}
.rj-vault section :is(.button,button){display:inline-flex;align-items:center;justify-content:center;min-block-size:44px;height:auto;margin:4px 0!important;white-space:normal;max-inline-size:100%}
.rj-member-filter{display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto auto;gap:16px!important;align-items:end;padding:20px}
.rj-member-admin .rj-member-filter :is(input[type=search],select){width:100%;min-width:0;max-width:100%}
.rj-member-card,.rj-member-sign{min-inline-size:0}
.rj-member-card>header,.rj-member-sign>header{flex-wrap:wrap;align-items:start;gap:12px 20px}
.rj-member-card>header>div,.rj-member-sign>header>div{min-inline-size:0}
.rj-member-actions,.rj-member-actions form,.rj-member-sign-actions{gap:10px;align-items:stretch}
.rj-member-actions :is(button,.button),.rj-member-sign-actions :is(button,.button){height:auto;min-block-size:44px;white-space:normal}
.rj-member-profile .rj-member-check{flex-direction:row;align-items:center;gap:10px}
.rj-mobile-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:12px;align-items:end;min-inline-size:0;margin-block:18px 0}
.rj-mobile-fields>label{display:flex;flex-direction:column;gap:8px;min-inline-size:0;max-inline-size:100%;margin:0!important}
.rj-mobile-fields :is(select,input){box-sizing:border-box;inline-size:100%;max-inline-size:100%;min-inline-size:0;min-block-size:52px;margin:0!important;padding:11px 12px;border:1px solid var(--rj-line,#c4dfe7);border-radius:10px;background:#fff;color:inherit}
.rj-mobile-help{margin-block:8px 16px;overflow-wrap:anywhere}
.rj-member-profile>.rj-mobile-fields,.rj-member-profile>.rj-mobile-help{grid-column:1/-1}

/* Search cards stay aligned even when a city name or date uses two lines. */
.rj-search{max-inline-size:none;padding-block:0}
.rj-search .rj-form,.rj-search .rj-flight{margin-block:20px;padding:22px}
.rj-search #rj-search-form .rj-fields,
.rj-search #rj-search-form .rj-fields:has(.has-return){grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(290px,1.4fr) minmax(0,1fr) minmax(120px,.7fr)!important;gap:16px!important;align-items:stretch}
.rj-search #rj-search-form .rj-fields>:is(.rj-origin-field,.rj-destination-field,.rj-departure-field,.rj-passenger-field){box-sizing:border-box;min-inline-size:0;height:auto!important;min-block-size:108px;padding-block:14px!important;align-self:stretch;margin-block:0!important}
.rj-search #rj-search-form .rj-fields label{height:auto;min-block-size:22px;line-height:1.5;margin-block:0 6px!important}
.rj-search #rj-search-form :is(.rj-city-trigger,.rj-pax-trigger){max-inline-size:100%;min-inline-size:0;min-block-size:48px!important;height:auto!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.5!important}
.rj-search #rj-search-form .rj-search-action{align-self:stretch;min-inline-size:0}
.rj-search #rj-search-form .rj-search-action .rj-submit{height:100%!important;min-height:108px!important;margin:0!important;max-inline-size:100%;white-space:normal}
.rj-search #rj-search-form .rj-date-row{grid-template-columns:32px minmax(0,1fr) 32px!important;gap:6px!important;min-inline-size:0;align-items:center}
.rj-search #rj-search-form .rj-date-row .rj-day-step{inline-size:32px!important;min-width:32px!important;max-width:32px!important;width:32px!important;min-block-size:44px!important;height:44px!important}
.rj-search #rj-search-form .rj-date-row .rj-cal-toggle{min-block-size:48px!important;height:auto!important;max-inline-size:100%;white-space:normal!important}
.rj-search #rj-search-form .rj-departure-field.has-return{display:block;padding-inline:14px!important}
.rj-search #rj-search-form .rj-range-toggle{min-block-size:48px;inline-size:100%;max-inline-size:100%;height:auto;white-space:normal;overflow-wrap:anywhere;text-align:start}
.rj-search #rj-search-form .rj-range-caption{white-space:normal;overflow-wrap:anywhere}
.rj-search #rj-search-form .rj-date-panel{min-inline-size:0;max-inline-size:calc(100vw - 48px)}
.rj-search #rj-search-form .rj-date-panel>div{min-inline-size:0}
.rj-search .rj-heading{gap:24px;align-items:flex-start}
.rj-search .rj-heading>div:first-child{min-inline-size:0}
.rj-search .rj-fare-summary{box-sizing:border-box;min-inline-size:180px;max-inline-size:100%;padding-inline:20px 0;border-inline-start:1px solid #e2ecf1;border-inline-end:0;text-align:start}
.rj-search .rj-classes{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}
.rj-search .rj-class{min-inline-size:0}
.rj-search .rj-price-row{flex-wrap:wrap;align-items:center;gap:8px 16px}
.rj-search .rj-fare-options>summary{max-inline-size:100%;margin-inline:auto 0;white-space:normal}
.rj-days-shell{min-inline-size:0}.rj-days-shell .rj-days{min-inline-size:0;max-inline-size:100%;overscroll-behavior-inline:contain}
.rj-manifest-actions.rj-flight-actions{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))!important;gap:12px!important;align-items:stretch}
.rj-manifest-actions.rj-flight-actions>button{height:auto;min-block-size:48px!important;max-inline-size:100%;margin:0!important;white-space:normal;overflow-wrap:anywhere}

/* Records use fluid columns instead of a collection of fixed input widths. */
.rj-my-bookings{padding:20px;margin-block:0 20px;min-inline-size:0}
.rj-my-bookings .rj-record-header{grid-template-columns:minmax(0,1fr);gap:16px;align-items:end}
.rj-my-bookings .rj-record-header .rj-ticket-find{grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
.rj-my-bookings .rj-record-header .rj-ticket-find>label{align-self:end}
.rj-my-bookings .rj-record-header .rj-ticket-find>button{min-block-size:48px;max-inline-size:100%;width:100%;height:auto!important;grid-row:1;align-self:stretch}
.rj-my-bookings .rj-record-tools{max-inline-size:620px;min-inline-size:0;inline-size:100%}
.rj-my-bookings .rj-record-tools .rj-record-lookup-form{grid-template-columns:minmax(0,1fr) minmax(130px,.65fr);gap:12px!important;align-items:end}
.rj-my-bookings .rj-my-range{grid-template-columns:repeat(2,minmax(0,1fr)) minmax(180px,.8fr)!important;gap:16px!important;align-items:end;padding-block-start:20px;margin-block-start:20px!important}
.rj-my-bookings .rj-my-range>button{grid-column:auto!important;min-block-size:48px;inline-size:100%!important;justify-self:stretch}
.rj-my-bookings .rj-date-row{grid-template-columns:44px minmax(0,1fr) 44px!important;gap:8px!important;min-inline-size:0}
.rj-my-bookings .rj-date-row .rj-day-step{min-width:44px!important;width:44px!important;max-width:44px!important;padding-inline:0!important}
.rj-my-bookings .rj-my-row,.rj-reservation .rj-r-history-row{gap:12px;min-inline-size:0;align-items:center}
.rj-my-info,.rj-r-history-info{min-inline-size:0;overflow-wrap:anywhere}
.rj-record-ticket-tools,.rj-record-actions{gap:12px}
.rj-my-bookings .rj-resend-panel .rj-ticket-options{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)!important;gap:16px!important;align-items:end!important;max-inline-size:680px}
.rj-my-bookings .rj-resend-panel .rj-ticket-exports{grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr))!important;max-inline-size:720px;gap:12px}
.rj-my-bookings .rj-resend-panel .rj-ticket-hide{white-space:normal}
.rj-my-bookings .rj-ticket-email{min-inline-size:0}
.rj-my-bookings .rj-resend-panel .rj-ticket-exports button{height:auto!important;white-space:normal;min-block-size:44px}

/* Scroll the report itself, never conceal an oversized page with body overflow. */
:is(.rj-mg-table,.rj-cabin-table,.rj-pnr-list,.rj-bag-table-wrap,.rj-dc-table){box-sizing:border-box;min-inline-size:0;max-inline-size:100%;overflow:auto!important;overscroll-behavior-inline:contain}
:is(.rj-mg-table,.rj-cabin-table,.rj-pnr-list,.rj-bag-table-wrap,.rj-dc-table)>table{max-inline-size:none}
.rj-mg-table :is(th,td),.rj-bag-table :is(th,td),.rj-pnr-layout :is(th,td){text-align:start;vertical-align:middle}
.rj-mg-source pre,.rj-record-native{box-sizing:border-box;min-inline-size:0;inline-size:100%;max-inline-size:100%;max-block-size:70vh;overflow:auto!important;white-space:pre!important;overflow-wrap:normal!important;word-break:normal!important;direction:ltr!important;text-align:left!important;unicode-bidi:isolate;overscroll-behavior:contain}

/* Detached dialogs retain bounded geometry and never inherit page-header padding. */
dialog:is(.rj-reservation,.rj-city-dialog,.rj-pax-dialog,.rj-flight-picker,.rj-pnr-dialog,.rj-bag-dialog,.rj-api-manifest-dialog,.rj-date-change-modal,.rj-penalty-share-dialog,.rj-upgrade){box-sizing:border-box;min-inline-size:0;max-inline-size:calc(100vw - 32px);max-block-size:calc(100dvh - 32px);overflow-y:auto}
:is(.rj-reservation,.rj-city-dialog,.rj-pax-dialog,.rj-flight-picker,.rj-pnr-dialog,.rj-bag-dialog,.rj-date-change-modal,.rj-upgrade)>:is(header,.rj-city-header,.rj-dc-header){min-inline-size:0;gap:12px!important;padding-inline:20px!important;align-items:center!important}
:is(.rj-reservation,.rj-city-dialog,.rj-pax-dialog,.rj-flight-picker,.rj-pnr-dialog,.rj-bag-dialog,.rj-date-change-modal,.rj-upgrade)>:is(header,.rj-city-header,.rj-dc-header)>:is(h2,h3){min-inline-size:0;max-inline-size:100%;overflow-wrap:anywhere}
.rj-reservation .rj-r-body,.rj-bag-body,.rj-date-change-modal #rj-date-change{min-inline-size:0;padding:20px}
.rj-reservation .rj-r-grid{gap:16px;align-items:start}
.rj-reservation .rj-r-grid>label{min-inline-size:0}
.rj-reservation .rj-r-footer,.rj-r-result-actions,.rj-api-manifest-buttons{gap:12px;flex-wrap:wrap;align-items:stretch}
.rj-reservation .rj-r-footer>button,.rj-r-result-actions>button,.rj-api-manifest-buttons>button{min-block-size:44px;height:auto;max-inline-size:100%;margin-block:0;white-space:normal}
.rj-dc-controls{gap:16px!important;align-items:end!important}
.rj-dc-controls>label{height:auto;min-inline-size:0!important}
.rj-dc-controls>button{min-block-size:48px;height:auto;white-space:normal}
.rj-dc-people,.rj-bag-grid{gap:16px}
/* JavaScript emits Persian weekdays Saturday-first. Mirror only that day grid. */
html[data-rj-language=fa] .rj-calendar[data-calendar=persian] .rj-cal-grid{direction:rtl!important}
.rj-calendar[data-calendar=gregory] .rj-cal-grid{direction:ltr!important}
.rj-calendar .rj-cal-jumps select{min-block-size:38px;min-height:38px;height:38px}

@media(max-width:1100px){
 .rj-search #rj-search-form .rj-fields,.rj-search #rj-search-form .rj-fields:has(.has-return){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .rj-search #rj-search-form .rj-fields>.rj-departure-field{grid-column:1/-1!important}
 .rj-member-filter{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rj-member-filter>button,.rj-member-filter>.button{inline-size:100%}
}
@media(max-width:900px){
 .rj-my-bookings .rj-record-header .rj-ticket-find{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .rj-my-bookings .rj-record-header .rj-ticket-find>label{grid-column:1/-1;grid-row:1}
 .rj-my-bookings .rj-record-header .rj-ticket-find>button[type=submit]{grid-column:1;grid-row:2}
 .rj-my-bookings .rj-record-header .rj-ticket-find>.rj-bag-record-open{grid-column:2;grid-row:2}
 .rj-my-bookings .rj-record-header .rj-ticket-find>.rj-date-change-record-open{grid-column:3;grid-row:2}
 .rj-my-bookings .rj-my-range{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .rj-my-bookings .rj-my-range>button{grid-column:1/-1!important}
 .rj-mg-form:has(input[name=mg_action][value=passengers]){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .rj-mg-form:has(input[name=mg_action][value=passengers])>label:has(.rj-date-row){grid-column:1/-1!important}
 .rj-search .rj-heading{flex-wrap:wrap}
 .rj-search .rj-heading>.rj-fare-summary{flex:1 1 100%;display:flex;align-items:flex-start;min-inline-size:0;border-inline:0;border-block-start:1px solid #e2ecf1;padding:16px 0 0;gap:8px}
 .rj-search .rj-flight-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 :root{--rj-layout-gutter:14px}
 body:not(.wp-admin)>main{margin-block:18px 28px}
 body:not(.wp-admin)>header{column-gap:12px;padding-block:12px}
 .rj-global-nav{padding:16px;margin-block-end:18px}
 .rj-global-nav .links{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;inline-size:100%}
 .rj-workspace-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .rj-mg-panel{--rj-layout-panel:16px;margin-block:16px}
 .rj-mg-form{gap:14px;padding:14px;grid-template-columns:minmax(0,1fr)}
 .rj-mg-form>label,.rj-mg-form>button{grid-column:1/-1!important;inline-size:100%!important}
 .rj-mg-form:has(input[name=mg_action][value=passengers]){grid-template-columns:minmax(0,1fr)!important}
 .rj-my-bookings{padding:16px}
 .rj-my-bookings .rj-record-header .rj-ticket-find{grid-template-columns:minmax(0,1fr)!important}
 .rj-my-bookings .rj-record-header .rj-ticket-find>label{grid-column:1;grid-row:1}
 .rj-my-bookings .rj-record-header .rj-ticket-find>button[type=submit]{grid-column:1;grid-row:2}
 .rj-my-bookings .rj-record-header .rj-ticket-find>.rj-bag-record-open{grid-column:1;grid-row:3}
 .rj-my-bookings .rj-record-header .rj-ticket-find>.rj-date-change-record-open{grid-column:1;grid-row:4}
 .rj-my-bookings .rj-my-range,.rj-my-bookings .rj-record-tools .rj-record-lookup-form{grid-template-columns:minmax(0,1fr)!important;max-inline-size:100%}
 .rj-my-bookings .rj-my-range>button{grid-column:1!important}
 .rj-my-bookings .rj-resend-panel .rj-ticket-options{grid-template-columns:minmax(0,1fr)!important}
 .rj-my-bookings .rj-resend-panel .rj-ticket-exports{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .rj-member-filter{grid-template-columns:minmax(0,1fr)!important;padding:16px}
 .rj-member-admin .rj-member-profile .rj-member-check{flex-direction:row;align-items:flex-start}
 .rj-member-actions>form,.rj-member-sign-actions{inline-size:100%}
 .rj-member-actions :is(button,.button),.rj-member-sign-actions :is(button,.button){flex:1 1 145px}
 .rj-vault .card{padding:18px!important}.rj-vault section{padding:14px!important}
 .rj-vault section>form{display:flex!important;inline-size:100%}
 .rj-vault section>form>.button{flex:1 1 140px}
 .auth{padding:24px 20px!important}.auth form>input:not([type=hidden]){width:100%!important;margin-inline:0!important}
 .auth form>button{width:100%!important;margin-inline:0!important}
 .wait-top{padding:20px}.wait-body{padding:24px 18px}.wait-steps{grid-template-columns:minmax(0,1fr);gap:10px}
 .rj-search .rj-form,.rj-search .rj-flight{padding:16px;margin-block:16px}
 .rj-search #rj-search-form .rj-fields,.rj-search #rj-search-form .rj-fields:has(.has-return){gap:12px!important}
 .rj-search #rj-search-form .rj-fields>:is(.rj-origin-field,.rj-destination-field,.rj-departure-field,.rj-passenger-field){min-block-size:112px}
 .rj-search #rj-search-form .rj-date-panel{max-inline-size:100%}
 .rj-search #rj-search-form .rj-search-action .rj-submit{min-height:112px!important}
 .rj-search .rj-fare-summary{max-inline-size:100%}
 .rj-search .rj-summary-extra{min-inline-size:0}
 .rj-search .rj-flight-facts{gap:10px}
 .rj-manifest-actions.rj-flight-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 dialog:is(.rj-reservation,.rj-city-dialog,.rj-pax-dialog,.rj-flight-picker,.rj-pnr-dialog,.rj-bag-dialog,.rj-api-manifest-dialog,.rj-date-change-modal,.rj-penalty-share-dialog,.rj-upgrade){max-inline-size:calc(100vw - 20px);max-block-size:calc(100dvh - 20px)}
 :is(.rj-reservation,.rj-city-dialog,.rj-pax-dialog,.rj-flight-picker,.rj-pnr-dialog,.rj-bag-dialog,.rj-date-change-modal,.rj-upgrade)>:is(header,.rj-city-header,.rj-dc-header){padding-inline:16px!important}
 .rj-reservation .rj-r-body,.rj-bag-body,.rj-date-change-modal #rj-date-change{padding:16px}
 .rj-reservation .rj-r-footer>button,.rj-r-result-actions>button{flex:1 1 140px}
 .rj-dc-controls>label,.rj-dc-controls>button{flex-basis:100%;inline-size:100%}
 .rj-dc-cards>div{padding:16px}
}
@media(max-width:380px){
 :root{--rj-layout-gutter:10px}
 .rj-my-bookings,.rj-mg-panel{--rj-layout-panel:12px;padding:12px}
 .rj-search .rj-form,.rj-search .rj-flight{padding:12px}
 .rj-manifest-actions.rj-flight-actions{grid-template-columns:minmax(0,1fr)!important}
 .rj-my-bookings .rj-resend-panel .rj-ticket-exports{grid-template-columns:minmax(0,1fr)!important}
 .rj-days-shell{grid-template-columns:36px minmax(0,1fr) 36px;gap:6px}
 .rj-days-shell>button{width:36px!important;min-inline-size:36px!important}
 .rj-reservation .rj-r-body,.rj-bag-body,.rj-date-change-modal #rj-date-change{padding:12px}
 .rj-mobile-fields{grid-template-columns:minmax(0,1fr)}
}

/* One logical row: alternate language first; logout remains the final control. */
body>.rj-site-header{gap:12px 20px;align-items:center;flex-wrap:wrap}
.rj-site-header>.rj-site-subtitle{flex:0 1 360px;min-inline-size:0;max-inline-size:100%;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.rj-header-controls{display:flex;flex:1 1 auto;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-inline-size:0;direction:inherit}
.rj-header-nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-inline-size:0;margin:0;direction:inherit;flex-direction:row}
.rj-header-language{display:flex;flex:0 0 auto;align-items:center;min-inline-size:0}
.rj-header-language>.rj-language-switch,.rj-header-controls>.rj-language-switch{flex:0 0 auto;inline-size:auto!important;width:auto!important;margin:0!important;gap:0;justify-content:flex-start}
.rj-header-nav>.button,.rj-site-header .rj-language-switch>button{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;gap:6px;box-sizing:border-box;min-inline-size:0;max-inline-size:100%;min-block-size:40px!important;height:40px!important;margin:0 0 2px!important;padding:10px 12px!important;border:1px solid #14667b!important;border-radius:10px!important;background:linear-gradient(180deg,#238ca0,#176b80)!important;color:#fff!important;font-size:14px!important;line-height:18px!important;box-shadow:inset 0 1px 0 #ffffff44,0 2px 0 #0b4d61,0 4px 8px #123a4c18!important;text-decoration:none;white-space:nowrap;text-align:center;transform:translateY(0);transition:transform .14s,box-shadow .14s,filter .14s}
.rj-header-nav>.rj-logout{background:linear-gradient(180deg,#c94248,#aa252f)!important;border-color:#94202a!important;box-shadow:inset 0 1px 0 #ffffff44,0 2px 0 #7f1924,0 4px 8px #7f192426!important}
.rj-header-nav>.button.rj-logout:focus-visible{outline-color:#ff9299!important}
.rj-header-nav>.button.rj-logout:active{box-shadow:inset 0 1px 0 #ffffff33,0 0 0 #7f1924,0 1px 3px #7f192426!important}
.rj-header-nav>.button:hover,.rj-site-header .rj-language-switch>button:hover{filter:brightness(1.08);transform:translateY(-1px)}
.rj-header-nav>.button:active,.rj-site-header .rj-language-switch>button:active{transform:translateY(2px);box-shadow:inset 0 1px 0 #ffffff33,0 0 0 #0b4d61,0 1px 3px #123a4c18!important}
.rj-header-nav>.button:focus-visible,.rj-site-header .rj-language-switch>button:focus-visible{outline:3px solid #ffb97e!important;outline-offset:4px}
.rj-language-switch>button[hidden],.rj-site-header .rj-language-switch>button[aria-pressed=true]{display:none!important}
.rj-member-greeting{display:block;margin-block:0 20px;padding:16px 20px}
.rj-member-greeting .rj-global-greeting{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin:0!important}
.rj-member-greeting .rj-active-sign{display:inline-block;box-sizing:border-box;min-inline-size:0;max-inline-size:100%;margin-inline-start:8px;padding:6px 12px;border:1px solid #c9e5e9;border-radius:10px;background:#edf8f8;color:#155e6e;white-space:normal!important;overflow-wrap:anywhere!important;unicode-bidi:plaintext}
.rj-active-sign-select{margin-inline-start:6px;text-decoration:underline;text-underline-offset:3px}
.rj-account-context-notice:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-block:12px 0;padding:12px 14px;border:1px solid #e8c88c;border-radius:10px;background:#fff6e6;color:#765116}
.rj-account-context-notice a{display:inline-flex;align-items:center;justify-content:center;min-block-size:40px;padding:6px 12px;border:1px solid #d7b374;border-radius:8px;background:#fff;color:#684410;text-decoration:underline}
@media(max-width:1100px){.rj-header-controls{flex-basis:100%;justify-content:flex-start}.rj-header-nav{flex:1 1 auto;justify-content:flex-start}}
@media(max-width:650px){
 .rj-header-controls,.rj-header-nav{display:flex;align-items:center;gap:8px;inline-size:100%;flex-wrap:wrap}
 .rj-header-nav>.button{inline-size:auto!important}
 .rj-member-greeting{padding:14px 16px}.rj-member-greeting .rj-active-sign{flex-basis:100%;margin-inline:0;margin-block-start:4px}
}
@media(prefers-reduced-motion:reduce){.rj-header-nav>.button,.rj-site-header .rj-language-switch>button{transition:none;transform:none!important}}
/* Account onboarding: credentials are rendered only for the own-account branch. */
.rj-account-onboarding{min-width:0;margin-block:0 24px;padding:24px;border:1px solid #dce7ed;border-radius:20px;background:#fff}
.rj-account-mode-form fieldset,.rj-delegation-capabilities{min-width:0;margin:0;padding:16px;border:1px solid #dce7ed;border-radius:12px}
.rj-account-mode-form fieldset>label,.rj-delegation-capabilities>label{display:flex!important;align-items:center;gap:10px;margin-block:12px!important;min-height:32px!important;height:auto!important}
.rj-account-mode-form input[type=radio],.rj-delegation-capabilities input[type=checkbox]{flex:0 0 20px!important;width:20px!important;height:20px!important;min-height:20px!important;padding:0!important;margin:0!important}
.rj-shared-status{padding:20px;margin-block-start:20px;background:#eef7fa;border-radius:14px}
[data-rj-shared-light]{display:inline-flex;align-items:center;gap:8px;color:#8c5c14;font-weight:700}
[data-rj-shared-light][data-state=active]{color:#15784b}
[data-rj-shared-light][data-state=inactive]{color:#a33440}
.rj-delegation-capabilities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.rj-delegation-capabilities>p,.rj-delegation-capabilities>legend{grid-column:1/-1}
@media(max-width:520px){.rj-account-onboarding{padding:18px}.rj-delegation-capabilities{grid-template-columns:minmax(0,1fr)}}

/* Compact record toolbar: one shared grid, including the record-type form. */
body .rj-my-bookings .rj-record-header{gap:8px;align-items:stretch}
body .rj-my-bookings .rj-record-header :is(input,select,button){box-sizing:border-box;min-block-size:44px!important;height:44px!important;padding-block:8px!important;padding-inline:10px!important;border-radius:10px!important;line-height:1.35!important}
body .rj-my-bookings .rj-record-tools .rj-record-lookup-form{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
@media(min-width:1180px){
 body .rj-my-bookings .rj-record-header .rj-ticket-find :is(input,button),
 body .rj-my-bookings .rj-record-header .rj-record-lookup-form :is(select,button){min-height:44px!important;max-height:44px!important;height:44px!important;block-size:44px!important;min-block-size:44px!important;max-block-size:44px!important}
 body .rj-my-bookings .rj-record-header{display:flex!important;flex-wrap:nowrap!important;gap:6px!important}
 body .rj-my-bookings .rj-record-header .rj-ticket-find,
 body .rj-my-bookings .rj-record-header .rj-record-tools,
 body .rj-my-bookings .rj-record-header .rj-record-tools .rj-record-lookup-form{display:contents!important}
 body .rj-my-bookings .rj-record-header .rj-ticket-find>:is(label,button),
 body .rj-my-bookings .rj-record-header .rj-record-lookup-form>:is(label,button){grid-area:auto!important;width:auto!important;inline-size:auto!important;min-inline-size:0!important;max-inline-size:none!important;margin:0!important;align-self:stretch!important}
 body .rj-my-bookings .rj-record-header .rj-ticket-find>label{display:block!important;flex:1 1 130px!important;min-inline-size:90px!important;max-inline-size:160px!important}
 body .rj-my-bookings .rj-record-header button{flex:0 0 auto!important}
 body .rj-my-bookings .rj-record-header :is(button,select){font-size:13px!important;white-space:nowrap!important;overflow-wrap:normal!important}
 body .rj-my-bookings .rj-record-header .rj-record-tools .rj-record-lookup-form>label{display:block!important;flex:1 1 170px!important;min-width:155px!important;min-inline-size:155px!important;font-size:0!important;line-height:0!important}
 body .rj-my-bookings .rj-record-header .rj-record-lookup-form select{margin:0!important;width:100%!important;max-width:100%!important}
 body .rj-my-bookings .rj-record-header input{font-size:15px!important;width:100%!important;min-width:0!important}
}
@media(min-width:1180px) and (max-width:1279px){body .rj-my-bookings .rj-record-header :is(button,select){font-size:12px!important}}
@media(max-width:1179px){body .rj-my-bookings .rj-record-header button{height:auto!important;max-height:none!important;min-height:44px!important}}
@media(max-width:760px){
 body .rj-my-bookings .rj-record-header :is(input,select){width:100%!important;inline-size:100%!important;max-width:100%!important;max-inline-size:100%!important}
 body .rj-my-bookings .rj-record-header .rj-ticket-find,
 body .rj-my-bookings .rj-record-header .rj-record-tools .rj-record-lookup-form{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important}
 body .rj-my-bookings .rj-record-header .rj-ticket-find>:is(label,button),
 body .rj-my-bookings .rj-record-header .rj-record-tools .rj-record-lookup-form>:is(label,button){grid-area:auto!important;flex:0 0 auto!important;width:100%!important;inline-size:100%!important;min-width:0!important;max-width:100%!important;max-inline-size:100%!important;box-sizing:border-box!important;margin:0!important}
 body .rj-my-bookings .rj-record-header .rj-ticket-find>button,
 body .rj-my-bookings .rj-record-header .rj-record-tools .rj-record-lookup-form>button{white-space:normal!important;overflow-wrap:anywhere!important;height:auto!important;min-height:44px!important;max-height:none!important;align-self:stretch!important}
}

/* The PNR toolbar owns the same ticket-option nodes formerly below the RT. */
body .rj-my-bookings .rj-record-header .rj-record-ticket-options[hidden]{display:none!important}
body .rj-my-bookings .rj-record-header .rj-record-ticket-options:not([hidden]){display:flex;align-items:center;gap:8px;min-inline-size:0}
body .rj-my-bookings .rj-record-header .rj-record-ticket-options>label{box-sizing:border-box;min-inline-size:0;margin:0!important}
body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-email{display:block!important;flex:1 1 185px;min-inline-size:160px;max-inline-size:220px;font-size:0!important;line-height:0!important}
body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-email input{inline-size:100%!important;width:100%!important;min-inline-size:0!important;height:44px!important;min-block-size:44px!important;font-size:13px!important;line-height:1.35!important}
body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-hide{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start;flex:0 1 120px;gap:6px!important;min-block-size:44px;font-size:12px;line-height:1.35;white-space:normal;overflow-wrap:normal}
body .rj-my-bookings .rj-record-header .rj-record-ticket-options .rj-ticket-hide input[type=checkbox]{appearance:auto!important;box-sizing:border-box;flex:0 0 18px!important;width:18px!important;inline-size:18px!important;min-width:18px!important;min-inline-size:18px!important;max-width:18px!important;max-inline-size:18px!important;height:18px!important;block-size:18px!important;min-height:18px!important;min-block-size:18px!important;max-height:18px!important;max-block-size:18px!important;margin:0!important;padding:0!important;border-radius:4px!important;accent-color:#147b91}
@media(min-width:1180px){
 body .rj-my-bookings .rj-record-header .rj-record-ticket-options:not([hidden]){display:contents!important}
 body .rj-my-bookings .rj-record-header button{flex:0 1 auto!important;min-inline-size:62px!important;padding-block:6px!important;white-space:normal!important;line-height:1.15!important}
 body .rj-my-bookings .rj-record-header .rj-ticket-find>label{flex:1 1 95px!important;min-inline-size:80px!important;max-inline-size:125px!important}
 body .rj-my-bookings .rj-record-header .rj-record-tools .rj-record-lookup-form>label{flex:1 1 140px!important;min-width:110px!important;min-inline-size:110px!important;max-inline-size:175px!important}
 body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-email{flex:1 1 180px!important;min-inline-size:160px!important;max-inline-size:220px!important;align-self:center}
 body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-hide{flex:0 1 115px!important;min-inline-size:90px;align-self:center}
}
@media(min-width:1180px) and (max-width:1499px){
 body .rj-my-bookings .rj-record-header{gap:5px!important}
 body .rj-my-bookings .rj-record-header button{flex:0 1 auto!important;min-inline-size:62px!important;padding-inline:6px!important;font-size:11.5px!important;white-space:normal!important;line-height:1.25!important}
 body .rj-my-bookings .rj-record-header select{padding-inline:6px!important;font-size:11.5px!important}
 body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-hide{font-size:11px;flex-basis:102px!important;min-inline-size:86px}
}
@media(max-width:1179px){body .rj-my-bookings .rj-record-header .rj-record-ticket-options:not([hidden]){flex-wrap:wrap;gap:8px;inline-size:100%}body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-email{max-inline-size:340px}body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-hide{flex-basis:160px}}
@media(max-width:760px){body .rj-my-bookings .rj-record-header .rj-record-ticket-options:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr);gap:8px}body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-email{min-inline-size:0;max-inline-size:100%;inline-size:100%}body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-email input{font-size:16px!important}body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-hide{font-size:13px;min-inline-size:0;inline-size:100%}}

/* All six workspaces begin at the same distance and use the same title band. */
body main>.rj-workspace-tabs{margin-block:16px 24px!important}
body main>.rj-search{margin-block:0!important;padding-block:0!important}
body main>.rj-mg-panel[data-workspace-panel]{margin-block:0 20px!important}
body main>.rj-search .rj-search-intro{margin-block-start:0!important}
body main>.rj-search .rj-search-intro>.rj-hero,
body main>.rj-mg-panel>.rj-mg-content>h2:first-child{box-sizing:border-box;display:flex;align-items:center;min-block-size:88px;padding:20px 24px!important;border-bottom:4px solid #ff875a!important;border-radius:18px 18px 0 0!important;font-size:22px!important;font-weight:700;line-height:1.4!important}
body main>.rj-search .rj-search-intro>.rj-hero>h1{margin:0!important;padding:0;font-size:22px!important;font-weight:700;line-height:1.4!important}
body main>.rj-mg-panel>.rj-mg-content>h2:first-child{margin:calc(-1 * var(--rj-layout-panel)) calc(-1 * var(--rj-layout-panel)) 18px!important}
@media(max-width:650px){body main>.rj-workspace-tabs{margin-block-end:16px!important}body main>.rj-search .rj-search-intro>.rj-hero,body main>.rj-mg-panel>.rj-mg-content>h2:first-child{min-block-size:72px;padding:16px 15px!important;font-size:20px!important}body main>.rj-search .rj-search-intro>.rj-hero>h1{font-size:20px!important}}
.rj-record-intent{box-sizing:border-box;max-inline-size:100%;margin-block:12px;padding:12px 14px;border:1px solid #c9e4ea;border-radius:10px;background:#eff9fb;color:#245b6b;line-height:1.7;overflow-wrap:anywhere}
.rj-record-intent p{margin-block:6px 0;font-size:13px}

body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-scope{position:relative;display:block!important;flex:1 1 200px;min-inline-size:150px;max-inline-size:270px;margin:0!important}
body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-scope>.rj-ticket-scope-title{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-scope>select{width:100%!important;inline-size:100%!important;min-inline-size:0!important;max-inline-size:100%!important;margin:0!important}
@media(min-width:1180px) and (max-width:1599px){body .rj-my-bookings .rj-record-header{flex-wrap:wrap!important}body .rj-my-bookings .rj-record-header .rj-record-ticket-options:not([hidden]){display:flex!important;flex:1 0 100%;inline-size:100%;gap:10px;align-items:center}body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-email{flex:1 1 220px!important;max-inline-size:300px!important}body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-scope{flex:1 1 250px;max-inline-size:360px}}
@media(max-width:760px){body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-scope{inline-size:100%;min-inline-size:0;max-inline-size:100%}}
body .rj-ticket-controls .rj-ticket-options:has(>.rj-ticket-scope:not([hidden])){display:grid!important;grid-template-columns:minmax(130px,.65fr) minmax(180px,1fr) minmax(220px,1.3fr)!important;align-items:end!important;max-inline-size:none}
body .rj-ticket-controls .rj-ticket-options>.rj-ticket-scope:not([hidden]){grid-column:auto!important;width:auto!important;inline-size:auto!important}
@media(max-width:900px){body .rj-ticket-controls .rj-ticket-options:has(>.rj-ticket-scope:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))!important}body .rj-ticket-controls .rj-ticket-options>.rj-ticket-scope:not([hidden]){grid-column:1/-1!important}}
@media(max-width:650px){body .rj-ticket-controls .rj-ticket-options:has(>.rj-ticket-scope:not([hidden])){grid-template-columns:minmax(0,1fr)!important}}

/* Let the header use the available width; wrap only when its content needs it. */
body>.rj-site-header{justify-content:flex-start;gap:10px 16px;padding-inline:clamp(16px,2vw,36px)!important}
body>.rj-site-header>.rj-brand{flex:0 0 auto}
body>.rj-site-header>.rj-site-subtitle{flex:1 1 150px;min-inline-size:0;max-inline-size:360px;line-height:1.5;font-size:13px;overflow-wrap:anywhere}
body>.rj-site-header>.rj-header-controls{flex:0 1 auto!important;flex-basis:auto!important;inline-size:auto!important;max-inline-size:100%;min-inline-size:0;margin-inline-start:auto;justify-content:flex-end}
body>.rj-site-header>.rj-header-controls>.rj-header-nav{flex:0 1 auto;inline-size:auto!important;max-inline-size:100%;min-inline-size:0;justify-content:flex-end;gap:8px}
@media(max-width:650px){body>.rj-site-header>.rj-site-subtitle{flex-basis:100px}body>.rj-site-header>.rj-header-controls{justify-content:flex-start;margin-inline-start:0}body>.rj-site-header>.rj-header-controls>.rj-header-nav{justify-content:flex-start}}

/* Compact main search cards. Popups retain their independent dialog geometry. */
body .rj-search #rj-search-form .rj-fields,
body .rj-search #rj-search-form .rj-fields:has(.has-return){--rj-search-gap:12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(260px,1.4fr) minmax(145px,1fr) minmax(96px,.65fr)!important;gap:var(--rj-search-gap)!important;align-items:stretch}
body .rj-search #rj-search-form .rj-fields>:is(.rj-origin-field,.rj-destination-field,.rj-departure-field,.rj-passenger-field){display:flex!important;flex-direction:column;justify-content:flex-start;gap:0;box-sizing:border-box;height:72px!important;min-block-size:72px!important;max-block-size:72px;padding:6px 12px!important;border-radius:10px;min-inline-size:0;align-self:stretch}
body .rj-search #rj-search-form .rj-fields>:is(.rj-origin-field,.rj-destination-field,.rj-departure-field,.rj-passenger-field)>label{flex:0 0 18px;height:18px!important;min-block-size:18px;margin:0!important;padding:0!important;font-size:14px!important;line-height:18px!important}
body .rj-search #rj-search-form .rj-fields>:is(.rj-origin-field,.rj-destination-field,.rj-passenger-field)>:is(.rj-city-trigger,.rj-pax-trigger),
body .rj-search #rj-search-form .rj-departure-field>.rj-range-toggle{flex:1 1 auto;box-sizing:border-box;min-inline-size:0;max-inline-size:100%;min-block-size:32px!important;height:auto!important;margin:0!important;padding:0!important;font-size:16px!important;line-height:20px!important;font-weight:600;text-align:start}
body .rj-search #rj-search-form .rj-fields>:is(.rj-origin-field,.rj-destination-field,.rj-departure-field)>:is(select,input[type=date]){box-sizing:border-box;inline-size:100%;min-inline-size:0;min-block-size:32px!important;height:32px!important;padding:0!important;margin:0!important;font-size:16px!important;line-height:20px!important}
body .rj-search #rj-search-form .rj-fields>:is(.rj-origin-field,.rj-destination-field,.rj-passenger-field)>:is(.rj-city-trigger,.rj-pax-trigger){white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis}
body .rj-search #rj-search-form .rj-departure-field>.rj-range-toggle{white-space:normal!important;overflow-wrap:anywhere}
body .rj-search #rj-search-form .rj-departure-field>.rj-range-caption{display:none}
body .rj-search #rj-search-form .rj-fields>.rj-origin-field{padding-inline-end:28px!important}
body .rj-search #rj-search-form .rj-fields>.rj-destination-field{padding-inline-start:28px!important}
body .rj-search #rj-search-form .rj-fields>.rj-origin-field>.rj-swap{display:flex;align-items:center;justify-content:center;box-sizing:border-box;left:auto!important;right:auto!important;inset-inline-start:auto!important;inset-inline-end:calc(-23px - var(--rj-search-gap)/2)!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;width:44px!important;inline-size:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:0!important;border-radius:50%!important;line-height:1!important;font-size:24px!important;z-index:3}
body .rj-search #rj-search-form .rj-search-action{box-sizing:border-box;min-block-size:72px;padding:0!important;align-self:stretch}
body .rj-search #rj-search-form .rj-search-action>.rj-submit{box-sizing:border-box;inline-size:100%;height:72px!important;min-height:72px!important;max-height:72px!important;padding:8px 12px!important;border-radius:10px!important;font-size:16px!important;line-height:20px!important;margin:0!important}
body .rj-search #rj-search-form .rj-search-action>.rj-submit:after{font-size:21px}
body .rj-search #rj-search-form>.rj-search-top{margin-block-end:10px}
@media(max-width:1100px){
 body .rj-search #rj-search-form .rj-fields,body .rj-search #rj-search-form .rj-fields:has(.has-return){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .rj-search #rj-search-form .rj-fields>.rj-departure-field{grid-column:1/-1!important}
}
@media(max-width:767px){
 body .rj-search #rj-search-form .rj-fields>:is(.rj-origin-field,.rj-destination-field,.rj-departure-field,.rj-passenger-field){height:80px!important;min-block-size:80px!important;max-block-size:80px}
 body .rj-search #rj-search-form .rj-fields>:is(.rj-origin-field,.rj-destination-field,.rj-passenger-field)>:is(.rj-city-trigger,.rj-pax-trigger),body .rj-search #rj-search-form .rj-departure-field>.rj-range-toggle{min-block-size:44px!important}
 body .rj-search #rj-search-form .rj-fields>:is(.rj-origin-field,.rj-destination-field,.rj-departure-field)>:is(select,input[type=date]){height:44px!important;min-block-size:44px!important}
 body .rj-search #rj-search-form .rj-search-action{min-block-size:80px}
 body .rj-search #rj-search-form .rj-search-action>.rj-submit{height:80px!important;min-height:80px!important;max-height:80px!important}
}
/* Inline selects have a baseline gap; flex wrappers keep all ticket options level. */
body .rj-my-bookings .rj-record-header .rj-record-ticket-options>:is(.rj-ticket-email,.rj-ticket-hide,.rj-ticket-scope){box-sizing:border-box;block-size:44px!important;min-block-size:44px!important;max-block-size:44px!important;align-self:center;padding-block:0!important}
body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-scope{display:flex!important;align-items:center;line-height:normal}
body .rj-my-bookings .rj-record-header .rj-record-ticket-options>.rj-ticket-scope>select{display:block;block-size:44px!important;height:44px!important;min-block-size:44px!important;max-block-size:44px!important;vertical-align:middle}
/* Header invocation and a single compact quotation line. */
body>.rj-site-header{position:relative;padding-block-start:32px!important;padding-block-end:10px!important}
.rj-site-header>.rj-header-invocation{position:absolute;inset-block-start:3px;inset-inline-start:50%;transform:translateX(-50%);direction:rtl;white-space:nowrap;font-size:18px;line-height:25px;color:#116e80;text-align:center}
html[dir=rtl] .rj-site-header>.rj-header-invocation{transform:translateX(50%)}
body>.rj-wisdom{padding-block:10px!important;margin-block:8px 18px!important}
.rj-wisdom>.rj-wisdom-fa{display:block!important;margin:0!important;font-size:clamp(10px,.92vw,13px)!important;line-height:1.8!important}
.rj-wisdom .rj-wisdom-intro{display:inline!important;margin:0!important;font:inherit!important}
@media(min-width:1100px){body>.rj-wisdom>.rj-wisdom-fa{white-space:nowrap}}
html body .rj-passenger-bank-grid .rj-date-row{width:100%!important;min-width:0!important;margin:0!important}
html body .rj-passenger-bank-grid .rj-cal-toggle{height:44px!important;min-height:44px!important;padding:8px 10px!important;font-size:14px!important}
/* Keep the platform title and account greeting together as plain header text. */
body>.rj-site-header>.rj-header-copy{flex:1 1 200px;min-inline-size:0;text-align:center;color:#000;font-size:13px;line-height:1.6}
body>.rj-site-header>.rj-header-copy>.rj-site-subtitle{display:block;min-inline-size:0;max-inline-size:none;margin:0;color:#000!important;font:inherit!important}
body>.rj-site-header .rj-header-greeting{display:block!important;margin:2px 0 0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#000!important;font:inherit!important;text-align:inherit}
body>.rj-site-header .rj-header-greeting .rj-global-greeting{display:flex!important;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:0 4px!important;margin:0!important;padding:0!important;color:#000!important;font:inherit!important}
body>.rj-site-header .rj-header-greeting :is(.rj-greeting-name,.rj-active-sign,.rj-active-sign-select){display:inline!important;flex:0 1 auto!important;max-inline-size:100%;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#000!important;font:inherit!important;overflow-wrap:anywhere}
body>.rj-site-header .rj-header-greeting [hidden]{display:none!important}
body>.rj-site-header .rj-header-greeting .rj-active-sign-select{text-decoration:underline}
body>.rj-site-header .rj-header-greeting .rj-account-context-notice:not([hidden]){margin:6px 0 0!important;padding:6px 8px!important;font-size:12px}
/* The two flight-card tools share one compact size without changing their actions. */
body .rj-search article.rj-flight button:is(.rj-manage-flight,.rj-flight-share-open){display:inline-flex!important;align-items:center;justify-content:center;vertical-align:middle;box-sizing:border-box!important;flex:0 1 auto;inline-size:auto!important;width:auto!important;min-inline-size:0!important;min-width:0!important;max-inline-size:100%!important;max-width:100%!important;block-size:40px!important;height:40px!important;min-block-size:40px!important;min-height:40px!important;max-block-size:40px!important;max-height:40px!important;margin:4px 0!important;padding:0 12px!important;border:1px solid #176f82!important;border-radius:8px!important;font-size:13px!important;font-weight:600!important;line-height:18px!important;letter-spacing:normal;white-space:normal!important;overflow-wrap:normal;box-shadow:none!important;text-decoration:none;transform:none!important;cursor:pointer}
body .rj-search article.rj-flight button.rj-manage-flight{margin-inline-end:8px!important;background:#176f82!important;color:#fff!important}
body .rj-search article.rj-flight button.rj-flight-share-open{background:#fff!important;color:#176f82!important}
body .rj-search article.rj-flight button:is(.rj-manage-flight,.rj-flight-share-open):hover:not(:disabled){filter:brightness(.96)}
body .rj-search article.rj-flight button:is(.rj-manage-flight,.rj-flight-share-open):focus-visible{outline:3px solid #ffb97e!important;outline-offset:3px}
body .rj-search article.rj-flight button:is(.rj-manage-flight,.rj-flight-share-open):disabled{opacity:.55;cursor:default}
@media(max-width:650px),(pointer:coarse){body .rj-search article.rj-flight button:is(.rj-manage-flight,.rj-flight-share-open){block-size:44px!important;height:44px!important;min-block-size:44px!important;min-height:44px!important;max-block-size:44px!important;max-height:44px!important}}
/* Inventory selects a complete flight; its route travels as hidden bound values. */
body .rj-mg-panel[data-workspace-panel=inventory] .rj-mg-form.rj-inventory-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;max-inline-size:640px;align-items:end}
body .rj-mg-panel[data-workspace-panel=inventory] .rj-inventory-form>label{grid-column:auto!important;min-inline-size:0;margin:0!important}
body .rj-mg-panel[data-workspace-panel=inventory] .rj-inventory-form :is(.rj-choose-flight,.rj-cal-toggle){box-sizing:border-box;inline-size:100%!important;min-inline-size:0!important;height:44px!important;min-block-size:44px!important;margin:0!important;padding:8px 12px!important;font-size:14px!important;line-height:1.3!important}
body .rj-mg-panel[data-workspace-panel=inventory] .rj-inventory-form>button[type=submit]{grid-column:1/-1!important;justify-self:start;inline-size:auto!important;width:auto!important;min-block-size:44px!important;margin:0!important;padding:8px 14px!important}
@media(max-width:540px){body .rj-mg-panel[data-workspace-panel=inventory] .rj-mg-form.rj-inventory-form{grid-template-columns:minmax(0,1fr)!important}}
body dialog.rj-flight-picker .rj-flight-option{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px 10px!important;min-block-size:44px;height:auto!important;text-align:start}
body dialog.rj-flight-picker .rj-flight-option>strong{flex:0 1 auto;min-inline-size:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
body dialog.rj-flight-picker .rj-flight-option-detail,body dialog.rj-flight-picker .rj-flight-option-dates{display:inline-flex;flex:0 1 auto;flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-inline-size:0;max-inline-size:100%;font-size:12px;line-height:1.6}
body dialog.rj-flight-picker .rj-flight-option-dates>bdi,body dialog.rj-flight-picker .rj-flight-option-time{white-space:nowrap;unicode-bidi:isolate}
body dialog.rj-flight-picker .rj-flight-option[hidden]{display:none!important}
/* A consistent, quiet close control for every portal dialog, in either language. */
html body dialog[class] button:is([aria-label^="Close" i],[aria-label^="بستن"],.rj-city-close,#rj-pax-close,.rj-reservation>header>button){display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;flex:0 0 40px!important;inline-size:40px!important;width:40px!important;min-inline-size:40px!important;min-width:40px!important;max-inline-size:40px!important;max-width:40px!important;block-size:40px!important;height:40px!important;min-block-size:40px!important;min-height:40px!important;max-block-size:40px!important;max-height:40px!important;margin:0!important;padding:0!important;border:1px solid #c9dde4!important;border-radius:50%!important;background:#fff!important;color:#245969!important;font-family:Arial,Tahoma,sans-serif!important;font-size:25px!important;font-weight:400!important;line-height:1!important;letter-spacing:0!important;text-indent:0!important;text-shadow:none!important;box-shadow:0 1px 3px #173b6510!important;transform:none!important;vertical-align:middle;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}
html body dialog[class] button:is([aria-label^="Close" i],[aria-label^="بستن"],.rj-city-close,#rj-pax-close,.rj-reservation>header>button):hover:not(:disabled){background:#eaf4f6!important;border-color:#80aebb!important;color:#104e61!important}
html body dialog[class] button:is([aria-label^="Close" i],[aria-label^="بستن"],.rj-city-close,#rj-pax-close,.rj-reservation>header>button):focus-visible{outline:3px solid #ffb97e!important;outline-offset:3px!important}
html body dialog[class] button:is([aria-label^="Close" i],[aria-label^="بستن"],.rj-city-close,#rj-pax-close,.rj-reservation>header>button):disabled{opacity:.5!important;cursor:default}
@media(max-width:767px),(pointer:coarse){html body dialog[class] button:is([aria-label^="Close" i],[aria-label^="بستن"],.rj-city-close,#rj-pax-close,.rj-reservation>header>button){flex-basis:44px!important;inline-size:44px!important;width:44px!important;min-inline-size:44px!important;min-width:44px!important;max-inline-size:44px!important;max-width:44px!important;block-size:44px!important;height:44px!important;min-block-size:44px!important;min-height:44px!important;max-block-size:44px!important;max-height:44px!important}}

/* Existing flight controls share one logical action row; narrow screens scroll it. */
html body .rj-search article.rj-flight .rj-manifest-actions.rj-flight-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:8px!important;align-items:stretch!important;max-inline-size:100%;min-inline-size:0;overflow-x:auto!important;overscroll-behavior-inline:contain;padding:6px 2px!important;scrollbar-width:thin}
html body .rj-search article.rj-flight .rj-flight-actions>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;flex:1 0 auto!important;inline-size:auto!important;width:auto!important;min-inline-size:max-content!important;max-inline-size:none!important;block-size:44px!important;height:44px!important;min-block-size:44px!important;max-block-size:44px!important;margin:0!important;padding:0 12px!important;border:1px solid #176f82!important;border-radius:8px!important;background:#176f82!important;color:#fff!important;font-size:13px!important;font-weight:600!important;line-height:18px!important;white-space:nowrap!important;text-align:center;box-shadow:none!important}
html body .rj-search article.rj-flight .rj-fare-summary:has(>.rj-fare-proxy){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important}
html body .rj-search article.rj-flight .rj-fare-summary>button:is([data-count-retry],.rj-fare-proxy){display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;inline-size:100%!important;width:100%!important;max-inline-size:100%!important;min-inline-size:0!important;min-block-size:44px!important;height:auto!important;margin:10px 0 0!important;padding:9px 12px!important;border:1px solid #176f82;border-radius:9px;background:#176f82;color:#fff;font-size:13px!important;font-weight:600;line-height:1.5!important;white-space:normal!important;text-align:center;overflow-wrap:anywhere}
html body .rj-search article.rj-flight .rj-fare-summary>button.rj-fare-proxy{background:#ff9a5c!important;border-color:#ff9a5c!important;color:#17324b!important}
html body .rj-search article.rj-flight details.rj-fare-options>summary[data-rj-fare-proxy-source][hidden]{display:none!important}
/* Flight identity and timing stay in two independent, naturally wrapping lines. */
html body .rj-search article.rj-flight .rj-flight-header{min-inline-size:0;max-inline-size:100%;margin:0 0 10px}
html body .rj-search article.rj-flight :is(.rj-flight-heading-line,.rj-flight-timing){display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-inline-size:0;max-inline-size:100%;margin:0!important;line-height:1.8}
html body .rj-search article.rj-flight .rj-flight-heading-line>:is(.rj-flight-route,.rj-flight-leg,.rj-flight-airline,.rj-flight-aircraft){display:inline;min-inline-size:0;max-inline-size:100%;margin:0!important;font-size:14px!important;line-height:inherit;overflow-wrap:anywhere}
html body .rj-search article.rj-flight .rj-flight-heading-line>.rj-flight-route{font-weight:700}
html body .rj-search article.rj-flight .rj-flight-timing{margin-block-start:3px!important;font-size:13px}
html body .rj-search article.rj-flight .rj-flight-timing>.rj-flight-date{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:0 4px;min-inline-size:0;max-inline-size:100%;margin:0!important;font-size:inherit}
html body .rj-search article.rj-flight .rj-flight-timing .rj-flight-clock,html body .rj-search article.rj-flight .rj-flight-date bdi{white-space:nowrap;unicode-bidi:isolate}
/* Nearby-day arrows already use the displayed direction; do not mirror the glyph. */
html body .rj-days-shell>button:is([data-days-back],[data-days-forward]){transform:none!important}
/* Keep the date card focus border without a duplicate inner blue frame. */
body .rj-search #rj-search-form .rj-departure-field>.rj-range-toggle:focus,body .rj-search #rj-search-form .rj-departure-field>.rj-range-toggle:focus-visible{outline:none!important;box-shadow:none!important}
/* Keep the fare column focused on the price, availability and its actions. */
html body .rj-search article.rj-flight .rj-fare-summary>.rj-cheapest{display:none!important}
html body .rj-search article.rj-flight .rj-fare-summary>.rj-lowest-meta{text-align:center!important}
html body .rj-search article.rj-flight .rj-fare-summary>.rj-fare-price-line+small{display:block;inline-size:100%;margin-block-start:2px;text-align:center!important}
html body .rj-search article.rj-flight .rj-fare-summary>.rj-more-count{align-self:center!important;inline-size:max-content!important;max-inline-size:100%;margin-inline:auto!important;text-align:center!important}
/* One compact gap separates the quotation, workspace navigation and active panel. */
body:not(.wp-admin)>.rj-wisdom{margin-block:8px 0!important;padding-block:8px!important}
body:not(.wp-admin)>.rj-wisdom+main{margin-block-start:8px!important;padding-block-start:0!important}
body:not(.wp-admin)>main>.rj-workspace-tabs{margin-block:0 8px!important}
body:not(.wp-admin)>main>.rj-mg-panel[data-workspace-panel]{margin-block:0 8px!important}
body:not(.wp-admin)>main>.rj-search .rj-search-intro{margin-block:0 8px!important}
body>.rj-site-header .rj-header-greeting:not(:has(>.rj-global-greeting)){margin:0!important}
/* A complete thirteen-digit ticket remains visible before toolbar controls wrap. */
html body .rj-my-bookings .rj-record-header:has(#rj-record-reference){flex-wrap:wrap!important}
html body .rj-my-bookings .rj-record-header .rj-ticket-find>label:has(>#rj-record-reference){flex:0 0 max(180px,calc(13ch + 28px))!important;min-width:max(180px,calc(13ch + 28px))!important;min-inline-size:max(180px,calc(13ch + 28px))!important;max-inline-size:none!important;inline-size:auto!important;width:auto!important;font-size:16px!important;font-weight:400!important;font-variant-numeric:tabular-nums}
html body .rj-my-bookings #rj-record-reference{box-sizing:border-box!important;inline-size:100%!important;width:100%!important;min-width:max(180px,calc(13ch + 28px))!important;min-inline-size:max(180px,calc(13ch + 28px))!important;max-inline-size:100%!important;padding-inline:10px!important;font-family:inherit!important;font-size:16px!important;font-weight:400!important;font-variant-numeric:tabular-nums;letter-spacing:0!important;direction:ltr!important;text-align:left!important;white-space:nowrap!important}
@media(max-width:760px){html body .rj-my-bookings .rj-record-header .rj-ticket-find>label:has(>#rj-record-reference){flex:0 0 auto!important;inline-size:100%!important;width:100%!important;max-inline-size:100%!important}}
/* Every month is one viewport-fitted grid, with no internal calendar scrolling. */
html body .rj-calendar.rj-calendar-overlay{display:grid!important;grid-template-rows:var(--rj-cal-mode) var(--rj-cal-head) var(--rj-cal-jump) minmax(0,1fr) var(--rj-cal-footer)!important;gap:var(--rj-cal-gap)!important;padding:var(--rj-cal-padding)!important;border-width:1px!important;overflow:visible!important;overscroll-behavior:none;line-height:1.1!important}
html body .rj-calendar.rj-calendar-overlay[hidden]{display:none!important}
html body .rj-calendar.rj-calendar-overlay>:is(.rj-cal-modes,.rj-cal-head,.rj-cal-jumps,.rj-cal-day-navigation){box-sizing:border-box!important;min-height:0!important;max-height:none!important;height:auto!important;margin:0!important;padding:0!important;gap:6px!important}
html body .rj-calendar.rj-calendar-overlay .rj-cal-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-template-rows:var(--rj-cal-weekday) repeat(var(--rj-cal-rows),var(--rj-cal-cell))!important;gap:var(--rj-cal-gridGap)!important;min-height:0!important;margin:0!important;padding:0!important}
html body .rj-calendar.rj-calendar-overlay .rj-cal-grid>:is(button,span){box-sizing:border-box!important;min-width:0!important;min-height:0!important;max-height:none!important;height:100%!important;line-height:1.1!important;margin:0!important;padding:0!important;font-size:var(--rj-cal-font)!important;display:flex;align-items:center;justify-content:center}
html body .rj-calendar.rj-calendar-overlay .rj-cal-grid>span{font-size:min(10px,var(--rj-cal-font))!important}
html body .rj-calendar.rj-calendar-overlay :is(.rj-cal-modes,.rj-cal-head,.rj-cal-day-navigation)>button{box-sizing:border-box!important;min-width:0!important;min-height:0!important;max-height:none!important;height:100%!important;margin:0!important;padding:0 3px!important;font-size:var(--rj-cal-controlFont)!important;line-height:1.1!important;white-space:nowrap!important}
html body .rj-calendar.rj-calendar-overlay .rj-cal-head>strong{font-size:var(--rj-cal-controlFont)!important;line-height:1.1!important}
html body .rj-calendar.rj-calendar-overlay .rj-cal-jumps>select{box-sizing:border-box!important;min-width:0!important;min-height:0!important;max-height:none!important;height:100%!important;margin:0!important;padding:0 3px!important;font-size:var(--rj-cal-selectFont)!important;line-height:1.1!important}
/* Inventory date, chosen flight and refresh share one aligned desktop row. */
html body .rj-mg-panel[data-workspace-panel=inventory] .rj-mg-form.rj-inventory-form{grid-template-columns:minmax(220px,1fr) minmax(140px,220px) max-content!important;inline-size:100%;max-inline-size:100%;align-items:end!important;gap:12px!important}
html body .rj-mg-panel[data-workspace-panel=inventory] .rj-inventory-form>label{grid-column:auto!important;min-inline-size:0!important;align-self:end!important;margin:0!important;gap:6px}
html body .rj-mg-panel[data-workspace-panel=inventory] .rj-inventory-form :is(.rj-choose-flight,.rj-cal-toggle),html body .rj-mg-panel[data-workspace-panel=inventory] .rj-inventory-form>button[type=submit]{box-sizing:border-box!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;line-height:1.2!important}
html body .rj-mg-panel[data-workspace-panel=inventory] .rj-inventory-form .rj-cal-toggle{padding:4px 8px!important;font-size:13px!important;white-space:normal!important;overflow-wrap:anywhere}
html body .rj-mg-panel[data-workspace-panel=inventory] .rj-inventory-form>button[type=submit]{grid-column:auto!important;align-self:end!important;justify-self:stretch!important;inline-size:auto!important;width:auto!important;padding:8px 14px!important;white-space:nowrap}
@media(max-width:760px){html body .rj-mg-panel[data-workspace-panel=inventory] .rj-mg-form.rj-inventory-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}html body .rj-mg-panel[data-workspace-panel=inventory] .rj-inventory-form>label:first-of-type{grid-column:1/-1!important}html body .rj-mg-panel[data-workspace-panel=inventory] .rj-inventory-form>button[type=submit]{white-space:normal!important}}
@media(max-width:540px){html body .rj-mg-panel[data-workspace-panel=inventory] .rj-mg-form.rj-inventory-form{grid-template-columns:minmax(0,1fr)!important}html body .rj-mg-panel[data-workspace-panel=inventory] .rj-inventory-form>:is(label,button[type=submit]){grid-column:1!important;inline-size:100%!important;width:100%!important}}
/* Weeks always run Saturday through Friday, following the page reading direction. */
html body .rj-calendar.rj-calendar-overlay .rj-cal-grid{direction:var(--rj-cal-direction,ltr)!important}
html body .rj-calendar.rj-calendar-overlay .rj-cal-grid>button{border:1px solid transparent!important}
html body .rj-calendar.rj-calendar-overlay .rj-cal-grid>button[data-friday="1"]{border-color:#f28c28!important}
html body .rj-calendar.rj-calendar-overlay .rj-cal-grid>button[data-friday="1"]:disabled{opacity:1!important;color:#9ca7b0!important}
/* Keep profile editing separate from account credentials and delegation forms. */
html body .rj-member-admin .rj-member-card>details:has(>form.rj-member-profile [name=member_name]){min-inline-size:0;margin-block:12px;padding:14px 16px;border:1px solid #d5e5eb;border-radius:12px;background:#f8fbfc}
html body .rj-member-admin .rj-member-card>details:has(>form.rj-member-profile [name=member_name])>summary{min-block-size:28px;padding:0;font-size:14px;line-height:1.7}
html body .rj-member-admin .rj-member-profile:has([name=member_name]){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px 12px!important;align-items:end!important;min-inline-size:0;margin:12px 0 0!important}
html body .rj-member-admin .rj-member-profile:has([name=member_name])>label,html body .rj-member-admin .rj-member-profile:has([name=member_name])>.rj-mobile-fields>label{display:flex;flex-direction:column;gap:6px!important;min-inline-size:0;max-inline-size:100%;margin:0!important;font-size:13px;line-height:1.6}
html body .rj-member-admin .rj-member-profile:has([name=member_name]) :is(input:not([type=hidden]),select){box-sizing:border-box!important;inline-size:100%!important;width:100%!important;max-inline-size:100%!important;min-inline-size:0!important;block-size:44px!important;height:44px!important;min-block-size:44px!important;max-block-size:44px!important;margin:0!important;padding:8px 10px!important;line-height:1.35!important}
html body .rj-member-admin .rj-member-profile:has([name=member_name])>.rj-mobile-fields{grid-column:2/-1!important;display:grid!important;grid-template-columns:minmax(88px,.8fr) minmax(0,1.2fr)!important;gap:8px!important;align-items:end!important;min-inline-size:0;margin:0!important}
html body .rj-member-admin .rj-member-profile:has([name=member_name])>.rj-mobile-help{grid-column:1/-1!important;margin:0!important;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
html body .rj-member-admin .rj-member-profile:has([name=member_name])>label:has([name=member_position]){grid-column:2/-1!important}
html body .rj-member-admin .rj-member-profile:has([name=member_name])>label:has([name=member_note]){grid-column:1/-1!important}
html body .rj-member-admin .rj-member-profile:has([name=member_name]) textarea[name=member_note]{box-sizing:border-box;inline-size:100%!important;min-inline-size:0;max-inline-size:100%;min-block-size:104px!important;margin:0!important;padding:10px 12px;line-height:1.6;resize:vertical}
html body .rj-member-admin .rj-member-profile:has([name=member_name])>button{grid-column:1/-1!important;justify-self:start;align-self:end;min-block-size:44px!important;min-inline-size:140px;max-inline-size:100%;inline-size:auto!important;margin:0!important;padding:8px 16px;line-height:1.4;white-space:normal}
html body .rj-member-admin .rj-member-card>.rj-member-actions:has(>form){margin-block-start:12px;padding-block-start:12px;border-block-start:1px solid #e1ebef;align-items:stretch;gap:8px}
html body .rj-member-admin .rj-member-card>.rj-member-actions>form{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;min-inline-size:0;margin:0}
html body .rj-member-admin .rj-member-card>.rj-member-actions>form>button{min-block-size:44px!important;margin:0!important;align-self:stretch;max-inline-size:100%;white-space:normal;line-height:1.4}
@media(max-width:1023px){html body .rj-member-admin .rj-member-profile:has([name=member_name]){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){html body .rj-member-admin .rj-member-profile:has([name=member_name]){grid-template-columns:minmax(0,1fr)!important}html body .rj-member-admin .rj-member-profile:has([name=member_name])>.rj-mobile-fields,html body .rj-member-admin .rj-member-profile:has([name=member_name])>label{grid-column:1!important}html body .rj-member-admin .rj-member-profile:has([name=member_name])>button{inline-size:100%!important;justify-self:stretch}html body .rj-member-admin .rj-member-card>.rj-member-actions>form>button{flex:1 1 160px}}
/* The Arabic invocation spans the actual header, independent of text direction. */
html body>.rj-site-header>.rj-header-invocation{inset-inline:0!important;left:0!important;right:0!important;inline-size:100%!important;max-inline-size:100%;box-sizing:border-box;transform:none!important;padding-inline:12px;text-align:center!important}
/* Both flight-heading lines use the route's existing size, weight and colour. */
html body .rj-search article.rj-flight .rj-flight-header{font-size:14px!important;font-weight:700!important;line-height:1.8!important;color:inherit}
html body .rj-search article.rj-flight .rj-flight-header :is(.rj-flight-heading-line,.rj-flight-timing,.rj-flight-route,.rj-flight-leg,.rj-flight-airline,.rj-flight-aircraft,.rj-flight-date,.rj-flight-clock,span,time,bdi,strong){font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important;color:inherit!important}
/* The amount label is centred independently of its check, with stable state sizes. */
html body .rj-ticket-controls .rj-ticket-amount-toggle,html body .rj-my-bookings .rj-record-header .rj-ticket-amount-toggle{position:relative;box-sizing:border-box!important;inline-size:200px!important;width:200px!important;min-inline-size:200px!important;max-inline-size:100%!important;padding-inline:40px!important;justify-content:center!important;text-align:center!important}
html body .rj-ticket-controls .rj-ticket-amount-toggle::before,html body .rj-my-bookings .rj-record-header .rj-ticket-amount-toggle::before{position:absolute;inset-inline-start:10px;inset-block-start:50%;transform:translateY(-50%)}
@media(max-width:650px){html body .rj-ticket-controls .rj-ticket-amount-toggle,html body .rj-my-bookings .rj-record-header .rj-ticket-amount-toggle{inline-size:100%!important;width:100%!important;min-inline-size:0!important}}
/* Keep outbound and return dates in their own rows without a separator. */
html body .rj-search #rj-search-form .rj-departure-field>.rj-range-toggle{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;gap:0!important}
html body .rj-search #rj-search-form .rj-range-toggle>.rj-range-date{display:block;inline-size:100%;min-inline-size:0;text-align:start;line-height:20px}
html body .rj-search #rj-search-form .rj-range-toggle>.rj-range-date>.rj-range-date-label{color:#ff6600!important;font-weight:800!important}
html body .rj-search #rj-search-form .rj-range-toggle>.rj-range-date[hidden]{display:none!important}
html body .rj-search #rj-search-form .rj-fields:has(>.rj-departure-field.has-return)>:is(.rj-origin-field,.rj-destination-field,.rj-departure-field,.rj-passenger-field){height:auto!important;max-block-size:none!important}
html body .rj-search #rj-search-form .rj-departure-field.has-return>.rj-range-toggle{flex-shrink:0;min-block-size:40px!important}
html body .rj-search #rj-search-form .rj-fields:has(>.rj-departure-field.has-return)>.rj-search-action{display:flex;align-items:stretch}
html body .rj-search #rj-search-form .rj-fields:has(>.rj-departure-field.has-return)>.rj-search-action>.rj-submit{height:auto!important;max-height:none!important}
/* Keep the report type and its existing PDF picker in one aligned desktop row. */
html body .rj-api-manifest-dialog .rj-api-manifest-fields{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.65fr);gap:12px;align-items:end;margin-block:12px}
html body .rj-api-manifest-dialog .rj-api-manifest-fields:has(>.rj-api-manifest-pdf[hidden]){grid-template-columns:minmax(0,1fr)}
html body .rj-api-manifest-dialog .rj-api-manifest-fields>label{min-inline-size:0;max-inline-size:100%;margin:0;align-self:end}
html body .rj-api-manifest-dialog .rj-api-manifest-fields :is(select,input[type=file]){box-sizing:border-box;inline-size:100%;min-inline-size:0;max-inline-size:100%;block-size:44px}
html body .rj-api-manifest-dialog .rj-api-manifest-fields input[type=file]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:600px){html body .rj-api-manifest-dialog .rj-api-manifest-fields{grid-template-columns:minmax(0,1fr)}}
/* One logical flight summary, with each pipe kept beside the following fact. */
html body .rj-search article.rj-flight .rj-flight-header{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 0}
html body .rj-search article.rj-flight .rj-flight-header>:is(.rj-flight-heading-line,.rj-flight-timing){display:contents!important}
html body .rj-search article.rj-flight .rj-flight-header .rj-flight-segment{display:inline-flex!important;align-items:baseline;gap:0;flex:0 1 auto;min-inline-size:0;max-inline-size:100%;margin:0!important;white-space:nowrap;unicode-bidi:isolate}
html body .rj-search article.rj-flight .rj-flight-header .rj-flight-separator{flex:none;padding-inline:10px;white-space:nowrap;user-select:none}
html body .rj-search article.rj-flight .rj-flight-header .rj-flight-clock{column-gap:4px}
html body .rj-search article.rj-flight .rj-flight-header :is(.rj-flight-route,.rj-flight-date){white-space:normal;flex-wrap:wrap}
html body .rj-search article.rj-flight .rj-flight-header .rj-flight-date{flex-wrap:nowrap}
html body .rj-search article.rj-flight .rj-flight-header .rj-flight-date>time{display:inline-flex;flex-wrap:wrap;align-items:baseline;min-inline-size:0;max-inline-size:100%;gap:0 4px}
html body .rj-search article.rj-flight .rj-flight-header bdi{unicode-bidi:isolate;white-space:nowrap}
html body .rj-search article.rj-flight .rj-flight-header>.rj-flight-leg{flex-basis:100%;margin:0}
/* Manifest controls share the portal's modal header and keep recipient entry usable. */
html body .rj-api-manifest-dialog{width:min(880px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:0!important}
html body .rj-api-manifest-dialog>.rj-api-manifest-header{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:12px;direction:ltr;margin:0;padding:12px 18px;background:linear-gradient(110deg,#19667a,#0c869a);border-bottom:3px solid #ff9658;color:#fff}
html body .rj-api-manifest-dialog>.rj-api-manifest-header>h2{grid-column:2;grid-row:1;min-width:0;margin:0!important;color:#fff!important;font-size:20px;line-height:1.5;text-align:center;overflow-wrap:anywhere}
html body .rj-api-manifest-dialog .rj-api-manifest-header>.rj-api-manifest-close{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0!important;border:0;border-radius:10px;background:#eef8fa;color:#176477;font-size:28px;line-height:1;cursor:pointer}
html body .rj-api-manifest-dialog>.rj-api-manifest-body{min-width:0;padding:18px 20px 20px}
html body .rj-api-manifest-dialog .rj-api-manifest-body>p:first-child{margin-top:0}
html body .rj-api-manifest-dialog [role=status]:empty,html body .rj-api-manifest-dialog .rj-manifest-self-email:empty{display:none}
html body .rj-api-manifest-dialog .rj-api-manifest-buttons{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch!important;gap:8px!important}
html body .rj-api-manifest-dialog .rj-api-manifest-buttons>button{min-width:0;min-height:44px;margin:0!important;padding:8px 10px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
html body .rj-api-manifest-dialog .rj-manifest-recipients>.rj-manifest-recipients-form{display:grid!important;grid-template-columns:minmax(0,1fr) repeat(3,max-content);align-items:end;gap:8px;margin:12px 0 0}
html body .rj-api-manifest-dialog .rj-manifest-recipients-form>.rj-manifest-recipient-label{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0;width:100%;margin:0!important;align-self:end}
html body .rj-api-manifest-dialog .rj-manifest-recipient-label>input[type=email]{display:block;box-sizing:border-box;width:100%!important;inline-size:100%!important;max-width:100%!important;min-width:0!important;height:44px;min-height:44px;margin:0!important;padding:9px 12px;border:1px solid #bdd8e2;border-radius:10px;background:#fff;color:#193c53;font-size:16px;direction:ltr}
html body .rj-api-manifest-dialog .rj-manifest-recipients-form>button{box-sizing:border-box;min-width:0;min-height:44px;height:auto;margin:0!important;align-self:end;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){html body .rj-api-manifest-dialog .rj-manifest-recipients>.rj-manifest-recipients-form{grid-template-columns:repeat(3,minmax(0,1fr))}html body .rj-api-manifest-dialog .rj-manifest-recipients-form>.rj-manifest-recipient-label{grid-column:1/-1}html body .rj-api-manifest-dialog .rj-api-manifest-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){html body .rj-api-manifest-dialog>.rj-api-manifest-header{gap:8px;padding:10px 12px}html body .rj-api-manifest-dialog>.rj-api-manifest-body{padding:14px 12px}html body .rj-api-manifest-dialog>.rj-api-manifest-header>h2{font-size:18px}}
/* Copy and passenger-bank actions share the same toolbar baseline and touch height. */
html body .rj-reservation .rj-r-ssr-tools,html body .rj-reservation .rj-r-ssr-tools>.rj-r-bank-actions{align-items:center!important}
html body .rj-reservation .rj-r-ssr-tools>button,html body .rj-reservation .rj-r-ssr-tools>.rj-r-bank-actions>button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:44px!important;min-height:44px!important;margin:0!important;padding:6px 10px!important;line-height:1.3!important;vertical-align:middle}
/* Issued reservation exports use their existing buttons beside the amount switch. */
html body .rj-reservation .rj-r-ticket-toolbar:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;margin:10px 0}
html body .rj-reservation .rj-r-ticket-toolbar>.rj-ticket-amount-toggle{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 200px;box-sizing:border-box;width:200px!important;min-width:0;max-width:100%;height:44px!important;min-height:44px!important;margin:0!important;padding:8px 40px!important;text-align:center;line-height:1.35;white-space:nowrap}
html body .rj-reservation .rj-r-ticket-toolbar>.rj-ticket-amount-toggle::before{position:absolute;inset-inline-start:10px;inset-block-start:50%;transform:translateY(-50%)}
html body .rj-reservation .rj-r-ticket-toolbar>.rj-ticket-exports:not([hidden]){display:flex!important;flex:1 1 480px;align-items:stretch;flex-wrap:nowrap;gap:8px;min-width:0;margin:0}
html body .rj-reservation .rj-r-ticket-toolbar>.rj-ticket-exports>[data-ticket-export]{display:inline-flex;align-items:center;justify-content:center;flex:1 1 0;box-sizing:border-box;width:auto!important;min-width:0;max-width:100%;height:44px!important;min-height:44px!important;margin:0!important;padding:8px 10px!important;font-size:13px;line-height:1.4;white-space:normal}
html body .rj-reservation .rj-r-issued-tickets{margin:6px 0 10px;padding-inline-start:20px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
@media(max-width:700px){html body .rj-reservation .rj-r-ticket-toolbar>.rj-ticket-amount-toggle{flex-basis:100%;width:100%!important}html body .rj-reservation .rj-r-ticket-toolbar>.rj-ticket-exports:not([hidden]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));flex-basis:100%;width:100%}html body .rj-reservation .rj-r-ticket-toolbar>.rj-ticket-exports>.rj-ticket-scope{grid-column:1/-1}}
/* Saved addresses are compact wrapping chips; the small X retains its full accessible label. */
html body .rj-api-manifest-dialog .rj-manifest-recipients>.rj-manifest-recipient-list{display:flex;flex-wrap:wrap;gap:4px 6px;margin:6px 0;padding:0;list-style:none}
html body .rj-api-manifest-dialog .rj-manifest-recipient-list>.rj-manifest-recipient-chip{flex:0 1 auto;inline-size:max-content;max-inline-size:100%;min-inline-size:0;min-block-size:28px;font-size:12px;line-height:18px}
html body .rj-api-manifest-dialog .rj-manifest-recipient-chip>bdi{min-inline-size:0;overflow-wrap:anywhere}
html body .rj-api-manifest-dialog .rj-manifest-recipient-chip>.rj-manifest-recipient-remove{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;box-sizing:border-box;width:24px!important;min-width:24px!important;max-width:24px!important;height:24px!important;min-height:24px!important;margin:0!important;padding:0!important;border:0;border-radius:5px;font-size:18px;line-height:1}

/* Reservation actions sit beside the optional phone, below the reservation details. */
html body .rj-reservation .rj-r-contact-toolbar{display:flex!important;align-items:flex-end!important;flex-wrap:wrap;gap:12px}
html body .rj-reservation .rj-r-contact-toolbar>.rj-ticket-phone{flex:0 1 220px;min-width:180px;margin:0!important}
html body .rj-reservation .rj-r-contact-toolbar>.rj-r-ticket-toolbar:not([hidden]){flex:1 1 440px;align-items:center;margin:0!important;gap:12px}
html body .rj-reservation .rj-r-contact-toolbar>.rj-r-ticket-toolbar>.rj-r-control-share,html body .rj-reservation .rj-r-contact-toolbar>.rj-r-ticket-toolbar>.rj-ticket-amount-toggle{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:1 1 200px;width:auto!important;min-width:0;height:44px!important;min-height:44px!important;margin:0!important;line-height:1.35}
html body .rj-reservation .rj-r-contact-toolbar>.rj-ticket-phone input{box-sizing:border-box;height:44px!important;min-height:44px!important;margin:0!important}
@media(max-width:700px){html body .rj-reservation .rj-r-contact-toolbar>.rj-ticket-phone{flex-basis:100%}html body .rj-reservation .rj-r-contact-toolbar>.rj-r-ticket-toolbar:not([hidden]){flex-basis:100%}}

html body .rj-reservation .rj-r-contact-toolbar>.rj-r-ticket-toolbar:has(>.rj-ticket-exports:not([hidden])){display:grid!important;grid-template-columns:minmax(150px,1.4fr) repeat(4,minmax(0,1fr));align-items:center;gap:8px;width:100%;flex-basis:100%}
html body .rj-reservation .rj-r-contact-toolbar .rj-r-ticket-toolbar>.rj-r-note:empty{display:none}
html body .rj-reservation .rj-r-contact-toolbar .rj-r-ticket-toolbar>.rj-ticket-exports:not([hidden]){display:contents!important}
html body .rj-reservation .rj-r-contact-toolbar .rj-r-ticket-toolbar:has(>.rj-ticket-exports:not([hidden]))>.rj-ticket-amount-toggle{width:100%!important;min-width:0!important;max-width:100%;padding:8px 32px!important}
html body .rj-reservation .rj-r-contact-toolbar .rj-r-ticket-toolbar>.rj-ticket-exports>[data-ticket-export]{width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important;padding:6px!important}
@media(max-width:600px){html body .rj-reservation .rj-r-contact-toolbar>.rj-r-ticket-toolbar:has(>.rj-ticket-exports:not([hidden])){grid-template-columns:minmax(95px,1.4fr) repeat(4,minmax(0,1fr));gap:4px}html body .rj-reservation .rj-r-contact-toolbar .rj-r-ticket-toolbar>.rj-ticket-exports>[data-ticket-export]{font-size:11px!important;padding:3px!important}html body .rj-reservation .rj-r-contact-toolbar .rj-r-ticket-toolbar:has(>.rj-ticket-exports:not([hidden]))>.rj-ticket-amount-toggle{font-size:11px!important;padding:4px 18px!important}}
