/*
 * Design 4 ("Community board") — the intranet's look from September 2026.
 *
 * Linked LAST from the layouts, after the ported legacy stylesheets, so it wins wherever both declare something.
 * Two kinds of rules live here:
 *   1. the new shell (`.d4-*`): header, sidebar, main, footer — markup of our own in layouts/default.vue;
 *   2. overrides for the legacy component classes the inner pages still carry (`.invite-team`, `.sales_leadtable`,
 *      `.light_bluebtn`, `.banner_textbox` …): same markup, design 4 skin.
 * Every rule is scoped under `body.d4`. The layout is variant 3 of design 4 (`d4-c`, the top navigation band);
 * the review copies of the other two layouts live on the design4-a/b branches.
 *
 * Tokens come from the extranet's main.css (navy, ink, blue, yellow, line, soft) as the design canvas lifted them.
 */

/* Roboto as the design loads it (400, 500, 700, 900): Google's variable Roboto, self-hosted — one file per subset covers every weight.
   The ported theme only shipped static 300–700 faces, so 800/900 fell back to 700 and every bold read lighter than the design. */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/roboto-var-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/roboto-var-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body.d4 {
  --d4-navy: #12385f;
  --d4-navy-deep: #0c243d;
  --d4-ink: #111827;
  --d4-text: #25364a;
  --d4-muted: #667085;
  --d4-blue: #2287c9;
  --d4-blue-soft: #e4f0fa;
  --d4-yellow: #f6b739;
  --d4-yellow-soft: #fff3d6;
  --d4-line: #dce5ee;
  --d4-line-soft: #eef3f8;
  --d4-soft: #f3f8fc;
  --d4-green: #1b7f4b;
  --d4-green-soft: #e6f6ee;
  --d4-red: #c62828;
  --d4-red-soft: #fde8e8;
  --d4-shadow: 0 12px 30px rgba(18, 56, 95, .07);
  --d4-radius: 16px;
  --d4-radius-sm: 10px;
  --d4-header-h: 82px;
  --d4-sidebar-w: 272px; /* the design's 232px card plus its 24px + 16px gutters (the canvas is content-box) */
  --d4-rail-w: 76px;
  font-family: Roboto, system-ui, sans-serif;
  color: var(--d4-ink);
  background: linear-gradient(180deg, #fff8e8 0%, #fff 18%, var(--d4-soft) 100%) no-repeat; background-color: var(--d4-soft); /* the design's page wash; the root box must grow with the content (see html rule) */
  font-size: 14px;
  line-height: 1.5;
}
body.d4 a { color: inherit; text-decoration: none; }
body.d4 a:hover { color: inherit; }
body.d4 h1, body.d4 h2, body.d4 h3, body.d4 h4, body.d4 h5 { font-family: Roboto, system-ui, sans-serif; color: var(--d4-navy); font-weight: 900; letter-spacing: 0; }

/* Shared primitives */
body.d4 .d4-eyebrow { color: var(--d4-blue); font-size: 11px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
body.d4 .d4-card { background: #fff; border: 1px solid var(--d4-line); border-radius: var(--d4-radius); box-shadow: var(--d4-shadow); }
body.d4 .d4-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 900; font-size: 13.5px; line-height: 1; white-space: nowrap;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
body.d4 .d4-pill--navy { background: var(--d4-navy); color: #fff; }
body.d4 .d4-pill--navy:hover { background: #0e2d4c; color: #fff; }
body.d4 .d4-pill--blue { background: var(--d4-blue); color: #fff; }
body.d4 .d4-pill--blue:hover { background: #1b74ad; color: #fff; }
body.d4 .d4-pill--yellow { background: var(--d4-yellow); color: var(--d4-ink); }
body.d4 .d4-pill--yellow:hover { background: #f0aa1f; color: var(--d4-ink); }
body.d4 .d4-pill--outline { background: #fff; color: var(--d4-navy); border-color: var(--d4-line); }
body.d4 .d4-pill--outline:hover { border-color: var(--d4-navy); color: var(--d4-navy); }
body.d4 .d4-pill--ghost { background: transparent; color: var(--d4-navy); border-color: var(--d4-navy); }
body.d4 .d4-pill--ghost:hover { background: var(--d4-navy); color: #fff; }
body.d4 .d4-pill .iconify, body.d4 .d4-pill svg { width: 16px; height: 16px; }

/* ── Shell ───────────────────────────────────────────────────────────────────────────────────────── */
body.d4 .d4-shell { min-height: 100vh; display: flex; flex-direction: column; }

body.d4 .d4-header {
  position: relative; z-index: 1300; height: var(--d4-header-h); /* above variant c's sticky band (1100) so the account menu opens over it */
  display: flex; align-items: center; gap: 24px; padding: 0 40px;
  background: transparent; border: 0;
}
body.d4 .d4-header__inner { width: 100%; display: flex; align-items: center; gap: 24px; min-width: 0; }
body.d4 .d4-header__logo { display: flex; align-items: center; flex: 0 0 auto; }
body.d4 .d4-header__logo img { width: 142px; height: auto; display: block; }
body.d4 .d4-header__nav { margin-left: auto; display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 14px; color: var(--d4-text); }
body.d4 .d4-header__nav .d4-pill--outline { min-height: 42px; padding: 0 16px; font-weight: 800; font-size: 14px; line-height: 1.5; color: var(--d4-text); border-color: var(--d4-line); gap: 0; }
body.d4 .d4-header__nav .d4-header__wa { padding: 0 14px; gap: 8px; }
body.d4 .d4-header__nav .d4-pill--navy { min-height: 42px; padding: 0 18px; font-weight: 900; font-size: 14px; line-height: 1.5; border: 0; }
body.d4 .d4-header__wa svg { color: #25d366; width: 20px; height: 20px; }
body.d4 .d4-account { position: relative; }
body.d4 .d4-account { margin-left: 6px; }
body.d4 .d4-account__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; line-height: 1.5; padding: 0 14px 0 6px !important; width: auto !important;
  border: 1px solid var(--d4-line); border-radius: 999px; background: #fff; font-weight: 800; font-size: 14px; color: var(--d4-text); cursor: pointer;
}
body.d4 .d4-account__btn img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; }
body.d4 .d4-account__btn .iconify { width: 14px; height: 14px; color: var(--d4-muted); }
body.d4 .d4-account__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px;
  background: #fff; border: 1px solid var(--d4-line); border-radius: 14px; box-shadow: 0 18px 45px rgba(18, 56, 95, .14); z-index: 1400;
}
body.d4 .d4-account__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 700; color: var(--d4-text); }
body.d4 .d4-account__menu a:hover { background: var(--d4-soft); color: var(--d4-navy); }
body.d4 .d4-account__menu a .iconify { width: 17px; height: 17px; color: var(--d4-blue); }
body.d4 .d4-account__menu .d4-account__logout { margin-top: 6px; border-top: 1px solid var(--d4-line-soft); padding-top: 8px; }
body.d4 .d4-account__menu .d4-account__logout a { color: var(--d4-red); }
body.d4 .d4-account__menu .d4-account__logout a .iconify { color: var(--d4-red); }
body.d4 .d4-burger { display: none; width: 42px !important; height: 42px !important; padding: 0 !important; border-radius: 50%; border: 1px solid var(--d4-line); background: #fff; align-items: center; justify-content: center; color: var(--d4-navy); cursor: pointer; }
body.d4 .d4-burger .iconify { width: 20px; height: 20px; }

/* "Acting as" strip (administrators) */
body.d4 .d4-acting-pill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--d4-yellow); color: var(--d4-ink); font-size: 14px; font-weight: 800; white-space: nowrap; }
body.d4 .d4-acting-pill__link { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
body.d4 .d4-acting-pill__link .iconify { width: 16px; height: 16px; }
body.d4 .d4-acting-pill__link b { font-weight: 900; }
body.d4 .d4-acting-pill__stop { width: 30px; height: 30px; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 999px; background: rgba(17, 24, 39, .12); color: var(--d4-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none; }
body.d4 .d4-acting-pill__stop:hover { background: rgba(17, 24, 39, .22); }
body.d4 .d4-acting-pill__stop .iconify { width: 14px; height: 14px; }
body.d4 .d4-acting { background: var(--d4-yellow-soft); color: #7a4f00; border-bottom: 1px solid #f6dfa8; font-size: 13.5px; padding: 8px 32px; display: flex; align-items: center; gap: 10px; }
body.d4 .d4-acting a { color: var(--d4-navy); font-weight: 800; text-decoration: underline; }
body.d4 .d4-acting .d4-acting__sep { opacity: .5; }

body.d4 .d4-body { display: flex; align-items: stretch; flex: 1; }

/* Section navigation — the horizontal band under the header (base rules, then the `d4-c` band rules below) */
body.d4 .d4-side { width: var(--d4-sidebar-w); flex: 0 0 auto; padding: 16px 16px 40px 24px; transition: width .25s ease; }
body.d4 .d4-side__card { position: sticky; top: 16px; background: #fff; border: 1px solid var(--d4-line); border-radius: 20px; padding: 14px 10px 16px; box-shadow: var(--d4-shadow); }

body.d4 .d4-side__toggle, body.d4 .d4-burger, body.d4 .d4-account__btn { font: inherit; letter-spacing: 0; text-transform: none; line-height: 1; min-width: 0; height: auto; box-shadow: none; margin: 0; }
body.d4 .d4-side__toggle { width: 30px !important; height: 30px !important; padding: 0 !important; border-radius: 999px; background: var(--d4-soft); border: 0; display: flex; align-items: center; justify-content: center; color: var(--d4-navy); cursor: pointer; font-size: 13px; }
body.d4 .d4-side__toggle .iconify { width: 16px; height: 16px; transition: transform .25s; }

body.d4 .d4-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
body.d4 .d4-side li a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 999px;
  color: var(--d4-text); font-weight: 800; font-size: 14px; white-space: nowrap; transition: background .15s;
}
body.d4 .d4-side li a:hover { background: var(--d4-soft); color: var(--d4-navy); }
body.d4 .d4-side li a.is-active { background: var(--d4-yellow); color: var(--d4-ink); }
body.d4 .d4-side li a .iconify { width: 18px; height: 18px; flex: 0 0 auto; color: var(--d4-navy); }
body.d4 .d4-side li a.is-active .iconify { color: var(--d4-ink); }
body.d4 .d4-side li.d4-side__skeleton { padding: 11px 12px; }
body.d4 .d4-side li.d4-side__skeleton span { display: block; height: 12px; width: 70%; border-radius: 6px; background: var(--d4-line-soft); }

/* Collapsed sidebar: icons only, labels as tooltips */

body.d4 .d4-main { flex: 1 1 0%; min-width: 0; padding: 20px 32px 48px 12px; }
body.d4 .d4-main > div { min-height: 60vh; }

/* Footer */
body.d4 .d4-footer { background: var(--d4-navy-deep); color: #fff; padding: 32px 32px 22px; margin-top: auto; }
body.d4 .d4-footer__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
body.d4 .d4-footer__brand img { width: 120px; height: auto; display: block; }
body.d4 .d4-footer__brand p { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, .65); }
body.d4 .d4-footer__legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 22px; padding-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .65); }
body.d4 .d4-footer__brand p a { color: #fff; text-decoration: underline; }
body.d4 .d4-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13.5px; font-weight: 800; justify-content: flex-end; }
body.d4 .d4-footer__links a { color: #fff; }
body.d4 .d4-footer__links a:hover { color: var(--d4-yellow); }

/* Mobile drawer */
body.d4 .d4-drawer { position: fixed; inset: 0; z-index: 2000; display: none; }
body.d4 .d4-drawer.is-open { display: block; }
body.d4 .d4-drawer__overlay { position: absolute; inset: 0; background: rgba(12, 36, 61, .5); }
body.d4 .d4-drawer__panel { position: absolute; top: 0; left: 0; bottom: 0; width: 290px; background: #fff; padding: 18px 16px; overflow-y: auto; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
body.d4 .d4-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
body.d4 .d4-drawer__head img { width: 120px; }
body.d4 .d4-drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
body.d4 .d4-drawer li a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 999px; font-weight: 800; color: var(--d4-text); }
body.d4 .d4-drawer li a.is-active { background: var(--d4-yellow); color: var(--d4-ink); }
body.d4 .d4-drawer li a .iconify { width: 18px; height: 18px; color: var(--d4-navy); }

@media (max-width: 1199px) {
  body.d4 .d4-side { display: none; }
  body.d4 .d4-burger { display: inline-flex; }
  body.d4 .d4-header { padding: 0 16px; gap: 12px; }
  body.d4 .d4-header__nav .d4-header__text { display: none; }
  body.d4 .d4-main { padding: 16px 16px 40px; }
}

/* ── (layouts a and b were removed from main on 2026-09-16; they live on the design4-a/b branches) ─────────────────────────── */

/* ── Variant c: top navigation — no sidebar, a navy band of pills, centred content ───────────────── */
body.d4.d4-c .d4-body { display: block; }
body.d4.d4-c .d4-side { width: auto; padding: 0; position: sticky; top: var(--d4-header-h); z-index: 1100; }
body.d4.d4-c .d4-side .d4-side__card { position: static; border-radius: 0; border: 0; box-shadow: none; background: var(--d4-navy); padding: 0 32px; }

body.d4.d4-c .d4-side ul { display: flex; gap: 4px; max-width: 1440px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
body.d4.d4-c .d4-side li a { color: rgba(255, 255, 255, .85); border-radius: 0; padding: 14px 16px; border-bottom: 3px solid transparent; }
body.d4.d4-c .d4-side li a .iconify { color: rgba(255, 255, 255, .85); }
body.d4.d4-c .d4-side li a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
body.d4.d4-c .d4-side li a.is-active { background: transparent; color: #fff; border-bottom-color: var(--d4-yellow); }
body.d4.d4-c .d4-side li a.is-active .iconify { color: var(--d4-yellow); }
body.d4.d4-c .d4-main { max-width: 1440px; margin: 0 auto; padding: 24px 32px 56px; width: 100%; }
body.d4.d4-c .d4-header { padding: 0 32px; }
body.d4.d4-c .d4-header__inner { max-width: 1440px; margin: 0 auto; }
body.d4.d4-c .d4-footer__row { max-width: 1440px; margin: 0 auto; }
body.d4.d4-c .d4-footer__news { max-width: 1440px; margin-left: auto; margin-right: auto; }
@media (max-width: 1199px) {
  body.d4.d4-c .d4-side { display: block; }
  body.d4.d4-c .d4-side .d4-side__card { padding: 0 8px; }
  
}

/* ── Home ────────────────────────────────────────────────────────────────────────────────────────── */
body.d4 .d4-home { display: grid; gap: 22px; min-width: 0; }
body.d4 .d4-home > *, body.d4 .d4-col, body.d4 .d4-col > * { min-width: 0; }
body.d4 .d4-home__hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
body.d4 .d4-home__hero h1 { margin: 8px 0 0; font-size: 38px; line-height: 1; }
body.d4 .d4-home__hero h1 .d4-accent { color: var(--d4-blue); }
body.d4 .d4-home__hero h1 .d4-outline { color: transparent; -webkit-text-stroke: 2px var(--d4-navy); }
body.d4 .d4-stats { display: flex; gap: 1px; background: var(--d4-line); border: 1px solid var(--d4-line); border-radius: 14px; overflow: hidden; box-shadow: var(--d4-shadow); }
body.d4 .d4-stats > div { background: #fff; padding: 12px 18px; min-width: 132px; }
body.d4 .d4-stats b { display: block; font-size: 24px; font-weight: 900; color: var(--d4-navy); line-height: 1; }
body.d4 .d4-stats b.is-yellow { color: #d89311; }
body.d4 .d4-stats span { display: block; font-size: 12px; font-weight: 850; color: #475467; margin-top: 4px; }

body.d4 .d4-home__top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
body.d4 .d4-banner { display: block; grid-row: span 2; border-radius: var(--d4-radius); overflow: hidden; position: relative; min-height: 360px; background: var(--d4-navy); box-shadow: var(--d4-shadow); }
body.d4 .d4-banner img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
body.d4 .d4-banner--empty { display: flex; align-items: flex-end; padding: 24px; color: #fff; background: linear-gradient(135deg, var(--d4-navy) 0%, var(--d4-blue) 100%); }
body.d4 .d4-tile { border-radius: var(--d4-radius); padding: 18px; display: flex; flex-direction: column; }
body.d4 .d4-tile--white { background: #fff; border: 1px solid var(--d4-line); box-shadow: var(--d4-shadow); }
body.d4 .d4-tile--navy { background: var(--d4-navy); color: #fff; }
body.d4 .d4-tile--navy .d4-eyebrow { color: var(--d4-yellow); }
body.d4 .d4-tile--navy h4 { color: #fff; }
body.d4 .d4-tile h4 { margin: 14px 0 4px; font-size: 17px; line-height: 1.1; }
body.d4 .d4-tile p { margin: 0 0 14px; font-size: 13px; color: var(--d4-muted); flex: 1; }
body.d4 .d4-tile--navy p { color: rgba(255, 255, 255, .8); }
body.d4 .d4-tile .d4-tile__icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--d4-green-soft); color: var(--d4-green); }
body.d4 .d4-tile .d4-tile__icon.is-off { background: var(--d4-red-soft); color: var(--d4-red); }
body.d4 .d4-tile .d4-tile__icon .iconify { width: 18px; height: 18px; }
body.d4 .d4-tile .d4-pill { align-self: flex-start; }

body.d4 .d4-home__mid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; align-items: start; }
body.d4 .d4-section { padding: 20px 22px 22px; }
body.d4 .d4-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
body.d4 .d4-section__head h4 { margin: 0; font-size: 17px; line-height: 1.1; }
body.d4 .d4-section__head h2 { margin: 4px 0 0; font-size: 24px; line-height: 1.1; }
body.d4 .d4-open { display: grid; gap: 16px; }
body.d4 .d4-open .d4-section__head { margin-bottom: 0; }
body.d4 .d4-section__head .d4-section__meta { font-size: 12.5px; font-weight: 900; color: var(--d4-muted); }

/* Holiday calendar (the vanilla-calendar the legacy home used, re-skinned) */
body.d4 .d4-calendar #holidays-calendar-vanilla { font-family: Roboto, sans-serif; }
body.d4 .d4-calendar .vc { border: 0; padding: 0; background: transparent; box-shadow: none; width: 100%; }
body.d4 .d4-calendar .vc-header { padding: 0 0 10px; }
body.d4 .d4-calendar .vc-month, body.d4 .d4-calendar .vc-year { font: 900 14px Roboto, sans-serif !important; color: var(--d4-navy) !important; }
body.d4 .d4-calendar .vc-arrow { width: 24px; height: 24px; border-radius: 999px; background-color: transparent; opacity: .7; }
body.d4 .d4-calendar .vc-week__day { font: 900 11px Roboto, sans-serif; color: var(--d4-muted); text-transform: uppercase; letter-spacing: .04em; }
body.d4 .d4-calendar .vc-week__day[data-vc-week-day-off], body.d4 .d4-calendar .vc-week__day_off { color: var(--d4-muted) !important; }
body.d4 .d4-calendar .vc-dates__row { gap: 3px; }
body.d4 .d4-calendar .vc-date__btn { font: 500 12.5px Roboto, sans-serif; color: var(--d4-ink) !important; height: 30px; border-radius: 999px; background: transparent; }
body.d4 .d4-calendar .vc-date[data-vc-date-month="prev"] .vc-date__btn, body.d4 .d4-calendar .vc-date[data-vc-date-month="next"] .vc-date__btn { color: #b8c3cf !important; }
body.d4 .d4-calendar .vc-date[data-vc-date-weekend] .vc-date__btn { color: var(--d4-muted) !important; }
body.d4 .d4-calendar .vc-date[data-vc-date-today] .vc-date__btn { background: var(--d4-blue-soft) !important; color: var(--d4-blue) !important; font-weight: 700; }
body.d4 .d4-calendar .vc-date[data-vc-date-holiday] .vc-date__btn { background: var(--d4-yellow) !important; color: #fff !important; font-weight: 700; }
body.d4 .d4-calendar .vc-date[data-vc-date-selected] .vc-date__btn { box-shadow: 0 0 0 2px var(--d4-navy) inset; }
body.d4 .d4-calendar .d4-pill { width: 100%; margin-top: 14px; }

/* Payment monitor on the home */
body.d4 .d4-table { width: 100%; border-collapse: collapse; }
body.d4 .d4-table th { color: var(--d4-muted) !important; font-size: 11px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; text-align: left; padding: 8px 10px !important; border-bottom: 1px solid var(--d4-line) !important; background: transparent; }
body.d4 .d4-table td { padding: 11px 10px !important; border-bottom: 1px solid var(--d4-line-soft) !important; color: var(--d4-text); font-size: 14px; }
body.d4 .d4-table td.is-strong { font-weight: 900; color: var(--d4-navy); white-space: nowrap; }
body.d4 .d4-table tr:last-child td { border-bottom: 0; }
body.d4 .d4-status { display: inline-block; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; background: var(--d4-line-soft); color: var(--d4-text); }
body.d4 .d4-status.is-paid { background: var(--d4-green-soft); color: var(--d4-green); }
body.d4 .d4-status.is-pending { background: var(--d4-yellow-soft); color: #9a6200; }
body.d4 .d4-status.is-overdue, body.d4 .d4-status.is-reported { background: var(--d4-red-soft); color: var(--d4-red); }

/* News as the site's story grid */
body.d4 .d4-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.d4 .d4-news a { display: grid; grid-template-columns: 104px 1fr; gap: 14px; background: #fff; border: 1px solid var(--d4-line); border-radius: 12px; padding: 12px; box-shadow: var(--d4-shadow); transition: transform .15s, box-shadow .15s; }
body.d4 .d4-news a:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(18, 56, 95, .12); }
body.d4 .d4-news img, body.d4 .d4-news .d4-news__ph { width: 104px; height: 104px; object-fit: cover; border-radius: 8px; background: var(--d4-soft); display: block; }
body.d4 .d4-news h5 { margin: 6px 0 6px; font-size: 14px; line-height: 1.35; font-weight: 900; color: var(--d4-navy); }
body.d4 .d4-news .d4-news__more { display: inline-block; margin-top: 6px; color: var(--d4-blue); font-weight: 800; font-size: 12.5px; }
body.d4 .d4-news .d4-news__company { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--d4-muted); font-weight: 700; }
body.d4 .d4-news .d4-news__company img { width: 18px; height: 18px; border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid var(--d4-line-soft); }

/* Top routing partners */
body.d4 .d4-partners { display: grid; grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr)); gap: 16px; }
body.d4 .d4-partner { border-radius: 14px; border: 1px solid var(--d4-line); background: #fff; padding: 18px; display: flex; flex-direction: column; gap: 10px; position: relative; }
body.d4 .d4-partner--lead { grid-row: span 2; background: linear-gradient(160deg, var(--d4-blue) 0%, var(--d4-navy) 100%); color: #fff; border-color: transparent; padding: 22px; }
body.d4 .d4-partner__rank { position: absolute; top: 14px; right: 14px; font: 700 11px/1 'Roboto Mono', ui-monospace, monospace; background: var(--d4-yellow-soft); color: #9a6200; border-radius: 999px; padding: 6px 9px; }
body.d4 .d4-partner--lead .d4-partner__rank { position: static; align-self: flex-start; background: var(--d4-yellow); color: var(--d4-ink); font: 900 11px/1 Roboto, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; }
body.d4 .d4-partner__logo { width: 56px; height: 56px; border-radius: 12px; background: var(--d4-blue-soft); color: var(--d4-navy); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; overflow: hidden; }
body.d4 .d4-partner__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
body.d4 .d4-partner--lead .d4-partner__logo { width: 92px; height: 92px; background: #fff; border-radius: 16px; font-size: 30px; margin-top: 12px; }
body.d4 .d4-partner h4 { margin: 4px 0 0; font-size: 16px; line-height: 1.2; }
body.d4 .d4-partner--lead h4 { color: #fff; font-size: 26px; margin-top: 10px; }
body.d4 .d4-partner__place { font-size: 13px; color: var(--d4-muted); }
body.d4 .d4-partner--lead .d4-partner__place { color: rgba(255, 255, 255, .85); }
body.d4 .d4-partner__spec { background: var(--d4-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 800; color: var(--d4-navy); }
body.d4 .d4-partner__spec small { display: block; font-size: 10.5px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; color: var(--d4-muted); margin-bottom: 2px; }
body.d4 .d4-partner--lead .d4-partner__spec { background: rgba(255, 255, 255, .14); color: #fff; }
body.d4 .d4-partner--lead .d4-partner__spec small { color: rgba(255, 255, 255, .75); }
body.d4 .d4-partner__count { font-size: 12.5px; color: var(--d4-muted); font-weight: 700; }
body.d4 .d4-partner--lead .d4-partner__count { color: rgba(255, 255, 255, .85); }
body.d4 .d4-partner__actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
body.d4 .d4-partner__actions .d4-pill { min-height: 36px; padding: 0 14px; font-size: 12.5px; }
body.d4 .d4-partner--lead .d4-partner__actions .d4-pill--outline { background: #fff; }
body.d4 .d4-empty { color: var(--d4-muted); font-size: 13.5px; padding: 6px 0; }

/* Upcoming FreightCamp events */
body.d4 .d4-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
body.d4 .d4-event { border-radius: 14px; overflow: hidden; border: 1px solid var(--d4-line); background: #fff; display: flex; flex-direction: column; }
body.d4 .d4-event__art { position: relative; min-height: 160px; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0f4f8a 0%, var(--d4-navy) 100%); }
body.d4 .d4-event:nth-child(2) .d4-event__art { background: linear-gradient(135deg, var(--d4-blue) 0%, #0f4f8a 100%); }
body.d4 .d4-event:nth-child(3) .d4-event__art { background: linear-gradient(135deg, #f29b1d 0%, #d35400 100%); }
body.d4 .d4-event__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.d4 .d4-event__days { position: absolute; left: 14px; top: 14px; background: var(--d4-yellow-soft); color: #9a6200; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 13px; }
body.d4 .d4-event__days b { font-size: 18px; color: #b8620a; margin-right: 4px; }
body.d4 .d4-event__body { padding: 16px 18px 18px; display: grid; gap: 4px; }
body.d4 .d4-event__body h4 { margin: 2px 0; font-size: 17px; line-height: 1.2; }
body.d4 .d4-event__body .d4-event__when { color: var(--d4-muted); font-size: 13.5px; }
body.d4 .d4-event__body a { color: var(--d4-blue); font-weight: 800; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }

/* Downloads row */
body.d4 .d4-downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
body.d4 .d4-downloads .d4-section { display: flex; align-items: center; gap: 20px; }
body.d4 .d4-downloads h4 { margin: 0 0 10px; font-size: 16px; }
body.d4 .d4-downloads .d4-stores { display: flex; gap: 8px; flex-wrap: wrap; }
body.d4 .d4-downloads .d4-stores img { height: 40px; width: auto; display: block; }
body.d4 .d4-downloads .d4-qr { width: 84px; height: 84px; flex: 0 0 auto; }
body.d4 .d4-downloads .d4-logos { display: flex; gap: 12px; flex-wrap: wrap; }
body.d4 .d4-downloads .d4-logos a { background: var(--d4-soft); border: 1px solid var(--d4-line); border-radius: 10px; padding: 8px 12px; display: flex; align-items: center; }
body.d4 .d4-downloads .d4-logos img { height: 28px; width: auto; display: block; }

/* The home column wrapper is transparent to the grid */


/* Home — variant c: the calendar takes the event banner's place in the top row. */
body.d4.d4-c .d4-home__hero { align-items: stretch; }
body.d4.d4-c .d4-home__hero > .d4-home__greeting { display: flex; flex-direction: column; justify-content: flex-end; }
body.d4.d4-c .d4-home__top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
body.d4.d4-c .d4-home__top > .d4-calendar { grid-row: span 2; min-width: 0; }
body.d4.d4-c .d4-home__mid { grid-template-columns: minmax(0, 1fr); }
body.d4.d4-c .d4-home__calendar-placeholder { display: grid; gap: 14px; }
body.d4.d4-c .d4-home__calendar-placeholder-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
@media (max-width: 600px) {
  body.d4.d4-c .d4-home__top > .d4-calendar .vc-header { position: static; width: auto; justify-content: flex-end; gap: 12px; margin-bottom: 12px; }
}

@media (max-width: 1100px) {
  body.d4 .d4-home__top, body.d4 .d4-home__mid, body.d4 .d4-news, body.d4 .d4-partners, body.d4 .d4-events, body.d4 .d4-downloads, body.d4.d4-c .d4-home__mid { grid-template-columns: minmax(0, 1fr); }
  body.d4 .d4-banner, body.d4 .d4-partner--lead { grid-row: auto; }
  body.d4 .d4-stats { width: 100%; flex-wrap: wrap; }
}

/* ── Inner pages: the legacy component classes, re-skinned ───────────────────────────────────────── */
body.d4 .intranet_content, body.d4 #intranet-app, body.d4 .content-section { background: transparent; }
body.d4 .d4-main .container { max-width: none; width: 100%; padding-left: 0; padding-right: 0; }
body.d4 .d4-main .container-fluid { padding-left: 0; padding-right: 0; }

/* Page header (LegacyPageHeader and the inline copies): eyebrow breadcrumb + heavy title */
body.d4 .page-header { background: transparent !important; min-height: 0 !important; margin: 0 0 18px !important; padding: 6px 0 0 !important; }
body.d4 .page-header_content { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
body.d4 .page-header_title { color: var(--d4-navy) !important; font-size: 32px !important; line-height: 1.1 !important; font-weight: 900 !important; letter-spacing: 0; }
body.d4 .page-header_breadcrumbs .breadcrumbs, body.d4 .breadcrumbs a, body.d4 .breadcrumbs .current { color: var(--d4-blue) !important; font-size: 11px !important; font-weight: 950 !important; letter-spacing: .12em !important; text-transform: uppercase !important; }
body.d4 .breadcrumbs .divider { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--d4-blue); margin: 0 10px; vertical-align: middle; }
body.d4 .breadcrumbs .divider::before, body.d4 .breadcrumbs .divider::after { content: none !important; }
body.d4 .page-header p, body.d4 .page-header .subtitle { color: var(--d4-muted); font-size: 14.5px; margin: 6px 0 0; }
body.d4 .page-title h3, body.d4 .about_desp h3, body.d4 .shipment-form-box .shipment-title, body.d4 .shipment-title { color: var(--d4-navy); font-size: 30px; font-weight: 900; line-height: 1.1; margin: 0 0 18px; }
body.d4 .title-card, body.d4 .invite-team h4, body.d4 .payment-monitor h4, body.d4 .download-app h4, body.d4 .payment-protection h4, body.d4 .latest-news-title, body.d4 h4.title { color: var(--d4-navy); font-size: 18px; font-weight: 900; line-height: 1.2; text-align: left; margin: 0 0 14px; }

/* Cards */
body.d4 .invite-team, body.d4 .payment-monitor, body.d4 .download-app, body.d4 .payment-protection, body.d4 .member-list-main, body.d4 .account-card,
body.d4 .shipment_popupcontent, body.d4 .latest-news-fix, body.d4 .country-notice, body.d4 .dataTables_wrapper, body.d4 .shipment-form-box > .row > div > .box-shadow,
body.d4 .box-shadow, body.d4 .profile-card, body.d4 .company-card, body.d4 .vendor-card, body.d4 .download-tile, body.d4 .news-card, body.d4 .story-card, body.d4 .contact-card {
  background: #fff; border: 1px solid var(--d4-line); border-radius: var(--d4-radius); box-shadow: var(--d4-shadow);
}
body.d4 .invite-team, body.d4 .payment-monitor, body.d4 .download-app, body.d4 .payment-protection, body.d4 .account-card { padding: 22px; margin-bottom: 20px; }
body.d4 .member-list-main { padding: 20px 22px !important; margin-bottom: 14px; }
body.d4 .country-notice { background: var(--d4-yellow-soft); border-color: #f6dfa8; padding: 18px 22px; gap: 22px; margin-bottom: 22px; }

/* Buttons → pills */
body.d4 .light_bluebtn, body.d4 .bluebtn_outline, body.d4 .btn-sky, body.d4 .btn-primary, body.d4 .btn.btn-lg, body.d4 .save-btn, body.d4 .form-btn,
body.d4 .btn-contact, body.d4 button.swal2-confirm, body.d4 .sweet-alert button.confirm, body.d4 .btn-right a, body.d4 .btn-right button, body.d4 .in-button a, body.d4 .invi-btn a, body.d4 .ln-cta a {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 40px; height: auto !important; width: auto !important;
  padding: 0 18px !important; border-radius: 999px !important; border: 1px solid transparent !important;
  font-family: Roboto, sans-serif !important; font-weight: 900 !important; font-size: 13.5px !important; letter-spacing: 0 !important; line-height: 1 !important; text-transform: none !important;
  background: var(--d4-navy) !important; color: #fff !important; box-shadow: none !important; transition: background .15s, color .15s, border-color .15s;
}
body.d4 .light_bluebtn { background: var(--d4-blue) !important; }
body.d4 .light_bluebtn:hover, body.d4 .btn-primary:hover, body.d4 .save-btn:hover { background: #0e2d4c !important; color: #fff !important; }
body.d4 .bluebtn_outline { background: #fff !important; color: var(--d4-navy) !important; border-color: var(--d4-line) !important; }
body.d4 .bluebtn_outline:hover { border-color: var(--d4-navy) !important; color: var(--d4-navy) !important; background: #fff !important; }
body.d4 .btn-danger, body.d4 button.swal2-cancel, body.d4 .sweet-alert button.cancel { border-radius: 999px !important; font-weight: 900 !important; }
body.d4 .btn-right { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* Tables */
body.d4 .sales_leadtablemain, body.d4 .table-responsive { background: transparent; }
body.d4 .sales_leadtable { border-collapse: collapse; width: 100%; }
body.d4 .sales_leadtable th { background: transparent !important; color: var(--d4-muted) !important; font-size: 11px !important; font-weight: 950 !important; letter-spacing: .12em !important; text-transform: uppercase !important; padding: 10px 12px !important; border: 0 !important; border-bottom: 1px solid var(--d4-line) !important; border-radius: 0 !important; }
body.d4 .sales_leadtable th:first-child { padding-left: 12px !important; }
body.d4 .sales_leadtable td { color: var(--d4-text) !important; font-size: 14px !important; padding: 12px 12px !important; border: 0 !important; border-bottom: 1px solid var(--d4-line-soft) !important; }
body.d4 .sales_leadtable td:first-child { font-weight: 900; color: var(--d4-navy) !important; }
body.d4 .sales_leadtable tr.tr_red td { color: var(--d4-red) !important; }
body.d4 .sales_leadtable tbody tr:hover td { background: var(--d4-soft); }
body.d4 .in-status, body.d4 .invo-tag { border-radius: 999px !important; height: auto !important; width: auto !important; padding: 4px 10px !important; font-size: 11px !important; font-weight: 900 !important; letter-spacing: .06em !important; line-height: 1.4 !important; background: var(--d4-line-soft) !important; color: var(--d4-text) !important; border: 0 !important; }
body.d4 .in-status.paid { background: var(--d4-green-soft) !important; color: var(--d4-green) !important; }
body.d4 .in-status.pending { background: var(--d4-yellow-soft) !important; color: #9a6200 !important; }
body.d4 .in-status.overdue, body.d4 .in-status.reported, body.d4 .payment-monitor .in-status.pending { background: var(--d4-red-soft) !important; color: var(--d4-red) !important; }

/* DataTables shell */
body.d4 .dataTables_wrapper { padding: 16px 18px 18px; }
body.d4 .dataTables_length label, body.d4 .dataTables_filter label, body.d4 .dataTables_info { color: var(--d4-muted); font-size: 13px; font-weight: 700; }
body.d4 .dataTables_wrapper .pagination { display: flex; gap: 6px; justify-content: flex-end; }
body.d4 .dataTables_wrapper .paginate_button a, body.d4 .dataTables_wrapper .paginate_button span, body.d4 .new-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--d4-line); background: #fff; color: var(--d4-navy) !important; font-weight: 800; font-size: 13px; }
body.d4 .dataTables_wrapper .paginate_button.active a, body.d4 .dataTables_wrapper .paginate_button.active span, body.d4 .new-pagination .page-numbers.current { background: var(--d4-navy); border-color: var(--d4-navy); color: #fff !important; }
body.d4 .new-pagination { gap: 6px; }
body.d4 .new-pagination .page-numbers::after, body.d4 .new-pagination .page-numbers::before { content: none !important; }
body.d4 .my-pagination p { color: var(--d4-muted); font-weight: 700; }

/* Forms — every text control, whatever legacy class it carries */
body.d4 input:where(:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not(.d4-pill)), body.d4 select, body.d4 textarea {
  min-height: 42px; border: 1px solid var(--d4-line) !important; border-radius: var(--d4-radius-sm) !important; background: #fff !important; color: var(--d4-ink) !important;
  font-family: Roboto, sans-serif !important; font-size: 14px !important; padding: 8px 14px !important; box-shadow: none !important;
}
body.d4 input:where(:not([type="checkbox"]):not([type="radio"])):focus, body.d4 select:focus, body.d4 textarea:focus { border-color: var(--d4-blue) !important; box-shadow: none !important; outline: 0; }
body.d4 input::placeholder, body.d4 textarea::placeholder { color: #98a2b3; }
body.d4 input[type="search"] { padding-left: 38px !important; }
/* A search box with an icon laid over its left edge (directory, vendors, payment monitor, act-as) */
body.d4 .banner_textbox:has(> svg) input, body.d4 .banner_textbox:has(> img) input, body.d4 .dt-input, body.d4 .dataTables_filter input, body.d4 .vuetable-filter input, body.d4 .act-as-box input.form-control { padding-left: 40px !important; }
body.d4 .banner_textbox > svg { left: 14px; }
body.d4 .search-input { position: relative; }
body.d4 .search-input input { padding-left: 40px !important; }
body.d4 .search-input > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--d4-muted); }
body.d4 .form-control, body.d4 .banner_textbox input, body.d4 .banner_textbox textarea, body.d4 .banner_select select, body.d4 .banner_textbox select, body.d4 select.form-select, body.d4 input.form-control, body.d4 textarea.form-control {
  min-height: 42px; border: 1px solid var(--d4-line) !important; border-radius: var(--d4-radius-sm) !important; background: #fff !important; color: var(--d4-ink) !important;
  font-family: Roboto, sans-serif !important; font-size: 14px !important; padding: 8px 14px !important; box-shadow: none !important; transition: border-color .15s, box-shadow .15s;
}
body.d4 .form-control:focus, body.d4 .banner_textbox input:focus, body.d4 .banner_textbox textarea:focus, body.d4 .banner_select select:focus { border-color: var(--d4-blue) !important; box-shadow: none !important; outline: 0; }
body.d4 .form-control.is-invalid, body.d4 .banner_textbox input.is-invalid { border-color: var(--d4-red) !important; }
body.d4 .form-label, body.d4 .shipment-lable, body.d4 .account_label, body.d4 .label_css, body.d4 label.css-label, body.d4 .banner_textbox label, body.d4 .banner_select label { color: var(--d4-navy) !important; font-size: 12.5px !important; font-weight: 800 !important; letter-spacing: 0; text-transform: none; }
body.d4 .field-error, body.d4 .errormsg, body.d4 .error_msg, body.d4 .form-error { color: var(--d4-red); font-size: 12.5px; font-weight: 700; }
body.d4 .alert { border-radius: 12px; border: 1px solid var(--d4-line); font-weight: 600; }
body.d4 .alert-danger { background: var(--d4-red-soft); color: var(--d4-red); border-color: #f3c2c2; }

/* Latest news rail on inner pages */
body.d4 .latest-news-fix { padding: 18px 18px 20px !important; position: sticky; top: calc(var(--d4-header-h) + 16px); }
body.d4 .latest-news-item { padding: 12px 0; border-bottom: 1px solid var(--d4-line-soft); }
body.d4 .latest-news-item > a { font-weight: 900; color: var(--d4-navy); font-size: 14px; line-height: 1.35; display: block; }
body.d4 .latest-news-item .ln-footer { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
body.d4 .latest-news-item .ln-footer img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; border: 1px solid var(--d4-line-soft); }
body.d4 .latest-news-item .ln-footer p { margin: 0; font-size: 12px; color: var(--d4-muted); font-weight: 700; }
body.d4 .latest-news-item .ln-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
body.d4 .ln-cta { margin-top: 14px; }


/* Variant c: content is centred; inner pages keep the side rail but narrower */
body.d4.d4-c .latest-news-row__news .latest-news-fix { top: calc(var(--d4-header-h) + 70px); }

/* Members / vendors directory cards */
body.d4 .member-list-main .me-content .title-with-badge a, body.d4 .member-list-main .me-content h4, body.d4 .member-list-main .me-content h5 { color: var(--d4-navy) !important; font-weight: 900; }
body.d4 .network-badge { border-radius: 999px; font-weight: 900; font-size: 11px; letter-spacing: .05em; }
body.d4 .filters, body.d4 .member-filters { background: #fff; border: 1px solid var(--d4-line); border-radius: var(--d4-radius); box-shadow: var(--d4-shadow); padding: 16px 18px; }

/* Modals, SweetAlerts, tabs */
body.d4 .modal-content { border-radius: var(--d4-radius); border: 1px solid var(--d4-line); box-shadow: 0 30px 80px rgba(12, 36, 61, .25); }
body.d4 .modal-header { border-bottom: 1px solid var(--d4-line-soft); }
body.d4 .modal-header .m-title, body.d4 .modal-title { color: var(--d4-navy); font-weight: 900; }
body.d4 .swal2-popup, body.d4 .sweet-alert { border-radius: var(--d4-radius) !important; font-family: Roboto, sans-serif !important; }
body.d4 .nav-tabs .nav-link, body.d4 .tab { border-radius: 999px; font-weight: 800; color: var(--d4-text); }
body.d4 .nav-tabs .nav-link.active, body.d4 .tab.active { background: var(--d4-navy); color: #fff; border-color: var(--d4-navy); }

/* Skeletons stay in the family */
body.d4 .skeleton-box { border-radius: 12px; }

/* Login pages (layouts/auth.vue keeps its markup) */
body.d4 .login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body.d4 .login .auth-content { max-width: 440px; margin: 0 auto; padding: 56px 24px; }
body.d4 .login .auth-banner { background: linear-gradient(160deg, var(--d4-navy) 0%, var(--d4-blue) 100%); color: #fff; display: flex; align-items: center; justify-content: center; }
body.d4 .login .auth-banner .auth-content { background: transparent; }
body.d4 .login .auth-banner .subtitle2, body.d4 .login .auth-banner p { color: #fff; }
body.d4 .login .network-box img { width: 150px; background: #fff; border-radius: 12px; padding: 10px; }
body.d4 .login h1, body.d4 .login h2, body.d4 .login h3 { color: var(--d4-navy); font-weight: 900; }
body.d4 .login .copyright { color: var(--d4-muted); font-size: 12.5px; margin-top: 32px; }
body.d4 .login .copyright a { color: var(--d4-blue); font-weight: 700; }
body.d4 .login input.form-control { min-height: 46px; }
body.d4 .login button[type="submit"], body.d4 .login .light_bluebtn, body.d4 .login .btn-primary { width: 100% !important; min-height: 46px; }
@media (max-width: 900px) { body.d4 .login { grid-template-columns: minmax(0, 1fr); } body.d4 .login .auth-banner { display: none; } }

/* ── Inner pages, second pass (compared against design 4's system, 2026-09-14) ─────────────────────
   The ported theme colours everything from its own variables; pointing them at design 4's tokens recolours the
   legacy buttons, links and accents in one go. The blocks below are the ones that hard-code the old navy or the
   old light blue. */
body.d4 {
  --ureg-primary-color: #12385f; --ureg-primary-rgb: 18, 56, 95;
  --ureg-secondary-color: #2287c9; --ureg-secondary-rgb: 34, 135, 201;
  --ureg-button-bg-idle: #12385f; --ureg-button-bg-rgb-idle: 18, 56, 95;
  --ureg-button-border-idle: #12385f; --ureg-button-border-rgb-idle: 18, 56, 95;
  --ureg-button-border-hover: #12385f; --ureg-button-border-rgb-hover: 18, 56, 95;
  --ureg-button-color-hover: #12385f; --ureg-button-color-rgb-hover: 18, 56, 95;
  --ureg-header-font-color: #12385f; --ureg-header-rgb: 18, 56, 95;
  --ureg-content-color: #25364a; --ureg-content-rgb: 37, 54, 74;
  --ureg-quaternary-color: #667085; --ureg-quaternary-rgb: 102, 112, 133;
}

/* Page header: the breadcrumb is the eyebrow ABOVE the title, as every design 4 section is headed */
body.d4 .page-header_content { display: flex !important; flex-direction: column-reverse !important; align-items: flex-start !important; justify-content: flex-start !important; gap: 6px; }
body.d4 .page-header_breadcrumbs { margin: 0 !important; }

/* Cards that kept the theme's 5px corner */
body.d4 .download-item, body.d4 .news-main, body.d4 .contact-box, body.d4 .find-offices, body.d4 .calendar-stage, body.d4 .fc-scrollgrid, body.d4 .account-card, body.d4 .shipment_popupcontent, body.d4 .act-as-box {
  border-radius: var(--d4-radius) !important; border: 1px solid var(--d4-line); box-shadow: var(--d4-shadow) !important;
}
body.d4 .news-main { overflow: hidden; }
body.d4 .news-main .card-title, body.d4 .news-main .title { color: var(--d4-navy); font-weight: 900; }
body.d4 .download-item { background: #fff; }

/* Contact cards on a company profile: the header band takes the design's navy */
body.d4 .cb-header { background: var(--d4-navy) !important; border-radius: var(--d4-radius) var(--d4-radius) 0 0; }
body.d4 .add-contact-box { background: var(--d4-soft) !important; border: 1px dashed var(--d4-line) !important; box-shadow: none !important; display: flex; align-items: center; justify-content: center; }

/* Light-blue strips → the design's soft blue */
body.d4 .attended-meetings, body.d4 .next-meeting-banner, body.d4 .member-branches, body.d4 .country-notice { background: var(--d4-blue-soft) !important; border-radius: 12px !important; box-shadow: none !important; }
body.d4 .attended-meetings h4 { color: var(--d4-navy); }
body.d4 .departed-members-link a { border-radius: 999px !important; border: 1px solid var(--d4-navy); background: #fff !important; color: var(--d4-navy) !important; font-weight: 900 !important; min-height: 42px; display: inline-flex !important; align-items: center; justify-content: center; font-weight: 900; overflow: hidden; }
body.d4 .departed-members-link a span { background: transparent !important; }

/* "Follow us" box → the design's navy tile */
body.d4 .social-box { background: var(--d4-navy) !important; color: #fff; border-radius: var(--d4-radius) !important; box-shadow: var(--d4-shadow) !important; }
body.d4 .social-box p, body.d4 .social-box h3, body.d4 .social-box h4, body.d4 .social-box span { color: #fff !important; }
body.d4 .social-box a { background: rgba(255, 255, 255, .12) !important; border-color: rgba(255, 255, 255, .3) !important; color: #fff !important; }
body.d4 .social-box a svg, body.d4 .social-box a i { color: #fff !important; fill: #fff !important; }

/* Network badges and member links on the directory */
body.d4 .network-badge.pangea { background: var(--d4-blue) !important; border-color: var(--d4-blue) !important; color: #fff !important; }
body.d4 .network-badge.connecta { background: var(--d4-yellow) !important; border-color: var(--d4-yellow) !important; color: var(--d4-ink) !important; }
body.d4 .member-website { color: var(--d4-muted) !important; }

/* Holiday Calendar page (FullCalendar): the navy toolbar band becomes a white card header, the day names an eyebrow row */
body.d4 .calendar-stage { background: #fff; padding: 8px 18px 18px; overflow: hidden; }
body.d4 .fc-header-toolbar { background: transparent !important; height: auto !important; padding: 14px 4px !important; margin-bottom: 8px !important; border-bottom: 1px solid var(--d4-line); border-radius: 0 !important; }
body.d4 .fc .fc-toolbar-title { color: var(--d4-navy) !important; font: 900 20px Roboto, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; }
body.d4 .fc .fc-button { background: var(--d4-soft) !important; border: 0 !important; color: var(--d4-navy) !important; width: 34px; height: 34px; border-radius: 999px !important; padding: 0 !important; box-shadow: none !important; }
body.d4 .fc .fc-button:hover { background: var(--d4-blue-soft) !important; }
body.d4 .fc .fc-col-header-cell { background: transparent !important; }
body.d4 .fc .fc-col-header-cell-cushion { color: var(--d4-muted) !important; font: 950 11px Roboto, sans-serif !important; letter-spacing: .12em !important; text-transform: uppercase !important; padding: 10px 0 !important; }
body.d4 .fc-theme-standard td, body.d4 .fc-theme-standard th, body.d4 .fc-theme-standard .fc-scrollgrid { border-color: var(--d4-line-soft) !important; }
body.d4 .fc-scrollgrid { border-radius: 12px !important; overflow: hidden; box-shadow: none !important; border: 1px solid var(--d4-line-soft) !important; }
body.d4 .fc .fc-daygrid-day-number { color: var(--d4-navy) !important; font-weight: 800 !important; font-size: 13px !important; }
body.d4 .fc .fc-day-today { background: var(--d4-blue-soft) !important; }
body.d4 .fc .fc-daygrid-day.fc-day-other .fc-daygrid-day-number { color: #b8c3cf !important; }

/* Forms: the shipment form's wide submit and the theme's remaining square buttons */
body.d4 .light_blue.btn, body.d4 .btn.btn-wide, body.d4 input[type="submit"].btn, body.d4 button.btn:not(.btn-link) {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 42px; height: auto !important; padding: 0 22px !important;
  border-radius: 999px !important; border: 1px solid transparent !important; background: var(--d4-navy) !important; color: #fff !important;
  font: 900 13.5px Roboto, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; box-shadow: none !important;
}
body.d4 .btn.btn-danger, body.d4 button.btn.btn-danger { background: var(--d4-red) !important; }
body.d4 .btn-link { color: var(--d4-blue) !important; font-weight: 800; }

/* Checkboxes and radios in the theme's forms */
body.d4 .css-checkbox + .css-label::before, body.d4 .cb1 + label::before { border-radius: 6px; border-color: var(--d4-line); }
body.d4 .fc .fc-col-header, body.d4 .fc-col-header th, body.d4 .fc .fc-scrollgrid-section-header > *, body.d4 .fc .fc-scrollgrid-section-header table { background: transparent !important; border-radius: 0 !important; }
body.d4 .fc .fc-col-header-cell { border-bottom: 1px solid var(--d4-line) !important; }
body.d4 .social-box a { background: rgba(255, 255, 255, .18) !important; }
body.d4 .fc thead, body.d4 .fc-scrollgrid-section-header, body.d4 .fc-scrollgrid-section-header > th { background: transparent !important; }
body.d4 .dataTables_wrapper .paginate_button.active a, body.d4 .dataTables_wrapper .paginate_button.active span { background: var(--d4-navy) !important; border-color: var(--d4-navy) !important; color: #fff !important; }

/* Banner overlay, as design 4 draws it over the photo */
body.d4 .d4-banner__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 16, 31, 0) 35%, rgba(4, 16, 31, .82) 100%); }
body.d4 .d4-banner__body { position: absolute; left: 28px; right: 28px; bottom: 26px; display: grid; gap: 8px; justify-items: start; color: #fff; }
body.d4 .d4-banner__body .d4-eyebrow { color: var(--d4-yellow); }
body.d4 .d4-banner__title { font-size: 26px; line-height: 1.1; font-weight: 900; color: #fff; max-width: 70%; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
body.d4 .d4-banner__body .d4-pill { margin-top: 6px; }
/* One tile beside the banner (staff): keep its natural height instead of a tall block */

/* Calendar card: the month arrows sit beside the "Sep 2026" meta, the grid is headed by one letter per day */
body.d4 .d4-calendar { position: relative; }
body.d4 .d4-calendar .vc { position: static; }
body.d4 .d4-calendar .vc-header { position: absolute; top: 16px; right: 82px; padding: 0; width: auto; gap: 2px; }
body.d4 .d4-calendar .vc-header__content { display: none; }
body.d4 .d4-calendar .vc-week__day { font-size: 11px; letter-spacing: 0; }

/* ── Tables everywhere, as design 4 draws the Payment Monitor: eyebrow headers, no vertical rules, hairline rows ── */
body.d4 .d4-main table { border-collapse: collapse !important; border-spacing: 0; width: 100%; background: transparent !important; border: 0 !important; }
body.d4 .d4-main table th, body.d4 .d4-main table td { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; background-image: none !important; vertical-align: middle; }
body.d4 .d4-main table thead th, body.d4 .d4-main table thead td {
  background: transparent !important; color: var(--d4-muted) !important; font: 950 11px Roboto, sans-serif !important; letter-spacing: .12em !important; text-transform: uppercase !important;
  padding: 10px 12px !important; border-bottom: 1px solid var(--d4-line) !important; white-space: nowrap;
}
body.d4 .d4-main table thead th::before, body.d4 .d4-main table thead th::after { display: none !important; }
body.d4 .d4-main table tbody td { padding: 12px 12px !important; border-bottom: 1px solid var(--d4-line-soft) !important; color: var(--d4-text) !important; font-size: 14px !important; background: transparent !important; }
body.d4 .d4-main table tbody tr:last-child td { border-bottom: 0 !important; }
body.d4 .d4-main table tbody tr:hover td { background: var(--d4-soft) !important; }
body.d4 .d4-main table tbody td:first-child, body.d4 .d4-main table tbody td:first-child a { font-weight: 900; color: var(--d4-navy) !important; }
body.d4 .d4-main table tbody td a { color: var(--d4-blue); font-weight: 700; }
body.d4 .d4-main table tbody tr.tr_red td, body.d4 .d4-main table tbody tr.tr_red td a { color: var(--d4-red) !important; }
body.d4 .d4-main .table-responsive, body.d4 .d4-main .dataTables_wrapper .row { border: 0 !important; box-shadow: none !important; background: transparent !important; }
/* sort glyphs the theme draws as images beside a header */
body.d4 .d4-main table thead th img, body.d4 .d4-main table thead th svg { width: 12px; height: 12px; opacity: .6; vertical-align: middle; }

/* The banner used as the only event card keeps the banner's own ratio */
body.d4 .d4-event--banner .d4-event__art { aspect-ratio: 1071 / 436; min-height: 0; }

/* Sign-in pages: the form column centred, the app panel as the design's navy tile filling the right half */
body.d4 .login { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; min-height: 100vh; width: 100% !important; max-width: none !important; }
body.d4 .login > div { width: auto !important; max-width: none !important; flex: none !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px !important; }
body.d4 .login > div:first-child { background: transparent; }
body.d4 .login .auth-content { width: 100%; max-width: 440px !important; margin: 0 auto !important; padding: 0 !important; }
body.d4 .login .auth-banner { background: linear-gradient(160deg, var(--d4-navy) 0%, var(--d4-blue) 100%) !important; }
body.d4 .login .auth-banner .auth-content { display: grid; gap: 28px; justify-items: start; color: #fff; max-width: 420px !important; }
body.d4 .login .auth-banner .network-box { display: grid; gap: 12px; }
body.d4 .login .auth-banner .network-box img { width: 150px; background: #fff; border-radius: 14px; padding: 12px; margin: 0 0 8px; }
body.d4 .login .auth-banner .subtitle2 { margin: 0; font-size: 26px; font-weight: 900; color: #fff; line-height: 1.15; }
body.d4 .login .auth-banner p { color: rgba(255, 255, 255, .85); font-size: 15px; margin: 0; }
body.d4 .login .store-links { display: flex !important; align-items: center; gap: 18px; flex-wrap: wrap; visibility: visible !important; opacity: 1 !important; height: auto !important; }
body.d4 .login .store-links .panco-qr { width: 96px; height: 96px; background: #fff; border-radius: 12px; padding: 6px; }
body.d4 .login .app-store-btns { display: flex; flex-direction: column; gap: 8px; }
body.d4 .login .app-store-btns img { height: 42px; width: auto; }
body.d4 .login label, body.d4 .login .form-label { color: var(--d4-navy); font-weight: 800; font-size: 12.5px; }
body.d4 .login .copyright { position: static !important; margin-top: 40px; }
body.d4 .login .light_bluebtn, body.d4 .login .btn-primary, body.d4 .login button[type="submit"] { width: 100% !important; min-height: 46px; }
@media (max-width: 900px) { body.d4 .login { grid-template-columns: minmax(0, 1fr) !important; } body.d4 .login .auth-banner { display: none !important; } }

/* Small yellow pill (the design's "See all") and the rail of pills below the sticky-less header */
body.d4 .d4-pill--sm { min-height: 38px; padding: 0 16px; font-size: 13px; gap: 6px; }
body.d4 .d4-pill--sm .iconify { width: 14px; height: 14px; }
body.d4 .latest-news-fix { top: 16px; }
body.d4.d4-c .d4-side { top: 0; }

/* Payment Monitor / DataTables chrome */
body.d4 .shipment_tablebtn { display: block !important; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; height: auto !important; width: auto !important; }
body.d4 .dt-paging { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
body.d4 .dt-paging .dt-paging-button, body.d4 .dt-paging a, body.d4 .dt-paging button { display: inline-flex !important; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px !important; border-radius: 999px !important; border: 1px solid var(--d4-line) !important; background: #fff !important; color: var(--d4-navy) !important; font: 800 13px Roboto, sans-serif !important; text-decoration: none !important; margin: 0 !important; }
body.d4 .dt-paging .dt-paging-button.current, body.d4 .dt-paging .current, body.d4 .dt-paging [aria-current] { background: var(--d4-navy) !important; border-color: var(--d4-navy) !important; color: #fff !important; }
body.d4 .dt-paging .disabled { opacity: .4; pointer-events: none; }
body.d4 .dt-info { color: var(--d4-muted); font-size: 13px; font-weight: 700; }
body.d4 .dt-column-order { opacity: .45; }
body.d4 .dt-column-order::before, body.d4 .dt-column-order::after { font-size: 9px !important; }
body.d4 .dt-search::after { opacity: .5; }
body.d4 .dt-search input { height: 42px !important; }
body.d4 .dt-length select, body.d4 .dt-length input { width: 76px; text-align: center; }
body.d4 .btn-outline { display: inline-flex !important; align-items: center; min-height: 42px; padding: 0 18px !important; border-radius: 999px !important; border: 1px solid var(--d4-navy) !important; color: var(--d4-navy) !important; background: #fff !important; font: 900 13.5px Roboto, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
body.d4 #PaymentMonitorList_wrapper .dt-paging nav { gap: 6px !important; }
body.d4 #PaymentMonitorList_wrapper .dt-paging-button { display: inline-flex !important; align-items: center; justify-content: center; min-width: 34px !important; height: 34px !important; padding: 0 10px !important; border-radius: 999px !important; border: 1px solid var(--d4-line) !important; background: #fff !important; color: var(--d4-navy) !important; font: 800 13px Roboto, sans-serif !important; }
body.d4 #PaymentMonitorList_wrapper .dt-paging-button.current { background: var(--d4-navy) !important; border-color: var(--d4-navy) !important; color: #fff !important; }
body.d4 #PaymentMonitorList_wrapper .dt-paging-button::after, body.d4 #PaymentMonitorList_wrapper .dt-paging-button::before { display: none !important; }
body.d4 .shipment_tablebtn.mt-3 { margin-top: 16px !important; display: flex !important; justify-content: flex-end; }

/* ── Audit round 1 (2026-09-14): shapes the recoloured legacy sheets still draw square ── */
body.d4 .listing-box, body.d4 .ff-logo, body.d4 .latest-horizontal-news, body.d4 .add-user-card, body.d4 .add-location, body.d4 .contactinfo_new_item, body.d4 .account-card, body.d4 .news-content { border-radius: var(--d4-radius) !important; }
body.d4 .calendar-stage button.add, body.d4 .calendar-stage button.delete, body.d4 .holidays .add, body.d4 .holidays .delete { display: inline-flex !important; align-items: center; min-height: 30px; padding: 0 12px !important; border-radius: 999px !important; border: 1px solid var(--d4-line) !important; background: #fff !important; color: var(--d4-navy) !important; font: 800 11px Roboto, sans-serif !important; letter-spacing: .04em; }
body.d4 .calendar-stage button.delete { color: var(--d4-red) !important; }
body.d4 label.choose-btn { display: inline-flex !important; align-items: center; min-height: 40px; padding: 0 18px !important; border-radius: 999px !important; background: var(--d4-navy) !important; color: #fff !important; font: 900 13.5px Roboto, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; }
body.d4 .network-badge.vendor { background: var(--d4-navy) !important; border-color: var(--d4-navy) !important; color: #fff !important; }
body.d4 .network-badge.service { background: var(--d4-soft) !important; border-color: var(--d4-line) !important; color: var(--d4-text) !important; }
body.d4 .member-branches { border-color: var(--d4-line) !important; }
body.d4 .custom-nav li a { font-weight: 800 !important; letter-spacing: 0 !important; text-transform: none !important; font-size: 13.5px !important; color: var(--d4-text) !important; }
body.d4 .custom-nav li a.active, body.d4 .custom-nav li.active a { color: var(--d4-navy) !important; }
body.d4 .find-offices h4 { font-size: 20px !important; margin-bottom: 18px !important; }
body.d4 .latest-news-title svg { display: none; }
body.d4 .contact-icon { background: var(--d4-navy) !important; border-radius: 50%; }
body.d4 .load-more__count, body.d4 .vuetable-pagination-info, body.d4 .dt-info, body.d4 .help-text, body.d4 .img-details, body.d4 .subtitle { color: var(--d4-muted) !important; }
body.d4 .social-icons svg .icon-bg, body.d4 .social-icon svg .icon-bg { fill: var(--d4-navy) !important; }
body.d4 .dt-length, body.d4 .dt-length label { color: var(--d4-muted) !important; }
body.d4 .departed-notice p, body.d4 .departed-notice strong { color: var(--d4-text) !important; }
/* Company profile: the coordinator tag as a pill, the location tabs on the wash instead of a light-blue band */
body.d4 .coordinator-label { position: absolute; top: 10px; right: 10px; background: var(--d4-yellow) !important; color: var(--d4-ink) !important; border-radius: 999px !important; padding: 4px 10px !important; font: 900 11px Roboto, sans-serif !important; letter-spacing: .06em; text-transform: uppercase; z-index: 2; }
body.d4 .member-branches { background: transparent !important; border: 0 !important; padding: 0 !important; }
body.d4 .custom-nav li a { border-radius: 999px !important; padding: 10px 16px !important; border: 1px solid var(--d4-line) !important; background: #fff !important; margin-right: 8px; }
body.d4 .custom-nav li a.active, body.d4 .custom-nav li.active a { background: var(--d4-navy) !important; border-color: var(--d4-navy) !important; color: #fff !important; }
body.d4 .custom-nav li a.active::after, body.d4 .custom-nav li a::after { display: none !important; }
body.d4 .custom-nav .add-new-loca { border-style: dashed !important; color: var(--d4-blue) !important; }

/* List pages: a table that is not already inside a card gets the card */
body.d4 .intranet_content .table-responsive:not(.d4-section .table-responsive):not(.dt-container .table-responsive):not(.shipment_popupcontent .table-responsive) { background: #fff; border: 1px solid var(--d4-line); border-radius: var(--d4-radius); box-shadow: var(--d4-shadow); padding: 6px 12px; }
html body.d4.d4 .new-pagination .page-numbers, html body.d4.d4 .left-pagination .page-numbers { display: inline-flex !important; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 999px !important; border: 1px solid var(--d4-line) !important; background: #fff !important; color: var(--d4-navy) !important; font: 800 13px Roboto, sans-serif !important; text-decoration: none !important; }
html body.d4.d4 .new-pagination .page-numbers.current, html body.d4.d4 .left-pagination .page-numbers.current { background: var(--d4-navy) !important; border-color: var(--d4-navy) !important; color: #fff !important; }
html body.d4.d4 .new-pagination .page-numbers::before, html body.d4.d4 .new-pagination .page-numbers::after { display: none !important; }
body.d4 .social-icons .social-icon svg path:not(.icon-bg), body.d4 .social-icons .social-icon svg rect:not(.icon-bg) { fill: #fff; }

body.d4 .fc thead td, body.d4 .fc .fc-scrollgrid-section-header td, body.d4 .fc .fc-scrollgrid-section-header table, body.d4 .fc .fc-scrollgrid-section > td { border: 0 !important; }
body.d4 .latest-news-title::before, body.d4 .latest-news-title::after { display: none !important; content: none !important; }

/* legacy `li { margin-bottom: 11px }` reached the shell lists */
html body.d4.d4 .d4-side li, html body.d4.d4 .d4-drawer li, html body.d4.d4 .d4-footer__links li { margin: 0 !important; padding: 0 !important; }

body.d4 .d4-tile__icon.is-neutral { background: var(--d4-blue-soft); color: var(--d4-blue); }

/* "Shipments in motion": the design's second-row card beside the banner (Online Members' place), the same chip row */
body.d4 .d4-motion { grid-column: 2 / span 2; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
body.d4 .d4-motion__head { display: flex; align-items: center; justify-content: space-between; }
body.d4 .d4-motion__head h4 { margin: 0; font-size: 17px; }
body.d4 .d4-motion__chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.d4 .d4-motion__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 12px; border: 1px solid var(--d4-line); border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--d4-muted); white-space: nowrap; }
body.d4 .d4-motion__chip:hover { border-color: var(--d4-navy); }
body.d4 .d4-motion__chip b { color: var(--d4-navy); font-weight: 900; }
body.d4 .d4-motion__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--d4-blue); }
body.d4 .d4-motion__dot.is-new { background: var(--d4-green); }
body.d4 .d4-motion__dot.is-open { background: var(--d4-yellow); }

body.d4 .intro-box { border-radius: var(--d4-radius) !important; }
body.d4 .d4-motion__chip--action { color: var(--d4-navy); font-weight: 900; }
body.d4 .d4-motion__chip--action .iconify { width: 14px; height: 14px; color: var(--d4-blue); }

/* Shipments list — the design keeps tables inside a white card; toolbar, table, pager and export share it */
body.d4 .d4-main .sales_leadtablemain { background: #fff; border: 1px solid var(--d4-line); border-radius: var(--d4-radius); box-shadow: var(--d4-shadow); padding: 20px 20px 18px; }
body.d4 .sales_leadtablemain .row:has(> div > .vuetable-filter-bar) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
body.d4 .sales_leadtablemain .row:has(> div > .vuetable-filter-bar) > [class*="col-"] { flex: 0 1 auto; width: auto; max-width: none; padding: 0 !important; margin: 0 !important; }
body.d4 .sales_leadtablemain .row:has(> div > .vuetable-filter-bar) > .shipment_tablebtn { margin-left: auto !important; display: flex !important; justify-content: flex-end; flex: 0 0 auto; }
body.d4 .vuetable-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 !important; }
body.d4 .vuetable-filter { flex: 0 1 320px; width: 320px; min-width: 0; max-width: 100%; }
body.d4 .vuetable-filter::before { content: '' !important; left: 0; top: 0; width: 40px; height: 42px; padding: 0 !important; display: flex; align-items: center; justify-content: center; z-index: 2;
  background: var(--d4-muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center / 16px 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
body.d4 .vuetable-filter input.form-control { margin: 0 !important; height: 42px; min-height: 42px; min-width: 0; width: 100%; padding-left: 40px !important; background: #fff !important; }
body.d4 .vuetable-length { margin: 0 !important; gap: 8px; color: var(--d4-muted); font-size: 13px; font-weight: 700; }
body.d4 .vuetable-length label { margin: 0; color: var(--d4-muted); font-size: 13px; font-weight: 700; }
body.d4 .vuetable-length select.form-control { width: 76px; min-width: 76px; text-align: center; padding: 8px 10px !important; }
body.d4 .sales_leadtablemain .show-deleted { margin-left: 4px !important; color: var(--d4-muted); font-size: 13px; font-weight: 700; }
body.d4 .sales_leadtablemain .table-responsive { margin: 0 !important; padding: 0 !important; }
body.d4 .vuetable-pagination { margin: 14px 0 0 !important; }
body.d4 .vuetable-pagination-info, body.d4 .vuetable-pagination-info p { color: var(--d4-muted); font-size: 13px; font-weight: 700; margin: 0; }
body.d4 ul.pagination { display: flex; gap: 6px; align-items: center; margin: 0 !important; padding: 0; list-style: none; }
body.d4 ul.pagination li { margin: 0 !important; }
body.d4 ul.pagination li a, body.d4 ul.pagination li span { display: inline-flex !important; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px !important; border-radius: 999px !important; border: 1px solid var(--d4-line) !important; background: #fff !important; color: var(--d4-navy) !important; font: 800 13px Roboto, sans-serif !important; text-decoration: none !important; margin: 0 !important; }
body.d4 ul.pagination li.active a, body.d4 ul.pagination li.active span, body.d4 ul.pagination li a[aria-current] { background: var(--d4-navy) !important; border-color: var(--d4-navy) !important; color: #fff !important; }
body.d4 ul.pagination li.disabled a { opacity: .4; pointer-events: none; }
body.d4 .mc_btnmain.shipment_tablebtn { display: flex !important; justify-content: flex-end; margin-top: 16px !important; }
body.d4 ul.pagination li a::after, body.d4 ul.pagination li a::before { display: none !important; }
html:has(> body.d4) { height: auto !important; min-height: 100%; background: var(--d4-soft, #f3f8fc); }
/* Payment monitor search: the component's legacy icon file is gone — draw the same glyph as the other search boxes */
body.d4 #PaymentMonitorList_wrapper .dt-search::after { content: ''; width: 16px !important; height: 16px !important; left: 14px !important; top: 50% !important; transform: translateY(-50%); opacity: 1 !important; background: var(--d4-muted) !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center / 16px 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }

/* Article share row: outlined circles with a navy glyph (the banner rules above paint the filled legacy squares) */
body.d4 .news-content .social-icons svg rect { fill: transparent !important; stroke: var(--d4-navy); }
body.d4 .news-content .social-icons svg path { fill: var(--d4-navy) !important; }
/* DataTables chrome (My Users / My Locations): icon indent must beat the generic form-control rule; labels sit on the select's centre line */
body.d4 .dataTables_filter input.form-control { padding-left: 40px !important; }
body.d4 .dataTables_length label { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
body.d4 .dataTables_length select.form-control { width: 76px; min-width: 76px; text-align: center; padding: 8px 10px !important; }
/* Holiday calendar page: compact day cells (the legacy cell reserved 180px for holiday labels) and a single header line */
body.d4 .calendar-stage .holidays { height: auto !important; min-height: 40px; }
body.d4 .calendar-stage .actions { margin-top: 6px !important; }
body.d4 .calendar-stage .fc-daygrid-day-frame { min-height: 112px; }
body.d4 .calendar-stage .fc .fc-scrollgrid-section-header > th, body.d4 .calendar-stage .fc .fc-scrollgrid-section-header > td { padding: 0 !important; border: 0 !important; }
/* Shipment detail: the invoice and file tables live in cards like every other list */
body.d4 .d4-main .about_desp .table-responsive.box-shadow { background: #fff !important; border: 1px solid var(--d4-line) !important; border-radius: var(--d4-radius) !important; box-shadow: var(--d4-shadow) !important; padding: 6px 20px 10px; margin-bottom: 16px; }
/* Company profile: the certificates card reads top-down like its neighbours */
body.d4 .member-certificates .listing-box { display: block !important; }
body.d4 .member-certificates .listing-box p { margin: 12px 0 0; color: var(--d4-muted); }
body.d4 .calendar-stage .fc .fc-daygrid-day-frame { height: auto !important; min-height: 112px; }
body.d4 .calendar-stage .fc .fc-daygrid-day-number { padding: 10px 8px !important; }
/* Contact — Follow us: the X icon is a Figma export (background rect + clip artefact + white glyph); make it read like its neighbours */
body.d4 .business-hours .social-icons .social-icon svg > rect { fill: transparent !important; }
body.d4 .business-hours .social-icons .social-icon svg g > rect { display: none; }
body.d4 .business-hours .social-icons .social-icon svg path { fill: var(--d4-navy) !important; }
body.d4 .calendar-stage .fc .fc-scroller { overflow: hidden !important; scrollbar-width: none; }

/* ============================================================================================
   Consistency pass — every page uses the same primitives as the home (design 4):
   card = white, 1px line, 16px radius, token shadow · primary pill = navy 42px 14/900 ·
   secondary pill = navy outline 42px 14/900 · field = 42px · page title 32/900 · card title 20/900 ·
   th 11/700 uppercase · checkbox 16px navy.
   ============================================================================================ */
/* Cards that still carried a legacy shadow */
body.d4 .listing-box, body.d4 .intro-box, body.d4 .latest-horizontal-news, body.d4 .add-user-card, body.d4 .add-location,
body.d4 .contactinfo_new_item, body.d4 .ff-logo, body.d4 .account-card, body.d4 .shipment-form-box, body.d4 .contact-box, body.d4 .find-offices {
  background: #fff !important; border: 1px solid var(--d4-line) !important; border-radius: var(--d4-radius) !important; box-shadow: var(--d4-shadow) !important;
}
body.d4 table.sales_leadtable, body.d4 table.dataTable, body.d4 .calendar-stage tbody, body.d4 .calendar-stage table { box-shadow: none !important; }
/* Primary action pills — one colour, one size */
body.d4 .light_bluebtn, body.d4 .light_blue.btn, body.d4 .form-btn, body.d4 .btn-sky, body.d4 .btn-primary, body.d4 .save-btn, body.d4 .wpcf7-form-control[type="submit"],
body.d4 .mc_btnmain .bluebtn_outline.is-primary, body.d4 .contactinfo_new_item .light_bluebtn {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 42px !important; height: 42px !important; padding: 0 20px !important;
  background: var(--d4-navy) !important; border: 1px solid var(--d4-navy) !important; color: #fff !important; border-radius: 999px !important;
  font: 900 14px/1 Roboto, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; box-shadow: none !important;
}
body.d4 .light_bluebtn:hover, body.d4 .light_blue.btn:hover, body.d4 .form-btn:hover, body.d4 .btn-sky:hover, body.d4 .btn-primary:hover, body.d4 .save-btn:hover { background: var(--d4-navy-deep) !important; border-color: var(--d4-navy-deep) !important; }
/* Secondary pills — the design's ghost: navy outline, white ground */
body.d4 .bluebtn_outline, body.d4 .btn-outline, body.d4 .find-offices a.departed-link, body.d4 .find-offices .btn {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 42px !important; height: 42px !important; padding: 0 20px !important;
  background: #fff !important; border: 1px solid var(--d4-navy) !important; color: var(--d4-navy) !important; border-radius: 999px !important;
  font: 900 14px/1 Roboto, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; box-shadow: none !important;
}
body.d4 .bluebtn_outline:hover, body.d4 .btn-outline:hover { background: var(--d4-soft) !important; }
/* Fields — 42px everywhere (toolbars already were) */
body.d4 .banner_textbox input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), body.d4 .banner_select select, body.d4 .banner_textbox select, body.d4 select.form-select, body.d4 input.form-control:not([type="checkbox"]), body.d4 select.form-control {
  height: 42px !important; min-height: 42px !important; padding-top: 0 !important; padding-bottom: 0 !important;
}
body.d4 textarea, body.d4 textarea.form-control { height: auto !important; min-height: 120px; padding-top: 10px !important; padding-bottom: 10px !important; }
/* Page titles */
body.d4 .d4-main h3.shipment-title, body.d4 .d4-main .page-title h3, body.d4 .d4-main .shipment-title, body.d4 .d4-main h2.title, body.d4 .d4-main .member-title h4, body.d4 .d4-main .ff-name h4 {
  font-size: 32px !important; font-weight: 900 !important; line-height: 1.15 !important; color: var(--d4-navy) !important;
}
/* Card / section titles */
body.d4 .d4-main .listing-box h4, body.d4 .d4-main .intro-box h4, body.d4 .d4-main .find-offices h4, body.d4 .d4-main .point-title, body.d4 .d4-main .latest-news-title,
body.d4 .d4-main .contact-details h5, body.d4 .d4-main h5.section-title, body.d4 .d4-main .add-location h4, body.d4 .d4-main .add-location h5, body.d4 .d4-main .business-hours .title, body.d4 .d4-main .attended-meetings h4,
body.d4 .d4-main .contactinfo_new_item h5, body.d4 .d4-main .add-user-card h4 {
  font-size: 20px !important; font-weight: 900 !important; line-height: 1.3 !important; color: var(--d4-navy) !important;
}
body.d4 .d4-main .contact-card h4, body.d4 .d4-main .member-contact h4 { font-size: 20px !important; font-weight: 900 !important; }
/* Table headers follow the design's monitor */
body.d4 .d4-main table thead th, body.d4 .sales_leadtable th, body.d4 .dataTable th { font-weight: 700 !important; }
/* Checkboxes and radios */
body.d4 input[type="checkbox"]:not(.css-checkbox):not(.chk-box), body.d4 input[type="radio"] { width: 16px; height: 16px; accent-color: var(--d4-navy); border-radius: 4px; cursor: pointer; vertical-align: middle; }
body.d4 .page-header_row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.d4 .page-header_actions { display: flex; align-items: center; gap: 10px; padding-bottom: 2px; }
body.d4 .sales_leadtablemain .row:has(> div > .vuetable-filter-bar)::before, body.d4 .sales_leadtablemain .row:has(> div > .vuetable-filter-bar)::after { display: none !important; content: none !important; }
/* Shipments toolbar: search on the left; "Show N entries", "Show deleted" and the action pill grouped on the right */
body.d4 .sales_leadtablemain .row:has(> div > .vuetable-filter-bar) { gap: 16px; }
body.d4 .sales_leadtablemain .row:has(> div > .vuetable-filter-bar) > [class*="col-"]:has(> .vuetable-filter-bar) { flex: 1 1 auto !important; min-width: 0; }
body.d4 .vuetable-filter-bar { gap: 16px; }
body.d4 .vuetable-filter { margin-right: auto; }
body.d4 .sales_leadtablemain .show-deleted { margin-left: 0 !important; }
/* Shipment detail: "Invoices" / "Shipment files" are section titles, not page titles; the plus glyph in navy pills is white */
body.d4 .d4-main .about_desp .shipment-title { font-size: 20px !important; margin: 0 0 12px !important; }
body.d4 .btn-sky svg, body.d4 .light_bluebtn svg, body.d4 .light_blue.btn svg, body.d4 .form-btn svg { width: 14px; height: 14px; margin-right: 8px; color: #fff; flex: 0 0 auto; }
body.d4 .btn-sky svg *, body.d4 .light_bluebtn svg *, body.d4 .light_blue.btn svg *, body.d4 .form-btn svg * { fill: currentColor !important; stroke: currentColor; opacity: 1 !important; }
body.d4 .d4-main .shipment-header .shipment-title { font-size: 32px !important; margin: 0 !important; }
/* Primary pills: hover keeps white text; the plus glyph is always white */
body.d4 .light_bluebtn:hover, body.d4 .light_blue.btn:hover, body.d4 .form-btn:hover, body.d4 .btn-sky:hover, body.d4 .btn-primary:hover, body.d4 .save-btn:hover { color: #fff !important; }
body.d4 .btn-sky svg path, body.d4 .light_bluebtn svg path, body.d4 .light_blue.btn svg path, body.d4 .form-btn svg path { fill: #fff !important; }
body.d4 .btn-outline svg, body.d4 .btn-sky svg, body.d4 .light_bluebtn svg, body.d4 .form-btn svg, body.d4 .bluebtn_outline svg { filter: none !important; }
/* Selects: the generic white background shorthand removed the caret — draw the design's chevron */
body.d4 select:not([multiple]) { -webkit-appearance: none !important; appearance: none !important; padding-right: 38px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312385f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 14px 14px !important; }
/* Create / edit shipment: the two top cards share one height */
body.d4 .create-shipment .row > .wgl_col-6:has(> .shipment-form-box) { display: flex; }
body.d4 .create-shipment .row > .wgl_col-6 > .shipment-form-box { flex: 1 1 auto; }

/* Data-driven selects (FormSelectMenu → USelectMenu) dressed as the design 4 field */
body.d4 .d4-select { display: block; width: 100%; }
body.d4 button.d4-select__btn, body.d4 .d4-select__btn { display: flex !important; align-items: center; width: 100% !important; height: 42px !important; min-height: 42px; padding: 0 40px 0 14px !important; margin: 0; text-align: left; background: #fff !important; border: 1px solid var(--d4-line) !important; border-radius: var(--d4-radius-sm) !important; box-shadow: none !important; color: var(--d4-ink) !important; font: 400 14px/1.2 Roboto, sans-serif !important; letter-spacing: 0; text-transform: none; cursor: pointer; transition: border-color .15s, box-shadow .15s; outline: 0; }
body.d4 .d4-select__btn:hover { background: #fff !important; }
body.d4 .d4-select__btn:focus-visible, body.d4 .d4-select__btn[data-state="open"] { border-color: var(--d4-blue) !important; box-shadow: none !important; }
body.d4 .d4-select.is-invalid .d4-select__btn { border-color: var(--d4-red) !important; }
body.d4 .d4-select.is-disabled .d4-select__btn { opacity: .6; cursor: not-allowed; }
body.d4 .d4-select__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--d4-ink); }
body.d4 .d4-select__placeholder { flex: 1; color: #98a2b3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.d4 .d4-select__btn .d4-select__chevron { position: absolute; right: 14px; width: 14px; height: 14px; color: var(--d4-navy); transition: transform .15s; }
body.d4 .d4-select__btn[data-state="open"] .d4-select__chevron { transform: rotate(180deg); }
.d4-select__panel { background: #fff !important; border: 1px solid var(--d4-line, #dce5ee) !important; border-radius: 12px !important; box-shadow: 0 18px 45px rgba(18, 56, 95, .14) !important; padding: 6px !important; font-family: Roboto, sans-serif; min-width: var(--reka-combobox-trigger-width); }
.d4-select__viewport { max-height: 300px; padding: 0 !important; }
.d4-select__search { height: 40px !important; min-height: 40px !important; border: 0 !important; border-bottom: 1px solid var(--d4-line, #dce5ee) !important; border-radius: 0 !important; background: transparent !important; font: 400 14px Roboto, sans-serif !important; color: var(--d4-ink, #111827) !important; box-shadow: none !important; margin-bottom: 4px; padding-left: 36px !important; }
.d4-select__item { border-radius: 8px !important; padding: 9px 12px !important; font: 400 14px/1.3 Roboto, sans-serif !important; color: var(--d4-text, #25364a) !important; cursor: pointer; }
.d4-select__item[data-highlighted], .d4-select__item:hover { background: var(--d4-soft, #f3f8fc) !important; color: var(--d4-navy, #12385f) !important; }
.d4-select__item[data-state="checked"] { color: var(--d4-navy, #12385f) !important; font-weight: 700 !important; }
.d4-select__item[data-disabled] { opacity: .5; cursor: default; }
.d4-select__item-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d4-select__check { color: var(--d4-blue, #2287c9) !important; width: 16px; height: 16px; }
.d4-select__empty { padding: 12px; color: var(--d4-muted, #667085); font: 400 13.5px Roboto, sans-serif; }
/* Date fields: the legacy calendar glyph came from a background image the field rule wiped — draw it as a mask */
body.d4 input.calendar { padding-right: 44px !important; cursor: pointer; position: relative; }
body.d4 .form-group:has(> input.calendar), body.d4 .banner_textbox:has(> input.calendar) { position: relative; }
body.d4 input.calendar { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312385f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 16px 16px !important; }
/* vanilla-calendar popup as a design 4 card */
body.d4 .vc[data-vc-input] { border: 1px solid var(--d4-line) !important; border-radius: 12px !important; box-shadow: 0 18px 45px rgba(18, 56, 95, .14) !important; padding: 14px !important; font-family: Roboto, sans-serif !important; background: #fff !important; }
body.d4 .vc[data-vc-input] .vc-month, body.d4 .vc[data-vc-input] .vc-year { font: 900 14px Roboto, sans-serif !important; color: var(--d4-navy) !important; }
body.d4 .vc[data-vc-input] .vc-week__day { font: 900 11px Roboto, sans-serif !important; color: var(--d4-muted) !important; text-transform: uppercase; letter-spacing: .04em; }
body.d4 .vc[data-vc-input] .vc-date__btn { font: 500 13px Roboto, sans-serif !important; color: var(--d4-ink) !important; border-radius: 999px !important; }
body.d4 .vc[data-vc-input] .vc-date[data-vc-date-weekend] .vc-date__btn { color: var(--d4-muted) !important; }
body.d4 .vc[data-vc-input] .vc-date[data-vc-date-today] .vc-date__btn { background: var(--d4-blue-soft) !important; color: var(--d4-blue) !important; font-weight: 700 !important; }
body.d4 .vc[data-vc-input] .vc-date[data-vc-date-selected] .vc-date__btn { background: var(--d4-navy) !important; color: #fff !important; font-weight: 700 !important; }
body.d4 .vc[data-vc-input] .vc-date[data-vc-date-disabled] .vc-date__btn { color: #c3ccd6 !important; }
body.d4 .vc[data-vc-input] .vc-arrow { border-radius: 999px; background-color: transparent; }
body.d4 .d4-select.banner_select { margin-bottom: 14px; }
/* the legacy sheet lifted the picker 40px when it opens above the field; keep it flush */
body.d4 .vc[data-vc-input][data-vc-position="top"] { margin-top: -6px !important; }
body.d4 .vc[data-vc-input][data-vc-position="bottom"] { margin-top: 6px !important; }
/* Select menu search row: quiet, inside the panel (the site-wide input rules must not box it) */
.d4-select__search { padding: 2px 4px 8px !important; margin: 0 0 4px !important; border-bottom: 1px solid var(--d4-line, #dce5ee) !important; border-radius: 0 !important; background: transparent !important; height: auto !important; min-height: 0 !important; box-shadow: none !important; }
body.d4 .d4-select__search input, .d4-select__search input { height: 36px !important; min-height: 36px !important; border: 0 !important; border-radius: 8px !important; background: var(--d4-soft, #f3f8fc) !important; padding: 0 10px 0 36px !important; font: 400 14px Roboto, sans-serif !important; color: var(--d4-ink, #111827) !important; box-shadow: none !important; outline: 0 !important; }
body.d4 .d4-select__search input:focus, .d4-select__search input:focus { box-shadow: none !important; border: 0 !important; }
.d4-select__search > span { padding-left: 16px !important; }
.d4-select__search .iconify { width: 16px !important; height: 16px !important; color: var(--d4-muted, #667085) !important; }
.d4-select__panel { max-height: 320px !important; }
.d4-select__viewport [role="group"] { padding: 0 !important; }
/* compact select ("Show 10 entries") */
body.d4 .d4-select--sm { display: inline-block; width: 84px; vertical-align: middle; }
body.d4 .d4-select--sm .d4-select__btn { padding: 0 32px 0 12px !important; }
body.d4 .d4-select--sm .d4-select__chevron { right: 10px; }
/* the earlier USelectMenu on My Users / My Locations (company picker, filters) takes the same look */
body.d4 button.office-filter-menu { display: flex !important; align-items: center; width: 100% !important; height: 42px !important; padding: 0 40px 0 14px !important; background: #fff !important; border: 1px solid var(--d4-line) !important; border-radius: var(--d4-radius-sm) !important; box-shadow: none !important; color: var(--d4-ink) !important; font: 400 14px/1.2 Roboto, sans-serif !important; }
body.d4 button.office-filter-menu:focus-visible, body.d4 button.office-filter-menu[data-state="open"] { border-color: var(--d4-blue) !important; box-shadow: none !important; }
body.d4 button.office-filter-menu .iconify { color: var(--d4-navy) !important; width: 14px; height: 14px; }
.office-filter-panel { background: #fff !important; border: 1px solid #dce5ee !important; border-radius: 12px !important; box-shadow: 0 18px 45px rgba(18, 56, 95, .14) !important; padding: 6px !important; font-family: Roboto, sans-serif; }
.office-filter-panel [role="option"] { border-radius: 8px !important; padding: 9px 12px !important; font: 400 14px/1.3 Roboto, sans-serif !important; color: #25364a !important; }
.office-filter-panel [role="option"][data-highlighted] { background: #f3f8fc !important; color: #12385f !important; }
/* Form fields are flat: no ring or glow anywhere, focus = the line turns blue */
body.d4 input:not([type="checkbox"]):not([type="radio"]), body.d4 textarea, body.d4 select, body.d4 .d4-select__btn, body.d4 button.office-filter-menu { --tw-ring-shadow: 0 0 #0000 !important; --tw-shadow: 0 0 #0000 !important; box-shadow: none !important; }
body.d4 input:not([type="checkbox"]):not([type="radio"]):focus, body.d4 textarea:focus, body.d4 select:focus, body.d4 .d4-select__btn:focus-visible, body.d4 .d4-select__btn[data-state="open"], body.d4 button.office-filter-menu[data-state="open"] { border-color: var(--d4-blue) !important; box-shadow: none !important; outline: 0 !important; }
.d4-select__search input::placeholder { color: #98a2b3 !important; opacity: 1 !important; }
.d4-select__search { display: flex !important; align-items: center !important; height: 48px !important; }
body.d4 .d4-select__search input, .d4-select__search input { position: static !important; margin: 0 !important; top: auto !important; transform: none !important; }
.d4-select__search { flex: 0 0 auto !important; }
body.d4 .departed-members-link a { display: flex !important; width: 100%; }
/* search row: icon and text share one centre line */
.d4-select__search { padding: 6px 4px !important; height: 48px !important; box-sizing: border-box !important; }
.d4-select__search > span { padding-left: 16px !important; top: 6px !important; bottom: 6px !important; display: flex !important; align-items: center !important; }
/* Social banner: handle and icon glyphs in white on the navy card (the icon files are drawn in navy) */
body.d4 .social-box h2 { color: #fff !important; font-size: 20px !important; font-weight: 900 !important; margin: 0 0 12px !important; }
body.d4 .social-box a { width: 42px !important; height: 42px !important; display: inline-flex !important; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .45) !important; background: rgba(255, 255, 255, .1) !important; border-radius: 999px !important; }
body.d4 .social-box a:hover { background: rgba(255, 255, 255, .22) !important; }
body.d4 .social-box a img { width: 16px !important; height: 16px !important; filter: brightness(0) invert(1) !important; opacity: 1 !important; }
body.d4 .ln-cta a.bluebtn_outline, body.d4 .latest-all-news .bluebtn_outline { font-size: 14px !important; }
body.d4 .custom-nav { padding: 0 !important; margin: 0 !important; gap: 8px; }
body.d4 .custom-nav li a { margin: 0 !important; }

/* Payment monitor toolbar and header = the Shipments list's */
body.d4 #PaymentMonitorList_wrapper .dt-layout-row:first-child { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
body.d4 #PaymentMonitorList_wrapper .dt-layout-end { display: flex; align-items: center; gap: 16px; margin-left: auto; }
body.d4 #PaymentMonitorList_wrapper .dt-layout-start { flex: 0 1 320px; min-width: 0; }
body.d4 #PaymentMonitorList_wrapper .dt-search { width: 100%; max-width: 320px; }
body.d4 #PaymentMonitorList_wrapper .dt-search input { width: 100% !important; max-width: none; }
body.d4 #PaymentMonitorList_wrapper .dt-length label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--d4-muted); font-size: 13px; font-weight: 700; }
/* sortable column header: title + one small sort glyph, never the two floating DataTables arrows */
body.d4 .dt-column-header { display: inline-flex !important; align-items: center; gap: 6px; }
body.d4 .dt-column-order { display: inline-block; width: 12px; height: 12px; opacity: .55 !important; background: var(--d4-muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5M7 9l5-5 5 5'/%3E%3C/svg%3E") center / 12px 12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5M7 9l5-5 5 5'/%3E%3C/svg%3E") center / 12px 12px no-repeat; position: static !important; }
body.d4 .dt-column-order::before, body.d4 .dt-column-order::after { display: none !important; content: none !important; }
body.d4 th.dt-ordering-asc .dt-column-order, body.d4 th.dt-ordering-desc .dt-column-order { opacity: 1 !important; background: var(--d4-navy); }
body.d4 th.dt-ordering-asc .dt-column-order { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E"); }
body.d4 th.dt-ordering-desc .dt-column-order { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
body.d4 .dt-column-header { flex-direction: row !important; }
body.d4 th.dt-type-date .dt-column-header, body.d4 th.dt-type-numeric .dt-column-header, body.d4 th.text-end .dt-column-header { justify-content: flex-end; }
/* Shipments toolbar follows the Payment Monitor: search left; action pill, "Show N entries", "Show deleted" on the right */
body.d4 .vuetable-filter-bar .shipment_tablebtn--inline { flex: 0 0 auto; }
/* Export to excel is a primary (solid navy) pill on Shipments and Payment Monitor */
body.d4 .export-btn, body.d4 .mc_btnmain.shipment_tablebtn .bluebtn_outline { background: var(--d4-navy) !important; color: #fff !important; border: 1px solid var(--d4-navy) !important; }
body.d4 .export-btn:hover, body.d4 .mc_btnmain.shipment_tablebtn .bluebtn_outline:hover { background: var(--d4-navy-deep) !important; border-color: var(--d4-navy-deep) !important; color: #fff !important; }
body.d4 .sales_leadtablemain.table-responsive { padding: 0 !important; }
body.d4 .d4-main .fileshipment_new_item .shipment-title, body.d4 .d4-main .fileshipment_new_item h2 { font-size: 20px !important; margin-bottom: 14px !important; }
/* Contact — Follow us: one row of icon circles */
body.d4 .business-hours .social-icons { display: flex !important; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.d4 .business-hours .social-icons li { margin: 0 !important; }
/* Add Location: "+ Add More" is the secondary action */
body.d4 #personaldetailAddMore .light_bluebtn, body.d4 .add-more-btn, body.d4 a.light_bluebtn.add-more { background: #fff !important; color: var(--d4-navy) !important; border: 1px solid var(--d4-navy) !important; }
/* the outlined pill wins over the legacy button rules whatever element carries it (button or anchor) */
body.d4 button.bluebtn_outline, body.d4 a.bluebtn_outline { background: #fff !important; color: var(--d4-navy) !important; border: 1px solid var(--d4-navy) !important; }
body.d4 .mc_btnmain.shipment_tablebtn a.bluebtn_outline, body.d4 .export-btn { background: var(--d4-navy) !important; color: #fff !important; }

/* Holiday calendar: the table-row hover must not paint FullCalendar's nested tables (one row wraps the whole month) — only the hovered day */
body.d4 .d4-main .fc table tbody tr:hover td { background: transparent !important; }
body.d4 .calendar-stage .fc .fc-daygrid-day:hover { background: var(--d4-soft) !important; }
body.d4 .calendar-stage .fc .fc-daygrid-day.fc-day-today:hover { background: var(--d4-blue-soft) !important; }
/* Phones: header pills icon-only so the row fits 390px; Freightcamp and Contact live in the drawer as well.
   The spec sheet (linked after this one) pins the header geometry with !important at `html body.d4.d4`, so these
   selectors carry one more class to win. */
body.d4 .d4-header__ico { display: none; width: 16px; height: 16px; }
@media (max-width: 600px) {
  html body.d4.d4.d4 .d4-header { padding-left: 16px !important; padding-right: 16px !important; gap: 12px !important; }
  html body.d4.d4.d4 .d4-header__inner { gap: 12px !important; }
  html body.d4.d4.d4 .d4-header__nav { gap: 8px !important; }
  html body.d4.d4.d4 .d4-header__nav .d4-header__freightcamp { display: none !important; }
  html body.d4.d4.d4 .d4-header__nav .d4-pill { padding: 0 12px !important; min-width: 42px; justify-content: center; }
  html body.d4.d4.d4 .d4-header__nav .d4-pill .d4-header__text { display: none !important; }
  html body.d4.d4.d4 .d4-header__ico { display: inline-flex !important; }
  html body.d4.d4.d4 .d4-acting-pill { padding: 0 6px 0 12px !important; }
  html body.d4.d4.d4 .d4-account__btn { padding: 4px !important; gap: 0 !important; }
  html body.d4.d4.d4 .d4-account__btn .iconify, html body.d4.d4.d4 .d4-account__btn .d4-header__text { display: none !important; }
  html body.d4.d4.d4 .d4-header__logo img { height: 34px !important; }
}

/* Home banner: the artwork is shown whole — the image sits in the flow at its own aspect ratio and the grid follows it.
   The two tiles beside it are compact (icon or eyebrow on the title line) so two of them and the motion card fit the
   banner's height: at 1440 the banner is ~650px wide (~265px tall, a) / ~668px (~272px, c). */
@media (min-width: 1101px) {
  html body.d4.d4.d4:not(.d4-b) .d4-home__top { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr) minmax(0, 1fr) !important; align-items: stretch; }
  html body.d4.d4.d4.d4-c .d4-home__top { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  body.d4.d4-c .d4-home__top > .d4-calendar { grid-column: 1 / span 2; }
  body.d4.d4-c .d4-home__top > .d4-motion { grid-column: 3 / span 2; }
}
/* the banner is exactly the artwork: the image sits in the flow at its own ratio, nothing cropped or letterboxed */
html body.d4.d4.d4 .d4-banner { height: auto !important; min-height: 0 !important; align-self: start; }
html body.d4.d4.d4 .d4-banner img { position: static !important; width: 100% !important; height: auto !important; object-fit: fill; display: block; }
html body.d4.d4.d4 .d4-home__top .d4-tile { display: grid !important; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px; align-content: start; padding: 14px !important; min-height: 0 !important; }
html body.d4.d4.d4 .d4-home__top .d4-tile .d4-tile__icon { grid-column: 1; grid-row: 1; width: 28px !important; height: 28px !important; margin: 0 !important; }
html body.d4.d4.d4 .d4-home__top .d4-tile .d4-tile__icon svg, html body.d4.d4.d4 .d4-home__top .d4-tile .d4-tile__icon .iconify { width: 14px !important; height: 14px !important; }
html body.d4.d4.d4 .d4-home__top .d4-tile .d4-eyebrow { grid-column: 1 / -1; grid-row: 1; margin: 0 0 4px !important; }
html body.d4.d4.d4 .d4-home__top .d4-tile--white h4 { grid-column: 2; grid-row: 1; align-self: center; margin: 0 !important; font-size: 16px !important; line-height: 1.2 !important; }
html body.d4.d4.d4 .d4-home__top .d4-tile--navy h4 { grid-column: 1 / -1; grid-row: 2; margin: 0 !important; font-size: 16px !important; line-height: 1.2 !important; }
html body.d4.d4.d4 .d4-home__top .d4-tile--white p { grid-column: 1 / -1; grid-row: 2; margin: 6px 0 8px !important; }
html body.d4.d4.d4 .d4-home__top .d4-tile--navy p { grid-column: 1 / -1; grid-row: 3; margin: 4px 0 8px !important; }
html body.d4.d4.d4 .d4-home__top .d4-tile > .d4-pill, html body.d4.d4.d4 .d4-home__top .d4-tile > a { grid-column: 1 / -1; grid-row: 4; justify-self: start; height: 36px !important; min-height: 36px !important; padding: 0 16px !important; font-size: 13px !important; }
html body.d4.d4.d4 .d4-motion { min-height: 0 !important; padding: 14px 18px !important; }
html body.d4.d4.d4 .d4-motion__chips { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
/* Phones and small tablets: the home top block is one column; the banner keeps the artwork's ratio on its own */
@media (max-width: 1100px) {
  html body.d4.d4.d4 .d4-home__top { grid-template-columns: minmax(0, 1fr) !important; }
  html body.d4.d4.d4 .d4-home__top > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  html body.d4.d4.d4 .d4-stats { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Variant 3 calendars: one member identity and one anchored detail card on both pages. */
body.d4.d4-c [data-reka-popper-content-wrapper]:has(.d4-holiday-popover) { z-index: 1300 !important; }
body.d4.d4-c .d4-holiday-popover { width: min(390px, calc(100vw - 32px)); max-height: var(--reka-popper-available-height); overflow: hidden; background: #fff; color: var(--d4-navy); border: 1px solid var(--d4-line); border-radius: 16px; box-shadow: var(--d4-shadow); outline: none; isolation: isolate; }
body.d4.d4-c .d4-holiday-details { min-width: 0; display: flex; flex-direction: column; max-height: min(480px, calc(var(--reka-popper-available-height, 480px) - 2px), calc(100dvh - 48px)); }
body.d4.d4-c .d4-holiday-details__head { display: flex; flex-shrink: 0; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px; background: var(--d4-blue-soft); border-bottom: 1px solid var(--d4-line); }
body.d4.d4-c .d4-holiday-details__head h4 { margin: 6px 0; font-size: 19px; line-height: 1.25; }
body.d4.d4-c .d4-holiday-details__meta { font-size: 12px; color: var(--d4-muted); }
body.d4.d4-c .d4-holiday-details__close { display: inline-flex; flex: 0 0 32px; align-items: center; justify-content: center; width: 32px; height: 32px; min-height: 32px; padding: 0; background: #fff; color: var(--d4-navy); border: 1px solid var(--d4-line); border-radius: 50%; cursor: pointer; }
body.d4.d4-c .d4-holiday-details__close .iconify { width: 16px; height: 16px; }
body.d4.d4-c .d4-holiday-details__list { padding: 4px 20px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
body.d4.d4-c .d4-holiday-details__list > .d4-holiday-member { padding: 14px 0; border-bottom: 1px solid var(--d4-line-soft); }
body.d4.d4-c .d4-holiday-details__list > .d4-holiday-member:last-child { border-bottom: 0; }
body.d4.d4-c .d4-holiday-details__loading { display: grid; gap: 12px; padding: 20px; }
body.d4.d4-c .d4-holiday-details__empty { margin: 0; padding: 18px 0; font-size: 13px; color: var(--d4-muted); }
body.d4.d4-c .d4-holiday-details > .d4-holiday-details__empty { padding: 20px; }
body.d4.d4-c .d4-holiday-details__event { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--d4-line-soft); }
body.d4.d4-c .d4-holiday-details__event > .iconify { flex: 0 0 22px; color: var(--d4-blue); }
body.d4.d4-c .d4-holiday-details__event small, body.d4.d4-c .d4-holiday-details__event strong { display: block; }
body.d4.d4-c .d4-holiday-details__event small { color: var(--d4-blue); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
body.d4.d4-c .d4-holiday-details__event strong { font-size: 14px; line-height: 1.4; }
body.d4.d4-c .d4-holiday-member { display: flex; align-items: center; gap: 12px; min-width: 0; text-align: left; }
body.d4.d4-c .d4-holiday-member__avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 5px; border-radius: 10px; border: 1px solid var(--d4-line); background: #fff; color: var(--d4-blue); font: 900 13px Roboto, sans-serif; }
body.d4.d4-c .d4-holiday-member__avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
body.d4.d4-c .d4-holiday-member__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.d4.d4-c .d4-holiday-member__text > strong { font-size: 14px; line-height: 1.3; color: var(--d4-navy); overflow-wrap: anywhere; }
body.d4.d4-c .d4-holiday-member__country { display: flex; align-items: center; gap: 6px; color: var(--d4-muted); font-size: 12px; line-height: 1.4; }
body.d4.d4-c .d4-holiday-member__country img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }
body.d4.d4-c .d4-holiday-member--compact { gap: 7px; }
body.d4.d4-c .d4-holiday-member--compact .d4-holiday-member__avatar { flex-basis: 28px; width: 28px; height: 28px; padding: 3px; border-radius: 7px; font-size: 10px; }
body.d4.d4-c .d4-holiday-member--compact .d4-holiday-member__text { gap: 2px; }
body.d4.d4-c .d4-holiday-member--compact .d4-holiday-member__text > strong { font-size: 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
body.d4.d4-c .d4-holiday-member--compact .d4-holiday-member__country { font-size: 10px; }
body.d4.d4-c .d4-holiday-calendar__intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
body.d4.d4-c .d4-holiday-calendar__intro p { margin: 6px 0 0; color: var(--d4-muted); font-size: 14px; }
body.d4.d4-c .d4-holiday-calendar__legend { display: flex; gap: 18px; font-size: 12px; color: var(--d4-muted); }
body.d4.d4-c .d4-holiday-calendar__legend > span { display: flex; align-items: center; gap: 6px; }
body.d4.d4-c .d4-holiday-calendar__legend i { display: block; width: 8px; height: 8px; border-radius: 50%; }
body.d4.d4-c .d4-holiday-calendar__holiday-dot { background: var(--d4-yellow); }
body.d4.d4-c .d4-holiday-calendar__event-dot { background: var(--d4-blue); }
body.d4.d4-c .d4-holiday-calendar .calendar-stage .fc .fc-daygrid-day-number { display: block; width: 100%; padding: 0 !important; white-space: normal; cursor: default; }
body.d4.d4-c .d4-holiday-calendar .calendar-stage .fc .fc-daygrid-day { padding: 0 !important; vertical-align: top; border: 1px solid var(--d4-line-soft) !important; }
body.d4.d4-c .d4-holiday-calendar .calendar-stage .fc .fc-daygrid-day-frame { min-height: 190px; }
body.d4.d4-c .d4-holiday-calendar .fc-daygrid-day-events { margin: 0; min-height: 0; }
body.d4.d4-c .d4-calendar-day { display: flex; flex-direction: column; gap: 6px; min-height: 190px; padding: 6px; }
body.d4.d4-c .d4-calendar-day__preview { display: flex; flex-direction: column; gap: 10px; width: 100%; flex: 1; height: auto; padding: 6px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--d4-navy); text-align: left; white-space: normal; cursor: pointer; line-height: 1.3; letter-spacing: normal; text-transform: none; min-width: 0; }
body.d4.d4-c .d4-calendar-day--active .d4-calendar-day__preview { background: #fffcf4; }
body.d4.d4-c .d4-calendar-day__preview:disabled { cursor: default; opacity: 1; }
body.d4.d4-c .d4-calendar-day__preview:not(:disabled):hover { background: var(--d4-blue-soft); }
body.d4.d4-c .d4-calendar-day__preview:focus-visible, body.d4.d4-c .d4-calendar-day__action:focus-visible, body.d4.d4-c .d4-holiday-details__close:focus-visible { outline: none; border-color: var(--d4-blue); }
body.d4.d4-c .d4-calendar-day__head { display: flex; align-items: center; justify-content: space-between; gap: 4px; width: 100%; }
body.d4.d4-c .d4-calendar-day__head > strong { font-size: 15px; }
body.d4.d4-c .d4-calendar-day__count { padding: 3px 6px; border-radius: 999px; background: #fff2ce; color: #8b5904; font-size: 10px; font-weight: 800; white-space: nowrap; }
body.d4.d4-c .d4-calendar-day__countries { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 10px; font-weight: 600; }
body.d4.d4-c .d4-calendar-day__countries > span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
body.d4.d4-c .d4-calendar-day__countries > span > span { text-transform: capitalize; }
body.d4.d4-c .d4-calendar-day__countries img { width: 16px; height: 11px; object-fit: cover; border-radius: 2px; }
body.d4.d4-c .d4-calendar-day__members { display: grid; gap: 10px; width: 100%; }
body.d4.d4-c .d4-calendar-day__more { color: var(--d4-blue); font-size: 11px; font-weight: 800; }
body.d4.d4-c .d4-calendar-day__events { display: grid; gap: 5px; }
body.d4.d4-c .d4-calendar-day__events > span { display: flex; align-items: flex-start; gap: 5px; padding: 5px 6px; background: var(--d4-navy); color: #fff; border-radius: 6px; font-size: 10px; line-height: 1.35; }
body.d4.d4-c .d4-calendar-day__events .iconify { flex: 0 0 12px; width: 12px; height: 12px; }
body.d4.d4-c .d4-calendar-day__action { display: flex; align-items: center; justify-content: center; gap: 4px; height: 28px; min-height: 28px; padding: 4px 6px; background: #fff; color: var(--d4-navy); border: 1px solid var(--d4-line); border-radius: 999px; font-size: 10px; line-height: 1.2; letter-spacing: normal; text-transform: none; cursor: pointer; }
body.d4.d4-c .d4-calendar-day__action--remove { color: var(--d4-red); }
body.d4.d4-c .d4-calendar-day__action .iconify { width: 12px; height: 12px; flex-shrink: 0; }
@media (max-width: 800px) {
  body.d4.d4-c .d4-holiday-calendar .calendar-stage { padding: 6px; }
  body.d4.d4-c .d4-holiday-calendar .calendar-stage .fc .fc-daygrid-day-frame { min-height: 92px; }
  body.d4.d4-c .d4-calendar-day { min-height: 92px; padding: 2px; gap: 3px; }
  body.d4.d4-c .d4-calendar-day__preview { gap: 5px; padding: 5px 2px; }
  body.d4.d4-c .d4-calendar-day__head { flex-direction: column; align-items: center; }
  body.d4.d4-c .d4-calendar-day__count { padding: 2px 5px; font-size: 9px; }
  body.d4.d4-c .d4-calendar-day__count > span, body.d4.d4-c .d4-calendar-day__members, body.d4.d4-c .d4-calendar-day__countries > span > span, body.d4.d4-c .d4-calendar-day__countries > span:nth-child(n+2), body.d4.d4-c .d4-calendar-day__countries > small { display: none; }
  body.d4.d4-c .d4-calendar-day__countries { justify-content: center; width: 100%; }
  body.d4.d4-c .d4-calendar-day__events { margin: 0 auto; }
  body.d4.d4-c .d4-calendar-day__events > span { padding: 3px; }
  body.d4.d4-c .d4-calendar-day__events > span > span, body.d4.d4-c .d4-calendar-day__action > span:not(.iconify) { display: none; }
  body.d4.d4-c .d4-calendar-day__action { min-height: 26px; padding: 3px; }
  body.d4.d4-c .d4-holiday-calendar .fc .fc-toolbar-title { font-size: 17px !important; }
  body.d4.d4-c .d4-holiday-calendar__intro { gap: 12px; }
}

/* Variant 3: twelve compact months, with the detailed month available from each heading. */
body.d4.d4-c .d4-calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
body.d4.d4-c .d4-calendar-toolbar__period, body.d4.d4-c .d4-calendar-toolbar__actions { display: flex; align-items: center; gap: 12px; }
body.d4.d4-c .d4-calendar-toolbar__period h2 { margin: 0; min-width: 100px; text-align: center; font-size: 28px; line-height: 1.2; }
body.d4.d4-c .d4-calendar-nav { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; min-height: 36px; padding: 0; border: 1px solid var(--d4-line); border-radius: 50%; background: #fff; color: var(--d4-navy); }
body.d4.d4-c .d4-calendar-nav .iconify { width: 18px; height: 18px; }
body.d4.d4-c .d4-calendar-view { display: flex; padding: 3px; border: 1px solid var(--d4-line); border-radius: 999px; background: #fff; }
body.d4.d4-c .d4-calendar-view button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: var(--d4-muted); min-width: 70px; height: 34px; padding: 0 15px; font: 800 13px Roboto, sans-serif; letter-spacing: normal; text-transform: none; }
body.d4.d4-c .d4-calendar-view button[aria-pressed="true"] { background: var(--d4-navy); color: #fff; }
body.d4.d4-c .d4-network-calendar .d4-holiday-calendar__intro { margin-bottom: 22px; gap: 12px; }
body.d4.d4-c .d4-network-calendar .d4-holiday-calendar__intro p { margin: 0; font-size: 13px; }
body.d4.d4-c .d4-holiday-calendar__own-dot { border: 2px solid var(--d4-blue); background: transparent; }
body.d4.d4-c .d4-year-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
body.d4.d4-c .d4-year-month { padding: 16px 12px 12px; min-width: 0; scroll-margin-top: 150px; }
body.d4.d4-c .d4-year-month__head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; margin-bottom: 10px; border-bottom: 1px solid var(--d4-line-soft); }
body.d4.d4-c .d4-year-month__title { display: inline-flex; align-items: center; gap: 8px; padding: 0; margin: 0; height: auto; background: transparent; border: 0; color: var(--d4-navy); font: 900 18px/1.4 Roboto, sans-serif; letter-spacing: normal; text-transform: none; cursor: pointer; }
body.d4.d4-c .d4-year-month__title .iconify { width: 15px; height: 15px; color: var(--d4-blue); }
body.d4.d4-c .d4-year-month__number { font-size: 11px; font-weight: 800; color: #8393a5; }
body.d4.d4-c .d4-year-month__weekdays, body.d4.d4-c .d4-year-month__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
body.d4.d4-c .d4-year-month__weekdays { margin-bottom: 8px; text-align: center; color: var(--d4-muted); font-size: 10px; font-weight: 700; }
body.d4.d4-c .d4-year-day { position: relative; min-width: 0; height: 36px; }
body.d4.d4-c .d4-year-day__date { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 34px; padding: 0 5px 3px 0; color: var(--d4-navy); background: transparent; border: 1px solid transparent; border-radius: 8px; font: 700 12px/1 Roboto, sans-serif; letter-spacing: normal; cursor: pointer; }
body.d4.d4-c .d4-year-day__date.has-holiday { background: #fff7df; }
body.d4.d4-c .d4-year-day__date.is-today { background: var(--d4-navy); color: #fff; font-weight: 900; }
body.d4.d4-c .d4-year-day--own .d4-year-day__date { border-color: var(--d4-blue); }
body.d4.d4-c .d4-year-day__date:hover { border-color: var(--d4-blue); background: var(--d4-blue-soft); color: var(--d4-navy); }
body.d4.d4-c .d4-year-day__marks { position: absolute; display: flex; gap: 3px; bottom: 3px; left: 50%; transform: translateX(-50%); }
body.d4.d4-c .d4-year-day__marks i { display: block; width: 4px; height: 4px; border-radius: 50%; }
body.d4.d4-c .d4-year-day__marks .is-holiday { background: #e6a30b; }
body.d4.d4-c .d4-year-day__marks .is-event { background: var(--d4-blue); }
body.d4.d4-c .d4-year-day__action { position: absolute; top: -1px; right: -1px; display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; padding: 0; border: 1px solid var(--d4-line); border-radius: 50%; background: #fff; color: var(--d4-navy); opacity: .45; cursor: pointer; }
body.d4.d4-c .d4-year-day__action .iconify { width: 10px; height: 10px; }
body.d4.d4-c .d4-year-day:hover .d4-year-day__action, body.d4.d4-c .d4-year-day:focus-within .d4-year-day__action { opacity: 1; border-color: var(--d4-blue); }
body.d4.d4-c .d4-year-month__error { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 231px; gap: 12px; color: var(--d4-muted); text-align: center; }
body.d4.d4-c .d4-year-month__error > .iconify { width: 28px; height: 28px; }
body.d4.d4-c .d4-year-month__error p { font-size: 13px; margin: 0; }
body.d4.d4-c .d4-calendar-notice { padding: 12px 16px; margin-bottom: 16px; background: #fff7df; border-radius: 10px; color: var(--d4-navy); font-size: 13px; }
body.d4.d4-c .d4-calendar-notice button { padding: 0; height: auto; background: none; border: 0; color: var(--d4-blue); text-decoration: underline; font: inherit; }
body.d4.d4-c .d4-network-calendar__month { position: relative; }
body.d4.d4-c .d4-network-calendar__loading { position: absolute; inset: 0; padding: 18px; border-radius: 16px; background: #fff; z-index: 2; }
body.d4.d4-c .d4-holiday-action__body { padding: 22px; overflow-y: auto; max-height: min(500px, calc(100dvh - 40px)); }
body.d4.d4-c .d4-holiday-action__heading { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
body.d4.d4-c .d4-holiday-action__heading h4 { margin: 0; font-size: 20px; line-height: 1.25; }
body.d4.d4-c .d4-holiday-action__icon { display: flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--d4-blue-soft); color: var(--d4-blue); }
body.d4.d4-c .d4-holiday-action__date { margin: 0 0 14px; color: var(--d4-navy); font-size: 15px; font-weight: 700; }
body.d4.d4-c .d4-holiday-action__company { display: flex; gap: 10px; align-items: center; padding: 12px; background: var(--d4-blue-soft); border-radius: 10px; }
body.d4.d4-c .d4-holiday-action__company > .iconify { flex: 0 0 18px; }
body.d4.d4-c .d4-holiday-action__company strong { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
body.d4.d4-c .d4-holiday-action__hint { color: var(--d4-muted); font-size: 13px; line-height: 1.5; margin: 14px 0 18px; }
body.d4.d4-c .d4-holiday-action__buttons { display: flex; gap: 8px; flex-wrap: wrap; }
body.d4.d4-c .d4-holiday-action__error { color: var(--d4-red); font-size: 13px; line-height: 1.4; }
body.d4.d4-c .d4-network-calendar button:focus-visible { outline: none; box-shadow: none; border-color: var(--d4-blue); }
body.d4.d4-c .d4-year-month__title:focus-visible { text-decoration: underline; }
@media (max-width: 1279px) { body.d4.d4-c .d4-year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 999px) { body.d4.d4-c .d4-year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  body.d4.d4-c .d4-year-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.d4.d4-c .d4-calendar-toolbar { gap: 14px; }
  body.d4.d4-c .d4-calendar-toolbar__period { justify-content: space-between; width: 100%; }
  body.d4.d4-c .d4-calendar-toolbar__period h2 { font-size: 23px; }
  body.d4.d4-c .d4-calendar-toolbar__actions { justify-content: space-between; width: 100%; }
  body.d4.d4-c .d4-holiday-calendar__legend { flex-wrap: wrap; gap: 8px 12px; font-size: 11px; }
  body.d4.d4-c .d4-year-day { height: 42px; }
  body.d4.d4-c .d4-year-day__date { height: 40px; font-size: 13px; }
  body.d4.d4-c .d4-year-day__action { width: 19px; height: 19px; opacity: .8; }
  body.d4.d4-c .d4-year-month__error { min-height: 267px; }
}
/* Neutralise legacy header and Bootstrap background utilities inside these controls. */
body.d4.d4-c .d4-year-month__head { background: transparent; }
body.d4.d4-c .d4-calendar-nav { background: #fff !important; }
body.d4.d4-c .d4-calendar-view button { background: transparent !important; }
body.d4.d4-c .d4-calendar-view button[aria-pressed="true"] { background: var(--d4-navy) !important; }
body.d4.d4-c .d4-calendar-toolbar .d4-pill, body.d4.d4-c .d4-holiday-action .d4-pill { display: inline-flex; align-items: center; justify-content: center; height: 42px; min-height: 42px; padding: 0 18px; border: 1px solid var(--d4-navy); border-radius: 999px; background: var(--d4-navy) !important; color: #fff; font: 900 14px/1 Roboto, sans-serif; text-transform: none; letter-spacing: normal; }
body.d4.d4-c .d4-calendar-toolbar .d4-pill--ghost, body.d4.d4-c .d4-holiday-action .d4-pill--ghost { background: #fff !important; color: var(--d4-navy); }
body.d4.d4-c .d4-network-calendar { scroll-margin-top: 150px; }
body.d4.d4-c .d4-network-calendar__loading { z-index: 10; }
body.d4.d4-c .d4-month-loading { display: flex; flex-direction: column; gap: 22px; height: 100%; }
body.d4.d4-c .d4-month-loading__week, body.d4.d4-c .d4-month-loading__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
body.d4.d4-c .d4-month-loading__days { flex: 1; grid-template-rows: repeat(6, 1fr); }
/* Today's member holidays: the same anchored details as both calendars. */
body.d4.d4-c .d4-stats > .d4-today-stat { width: 200px; min-width: 0; }
body.d4.d4-c .d4-today-stat__trigger { display: flex; flex-direction: column; align-items: flex-start; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent !important; color: var(--d4-navy); text-align: left; font-family: Roboto, sans-serif; line-height: 1.3; letter-spacing: normal; text-transform: none; }
body.d4.d4-c .d4-today-stat__trigger:focus-visible { outline: 1px solid var(--d4-blue); outline-offset: 5px; }
body.d4.d4-c .d4-today-stat__trigger b { color: var(--d4-blue); }
body.d4.d4-c .d4-today-stat__trigger small { display: flex; align-items: center; gap: 4px; margin-top: 7px; color: var(--d4-blue); font-size: 11px; font-weight: 700; }
body.d4.d4-c .d4-today-stat__trigger small .iconify { display: inline-block; width: 12px; height: 12px; margin: 0; color: inherit; }
body.d4.d4-c .d4-today-stat__message strong { display: block; color: var(--d4-navy); font-size: 13px; line-height: 1.4; }
body.d4.d4-c .d4-today-stat__message > .d4-today-stat__coffee { width: 26px; height: 26px; margin: 0 0 6px; color: var(--d4-blue); }
body.d4.d4-c .d4-today-stat__retry { padding: 4px 0; margin-top: 5px; border: 0; background: transparent !important; color: var(--d4-blue); font: 700 12px Roboto, sans-serif; text-decoration: underline; }
body.d4.d4-c .d4-today-stat__loading { display: grid; gap: 7px; }
html body.d4.d4-c.d4 .d4-stats .iconify { background-color: currentColor !important; color: var(--d4-blue) !important; }
html body.d4.d4-c.d4 .d4-tile__icon.is-off { background-color: var(--d4-red-soft) !important; color: var(--d4-red) !important; }
html body.d4.d4-c.d4 .d4-tile__icon.is-off .iconify { color: var(--d4-red) !important; }
@media (max-width: 600px) {
  html body.d4.d4-c.d4 .d4-stats > div { width: auto; min-width: 0; padding: 12px 10px !important; }
}

/* Home news: company eyebrow, preview above the logo, and a bottom-right story link. */
body.d4.d4-c .d4-news__member-card { grid-template-rows: minmax(104px, 1fr) 52px; }
body.d4.d4-c .d4-news__member-card > .d4-news__body { grid-column: 2; grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
html body.d4.d4-c.d4 .d4-news__member-card > .d4-news__logo { grid-column: 1; grid-row: 2; width: 104px !important; height: 52px !important; object-fit: contain; object-position: left center; border-radius: 0 !important; background: transparent; }
body.d4.d4-c .d4-news__member-card > .d4-news__more { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; margin: 0; }

/* Variant 3 shipment list: preserve every participant, field and existing action. */
body.d4.d4-c .d4-shipment-list { container: shipmentlist / inline-size; min-width: 0; }
body.d4.d4-c .d4-shipment-list .vuetable-filter { flex: 1 1 240px; width: auto; }
body.d4.d4-c .d4-shipment-list .filter-bar { justify-content: flex-start; }
body.d4.d4-c .d4-shipment-list .table-responsive { overflow: visible; }
body.d4.d4-c .d4-shipment-list .sales_leadtable { table-layout: fixed; margin: 0; }
body.d4.d4-c .d4-shipment-list th:first-child { width: 52%; }
body.d4.d4-c .d4-shipment-list th:nth-child(2), body.d4.d4-c .d4-shipment-list th:nth-child(3) { width: 14%; }
body.d4.d4-c .d4-shipment-list th:nth-child(4) { width: 12%; }
body.d4.d4-c .d4-shipment-list th:last-child { width: 8%; }
body.d4.d4-c .d4-shipment-list th { font-size: 10px; letter-spacing: .07em; padding: 14px 8px !important; }
body.d4.d4-c .d4-shipment-list td { vertical-align: middle; padding: 20px 8px !important; font-size: 13px; line-height: 1.45; }
body.d4.d4-c .d4-shipment-list tbody tr { background: #fff; }
body.d4.d4-c .d4-shipment-list tbody tr:nth-child(even) { background: #f8fbfe; }
body.d4.d4-c .d4-shipment-list tbody tr:hover { background: var(--d4-blue-soft); }
body.d4.d4-c .d4-shipment-list td.sales_leaditemtitle { gap: 10px; align-items: flex-start; min-width: 0; }
body.d4.d4-c .d4-shipment-list .icon-container { flex: 0 0 20px; width: 20px; margin-top: 2px; }
body.d4.d4-c .d4-shipment-list .icon-container img { width: 20px; height: 20px; object-fit: contain; }
body.d4.d4-c .d4-shipment-row__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 10px; width: 100%; min-width: 0; }
body.d4.d4-c .d4-shipment-list .shipitem_status { grid-column: 1; grid-row: 1; align-self: center; justify-self: start; padding: 4px 8px; border-radius: 999px; background: #e7f6ee; color: #18734b; font-size: 10px; font-weight: 800; line-height: 1.2; letter-spacing: .04em; margin: 0; }
body.d4.d4-c .d4-shipment-list .shipitem_status.close_status { color: var(--d4-muted); background: #edf1f6; }
body.d4.d4-c .d4-shipment-list .shipitem_titlemain { display: contents; }
body.d4.d4-c .d4-shipment-list .shipitem_titlemain > a { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
body.d4.d4-c .d4-shipment-list .shipitem_titlemain > div { grid-column: 2; grid-row: 1; align-self: center; min-width: 0; }
body.d4.d4-c .d4-shipment-list .shipitem_ref { display: block; margin: 0; color: var(--d4-muted); font-size: 11px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
body.d4.d4-c .d4-shipment-list .shipitem_title { display: grid; gap: 10px; margin: 0; font-size: inherit; line-height: inherit; }
body.d4.d4-c .d4-shipment-list .destination-title { position: relative; display: block; margin: 0; font-size: inherit; line-height: inherit; }
body.d4.d4-c .d4-shipment-party { display: flex; gap: 12px; align-items: center; min-width: 0; }
body.d4.d4-c .d4-shipment-party__avatar { display: flex; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--d4-line); border-radius: 10px; background: #fff; color: var(--d4-blue); font-size: 15px; font-weight: 800; }
body.d4.d4-c .d4-shipment-party__avatar img { display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; border-radius: 9px; }
body.d4.d4-c .d4-shipment-party__body { display: block; flex: 1; min-width: 0; }
body.d4.d4-c .d4-shipment-party__role { display: block; color: var(--d4-muted); font-size: 10px; font-weight: 700; line-height: 1.4; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 3px; }
body.d4.d4-c .d4-shipment-party__label { color: var(--d4-navy); font-size: 14px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
body.d4.d4-c .d4-shipment-party__label .badge { display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; width: 19px; height: 19px; padding: 0; margin: 0 0 0 5px; font-size: 11px; font-weight: 800; line-height: 1; }
body.d4.d4-c .d4-shipment-party__connector { position: absolute; top: -9px; left: 17px; z-index: 1; color: #8196ad; background: #fff; font-size: 11px; line-height: 1; transform: rotate(90deg); }
body.d4.d4-c .d4-shipment-list .shipment-closed .d4-shipment-party__label { color: #68798b; }
body.d4.d4-c .d4-shipment-list .shipment-closed .shipitem_title { opacity: 1; }
body.d4.d4-c .d4-shipment-list .custom-actions { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; margin: 0; padding: 0; }
body.d4.d4-c .d4-shipment-list .custom-actions a { margin: 0; padding: 3px 0; font-size: 12px; font-weight: 800; line-height: 1.4; color: var(--d4-navy); }
body.d4.d4-c .d4-shipment-list .custom-actions a:hover, body.d4.d4-c .d4-shipment-list .custom-actions a:focus-visible, body.d4.d4-c .d4-shipment-list .shipitem_titlemain > a:focus-visible .d4-shipment-party__label { color: var(--d4-blue); text-decoration: underline; }
body.d4.d4-c .d4-shipment-terms { display: inline-block; padding: 5px 8px; border-radius: 7px; background: #eef4f9; color: var(--d4-navy); font-size: 10px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
body.d4.d4-c .d4-shipment-list .shipping_way img { display: inline-block; width: 32px; height: 32px; object-fit: contain; }
body.d4.d4-c .d4-shipment-list .sort-icon { display: inline-block; width: 6px; height: 6px; margin-left: 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; vertical-align: 2px; transform: rotate(45deg); }
body.d4.d4-c .d4-shipment-list .sort-icon::before { content: none; }
body.d4.d4-c .d4-shipment-list [aria-sort="ascending"] .sort-icon { transform: rotate(225deg); vertical-align: -1px; }
body.d4.d4-c .d4-shipment-list .vuetable-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-top: 18px; }
body.d4.d4-c .d4-shipment-list .vuetable-pagination-info { color: var(--d4-muted); font-size: 12px; }
body.d4.d4-c .d4-shipment-list .pagination { margin: 0; }
body.d4.d4-c .d4-shipment-skeleton__head, body.d4.d4-c .d4-shipment-skeleton__row { display: grid; grid-template-columns: 52% 14% 14% 12% 8%; align-items: center; }
body.d4.d4-c .d4-shipment-skeleton__head { padding: 14px 8px; border-bottom: 1px solid var(--d4-line); }
body.d4.d4-c .d4-shipment-skeleton__row { padding: 20px 8px; border-bottom: 1px solid var(--d4-line-soft); }
body.d4.d4-c .d4-shipment-skeleton__partners { display: grid; gap: 12px; padding-right: 24px; }
body.d4.d4-c .d4-shipment-skeleton__reference { display: flex; gap: 10px; align-items: center; }
body.d4.d4-c .d4-shipment-skeleton__name { display: grid; flex: 1; gap: 7px; }
@container shipmentlist (max-width: 700px) {
  body.d4.d4-c .d4-shipment-list .vuetable-filter { flex-basis: 100%; min-width: 100%; }
  body.d4.d4-c .d4-shipment-list .shipment_tablebtn--inline { flex: 1 1 100%; min-width: 100%; }
  body.d4.d4-c .d4-shipment-list .sales_leadtable, body.d4.d4-c .d4-shipment-list thead, body.d4.d4-c .d4-shipment-list tbody { display: block; width: 100%; }
  body.d4.d4-c .d4-shipment-list thead tr { display: flex; justify-content: flex-end; }
  body.d4.d4-c .d4-shipment-list th:not(.sortable) { position: absolute; width: 1px; height: 1px; padding: 0 !important; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body.d4.d4-c .d4-shipment-list th.sortable { width: auto; border: 0 !important; padding: 14px 0 !important; }
  body.d4.d4-c .d4-shipment-list tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--d4-line); border-radius: 12px; }
  body.d4.d4-c .d4-shipment-list td { display: block; width: auto; border: 0 !important; padding: 8px 0 !important; text-align: left; white-space: normal; }
  body.d4.d4-c .d4-shipment-list td.sales_leaditemtitle { display: flex; grid-column: 1 / -1; padding: 0 0 14px !important; margin-bottom: 6px; border-bottom: 1px solid var(--d4-line-soft) !important; }
  body.d4.d4-c .d4-shipment-list td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--d4-muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  body.d4.d4-c .d4-shipment-list .vuetable-empty-result { grid-column: 1 / -1; }
  body.d4.d4-c .d4-shipment-list .icon-container { flex-basis: 16px; width: 16px; }
  body.d4.d4-c .d4-shipment-list .icon-container img { width: 16px; height: 16px; }
  body.d4.d4-c .d4-shipment-row__body { gap: 10px 8px; }
  body.d4.d4-c .d4-shipment-party { gap: 9px; }
  body.d4.d4-c .d4-shipment-party__avatar { flex-basis: 38px; width: 38px; height: 38px; font-size: 13px; }
  body.d4.d4-c .d4-shipment-party__label { font-size: 13px; }
  body.d4.d4-c .d4-shipment-party__connector { left: 14px; }
  body.d4.d4-c .d4-shipment-list .shipitem_ref { font-size: 10px; }
  body.d4.d4-c .d4-shipment-list .vuetable-pagination { justify-content: center; }
  body.d4.d4-c .d4-shipment-skeleton__head { display: flex; justify-content: flex-end; gap: 10px; }
  body.d4.d4-c .d4-shipment-skeleton__head > :not(:first-child) { display: none; }
  body.d4.d4-c .d4-shipment-skeleton__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--d4-line); border-radius: 12px; }
  body.d4.d4-c .d4-shipment-skeleton__partners { grid-column: 1 / -1; padding: 0; }
}
@media (max-width: 600px) {
  body.d4.d4-c .d4-shipment-page .latest-news-row__page { padding-left: 0; padding-right: 0; }
  body.d4.d4-c .d4-shipment-page .sales_leadtablemain { padding: 16px 12px; }
}

/* Variant 3 shipment details and existing attachment forms share the Home card system. */
body.d4.d4-c .d4-shipment-detail { padding-top: 24px; }
body.d4.d4-c .d4-shipment-eyebrow { margin: 0 0 8px; color: var(--d4-blue); font: 800 11px/1.4 Roboto, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
body.d4.d4-c .d4-shipment-detail .shipment-form-box { padding: 26px; margin-bottom: 24px; }
body.d4.d4-c .d4-shipment-detail .shipment-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin: 0 0 24px; padding: 0 0 22px; border-bottom: 1px solid var(--d4-line); }
body.d4.d4-c .d4-shipment-detail .shipment-header .about_desp { min-width: 0; flex: 1; }
body.d4.d4-c .d4-shipment-detail .shipment-header h3 { overflow-wrap: anywhere; margin: 0 !important; }
body.d4.d4-c .d4-shipment-detail .ship-info { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 0; margin: 0; }
body.d4.d4-c .d4-shipment-detail .ship-info > a { margin: 0 !important; }
body.d4.d4-c .d4-shipment-detail .shipment-notification { margin: 16px 0 0; border-radius: 10px; background: #fff7df; padding: 12px 14px; }
body.d4.d4-c .d4-shipment-detail .shipment-notification p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--d4-navy); }
body.d4.d4-c .d4-shipment-detail .d4-shipment-facts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin: 0; }
body.d4.d4-c .d4-shipment-facts > div { width: auto !important; max-width: none; min-width: 0; padding: 0; order: 3; grid-column: span 4; }
body.d4.d4-c .d4-shipment-facts > .d4-shipment-origin { order: 0; }
body.d4.d4-c .d4-shipment-facts > .d4-shipment-destination { order: 1; }
body.d4.d4-c .d4-shipment-facts > .d4-shipment-routing { order: 2; }
body.d4.d4-c .d4-shipment-facts > .col-lg-2 { grid-column: span 2; }
body.d4.d4-c .d4-shipment-facts > .col-lg-6:not(.d4-shipment-origin):not(.d4-shipment-destination) { grid-column: span 6; }
body.d4.d4-c .d4-shipment-facts .origin_bg { height: 100%; margin: 0; padding: 16px; border: 1px solid var(--d4-line-soft); border-radius: 12px; background: #f8fbfe; }
body.d4.d4-c .d4-shipment-facts .d4-shipment-routing .origin_bg { background: #fffaeb; border-color: #f3e6bf; }
body.d4.d4-c .d4-shipment-facts .d4-shipment-party { align-items: flex-start; gap: 12px; }
body.d4.d4-c .d4-shipment-facts .d4-shipment-party__avatar { flex-basis: 48px; width: 48px; height: 48px; }
body.d4.d4-c .d4-shipment-facts .d4-shipment-party__role { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
body.d4.d4-c .d4-shipment-facts .d4-shipment-party__label { font-size: 15px; line-height: 1.5; }
body.d4.d4-c .d4-shipment-facts .d4-shipment-party__role svg { width: 17px; height: 17px; display: block; }
body.d4.d4-c .d4-shipment-facts .origin_bg p { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 0; }
body.d4.d4-c .d4-shipment-facts .origin_bg p > span:first-child { color: var(--d4-muted); font-size: 10px; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; }
body.d4.d4-c .d4-shipment-facts .origin_bg p > span:last-child { color: var(--d4-navy); font-size: 17px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
body.d4.d4-c .d4-shipment-detail .d4-shipment-section { padding: 22px; border: 1px solid var(--d4-line); border-radius: 16px; background: #fff; box-shadow: var(--d4-shadow); }
body.d4.d4-c .d4-shipment-section__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
body.d4.d4-c .d4-shipment-detail .d4-shipment-section__head h3 { font-size: 20px !important; line-height: 1.3 !important; margin: 0 !important; }
body.d4.d4-c .d4-shipment-detail .d4-shipment-section .table-responsive { margin: 0; padding: 0; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
body.d4.d4-c .d4-shipment-section table { table-layout: fixed; margin: 0; width: 100%; }
body.d4.d4-c .d4-shipment-section th { padding: 12px 8px !important; font-size: 10px; line-height: 1.4; letter-spacing: .07em; }
body.d4.d4-c .d4-shipment-section td { padding: 18px 8px !important; font-size: 13px; line-height: 1.5; vertical-align: top; overflow-wrap: anywhere; font-weight: 500; color: var(--d4-navy); }
body.d4.d4-c .d4-shipment-section .d4-invoice-table th:nth-child(1), body.d4.d4-c .d4-shipment-section .d4-invoice-table th:nth-child(2) { width: 21%; }
body.d4.d4-c .d4-shipment-section .d4-invoice-table th:nth-child(3) { width: 6%; }
body.d4.d4-c .d4-shipment-section .d4-invoice-table th:nth-child(4), body.d4.d4-c .d4-shipment-section .d4-invoice-table th:nth-child(6) { width: 10%; }
body.d4.d4-c .d4-shipment-section .d4-invoice-table th:nth-child(5) { width: 14%; }
body.d4.d4-c .d4-shipment-section .d4-invoice-table th:nth-child(7) { width: 7%; text-align: right; }
body.d4.d4-c .d4-shipment-section .d4-invoice-table th:nth-child(8) { width: 6%; }
body.d4.d4-c .d4-shipment-section .d4-invoice-table th:nth-child(9) { width: 5%; text-align: center; }
body.d4.d4-c .d4-shipment-section td[data-label="Value"] { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
body.d4.d4-c .d4-shipment-section td[data-label="Paid"] { text-align: center; }
body.d4.d4-c .d4-shipment-section td[data-label="Issued By"], body.d4.d4-c .d4-shipment-section td[data-label="Issued To"] { font-weight: 700; }
body.d4.d4-c .d4-shipment-section .table-btn-group { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0 0; }
body.d4.d4-c .d4-shipment-section .table-btn-group a { margin: 0; font-size: 12px; font-weight: 800; color: var(--d4-blue); }
body.d4.d4-c .d4-shipment-section .table-check { margin: 0; padding: 0; }
body.d4.d4-c .d4-shipment-section .badge { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; width: 19px; height: 19px; padding: 0; margin: 0 0 0 5px; font-size: 11px; line-height: 1; }
body.d4.d4-c .d4-shipment-section td[colspan] { text-align: center; padding: 30px 16px !important; color: var(--d4-muted); font-weight: 400; background: #f8fbfe; border-radius: 10px; }
body.d4.d4-c .d4-shipment-section .d4-document-table .file a { display: inline-flex; gap: 10px; align-items: flex-start; }
body.d4.d4-c .d4-shipment-section .d4-document-table .file svg { width: 22px; height: 26px; flex: 0 0 22px; }
body.d4.d4-c .d4-shipment-section .ship-text-mute { color: var(--d4-navy); font-size: 13px; text-transform: none; }
body.d4.d4-c .d4-shipment-paperwork { padding-top: 24px; }
body.d4.d4-c .d4-shipment-paperwork .d4-paperwork-heading { max-width: 980px; margin: 0 auto 24px; }
body.d4.d4-c .d4-paperwork-heading h3 { font-size: 28px; line-height: 1.25; overflow-wrap: anywhere; margin: 0; }
body.d4.d4-c .d4-shipment-paperwork form > .row { margin: 0; }
body.d4.d4-c .d4-shipment-paperwork form > .row > .col-md-10 { flex: 0 1 980px; width: 100%; max-width: 980px; padding: 0; }
body.d4.d4-c .d4-attachment-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; padding: 26px !important; margin-bottom: 20px; }
body.d4.d4-c .d4-attachment-card > .row { display: contents; }
body.d4.d4-c .d4-attachment-card > .row > div { width: auto !important; max-width: none; min-width: 0; padding: 0; }
body.d4.d4-c .d4-attachment-card > .row:first-child > div:first-child { grid-column: 1 / -1; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--d4-line); }
body.d4.d4-c .d4-main .d4-attachment-card .shipment-title { font-size: 20px !important; line-height: 1.3 !important; margin: 0 !important; }
body.d4.d4-c .d4-attachment-card .remove_btn { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--d4-muted); }
body.d4.d4-c .d4-attachment-card .remove_btn svg { width: 18px; height: 18px; fill: var(--d4-muted); }
body.d4.d4-c .d4-attachment-card .form-group { margin: 0 !important; }
body.d4.d4-c .d4-attachment-card .d4-field-label, body.d4.d4-c .d4-attachment-card .shipment-lable { display: block; margin: 0 0 9px; color: var(--d4-navy); font-size: 13px; font-weight: 700; line-height: 1.4; }
body.d4.d4-c .d4-attachment-card .d4-field-label > span, body.d4.d4-c .d4-attachment-card .shipment-lable > span { color: var(--d4-blue); margin-left: 3px; }
body.d4.d4-c .d4-attachment-card .d4-network-field-label { display: block; color: var(--d4-muted); font-size: 11px; font-weight: 700; line-height: 1.4; margin-bottom: 7px; }
body.d4.d4-c .d4-attachment-card input.banner_textbox { display: block; height: 42px !important; min-height: 42px !important; padding: 0 13px !important; margin: 0 !important; border: 1px solid var(--d4-line) !important; border-radius: 10px; background-color: #fff; color: var(--d4-navy) !important; font-size: 14px; line-height: normal; box-shadow: none; }
body.d4.d4-c .d4-attachment-card input.banner_textbox::placeholder { color: #748297 !important; opacity: 1; }
body.d4.d4-c .d4-attachment-card input.banner_textbox:focus { border-color: var(--d4-blue) !important; outline: none; box-shadow: none; }
body.d4.d4-c .d4-attachment-card input.banner_textbox:disabled { background-color: #f3f6f9; color: var(--d4-muted) !important; cursor: not-allowed; opacity: .7; }
body.d4.d4-c .d4-attachment-card input.banner_textbox.is-invalid { border-color: var(--d4-red) !important; }
body.d4.d4-c .d4-attachment-card > .row > .d4-attachment-parties, body.d4.d4-c .d4-attachment-card > .row > .d4-attachment-upload { grid-column: 1 / -1; }
body.d4.d4-c .d4-attachment-card .d4-attachment-parties { padding-top: 18px; border-top: 1px solid var(--d4-line-soft); }
body.d4.d4-c .d4-attachment-card .d4-attachment-parties .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
body.d4.d4-c .d4-attachment-card .d4-attachment-parties .row > div { width: auto; min-width: 0; padding: 0; }
body.d4.d4-c .d4-attachment-upload { background: #f8fbfe; padding: 18px !important; border: 1px solid var(--d4-line); border-radius: 12px; }
body.d4.d4-c .d4-attachment-upload .row { margin: 0; }
body.d4.d4-c .d4-attachment-upload .row > div { padding: 0; width: 100%; max-width: none; }
body.d4.d4-c .d4-attachment-upload .choose-file { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; flex-wrap: wrap; }
body.d4.d4-c .d4-attachment-upload .choose-btn { margin: 0; }
body.d4.d4-c .d4-attachment-upload .file-name { color: var(--d4-navy) !important; font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
body.d4.d4-c .d4-attachment-card .help-text { font-size: 12px; line-height: 1.6; color: var(--d4-muted) !important; }
body.d4.d4-c .d4-attachment-card .field-error { position: static; display: block; margin-top: 7px; color: var(--d4-red); font-size: 12px; line-height: 1.4; }
body.d4.d4-c .d4-attachment-card--file > .row > div { grid-column: 1 / -1; }
body.d4.d4-c .d4-shipment-paperwork .btn-right { display: flex; justify-content: flex-end; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; }
body.d4.d4-c .d4-shipment-paperwork .btn-right > * { margin: 0 !important; }
body.d4.d4-c .d4-shipment-paperwork .btn-right > .btn-sky { background: #fff !important; color: var(--d4-navy) !important; }
body.d4.d4-c .d4-shipment-detail-loading .shipment-form-box { margin-bottom: 24px; }
body.d4.d4-c .d4-shipment-loading-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
body.d4.d4-c .d4-shipment-loading-parties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
body.d4.d4-c .d4-shipment-loading-party { display: flex; gap: 12px; padding: 16px; background: #f8fbfe; border-radius: 12px; }
body.d4.d4-c .d4-shipment-loading-party > :last-child { flex: 1; }
body.d4.d4-c .d4-shipment-loading-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.d4.d4-c .d4-shipment-loading-facts > div, body.d4.d4-c .d4-attachment-loading-fields > div { display: grid; gap: 10px; }
body.d4.d4-c .d4-attachment-loading { max-width: 980px; margin: 0 auto; }
body.d4.d4-c .d4-attachment-loading .shipment-form-box { padding: 26px; }
body.d4.d4-c .d4-attachment-loading-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin-bottom: 22px; }
body.d4.d4-c .d4-attachment-loading-fields.is-file { grid-template-columns: minmax(0, 1fr); }
body.d4.d4-c .d4-shipment-loading-actions { display: flex; justify-content: flex-end; gap: 12px; margin: 20px 0; }
@media (max-width: 1000px) {
  body.d4.d4-c .d4-shipment-facts > .d4-shipment-origin, body.d4.d4-c .d4-shipment-facts > .d4-shipment-destination { grid-column: span 6; }
  body.d4.d4-c .d4-shipment-facts > .d4-shipment-routing { grid-column: 1 / -1; }
  body.d4.d4-c .d4-shipment-section table, body.d4.d4-c .d4-shipment-section tbody { display: block; }
  body.d4.d4-c .d4-shipment-section thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body.d4.d4-c .d4-shipment-section tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; padding: 18px; border: 1px solid var(--d4-line); border-radius: 12px; margin-bottom: 12px; }
  body.d4.d4-c .d4-shipment-section td { display: block; border: 0 !important; padding: 0 !important; text-align: left !important; white-space: normal; }
  body.d4.d4-c .d4-shipment-section td::before { content: attr(data-label); display: block; color: var(--d4-muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 6px; }
  body.d4.d4-c .d4-shipment-section td[data-label="Issued By"], body.d4.d4-c .d4-shipment-section td[data-label="Issued To"], body.d4.d4-c .d4-document-table td, body.d4.d4-c .d4-shipment-section td[colspan] { grid-column: 1 / -1; }
  body.d4.d4-c .d4-shipment-loading-parties { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body.d4.d4-c .d4-shipment-detail .shipment-form-box, body.d4.d4-c .d4-shipment-detail .d4-shipment-section { padding: 18px; }
  body.d4.d4-c .d4-shipment-detail .shipment-header { gap: 16px; }
  body.d4.d4-c .d4-shipment-detail .shipment-header h3 { font-size: 25px !important; }
  body.d4.d4-c .d4-shipment-detail .d4-shipment-facts { gap: 10px; }
  body.d4.d4-c .d4-shipment-facts > div, body.d4.d4-c .d4-shipment-facts > .col-lg-2 { grid-column: span 6; }
  body.d4.d4-c .d4-shipment-facts > .d4-shipment-origin, body.d4.d4-c .d4-shipment-facts > .d4-shipment-destination, body.d4.d4-c .d4-shipment-facts > .d4-shipment-routing { grid-column: 1 / -1; }
  body.d4.d4-c .d4-shipment-facts .origin_bg { padding: 12px; }
  body.d4.d4-c .d4-shipment-facts .d4-shipment-party__label { font-size: 13px; }
  body.d4.d4-c .d4-shipment-facts .origin_bg p > span:last-child { font-size: 15px; }
  body.d4.d4-c .d4-shipment-section__head { align-items: flex-start; }
  body.d4.d4-c .d4-shipment-section__head > a { width: 100%; }
  body.d4.d4-c .d4-shipment-paperwork .d4-paperwork-heading h3 { font-size: 25px; }
  body.d4.d4-c .d4-attachment-card { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 18px !important; }
  body.d4.d4-c .d4-attachment-card .d4-attachment-parties .row { grid-template-columns: minmax(0, 1fr); }
  body.d4.d4-c .d4-shipment-paperwork .btn-right { display: grid; grid-template-columns: minmax(0, 1fr); }
  body.d4.d4-c .d4-shipment-paperwork .btn-right > * { width: 100%; justify-content: center; }
  body.d4.d4-c .d4-shipment-loading-head { flex-wrap: wrap; }
  body.d4.d4-c .d4-shipment-loading-facts, body.d4.d4-c .d4-attachment-loading-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Legacy clearfix pseudo-elements must not occupy cells in the new grids. */
body.d4.d4-c .d4-shipment-facts::before, body.d4.d4-c .d4-shipment-facts::after,
body.d4.d4-c .d4-attachment-card > .row::before, body.d4.d4-c .d4-attachment-card > .row::after,
body.d4.d4-c .d4-attachment-parties .row::before, body.d4.d4-c .d4-attachment-parties .row::after { display: none; content: none; }
body.d4.d4-c .d4-shipment-detail .shipment-header .about_desp { display: block; margin: 0; }
body.d4.d4-c .d4-shipment-detail .d4-shipment-section .table-responsive { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
body.d4.d4-c .d4-shipment-section .d4-invoice-table td:first-child { min-width: 0 !important; white-space: normal !important; }
body.d4.d4-c .d4-shipment-paperwork .btn-right > .btn-sky { border: 1px solid var(--d4-navy) !important; }
body.d4.d4-c .d4-shipment-paperwork .btn-right > .btn-sky svg { fill: var(--d4-navy) !important; }
body.d4.d4-c .d4-attachment-upload a, body.d4.d4-c .d4-attachment-upload .file-name { overflow-wrap: anywhere; word-break: break-word; }

/* Variant 3 Payment Monitor: the shipment identity system with the original invoice controls. */
body.d4.d4-c .d4-payment-page #intranet-app { margin-bottom: 40px; }
body.d4.d4-c .d4-payment-list .sales_leadtablemain { padding: 22px; overflow: visible; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper .dt-layout-row { gap: 18px; margin: 0 0 22px; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper .dt-layout-start { min-width: 0; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper .dt-layout-end { gap: 18px; flex-wrap: wrap; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper .dt-search input { max-width: 440px; height: 42px; min-height: 42px; border-radius: 10px; border: 1px solid var(--d4-line); padding-left: 42px; background: #fff; font-size: 14px; box-shadow: none; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper .dt-search::after { width: 17px; height: 17px; top: 13px; left: 14px; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper .dt-search input::placeholder { color: var(--d4-muted); opacity: 1; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper .dt-length { font-size: 13px; }
body.d4.d4-c .d4-payment-list .country-notice { display: flex; flex-direction: row; gap: 15px; align-items: center; padding: 16px 18px; margin: 0 0 22px; border: 1px solid #f0dfaa; border-radius: 12px; background: #fffaeb !important; }
body.d4.d4-c .d4-payment-list .country-notice > img { flex: 0 0 34px; width: 34px; height: 40px; object-fit: contain; }
body.d4.d4-c .d4-payment-list .country-notice .notice-text { color: var(--d4-navy); font-size: 13px; line-height: 1.6; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList { table-layout: fixed; width: 100%; min-width: 0; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList th { padding: 13px 9px !important; font-size: 10px; line-height: 1.4; letter-spacing: .06em; vertical-align: middle; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList th:first-child { width: 30% !important; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList th:nth-child(2) { width: 6% !important; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList th:nth-child(3) { width: 9% !important; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList th:nth-child(4) { width: 14% !important; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList th:nth-child(5) { width: 10% !important; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList th:nth-child(6) { width: 7% !important; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList th:nth-child(7) { width: 7% !important; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList th:last-child { width: 17% !important; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList th[tabindex]:focus-visible { outline: 1px solid var(--d4-blue); outline-offset: -1px; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList td { padding: 22px 9px !important; vertical-align: middle; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; color: var(--d4-navy); }
body.d4.d4-c .d4-payment-list #PaymentMonitorList tbody tr { background: #fff; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList tbody tr:nth-child(even) { background: #f8fbfe; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList tbody tr:hover { background: var(--d4-blue-soft); }
body.d4.d4-c .d4-payment-list #PaymentMonitorList tbody tr.tr_red { background: #fff4f3; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList tbody tr.tr_red td { color: var(--d4-navy) !important; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList tbody tr.tr_red td:first-child { box-shadow: inset 3px 0 var(--d4-red); }
body.d4.d4-c .d4-payment-list #PaymentMonitorList tbody tr.tr_red td[data-label="Payment date"], body.d4.d4-c .d4-payment-list #PaymentMonitorList tbody tr.tr_red td[data-label="Value"] { color: var(--d4-red) !important; font-weight: 800; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList td:first-child { min-width: 0 !important; white-space: normal !important; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList td:first-child > a { display: block; white-space: normal; color: var(--d4-navy); }
body.d4.d4-c .d4-payment-list .d4-shipment-party__avatar { flex-basis: 48px; width: 48px; height: 48px; }
body.d4.d4-c .d4-payment-list .d4-shipment-party__label { font-size: 14px; }
body.d4.d4-c .d4-payment-list .d4-payment-type { display: inline-block; padding: 5px 7px; border-radius: 8px; background: #edf3fa; color: var(--d4-navy); font-size: 10px; font-weight: 800; line-height: 1.3; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList td[data-label="Value"] { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList td[data-label="Currency"] { color: var(--d4-muted); font-size: 12px; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList .table-check { display: grid; grid-template-columns: 20px minmax(0, 1fr) 14px; align-items: center; gap: 10px; padding: 0; margin: 0; white-space: normal; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList .table-check input { width: 20px; height: 20px; min-width: 20px; margin: 0; position: relative; cursor: pointer; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList .table-check input:disabled { cursor: not-allowed; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList .label_css { opacity: 1; position: relative; margin: 0; padding: 0; line-height: 1.35; min-width: 0; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList .repo-non { position: static; white-space: normal; font-size: 11px; font-weight: 700; line-height: 1.35; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList .cant-report .repo-non { color: #718094 !important; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList .js-report-non-payment .repo-non { color: var(--d4-red) !important; text-decoration: underline; text-underline-offset: 3px; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList .reported .repo-non { color: var(--d4-red) !important; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList .info-tip { align-self: center; }
body.d4.d4-c .d4-payment-list #PaymentMonitorList .info-tip::after { background: var(--d4-navy); padding: 10px 12px; border-radius: 10px; font-size: 12px; box-shadow: var(--d4-shadow); }
body.d4.d4-c .d4-payment-list #PaymentMonitorList .dt-empty { text-align: center; padding: 35px 20px !important; color: var(--d4-muted); }
body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper > .dt-layout-row:last-child { margin-bottom: 0; flex-wrap: wrap; }
body.d4.d4-c .d4-payment-list .shipment_tablebtn { display: flex; justify-content: flex-end; margin-top: 18px !important; }
body.d4.d4-c .d4-payment-loading__card { border: 1px solid var(--d4-line); border-radius: 16px; background: #fff; padding: 22px; box-shadow: var(--d4-shadow); margin-bottom: 18px; }
body.d4.d4-c .d4-payment-loading__toolbar { display: flex; gap: 18px; justify-content: space-between; margin-bottom: 22px; }
body.d4.d4-c .d4-payment-loading__toolbar > :first-child { margin-right: auto; }
body.d4.d4-c .d4-payment-loading__notice { margin-bottom: 22px; }
body.d4.d4-c .d4-payment-loading__head, body.d4.d4-c .d4-payment-loading__row { display: grid; grid-template-columns: 30fr 6fr 9fr 14fr 10fr 7fr 7fr 17fr; align-items: center; gap: 18px; }
body.d4.d4-c .d4-payment-loading__head { padding: 14px 9px; }
body.d4.d4-c .d4-payment-loading__row { border-top: 1px solid var(--d4-line-soft); padding: 22px 9px; }
body.d4.d4-c .d4-payment-loading__company { display: flex; align-items: center; gap: 12px; min-width: 0; }
body.d4.d4-c .d4-payment-loading__company > div:last-child { flex: 1; display: grid; gap: 6px; min-width: 0; }
body.d4.d4-c .d4-payment-loading__paid { display: flex; align-items: center; gap: 10px; }
body.d4.d4-c .d4-payment-loading__footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; }
body.d4.d4-c .d4-payment-loading > .legacy-skeleton { margin-left: auto; }
@media (max-width: 1100px) {
  body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper > .dt-layout-row:first-child { flex-wrap: wrap; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper > .dt-layout-row:first-child .dt-layout-start { flex: 1 1 100%; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper .dt-search input { max-width: none; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList, body.d4.d4-c .d4-payment-list #PaymentMonitorList tbody { display: block; }
  /* Sortable headers stay available on narrow screens; none of the existing sort actions are lost. */
  body.d4.d4-c .d4-payment-list #PaymentMonitorList thead { display: block; overflow-x: auto; margin-bottom: 14px; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList thead tr { display: flex; gap: 8px; padding: 1px; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList thead th { display: block; flex: 0 0 auto; width: auto !important; border: 1px solid var(--d4-line) !important; border-radius: 8px; background: #fff; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList thead th[tabindex] { width: max-content !important; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList thead th:last-child { display: none; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; padding: 18px; border: 1px solid var(--d4-line); border-radius: 12px; margin-bottom: 14px; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList tbody tr.tr_red { border-left: 3px solid var(--d4-red); }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList td { display: block; width: auto !important; max-width: 100%; min-width: 0; border: 0 !important; padding: 0 !important; text-align: left !important; white-space: normal; box-shadow: none !important; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList td::before { content: attr(data-label); display: block; color: var(--d4-muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList td:first-child, body.d4.d4-c .d4-payment-list #PaymentMonitorList td:last-child, body.d4.d4-c .d4-payment-list #PaymentMonitorList td[colspan] { grid-column: 1 / -1; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList td:first-child::before, body.d4.d4-c .d4-payment-list #PaymentMonitorList td[colspan]::before { display: none; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList td:last-child { padding-top: 14px !important; border-top: 1px solid var(--d4-line-soft) !important; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList .table-check { grid-template-columns: 20px auto 14px; justify-content: start; }
  body.d4.d4-c .d4-payment-loading__head { display: none; }
  body.d4.d4-c .d4-payment-loading__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; border: 1px solid var(--d4-line); border-radius: 12px; margin-top: 14px; padding: 18px; }
  body.d4.d4-c .d4-payment-loading__company, body.d4.d4-c .d4-payment-loading__paid { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body.d4.d4-c .d4-payment-list .sales_leadtablemain, body.d4.d4-c .d4-payment-loading__card { padding: 16px 12px; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper .dt-layout-row { gap: 14px; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper > .dt-layout-row:first-child .dt-layout-end { width: 100%; flex-direction: column; align-items: stretch; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper .dt-length { justify-content: flex-end; }
  body.d4.d4-c .d4-payment-list .country-notice { gap: 10px; padding: 14px; align-items: flex-start; }
  body.d4.d4-c .d4-payment-list .country-notice > img { flex-basis: 24px; width: 24px; height: 28px; }
  body.d4.d4-c .d4-payment-list .country-notice .notice-text { font-size: 12px; }
  body.d4.d4-c .d4-payment-list .shipment_tablebtn > a { width: 100%; text-align: center; }
  body.d4.d4-c .d4-payment-list #PaymentMonitorList_wrapper > .dt-layout-row:last-child .dt-layout-end { max-width: 100%; overflow-x: auto; }
  body.d4.d4-c .d4-payment-loading__toolbar { flex-wrap: wrap; }
  body.d4.d4-c .d4-payment-loading__toolbar > :first-child { width: 100% !important; }
  body.d4.d4-c .d4-payment-loading__notice { height: 150px !important; }
  body.d4.d4-c .d4-payment-loading__footer { flex-wrap: wrap; }
}
body.d4.d4-c .d4-payment-list #PaymentMonitorList .table-check input:disabled { opacity: .55 !important; }
/* Variant c: paired Home activity previews, using the existing Home response. */
body.d4.d4-c .d4-home__mid.d4-home-activity { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
body.d4.d4-c .d4-activity-card { min-width: 0; padding: 22px; display: flex; flex-direction: column; container: homeactivitycard / inline-size; }
html body.d4.d4-c .d4-home__mid.d4-home-activity > section.d4-activity-card .d4-section__head { align-items: center !important; gap: 12px !important; margin-bottom: 18px; }
html body.d4.d4-c .d4-home__mid.d4-home-activity > section.d4-activity-card h4 { font-size: 20px !important; line-height: 1.25 !important; }
body.d4.d4-c .d4-activity-caption { margin: 5px 0 0; font-size: 12px; line-height: 1.5; color: var(--d4-muted); }
body.d4.d4-c .d4-activity-card .d4-section__head > .d4-pill { flex-shrink: 0; }
body.d4.d4-c .d4-activity-rows { display: grid; gap: 10px; }
body.d4.d4-c .d4-activity-shipment { display: grid; gap: 12px; padding: 15px; border: 1px solid var(--d4-line-soft); border-radius: 12px; color: var(--d4-navy); background: var(--d4-tint, #f3f8fc); }
body.d4.d4-c .d4-activity-shipment:hover, body.d4.d4-c .d4-activity-shipment:focus-visible { border-color: var(--d4-blue); background: #fff; }
body.d4.d4-c .d4-activity-shipment__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
body.d4.d4-c .d4-activity-reference { font-size: 14px; font-weight: 900; overflow-wrap: anywhere; }
body.d4.d4-c .d4-activity-shipment .d4-status { flex-shrink: 0; background: #fff; color: var(--d4-navy); }
body.d4.d4-c .d4-activity-shipment__facts { display: flex; flex-wrap: wrap; gap: 14px 24px; }
body.d4.d4-c .d4-activity-shipment__facts > span { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
body.d4.d4-c .d4-activity-shipment__facts .iconify { flex-shrink: 0; width: 18px; height: 18px; color: var(--d4-blue); }
body.d4.d4-c .d4-activity-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--d4-muted); }
body.d4.d4-c .d4-activity-shipment .d4-shipment-party { gap: 12px; }
body.d4.d4-c .d4-activity-shipment .d4-shipment-party__avatar { width: 42px; height: 42px; flex-basis: 42px; font-size: 15px; }
body.d4.d4-c .d4-activity-shipment .d4-shipment-party__label { font-size: 14px; }
body.d4.d4-c .d4-activity-empty { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border-radius: 12px; background: linear-gradient(135deg, #eff7fc, #fff9e9); }
body.d4.d4-c .d4-activity-empty__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; background: #fff; border: 1px solid var(--d4-line); border-radius: 12px; color: var(--d4-blue); font-size: 24px; }
body.d4.d4-c .d4-activity-empty h5 { font-size: 23px; line-height: 1.2; color: var(--d4-navy); margin: 0 0 12px; }
body.d4.d4-c .d4-activity-empty p { max-width: 46ch; margin: 0 0 20px; color: var(--d4-muted); font-size: 14px; line-height: 1.65; }
body.d4.d4-c .d4-activity-empty__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; margin-top: auto; }
html body.d4.d4-c .d4-home__mid > section.d4-activity-card .d4-activity-empty__actions .d4-pill { box-sizing: border-box !important; max-width: 100%; justify-content: center !important; white-space: normal; text-align: center !important; }
html body.d4.d4-c .d4-home__mid > section.d4-activity-card .d4-activity-empty__actions .d4-pill--outline { background: #fff !important; color: var(--d4-navy) !important; border: 1px solid var(--d4-line) !important; }
html body.d4.d4-c .d4-home__mid > section.d4-activity-card .d4-activity-empty__actions .d4-pill--outline:hover, html body.d4.d4-c .d4-home__mid > section.d4-activity-card .d4-activity-empty__actions .d4-pill--outline:focus-visible { border-color: var(--d4-navy) !important; }
html body.d4.d4-c .d4-home__mid > section.d4-activity-card .d4-activity-empty__actions .d4-pill--outline .iconify { color: var(--d4-navy) !important; }
body.d4.d4-c .d4-activity-message { padding: 24px; border-radius: 12px; background: #f3f8fc; color: var(--d4-muted); font-size: 14px; line-height: 1.7; }
body.d4.d4-c .d4-activity-payments .d4-table { table-layout: fixed; }
html body.d4.d4-c .d4-home-activity .d4-activity-payments .d4-table th { font-size: 10px !important; letter-spacing: .05em !important; }
body.d4.d4-c .d4-activity-payments .d4-table th:first-child { width: 34%; }
body.d4.d4-c .d4-activity-payments .d4-table th:nth-child(2) { width: 25%; }
body.d4.d4-c .d4-activity-payments .d4-table th:nth-child(3) { width: 17%; }
html body.d4.d4-c .d4-home-activity .d4-activity-payments .d4-table td { padding: 22px 8px !important; font-size: 13px !important; overflow-wrap: anywhere; white-space: normal !important; }
body.d4.d4-c .d4-activity-payments .d4-table tbody tr { height: 96px; }
body.d4.d4-c .d4-activity-payments .d4-table td.is-value { font-weight: 900; font-variant-numeric: tabular-nums; }
body.d4.d4-c .d4-activity-payments .d4-status { font-size: 10px; padding: 4px 7px; letter-spacing: .03em; }
body.d4.d4-c .d4-activity-placeholder-row { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--d4-line-soft); border-radius: 12px; }
@media (max-width: 760px) {
  body.d4.d4-c .d4-home__mid.d4-home-activity { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body.d4.d4-c .d4-activity-card { padding: 16px; }
  body.d4.d4-c .d4-activity-empty { padding: 18px; }
  body.d4.d4-c .d4-activity-empty h5 { font-size: 21px; }
}
@container homeactivitycard (max-width: 520px) {
  html body.d4.d4-c .d4-home__mid.d4-home-activity > section.d4-activity-card .d4-section__head { align-items: flex-start !important; flex-direction: column !important; }
  body.d4.d4-c .d4-activity-payments .table-responsive { overflow: visible; }
  body.d4.d4-c .d4-activity-payments .d4-table, body.d4.d4-c .d4-activity-payments tbody { display: block; }
  body.d4.d4-c .d4-activity-payments .d4-table thead { display: none; }
  body.d4.d4-c .d4-activity-payments .d4-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border: 1px solid var(--d4-line-soft); border-radius: 12px; padding: 15px; margin-bottom: 10px; background: #f3f8fc; }
  body.d4.d4-c .d4-activity-payments .d4-table tbody tr { height: auto; }
  html body.d4.d4-c .d4-home-activity .d4-activity-payments .d4-table td { display: block; padding: 0 !important; border: 0 !important; }
  body.d4.d4-c .d4-activity-payments .d4-table td:first-child { grid-column: 1 / -1; font-size: 14px; }
  body.d4.d4-c .d4-activity-payments .d4-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--d4-muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
}

/* Variant 3 — directories, company profiles and user forms share the home card system.
   These layout hooks leave the existing data, controls and permission gates intact. */
body.d4.d4-c .d4-directory { display: flex; flex-direction: column; gap: 24px; }
body.d4.d4-c .d4-directory > [class*="col-"] { flex: none; width: 100%; max-width: 100%; }
body.d4.d4-c .d4-directory-filters { order: -1; }
body.d4.d4-c .d4-directory-filters .sticky { position: static; }
body.d4.d4-c .d4-directory-filters .find-offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 24px; margin: 0 !important; }
body.d4.d4-c .d4-directory-filters .find-offices h4 { grid-column: 1 / -1; margin: 0 0 2px; }
body.d4.d4-c .d4-directory-filters .search-input { grid-column: span 2; margin: 0; }
body.d4.d4-c .d4-directory-filters .banner_textbox,
body.d4.d4-c .d4-directory-filters .banner_select { margin: 0 !important; width: 100%; min-width: 0; }
body.d4.d4-c .d4-directory-filters .text-end { grid-column: 1 / -1; }
body.d4.d4-c .d4-directory-filters .text-end:empty { display: none; }
body.d4.d4-c .d4-directory-filters .departed-members-link { display: flex; justify-content: flex-end; padding: 10px 4px 0; border: 0 !important; background: transparent !important; box-shadow: none !important; }
body.d4.d4-c .d4-directory-filters .departed-members-link a { width: auto !important; min-height: 0 !important; padding: 4px 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--d4-muted) !important; font-size: 13px !important; font-weight: 500 !important; }
body.d4.d4-c .d4-directory-filters .departed-members-link a:hover { color: var(--d4-navy) !important; text-decoration: underline; }
body.d4.d4-c .d4-directory-results,
body.d4.d4-c .d4-directory-skeleton > .col-md-12 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
body.d4.d4-c .d4-directory-results > :not(.member-list-main),
body.d4.d4-c .d4-directory-results > .no-members { grid-column: 1 / -1; }
body.d4.d4-c .d4-directory .member-list-main { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px 22px; align-content: start; min-height: 198px; margin: 0; padding: 24px; background: #fff; border: 1px solid var(--d4-line); border-radius: var(--d4-radius); box-shadow: var(--d4-shadow); }
body.d4.d4-c .d4-directory .member-list-main.bg-red { background: #fff6f4; border-color: #ebc4bf; }
body.d4.d4-c .d4-directory .me-logo { grid-column: 1; grid-row: 1; width: 110px; min-width: 0; margin: 0; padding: 0; }
body.d4.d4-c .d4-directory .me-logo a { display: flex; align-items: center; justify-content: center; width: 100%; height: 94px; padding: 6px; background: #fff; border: 1px solid var(--d4-line-soft); border-radius: 12px; }
body.d4.d4-c .d4-directory .me-logo img { max-width: 100%; width: auto; height: auto; max-height: 80px; object-fit: contain; }
body.d4.d4-c .d4-directory .award-tags { position: static; grid-column: 1; grid-row: 2; display: flex; justify-content: center; gap: 6px; width: auto; margin: 0; }
body.d4.d4-c .d4-directory .award-tags img { position: static; width: 30px; height: 40px; object-fit: contain; }
body.d4.d4-c .d4-directory .me-right { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: auto; min-width: 0; }
body.d4.d4-c .d4-directory .me-content { display: flex; flex-direction: column; width: 100%; min-width: 0; }
body.d4.d4-c .d4-directory .title-with-badge { display: contents; }
body.d4.d4-c .d4-directory .title-with-badge > a { order: 0; color: var(--d4-navy); font-size: 19px; line-height: 1.3; font-weight: 900; overflow-wrap: anywhere; margin: 0 0 6px; }
body.d4.d4-c .d4-directory .title-with-badge > a:hover { color: var(--d4-blue); }
body.d4.d4-c .d4-directory .me-content h5 { order: 1; color: var(--d4-muted); font-size: 14px; font-weight: 400; line-height: 1.5; margin: 0 0 12px; }
body.d4.d4-c .d4-directory .title-with-badge .me-join { order: 2; margin: 0 0 14px !important; width: auto; }
body.d4.d4-c .d4-directory .me-join ul { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0; margin: 0; }
body.d4.d4-c .d4-directory .me-join ul img { height: 25px; width: auto; margin: 0; object-fit: contain; }
body.d4.d4-c .d4-directory .network-badge { margin: 0; padding: 5px 10px; font-size: 11px; line-height: 1.2; border-radius: 6px; white-space: normal; }
body.d4.d4-c .d4-directory .member-website { order: 3; color: var(--d4-blue); font-size: 13px; line-height: 1.4; font-style: normal; overflow-wrap: anywhere; }
body.d4.d4-c .d4-directory .payment-alert { align-items: flex-start; border-top: 1px solid #ebc4bf; padding-top: 12px; gap: 4px; }
body.d4.d4-c .d4-directory .payment-alert p,
body.d4.d4-c .d4-directory .payment-alert span { color: var(--d4-red); font-size: 13px; }
body.d4.d4-c .d4-directory .concluded-date { text-align: left; font-size: 13px; padding-top: 8px; border-top: 1px solid var(--d4-line); }
body.d4.d4-c .d4-directory .no-members { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
body.d4.d4-c .d4-directory-skeleton { margin: 0; }
body.d4.d4-c .d4-directory-skeleton > .col-md-12 { padding: 0; }
body.d4.d4-c .d4-directory .member-list-main--skeleton .me-logo > * { max-width: 100%; }

/* Company identity, offices and contacts. All profile sections stay in the document. */
body.d4.d4-c .d4-company-profile .latest-news-row--profile { display: block; margin: 0; }
body.d4.d4-c .d4-company-profile .latest-news-row__page,
body.d4.d4-c .d4-company-profile .latest-news-row__news { width: 100% !important; flex: none !important; max-width: none; min-width: 0; padding: 0; }
body.d4.d4-c .d4-company-profile #member-info { display: flex; flex-direction: column; gap: 24px; }
body.d4.d4-c .d4-company-profile .detail-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 28px; margin: 0; background: #fff; border: 1px solid var(--d4-line); border-radius: var(--d4-radius); box-shadow: var(--d4-shadow); }
body.d4.d4-c .d4-company-profile .logo-left,
body.d4.d4-c .d4-company-profile .detail-right { width: auto; min-width: 0; margin: 0; padding: 0; }
body.d4.d4-c .d4-company-profile .ff-logo-main { position: relative; width: 100%; padding: 0; }
body.d4.d4-c .d4-company-profile .ff-logo { display: flex; align-items: center; justify-content: center; height: 142px; padding: 16px; margin: 0 0 16px; border-color: var(--d4-line-soft) !important; box-shadow: none !important; }
body.d4.d4-c .d4-company-profile .ff-logo img { max-height: 106px; width: auto; max-width: 100%; object-fit: contain; }
body.d4.d4-c .d4-company-profile .ff-logo-main > p { font-size: 13px; line-height: 1.5; color: var(--d4-muted); overflow-wrap: anywhere; }
body.d4.d4-c .d4-company-profile .ff-logo-main .award-tags { position: absolute; top: -12px; left: 12px; right: auto; display: flex; gap: 4px; }
body.d4.d4-c .d4-company-profile .ff-logo-main .award-tags img { width: 30px; height: 42px; object-fit: contain; }
body.d4.d4-c .d4-company-profile .dr-title,
body.d4.d4-c .d4-company-profile .dr-title > div { width: 100%; margin: 0; }
body.d4.d4-c .d4-company-profile .member-title { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin: 0 0 20px; }
body.d4.d4-c .d4-company-profile .member-title h4 { margin: 0 !important; line-height: 1.2 !important; overflow-wrap: anywhere; }
body.d4.d4-c .d4-company-profile .member-title .d-flex { flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
body.d4.d4-c .d4-company-profile .member-title .d-flex img { height: 28px; width: auto; margin: 0; object-fit: contain; }
body.d4.d4-c .d4-company-profile .dr-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; }
body.d4.d4-c .d4-company-profile .dr-social li { margin: 0; }
body.d4.d4-c .d4-company-profile .dr-social a { display: inline-flex; justify-content: center; align-items: center; width: 34px; height: 34px; border: 1px solid var(--d4-line); border-radius: 10px; }
body.d4.d4-c .d4-company-profile .dr-social img { width: 18px; height: 18px; }
body.d4.d4-c .d4-company-profile .dr-address-details { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px 24px; padding: 20px 0 0; border-top: 1px solid var(--d4-line-soft); margin: 0; }
body.d4.d4-c .d4-company-profile .dr-address-details li { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: 14px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
body.d4.d4-c .d4-company-profile .dr-address-details li:first-child { grid-row: span 2; }
body.d4.d4-c .d4-company-profile .dr-address-details img { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; }
body.d4.d4-c .d4-company-profile .dr-address-details p { margin: 0; font-size: 14px; line-height: 1.5; }
body.d4.d4-c .d4-company-profile .dr-address-details a { min-width: 0; max-width: calc(100% - 28px); }
body.d4.d4-c .d4-company-profile .member-branches { margin: 0; }
body.d4.d4-c .d4-company-profile .custom-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; margin: 0; border: 0; overflow: visible; }
body.d4.d4-c .d4-company-profile .custom-nav > li { margin: 0; padding: 0; }
body.d4.d4-c .d4-company-profile .custom-nav > li > a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid var(--d4-line); border-radius: 999px; padding: 9px 18px; background: #fff; color: var(--d4-navy); font-size: 14px; line-height: 1.4; font-weight: 700; white-space: normal; }
body.d4.d4-c .d4-company-profile .custom-nav > li > a.active { background: var(--d4-navy); color: #fff; border-color: var(--d4-navy); }
body.d4.d4-c .d4-company-profile .custom-nav > li > a:hover { border-color: var(--d4-blue); }
body.d4.d4-c .d4-company-profile .flex-button { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 !important; }
body.d4.d4-c .d4-company-profile .flex-button:empty { display: none; }
body.d4.d4-c .d4-company-profile .contact-details > h5 { margin: 0 0 16px; }
body.d4.d4-c .d4-company-profile .contact-details > .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
body.d4.d4-c .d4-company-profile .contact-details > .row > div { width: auto; max-width: none; padding: 0; margin: 0 !important; }
body.d4.d4-c .d4-company-profile .contact-box { position: relative; height: 100%; padding: 22px; min-width: 0; }
body.d4.d4-c .d4-company-profile .contact-box .coordinator-label { position: static; display: table; margin: 0 0 14px; padding: 5px 10px; border-radius: 6px; background: var(--d4-yellow-soft); color: var(--d4-navy); font-size: 11px; line-height: 1.3; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
body.d4.d4-c .d4-company-profile .contact-box .cb-header { display: flex; align-items: center; gap: 14px; background: transparent; border-radius: 0; padding: 0; }
body.d4.d4-c .d4-company-profile .contact-box .cb-header > img { width: 52px; height: 52px; border-radius: 12px; flex: 0 0 52px; }
body.d4.d4-c .d4-company-profile .cb-header > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
body.d4.d4-c .d4-company-profile .contact-box .cb-header p { order: -1; font-size: 18px; font-weight: 900; line-height: 1.3; color: var(--d4-navy); overflow-wrap: anywhere; }
body.d4.d4-c .d4-company-profile .contact-box .cb-header h4 { margin-top: 4px; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--d4-muted); overflow-wrap: anywhere; }
body.d4.d4-c .d4-company-profile .cb-header:has(.contact-edit-icon, .contact-visibility-icon) { padding-top: 25px; }
body.d4.d4-c .d4-company-profile .contact-box .cb-header .contact-edit-icon { top: -6px; left: auto; right: 28px; }
body.d4.d4-c .d4-company-profile .contact-box .cb-header .contact-visibility-icon { top: -6px; right: -2px; }
body.d4.d4-c .d4-company-profile .contact-edit-icon svg [fill] { fill: var(--d4-blue); }
body.d4.d4-c .d4-company-profile .contact-visibility-icon svg [stroke="#e4f0fa"] { stroke: var(--d4-blue); }
body.d4.d4-c .d4-company-profile .cb-content { padding: 18px 0 0; margin-top: 18px; border-top: 1px solid var(--d4-line-soft); }
body.d4.d4-c .d4-company-profile .cb-content p { font-size: 13px; line-height: 1.6; margin: 0 0 8px; overflow-wrap: anywhere; }
body.d4.d4-c .d4-company-profile .cb-content b { color: var(--d4-muted); font-weight: 500; }
body.d4.d4-c .d4-company-profile .cb-content a { color: var(--d4-navy); }
body.d4.d4-c .d4-company-profile .add-contact-box { display: flex; align-items: center; justify-content: center; min-height: 180px; }
body.d4.d4-c .d4-company-profile .d4-profile-expertise { margin: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
body.d4.d4-c .d4-company-profile .d4-profile-expertise > div { width: auto; padding: 0; margin: 0 !important; }
body.d4.d4-c .d4-company-profile .listing-box,
body.d4.d4-c .d4-company-profile .intro-box { padding: 24px; }
body.d4.d4-c .d4-company-profile .listing-box h4,
body.d4.d4-c .d4-company-profile .intro-box h4 { margin-bottom: 18px; }
body.d4.d4-c .d4-company-profile .d4-profile-expertise ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 0; }
body.d4.d4-c .d4-company-profile .d4-profile-expertise li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; min-width: 0; }
body.d4.d4-c .d4-company-profile .d4-profile-expertise li img { width: 30px; height: 30px; object-fit: contain; flex: 0 0 30px; margin: 0; }
body.d4.d4-c .d4-company-profile .d4-profile-expertise li p { font-size: 14px; line-height: 1.4; margin: 0; }
body.d4.d4-c .d4-company-profile .intro-box,
body.d4.d4-c .d4-company-profile .member-media,
body.d4.d4-c .d4-company-profile .member-certificates { margin: 0 !important; }
body.d4.d4-c .d4-company-profile .intro-details { width: 100%; }
body.d4.d4-c .d4-company-profile .intro-details p,
body.d4.d4-c .d4-company-profile .company-intro-summary { font-size: 14px; line-height: 1.7; }
body.d4.d4-c .d4-company-profile .member-media .media-thumbnail { border-radius: 12px; }
body.d4.d4-c .d4-company-profile .member-certificates .listing-box { flex-wrap: wrap; gap: 16px; }
body.d4.d4-c .d4-company-profile .member-certificates h4 { margin: 0; }
body.d4.d4-c .d4-company-profile .attended-meetings { order: 1; display: block; padding: 22px 24px; margin: 0; border: 1px solid var(--d4-line); border-radius: var(--d4-radius); background: var(--d4-soft); box-shadow: none; white-space: normal; }
body.d4.d4-c .d4-company-profile .attended-meetings h4 { margin: 0 0 14px; }
body.d4.d4-c .d4-company-profile .attended-meetings ul { flex-direction: row; gap: 10px; }
body.d4.d4-c .d4-company-profile .attended-meetings li { border: 1px solid var(--d4-line); border-radius: 6px; background: #fff; padding: 7px 10px; font-size: 13px; line-height: 1.4; }
body.d4.d4-c .d4-company-profile .latest-news-row__news { margin-top: 32px; display: block; }
body.d4.d4-c .d4-company-profile .latest-news-fix { position: static; padding: 0; border: 0; background: transparent; box-shadow: none; width: 100%; }
body.d4.d4-c .d4-company-profile .latest-news-title { font-size: 20px; margin: 0 0 18px; }
body.d4.d4-c .d4-company-profile .latest-all-news { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; overflow: visible; max-height: none; padding: 0; }
body.d4.d4-c .d4-company-profile .latest-news-item { display: flex; flex-direction: column; min-width: 0; width: auto !important; flex: none; padding: 20px; margin: 0; border: 1px solid var(--d4-line); border-radius: var(--d4-radius); background: #fff; box-shadow: var(--d4-shadow); }
body.d4.d4-c .d4-company-profile .latest-news-item > a { font-size: 16px; line-height: 1.4; font-weight: 900; margin: 14px 0; }
body.d4.d4-c .d4-company-profile .latest-news-item .ln-img { order: -1; width: 100%; height: 160px; object-fit: cover; border-radius: 10px; margin: 0; }
body.d4.d4-c .d4-company-profile .latest-news-item .ln-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--d4-line-soft); display: flex; align-items: center; gap: 12px; }
body.d4.d4-c .d4-company-profile .ln-footer img { width: 68px; height: 44px; object-fit: contain; }
body.d4.d4-c .d4-company-profile .ln-footer p { font-size: 11px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
body.d4.d4-c .d4-company-profile .ln-cta { grid-column: 1 / -1; padding: 0; }
body.d4.d4-c .d4-company-profile .skeleton-profile .skeleton-section { margin: 0; }

/* The shared Add/Edit User form keeps its fields, validation and submit actions. */
body.d4.d4-c .d4-user-page > .container { max-width: 1120px !important; }
body.d4.d4-c .d4-user-page .country-notice { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
body.d4.d4-c .d4-user-page .country-notice > svg,
body.d4.d4-c .d4-user-page .country-notice > img { width: 22px; height: 22px; flex: 0 0 22px; }
body.d4.d4-c .d4-user-page .notice-text { font-size: 13px; line-height: 1.5; }
body.d4.d4-c .d4-user-page .add-user-card { padding: 28px; }
body.d4.d4-c .d4-user-page .add-user-company { margin: 0 0 20px; padding: 0 0 20px; border-bottom: 1px solid var(--d4-line); font-size: 18px; line-height: 1.4; color: var(--d4-navy); font-weight: 900; }
body.d4.d4-c .d4-user-page .add-user-card form { display: flex; flex-direction: column; gap: 22px; }
body.d4.d4-c .d4-user-page .add-user-card form > .row { margin: 0 !important; gap: 22px; }
body.d4.d4-c .d4-user-page .add-user-card form > .row > [class*="col-"] { padding: 0; min-width: 0; }
body.d4.d4-c .d4-user-page .add-user-card form > .row > .col-lg-6 { flex: 1 1 0; max-width: none; }
body.d4.d4-c .d4-user-page .d4-user-username { order: 0; }
body.d4.d4-c .d4-user-page .d4-user-personal-title { order: 1; }
body.d4.d4-c .d4-user-page .d4-user-personal { order: 2; }
body.d4.d4-c .d4-user-page .d4-user-email { order: 3; }
body.d4.d4-c .d4-user-page .d4-user-preferences { order: 4; padding: 22px 0; border-top: 1px solid var(--d4-line); border-bottom: 1px solid var(--d4-line); }
body.d4.d4-c .d4-user-page .d4-user-access-title { order: 5; }
body.d4.d4-c .d4-user-page .d4-user-passwords { order: 6; }
body.d4.d4-c .d4-user-page .usr-footer { order: 7; margin: 0 !important; display: flex; flex-direction: row; align-items: flex-end; gap: 20px; padding-top: 22px; border-top: 1px solid var(--d4-line); }
body.d4.d4-c .d4-user-page .d4-user-edit-submit { order: 8; padding: 0; }
body.d4.d4-c .d4-user-page .new_username { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px; background: var(--d4-soft); margin: 0 !important; }
body.d4.d4-c .d4-user-page .new_username label { margin: 0; font-size: 13px; }
body.d4.d4-c .d4-user-page .new_usertext { padding: 0; background: transparent; }
body.d4.d4-c .d4-user-page .d4-user-section-title { margin: 0; font-size: 20px !important; line-height: 1.3; }
body.d4.d4-c .d4-user-page label { color: var(--d4-navy); font-size: 14px; line-height: 1.5; font-weight: 700; margin-bottom: 8px; }
body.d4.d4-c .d4-user-page .banner_textbox { width: 100%; margin: 0 !important; color: var(--d4-text) !important; }
body.d4.d4-c .d4-user-page .banner_textbox::placeholder { color: var(--d4-muted) !important; opacity: 1; }
body.d4.d4-c .d4-user-page .mr-form { align-items: flex-start; gap: 10px; }
body.d4.d4-c .d4-user-page .mr-form .form-group { flex: 0 0 100px; margin: 0 !important; }
body.d4.d4-c .d4-user-page .mr-form input { flex: 1; min-width: 0; }
body.d4.d4-c .d4-user-page .error_message { display: block; color: var(--d4-muted); font-size: 12px; line-height: 1.6; margin: 8px 0 0; }
body.d4.d4-c .d4-user-page .custom-check { margin: 0 0 12px; }
body.d4.d4-c .d4-user-page .custom-check label { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
body.d4.d4-c .d4-user-page .custom-check .step_2block1rb { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; }
body.d4.d4-c .d4-user-page .custom-check p { margin: 0; font-size: 13px; line-height: 1.5; font-weight: 400; color: var(--d4-text); }
body.d4.d4-c .d4-user-page .radio_btn { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
body.d4.d4-c .d4-user-page .radio_btn label { margin: 0 !important; font-size: 13px; }
body.d4.d4-c .d4-user-page .new_userbtn { margin: 0; text-align: right; }

@media (max-width: 1100px) {
  body.d4.d4-c .d4-company-profile .contact-details > .row,
  body.d4.d4-c .d4-company-profile .latest-all-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.d4.d4-c .d4-directory-filters .find-offices { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; gap: 12px; }
  body.d4.d4-c .d4-directory-results,
  body.d4.d4-c .d4-directory-skeleton > .col-md-12 { grid-template-columns: minmax(0, 1fr); }
  body.d4.d4-c .d4-company-profile .detail-row { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 22px; }
  body.d4.d4-c .d4-company-profile .logo-left { max-width: 240px; }
  body.d4.d4-c .d4-company-profile .member-title h4 { font-size: 26px !important; }
  body.d4.d4-c .d4-company-profile .contact-details > .row,
  body.d4.d4-c .d4-company-profile .d4-profile-expertise { grid-template-columns: minmax(0, 1fr); }
  body.d4.d4-c .d4-company-profile .member-media .row > .col-4 { width: 100%; }
  body.d4.d4-c .d4-company-profile .listing-box,
  body.d4.d4-c .d4-company-profile .intro-box { padding: 22px; }
  body.d4.d4-c .d4-user-page .add-user-card { padding: 22px; }
  body.d4.d4-c .d4-user-page .add-user-card form > .row > .col-lg-6 { flex: 0 0 100%; }
  body.d4.d4-c .d4-user-page .usr-footer { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  body.d4.d4-c .d4-directory .member-list-main { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 18px; }
  body.d4.d4-c .d4-directory .me-logo { width: 72px; }
  body.d4.d4-c .d4-directory .me-logo a { height: 72px; }
  body.d4.d4-c .d4-directory .me-logo img { max-height: 60px; }
  body.d4.d4-c .d4-directory .title-with-badge > a { font-size: 17px; }
  body.d4.d4-c .d4-directory-filters .find-offices { grid-template-columns: minmax(0, 1fr); }
  body.d4.d4-c .d4-directory-filters .search-input { grid-column: 1; }
  body.d4.d4-c .d4-company-profile .dr-address-details,
  body.d4.d4-c .d4-company-profile .latest-all-news,
  body.d4.d4-c .d4-company-profile .d4-profile-expertise ul { grid-template-columns: minmax(0, 1fr); }
}

/* Reset dimensions carried by the ported directory rows and filter boxes. */
body.d4.d4-c .d4-directory::before,
body.d4.d4-c .d4-directory::after { display: none; }
body.d4.d4-c .d4-directory-filters .find-offices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.d4.d4-c .d4-directory-filters .find-offices h4 { margin: 0 0 2px !important; }
body.d4.d4-c .d4-directory-filters .departed-members-link { display: flex; min-height: 0; margin-top: 0 !important; padding: 10px 4px 0 !important; }
body.d4.d4-c .d4-directory .member-list-main { padding: 24px !important; align-items: start; }
body.d4.d4-c .d4-directory .me-right { width: 100% !important; }
body.d4.d4-c .d4-directory .me-content { margin: 0 !important; }
body.d4.d4-c .d4-directory .me-content h5 { color: var(--d4-muted) !important; }
body.d4.d4-c .d4-directory .me-join ul { justify-content: flex-start; }
body.d4.d4-c .d4-directory .member-website { color: var(--d4-blue) !important; }
body.d4.d4-c .d4-directory-filters .search-input input { height: 42px !important; min-height: 42px !important; }
body.d4.d4-c .d4-directory-filters .search-input input::placeholder { color: var(--d4-muted) !important; opacity: 1; }
@media (max-width: 900px) {
  body.d4.d4-c .d4-directory-filters .find-offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  body.d4.d4-c .d4-directory-filters .find-offices { grid-template-columns: minmax(0, 1fr); }
  body.d4.d4-c .d4-directory .member-list-main { padding: 18px !important; }
}
body.d4.d4-c .d4-company-profile .contact-details > .row::before,
body.d4.d4-c .d4-company-profile .contact-details > .row::after,
body.d4.d4-c .d4-company-profile .d4-profile-expertise::before,
body.d4.d4-c .d4-company-profile .d4-profile-expertise::after,
body.d4.d4-c .d4-user-page .add-user-card form > .row::before,
body.d4.d4-c .d4-user-page .add-user-card form > .row::after { display: none; }
body.d4.d4-c .d4-company-profile .dr-address-details { width: 100%; max-width: none; }
body.d4.d4-c .d4-company-profile .dr-address-details p { width: auto; flex: 1; }
body.d4.d4-c .d4-company-profile .contact-box .cb-header { background: transparent !important; }
body.d4.d4-c .d4-company-profile .cb-content p { display: block; }
body.d4.d4-c .d4-company-profile .cb-content b { font-size: 13px; }
body.d4.d4-c .d4-company-profile .d4-profile-expertise li { width: auto; }
body.d4.d4-c .d4-company-profile .latest-news-fix { padding: 0 !important; margin: 0; }
body.d4.d4-c .d4-user-page .banner_textbox { height: 42px !important; min-height: 42px !important; }
body.d4.d4-c .d4-user-page .error_message { color: var(--d4-muted) !important; }
body.d4.d4-c .d4-user-page .custom-check .step_2block1rbtext { padding: 0; }
body.d4.d4-c .d4-company-profile .contact-details > .row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
@media (max-width: 767px) {
  body.d4.d4-c .d4-company-profile .contact-details > .row { grid-template-columns: minmax(0, 1fr); }
}
body.d4.d4-c .d4-profile-skeleton-offices { display: flex; flex-wrap: wrap; gap: 8px; }
body.d4.d4-c .d4-profile-skeleton-contacts { display: grid; gap: 16px; }
body.d4.d4-c .d4-profile-skeleton-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
body.d4.d4-c .d4-profile-skeleton-person { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
body.d4.d4-c .d4-user-skeleton { display: grid; gap: 24px; }
body.d4.d4-c .d4-user-skeleton-section { display: grid; gap: 20px; padding-top: 20px; border-top: 1px solid var(--d4-line); }
body.d4.d4-c .d4-user-skeleton-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
body.d4.d4-c .d4-user-skeleton-fields > div { display: grid; gap: 8px; }
body.d4.d4-c .d4-user-skeleton-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
@media (max-width: 767px) {
  body.d4.d4-c .d4-profile-skeleton-contact-grid,
  body.d4.d4-c .d4-user-skeleton-fields { grid-template-columns: minmax(0, 1fr); }
}
body.d4.d4-c .d4-user-page .error_message { opacity: 1; }
body.d4.d4-c .d4-user-page .custom-check label { padding-left: 30px; display: block; }
body.d4.d4-c .d4-user-page .custom-check .step_2block1rb { position: absolute; left: 0; top: 0; }
body.d4.d4-c .d4-user-page .custom-check p { width: auto; }
body.d4.d4-c .d4-user-page .country-notice { flex-direction: row; }
@media (max-width: 600px) {
  html body.d4.d4.d4.d4-c .d4-header__nav .d4-pill { box-sizing: border-box; padding: 0 10px !important; }
  html body.d4.d4.d4.d4-c .d4-account__btn { min-width: 42px; }
}
/* Keep every header action reachable on narrow screens, including the acting-company controls. */
@media (max-width: 480px) {
  html body.d4.d4.d4.d4-c .d4-header__inner { gap: 8px !important; }
  html body.d4.d4.d4.d4-c .d4-header__logo,
  html body.d4.d4.d4.d4-c .d4-header__logo img { width: 90px !important; min-width: 90px; }
  html body.d4.d4.d4.d4-c .d4-burger { width: 32px; flex: 0 0 32px; }
  html body.d4.d4.d4.d4-c .d4-header__nav { gap: 6px !important; }
  html body.d4.d4.d4.d4-c .d4-header__nav .d4-pill { box-sizing: border-box !important; width: 42px; padding: 0 !important; }
  html body.d4.d4.d4.d4-c .d4-account__btn { box-sizing: border-box !important; width: 42px; padding: 2px !important; }
}
body.d4.d4-c .d4-company-profile .custom-nav.has-dropdown { position: relative; padding-right: 0; }
body.d4.d4-c .d4-company-profile .custom-nav .other-locations { position: static; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; margin-left: auto; padding: 9px 4px; font-size: 14px; line-height: 1.4; white-space: normal; }
body.d4.d4-c .d4-company-profile .custom-nav .dropdown-menu { border: 1px solid var(--d4-line); border-radius: 12px; padding: 6px; box-shadow: var(--d4-shadow); }
body.d4.d4-c .d4-user-page .custom-check label { left: 0; }
body.d4.d4-c .d4-company-profile .skeleton-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.d4.d4-c .d4-company-profile .skeleton-profile > .skeleton-hero,
body.d4.d4-c .d4-company-profile .skeleton-profile > .d4-profile-skeleton-offices,
body.d4.d4-c .d4-company-profile .skeleton-profile > .d4-profile-skeleton-contacts,
body.d4.d4-c .d4-company-profile .skeleton-profile > .skeleton-section:last-child { grid-column: 1 / -1; }
@media (max-width: 767px) {
  body.d4.d4-c .d4-company-profile .skeleton-profile { grid-template-columns: minmax(0, 1fr); }
}

/* Variant 3 — My Users, with the existing member and staff columns and actions. */
body.d4.d4-c .d4-users-list .myuser_table { display: flex; flex-direction: column; gap: 20px; padding: 24px; border: 1px solid var(--d4-line); border-radius: var(--d4-radius); background: #fff; box-shadow: var(--d4-shadow); }
body.d4.d4-c .d4-users-list .office-filters { order: -2; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin: 0; }
body.d4.d4-c .d4-users-list .office-filters > * { width: 100%; min-width: 0; margin: 0; }
body.d4.d4-c .d4-users-list .shipment_tablebtn { order: -1; display: flex; justify-content: flex-end; margin: 0; padding: 0; }
body.d4.d4-c .d4-users-list .sales_leadtablemain { padding: 0 !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: transparent !important; }
body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row { margin: 0; }
body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row::before,
body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row::after { display: none; }
body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row > div { padding: 0; }
body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:first-child { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 18px; margin-bottom: 20px; border-radius: 12px; background: var(--d4-soft); }
body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:first-child > div { width: auto; }
body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:first-child > div:last-child { order: -1; }
body.d4.d4-c .d4-users-list .dataTables_length label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--d4-muted); }
body.d4.d4-c .d4-users-list .dataTables_filter,
body.d4.d4-c .d4-users-list .dataTables_length { margin: 0 !important; float: none !important; }
body.d4.d4-c .d4-users-list .dataTables_filter label { margin: 0; }
body.d4.d4-c .d4-users-list .dataTables_filter input { width: 300px !important; max-width: 100%; height: 42px !important; margin: 0 !important; border: 1px solid var(--d4-line) !important; border-radius: 10px !important; background: #fff; padding: 10px 14px !important; font-size: 14px; color: var(--d4-text); }
body.d4.d4-c .d4-users-list .dataTables_filter input::placeholder { color: var(--d4-muted); opacity: 1; }
body.d4.d4-c .d4-users-list table#userlistTable { width: 100% !important; table-layout: auto; border-collapse: separate !important; border-spacing: 0; margin: 0 !important; }
body.d4.d4-c .d4-users-list #userlistTable th { width: auto; padding: 14px 12px !important; font-size: 11px !important; line-height: 1.4; letter-spacing: .08em; text-align: left; color: var(--d4-muted); }
body.d4.d4-c .d4-users-list #userlistTable td { width: auto; padding: 20px 12px !important; font-size: 14px; line-height: 1.5; vertical-align: middle; border-bottom: 1px solid var(--d4-line-soft) !important; white-space: normal; overflow-wrap: anywhere; color: var(--d4-text); }
body.d4.d4-c .d4-users-list #userlistTable th:first-child,
body.d4.d4-c .d4-users-list #userlistTable .d4-user-avatar-cell { width: 72px; padding-left: 0 !important; }
body.d4.d4-c .d4-users-list #userlistTable .avatar { width: 52px; height: 52px; max-width: none; border-radius: 12px; object-fit: cover; background: var(--d4-soft); }
body.d4.d4-c .d4-users-list #userlistTable .shipping_date,
body.d4.d4-c .d4-users-list #userlistTable td.published { color: var(--d4-navy); font-weight: 900; font-size: 16px; }
body.d4.d4-c .d4-users-list #userlistTable .custom-actions { margin-top: 8px; font-size: 13px; font-weight: 700; }
body.d4.d4-c .d4-users-list #userlistTable .custom-actions a { color: var(--d4-blue); }
body.d4.d4-c .d4-users-list #userlistTable .custom-actions a:hover { text-decoration: underline; }
body.d4.d4-c .d4-users-list #userlistTable .d4-user-email-cell { font-size: 13px; }
body.d4.d4-c .d4-users-list #userlistTable tr.danger td { background: #fff6f4 !important; }
body.d4.d4-c .d4-users-list .d4-user-status { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.3; background: var(--d4-soft); color: var(--d4-navy); }
body.d4.d4-c .d4-users-list .d4-user-status[data-status="active"] { background: var(--d4-green-soft); color: var(--d4-green); }
body.d4.d4-c .d4-users-list .d4-user-status[data-status="blocked"] { background: var(--d4-red-soft); color: var(--d4-red); }
body.d4.d4-c .d4-users-list .d4-user-status[data-status="pending_review"] { background: var(--d4-yellow-soft); color: #8b5a05; }
body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:last-child { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; }
body.d4.d4-c .d4-users-list .dataTables_info { font-size: 13px; color: var(--d4-muted); padding: 0; }
body.d4.d4-c .d4-users-list .pagination { margin: 0; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
body.d4.d4-c .d4-users-list .pagination li a { margin: 0; border-radius: 9px; }
body.d4.d4-c .d4-users-list .d4-users-skeleton-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 4px; }
body.d4.d4-c .d4-users-list .d4-users-skeleton-row { display: grid; grid-template-columns: 52px 1fr 1fr 1.5fr 80px; gap: 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--d4-line); }
@media (max-width: 767px) {
  body.d4.d4-c .d4-users-list .myuser_table { padding: 18px; }
  body.d4.d4-c .d4-users-list .office-filters { grid-template-columns: minmax(0, 1fr); }
  body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:first-child { padding: 14px; gap: 14px; }
  body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:first-child > div,
  body.d4.d4-c .d4-users-list .dataTables_filter label,
  body.d4.d4-c .d4-users-list .dataTables_filter input { width: 100% !important; }
  body.d4.d4-c .d4-users-list .dataTables_length label { justify-content: flex-end; }
  body.d4.d4-c .d4-users-list .table-responsive { overflow: visible; }
  body.d4.d4-c .d4-users-list table#userlistTable,
  body.d4.d4-c .d4-users-list #userlistTable tbody { display: block; }
  body.d4.d4-c .d4-users-list #userlistTable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body.d4.d4-c .d4-users-list #userlistTable tbody tr { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px 16px; padding: 18px; margin-bottom: 14px; border: 1px solid var(--d4-line); border-radius: 12px; background: #fff; }
  body.d4.d4-c .d4-users-list #userlistTable td { display: block; width: auto !important; min-width: 0; padding: 0 !important; border: 0 !important; background: transparent !important; }
  body.d4.d4-c .d4-users-list #userlistTable .d4-user-avatar-cell { grid-column: 1; grid-row: 1 / span 2; }
  body.d4.d4-c .d4-users-list #userlistTable .shipping_date { grid-column: 2; grid-row: 1; }
  body.d4.d4-c .d4-users-list #userlistTable td.published { grid-column: 2; grid-row: 2; }
  body.d4.d4-c .d4-users-list #userlistTable td:nth-child(n+4),
  body.d4.d4-c .d4-users-list #userlistTable td[colspan] { grid-column: 1 / -1; }
  body.d4.d4-c .d4-users-list #userlistTable td[data-label]::before { content: attr(data-label); display: block; color: var(--d4-muted); font-size: 10px; font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
  body.d4.d4-c .d4-users-list #userlistTable .custom-actions { position: absolute; right: 18px; bottom: 18px; margin: 0; }
  body.d4.d4-c .d4-users-list #userlistTable tbody tr.danger { background: #fff6f4; border-color: #ebc4bf; }
  body.d4.d4-c .d4-users-list #userlistTable td:last-child { padding-right: 42px !important; }
  body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:last-child { flex-direction: column; align-items: flex-start; }
  body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:last-child > div { width: 100%; }
  body.d4.d4-c .d4-users-list .pagination { justify-content: flex-start; }
  body.d4.d4-c .d4-users-list .d4-users-skeleton-toolbar { flex-wrap: wrap; }
  body.d4.d4-c .d4-users-list .d4-users-skeleton-row { grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding: 18px; border: 1px solid var(--d4-line); border-radius: 12px; }
  body.d4.d4-c .d4-users-list .d4-users-skeleton-row > :nth-child(n+3) { grid-column: 1 / -1; }
}

/* Portraits keep their space when an image is absent or fails to load. */
body.d4.d4-c .d4-person-avatar { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex: 0 0 52px; overflow: hidden; border: 1px solid var(--d4-line); border-radius: 12px; background: var(--d4-blue-soft); color: var(--d4-navy); font-size: 18px; font-weight: 900; line-height: 1; }
body.d4.d4-c .d4-person-avatar > img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
body.d4.d4-c .d4-person-avatar .iconify { width: 24px; height: 24px; }
body.d4.d4-c .d4-company-profile .contact-details > .row:has(.coordinator-label, .contact-edit-icon, .contact-visibility-icon) .contact-box:not(.add-contact-box) { padding-top: 58px; }
body.d4.d4-c .d4-company-profile .contact-box .coordinator-label { position: absolute; top: 22px; left: 22px; right: auto; z-index: 1; margin: 0; }
body.d4.d4-c .d4-company-profile .cb-header:has(.contact-edit-icon, .contact-visibility-icon) { padding-top: 0; }
body.d4.d4-c .d4-company-profile .contact-box .cb-header .contact-edit-icon,
body.d4.d4-c .d4-company-profile .contact-box .cb-header .contact-visibility-icon { top: -36px; }
@supports (grid-template-rows: subgrid) {
  body.d4.d4-c .d4-company-profile .contact-details > .row > div { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
  body.d4.d4-c .d4-company-profile .contact-box:not(.add-contact-box) { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
  body.d4.d4-c .d4-company-profile .contact-box > div:not(.coordinator-label) { display: contents; }
  body.d4.d4-c .d4-company-profile .cb-content { margin-top: 0; }
  body.d4.d4-c .d4-company-profile .add-contact-box { grid-row: span 2; }
}
body.d4.d4-c .d4-person-avatar { position: relative; }
body.d4.d4-c .d4-person-avatar > img { position: absolute; inset: 0; z-index: 1; opacity: 0; background: #fff; }
body.d4.d4-c .d4-person-avatar > img.is-loaded { opacity: 1; }
body.d4.d4-c .d4-users-list #userlistTable_wrapper { border: 0 !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; background: transparent !important; }
body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:first-child { flex-direction: row !important; background: var(--d4-soft) !important; margin-bottom: 20px !important; }
body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:first-child > div:nth-child(2) { order: -1; margin-right: auto; }
body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:first-child > .d4-table-actions { order: 1; }
body.d4.d4-c .d4-users-list #userlistTable_wrapper .dataTables_filter input { padding-left: 38px !important; }
body.d4.d4-c .d4-users-list #userlistTable .shipping_date,
body.d4.d4-c .d4-users-list #userlistTable td.published { font-size: 16px !important; color: var(--d4-navy) !important; }
body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:last-child > div { width: auto; }
body.d4.d4-c .d4-users-list #userlistTable_wrapper .dataTables_paginate { display: flex; justify-content: flex-end; }
@media (max-width: 767px) {
  body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:first-child > .d4-table-actions { width: auto !important; }
  body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:first-child > div:first-child { width: auto !important; }
  body.d4.d4-c .d4-users-list #userlistTable_wrapper .dataTables_paginate { justify-content: flex-start; }
  body.d4.d4-c .d4-users-list #userlistTable_wrapper > .row:last-child > div { width: 100%; }
}

/* A compact identity header: crisp type badges, a separate logo column and grouped contact details. */
body.d4.d4-c .d4-company-profile .detail-row { grid-template-columns: 205px minmax(0, 1fr); gap: 30px; padding: 28px; }
body.d4.d4-c .d4-company-profile .logo-left { padding-right: 26px; border-right: 1px solid var(--d4-line); }
body.d4.d4-c .d4-company-profile .ff-logo-main { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
body.d4.d4-c .d4-company-profile .ff-logo { order: -2; width: 100%; height: 110px; padding: 4px; margin: 0; background: transparent !important; border: 0 !important; border-radius: 0 !important; }
body.d4.d4-c .d4-company-profile .ff-logo img { max-height: 100px; }
body.d4.d4-c .d4-company-profile .ff-logo-main > p { margin: 0 !important; font-size: 14px; color: var(--d4-navy); }
body.d4.d4-c .d4-company-profile .ff-logo-main > p b { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--d4-muted); }
body.d4.d4-c .d4-company-profile .ff-logo-main .award-tags { order: 1; position: static; display: flex; gap: 6px; }
body.d4.d4-c :is(.d4-company-profile, .d4-directory) .award-tags .iconify { display: block; width: 28px; height: 28px; color: var(--d4-blue); }
body.d4.d4-c .d4-company-profile .dr-title > div { display: flex; flex-direction: column; }
body.d4.d4-c .d4-company-profile .member-title { order: 0; gap: 14px; margin-bottom: 22px; }
body.d4.d4-c .d4-company-profile .member-title h4 { font-size: 30px !important; line-height: 1.2 !important; }
body.d4.d4-c :is(.d4-company-profile, .d4-directory) .d4-identity-badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px; padding: 5px 11px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; line-height: 1.4; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
body.d4.d4-c :is(.d4-company-profile, .d4-directory) .d4-identity-badge--pangea { background: var(--d4-blue); color: #fff; }
body.d4.d4-c :is(.d4-company-profile, .d4-directory) .d4-identity-badge--connecta { background: var(--d4-yellow); color: var(--d4-navy); }
body.d4.d4-c :is(.d4-company-profile, .d4-directory) .d4-identity-badge--sales { border-color: #ebd18f; background: var(--d4-yellow-soft); color: #805607; }
body.d4.d4-c :is(.d4-company-profile, .d4-directory) .d4-identity-badge--years { border-color: var(--d4-line); background: #fff; color: var(--d4-navy); }
body.d4.d4-c :is(.d4-company-profile, .d4-directory) .d4-identity-badge .iconify { width: 13px; height: 13px; margin: 0 !important; }
body.d4.d4-c .d4-directory .network-badge.d4-identity-badge { padding: 5px 11px !important; }
body.d4.d4-c .d4-directory .network-badge.d4-identity-badge--connecta { color: var(--d4-navy) !important; }
body.d4.d4-c .d4-company-profile .dr-address-details { order: 1; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 14px 22px; margin: 0; padding: 18px; background: var(--d4-soft); border: 1px solid var(--d4-line-soft); border-radius: 12px; }
body.d4.d4-c .d4-company-profile .dr-address-details li { gap: 12px; align-items: center; font-size: 14px; font-weight: 500; }
body.d4.d4-c .d4-company-profile .dr-address-details li:first-child { align-items: flex-start; }
body.d4.d4-c .d4-company-profile .dr-address-details .iconify { width: 22px; height: 22px; flex: 0 0 22px; color: var(--d4-blue); }
body.d4.d4-c .d4-company-profile .dr-address-details p { font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--d4-text) !important; }
body.d4.d4-c .d4-company-profile .dr-address-details a { max-width: calc(100% - 46px); color: var(--d4-navy) !important; }
body.d4.d4-c .d4-company-profile .dr-address-details a:hover { color: var(--d4-blue) !important; text-decoration: underline; }
body.d4.d4-c .d4-company-profile .dr-social { order: 2; justify-content: flex-end; gap: 10px; margin: 16px 0 0; }
body.d4.d4-c .d4-company-profile .dr-social a { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; }
body.d4.d4-c .d4-company-profile .dr-social img { width: 32px; height: 32px; }
body.d4.d4-c .d4-company-profile .dr-social .edit-icon img { width: 20px; height: 20px; }
@media (max-width: 767px) {
  body.d4.d4-c .d4-company-profile .detail-row { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 22px; }
  body.d4.d4-c .d4-company-profile .logo-left { max-width: none; padding: 0 0 20px; border-right: 0; border-bottom: 1px solid var(--d4-line); }
  body.d4.d4-c .d4-company-profile .ff-logo-main { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 20px; }
  body.d4.d4-c .d4-company-profile .ff-logo { grid-column: 1; grid-row: 1 / span 2; height: 90px; }
  body.d4.d4-c .d4-company-profile .ff-logo-main > p { grid-column: 2; font-size: 13px; }
  body.d4.d4-c .d4-company-profile .ff-logo-main .award-tags { grid-column: 1 / -1; }
  body.d4.d4-c .d4-company-profile .member-title h4 { font-size: 25px !important; }
  body.d4.d4-c .d4-company-profile .dr-address-details { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 14px; }
  body.d4.d4-c .d4-company-profile .dr-social { justify-content: flex-start; }
}
body.d4.d4-c .d4-company-profile .cb-content p { display: grid; grid-template-columns: 96px minmax(0, max-content) auto; align-items: start; gap: 10px; margin: 0 0 12px; }
body.d4.d4-c .d4-company-profile .cb-content b { display: block; margin: 0; font-size: 12px; line-height: 21px; white-space: nowrap; }
body.d4.d4-c .d4-company-profile .cb-content a { display: block; width: auto !important; min-width: 0; margin: 0 !important; font-size: 14px; line-height: 21px; overflow-wrap: anywhere; }
body.d4.d4-c .d4-company-profile .cb-content .wa-community-info { display: inline-flex; align-items: center; margin: 0; width: 20px; height: 21px; }
body.d4.d4-c .d4-company-profile .cb-content .wa-community-info img { width: 20px; height: 20px; }
@media (max-width: 480px) {
  body.d4.d4-c .d4-company-profile .cb-content p { grid-template-columns: 84px minmax(0, max-content) auto; gap: 8px; }
  body.d4.d4-c .d4-company-profile .cb-content b { font-size: 11px; }
  body.d4.d4-c .d4-company-profile .cb-content a { font-size: 13px; }
}

/* Group-company countries stay visible directly below the local branches. */
body.d4.d4-c .d4-company-profile .custom-nav > .d4-other-locations { flex: 0 0 100%; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--d4-line); }
body.d4.d4-c .d4-company-profile .d4-other-locations__label { color: var(--d4-muted); font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
body.d4.d4-c .d4-company-profile .d4-other-locations__countries { display: flex; flex: 1 1 300px; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.d4.d4-c .d4-company-profile .d4-other-locations__countries > li { margin: 0; padding: 0; }
body.d4.d4-c .d4-company-profile .d4-other-locations__countries a { display: inline-flex; align-items: center; min-height: 42px; line-height: 1.4; white-space: normal; }
body.d4.d4-c .d4-company-profile .d4-other-locations__countries a:hover { border-color: var(--d4-blue) !important; color: var(--d4-blue) !important; }
@media (max-width: 767px) {
  body.d4.d4-c .d4-company-profile .custom-nav > .d4-other-locations { align-items: flex-start; gap: 10px; }
  body.d4.d4-c .d4-company-profile .d4-other-locations__label { flex-basis: 100%; }
}

/* Variant 3 — member stories, with company names leading and full headlines. */
body.d4.d4-c .d4-news-page .page-header { min-height: 0 !important; margin: 0 !important; padding: 28px 0 24px !important; }
body.d4.d4-c .d4-news-page .page-header_row { margin-bottom: 0; }
body.d4.d4-c .d4-news-page .page-header_content { padding-bottom: 0; margin-bottom: 0 !important; }
body.d4.d4-c .d4-news-page .subtitle { margin: 10px 0 0 !important; padding: 0; font-size: 16px; line-height: 1.6; color: var(--d4-muted) !important; }
body.d4.d4-c .d4-news-page .news-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
body.d4.d4-c .d4-news-page .news-row::before,
body.d4.d4-c .d4-news-page .news-row::after { display: none; }
body.d4.d4-c .d4-news-page .news-row > [class*="col-"] { display: flex; grid-column: auto; width: auto; min-width: 0; max-width: none; padding: 0; margin: 0; }
body.d4.d4-c .d4-news-page .news-main { display: flex; flex-direction: column; flex: 1; min-width: 0; margin: 0 !important; padding: 12px; border: 1px solid var(--d4-line); border-radius: 16px; background: #fff; box-shadow: var(--d4-shadow); transition: border-color .18s ease, box-shadow .18s ease; }
body.d4.d4-c .d4-news-page .news-main:has(a:hover),
body.d4.d4-c .d4-news-page .news-main:focus-within { border-color: var(--d4-blue); box-shadow: 0 10px 28px rgba(20, 57, 92, .09); }
body.d4.d4-c .d4-news-page .news-img,
body.d4.d4-c .d4-news-page .skeleton-img { display: block; flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: 10px; object-fit: cover; margin: 0; }
body.d4.d4-c .d4-news-page .news-body { display: flex; flex: 1; flex-direction: column; justify-content: flex-start; gap: 0; height: auto; min-height: 0; padding: 20px 10px 6px !important; }
body.d4.d4-c .d4-news-page .d4-story-companies { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 12px; color: var(--d4-blue); font-size: 11px; line-height: 1.6; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; overflow-wrap: anywhere; }
body.d4.d4-c .d4-news-page .d4-story-companies > span + span::before { content: '·'; margin-right: 10px; color: var(--d4-muted); }
body.d4.d4-c .d4-news-page .news-main .card-title { margin: 0 0 24px; padding: 0; font-size: 20px; line-height: 1.4; font-weight: 900; }
body.d4.d4-c .d4-news-page .news-main .card-title a { color: var(--d4-navy); text-decoration: none; }
body.d4.d4-c .d4-news-page .news-main .card-title a:hover { color: var(--d4-blue); }
body.d4.d4-c .d4-news-page .d4-story-logos { position: static; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 18px; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--d4-line-soft); list-style: none; }
body.d4.d4-c .d4-news-page .d4-story-logos:empty { display: none; }
body.d4.d4-c .d4-news-page .d4-story-logos > li { display: flex; align-items: center; flex: 0 1 112px; min-width: 0; width: 112px; margin: 0; padding: 0; }
body.d4.d4-c .d4-news-page .news-company { display: block; width: 112px; max-width: 100%; height: 56px; padding: 0; margin: 0; object-fit: contain; object-position: left center; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
body.d4.d4-c .d4-news-page .skeleton-body { min-height: 226px; justify-content: flex-start; gap: 18px; }
body.d4.d4-c .d4-news-page .d4-story-skeleton-logo { margin-top: auto; }
body.d4.d4-c .d4-news-page .left-pagination { display: flex; justify-content: center; margin: 32px 0 48px; padding: 24px 0 0; border-top: 1px solid var(--d4-line); }
body.d4.d4-c .d4-news-page .new-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 0; margin: 0; }
body.d4.d4-c .d4-news-page .new-pagination .page-numbers { margin: 0; }
@media (max-width: 1100px) {
  body.d4.d4-c .d4-news-page .news-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.d4.d4-c .d4-news-page .page-header { padding-top: 24px !important; }
  body.d4.d4-c .d4-news-page .news-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body.d4.d4-c .d4-news-page .news-body { padding: 18px 8px 6px !important; }
  body.d4.d4-c .d4-news-page .d4-story-logos { gap: 12px; }
  body.d4.d4-c .d4-news-page .d4-story-logos > li { flex-basis: 80px; width: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  body.d4.d4-c .d4-news-page .news-main { transition: none; }
}

/* Keep company-name hints above the logos, within the card's content width. */
body.d4.d4-c .d4-news-page .news-main { position: relative; overflow: visible; }
body.d4.d4-c .d4-news-page .news-main:has(.mytooltip:hover) { z-index: 2; }
body.d4.d4-c .d4-news-page .d4-story-logos { position: relative; }
body.d4.d4-c .d4-news-page .d4-story-logos > .mytooltip { position: static; }
body.d4.d4-c .d4-news-page .d4-story-logos > .mytooltip::before { left: 0; right: auto; top: auto; bottom: calc(100% + 10px); transform: none; width: max-content; max-width: 100%; box-sizing: border-box; padding: 10px 14px; border-radius: 8px; background: var(--d4-navy); color: #fff; font-size: 12px; line-height: 1.5; text-align: left; white-space: normal; overflow-wrap: anywhere; z-index: 10; }
body.d4.d4-c .d4-news-page .d4-story-logos > .mytooltip::after { display: none; }
body.d4.d4-c .d4-news-page .d4-stories-end { min-height: 1px; margin: 24px 0 44px; text-align: center; }
body.d4.d4-c .d4-news-page .d4-stories-status { margin: 14px 0; color: var(--d4-muted); font-size: 13px; line-height: 1.5; }
body.d4.d4-c .d4-news-page .d4-stories-status:empty { margin: 0; }

/* Variant 3 — a resource library, with the existing news rail below the downloads. */
body.d4.d4-c .d4-downloads-page { padding-top: 28px; }
body.d4.d4-c .d4-downloads-page .page-title { margin: 0 0 26px; }
body.d4.d4-c .d4-downloads-page .page-title h3 { margin: 0 0 8px; }
body.d4.d4-c .d4-downloads-page .page-title > p { margin: 0; color: var(--d4-muted); font-size: 16px; line-height: 1.6; }
body.d4.d4-c .d4-downloads-page .latest-news-row { display: block !important; margin: 0; }
body.d4.d4-c .d4-downloads-page .latest-news-row > .latest-news-row__page,
body.d4.d4-c .d4-downloads-page .latest-news-row > .latest-news-row__news { width: 100% !important; max-width: none; min-width: 0; flex: none; padding: 0; }
body.d4.d4-c .d4-downloads-page .download-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; }
body.d4.d4-c .d4-downloads-page .download-item { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr) 28px; grid-template-rows: 76px auto; align-items: start; gap: 22px 12px; width: auto !important; min-width: 0; min-height: 220px; height: auto; aspect-ratio: auto; margin: 0 !important; padding: 24px; border: 1px solid var(--d4-line); border-radius: 16px; background: #fff; text-align: left; box-shadow: var(--d4-shadow); transition: border-color .18s ease, box-shadow .18s ease; }
body.d4.d4-c .d4-downloads-page a.download-item:hover,
body.d4.d4-c .d4-downloads-page a.download-item:focus-visible { border-color: var(--d4-blue); box-shadow: 0 10px 28px rgba(20, 57, 92, .09); }
body.d4.d4-c .d4-downloads-page .d4-download-preview { display: flex; align-items: center; justify-content: center; grid-column: 1; grid-row: 1; width: 88px; height: 76px; padding: 14px 10px; border: 1px solid var(--d4-line-soft); border-radius: 12px; background: var(--d4-soft); }
body.d4.d4-c .d4-downloads-page .d4-download-preview > img { display: block; width: 100%; max-width: 100%; height: 100%; max-height: 100%; object-fit: contain; margin: 0; }
body.d4.d4-c .d4-downloads-page .d4-download-format { grid-column: 2 / -1; grid-row: 1; justify-self: end; align-self: start; padding: 4px 9px; border: 1px solid var(--d4-line); border-radius: 6px; color: var(--d4-muted); font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: .06em; }
body.d4.d4-c .d4-downloads-page .d4-download-body { grid-column: 1 / 3; grid-row: 2; align-self: center; min-width: 0; }
body.d4.d4-c .d4-downloads-page .download-item p { margin: 0 !important; color: var(--d4-navy); font-size: 20px; line-height: 1.4; font-weight: 900; text-align: left; }
body.d4.d4-c .d4-downloads-page .d4-download-description { display: block; margin-top: 8px; color: var(--d4-muted); font-size: 13px; line-height: 1.6; font-weight: 400; }
body.d4.d4-c .d4-downloads-page .d4-download-arrow { grid-column: 3; grid-row: 2; align-self: center; width: 24px; height: 24px; color: var(--d4-blue); }
body.d4.d4-c .d4-downloads-page .download-item[aria-busy="true"] { cursor: progress; }
body.d4.d4-c .d4-downloads-page .latest-news-row > .latest-news-row__news { display: block; margin-top: 40px; }
body.d4.d4-c .d4-downloads-page .latest-news-fix { position: static; width: 100%; height: auto !important; max-height: none !important; padding: 0 !important; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
body.d4.d4-c .d4-downloads-page .latest-news-title { margin: 0 0 18px; font-size: 20px; line-height: 1.4; }
body.d4.d4-c .d4-downloads-page .latest-all-news,
body.d4.d4-c .d4-downloads-page .skeleton-rail-items { display: flex !important; flex-wrap: nowrap; gap: 20px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 16px; margin: 0; scrollbar-width: thin; }
body.d4.d4-c .d4-downloads-page .latest-news-item,
body.d4.d4-c .d4-downloads-page .skeleton-rail-items > div { display: flex; flex-direction: column; flex: 0 0 280px; min-width: 0; width: 280px !important; padding: 16px; margin: 0; border: 1px solid var(--d4-line); border-radius: 16px; background: #fff; box-shadow: none; }
body.d4.d4-c .d4-downloads-page .latest-news-item > a { margin: 14px 0; color: var(--d4-navy); font-size: 16px; line-height: 1.4; font-weight: 900; }
body.d4.d4-c .d4-downloads-page .latest-news-item .ln-img { order: -1; width: 100%; height: 140px; object-fit: cover; border-radius: 10px; margin: 0; }
body.d4.d4-c .d4-downloads-page .latest-news-item .ln-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--d4-line-soft); }
body.d4.d4-c .d4-downloads-page .ln-footer img { width: 60px; height: 38px; object-fit: contain; }
body.d4.d4-c .d4-downloads-page .ln-footer p { margin: 0; color: var(--d4-muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
body.d4.d4-c .d4-downloads-page .ln-cta { display: flex; flex: 0 0 150px; align-items: center; justify-content: center; width: 150px; padding: 0; margin: 0; }
@media (max-width: 1100px) {
  body.d4.d4-c .d4-downloads-page .download-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.d4.d4-c .d4-downloads-page .download-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.d4.d4-c .d4-downloads-page .download-item { min-height: 190px; grid-template-rows: 64px auto; gap: 18px 12px; padding: 20px; }
  body.d4.d4-c .d4-downloads-page .d4-download-preview { height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  body.d4.d4-c .d4-downloads-page .download-item { transition: none; }
}

/* Variant 3 — first-shipment guidance and the existing routing-rewards information dialog. */
body.d4.d4-c .d4-network-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
body.d4.d4-c .d4-network-benefits > li { display: flex; align-items: center; gap: 10px; padding: 14px; margin: 0; border: 1px solid var(--d4-line-soft); border-radius: 12px; background: var(--d4-soft); text-align: left; }
body.d4.d4-c .d4-network-benefits > li::before { display: none; }
body.d4.d4-c .d4-network-benefits .iconify { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; color: var(--d4-blue); }
body.d4.d4-c .d4-network-benefits > li > span:last-child { color: var(--d4-navy); font-size: 12px; font-weight: 700; line-height: 1.4; }
body.d4.d4-c .d4-first-shipment { overflow: hidden; border: 1px solid var(--d4-line); border-radius: 16px; background: #fff; text-align: left; white-space: normal; }
body.d4.d4-c .d4-first-shipment__main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; padding: 32px; background: var(--d4-navy); }
body.d4.d4-c .d4-first-shipment__intro { align-self: center; min-width: 0; }
body.d4.d4-c .d4-first-shipment .d4-first-shipment__eyebrow { margin: 0 0 14px; color: var(--d4-yellow); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
body.d4.d4-c .d4-first-shipment h3 { margin: 0 0 16px; color: #fff; font-size: 30px; font-weight: 900; line-height: 1.2; }
body.d4.d4-c .d4-first-shipment p { margin: 0; color: #d8e7f4; font-size: 14px; font-weight: 400; line-height: 1.65; }
body.d4.d4-c .d4-first-shipment__action { margin-top: 24px; }
body.d4.d4-c .d4-first-shipment .d4-first-shipment__action > a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 22px; margin: 0; border: 1px solid var(--d4-yellow) !important; border-radius: 999px; background: var(--d4-yellow) !important; color: var(--d4-navy) !important; font-size: 14px; font-weight: 900; line-height: 1.4; white-space: normal; text-decoration: none; }
body.d4.d4-c .d4-first-shipment .d4-first-shipment__action > a:hover, body.d4.d4-c .d4-first-shipment .d4-first-shipment__action > a:focus-visible { border-color: #fff !important; background: #fff !important; }
body.d4.d4-c .d4-first-shipment__reward { min-width: 0; padding: 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(255,255,255,.06); }
body.d4.d4-c .d4-first-shipment .d4-first-shipment__amount { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; color: var(--d4-yellow); font-size: 18px; font-weight: 800; line-height: 1; }
body.d4.d4-c .d4-first-shipment__amount strong { color: inherit; font-size: 48px; font-weight: 900; }
body.d4.d4-c .d4-first-shipment h4 { margin: 0 0 10px; color: #fff; font-size: 18px; font-weight: 800; line-height: 1.35; }
body.d4.d4-c .d4-first-shipment .d4-first-shipment__terms { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); font-size: 11px; line-height: 1.6; }
body.d4.d4-c .d4-first-shipment__footer { padding: 22px 28px; }
body.d4.d4-c .d4-first-shipment__footer > p { margin-top: 14px; color: var(--d4-muted); font-size: 12px; }
body.d4.d4-c .d4-shipment-list td.vuetable-empty-result:has(.d4-first-shipment), body.d4.d4-c .d4-payment-list #PaymentMonitorList td.dt-empty:has(.d4-first-shipment) { min-width: 0 !important; padding: 12px 0 !important; border: 0 !important; }
body.d4.d4-c .d4-shipment-list tbody tr:has(.d4-first-shipment), body.d4.d4-c .d4-payment-list #PaymentMonitorList tbody tr:has(.d4-first-shipment) { display: table-row; padding: 0; border: 0; background: transparent; }
body.d4.d4-c .d4-routing-info { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
body.d4.d4-c .d4-routing-info.mytooltip::before { width: 260px; max-width: calc(100vw - 48px); padding: 10px 14px; border-radius: 10px; background: var(--d4-navy); font-size: 12px; font-weight: 500; line-height: 1.5; white-space: normal; }
body.d4.d4-c #shipmentpopupModal .d4-routing-modal { width: 960px; max-width: calc(100% - 32px); height: calc(100dvh - 48px); min-height: 0; margin: 24px auto !important; }
body.d4.d4-c #shipmentpopupModal .modal-content { overflow: hidden; border: 1px solid var(--d4-line); border-radius: 20px; background: #fff; box-shadow: 0 24px 80px rgba(18,56,95,.22); }
body.d4.d4-c #shipmentpopupModal .modal-header { flex: 0 0 auto; padding: 12px 18px; margin: 0; border: 0; background: var(--d4-navy); }
body.d4.d4-c #shipmentpopupModal .modal-header .btn-close { width: 30px; height: 30px; min-height: 30px; padding: 0 !important; margin: 0 0 0 auto; border: 0 !important; background-color: #fff !important; border-radius: 50%; opacity: 1; }
body.d4.d4-c #shipmentpopupModal .modal-body { padding: 0 !important; max-height: calc(100dvh - 110px); overflow-y: auto; }
body.d4.d4-c #shipmentpopupModal .shipment_popup { padding: 0; margin: 0; }
body.d4.d4-c #shipmentpopupModal .d4-routing-hero { padding: 0 28px 28px; background: var(--d4-navy); }
body.d4.d4-c #shipmentpopupModal .d4-routing-eyebrow { margin: 0 0 10px; color: var(--d4-yellow); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
body.d4.d4-c #shipmentpopupModal .d4-routing-hero h2 { max-width: 650px; margin: 0 0 12px; color: #fff; font-size: 32px; font-weight: 900; line-height: 1.15; text-transform: none; }
body.d4.d4-c #shipmentpopupModal .d4-routing-hero > p:last-child { margin: 0; color: #d8e7f4; font-size: 14px; line-height: 1.6; }
body.d4.d4-c #shipmentpopupModal .subtitle { margin: 24px 28px 14px; color: var(--d4-navy); font-size: 16px; font-weight: 800; line-height: 1.4; }
body.d4.d4-c #shipmentpopupModal .d4-network-benefits { margin: 0 28px 24px; }
body.d4.d4-c #shipmentpopupModal .d4-routing-reward { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 24px; margin: 0 28px 28px; padding: 22px; border: 1px solid #ebd18f; border-radius: 14px; background: var(--d4-yellow-soft); }
body.d4.d4-c #shipmentpopupModal .d4-routing-reward__amount { display: flex; flex-direction: column; gap: 4px; color: var(--d4-navy); }
body.d4.d4-c #shipmentpopupModal .d4-routing-reward__amount span { font-size: 12px; font-weight: 800; letter-spacing: .08em; }
body.d4.d4-c #shipmentpopupModal .d4-routing-reward__amount strong { font-size: 58px; font-weight: 900; line-height: 1; }
body.d4.d4-c #shipmentpopupModal .d4-routing-reward h3 { margin: 0 0 8px; color: var(--d4-navy); font-size: 20px; font-weight: 900; line-height: 1.3; }
body.d4.d4-c #shipmentpopupModal .d4-routing-reward p { margin: 0 0 10px; color: var(--d4-text); font-size: 14px; line-height: 1.6; }
body.d4.d4-c #shipmentpopupModal .d4-routing-period { color: #805607; font-size: 12px; font-weight: 800; line-height: 1.5; }
body.d4.d4-c #shipmentpopupModal #readbelow { margin: 0 28px 14px; color: var(--d4-navy); font-size: 20px; font-weight: 900; font-style: normal; line-height: 1.4; }
body.d4.d4-c #shipmentpopupModal .shipment_popupcontent { padding: 20px; margin: 0 28px 14px; border: 1px solid var(--d4-line); border-radius: 12px; background: #fff; box-shadow: none; }
body.d4.d4-c #shipmentpopupModal .shipment_popupcontent h3 { margin: 0 0 10px; color: var(--d4-navy); font-size: 17px; font-weight: 900; line-height: 1.35; }
body.d4.d4-c #shipmentpopupModal .shipment_popupcontent p { margin: 0; color: var(--d4-text); font-size: 14px; font-weight: 400; line-height: 1.65; }
body.d4.d4-c #shipmentpopupModal .shipment_popupcontent .note { display: block; margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--d4-soft); color: var(--d4-navy); font-size: 12px; font-weight: 400; line-height: 1.6; }
body.d4.d4-c #shipmentpopupModal .shipment_popupcontent > .note:first-child { margin-top: 0; }
body.d4.d4-c #shipmentpopupModal .shipment_popupbalance { display: block; padding: 22px; margin: 0 28px 14px; border-radius: 12px; background: var(--d4-navy) !important; }
body.d4.d4-c #shipmentpopupModal .shipment_popupbalance .bg-left { width: 100%; padding: 0; }
body.d4.d4-c #shipmentpopupModal .shipment_popupbalance h3 { margin: 0 0 14px; color: #fff; font-size: 20px; font-weight: 900; line-height: 1.4; }
body.d4.d4-c #shipmentpopupModal .shipment_popupbalance h3 i { display: block; margin-top: 4px; color: #d8e7f4; font-size: 13px; font-weight: 400; font-style: normal; }
body.d4.d4-c #shipmentpopupModal .shipment_popupbalance p { margin: 0 0 12px; color: #d8e7f4; font-size: 13px; line-height: 1.6; }
body.d4.d4-c #shipmentpopupModal .d4-routing-example { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr 1.6fr; align-items: center; gap: 14px; padding-top: 18px; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: #fff; }
body.d4.d4-c #shipmentpopupModal .d4-routing-example > div { display: flex; flex-direction: column; gap: 5px; text-align: center; }
body.d4.d4-c #shipmentpopupModal .d4-routing-example strong { color: #fff; font-size: 32px; font-weight: 900; line-height: 1.2; }
body.d4.d4-c #shipmentpopupModal .d4-routing-example span { font-size: 12px; line-height: 1.4; }
body.d4.d4-c #shipmentpopupModal .d4-routing-example__total { padding: 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.06); }
body.d4.d4-c #shipmentpopupModal .d4-routing-example__total strong { color: var(--d4-yellow); font-size: 26px; }
body.d4.d4-c #shipmentpopupModal .shipping_popupbottom { padding: 8px 28px 24px; margin: 0; }
body.d4.d4-c #shipmentpopupModal .shipping_popupbottom p { margin: 0; color: var(--d4-muted); font-size: 11px; line-height: 1.5; }
@media (max-width: 1000px) {
  body.d4.d4-c .d4-first-shipment__main { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 26px; }
  body.d4.d4-c .d4-first-shipment h3 { max-width: 550px; }
  body.d4.d4-c .d4-first-shipment .d4-network-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.d4.d4-c .d4-shipment-list tbody tr:has(.d4-first-shipment), body.d4.d4-c .d4-payment-list #PaymentMonitorList tbody tr:has(.d4-first-shipment) { display: block; }
  body.d4.d4-c .d4-first-shipment__main { padding: 22px 18px; }
  body.d4.d4-c .d4-first-shipment h3 { font-size: 25px; }
  body.d4.d4-c .d4-first-shipment__reward { padding: 18px; }
  body.d4.d4-c .d4-first-shipment__footer { padding: 18px; }
  body.d4.d4-c .d4-first-shipment .d4-first-shipment__action > a { width: 100%; }
  body.d4.d4-c .d4-network-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.d4.d4-c .d4-network-benefits > li { flex-direction: column; align-items: flex-start; padding: 12px; }
  body.d4.d4-c #shipmentpopupModal .d4-routing-modal { max-width: calc(100% - 20px); height: calc(100dvh - 20px); margin: 10px auto !important; }
  body.d4.d4-c #shipmentpopupModal .modal-body { max-height: calc(100dvh - 84px); }
  body.d4.d4-c #shipmentpopupModal .d4-routing-hero { padding: 0 20px 22px; }
  body.d4.d4-c #shipmentpopupModal .d4-routing-hero h2 { font-size: 28px; }
  body.d4.d4-c #shipmentpopupModal .subtitle { margin: 20px 18px 12px; }
  body.d4.d4-c #shipmentpopupModal .d4-network-benefits { margin: 0 18px 20px; }
  body.d4.d4-c #shipmentpopupModal .d4-routing-reward { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 16px; margin: 0 18px 22px; }
  body.d4.d4-c #shipmentpopupModal .d4-routing-reward__amount strong { font-size: 46px; }
  body.d4.d4-c #shipmentpopupModal .d4-routing-reward h3 { font-size: 17px; }
  body.d4.d4-c #shipmentpopupModal .d4-routing-reward p { font-size: 13px; }
  body.d4.d4-c #shipmentpopupModal #readbelow { margin: 0 18px 12px; }
  body.d4.d4-c #shipmentpopupModal .shipment_popupcontent { padding: 16px; margin: 0 18px 12px; }
  body.d4.d4-c #shipmentpopupModal .shipment_popupbalance { padding: 18px; margin: 0 18px 12px; }
  body.d4.d4-c #shipmentpopupModal .d4-routing-example { grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; }
  body.d4.d4-c #shipmentpopupModal .d4-routing-example__total { grid-column: 1 / -1; margin-top: 8px; }
  body.d4.d4-c #shipmentpopupModal .shipping_popupbottom { padding: 6px 18px 22px; }
}

/* Variant 3 — create shipments with aligned partner cards and the existing form controls. */
body.d4.d4-c .d4-shipment-create { padding-top: 28px; }
body.d4.d4-c .d4-create-heading { margin-bottom: 24px; padding: 0; background: transparent !important; }
body.d4.d4-c .d4-create-heading h3 { margin: 0; font-size: 32px !important; line-height: 1.2 !important; }
body.d4.d4-c .d4-shipment-create .d4-create-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px; margin: 0; }
body.d4.d4-c .d4-shipment-create .d4-create-layout::before,
body.d4.d4-c .d4-shipment-create .d4-create-layout::after,
body.d4.d4-c .d4-shipment-create .d4-create-facts::before,
body.d4.d4-c .d4-shipment-create .d4-create-facts::after,
body.d4.d4-c .d4-shipment-create .shipment-method-input::before,
body.d4.d4-c .d4-shipment-create .shipment-method-input::after { display: none; }
body.d4.d4-c .d4-shipment-create .d4-create-party-column,
body.d4.d4-c .d4-shipment-create .d4-create-party-box { display: contents !important; }
body.d4.d4-c .d4-shipment-create .d4-create-reference,
body.d4.d4-c .d4-shipment-create .d4-create-agent { min-width: 0; padding: 24px; margin: 0; border: 1px solid var(--d4-line); border-radius: 16px; background: #fff; box-shadow: var(--d4-shadow); }
body.d4.d4-c .d4-shipment-create .d4-create-reference { grid-column: 1 / -1; display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 8px 24px; }
body.d4.d4-c .d4-shipment-create .d4-create-reference > .field-error { grid-column: 2; }
body.d4.d4-c .d4-shipment-create .d4-create-agent { display: grid; align-content: start; gap: 12px; align-self: stretch; }
body.d4.d4-c .d4-shipment-create .shipment-lable { display: flex; align-items: center; margin: 0 0 10px; color: var(--d4-navy); font-size: 14px !important; font-weight: 700; line-height: 1.5; }
body.d4.d4-c .d4-shipment-create .shipment-lable > span:not(.mytooltip):not(.iconify) { margin-left: 2px; }
body.d4.d4-c .d4-shipment-create .d4-create-reference > .shipment-lable { margin: 0; }
body.d4.d4-c .d4-shipment-create .d4-create-agent > .shipment-lable { margin: 0 0 6px; font-size: 17px !important; }
body.d4.d4-c .d4-shipment-create .d4-create-agent > .shipment-lable > .iconify { width: 22px; height: 22px; flex: 0 0 22px; margin-right: 10px; color: var(--d4-blue); }
body.d4.d4-c .d4-shipment-create .d4-routing-info { position: static; margin-left: auto; }
body.d4.d4-c .d4-shipment-create .d4-routing-info.mytooltip::before { left: auto; right: 16px; top: auto; bottom: calc(100% + 8px); transform: none; max-width: calc(100% - 32px); }
body.d4.d4-c .d4-shipment-create .d4-routing-info.mytooltip::after { display: none; }
body.d4.d4-c .d4-shipment-create .d4-routing-info img { width: 20px; height: 20px; }
body.d4.d4-c .d4-shipment-create .d4-create-agent .banner_select { width: 100%; margin: 0 !important; }
body.d4.d4-c .d4-shipment-create .banner_textbox { min-height: 42px !important; height: 42px !important; margin: 0 !important; font-size: 14px !important; color: var(--d4-text) !important; }
body.d4.d4-c .d4-shipment-create .banner_textbox::placeholder { color: var(--d4-muted) !important; opacity: 1; }
body.d4.d4-c .d4-shipment-create .d4-create-details { grid-column: 1 / -1; width: 100%; min-width: 0; padding: 0; }
body.d4.d4-c .d4-shipment-create .d4-create-transport { padding: 26px; margin: 4px 0 22px; }
body.d4.d4-c .d4-shipment-create .d4-create-section-title { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--d4-line-soft); font-size: 20px; font-weight: 900; line-height: 1.4; }
body.d4.d4-c .d4-shipment-create .d4-create-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; }
body.d4.d4-c .d4-shipment-create .d4-create-facts > div { width: auto; max-width: none; min-width: 0; padding: 0; }
body.d4.d4-c .d4-shipment-create .d4-create-method { grid-column: 1; grid-row: 1 / span 3; }
body.d4.d4-c .d4-shipment-create .d4-create-schedule,
body.d4.d4-c .d4-shipment-create .d4-create-facts > .wgl_col-6 { grid-column: 2; }
body.d4.d4-c .d4-shipment-create .d4-create-facts .form-group { margin: 0 !important; }
body.d4.d4-c .d4-shipment-create .d4-create-facts .banner_select { margin: 0 !important; }
body.d4.d4-c .d4-shipment-create .d4-create-schedule > .form-group > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; }
body.d4.d4-c .d4-shipment-create .d4-create-schedule > .form-group > .row::before,
body.d4.d4-c .d4-shipment-create .d4-create-schedule > .form-group > .row::after { display: none; }
body.d4.d4-c .d4-shipment-create .d4-create-schedule > .form-group > .row > div { width: auto; padding: 0; }
body.d4.d4-c .d4-shipment-create .radio_btn { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
body.d4.d4-c .d4-shipment-create .radio_btn > div { position: relative; margin: 0; }
body.d4.d4-c .d4-shipment-create .radio_btn input.css-checkbox { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0; }
body.d4.d4-c .d4-shipment-create .radio_btn input.css-checkbox + label.css-label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; height: auto; padding: 10px 14px !important; margin: 0; border: 1px solid var(--d4-line); border-radius: 10px; background: #fff; color: var(--d4-navy); font-size: 12px; font-weight: 700; line-height: 1.4; cursor: pointer; }
body.d4.d4-c .d4-shipment-create .radio_btn label.css-label::before,
body.d4.d4-c .d4-shipment-create .radio_btn label.css-label::after { display: none !important; }
body.d4.d4-c .d4-shipment-create .radio_btn input.css-checkbox:checked + label.css-label { border-color: var(--d4-blue); background: var(--d4-blue-soft); color: var(--d4-navy); }
body.d4.d4-c .d4-shipment-create .radio_btn input.css-checkbox:focus-visible + label.css-label,
body.d4.d4-c .d4-shipment-create .radio_btn input.css-checkbox + label.css-label:hover { border-color: var(--d4-blue); }
body.d4.d4-c .d4-shipment-create .d4-create-method-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.d4.d4-c .d4-shipment-create .d4-create-method-choices input.css-checkbox + label.css-label { flex-direction: column; gap: 7px; padding: 12px 4px !important; font-size: 11px; }
body.d4.d4-c .d4-shipment-create .d4-create-method-choices .iconify { width: 24px; height: 24px; color: var(--d4-blue); }
body.d4.d4-c .d4-shipment-create .shipment-method-input { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; margin: 20px 0 0; padding: 18px; border: 1px solid var(--d4-line-soft); border-radius: 12px; background: var(--d4-soft); }
body.d4.d4-c .d4-shipment-create .shipment-method-input > .col-sm-4 { width: auto; min-width: 0; padding: 0; }
body.d4.d4-c .d4-shipment-create .shipment-method-input > div:not(.col-sm-4),
body.d4.d4-c .d4-shipment-create .shipment-method-input > .help-text { grid-column: 1 / -1; width: 100%; }
body.d4.d4-c .d4-shipment-create .shipment-method-input > div > .col-sm-12,
body.d4.d4-c .d4-shipment-create .shipment-method-input > div > .col-sm-6 { padding: 0; width: 100%; }
body.d4.d4-c .d4-shipment-create .help-text { margin: 0; padding: 0; color: var(--d4-muted) !important; font-size: 12px; font-weight: 400; line-height: 1.5; opacity: 1 !important; }
body.d4.d4-c .d4-shipment-create .field-error { position: static; display: block; margin-top: 7px; color: var(--d4-red); font-size: 12px; line-height: 1.5; }
body.d4.d4-c .d4-shipment-create #dvAddMoreContent { display: grid; gap: 20px; }
body.d4.d4-c .d4-shipment-create #dvAddMoreContent:not(:empty) { margin-bottom: 22px; }
body.d4.d4-c .d4-shipment-create #dvAddMoreContent > .shipment-form-box { margin: 0; }
body.d4.d4-c .d4-create-loading .d4-create-heading { display: grid; gap: 10px; }
body.d4.d4-c .d4-create-loading .d4-create-transport > .legacy-skeleton { margin-bottom: 24px; }
body.d4.d4-c .d4-create-loading-field { display: grid; gap: 12px; }
@media (max-width: 1100px) {
  body.d4.d4-c .d4-shipment-create .d4-create-schedule > .form-group > .row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  body.d4.d4-c .d4-shipment-create .d4-create-layout,
  body.d4.d4-c .d4-shipment-create .d4-create-facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.d4.d4-c .d4-shipment-create .d4-create-method,
  body.d4.d4-c .d4-shipment-create .d4-create-schedule,
  body.d4.d4-c .d4-shipment-create .d4-create-facts > .wgl_col-6 { grid-column: 1; grid-row: auto; }
  body.d4.d4-c .d4-shipment-create .d4-create-reference { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.d4.d4-c .d4-shipment-create .d4-create-reference > .field-error { grid-column: 1; }
  body.d4.d4-c .d4-shipment-create .d4-create-reference,
  body.d4.d4-c .d4-shipment-create .d4-create-agent,
  body.d4.d4-c .d4-shipment-create .d4-create-transport { padding: 18px; }
  body.d4.d4-c .d4-shipment-create .d4-create-schedule > .form-group > .row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  body.d4.d4-c .d4-shipment-create .shipment-method-input { padding: 14px; gap: 16px 10px; }
  body.d4.d4-c .d4-shipment-create .shipment-method-input .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
  body.d4.d4-c .d4-shipment-create .shipment-method-input .row::before,
  body.d4.d4-c .d4-shipment-create .shipment-method-input .row::after { display: none; }
  body.d4.d4-c .d4-shipment-create .shipment-method-input .row > div { width: auto; padding: 0; }
  body.d4.d4-c .d4-create-loading .d4-shipment-loading-actions { flex-wrap: wrap; }
}

/* Variant 3 — account settings and office management share the existing card and field system. */
body.d4.d4-c .d4-account-page .about_desp { margin-bottom: 24px; }
body.d4.d4-c .d4-account-page .account-card { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.6fr); align-items: start; gap: 24px; padding: 0; margin: 0; background: transparent; border: 0; box-shadow: none; }
body.d4.d4-c .d4-account-page .profile-img,
body.d4.d4-c .d4-account-page .profile_details { width: auto; min-width: 0; padding: 28px; margin: 0; border: 1px solid var(--d4-line); border-radius: var(--d4-radius); background: #fff; box-shadow: var(--d4-shadow); }
body.d4.d4-c .d4-settings-heading { display: flex; align-items: center; gap: 12px; padding: 0 0 20px; margin: 0 0 24px; border-bottom: 1px solid var(--d4-line-soft); font-size: 20px; line-height: 1.4; }
body.d4.d4-c .d4-settings-heading .iconify { width: 22px; height: 22px; color: var(--d4-blue); }
body.d4.d4-c .d4-account-page .accountborder { margin: 0; padding: 0; border: 0; }
body.d4.d4-c .d4-account-page .account_label { display: block; margin: 0 0 10px; font-size: 13px !important; font-weight: 700; color: var(--d4-navy); }
body.d4.d4-c .d4-account-page .fileinput { display: flex; flex-direction: column; align-items: center; width: 100%; }
body.d4.d4-c .d4-account-page .fileinput > .account_label { align-self: flex-start; }
body.d4.d4-c .d4-account-page .ac-profile-img { position: relative; width: 144px; height: 144px; margin: 12px 0 24px; border-radius: 24px; overflow: hidden; }
body.d4.d4-c .d4-account-page .ac-profile-img .d4-person-avatar { width: 144px; height: 144px; border-radius: 24px; font-size: 42px; }
body.d4.d4-c .d4-account-page .ac-profile-img .d4-person-avatar img { width: 100%; height: 100%; border-radius: 0; }
body.d4.d4-c .d4-account-page .upload-overlay { display: flex; align-items: center; justify-content: center; position: absolute; inset: auto 0 0; height: 32px; padding: 0; margin: 0; background: var(--d4-navy); color: #fff; opacity: 1; font-size: 12px; font-weight: 700; cursor: pointer; }
body.d4.d4-c .d4-account-page .ac-img-btn { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
body.d4.d4-c .d4-account-page .ac-img-btn > * { margin: 0 !important; }
body.d4.d4-c .d4-account-page .ac-img-details { width: 100%; padding: 16px; border-radius: 10px; background: var(--d4-soft); text-align: center; }
body.d4.d4-c .d4-account-page .img-details { margin: 0; font-size: 12px; line-height: 1.6; color: var(--d4-muted); }
body.d4.d4-c .d4-account-page .form-group { margin: 0 0 20px; }
body.d4.d4-c .d4-account-page .d4-account-email { padding: 16px 18px; border: 1px solid var(--d4-line-soft); border-radius: 12px; background: var(--d4-soft); margin-bottom: 24px; }
body.d4.d4-c .d4-account-page .mail-with-validate { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; font-size: 14px; color: var(--d4-navy); overflow-wrap: anywhere; }
body.d4.d4-c .d4-account-page .resend_link { margin: 0; padding: 0; color: var(--d4-blue); font-size: 12px; font-weight: 700; text-decoration: underline; }
body.d4.d4-c .d4-account-page .banner_textbox { width: 100%; height: 42px !important; min-height: 42px !important; margin: 0; font-size: 14px; }
body.d4.d4-c .d4-account-page .banner_textbox::placeholder { color: var(--d4-muted); opacity: 1; }
body.d4.d4-c .d4-account-page .btn_top_margin { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--d4-line-soft); }
body.d4.d4-c .d4-account-page .btn-sky { background: #fff !important; color: var(--d4-navy) !important; border: 1px solid var(--d4-navy) !important; }
body.d4.d4-c .d4-offices-list .mylocation_table { padding: 24px; border: 1px solid var(--d4-line); border-radius: var(--d4-radius); background: #fff; box-shadow: var(--d4-shadow); }
body.d4.d4-c .d4-offices-list .office-filters { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr; gap: 14px; margin: 0 0 20px; }
body.d4.d4-c .d4-offices-list .office-filters > * { min-width: 0; width: 100%; margin: 0; }
body.d4.d4-c .d4-offices-list .sales_leadtablemain,
body.d4.d4-c .d4-offices-list .dataTables_wrapper { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
body.d4.d4-c .d4-offices-list .dataTables_wrapper > .row { margin: 0; }
body.d4.d4-c .d4-offices-list .dataTables_wrapper > .row::before,
body.d4.d4-c .d4-offices-list .dataTables_wrapper > .row::after { display: none; }
body.d4.d4-c .d4-offices-list .dataTables_wrapper > .row > div { padding: 0; }
body.d4.d4-c .d4-offices-list .dataTables_wrapper > .row:first-child { display: flex; flex-direction: row !important; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px; margin-bottom: 20px; border-radius: 12px; background: var(--d4-soft) !important; }
body.d4.d4-c .d4-offices-list .dataTables_wrapper > .row:first-child > div { width: auto; }
body.d4.d4-c .d4-offices-list .dataTables_wrapper > .row:first-child > div:nth-child(2) { order: -1; margin-right: auto; }
body.d4.d4-c .d4-offices-list .dataTables_wrapper .dataTables_filter,
body.d4.d4-c .d4-offices-list .dataTables_length { margin: 0 !important; float: none !important; }
body.d4.d4-c .d4-offices-list .dataTables_filter label { margin: 0; }
body.d4.d4-c .d4-offices-list .dataTables_filter input { width: 280px !important; max-width: 100%; height: 42px !important; margin: 0 !important; padding: 10px 14px 10px 38px !important; border: 1px solid var(--d4-line) !important; border-radius: 10px !important; background: #fff; font-size: 14px; }
body.d4.d4-c .d4-offices-list .dataTables_length label { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--d4-muted); font-size: 13px; }
body.d4.d4-c .d4-offices-list #locationlistTable { box-shadow: none !important; width: 100% !important; table-layout: auto; border-collapse: separate !important; border-spacing: 0; margin: 0 !important; }
body.d4.d4-c .d4-offices-list #locationlistTable th { width: auto; padding: 14px 12px !important; text-align: left; font-size: 11px !important; line-height: 1.4; letter-spacing: .08em; color: var(--d4-muted); }
body.d4.d4-c .d4-offices-list #locationlistTable td { width: auto; padding: 22px 12px !important; border-bottom: 1px solid var(--d4-line-soft) !important; vertical-align: middle; font-size: 14px; line-height: 1.6; color: var(--d4-text); white-space: normal; overflow-wrap: anywhere; }
body.d4.d4-c .d4-offices-list .d4-office-address__text { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 700; color: var(--d4-navy); }
body.d4.d4-c .d4-offices-list .d4-office-address__text .iconify { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; color: var(--d4-blue); }
body.d4.d4-c .d4-offices-list .custom-actions { margin: 8px 0 0 34px; font-size: 13px; font-weight: 700; }
body.d4.d4-c .d4-offices-list .custom-actions a { color: var(--d4-blue); }
body.d4.d4-c .d4-offices-list .custom-actions a:hover { text-decoration: underline; }
body.d4.d4-c .d4-offices-list .d4-office-status { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--d4-yellow-soft); color: #8b5a05; }
body.d4.d4-c .d4-offices-list .d4-office-status[data-published="true"] { background: var(--d4-green-soft); color: var(--d4-green); }
body.d4.d4-c .d4-offices-list .dataTables_wrapper > .row:last-child { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 20px; }
body.d4.d4-c .d4-offices-list .dataTables_wrapper > .row:last-child > div { width: auto; }
body.d4.d4-c .d4-offices-list .dataTables_info { margin: 0; padding: 0; font-size: 13px; color: var(--d4-muted); }
body.d4.d4-c .d4-offices-list .pagination { flex-wrap: wrap; justify-content: flex-end; }
body.d4.d4-c .d4-offices-loading__toolbar { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
body.d4.d4-c .d4-offices-loading__row { display: grid; grid-template-columns: 2fr 1fr 80px 1fr; align-items: center; gap: 24px; padding: 24px 12px; border-top: 1px solid var(--d4-line-soft); }
@media (max-width: 767px) {
  body.d4.d4-c .d4-account-page .account-card { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  body.d4.d4-c .d4-account-page .profile-img,
  body.d4.d4-c .d4-account-page .profile_details { padding: 20px; }
  body.d4.d4-c .d4-account-page .mail-with-validate { align-items: flex-start; flex-direction: column; }
  body.d4.d4-c .d4-offices-list .mylocation_table { padding: 18px; }
  body.d4.d4-c .d4-offices-list .office-filters { grid-template-columns: minmax(0, 1fr); }
  body.d4.d4-c .d4-offices-list .table-responsive { overflow: visible; }
  body.d4.d4-c .d4-offices-list .dataTables_wrapper > .row:first-child { padding: 14px; gap: 12px; }
  body.d4.d4-c .d4-offices-list .dataTables_wrapper > .row:first-child > div:nth-child(2),
  body.d4.d4-c .d4-offices-list .dataTables_filter label,
  body.d4.d4-c .d4-offices-list .dataTables_filter input { width: 100% !important; }
  body.d4.d4-c .d4-offices-list table#locationlistTable,
  body.d4.d4-c .d4-offices-list #locationlistTable tbody { display: block; }
  body.d4.d4-c .d4-offices-list #locationlistTable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body.d4.d4-c .d4-offices-list #locationlistTable tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; margin-bottom: 14px; border: 1px solid var(--d4-line); border-radius: 12px; }
  body.d4.d4-c .d4-offices-list #locationlistTable td { display: block; min-width: 0; padding: 0 !important; border: 0 !important; background: transparent !important; }
  body.d4.d4-c .d4-offices-list #locationlistTable .d4-office-address,
  body.d4.d4-c .d4-offices-list #locationlistTable .shippning_type,
  body.d4.d4-c .d4-offices-list #locationlistTable td[data-label="Company Name"],
  body.d4.d4-c .d4-offices-list #locationlistTable td[colspan] { grid-column: 1 / -1; }
  body.d4.d4-c .d4-offices-list #locationlistTable td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; color: var(--d4-muted); font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
  body.d4.d4-c .d4-offices-list .pagination { justify-content: flex-start; }
  body.d4.d4-c .d4-offices-loading__toolbar { flex-wrap: wrap; }
  body.d4.d4-c .d4-offices-loading__row { grid-template-columns: 1fr 1fr; padding: 18px; margin-bottom: 14px; border: 1px solid var(--d4-line); border-radius: 12px; }
  body.d4.d4-c .d4-offices-loading__row > :nth-child(-n+2) { grid-column: 1 / -1; }
}

/* Variant 3 — contact form and the API-provided contact information. */
body.d4.d4-c .d4-contact-page .d4-contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 24px; margin: 0; }
body.d4.d4-c .d4-contact-page .d4-contact-layout::before,
body.d4.d4-c .d4-contact-page .d4-contact-layout::after { display: none; }
body.d4.d4-c .d4-contact-page .d4-contact-layout > div { grid-column: auto; width: 100%; min-width: 0; padding: 0; }
body.d4.d4-c .d4-contact-page .wpcf7,
body.d4.d4-c .d4-contact-page .contact-details > div,
body.d4.d4-c .d4-contact-page .get-in-touch { padding: 28px; margin: 0; border: 1px solid var(--d4-line); border-radius: var(--d4-radius); background: #fff; box-shadow: var(--d4-shadow); }
body.d4.d4-c .d4-contact-page .wpcf7-form { padding: 0; margin: 0; }
body.d4.d4-c .d4-contact-page .form-group { margin-bottom: 20px; }
body.d4.d4-c .d4-contact-page .form-label { display: block; margin: 0 0 8px; color: var(--d4-navy); font-size: 13px !important; font-weight: 700; }
body.d4.d4-c .d4-contact-page .form-label span { color: var(--d4-red); margin-left: 3px; }
body.d4.d4-c .d4-contact-page .form-control { min-height: 42px !important; height: 42px !important; margin: 0; border: 1px solid var(--d4-line); border-radius: 10px !important; padding: 10px 14px !important; color: var(--d4-text); font-size: 14px !important; line-height: 1.5; }
body.d4.d4-c .d4-contact-page textarea.form-control { height: 180px !important; min-height: 140px !important; resize: vertical; }
body.d4.d4-c .d4-contact-page .form-control::placeholder { color: var(--d4-muted); opacity: 1; }
body.d4.d4-c .d4-contact-page .form-control:focus { border-color: var(--d4-blue); box-shadow: none; outline: none; }
body.d4.d4-c .d4-contact-page .wpcf7-submit { margin: 8px 0 0; }
body.d4.d4-c .d4-contact-page .contact-details { display: grid; gap: 20px; margin: 0; padding: 0; }
body.d4.d4-c .d4-contact-page .contact-details > div { display: flex; align-items: flex-start; gap: 16px; }
body.d4.d4-c .d4-contact-page .d4-contact-icon { order: -1; width: 24px; height: 24px; flex: 0 0 24px; color: var(--d4-blue); }
body.d4.d4-c .d4-contact-page .business-hours { min-width: 0; padding: 0; margin: 0; }
body.d4.d4-c .d4-contact-page .business-hours h5 { margin: 0 0 14px; font-size: 20px; line-height: 1.3; }
body.d4.d4-c .d4-contact-page .business-hours p { margin: 0; font-size: 14px; line-height: 2; color: var(--d4-muted); }
body.d4.d4-c .d4-contact-page .business-hours ul { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
body.d4.d4-c .d4-contact-page .business-hours li { margin: 0 !important; padding: 0; }
body.d4.d4-c .d4-contact-page .business-hours li a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--d4-line); border-radius: 50%; color: var(--d4-navy); }
body.d4.d4-c .d4-contact-page .business-hours li a:hover { background: var(--d4-blue-soft); border-color: var(--d4-blue); }
body.d4.d4-c .d4-contact-page .get-in-touch { margin-top: 24px; }
body.d4.d4-c .d4-contact-page .get-in-touch h2 { margin: 0 0 24px; font-size: 20px !important; line-height: 1.4; }
body.d4.d4-c .d4-contact-page .get-in-touch .contact-box { min-height: 0; height: auto; padding: 0 !important; margin: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
body.d4.d4-c .d4-contact-page .contact-box > .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
body.d4.d4-c .d4-contact-page .contact-box > .row::before,
body.d4.d4-c .d4-contact-page .contact-box > .row::after { display: none; }
body.d4.d4-c .d4-contact-page .contact-box .box-col { grid-column: auto; width: auto; min-width: 0; padding: 0; border: 0; }
body.d4.d4-c .d4-contact-page .get-in-touch .contact-box .contact-info { display: flex; justify-content: flex-start; align-items: flex-start; gap: 14px; margin: 0; padding: 0; border: 0; }
body.d4.d4-c .d4-contact-page .contact-info > span:not(.iconify) { min-width: 0; }
body.d4.d4-c .d4-contact-page .contact-info .box-title { margin: 0 0 8px; font-size: 11px; font-weight: 700; color: var(--d4-muted); text-transform: uppercase; letter-spacing: .08em; }
body.d4.d4-c .d4-contact-page .contact-info .text-dark { margin: 0; font-size: 14px; line-height: 1.7; color: var(--d4-navy) !important; overflow-wrap: anywhere; }
body.d4.d4-c .d4-contact-page .contact-info a { color: var(--d4-navy); }
body.d4.d4-c .d4-contact-page .contact-info a:hover { color: var(--d4-blue); text-decoration: underline; }
body.d4.d4-c .d4-contact-form-loading,
body.d4.d4-c .d4-contact-details-loading { display: grid; gap: 18px; }
body.d4.d4-c .d4-contact-form-loading .row > div { display: grid; gap: 12px; }
body.d4.d4-c .d4-contact-details-loading > div { display: grid; gap: 24px; padding: 28px; }
@media (max-width: 767px) {
  body.d4.d4-c .d4-contact-page .d4-contact-layout,
  body.d4.d4-c .d4-contact-page .contact-box > .row { grid-template-columns: minmax(0, 1fr); }
  body.d4.d4-c .d4-contact-page .wpcf7,
  body.d4.d4-c .d4-contact-page .contact-details > div,
  body.d4.d4-c .d4-contact-page .get-in-touch { padding: 20px; }
  body.d4.d4-c .d4-contact-form-loading .row { row-gap: 18px; }
}

/* FullCalendar uses natural height here; legacy scroll and table padding rules clipped its last week. */
body.d4.d4-c .d4-network-calendar__month,
body.d4.d4-c .d4-network-calendar__month .fc-view-harness,
body.d4.d4-c .d4-network-calendar__month .fc-scrollgrid,
body.d4.d4-c .d4-network-calendar__month .fc-scroller-harness,
body.d4.d4-c .d4-network-calendar__month .fc-scroller { overflow: visible !important; }
body.d4.d4-c .d4-network-calendar__month .fc-scrollgrid-section > td { padding: 0 !important; }
body.d4.d4-c .d4-network-calendar__month .fc-daygrid-body { padding-bottom: 8px; }
body.d4.d4-c .d4-account-page .account-card { background: transparent !important; border: 0 !important; box-shadow: none !important; }
body.d4.d4-c .d4-account-page .upload-overlay { border-radius: 0; text-transform: none; }
body.d4.d4-c .d4-account-page #myaccount_photo { width: 1px; height: 1px; max-width: 1px; overflow: hidden; }

body.d4.d4-c .d4-offices-list .dataTables_filter input::placeholder { color: var(--d4-muted); opacity: 1; }

body.d4.d4-c .d4-contact-info-loading > .legacy-skeleton { margin-bottom: 24px; }
body.d4.d4-c .d4-contact-info-loading .box-col { display: grid; gap: 14px; }

/* Variant 3 — the Add Location dialog keeps its original fields and footer actions. */
body.d4.d4-c #addlocation .d4-location-modal { width: min(1040px, calc(100vw - 48px)) !important; max-width: calc(100vw - 48px) !important; height: calc(100dvh - 48px); min-height: 0; margin: 24px auto !important; }
body.d4.d4-c #addlocation .d4-location-modal .modal-content { max-height: 100%; border: 1px solid var(--d4-line); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 80px rgba(18,56,95,.2); }
body.d4.d4-c #addlocation .d4-location-modal .modal-header { flex: 0 0 auto; padding: 22px 28px; border-bottom: 1px solid var(--d4-line); background: #fff; }
body.d4.d4-c #addlocation .d4-location-modal .modal-header h4 { margin: 0; color: var(--d4-navy); font-size: 24px; line-height: 1.3; }
body.d4.d4-c #addlocation .d4-location-modal .modal-header button { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 36px; margin: 0; padding: 0; background: var(--d4-soft) !important; border: 1px solid var(--d4-line) !important; border-radius: 50%; }
body.d4.d4-c #addlocation .d4-location-modal .modal-header button svg { width: 22px; height: 22px; }
body.d4.d4-c #addlocation .d4-location-modal .modal-body { min-height: 0; padding: 24px 28px !important; background: var(--d4-soft); overflow-y: auto; overscroll-behavior: contain; }
body.d4.d4-c #addlocation .d4-location-modal .country-notice { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px 16px; margin: 0 0 20px !important; border: 1px solid #eed899; border-radius: 12px; background: var(--d4-yellow-soft); }
body.d4.d4-c #addlocation .d4-location-modal .country-notice .iconify { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; color: #8b5a05; }
body.d4.d4-c #addlocation .d4-location-modal .notice-text { width: auto; font-size: 13px; line-height: 1.6; color: var(--d4-text); }
body.d4.d4-c #addlocation .d4-location-modal .modal-footer { flex: 0 0 auto; padding: 16px 28px; margin: 0; border-top: 1px solid var(--d4-line); background: #fff; }
body.d4.d4-c #addlocation .d4-location-modal .btn-single-row { display: flex; justify-content: flex-end; align-items: center; gap: 12px; width: 100%; margin: 0; }
body.d4.d4-c #addlocation .d4-location-modal .btn-single-row > * { margin: 0 !important; min-width: 120px; height: 42px; padding: 10px 22px !important; font-size: 14px !important; line-height: 20px; }
body.d4.d4-c #addlocation .d4-location-modal .btn-sky { color: var(--d4-navy) !important; background: #fff !important; border: 1px solid var(--d4-navy) !important; }
body.d4.d4-c .d4-location-form .add-location,
body.d4.d4-c .d4-location-form .add-manager,
body.d4.d4-c .d4-location-loading__section { width: 100%; margin: 0 0 20px; padding: 24px; border: 1px solid var(--d4-line); border-radius: 16px; background: #fff; box-shadow: none; }
body.d4.d4-c .d4-location-form .add-manager:last-child,
body.d4.d4-c .d4-location-loading__section:last-child { margin-bottom: 0; }
body.d4.d4-c .d4-location-form h4,
body.d4.d4-c .d4-location-form h5 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 20px; font-size: 20px; line-height: 1.4; color: var(--d4-navy); }
body.d4.d4-c .d4-location-form h4 .iconify,
body.d4.d4-c .d4-location-form h5 .iconify { width: 22px; height: 22px; flex: 0 0 22px; color: var(--d4-blue); }
body.d4.d4-c .d4-location-form .d4-location-company { padding: 12px 16px; margin: 0 0 22px; border-radius: 10px; background: var(--d4-soft); color: var(--d4-navy); font-size: 14px; line-height: 1.6; font-weight: 700; overflow-wrap: anywhere; }
body.d4.d4-c .d4-location-form .office-company-change { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; color: var(--d4-blue); font-size: 12px; font-weight: 700; }
body.d4.d4-c .d4-location-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 0; }
body.d4.d4-c .d4-location-form .row::before,
body.d4.d4-c .d4-location-form .row::after { display: none; }
body.d4.d4-c .d4-location-form .row > div { width: auto; min-width: 0; padding: 0; }
body.d4.d4-c .d4-location-form .d4-location-label { display: block; margin: 0 0 8px; color: var(--d4-navy); font-size: 12px; line-height: 1.5; font-weight: 700; }
body.d4.d4-c .d4-location-form .d4-location-label > span { color: var(--d4-red); }
body.d4.d4-c .d4-location-form .banner_textbox { display: block; width: 100%; height: 42px !important; min-height: 42px !important; margin: 0; padding: 10px 14px !important; border-radius: 10px !important; border: 1px solid var(--d4-line); background: #fff; color: var(--d4-text); font-size: 14px !important; line-height: 20px; }
body.d4.d4-c .d4-location-form .banner_textbox::placeholder { color: var(--d4-muted); opacity: 1; }
body.d4.d4-c .d4-location-form .banner_textbox:focus { outline: none; box-shadow: none; border-color: var(--d4-blue); }
body.d4.d4-c .d4-location-form .banner_select { margin: 0; width: 100%; min-width: 0; }
body.d4.d4-c .d4-location-form .phone-form,
body.d4.d4-c .d4-location-form .mr-form { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: start; gap: 8px; width: 100%; margin: 0; }
body.d4.d4-c .d4-location-form .phone-form > *,
body.d4.d4-c .d4-location-form .mr-form > * { width: 100%; min-width: 0; margin: 0; float: none; }
body.d4.d4-c .d4-location-form .manager-details { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; margin: 0; }
body.d4.d4-c .d4-location-form .manager-profile { width: auto; min-width: 0; margin: 0; padding: 0; }
body.d4.d4-c .d4-location-form .manager-form { width: auto; min-width: 0; padding: 0; }
body.d4.d4-c .d4-location-form .image-preview { width: 88px; height: 88px; margin: 0 auto 14px; padding: 0; background: none; border: 0; border-radius: 18px; overflow: hidden; }
body.d4.d4-c .d4-location-form .d4-person-avatar { width: 88px; height: 88px; border-radius: 18px; font-size: 28px; }
body.d4.d4-c .d4-location-form .d4-person-avatar > .iconify { width: 34px; height: 34px; }
body.d4.d4-c .d4-location-form .fileinput { width: 100%; margin: 0; }
body.d4.d4-c .d4-location-form .fileinput label { display: block; margin: 0; text-align: center; }
body.d4.d4-c .d4-location-form .choose-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 14px; margin: 0; border: 1px solid var(--d4-line); border-radius: 999px; background: #fff; color: var(--d4-navy); font-size: 12px; font-weight: 700; cursor: pointer; }
body.d4.d4-c .d4-location-form .errormsg { margin: 6px 0 0 !important; color: var(--d4-red); font-size: 12px; line-height: 1.5; }
body.d4.d4-c .d4-location-form .remove_btn { margin-left: auto !important; color: var(--d4-red); font-size: 12px; font-weight: 700; }
body.d4.d4-c .d4-location-loading__section { display: grid; gap: 22px; }
body.d4.d4-c .d4-location-loading__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
body.d4.d4-c .d4-location-loading__fields > div { display: grid; gap: 8px; }
body.d4.d4-c .d4-location-loading__contact { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
body.d4.d4-c:has(#addlocation .d4-location-modal) [data-reka-popper-content-wrapper]:has(.d4-select__panel) { z-index: 1060 !important; }
@media (max-width: 767px) {
  body.d4.d4-c #addlocation .d4-location-modal { width: calc(100vw - 20px) !important; max-width: calc(100vw - 20px) !important; height: calc(100dvh - 20px); margin: 10px auto !important; }
  body.d4.d4-c #addlocation .d4-location-modal .modal-header { padding: 18px; }
  body.d4.d4-c #addlocation .d4-location-modal .modal-header h4 { font-size: 22px; }
  body.d4.d4-c #addlocation .d4-location-modal .modal-body { padding: 16px !important; }
  body.d4.d4-c #addlocation .d4-location-modal .modal-footer { padding: 14px 16px; }
  body.d4.d4-c #addlocation .d4-location-modal .btn-single-row > * { flex: 1; min-width: 0; }
  body.d4.d4-c .d4-location-form .add-location,
  body.d4.d4-c .d4-location-form .add-manager,
  body.d4.d4-c .d4-location-loading__section { padding: 18px; }
  body.d4.d4-c .d4-location-form .row,
  body.d4.d4-c .d4-location-form .manager-details,
  body.d4.d4-c .d4-location-loading__fields,
  body.d4.d4-c .d4-location-loading__contact { grid-template-columns: minmax(0, 1fr); }
  body.d4.d4-c .d4-location-form .manager-profile { display: flex; align-items: center; gap: 16px; }
  body.d4.d4-c .d4-location-form .image-preview { flex: 0 0 72px; width: 72px; height: 72px; margin: 0; }
  body.d4.d4-c .d4-location-form .d4-person-avatar { width: 72px; height: 72px; }
  body.d4.d4-c .d4-location-form .fileinput { width: auto; }
  body.d4.d4-c .d4-location-form h5 { align-items: flex-start; font-size: 18px; }
}

/* Variant 3 — shipment validation uses the same compact card, type and button system. */
body.d4.d4-c:has(.d4-shipment-create) .swal2-popup.swal2-icon-warning { display: grid !important; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; width: 520px; max-width: calc(100vw - 32px); padding: 28px; border: 1px solid var(--d4-line); border-radius: 20px; background: #fff; box-shadow: 0 24px 80px rgba(18,56,95,.2); font-family: Roboto, sans-serif; }
body.d4.d4-c:has(.d4-shipment-create) .swal2-icon-warning .swal2-icon { grid-column: 1; grid-row: 1 / span 2; width: 48px; height: 48px; margin: 0; border: 0; border-radius: 14px; background: var(--d4-yellow-soft); color: #a16600; }
body.d4.d4-c:has(.d4-shipment-create) .swal2-icon-warning .swal2-icon-content { font-size: 30px; font-weight: 700; }
body.d4.d4-c:has(.d4-shipment-create) .swal2-icon-warning .swal2-title { grid-column: 2; grid-row: 1; align-self: center; padding: 0; margin: 0; font-size: 22px; line-height: 1.35; color: var(--d4-navy); text-align: left; }
body.d4.d4-c:has(.d4-shipment-create) .swal2-icon-warning .swal2-html-container { grid-column: 2; grid-row: 2; padding: 0; margin: 10px 0 0; overflow: visible; font-size: 14px; line-height: 1.65; color: var(--d4-muted); text-align: left; }
body.d4.d4-c:has(.d4-shipment-create) .swal2-icon-warning .swal2-actions { grid-column: 1 / -1; width: 100%; justify-content: flex-end; padding: 20px 0 0; margin: 22px 0 0; border-top: 1px solid var(--d4-line-soft); }
body.d4.d4-c:has(.d4-shipment-create) .swal2-icon-warning .swal2-confirm { min-width: 90px; height: 42px; padding: 10px 22px; margin: 0; border: 1px solid var(--d4-navy); border-radius: 999px; background: var(--d4-navy) !important; color: #fff; font-size: 14px; line-height: 20px; font-weight: 900; box-shadow: none !important; }
@media (max-width: 480px) {
  body.d4.d4-c:has(.d4-shipment-create) .swal2-popup.swal2-icon-warning { padding: 22px; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  body.d4.d4-c:has(.d4-shipment-create) .swal2-icon-warning .swal2-icon { width: 40px; height: 40px; grid-row: 1; }
  body.d4.d4-c:has(.d4-shipment-create) .swal2-icon-warning .swal2-title { font-size: 20px; }
  body.d4.d4-c:has(.d4-shipment-create) .swal2-icon-warning .swal2-html-container { grid-column: 1 / -1; margin: 0; }
  body.d4.d4-c:has(.d4-shipment-create) .swal2-icon-warning .swal2-actions { margin-top: 4px; }
}

/* Variant 3 — bring existing app and logo downloads into the Home greeting row. */
html body.d4.d4-c.d4 .d4-home__hero { display: grid !important; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.65fr); gap: 24px; align-items: center; }
html body.d4.d4-c.d4 .d4-home__hero .d4-home__greeting h1 { font-size: clamp(28px, 2.5vw, 38px) !important; }
html body.d4.d4-c.d4 .d4-home-resources { display: grid !important; grid-template-columns: minmax(140px, .8fr) minmax(0, 1.7fr) minmax(140px, 1fr); width: 100%; min-width: 0; height: auto; align-self: stretch; }
html body.d4.d4-c.d4 .d4-home-resources--vendor { grid-template-columns: 1fr 1fr; }
html body.d4.d4-c.d4 .d4-home-resources > .d4-downloads--compact { display: contents !important; }
html body.d4.d4-c.d4 .d4-home-resources > .d4-today-stat,
html body.d4.d4-c.d4 .d4-home-resources .d4-downloads--compact > section,
html body.d4.d4-c.d4 .d4-home-resources-loading > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; min-width: 0; width: auto; padding: 18px !important; margin: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff; }
html body.d4.d4-c.d4 .d4-home-resources .d4-today-stat span { font-size: 12px; line-height: 1.5; }
html body.d4.d4-c.d4 .d4-home-resources .d4-downloads--compact > .d4-download-app { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; }
html body.d4.d4-c.d4 .d4-home-resources .d4-download-app > div { min-width: 0; }
html body.d4.d4-c.d4 .d4-home-resources .d4-download-app__qr { margin: 0; width: 104px; }
html body.d4.d4-c.d4 .d4-home-resources .d4-qr { width: 104px; height: 104px; padding: 0; margin: 0; border: 1px solid var(--d4-line-soft); border-radius: 10px; background: #fff; }
html body.d4.d4-c.d4 .d4-home-resources figcaption { margin-top: 4px; color: var(--d4-muted); font-size: 9px; line-height: 1.4; text-align: center; }
html body.d4.d4-c.d4 .d4-home-resources h4 { padding: 0; margin: 0 0 10px; color: var(--d4-navy); font-size: 14px; line-height: 1.4; }
html body.d4.d4-c.d4 .d4-home-resources .d4-stores { display: flex; flex-wrap: wrap; gap: 6px; }
html body.d4.d4-c.d4 .d4-home-resources .d4-stores a { display: inline-flex; justify-content: space-between; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid var(--d4-line); border-radius: 8px; color: var(--d4-navy); background: #fff; font-size: 11px; line-height: 1.5; font-weight: 700; }
html body.d4.d4-c.d4 .d4-home-resources .d4-stores .iconify { display: inline-block; width: 13px; height: 13px; margin: 0; flex: 0 0 13px; }
html body.d4.d4-c.d4 .d4-home-resources .d4-stores a:hover,
html body.d4.d4-c.d4 .d4-home-resources .d4-logos a:hover { background: var(--d4-blue-soft); border-color: var(--d4-blue); }
html body.d4.d4-c.d4 .d4-home-resources .d4-logos { gap: 6px; }
html body.d4.d4-c.d4 .d4-home-resources .d4-logos a { max-width: 100%; padding: 8px 10px; border-radius: 8px; }
html body.d4.d4-c.d4 .d4-home-resources .d4-logos img { width: auto; max-width: 120px; height: 24px; object-fit: contain; }
html body.d4.d4-c.d4 .d4-home-resources-loading > .d4-home-resources-loading__app { display: grid !important; grid-template-columns: 104px minmax(0, 1fr); align-items: center; }
html body.d4.d4-c.d4 .d4-home-resources-loading__app > div:last-child { display: grid; gap: 14px; flex: 1; }
@media (max-width: 1199px) {
  html body.d4.d4-c.d4 .d4-home__hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  html body.d4.d4-c.d4 .d4-home-resources { grid-template-columns: minmax(0, 1fr); }
  html body.d4.d4-c.d4 .d4-home-resources .d4-downloads--compact > .d4-download-app { grid-template-columns: 104px minmax(0, 1fr); }
  html body.d4.d4-c.d4 .d4-home-resources h4 { font-size: 16px; }
  html body.d4.d4-c.d4 .d4-home-resources .d4-stores a { padding: 8px 10px; font-size: 12px; }
  html body.d4.d4-c.d4 .d4-home-resources .d4-logos img { max-width: 140px; height: 28px; }
}

body.d4.d4-c .d4-home__greeting { min-width: 0; }
body.d4.d4-c .d4-home__greeting .legacy-skeleton { max-width: 100%; }
