/* FreightBridge Trucking Marketplace — DreamHost theme update
   Page: white | Blocks: silver, light blue, light green | Text: navy
   Replace public/assets/style.css with this file (rename it to style.css).
*/

:root {
  color-scheme: light;
  --navy: #142f50;
  --navy-dark: #0d2441;
  --navy-soft: #405b76;
  --white: #ffffff;
  --silver: #eef1f4;
  --silver-deep: #e2e8ee;
  --light-blue: #e7f3ff;
  --blue-deep: #d4e9fa;
  --light-green: #e8f6ec;
  --green-deep: #d3ebdb;
  --bg: #ffffff;
  --line: #d3dde7;
  --muted: #4f6780;
  --link: #174e7c;
  --focus: #286899;
  --shadow: 0 5px 16px rgba(20,47,80,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6, strong, label { color: var(--navy-dark); }
h1 { font-size: 30px; line-height: 1.2; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--navy-dark); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Navigation: silver background and navy lettering */
nav {
  background: var(--silver);
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(20,47,80,.04);
}
nav .wrap {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  flex-wrap: wrap;
  padding: 9px 0;
}
nav a { color: var(--navy); font-weight: 700; margin-right: 14px; }
nav a:hover { color: #21618b; }
nav .brand { font-size: 21px; color: var(--navy-dark); font-weight: 850; }
nav .brand span { color: var(--navy-dark); }
nav .brand { display: inline-flex; align-items: center; line-height: 0; flex-shrink: 0; }
nav .brand:hover { text-decoration: none; opacity: .9; }
.brand-logo { display: block; height: 38px; width: auto; max-width: 62vw; }
.site-nav > .wrap { padding-left: 16px; padding-right: 16px; }
.brand-logo-dark { display: none; }
.tms-theme .brand-logo-light { display: none; }
.tms-theme .brand-logo-dark { display: block; }
@media (max-width: 560px) { .brand-logo { height: 30px; } }
.wrap { max-width: 1120px; margin: auto; padding: 0 20px; }
main.wrap { padding-top: 30px; padding-bottom: 60px; min-height: 75vh; }

/* Homepage hero: light-blue block, all text navy */
.hero {
  padding: 58px 36px;
  color: var(--navy);
  background: linear-gradient(125deg, #eff8ff 0%, var(--light-blue) 58%, #e1f4ed 100%);
  border: 1px solid #cce2ef;
  border-left: 5px solid #719bb7;
  border-radius: 16px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.hero h1 { font-size: 38px; line-height: 1.16; max-width: 770px; margin: 0 0 14px; color: var(--navy-dark); }
.hero p { font-size: 17px; max-width: 680px; color: var(--navy-soft); }
.eyebrow { color: var(--navy); text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .09em; }

/* Buttons: light-toned fills with navy lettering */
.btn {
  background: #dceefa;
  border: 1px solid #a8c9e1;
  color: var(--navy-dark);
  cursor: pointer;
  border-radius: 9px;
  padding: 10px 17px;
  font: inherit;
  font-weight: 750;
  display: inline-block;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover {
  background: #c5e4f8;
  border-color: #7fafce;
  color: var(--navy-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn.secondary { background: var(--white); border-color: #aebdcc; color: var(--navy); }
.btn.secondary:hover { background: var(--silver); }
.btn.small { font-size: 13px; padding: 7px 10px; }

/* Repeating silver, blue and green content blocks */
.panel, .stat, .loadcard {
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.panel { background: var(--silver); padding: 24px; margin: 17px 0; }
.panel:nth-of-type(3n + 2) { background: var(--light-blue); }
.panel:nth-of-type(3n + 3) { background: var(--light-green); }
.panel h2, .panel h3 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.stat { background: var(--silver); padding: 21px; }
.stat:nth-child(3n + 2) { background: var(--light-blue); border-color: #c8e0f0; }
.stat:nth-child(3n + 3) { background: var(--light-green); border-color: #c9e4d3; }
.stat strong { font-size: 28px; display: block; color: var(--navy-dark); }
.stat span { color: var(--navy-soft); }
.stat p, .loadcard p, .panel p { color: var(--navy-soft); }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.loadcard { background: var(--silver); padding: 18px; }
.loadcard:nth-child(3n + 2) { background: var(--light-blue); border-color: #c8e0f0; }
.loadcard:nth-child(3n + 3) { background: var(--light-green); border-color: #c9e4d3; }
.loadcard p { margin: 5px 0; }
.route { font-weight: 750; color: var(--navy-dark); }
.muted { color: var(--muted) !important; }

/* Forms */
form.inline { display: inline; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
label { font-weight: 700; }
input, select, textarea {
  border-radius: 8px;
  border: 1px solid #b8c9d8;
  padding: 11px;
  font: inherit;
  color: var(--navy-dark);
  background: var(--white);
  max-width: 100%;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: #667d95; }
textarea { min-height: 96px; }
input:focus, select:focus, textarea:focus { border-color: #6e9cbe; }
.actions { margin-top: 13px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

/* Notices and load status pills */
.notice { padding: 12px 15px; border-radius: 9px; background: var(--light-green); color: var(--navy-dark); border: 1px solid #badbc8; margin-bottom: 18px; }
.notice.error { background: #fff0ef; border-color: #e9c2bf; color: #8d2b2b; }
.notice.warning { background: #f1f3f6; border-color: #d5dfe7; color: var(--navy); }
.pill { display: inline-block; font-size: 12px; padding: 4px 9px; background: var(--silver-deep); color: var(--navy); border-radius: 999px; font-weight: 750; }
.pill.open, .pill.approved, .pill.active, .pill.accepted, .pill.delivered { background: #d3efdc; color: var(--navy-dark); }
.pill.pending, .pill.booked, .pill.in_transit { background: #dbeefa; color: var(--navy-dark); }
.pill.rejected, .pill.cancelled { background: #fce9e9; color: #853333; }

/* Data tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: white; }
table { border-collapse: collapse; width: 100%; min-width: 660px; background: var(--white); }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--navy); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--navy-dark); background: var(--light-blue); }
tbody tr:nth-child(even), table tr:nth-child(even) { background: #f5f7f9; }
tbody tr:hover, table tr:hover { background: #edf8f0; }
.tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.footer { border-top: 1px solid var(--line); background: var(--silver); padding: 20px 0; color: var(--navy-soft); font-size: 13px; }
.w-small { max-width: 620px; }
.pad-top { margin-top: 22px; }
.footnote { font-size: 12px; color: var(--muted); }
.highlight { font-weight: 750; color: var(--navy-dark); }

@media (max-width: 700px) {
  .grid, .grid.two, .form-grid, .cards { grid-template-columns: 1fr; }
  .hero { padding: 30px 20px; }
  .hero h1 { font-size: 29px; }
  nav .wrap { display: block; }
  nav .links { margin-top: 10px; }
  nav .links a { display: inline-block; margin-bottom: 6px; }
  main.wrap { padding-top: 16px; }
  .panel { padding: 17px; }
}

/* ===============================
   FreightBridge homepage banner
   =============================== */
main.wrap.home-main {
  max-width: 1640px;
  padding-top: 16px;
  padding-bottom: 54px;
}
.home-landing { width: 100%; }
.home-inner { max-width: 1120px; margin: 0 auto; }
.home-banner {
  overflow: hidden;
  border: 1px solid #d3dde7;
  border-radius: 18px;
  background: #f2f8fc;
  box-shadow: 0 10px 30px rgba(20, 47, 80, .09);
}
.home-banner-image, .home-banner-image img { display: block; width: 100%; }
.home-banner-image img { height: auto; }
.home-banner-mobile { display: none; }
.home-actionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 23px 0 48px;
  padding: 24px 30px;
  border: 1px solid #d4e3eb;
  border-radius: 14px;
  background: linear-gradient(105deg, #eef1f4, #e7f3ff 65%, #e8f6ec);
}
.home-actionbar h2 { font-size: 23px; margin: 0 0 5px; }
.home-actionbar p { margin: 0; color: var(--navy-soft); }
.home-actions { display:flex; gap: 10px; flex-shrink:0; flex-wrap:wrap; }
.home-actions .btn { text-align:center; }
.home-section { margin: 42px 0 48px; }
.home-section-heading { margin: 0 0 20px; }
.home-section-heading h2 { font-size: 28px; margin: 6px 0 7px; }
.home-section-heading p { color: var(--navy-soft); margin: 0; }
.home-feature-grid {
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.home-feature {
  border: 1px solid #d8e1e9;
  border-radius: 13px;
  padding: 24px 20px;
  box-shadow: 0 5px 15px rgba(20,47,80,.035);
  min-height: 209px;
}
.home-feature.silver { background:#eef1f4; }
.home-feature.blue { background:#e7f3ff; border-color:#cbdfea; }
.home-feature.green { background:#e8f6ec; border-color:#c9e4d3; }
.home-feature-index { font-size:11px; letter-spacing:.09em; font-weight:800; color:#3e6587; }
.home-feature h3 { margin: 13px 0 8px; font-size:20px; }
.home-feature p { margin: 0; color:var(--navy-soft); }
.home-steps { padding: 20px 0 26px; }
.home-step-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px; }
.home-step-grid > div { padding:18px 18px 20px; border-top:2px solid #b7d5e5; background:#fff; }
.home-step-grid span {
  display:inline-flex; align-items:center; justify-content:center;
  width:34px;height:34px;border-radius:50%;background:#e8f6ec;color:#142f50;
  font-weight:850;
}
.home-step-grid h3 { margin:12px 0 6px; font-size:17px; }
.home-step-grid p { color:var(--navy-soft);margin:0; }
.home-prototype-note { margin-top:20px; }
@media (max-width: 960px) {
  .home-actionbar { flex-direction:column; align-items:flex-start; }
  .home-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  main.wrap.home-main { padding: 12px 14px 40px; }
  .home-banner { border-radius:12px; }
  .home-banner-image { display:none; } /* Image text would be too small on phones. */
  .home-banner-mobile { display:block; }
  .home-banner-mobile-copy {
    background:linear-gradient(140deg,#fff 0%,#e7f3ff 75%,#e8f6ec 100%);
    padding:24px 20px 18px;
  }
  .home-banner-mobile-copy h1 { font-size:36px; line-height:1.1; margin:10px 0; color:#142f50; }
  .home-banner-mobile-copy h2 { font-size:19px; line-height:1.3; margin:0 0 12px; }
  .home-banner-mobile-copy p { margin:0; font-size:14px; font-weight:650; }
  .home-banner-mobile img {
    display:block;width:100%;height:185px;object-fit:cover;object-position:75% center;
  }
  .home-actionbar { margin: 18px 0 30px; padding: 20px 16px; gap:18px; }
  .home-actionbar h2 {font-size:20px;}
  .home-actions {width:100%;}
  .home-actions .btn { flex:1 1 auto; }
  .home-section-heading h2 {font-size:24px;}
  .home-feature-grid, .home-step-grid {grid-template-columns:1fr;}
  .home-feature {min-height:0; padding:20px;}
  .home-step-grid {gap:4px;}
}

/* ===============================
   FreightBridge Fleet workspace (TMS)
   Same palette: white page, silver / light-blue / light-green blocks, navy text
   =============================== */
nav a.current { color: #21618b; text-decoration: underline; text-underline-offset: 6px; }
main.wrap.fleet-main { max-width: 1320px; padding-top: 22px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.small { font-size: 13px; }
code { background: var(--light-blue); border: 1px solid #c8e0f0; border-radius: 6px; padding: 2px 7px; font-size: 14px; color: var(--navy-dark); }

.fleet-layout { display: grid; grid-template-columns: 236px minmax(0,1fr); gap: 28px; align-items: start; }
.fleet-side { position: sticky; top: 16px; background: var(--silver); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.fleet-me { display: flex; gap: 11px; align-items: center; padding: 16px; background: linear-gradient(120deg, #e7f3ff, #e8f6ec); border-bottom: 1px solid var(--line); }
.fleet-me strong { display: block; font-size: 15px; line-height: 1.25; }
.fleet-me small { display: block; color: var(--navy-soft); font-size: 12px; margin-top: 3px; }
.fleet-me .pill.role { margin-top: 4px; background: var(--white); border: 1px solid #c8d8e6; font-size: 11px; padding: 2px 8px; }
.avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .03em; }
.fleet-nav { display: flex; flex-direction: column; padding: 8px; }
.fleet-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; color: var(--navy); font-weight: 500; margin: 0; }
.fleet-nav a:hover { background: var(--white); text-decoration: none; color: var(--navy-dark); }
.fleet-nav a.active { background: var(--white); color: var(--navy-dark); box-shadow: inset 3px 0 0 #3e78a6, 0 1px 3px rgba(20,47,80,.06); }
.ico { width: 19px; height: 19px; flex: 0 0 19px; color: #3e6587; }
.fleet-nav a.active .ico { color: var(--navy-dark); }
.fleet-content { min-width: 0; }
.fleet-content > a:first-child { display: inline-block; margin-bottom: 4px; font-size: 14px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 4px 0 4px; }
.page-head p { margin: 0; }
.section-title { font-size: 17px; margin: 28px 0 8px; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 6px 0 18px; }
.stats.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.stats.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
a.stat { display: block; color: var(--navy); transition: transform .15s ease, border-color .15s ease; }
a.stat:hover { text-decoration: none; transform: translateY(-2px); border-color: #9fc2dc; }
.stat strong.warn { color: #9a5b00; }
.stat strong.bad { color: #a12f2f; }
.stat strong.good { color: #1d6b3d; }
.stat strong.info { color: #1f5e8f; }
.stats .stat strong { font-size: 26px; line-height: 1.2; }
.stats .stat span { font-size: 14px; }

.panel.callout { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; background: var(--light-blue); }
.panel.callout p { margin: 0; color: var(--navy-dark); }
.panel.empty { text-align: center; color: var(--muted); padding: 22px; }

/* Row lists (loads, trucks, users…) */
.panel.list { padding: 0; background: var(--white) !important; overflow: hidden; }
.list .row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list .row:last-child { border-bottom: 0; }
.list .row:nth-child(even) { background: #f7f9fb; }
.list a.link-row { color: var(--navy); }
.list a.link-row:hover { background: #edf8f0; text-decoration: none; }
.row-main { min-width: 220px; flex: 1 1 300px; }
.row-main strong { color: var(--navy-dark); }
.row-main small { display: block; color: var(--navy-soft); font-size: 13px; margin-top: 2px; }
.row-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.row-links { display: inline-flex; gap: 12px; align-items: center; margin-left: 4px; font-size: 14px; }
.ref { color: #1f5e8f; font-weight: 800; }
.muted-list .row { color: var(--muted); padding: 10px 18px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form select, .inline-form input { width: auto; padding: 7px 9px; font-size: 14px; }
.inline-form input.narrow { width: 86px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--link); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: #a33a3a; }

/* Filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid #c3d3e1; background: var(--white); color: var(--navy); font-size: 14px; font-weight: 500; }
.chip:hover { background: var(--silver); text-decoration: none; color: var(--navy-dark); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Forms */
.form-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-row .field { margin-bottom: 0; }
.form-row .field.grow { flex: 1 1 220px; }
.form-row input[type=date] { width: 170px; }
fieldset.radios { border: 0; padding: 0; margin: 0 0 12px; display: flex; gap: 18px; flex-wrap: wrap; }
fieldset.radios label, label.check { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
fieldset.radios input, label.check input { width: auto; }
label.check { margin: 6px 0 12px; align-items: flex-start; }
label.check input { margin-top: 5px; }
.note-form { display: flex; gap: 8px; margin-bottom: 14px; }
.btn.wide { width: 100%; text-align: center; }
.pill.pending, .pill.dispatched, .pill.reviewing, .pill.new, .pill.scheduled { background: #fbeccd; color: #6b4300; }
.pill.in_transit { background: #dbeefa; color: var(--navy-dark); }
.pill.needs_info { background: #fde2c8; color: #7a3d00; }
.pill.hired, .pill.paid, .pill.reimbursed, .pill.completed { background: #d3efdc; color: #174f2e; }
.pill.finalized { background: #dbeefa; color: var(--navy-dark); }
.pill.withdrawn, .pill.inactive, .pill.draft { background: var(--silver-deep); color: var(--navy-soft); }
.pill.in_shop { background: #fbeccd; color: #6b4300; }

dl.facts { display: grid; grid-template-columns: 1fr; gap: 9px; margin: 0; }
dl.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 10px; }
dl.facts dt { font-weight: 700; color: var(--navy-dark); }
dl.facts dd { margin: 0; color: var(--navy-soft); }

table.compact { min-width: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot th { background: var(--light-green); font-size: 14px; }
ol.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid #c8dcea; }
ol.timeline li { position: relative; padding: 0 0 14px 8px; color: var(--navy); }
ol.timeline li::before { content: ""; position: absolute; left: -23px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #3e78a6; }
ol.timeline .when { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }

.quarter-nav, .cal-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 14px; }
.cal-nav > div { text-align: center; }
.cal-nav strong { display: block; font-size: 18px; }

/* Calendar */
.cal-panel { background: var(--white) !important; padding: 14px; }
.cal { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.cal-head div { background: var(--light-blue); text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 7px 0; color: var(--navy-dark); }
.cal-cell { min-height: 96px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); padding: 5px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-row > .cal-cell:last-child { border-right: 0; }
.cal-cell.blank { background: #f8fafb; }
.cal-cell.period { box-shadow: inset 0 0 0 2px #bcd3e4; background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(62,120,166,.05) 8px 10px); }
.cal-cell.today { background: var(--light-green); }
.cal-cell.today .dnum { background: var(--navy); color: #fff; }
.dnum { align-self: flex-start; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 1px 7px; color: var(--navy-dark); }
.ev { display: block; font-size: 11.5px; line-height: 1.3; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--navy-dark); }
a.ev:hover { text-decoration: none; filter: brightness(.96); }
.ev.pickup { background: #fbeccd; border-left: 3px solid #d08a1a; }
.ev.delivery { background: #dbeefa; border-left: 3px solid #3e78a6; }
.ev.driving { background: #d3efdc; border-left: 3px solid #2e8a52; }
.ev.more { color: var(--muted); padding-left: 2px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.legend .ev { display: inline-block; }
.lg-period { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 5px; border: 2px dashed #9fbdd3; }

/* Work with us / applications */
.apply-hero { max-width: 640px; margin: 20px auto 10px; text-align: center; padding: 34px 28px; background: linear-gradient(140deg, #fff 0%, #e7f3ff 70%, #e8f6ec 100%); border: 1px solid #d4e3eb; border-radius: 16px; box-shadow: var(--shadow); }
.apply-hero h1 { font-size: 34px; margin: 8px 0 10px; }
.apply-hero p { color: var(--navy-soft); }
.apply-choices { display: grid; gap: 12px; margin-top: 22px; }
.choice { display: block; padding: 16px 20px; border-radius: 12px; background: #dceefa; border: 1px solid #a8c9e1; color: var(--navy-dark); text-align: left; transition: transform .15s ease, background-color .15s ease; }
.choice:hover { background: #c5e4f8; text-decoration: none; transform: translateY(-1px); color: var(--navy-dark); }
.choice strong { display: block; font-size: 17px; }
.choice span { color: var(--navy-soft); font-size: 14px; }
.choice.ghost { background: var(--white); border-color: #c3d3e1; }
.apply-pick { text-align: left; margin-top: 18px; }
.apply-form { max-width: 820px; margin: 0 auto; }
.apply-form h1 { margin: 6px 0 6px; }
.form-section { font-size: 18px; margin: 26px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--light-blue); }
.center-panel { margin: 24px auto; }

@media (max-width: 960px) {
  .fleet-layout { grid-template-columns: 1fr; gap: 14px; }
  .fleet-side { position: static; }
  .fleet-me { padding: 12px 14px; }
  .fleet-nav { flex-direction: row; overflow-x: auto; gap: 4px; padding: 6px; scrollbar-width: thin; }
  .fleet-nav a { flex: 0 0 auto; padding: 8px 11px; }
  .fleet-nav a.active { box-shadow: inset 0 -3px 0 #3e78a6; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  main.wrap.fleet-main { padding: 12px 14px 40px; }
  .stats, .stats.three, .stats.two, .form-grid.three { grid-template-columns: 1fr 1fr; }
  .form-grid.three { grid-template-columns: 1fr; }
  .row-side { justify-content: flex-start; }
  .inline-form select { max-width: 100%; }
  .cal-cell { min-height: 64px; padding: 3px; }
  .ev { font-size: 0; padding: 0; height: 6px; border-left-width: 0; }
  .ev.more { display: none; }
  .legend .ev { font-size: 11.5px; height: auto; padding: 2px 6px; }
  dl.facts div { grid-template-columns: 1fr; gap: 0; }
  .apply-hero { padding: 24px 16px; }
  .apply-hero h1 { font-size: 28px; }
}

/* Fleet workspace and account entry screens */
.tms-theme {
  color-scheme: dark;
  --navy: #e2ebf6;
  --navy-dark: #f5f8fc;
  --navy-soft: #b4c3d6;
  --white: #161f2d;
  --silver: #192435;
  --silver-deep: #26364b;
  --light-blue: #203149;
  --light-green: #183832;
  --line: #32435a;
  --muted: #aabbd0;
  --link: #ffbf63;
  --focus: #ffd090;
  --shadow: 0 8px 24px rgb(0 0 0 / 18%);
  --amber: #f5b44f;
  --on-amber: #201608;
  background: #101722;
}

.tms-theme .site-nav a:hover,
.tms-theme .site-nav a.current { color: var(--link); }

.tms-theme .panel,
.tms-theme .stat { background: var(--white); border-color: var(--line); }
.tms-theme .panel.callout { background: var(--light-blue); }

.tms-theme .btn,
.tms-theme .choice {
  background: var(--amber);
  color: var(--on-amber);
  border-color: var(--amber);
}
.tms-theme .btn:hover,
.tms-theme .choice:hover { background: #ffcb7a; color: var(--on-amber); }
.tms-theme .btn.secondary,
.tms-theme .choice.ghost {
  background: var(--silver);
  border-color: var(--line);
  color: var(--navy);
}
.tms-theme .btn.secondary:hover,
.tms-theme .choice.ghost:hover { background: var(--silver-deep); }
.tms-theme .choice strong,
.tms-theme .choice span { color: inherit; }

.tms-theme :is(input, select, textarea) {
  background: #121b29;
  border-color: #506078;
  accent-color: var(--amber);
  min-width: 0;
}
.tms-theme :is(input, textarea)::placeholder { color: #a1b0c4; }
.tms-theme input[type=file]::file-selector-button {
  background: var(--amber);
  color: var(--on-amber);
  border: 0;
  border-radius: 5px;
  margin-right: 10px;
  padding: 5px 9px;
  font: inherit;
  cursor: pointer;
}

.tms-theme .notice { border-color: var(--line); }
.tms-theme .notice.error { color: #ffc2bd; background: #44242b; }
.tms-theme .notice.warning { background: #392d1d; }
.tms-theme .pill { background: var(--silver-deep); color: var(--navy); }
.tms-theme .pill:is(.pending, .dispatched, .reviewing, .new, .scheduled, .needs_info, .in_shop) {
  background: #47341e;
  color: #ffd28a;
}
.tms-theme .pill:is(.open, .approved, .active, .accepted, .delivered, .hired, .paid, .reimbursed, .completed) {
  background: var(--light-green);
  color: #a2ecd2;
}
.tms-theme .pill:is(.rejected, .cancelled) { background: #44242b; color: #ffc2bd; }

.tms-theme .stat strong.warn, .tms-theme .ref { color: var(--link); }
.tms-theme .stat strong.good { color: #72dfbd; }
.tms-theme .stat strong.info { color: #94caff; }
.tms-theme .stat strong.bad, .tms-theme .linkbtn.danger { color: #ffa6a3; }
.tms-theme .table-wrap, .tms-theme .cal-cell.blank { background: var(--white); }
.tms-theme tr:nth-child(even),
.tms-theme .list .row:nth-child(even) { background: var(--silver); }
.tms-theme tr:hover,
.tms-theme .list a.link-row:hover { background: var(--light-blue); }
.tms-theme .ev.pickup { background: #47341e; }
.tms-theme .ev.delivery { background: var(--light-blue); }
.tms-theme .ev.driving { background: var(--light-green); }
.tms-theme .cal-cell.today { background: #47341e; }
.tms-theme .cal-cell.today .dnum { background: var(--amber); color: var(--on-amber); }
.tms-theme .chip { border-color: var(--line); }
.tms-theme .chip.on { background: #47341e; color: #ffd28a; border-color: #a67438; }

.tms-theme .fleet-me { background: var(--light-blue); overflow-wrap: anywhere; }
.tms-theme .fleet-me .pill.role { border-color: var(--line); color: var(--link); }
.tms-theme .avatar { background: var(--amber); color: var(--on-amber); }
.tms-theme .fleet-nav { border: 0; box-shadow: none; }
.tms-theme .fleet-nav .ico { color: var(--navy-soft); }
.tms-theme .fleet-nav a.active {
  background: #392f22;
  color: var(--link);
  box-shadow: inset 3px 0 var(--amber);
}
.tms-theme .fleet-nav a.active .ico { color: inherit; }
.fleet-menu { display: none; }

.tms-entry .apply-hero { background: var(--white); border-color: var(--line); }
.tms-entry .eyebrow, .tms-entry .form-section { color: var(--link); }
.tms-entry .apply-form { max-width: 740px; }
.tms-entry .apply-choices { max-width: 440px; margin-inline: auto; }
.tms-entry .choice { text-align: center; }

@media (max-width: 960px) {
  .fleet-menu.ready { display: block; justify-self: start; }
  .fleet-menu.ready[aria-expanded=false] + .fleet-side { display: none; }
  .tms-theme .fleet-nav {
    flex-direction: column;
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

@media (max-width: 560px) {
  .tms-entry .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tms-theme .stat { padding: 14px; }
  .tms-theme .row-main { min-width: 0; overflow-wrap: anywhere; }
}

/* Site-admin carrier switcher in the Fleet sidebar */
.fleet-switch { padding: 10px 14px 4px; display: flex; flex-direction: column; gap: 4px; }
.fleet-switch label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.fleet-switch select { width: 100%; padding: 7px 9px; font-size: 14px; }

/* ===============================
   Theme switcher (light = FreightBridge homepage look, dark = TMS look)
   =============================== */
/* Permanent floating button: pinned to the bottom-right corner of every page, even while scrolling. */
.theme-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--navy-dark); color: #fff; border: 2px solid #fff;
  font-weight: 800; font-size: 14px; line-height: 1.2;
  box-shadow: 0 8px 24px rgba(13, 36, 65, .30);
  transition: transform .15s ease, box-shadow .15s ease;
}
.theme-toggle:hover, .theme-toggle:focus-visible { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13, 36, 65, .38); }
.tt-icon { font-size: 18px; line-height: 1; }
.tms-theme .theme-toggle { background: var(--amber); color: var(--on-amber); border-color: #101722; box-shadow: 0 8px 24px rgb(0 0 0 / 45%); }
.tms-theme .theme-toggle:hover, .tms-theme .theme-toggle:focus-visible { color: var(--on-amber); }
/* Keep the footer text clear of the floating button. */
.footer { padding-bottom: 76px; }

/* Dark theme on the homepage and marketplace pages */
.tms-theme main, .tms-theme .footer { color: var(--navy); }
.tms-theme .home-banner { background: var(--silver); border-color: var(--line); box-shadow: var(--shadow); }
.tms-theme .home-actionbar { background: linear-gradient(105deg, var(--silver), var(--light-blue) 65%, var(--light-green)); border-color: var(--line); }
.tms-theme .home-feature, .tms-theme .home-feature.silver { background: var(--silver); border-color: var(--line); }
.tms-theme .home-feature.blue { background: var(--light-blue); border-color: var(--line); }
.tms-theme .home-feature.green { background: var(--light-green); border-color: var(--line); }
.tms-theme .home-feature-index, .tms-theme .eyebrow { color: var(--link); }
.tms-theme .home-step-grid > div { background: var(--white); border-top-color: var(--amber); }
.tms-theme .home-step-grid span { background: var(--amber); color: var(--on-amber); }
.tms-theme .home-banner-mobile-copy { background: linear-gradient(140deg, var(--white) 0%, var(--light-blue) 75%, var(--light-green) 100%); }
.tms-theme .home-banner-mobile-copy h1 { color: var(--navy-dark); }
.tms-theme .hero { background: linear-gradient(125deg, var(--silver), var(--light-blue) 58%, var(--light-green)); border-color: var(--line); border-left-color: var(--amber); }
.tms-theme .loadcard, .tms-theme .loadcard:nth-child(n) { background: var(--white); border-color: var(--line); }
.tms-theme .stat:nth-child(n) { border-color: var(--line); }
.tms-theme th { background: var(--light-blue); }
.tms-theme code { background: var(--light-blue); border-color: var(--line); color: var(--link); }
.tms-theme .pill:is(.booked, .in_transit, .finalized) { background: #1d3550; color: #a9d2ff; }
.tms-theme .pill:is(.withdrawn, .inactive, .draft, .closed) { background: var(--silver-deep); color: var(--navy-soft); }
.tms-theme ol.timeline li::before { background: var(--white); border-color: var(--amber); }
.tms-theme ol.timeline { border-left-color: var(--line); }
.tms-theme .cal-cell.period { box-shadow: inset 0 0 0 2px #4a6380; }
.tms-theme .lg-period { border-color: #4a6380; }
.tms-theme .apply-hero { border-color: var(--line); }
.tms-theme .form-section { border-bottom-color: var(--line); }

@media (max-width: 700px) {
  .theme-toggle { right: 14px; bottom: 14px; padding: 10px 14px; font-size: 13px; }
}

/* ===============================
   Data menu (CSV import / export) and import pages
   =============================== */
.data-menu { position: relative; display: inline-block; margin-right: 14px; }
.data-menu summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 5px; }
.data-menu summary::-webkit-details-marker { display: none; }
.data-menu summary::after { content: "▾"; font-size: 12px; transition: transform .15s ease; }
.data-menu[open] summary::after { transform: rotate(180deg); }
.data-menu summary:hover, .data-menu summary.current { color: #21618b; }
.data-menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 900;
  display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 4px 14px;
  min-width: 340px; padding: 12px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(13, 36, 65, .18);
}
.dm-group { display: flex; flex-direction: column; }
.dm-title { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 8px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.data-menu-panel a { margin: 0; padding: 7px 8px; border-radius: 7px; font-weight: 500; font-size: 14px; color: var(--navy); white-space: nowrap; }
.data-menu-panel a:hover { background: var(--light-blue); text-decoration: none; color: var(--navy-dark); }
.tms-theme .data-menu summary:hover, .tms-theme .data-menu summary.current { color: var(--link); }
.tms-theme .data-menu-panel { box-shadow: 0 14px 34px rgb(0 0 0 / 50%); }

.data-page .actions { margin-top: 0; }
.data-grid { align-items: start; }
.data-rules { margin: 16px 0 0; padding-left: 18px; color: var(--navy-soft); font-size: 14px; }
.data-rules li { margin-bottom: 6px; }
.import-result.good { border-left: 4px solid #2e8a52; }
.import-result.bad { border-left: 4px solid #b23b3b; }
.import-result .table-wrap { margin-top: 10px; }
details.change-password summary { cursor: pointer; }
details.change-password form { margin-top: 14px; }

@media (max-width: 700px) {
  .data-menu { display: inline-block; margin-bottom: 6px; }
  .data-menu-panel { position: fixed; left: 14px; right: 14px; top: auto; min-width: 0; grid-template-columns: 1fr 1fr; }
  .data-menu-panel a { white-space: normal; }
}

/* Role guide on Fleet → Users */
details.role-guide summary { cursor: pointer; }
details.role-guide dl.facts { margin-top: 12px; }

/* ===============================
   Fleet → Reports (charts use the validated reference palette; light & dark steps selected per theme)
   =============================== */
:root {
  --viz-1: #2a78d6;      /* revenue (categorical slot 1) */
  --viz-2: #eb6834;      /* costs   (categorical slot 2) */
  --viz-gain: #2a78d6;   /* diverging: gain pole */
  --viz-loss: #e34948;   /* diverging: loss pole */
  --viz-grid: #e1e0d9; --viz-axis: #c3c2b7; --viz-tick: #52514e;
  --st-good: #0ca30c; --st-warn: #b07800; --st-warn-bg: #fff4d6; --st-crit: #d03b3b;
  --delta-up: #006300; --delta-down: #b42d2d;
}
.tms-theme {
  --viz-1: #3987e5; --viz-2: #d95926; --viz-gain: #3987e5; --viz-loss: #e66767;
  --viz-grid: #2a3648; --viz-axis: #4a5a70; --viz-tick: #b4c3d6;
  --st-good: #0ca30c; --st-warn: #fab219; --st-warn-bg: #3a2f17; --st-crit: #e66767;
  --delta-up: #3fcf7f; --delta-down: #ff8a8a;
}
.report-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 6px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--silver); }
.report-filters .field { margin: 0; min-width: 150px; flex: 0 1 180px; }
.report-filters .custom-dates { display: flex; gap: 12px; }
.report-filters .custom-dates[hidden] { display: none; }
.report-filters .filter-actions { display: flex; gap: 8px; }
.export-menu { position: relative; }
.export-menu summary { list-style: none; cursor: pointer; }
.export-menu summary::-webkit-details-marker { display: none; }
.export-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 270px; display: flex; flex-direction: column; padding: 8px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(13,36,65,.18); }
.export-panel a, .export-panel .linkbtn { padding: 8px 10px; border-radius: 7px; text-align: left; color: var(--navy); font-weight: 500; font-size: 14px; }
.export-panel a:hover, .export-panel .linkbtn:hover { background: var(--light-blue); text-decoration: none; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.kpi > span:first-child { font-size: 13px; font-weight: 700; color: var(--navy-soft); }
.kpi strong { font-size: 26px; line-height: 1.15; color: var(--navy-dark); }
.kpis.small .kpi strong { font-size: 20px; }
.kpi.hero { border-width: 2px; }
.kpi.hero.good { border-color: var(--viz-gain); }
.kpi.hero.bad { border-color: var(--viz-loss); }
.delta { font-size: 12.5px; font-weight: 700; }
.delta.up { color: var(--delta-up); } .delta.down { color: var(--delta-down); } .delta.flat { color: var(--muted); font-weight: 600; }

.health h2 small, .viz h2 small, #driver-docs h2 small { font-size: 13px; font-weight: 600; }
.health-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 18px; }
.health-list li { display: grid; grid-template-columns: 26px auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hs-icon { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; color: #fff; }
.hs-good .hs-icon { background: var(--st-good); } .hs-warning .hs-icon { background: #fab219; color: #0b0b0b; } .hs-critical .hs-icon { background: #d03b3b; } .hs-neutral .hs-icon { background: var(--silver-deep); color: var(--navy); }
.hs-label { justify-self: end; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--navy-soft); }
.hs-msg { grid-column: 2 / 4; font-size: 14px; color: var(--navy-soft); }

.viz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.viz-head h2 { margin: 0; }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; }
.key { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--navy-soft); }
.key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart .grid { stroke: var(--viz-grid); stroke-width: 1; }
svg.chart .baseline { stroke: var(--viz-axis); stroke-width: 1.5; }
svg.chart .tick { fill: var(--viz-tick); font-size: 11px; font-variant-numeric: tabular-nums; }
svg.chart .hit { fill: transparent; }
svg.chart .hover-group:hover .hit { fill: var(--viz-grid); opacity: .45; }
svg.chart .bar { stroke: var(--white); stroke-width: 1; }

.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.hbar-label { color: var(--navy); overflow-wrap: anywhere; }
.hbar-track { height: 12px; border-radius: 4px; background: var(--silver); overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.hbar-val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy-dark); }
.hbar:hover .hbar-label { text-decoration: underline; }

table.pl td.neg, table.pl th.neg { color: var(--delta-down); font-weight: 700; }
.block { display: block; }
.doc-summary { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.ds { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 750; border: 1px solid transparent; white-space: nowrap; }
.ds-good { color: var(--delta-up); border-color: currentColor; }
.ds-warning { color: var(--navy-dark); background: var(--st-warn-bg); border-color: #fab219; }
.ds-critical { color: #fff; background: #d03b3b; }
.ds-neutral { color: var(--muted); border-color: var(--line); }
.doc-cell { display: inline-flex; flex-direction: column; gap: 2px; }
.doc-cell small { color: var(--navy-soft); font-size: 12px; }
a.doc-cell:hover { text-decoration: none; } a.doc-cell:hover .ds { filter: brightness(1.08); }
table.doc-table td { vertical-align: middle; }

@media (max-width: 960px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } .health-list { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .report-filters .field { flex: 1 1 100%; } .report-filters .custom-dates { flex: 1 1 100%; } .kpi strong { font-size: 21px; } .hbar { grid-template-columns: 1fr auto; } .hbar-track { grid-column: 1 / -1; grid-row: 2; } }

/* Print / Save as PDF: report only, always light */
@media print {
  .site-nav, .fleet-side, .fleet-menu, .theme-toggle, .no-print, .footer, .notice:not(.warning) { display: none !important; }
  .fleet-layout { display: block; }
  body, body.tms-theme { background: #fff !important; color: #0b0b0b;
    --navy: #142f50; --navy-dark: #0d2441; --navy-soft: #405b76; --white: #fff; --silver: #f2f4f6; --silver-deep: #e2e8ee; --light-blue: #eef6fd; --light-green: #eef8f1; --line: #d3dde7; --muted: #4f6780;
    --viz-1: #2a78d6; --viz-2: #eb6834; --viz-gain: #2a78d6; --viz-loss: #e34948; --viz-grid: #e1e0d9; --viz-axis: #c3c2b7; --viz-tick: #52514e; --delta-up: #006300; --delta-down: #b42d2d; --st-warn-bg: #fff4d6; }
  .panel, .kpi { box-shadow: none !important; break-inside: avoid; }
  main.wrap.fleet-main { max-width: none; padding: 0; }
}
table.doc-table td:first-child { min-width: 150px; }
table.doc-table td:nth-child(2) { min-width: 190px; }
table.doc-table .ds { white-space: nowrap; }

/* ---------- Fleet: email notifications ---------- */
.notify-prefs label.check { display: flex; margin: 4px 0 14px; font-weight: 400; }
.notify-prefs label.check strong { font-weight: 500; }
.notify-matrix th.c, .notify-matrix td.c { text-align: center; white-space: nowrap; }
.notify-matrix td:first-child { min-width: 200px; }
.notify-prefs + form.inline .btn { margin-top: 10px; }

/* ---------- Fleet: mail ---------- */
.btn.danger { background: #fff; border-color: #d9a3a3; color: #a33a3a; }
.btn.danger:hover { background: #fbecec; }
.tms-theme .btn.danger { background: transparent; border-color: #8a4a4a; color: #ffb4ad; }
.tms-theme .btn.danger:hover { background: #44242b; }
.mail-folders { margin-bottom: 12px; }
.mail-folders .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #2a78d6; color: #fff; font-size: 12px; text-align: center; }
.mail-search { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.mail-search input[type=search] { flex: 1 1 220px; width: auto; }
.mail-row .row-main { min-width: 0; flex: 1 1 260px; }
.mail-row .row-main strong, .mail-row .mail-subject { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row strong { font-weight: 500; }
.mail-row .mail-subject { color: var(--muted); font-size: 14px; }
.mail-row.unread strong, .mail-row.unread .mail-subject { font-weight: 750; color: inherit; }
.mail-row .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2a78d6; margin-right: 6px; vertical-align: middle; }
.mail-pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.mail-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.mail-title { margin: 4px 0 10px; overflow-wrap: anywhere; }
.mail-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 14px; font-size: 14px; }
.mail-meta dt { color: var(--muted); font-weight: 500; }
.mail-meta dd { margin: 0; overflow-wrap: anywhere; }
.mail-attachments { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.mail-attachments li { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 14px; }
.mail-frame { width: 100%; height: 70vh; min-height: 360px; border: 1px solid var(--line); border-radius: 10px; background: #fff; resize: vertical; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; border-top: 1px solid var(--line); padding-top: 14px; }
.mail-note { font-size: 14px; background: var(--silver); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.mail-compose textarea { font-family: inherit; min-height: 260px; }
.mail-cc { margin: 8px 0 4px; }
.mail-cc summary { cursor: pointer; font-weight: 500; font-size: 14px; }
fieldset.mail-server { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 4px; margin: 12px 0; }
fieldset.mail-server legend { font-weight: 700; padding: 0 6px; }
.mail-settings + form.inline .btn { margin-top: 12px; }
@media (max-width: 720px) { .mail-meta { grid-template-columns: 1fr; } .mail-meta dt { margin-top: 6px; } }

/* ---------- Fleet overview: inbox blocks ---------- */
.mail-overview .mo-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mail-overview .mo-head h2 { margin: 0; }
.mail-overview .mo-head .actions { margin-top: 0; }
.mail-overview .mo-sub { margin: 2px 0 10px; font-size: 13px; }
.mo-count { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.mo-count strong { color: inherit; }
.mo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mo-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white, #fff); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.mo-card:hover { text-decoration: none; border-color: #8fb3d9; box-shadow: 0 4px 14px rgba(20, 47, 80, .08); }
.mo-card:focus-visible { outline: 2px solid #2a78d6; outline-offset: 2px; }
.mo-card.unread { border-left: 4px solid #2a78d6; padding-left: 11px; }
.mo-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mo-avatar { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 750; background: #e2ecf6; color: var(--navy); }
.mo-from { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 550; }
.mo-date { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.mo-subject { font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.mo-card.unread .mo-from, .mo-card.unread .mo-subject { font-weight: 750; }
.mo-subject .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2a78d6; margin-right: 6px; vertical-align: middle; }
.mo-snippet { font-size: 13px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.mo-skeleton { min-height: 104px; }
.mo-skeleton span { display: block; height: 11px; border-radius: 6px; background: var(--silver); animation: mo-pulse 1.2s ease-in-out infinite; }
.mo-skeleton span:nth-child(1) { width: 55%; } .mo-skeleton span:nth-child(2) { width: 90%; } .mo-skeleton span:nth-child(3) { width: 70%; }
@keyframes mo-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .mo-skeleton span { animation: none; } }
.mo-error p { margin-top: 0; }
.tms-theme .mo-card { background: var(--silver); }
.tms-theme .mo-card:hover { border-color: #a67438; box-shadow: none; }
.tms-theme .mo-card.unread { border-left-color: #f5b453; }
.tms-theme .mo-subject .dot { background: #f5b453; }
.tms-theme .mo-avatar { background: #47341e; color: #ffd28a; }
.tms-theme .mo-skeleton span { background: var(--line); }
@media (max-width: 560px) { .mo-grid { grid-template-columns: 1fr; } }

/* ---------- Fleet overview: expiry & notification blocks ---------- */
.ov-panel .mo-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ov-panel .mo-head h2 { margin: 0; }
.ov-panel .mo-head .actions { margin-top: 0; }
.ov-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white, #fff); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ov-card:hover { text-decoration: none; border-color: #8fb3d9; box-shadow: 0 4px 14px rgba(20, 47, 80, .08); }
.ov-card:focus-visible { outline: 2px solid #2a78d6; outline-offset: 2px; }
.ov-card.tone-critical { border-left: 4px solid #d03b3b; padding-left: 11px; }
.ov-card.tone-warning { border-left: 4px solid #fab219; padding-left: 11px; }
.ov-card .mo-top { width: 100%; }
.ov-title { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov-note .ov-title { font-weight: 600; font-size: 14px; }
.ov-who { font-size: 14px; }
.ov-date { font-size: 12.5px; color: var(--muted); }
.ov-icon { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e2ecf6; color: var(--navy); }
.ov-icon .ico { width: 17px; height: 17px; }
.ov-group { flex: 1 1 auto; font-size: 13px; font-weight: 500; color: var(--muted); }
.ov-allgood { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
.tms-theme .ov-card { background: var(--silver); }
.tms-theme .ov-card:hover { border-color: #a67438; box-shadow: none; }
.tms-theme .ov-card.tone-critical { border-left-color: #e66767; }
.tms-theme .ov-icon { background: #47341e; color: #ffd28a; }

/* ---------- Homepage: features & role explorer ---------- */
.home-landing { --hx-accent: #1f6fc5; --hx-accent-soft: #e7f3ff; --hx-on-accent: #fff; --hx-card: #fff; }
.tms-theme .home-landing { --hx-accent: var(--amber); --hx-accent-soft: #2b2416; --hx-on-accent: var(--on-amber); --hx-card: var(--silver); }
.hx-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 26px 0 8px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.hx-strip > div { background: var(--hx-card); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.hx-strip strong { font-size: 26px; line-height: 1.1; color: var(--hx-accent); letter-spacing: -.01em; }
.hx-strip span { font-size: 14px; color: var(--muted); }

.hx-tabs { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 16px; }
.hx-tabgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hx-tabgroup-label { width: 100%; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.hx-tab { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--hx-card); color: var(--navy); cursor: pointer; transition: background .15s, border-color .15s; }
.hx-tab:hover { border-color: var(--hx-accent); }
.hx-tab:focus-visible { outline: 2px solid var(--hx-accent); outline-offset: 2px; }
.hx-tab.on { background: var(--hx-accent); border-color: var(--hx-accent); color: var(--hx-on-accent); }
.hx-roles:not(.js) .hx-tabs { display: none; }
.hx-roles.js .hx-panel[data-hidden] { display: none; }
.hx-panels { display: grid; gap: 16px; }
.hx-panel { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--hx-card); box-shadow: var(--shadow); }
.hx-panel:focus-visible { outline: 2px solid var(--hx-accent); outline-offset: 3px; }
.hx-panel-main { padding: 26px 28px; }
.hx-panel-side { padding: 26px 24px; background: linear-gradient(160deg, var(--light-blue), var(--light-green)); border-left: 1px solid var(--line); }
.hx-kicker { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--hx-accent); }
.hx-panel h3 { font-size: 24px; margin: 6px 0 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hx-tag { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.hx-can { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hx-can li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.hx-check { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--hx-accent-soft); color: var(--hx-accent); font-weight: 800; margin-top: 1px; }
.hx-panel-side h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.hx-panel-side p { margin: 0 0 18px; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.hx-chips span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--hx-card); border: 1px solid var(--line); }

.hx-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.hx-feature { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--hx-card); transition: transform .15s, box-shadow .15s, border-color .15s; }
.hx-feature:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 47, 80, .09); border-color: var(--hx-accent); }
.hx-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--hx-accent-soft); color: var(--hx-accent); }
.hx-ico .ico { width: 22px; height: 22px; }
.hx-feature h3 { margin: 14px 0 6px; font-size: 17px; }
.hx-feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .hx-feature, .hx-feature:hover { transition: none; transform: none; } }

.hx-access table { min-width: 760px; }
.hx-access th[scope=row] { font-weight: 500; white-space: nowrap; }
.hx-access .c { text-align: center; }
.hx-acc { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; font-weight: 500; white-space: nowrap; }
.hx-acc.full { color: var(--delta-up); }
.hx-acc.own { color: var(--navy-soft); }
.hx-acc.none { color: var(--muted); font-weight: 500; }
.tms-theme .hx-access .table-wrap, .tms-theme .hx-access { background: var(--silver); }

.hx-alerts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; margin: 48px 0; padding: 30px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(120deg, var(--light-blue), var(--light-green)); }
.hx-alerts h2 { font-size: 28px; margin: 6px 0 10px; }
.hx-alerts p { color: var(--navy-soft); }
.hx-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; }
.hx-timeline li { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--hx-card); border: 1px solid var(--line); }
.hx-timeline li .ds { flex: 0 0 112px; justify-content: center; }
.hx-timeline p { margin: 0; font-size: 14.5px; }

.hx-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hx-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin: 30px 0 10px; padding: 28px 30px; border-radius: 20px; background: var(--navy); color: #fff; }
.hx-cta h2 { margin: 0 0 6px; color: #fff; font-size: 26px; }
.hx-cta p { margin: 0; color: #d6e4f2; }
.hx-cta .btn.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hx-cta .btn.secondary:hover { background: rgba(255, 255, 255, .1); }
.tms-theme .hx-cta { background: linear-gradient(120deg, #1d2a3d, #2b2416); border: 1px solid var(--line); }
.tms-theme .hx-cta h2 { color: var(--navy-dark); }
.tms-theme .hx-cta p { color: var(--navy-soft); }
.tms-theme .hx-cta .btn.secondary { color: var(--navy); border-color: var(--line); }
.tms-theme .hx-panel-side, .tms-theme .hx-alerts { background: linear-gradient(150deg, #172233, #1f2a22); }
.tms-theme .hx-feature:hover { box-shadow: none; }

@media (max-width: 900px) {
  .hx-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-panel { grid-template-columns: 1fr; }
  .hx-panel-side { border-left: 0; border-top: 1px solid var(--line); }
  .hx-alerts { grid-template-columns: 1fr; padding: 22px; }
  .hx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hx-strip strong { font-size: 21px; }
  .hx-strip > div { padding: 14px; }
  .hx-panel-main, .hx-panel-side { padding: 20px 18px; }
  .hx-panel h3 { font-size: 21px; }
  .hx-tabs { gap: 12px; }
  .hx-tab { font-size: 13px; padding: 7px 11px; }
  .hx-steps { grid-template-columns: 1fr; }
  .hx-timeline li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hx-timeline li .ds { flex: 0 0 auto; }
  .hx-cta { padding: 22px 18px; }
  .hx-cta .home-actions { width: 100%; }
}

/* ---------- Invoices, load paperwork, payments ---------- */
.invoice-sheet { --ink: #14202e; --soft: #55657a; --rule: #d7dee7; background: #fff; color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; padding: 34px 38px; margin: 18px 0; box-shadow: 0 6px 22px rgba(20, 47, 80, .08); max-width: 900px; }
.invoice-sheet h1, .invoice-sheet h2, .invoice-sheet h3, .invoice-sheet strong, .invoice-sheet th, .invoice-sheet td { color: var(--ink); }
.invoice-sheet a { color: #174e7c; }
.inv-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 18px; }
.inv-top p { margin: 3px 0; color: var(--soft); font-size: 14px; }
.inv-from { margin: 0 0 6px; font-size: 22px; }
.inv-ids { font-weight: 500; }
.inv-title h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: .04em; text-transform: uppercase; text-align: right; }
.inv-title dl { display: grid; grid-template-columns: auto auto; gap: 3px 14px; margin: 0; font-size: 14px; }
.inv-title dt { color: var(--soft); text-align: right; } .inv-title dd { margin: 0; font-weight: 500; text-align: right; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0; }
.inv-parties h3, .inv-note h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin: 0 0 6px; }
.inv-parties p { margin: 0; line-height: 1.5; }
table.inv-lines { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
table.inv-lines th, table.inv-lines td { padding: 10px 8px; border-bottom: 1px solid var(--rule); background: transparent; text-align: left; }
table.inv-lines thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); border-bottom: 2px solid var(--ink); }
table.inv-lines .num { text-align: right; white-space: nowrap; }
table.inv-lines tfoot th, table.inv-lines tfoot td { border-bottom: 0; text-align: right; }
table.inv-lines tfoot th:first-child, table.inv-lines tfoot td:first-child { text-align: right; }
table.inv-lines tr.inv-due th { font-size: 18px; border-top: 2px solid var(--ink); }
.inv-stamp { display: inline-block; border: 3px solid #1d7a3a; color: #1d7a3a; font-weight: 850; letter-spacing: .1em; padding: 6px 14px; border-radius: 8px; transform: rotate(-3deg); }
.inv-stamp.void { border-color: #b42d2d; color: #b42d2d; }
.inv-note { margin-top: 16px; } .inv-note p { margin: 0; color: var(--ink); }
.inv-docs ul, .inv-pays { margin: 6px 0 0; padding-left: 18px; }
.inv-foot { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--soft); font-size: 13px; }
.inv-public { max-width: 940px; margin: 0 auto; }
.inv-public .actions { justify-content: flex-end; margin: 10px 0 0; }
.inv-aging { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.inv-aging > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.inv-aging span { font-size: 13px; color: var(--muted); } .inv-aging strong { font-size: 18px; }
.inv-aging .late { border-color: #e5a3a3; background: rgba(208, 59, 59, .06); }
.inv-total-line { text-align: right; margin: 10px 0; }
.inv-table td { vertical-align: middle; }
.ds.inv-neutral { color: var(--muted); }
fieldset.inv-attach, fieldset.check-images { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 10px; margin: 10px 0 14px; }
fieldset.inv-attach legend, fieldset.check-images legend { font-weight: 700; padding: 0 6px; }
fieldset.check-images[hidden] { display: none; }
.deliver-panel h2 { margin-top: 0; }
.deliver-form { display: grid; gap: 8px; max-width: 460px; }
.deliver-form .btn { justify-self: start; font-size: 16px; padding: 12px 22px; }
.load-docs .mo-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.load-docs .mo-head h2 { margin: 0; }
.load-doc-list { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.load-doc-form, .pay-form { align-items: flex-end; }
.install-app { order: -1; }
.install-app[hidden] { display: none !important; }
.invoice-sheet tr, .invoice-sheet tbody tr:nth-child(n) { background: transparent !important; }
/* The invoice is always "paper": same colours in light and dark theme, and when printed. */
.invoice-sheet table { width: 100% !important; min-width: 0 !important; display: table !important; background: transparent !important; border: 0 !important; }
.invoice-sheet th, .invoice-sheet td { background: transparent !important; color: #14202e !important; border-color: #d7dee7 !important; }
.invoice-sheet thead th { color: #55657a !important; border-bottom-color: #14202e !important; }
.invoice-sheet tr.inv-due th { border-top-color: #14202e !important; }
.invoice-sheet li, .invoice-sheet small, .invoice-sheet p { color: #14202e; }
.offline-panel { margin-top: 40px; }
@media (max-width: 720px) {
  .invoice-sheet { padding: 20px 16px; }
  .inv-parties { grid-template-columns: 1fr; }
  .inv-title h1 { text-align: left; } .inv-title dt, .inv-title dd { text-align: left; }
  .inv-aging { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .site-nav, .fleet-side, .fleet-menu, .theme-toggle, .footer, .no-print, .notice, .inv-public .actions, .page-head .actions { display: none !important; }
  body, .tms-theme { background: #fff !important; }
  .fleet-layout { display: block !important; }
  .invoice-sheet { box-shadow: none; border: 0; margin: 0; padding: 0; max-width: none; }
}

/* ---------- What are you shipping? ---------- */
.ship-picker { margin: 8px 0 30px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--silver); }
.ship-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 30px; background: var(--white); border-bottom: 1px solid var(--line); }
.ship-head h1 { margin: 0; font-size: 28px; letter-spacing: .03em; text-transform: uppercase; }
.ship-head p { margin: 4px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ship-trust { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; font-weight: 500; color: var(--delta-up); }
.ship-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 26px 30px 30px; }
.ship-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 18px 24px; background: var(--white); border: 1px solid transparent; border-radius: 6px; box-shadow: 0 2px 8px rgba(20, 47, 80, .08); color: var(--navy); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ship-tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 47, 80, .14); border-color: #8fb3d9; }
.ship-tile:focus-visible { outline: 3px solid #2a78d6; outline-offset: 2px; }
.ship-tile .ship-art { width: 150px; height: 94px; margin-bottom: 10px; }
.ship-title { font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ship-examples { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
nav.ship-crumbs, nav.ship-chips { background: none !important; border: 0 !important; box-shadow: none !important; position: static !important; padding: 0 !important; }
.ship-crumbs { font-size: 14px; margin: 6px 0 12px; } .ship-crumbs span { color: var(--muted); margin: 0 4px; }
.ship-form-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.ship-form-head .ship-art { width: 110px; height: 69px; flex: 0 0 auto; }
.ship-form-head h1 { margin: 0; } .ship-form-head p { margin: 2px 0 0; }
.ship-form-head .btn { margin-left: auto; }
fieldset.ship-fields { border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px 6px; margin: 14px 0; }
fieldset.ship-fields legend { font-weight: 750; padding: 0 6px; }
.ship-check { margin: 26px 0 8px !important; }
.ship-restricted { border-color: #e5a3a3 !important; background: rgba(208, 59, 59, .04); }
.ship-restricted p { margin: 6px 0; }
.ship-restricted-list { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; }
.ship-restricted-list li { font-size: 14.5px; } .ship-restricted-list span { color: #d03b3b; font-weight: 800; margin-right: 4px; }
.ship-yn { display: flex; gap: 10px 26px; flex-wrap: wrap; margin: 8px 0; }
.ship-yn label.check { margin: 0; }
.ship-restricted-stop { padding: 10px 14px; border-radius: 10px; background: #d03b3b; color: #fff; }
.ship-restricted-stop[hidden] { display: none; }
.ship-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.ship-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font-size: 14px; font-weight: 500; text-decoration: none; }
.ship-chip:first-child { padding-left: 12px; }
.ship-chip:hover { text-decoration: none; border-color: #8fb3d9; }
.ship-chip .ship-art { width: 34px; height: 22px; }
.ship-chip span { font-size: 12px; color: var(--muted); font-weight: 700; }
.ship-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; } .ship-chip.on span { color: #d6e4f2; }
.ship-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--navy-soft); margin-bottom: 4px; }
.ship-badge .ship-art { width: 40px; height: 25px; }
.ship-sum { font-size: 13.5px; color: var(--muted); }
.ship-detail { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0 14px; background: var(--light-blue); }
.ship-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 6px 0 8px; font-size: 14.5px; }
.ship-detail dt { color: var(--muted); font-weight: 500; } .ship-detail dd { margin: 0; }
.ship-ok { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--delta-up); }
.tms-theme .ship-tile, .tms-theme .ship-head, .tms-theme .ship-chip { background: var(--silver); }
.tms-theme .ship-picker { background: #0c121b; }
.tms-theme .ship-tile .ship-art, .tms-theme .ship-form-head .ship-art { background: #e4edf6; border-radius: 14px; padding: 6px 8px; }
.tms-theme .ship-tile:hover { border-color: #a67438; box-shadow: none; }
.tms-theme .ship-chip.on { background: #47341e; border-color: #a67438; color: #ffd28a; }
.tms-theme .ship-restricted { background: rgba(230, 103, 103, .07); border-color: #8a4a4a !important; }
@media (prefers-reduced-motion: reduce) { .ship-tile, .ship-tile:hover { transition: none; transform: none; } }
@media (max-width: 900px) { .ship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; } .ship-head { padding: 20px 18px; } }
@media (max-width: 480px) { .ship-tile .ship-art { width: 110px; height: 69px; } .ship-tile { padding: 18px 10px; } .ship-head h1 { font-size: 22px; } .ship-detail dl { grid-template-columns: 1fr; } }
