/* activeTRAC portal components (lane P1). Used by the standard portal and by member pages inside imported sites.
   Brand colours come from CSS variables set by the master page (--brand, --brand-ink, --accent). */
.portal-embedded, .portal { --brand: var(--brand, #1f4e79); }
.portal-card { background: #fff; border: 1px solid #e3e7ed; border-radius: 10px; padding: 20px 22px; margin: 0 0 20px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.portal-card h2 { margin: 0 0 12px; font-size: 1.15rem; font-weight: 600; color: #1d2733; }
.portal-muted { color: #5b6675; }
.portal-lead { font-size: 1.1rem; color: #33404f; margin: 0 0 18px; }
.portal-title { font-size: 1.6rem; font-weight: 600; margin: 0 0 18px; color: #1d2733; }
.portal-button { display: inline-block; background: var(--brand, #1f4e79); color: var(--brand-ink, #fff) !important; border: 0; border-radius: 6px; padding: 10px 18px; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; line-height: 1.2; }
.portal-button:hover { filter: brightness(1.1); text-decoration: none; }
.portal-button-light { background: transparent; color: var(--brand, #1f4e79) !important; box-shadow: inset 0 0 0 2px var(--brand, #1f4e79); }
.portal-link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.portal-inline { display: inline; margin: 0; }
.portal-form label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 4px; color: #33404f; }
.portal-form input[type=text], .portal-form input[type=password], .portal-form input[type=email], .portal-form select, .portal-form textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #c9d1db; border-radius: 6px; font-size: 1rem; background: #fff; height: auto; }
.portal-form input:focus { outline: 2px solid var(--accent, #f0a500); outline-offset: 1px; border-color: transparent; }
.portal-form .portal-button { margin-top: 16px; }
.portal-alert { border-radius: 6px; padding: 10px 14px; margin: 0 0 14px; font-size: .95rem; }
.portal-alert-error { background: #fdecec; color: #8a1c1c; border: 1px solid #f5c2c2; }
.portal-alert-ok { background: #eaf6ee; color: #1d5e33; border: 1px solid #bfe3cb; }
.portal-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0 0 24px; }
.portal-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; border: 1px solid #e3e7ed; border-radius: 10px; color: #1d2733 !important; text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.portal-tile:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .08); transform: translateY(-1px); }
.portal-tile i { font-size: 1.6rem; color: var(--brand, #1f4e79); }
.portal-tile strong { font-size: 1.05rem; }
.portal-tile span { color: #5b6675; font-size: .9rem; }
.portal-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.portal-columns > .portal-card { margin: 0 0 20px; min-width: 0; }
/* FX10: a wide grid (shipment events) scrolls inside its card instead of running past it */
.portal-card { overflow-x: auto; }
.portal-grid { overflow-x: auto; }
.portal-grid table, #pluginDetailsZone table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.portal-grid th, .portal-grid td, #pluginDetailsZone th, #pluginDetailsZone td { padding: 8px 10px; border-bottom: 1px solid #edf0f4; text-align: left; vertical-align: top; }
.portal-grid th, #pluginDetailsZone th { background: #f6f8fa; font-weight: 600; color: #33404f; }
/* Lane P3: inside an imported site the theme (legacy base.css + its colour CSS, e.g. Charleston red.css) paints the grid
   header bar and makes the column links white (!important). The light standard-portal header above hid that bar and left
   white text on near-white. Keep the theme's bar there; the standard portal (body.portal) keeps the light header. */
body:not(.portal) table.activeTracGrid thead th,
body:not(.portal) #pluginDetailsZone table.activeTracGrid thead th { background: transparent; color: #fff; }
.portal-grid tr[data-url] { cursor: pointer; }
.portal-grid tr[data-url]:hover td { background: #f3f7fc; }
.portal-announcement + .portal-announcement { border-top: 1px solid #edf0f4; padding-top: 12px; }
.portal-announcement h3 { margin: 0 0 4px; font-size: 1.02rem; }
.portal-announcement time { color: #5b6675; font-size: .85rem; }
.portal-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; font-size: .85rem; color: #5b6675; flex-wrap: wrap; }
.portal-steps li { padding: 4px 10px; border-radius: 99px; background: #f1f3f6; }
.portal-steps li.active { background: var(--brand, #1f4e79); color: var(--brand-ink, #fff); }
.portal-auth { max-width: 440px; margin: 10px auto 30px; }
.portal-auth h1 { font-size: 1.5rem; margin: 0 0 6px; }
.portal-empty { text-align: center; padding: 40px 20px; }
.rip-form-confirmation { padding: 30px 0; }
.rip-login-welcome { font-size: .9rem; }
