/* The Fare Calculation Module: the portals' stylesheet (site.css) plus the Admin Panel's bar, tabs and forms, and the sheet itself. */
body.admin { background: var(--mmt-bg); }
.admin .pagebar-inner { min-height: 64px; }

/* ---------- the bar on a laptop, a tablet and a phone (the Admin Panel's rules of 22 Oct 2026) ----------
   Above 1280 px nothing changes. From 1280 px down the links tighten so the pages, More and the account still fit a small
   laptop. Below 1000 px the pages collapse into a Menu button's drawer under the bar, with More's pages listed in place
   after a line; the account button never leaves the bar. fcm.js opens and closes the drawer (no inline handlers under the CSP). */
.nav-toggle { display: none; }
@media (min-width: 1001px) {
  .admin-nav { overflow: visible; flex-wrap: wrap; }
}
@media (max-width: 1400px) {
  .admin-nav { margin-left: 10px; }
  .admin-nav a, .admin-more > button { padding: 24px 8px; font-size: 13px; }
}
@media (max-width: 1100px) { .brand-partner { display: none; } }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border: 1px solid var(--mmt-line); border-radius: 8px; background: #fff; color: var(--mmt-ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
  .nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
  .nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--mmt-sky); border-color: var(--mmt-blue); color: var(--mmt-blue); }
  .admin-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 55; flex-direction: column; gap: 2px; margin: 0; padding: 8px 16px 12px; background: #fff; border-top: 1px solid var(--mmt-line); border-radius: 0 0 12px 12px; box-shadow: 0 14px 30px rgba(0, 0, 0, .18); max-height: calc(100vh - 64px); overflow-x: hidden; overflow-y: auto; }
  .admin-nav.open { display: flex; }
  .admin-nav a, .admin-more > button { padding: 12px 14px; border-bottom: 0; border-radius: 6px; font-size: 15px; color: var(--mmt-ink); }
  .admin-nav > a:hover { background: var(--mmt-bg); }
  .admin-nav > a.active { background: var(--mmt-sky); color: var(--mmt-blue); }
  .admin-more { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--mmt-line); }
  .admin-more > button { display: none; }
  .admin-nav .admin-more-menu { display: block !important; position: static; min-width: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .admin-more-menu a { padding: 12px 14px; border-radius: 6px; font-size: 15px; }
  .admin-more-menu a:hover { background: var(--mmt-bg); }
  .admin-more-menu a.active { background: var(--mmt-sky); }
  .admin-more-menu .sep { margin: 4px 0; }
}
@media (max-width: 400px) { .nav-toggle { padding: 0 9px; } .nav-toggle-text { display: none; } }

