@font-face { font-family: "Montserrat"; font-weight: 500 800; font-display: swap; src: url("fonts/montserrat-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
:root { --navy: #0f2f4f; --blue: #29a3dd; --deep: #004f87; --text: #14456f; --muted: #5d7a94; --border: #d7e3ee; --bg: #f2f7fb; --danger: #b42318; --ok: #1a7f4b; --warn: #b26b00; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 "Inter", "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }
a { color: #187cc0; }
header.top { background: #fff; border-bottom: 3px solid var(--blue); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 10px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 600; }
.brand img { height: 40px; }
header nav { display: flex; gap: 16px; flex-wrap: wrap; flex: 1; }
header nav a { color: var(--navy); text-decoration: none; font-weight: 500; }
.who { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.who form { margin: 0; }
main { width: 100%; max-width: 1100px; margin: 24px auto; padding: 0 16px; flex: 1; }
footer { background: var(--navy); color: #fff; padding: 12px 24px; font-size: 13px; }
h1 { color: var(--navy); font-size: 24px; margin: 0 0 16px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.card.narrow { max-width: 460px; margin: 0 auto; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field small { color: var(--muted); }
input[type=text], input[type=email], input[type=password] { width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
button { font: inherit; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
button.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
button.link { border: 0; background: none; color: #187cc0; padding: 0; text-decoration: underline; }
.row { display: flex; gap: 8px; margin-top: 8px; }
.error { color: var(--danger); margin: 4px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.flash { padding: 10px 14px; border-radius: 6px; background: #eaf5fc; border: 1px solid #b8dff4; margin-bottom: 16px; }
.flash.error { background: #fdecea; border-color: #f5c2bd; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 18px; text-decoration: none; color: var(--navy); display: flex; flex-direction: column; gap: 4px; }
.tile span { color: var(--muted); }
.scroll { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--navy); color: #fff; text-align: left; font-weight: 600; font-size: 13px; padding: 10px; white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:nth-child(even) td { background: #f7f9fb; }
.num { text-align: right; }
.nowrap { white-space: nowrap; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); }
.tag.paid { color: var(--ok); border-color: var(--ok); }
.tag.overdue, .overdue { color: var(--danger); border-color: var(--danger); }
.tag.open { color: var(--warn); border-color: var(--warn); }
/* shipment status boxes on the Jobs page (owner 2026-11-16): one box per row, the release note on its own line */
.jobs-table th, .jobs-table td { padding-left: 7px; padding-right: 7px; }
.ship-cell { white-space: nowrap; vertical-align: top; min-width: 112px; }
.ship { display: inline-block; font-size: 12px; font-weight: 600; line-height: 18px; padding: 1px 9px; border-radius: 5px; border: 1px solid; white-space: nowrap; }
.ship-booked { color: #475467; background: #f2f4f7; border-color: #c9ced6; }
.ship-loaded { color: #8a4b00; background: #fff4e0; border-color: #f2c27a; }
.ship-departed { color: #1e4fa8; background: #e8f0fd; border-color: #a9c3f1; }
.ship-released { color: #146c3f; background: #e6f6ec; border-color: #96d4b0; }
.ship-note { display: block; color: var(--muted); font-size: 11px; line-height: 15px; margin-top: 3px; white-space: nowrap; }
@media (max-width: 640px) { header.top { padding: 10px 16px; } .who span { display: none; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 16px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.filters input[type=search] { flex: 1 1 220px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.filters label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; }
.filters input[type=date], .filters select { padding: 7px 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; background: #fff; }
td.notes { min-width: 200px; max-width: 360px; }

/* ---- refresh 2026-11-14: blue text, brand fonts, light motion ---- */
h1, h2, h3, .brand, th, button, .tile strong { font-family: "Montserrat", "Segoe UI", Arial, sans-serif; }
h1 { color: var(--deep); font-weight: 800; letter-spacing: -.01em; }
td { color: var(--text); }
.brand span { color: var(--deep); font-weight: 700; }
.brand small { display: block; font: 500 12px "Inter", Arial, sans-serif; color: var(--muted); }
header nav a { position: relative; color: var(--deep); }
header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--blue);
  transition: right .25s ease; }
header nav a:hover::after { right: 0; }
button.primary { background: var(--deep); border-color: var(--deep); transition: transform .2s ease, box-shadow .2s ease, background .2s; }
button.primary:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 79, 135, .2); }
th { background: var(--deep); }
tbody tr { transition: background .15s; }
tbody tr:hover td { background: #e9f4fb; }
.tile { transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
a.tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 79, 135, .12); border-color: rgba(41, 163, 221, .5); }
.tile strong { color: var(--deep); font-size: 17px; }

/* welcome banner on the home page */
.welcome { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(115deg, #0f2f4f 0%, var(--deep) 55%, var(--blue) 130%); color: #fff; border-radius: 14px;
  padding: 26px 28px; margin-bottom: 22px; }
.welcome h1 { color: #fff; margin: 0 0 6px; font-size: 26px; }
.welcome p { margin: 0; color: rgba(255, 255, 255, .85); }
.welcome img { width: 230px; max-width: 40%; flex-shrink: 0; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .25)); }
.welcome img, .card-art { animation: sail 5s ease-in-out infinite; }
@keyframes sail { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-1deg); } }
.card-art { display: block; width: 180px; margin: -8px auto 8px; }

/* content arrives softly */
main > * { animation: rise .55s ease both; }
main > *:nth-child(2) { animation-delay: .06s; }
main > *:nth-child(3) { animation-delay: .12s; }
main > *:nth-child(4) { animation-delay: .18s; }
.cards .tile { animation: rise .5s ease both; }
.cards .tile:nth-child(2) { animation-delay: .08s; }
.cards .tile:nth-child(3) { animation-delay: .16s; }
.cards .tile:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .welcome img { display: none; } .welcome { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* wide tables fit the page (owner 2026-11-14: the invoices table ran off the right edge) */
main { max-width: 1380px; }
table { font-size: 14px; }
th, td { padding: 9px 10px; }
td.notes { min-width: 140px; max-width: 240px; overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  table { font-size: 13px; }
  th, td { padding: 8px 7px; }
  td.notes { max-width: 180px; }
}

/* performance page (owner 2026-11-15): KPI tiles and server-drawn SVG charts */
.perf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.year-pick { display: flex; align-items: center; gap: 8px; }
.year-pick select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 14px 0 18px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi strong { color: var(--deep); font-size: 30px; font-weight: 800; line-height: 1.2; }
.kpi strong.up { color: var(--ok); }
.kpi strong.down { color: var(--danger); }
.kpi small { color: var(--muted); }
.chart-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.chart-card h2 { margin: 0 0 6px; font-size: 17px; color: var(--deep); }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-card summary { cursor: pointer; font-weight: 700; color: var(--deep); }
.chart-card details[open] summary, details.chart-card[open] summary { margin-bottom: 10px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 6px; padding: 0; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
svg .grid { stroke: #e6edf4; stroke-width: 1; }
svg .axis { stroke: #b9c9d8; stroke-width: 1; }
svg .tick { fill: var(--muted); font-size: 12px; }
svg .val { fill: var(--text); font-size: 12px; font-weight: 600; }
svg .pod { fill: var(--text); font-size: 13px; }
svg .bar { transition: opacity .15s; }
svg .bar:hover { opacity: .75; }
td.num, th.num { text-align: right; }

/* chart animation (owner 2026-11-15): bars grow from the baseline month by month, numbers fade in after */
.sw-20, .sw-this { background: #2a78d6; } .sw-40, .sw-last { background: #eb6834; } .sw-Other { background: #1baf7a; }
svg .grow, svg .hgrow { transform-box: fill-box; }
svg .grow { transform-origin: 50% 100%; animation: bar-up .7s cubic-bezier(.2, .8, .2, 1) both; }
svg .hgrow { transform-origin: 0 50%; animation: bar-right .8s cubic-bezier(.2, .8, .2, 1) both; }
svg .pop { animation: val-in .4s ease both; animation-delay: .55s; }
@keyframes bar-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bar-right { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes val-in { from { opacity: 0; } to { opacity: 1; } }
svg .m0 { animation-delay: 0.00s; } svg .pop.m0 { animation-delay: 0.55s; }
svg .m1 { animation-delay: 0.05s; } svg .pop.m1 { animation-delay: 0.60s; }
svg .m2 { animation-delay: 0.10s; } svg .pop.m2 { animation-delay: 0.65s; }
svg .m3 { animation-delay: 0.15s; } svg .pop.m3 { animation-delay: 0.70s; }
svg .m4 { animation-delay: 0.20s; } svg .pop.m4 { animation-delay: 0.75s; }
svg .m5 { animation-delay: 0.25s; } svg .pop.m5 { animation-delay: 0.80s; }
svg .m6 { animation-delay: 0.30s; } svg .pop.m6 { animation-delay: 0.85s; }
svg .m7 { animation-delay: 0.35s; } svg .pop.m7 { animation-delay: 0.90s; }
svg .m8 { animation-delay: 0.40s; } svg .pop.m8 { animation-delay: 0.95s; }
svg .m9 { animation-delay: 0.45s; } svg .pop.m9 { animation-delay: 1.00s; }
svg .m10 { animation-delay: 0.50s; } svg .pop.m10 { animation-delay: 1.05s; }
svg .m11 { animation-delay: 0.55s; } svg .pop.m11 { animation-delay: 1.10s; }

/* light motion across the portal (owner 2026-11-15) */
header.top { animation: drop-in .5s ease both; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
tbody tr { animation: row-in .45s ease both; }
tbody tr:nth-child(1) { animation-delay: .10s; } tbody tr:nth-child(2) { animation-delay: .14s; }
tbody tr:nth-child(3) { animation-delay: .18s; } tbody tr:nth-child(4) { animation-delay: .22s; }
tbody tr:nth-child(5) { animation-delay: .26s; } tbody tr:nth-child(6) { animation-delay: .30s; }
tbody tr:nth-child(7) { animation-delay: .34s; } tbody tr:nth-child(8) { animation-delay: .38s; }
tbody tr:nth-child(n+9) { animation-delay: .42s; }
@keyframes row-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.kpi { animation: rise .5s ease both; transition: transform .25s ease, box-shadow .25s ease; }
.kpi:nth-child(2) { animation-delay: .08s; } .kpi:nth-child(3) { animation-delay: .16s; } .kpi:nth-child(4) { animation-delay: .24s; }
.kpi:hover, .chart-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 79, 135, .10); }
.chart-card { transition: transform .25s ease, box-shadow .25s ease; }
.flash { animation: rise .45s ease both; }
input, select, textarea { transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(41, 163, 221, .18); }
button { transition: transform .15s ease, background .2s, box-shadow .2s; }
button:active { transform: scale(.97); }
a { transition: color .2s; }

/* animated company logo (owner 2026-11-15): replaces the ship picture on home, sign-in, sign-up and waiting */
.welcome .logo-badge { position: relative; flex-shrink: 0; width: 240px; max-width: 40%; padding: 16px 18px 10px; background: #fff;
  border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); animation: sail 6s ease-in-out infinite;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; overflow: visible; }
.welcome .logo-badge:hover { transform: translateY(-6px) scale(1.04) rotate(-1deg); box-shadow: 0 26px 50px rgba(0, 0, 0, .32); animation-play-state: paused; }
.logo-badge .ring { position: absolute; inset: -10px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 24px;
  animation: ring 3.2s ease-out infinite; pointer-events: none; }
.logo-badge .ring.r2 { animation-delay: 1.6s; }
@keyframes ring { from { opacity: .8; transform: scale(.94); } to { opacity: 0; transform: scale(1.18); } }
.logo-badge .shine { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; pointer-events: none; }
.logo-badge .shine::before { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(41, 163, 221, .22), transparent); transform: skewX(-18deg);
  animation: shine 6s ease-in-out 2s infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.welcome img { display: none; }
.card-art { display: block; width: 190px; margin: -6px auto 10px; animation: none; transition: transform .35s ease; }
.card-art:hover { transform: scale(1.05); }
svg.logo-anim { display: block; width: 100%; height: auto; overflow: visible; }
.logo-anim .la-top, .logo-anim .la-bar { fill: #29a3dd; transform-box: fill-box; }
.logo-anim .la-top { transform-origin: 50% 50%; animation: la-top .6s cubic-bezier(.2, .8, .2, 1) both; }
.logo-anim .la-bar { transform-origin: 50% 0; animation: la-bar .55s cubic-bezier(.2, .9, .3, 1.2) both; }
.logo-anim text { font-family: "Montserrat", "Inter", Arial, sans-serif; fill: #111; }
.logo-anim .la-word { font-size: 92px; letter-spacing: 1px; animation: la-in .6s ease 1.05s both; }
.logo-anim .la-teu { font-weight: 800; }
.logo-anim .la-trans { font-weight: 400; }
.logo-anim .la-tag { font-family: "Inter", Arial, sans-serif; font-size: 40px; fill: #222; animation: la-in .6s ease 1.35s both; }
@keyframes la-top { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes la-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes la-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes la-wave { 0%, 100% { transform: scaleY(1); } 40% { transform: scaleY(.72); } 70% { transform: scaleY(1.06); } }
.logo-anim:hover .la-bar, .logo-badge:hover .la-bar { animation: la-wave .7s ease-in-out both; }
.logo-anim:hover .la-top, .logo-badge:hover .la-top { fill: #004f87; transition: fill .3s; }
.logo-anim .b0 { animation-delay: 0.35s; } .logo-anim:hover .b0, .logo-badge:hover .b0 { animation-delay: 0.00s; }
.logo-anim .b1 { animation-delay: 0.40s; } .logo-anim:hover .b1, .logo-badge:hover .b1 { animation-delay: 0.04s; }
.logo-anim .b2 { animation-delay: 0.45s; } .logo-anim:hover .b2, .logo-badge:hover .b2 { animation-delay: 0.08s; }
.logo-anim .b3 { animation-delay: 0.50s; } .logo-anim:hover .b3, .logo-badge:hover .b3 { animation-delay: 0.12s; }
.logo-anim .b4 { animation-delay: 0.55s; } .logo-anim:hover .b4, .logo-badge:hover .b4 { animation-delay: 0.16s; }
.logo-anim .b5 { animation-delay: 0.60s; } .logo-anim:hover .b5, .logo-badge:hover .b5 { animation-delay: 0.20s; }
.logo-anim .b6 { animation-delay: 0.65s; } .logo-anim:hover .b6, .logo-badge:hover .b6 { animation-delay: 0.24s; }
.logo-anim .b7 { animation-delay: 0.70s; } .logo-anim:hover .b7, .logo-badge:hover .b7 { animation-delay: 0.28s; }
.logo-anim .b8 { animation-delay: 0.75s; } .logo-anim:hover .b8, .logo-badge:hover .b8 { animation-delay: 0.32s; }
.logo-anim .b9 { animation-delay: 0.80s; } .logo-anim:hover .b9, .logo-badge:hover .b9 { animation-delay: 0.36s; }
.logo-anim .b10 { animation-delay: 0.85s; } .logo-anim:hover .b10, .logo-badge:hover .b10 { animation-delay: 0.40s; }
.logo-anim .b11 { animation-delay: 0.90s; } .logo-anim:hover .b11, .logo-badge:hover .b11 { animation-delay: 0.44s; }
.logo-anim .b12 { animation-delay: 0.95s; } .logo-anim:hover .b12, .logo-badge:hover .b12 { animation-delay: 0.48s; }
@media (max-width: 640px) { .welcome .logo-badge { display: none; } }
