/* Mile I Shipping V86.18 — launch-readiness, session and connection polish */

/* Public navigation: keep only the short interactive underline. Remove the old
   rounded/curved red lower border that could remain attached to a tab. */
html body.public-site .site-header nav a,
html body .site-header nav a{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-bottom:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  clip-path:none!important;
  filter:none!important;
  transform:none!important;
}
html body .site-header nav a::before{content:none!important;display:none!important}
html body .site-header nav a::after{
  content:""!important;
  position:absolute!important;
  left:20%!important;
  right:20%!important;
  bottom:8px!important;
  height:4px!important;
  border:0!important;
  border-radius:999px!important;
  background:#ef233c!important;
  box-shadow:none!important;
  opacity:0!important;
  transform:scaleX(.2)!important;
  transform-origin:center!important;
  transition:opacity .16s ease,transform .2s ease!important;
}
html body .site-header nav a:hover::after,
html body .site-header nav a:focus-visible::after,
html body .site-header nav a.is-current-section::after{
  opacity:1!important;
  transform:scaleX(1)!important;
}
html body .site-header nav a.active:not(.is-current-section)::after,
html body .site-header nav a[aria-current="page"]:not(.is-current-section)::after{
  opacity:0!important;
  transform:scaleX(.2)!important;
}

/* Role matrix */
.v8618-role-dialog{border:0;border-radius:24px;padding:0;width:min(1120px,calc(100vw - 28px));max-height:90dvh;box-shadow:0 34px 90px rgba(4,23,55,.34)}
.v8618-role-dialog::backdrop{background:rgba(4,22,52,.64);backdrop-filter:blur(5px)}
.v8618-role-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:90dvh;background:#fff}
.v8618-role-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 28px;background:linear-gradient(135deg,#061f4c,#164f8d);color:#fff;border-bottom:5px solid #ef233c}
.v8618-role-head small{display:block;color:#bed4e9;font-weight:900;letter-spacing:.12em}.v8618-role-head h2{margin:6px 0 0;color:#fff;font-size:clamp(1.65rem,3vw,2.35rem)}
.v8618-role-head button{width:44px;height:44px;border:1px solid rgba(255,255,255,.25);border-radius:13px;background:rgba(255,255,255,.12);color:#fff;font-size:1.6rem;cursor:pointer}
.v8618-role-body{padding:24px;overflow:auto}.v8618-role-note{margin:0 0 18px;padding:15px 17px;border:1px solid #d6e4f1;border-radius:14px;background:#f3f8fd;color:#47627e;line-height:1.55}
.v8618-role-table-wrap{overflow:auto;border:1px solid #d5e2ef;border-radius:16px}.v8618-role-table{width:100%;min-width:900px;border-collapse:collapse}.v8618-role-table th,.v8618-role-table td{padding:13px 14px;border-bottom:1px solid #e1e9f1;text-align:center}.v8618-role-table th{position:sticky;top:0;background:#eaf2fa;color:#315271;font-size:.74rem;letter-spacing:.06em;text-transform:uppercase}.v8618-role-table th:first-child,.v8618-role-table td:first-child{text-align:left;font-weight:850;color:#092a57}.v8618-role-yes{color:#0b874f;font-weight:950}.v8618-role-no{color:#9aacbd}
.v8618-role-foot{display:flex;justify-content:flex-end;padding:16px 24px;border-top:1px solid #dce6ef;background:#f7fafc}.v8618-role-foot button{min-height:44px;padding:0 20px;border:1px solid #cbd9e6;border-radius:11px;background:#fff;color:#082858;font-weight:900;cursor:pointer}

/* Staff invitation and directory controls */
.v77-staff-actions-cell{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important}
.v77-staff-actions-cell button{min-height:40px!important;padding:0 13px!important;white-space:nowrap!important}
.v8618-suspend-staff{border-color:#e4bb61!important;background:#fff8e7!important;color:#7a5100!important}
.v849-remove-staff{border-color:#efb4ba!important;background:#fff4f5!important;color:#ad1b28!important}
.v77-invite-result{width:100%!important}.v77-staff-dialog[open] .v77-staff-shell{max-height:88dvh!important}

/* Staff signup: professionally aligned and responsive. */
body.auth-page .staff-auth-shell{width:min(820px,calc(100% - 32px))!important;max-width:820px!important;margin:34px auto!important;padding:38px 42px!important;border:1px solid #d8e4ef!important;border-radius:25px!important;background:#fff!important;box-shadow:0 24px 65px rgba(5,30,70,.13)!important}
.staff-auth-shell .auth-back-link{display:inline-flex!important;margin-bottom:22px!important}.staff-auth-shell .auth-brand-logo{width:min(290px,78%)!important;height:auto!important;margin:0 0 24px!important;object-fit:contain!important;object-position:left center!important}
.staff-auth-shell .auth-heading{margin-bottom:24px!important}.staff-auth-shell .auth-heading h1{font-size:clamp(2.25rem,5vw,3.7rem)!important;line-height:1!important;overflow-wrap:normal!important}.staff-auth-shell .staff-invite-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:18px!important;border-radius:16px!important}
.staff-auth-shell .auth-form-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important;margin-top:20px!important}.staff-auth-shell .auth-form-grid label:first-child{grid-column:1/-1!important}.staff-auth-shell .auth-form-grid label{display:grid!important;gap:7px!important;font-weight:850!important}.staff-auth-shell .auth-form-grid input{width:100%!important;min-height:54px!important;padding:12px 15px!important;border:1px solid #cbd9e7!important;border-radius:13px!important;font-size:1rem!important}
.staff-auth-shell .signup-policy-checks{margin:20px 0!important;padding:16px!important;border:1px solid #dce7f2!important;border-radius:15px!important;background:#f8fbfe!important}.staff-auth-shell .check-row{display:flex!important;align-items:flex-start!important;gap:11px!important;line-height:1.5!important}.staff-auth-shell .check-row input{width:18px!important;height:18px!important;margin-top:2px!important;flex:0 0 auto!important}.staff-auth-shell .auth-primary-button{min-height:52px!important;padding-inline:25px!important}.staff-auth-shell .auth-mini-footer{margin:28px -42px -38px!important;padding:20px 42px!important;border-radius:0 0 25px 25px!important}

/* Sea freight cards must look intentional even before a numeric schedule is entered. */
.v8618-sea-quote-row td{background:#f3f8fd!important;color:#315776!important}.v8618-sea-quote-row strong{color:#0757a2!important}
.v847-live-rate-card[data-service="sea-freight"] .always-rate-head small{color:#d1e5f7!important}

/* Idle timeout */
.v8618-idle-dialog{border:0;border-radius:24px;padding:0;width:min(560px,calc(100vw - 28px));box-shadow:0 34px 90px rgba(4,22,52,.38)}
.v8618-idle-dialog::backdrop{background:rgba(4,22,52,.68);backdrop-filter:blur(6px)}
.v8618-idle-shell{background:#fff}.v8618-idle-head{padding:24px 26px;background:linear-gradient(135deg,#061f4c,#174f8d);color:#fff;border-bottom:5px solid #ef233c}.v8618-idle-head small{display:block;color:#bfd5e9;font-weight:900;letter-spacing:.1em}.v8618-idle-head h2{margin:6px 0 0;color:#fff}
.v8618-idle-body{padding:26px;color:#405c78;line-height:1.65}.v8618-idle-count{display:grid;place-items:center;width:92px;height:92px;margin:18px auto;border:8px solid #e7f0f8;border-top-color:#ef233c;border-radius:50%;font-size:2rem;font-weight:950;color:#082858;font-variant-numeric:tabular-nums}.v8618-idle-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;padding:0 26px 26px}.v8618-idle-actions button{min-height:50px;border-radius:12px;font-weight:900;cursor:pointer}.v8618-idle-signout{border:1px solid #d3dfeb;background:#fff;color:#173a62}.v8618-idle-continue{border:0;background:#ef233c;color:#fff;box-shadow:0 12px 26px rgba(239,35,60,.22)}

@media(max-width:680px){
  html body .site-header nav a::after{display:none!important}
  body.auth-page .staff-auth-shell{width:100%!important;margin:0!important;padding:28px 20px!important;border:0!important;border-radius:0!important;min-height:100dvh!important}.staff-auth-shell .auth-form-grid,.staff-auth-shell .staff-invite-summary{grid-template-columns:1fr!important}.staff-auth-shell .auth-form-grid label:first-child{grid-column:auto!important}.staff-auth-shell .auth-mini-footer{margin:28px -20px -28px!important;padding:20px!important;border-radius:0!important}.v8618-idle-actions{grid-template-columns:1fr!important}
}

/* Tablet authentication layouts must stack before the legacy 500px/620px
   minimum columns can create page-level horizontal scrolling. */
@media(max-width:1180px){
  body.auth-page .auth-layout{grid-template-columns:1fr!important;min-width:0!important}
  body.auth-page .auth-visual{min-height:300px!important;height:34vh!important}
  body.auth-page .auth-panel{min-width:0!important;min-height:auto!important;padding:36px 24px 52px!important}
  body.auth-page .auth-panel .auth-shell{width:min(100%,740px)!important;min-width:0!important;margin-inline:auto!important}
}