.admin .card h2 { font-size: 16px; }
.admin .kv { font-size: 13.5px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.inline-form { display: inline; }

/* tabs on a page (Suppliers | Plates & deals; Rates | Rules) */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.tabs a, .tabs button { display: inline-block; padding: 9px 14px; border-radius: 6px; background: #fff; border: 1px solid var(--mmt-line); font-weight: 700; font-size: 13.5px; color: var(--mmt-grey); text-decoration: none; cursor: pointer; font-family: inherit; }
.tabs a.on, .tabs button.on { background: var(--mmt-blue); border-color: var(--mmt-blue); color: #fff; }
.tabs a small { font-weight: 400; opacity: .85; }

/* the forms (a supplier, a plate, a rate) */
.rule-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; }
.rule-grid .fld.wide { grid-column: span 2; }
.rule-grid .fld input, .rule-grid .fld select { height: 40px; font-size: 13.5px; }
.rule-grid h3 { grid-column: 1 / -1; margin: 6px 0 -4px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--mmt-grey); }
.fld .help { display: block; margin: 4px 0 0; font-size: 12px; color: var(--mmt-light); }
.fld textarea { width: 100%; padding: 10px 12px; border: 1px solid #D0D0D0; border-radius: 6px; font: inherit; font-size: 13.5px; resize: vertical; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--mmt-ink); }
.chk input { width: 16px; height: 16px; accent-color: var(--mmt-blue); margin: 0; }
.cond { display: inline-block; margin: 2px 0; padding: 1px 7px; border-radius: 4px; background: var(--pending-wash); color: var(--pending); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }

/* ---------- the fare sheet ---------- */
/* The sheet has nine columns; on the portals' 1170 px frame the Verdict column fell off the right edge (the screenshot
   runner, 24 Oct 2026), so the module's frame is wider on a large screen - the bar, the pages and the foot alike - and
   the sheet's cells are tighter than the portals' tables. Below the frame's width the sheet scrolls sideways as every
   table of the portals does. */
body.fcm { --wrap: 1440px; }
.sheet-head { margin-bottom: 16px; }
.sheet-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
.sheet-grid .fld input, .sheet-grid .fld select { height: 40px; font-size: 14px; }
.sheet-grid #airline { font-weight: 900; letter-spacing: 1px; }
.sheet-wrap { margin-bottom: 14px; }
.sheet { font-size: 13px; }
.sheet th, .sheet td { padding: 9px 8px; }
.sheet th { white-space: nowrap; }
.sheet th small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--mmt-light); }
.sheet td { vertical-align: top; }
.sheet td.poi { min-width: 150px; max-width: 210px; white-space: normal; }
.sheet td.poi b { display: block; font-size: 14px; }
.sheet td.poi small { display: block; color: var(--mmt-grey); font-size: 11.5px; line-height: 1.35; overflow-wrap: anywhere; }
.sheet td.poi .badge { font-size: 10.5px; margin: 2px 2px 2px 0; }
.sheet td.in input.amt { width: 104px; height: 36px; padding: 0 8px; border: 1px solid #C9CDD0; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.sheet td.num small.margin { color: var(--mmt-grey); font-weight: 700; }
.sheet td.in input.amt:focus { border-color: var(--mmt-blue); box-shadow: 0 0 0 3px rgba(16,129,177,.18); outline: 0; }
.sheet td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet td.num .val { display: block; font-weight: 700; }
.sheet td.num .val.big { font-size: 15px; font-weight: 900; }
.sheet td.num small { display: block; color: var(--mmt-light); font-size: 11px; }
.sheet td.num .terms { display: block; font-weight: 400; color: var(--mmt-grey); font-size: 11.5px; }
.sheet td.num input.pct { width: 70px; height: 32px; padding: 0 6px; border: 1px solid #C9CDD0; border-radius: 6px; font: inherit; font-size: 13px; text-align: right; }
.sheet td.vd { min-width: 190px; max-width: 300px; white-space: normal; }
.sheet .verdict { display: block; font-size: 12.5px; line-height: 1.35; }
.sheet .verdict.best { color: var(--ok); font-weight: 900; }
.sheet .verdict.ref { color: var(--mmt-ink); font-weight: 700; }
.sheet .verdict.ok { color: var(--mmt-grey); }
.sheet .verdict.low, .sheet .verdict.no { color: var(--mmt-grey); }
.sheet .verdict.held { color: var(--pending); font-weight: 700; }
.sheet .working { margin-top: 4px; font-size: 11.5px; color: var(--mmt-light); }
.sheet .working summary { cursor: pointer; color: var(--mmt-blue); font-weight: 700; }
.sheet .working[open] summary { margin-bottom: 3px; }
.sheet .working div:empty { display: none; }
.sheet tr.best td { background: var(--ok-wash); }
.sheet tr.best:hover td { background: #D7EFEA; }
.sheet tr.held td { background: var(--pending-wash); }
.sheet tr.reference:not(.best) td { background: #F7FAFC; }
.sheet tbody tr:not(.entered) td.num .val:empty + small { opacity: .7; }

/* the red lines of sheet 1 under the rows */
.rules-box { margin: 0 0 14px; padding: 12px 16px; border-radius: 8px; background: #D62828; color: #fff; text-align: center; font-weight: 900; font-size: 13.5px; letter-spacing: .3px; text-transform: uppercase; }
.rules-box p { margin: 0; }
.rules-box p + p { margin-top: 4px; }

/* the verdict box */
.reco { display: flex; gap: 14px; align-items: center; margin: 0 0 16px; padding: 16px 18px; border-radius: 10px; background: #fff; border: 2px solid var(--mmt-line); box-shadow: var(--shadow); }
.reco.on { border-color: var(--ok); background: var(--ok-wash); }
.reco-ico { flex: 0 0 46px; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--mmt-line); }
.reco.on .reco-ico { background: linear-gradient(180deg, var(--brand-400), var(--brand)); }
.reco-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.reco b { display: block; font-size: 20px; font-weight: 900; line-height: 1.2; }
.reco span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--mmt-grey); }
.reco.on span { color: var(--ink); }
.save-card { margin-bottom: 18px; }
.saved-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; justify-content: space-between; margin: 0 0 16px; padding: 14px 16px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.saved-bar .kv { margin: 0; flex: 1; }
.sheet .num { font-variant-numeric: tabular-nums; }
.tbl tr.differs td { background: #FFFDF5; }

/* the reference sheet */
.tbl.ref td.plates, .tbl.ref td.offers { white-space: normal; max-width: 520px; font-size: 13px; line-height: 1.5; }
.tbl.ref td.offers div + div { margin-top: 3px; }

/* print: the sheet and the reference sheet without the chrome */
@media print {
  .pagebar, .site-foot, .toast, .sheet-head, .save-card, .row-actions, .filters, .tabs, .working, .page-head .muted { display: none !important; }
  body.admin { background: #fff; }
  .card, .tbl-wrap, .saved-bar, .reco { box-shadow: none; border: 1px solid #ccc; }
  .sheet-wrap { overflow: visible; }
}

@media (max-width: 1500px) { body.fcm { --wrap: 1280px; } }
@media (max-width: 1200px) { .sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .rule-grid, .sheet-grid { grid-template-columns: minmax(0, 1fr); } .rule-grid .fld.wide { grid-column: auto; } .sheet td.in input.amt { width: 104px; } .reco b { font-size: 17px; } }

/* ---------- the sign-in page: the Accounts, Marketing and Admin Panel's page on the module's own photograph ----------
   "Sunset seen from a plane" by Eva Darron on Unsplash (the Unsplash License - free for commercial use, no permission
   or attribution required; unsplash.com/photos/oCdVtGFeDC0, 5774 x 3249), fetched at 1920 px from images.unsplash.com
   on 24 Oct 2026 - assets/img/login-bg.jpg, never another portal's file. Darkened towards the card side and the foot so
   the white text and the glass card read on it. One column below a laptop width. */
.auth-body { position: relative; overflow-x: hidden; min-height: 100vh; margin: 0; background: var(--brand-900); color: #fff; font-family: "Lato", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.auth-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: url("../img/login-bg.jpg") center 45% / cover no-repeat var(--brand-900); }
.auth-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,30,44,.58) 0%, rgba(8,30,44,.22) 48%, rgba(8,30,44,.56) 100%), linear-gradient(180deg, rgba(8,30,44,.42) 0%, rgba(8,30,44,0) 32%, rgba(8,30,44,.8) 100%); }
.auth-shell { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; max-width: 1500px; margin: 0 auto; padding: 22px 36px 0; }
.auth-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.auth-brandchip { display: inline-flex; align-items: center; gap: 12px; padding: 7px 14px; background: rgba(255,255,255,.96); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.22); text-decoration: none; animation: bjfAuthIn .6s cubic-bezier(.22,.9,.34,1) both; }
.auth-brandchip img { display: block; height: 42px; width: auto; }
.auth-brandchip img.auth-brandchip-sharda { height: 48px; }
.auth-brandchip-sep { width: 1px; height: 34px; background: var(--line); }
.auth-iata { display: flex; width: fit-content; align-items: center; gap: 9px; margin: 0; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(0,0,0,.22); animation: bjfAuthIn .6s cubic-bezier(.22,.9,.34,1) .05s both; }
.auth-iata img { height: 26px; width: auto; display: block; mix-blend-mode: multiply; }
.auth-iata span { text-align: left; line-height: 1.2; }
.auth-iata strong { display: block; font-size: 11.5px; font-weight: 900; color: var(--ink); }
.auth-iata em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.auth-portal { font-size: 12px; font-weight: 900; letter-spacing: 2.4px; text-transform: uppercase; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.5); margin-left: 4px; }
.auth-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: center; padding: 36px 0 26px; }
.auth-intro { max-width: 640px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.auth-welcome { font-size: 14.5px; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 14px; color: rgba(255,255,255,.92); }
.auth-welcome strong { font-weight: 900; color: #fff; }
.auth-tag { font-size: 28px; font-weight: 900; line-height: 1.22; letter-spacing: -.3px; margin: 0 0 12px; }
.auth-desc { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.88); margin: 0; }
.auth-card { position: relative; overflow: hidden; width: 100%; max-width: 440px; justify-self: end; padding: 30px 30px 28px; border-radius: 16px; color: #fff;
  background: rgba(13,25,33,.74); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -18px rgba(0,0,0,.6); animation: bjfAuthIn .5s cubic-bezier(.22,.9,.34,1) both; }
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand-400), var(--brand), var(--brand-700)); }
@keyframes bjfAuthIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-card h1 { margin: 0 0 4px; color: #fff; font-size: 24px; font-weight: 900; }
.auth-card > p.muted { margin: 0 0 22px; color: rgba(255,255,255,.72); font-size: 13.5px; }
.auth-card .fld > label { color: rgba(255,255,255,.88); }
.auth-card .fld input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); color: #fff; caret-color: #fff; }
.auth-card .fld input::placeholder { color: rgba(255,255,255,.45); }
.auth-card .fld input:focus { background: rgba(255,255,255,.12); border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(69,169,211,.28); }
.auth-card .fld input:-webkit-autofill, .auth-card .fld input:-webkit-autofill:focus { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #1c3443 inset; caret-color: #fff; transition: background-color 9999s ease-out 0s; }
.auth-card .pw-wrap button { color: var(--brand-400); }
.auth-card .form-msg { background: rgba(179,38,30,.28); border: 1px solid rgba(255,130,120,.5); color: #ffe1dd; }
.auth-card .form-msg.ok { background: rgba(18,118,107,.3); border-color: rgba(120,220,200,.5); color: #d9f7f0; }
.auth-card .btn-grad { box-shadow: 0 12px 24px -10px rgba(16,129,177,.9); }
.auth-card .demo-logins { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); color: rgba(255,255,255,.6); }
.auth-card .demo-logins button { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.auth-card .demo-logins button b { color: var(--brand-400); }
.auth-card .demo-logins button:hover { border-color: var(--brand-400); background: rgba(255,255,255,.13); }
.auth-features { padding: 0 0 20px; }
.auth-features ul { list-style: none; margin: 0; padding: 16px 18px; max-width: 1040px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
  border-radius: 14px; background: rgba(13,25,33,.62); border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: bjfAuthIn .6s cubic-bezier(.22,.9,.34,1) .1s both; }
.auth-tile { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.3; color: #fff; }
.auth-tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(180deg, var(--brand-400), var(--brand)); box-shadow: 0 8px 18px -4px rgba(16,129,177,.7); }
.auth-tile-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.auth-foot { padding: 12px 0 18px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.72); font-size: 12.5px; }
.auth-foot p { margin: 0; }
.auth-hero .toast { z-index: 5; }
@media (max-width: 1000px) {
  .auth-main { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 28px; }
  .auth-intro { max-width: 560px; margin: 0 auto; text-align: center; }
  .auth-tag { font-size: 23px; }
  .auth-card { justify-self: center; max-width: 520px; }
  .auth-features ul { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .auth-shell { padding: 14px 16px 0; }
  .auth-top { gap: 10px; }
  .auth-brandchip { padding: 5px 10px; gap: 8px; }
  .auth-brandchip img { height: 30px; }
  .auth-brandchip img.auth-brandchip-sharda { height: 34px; }
  .auth-brandchip-sep { height: 24px; }
  .auth-iata, .auth-portal, .auth-desc { display: none; }
  .auth-card { padding: 24px 18px 22px; }
  .auth-features ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .auth-card, .auth-brandchip, .auth-iata, .auth-features ul { animation: none !important; } }
