/* Fleet tab: the monthly cost ledger beside each class of ship (20 Nov 2026).
   Matches player.js classLedger(): .fl-class-body > .fl-ships + aside.fl-ledger. A narrow column of ruled
   ledger-paper lines, the class's colour on its top edge (van oxblood, line brass, rear jade). Under 560px
   of pane the ledger drops below the ships, full width. */
.fl-class-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.fl-class-body.has-ledger { grid-template-columns: minmax(0, 1fr) 13.5rem; align-items: start; }

.fl-ledger { --cls: var(--deck-brass); position: relative; min-width: 0; margin: .3rem 0 0; padding: .5rem .65rem .55rem;
  border: 1px solid var(--rule); border-top: 3px solid var(--cls); border-radius: calc(var(--radius) * .7);
  background:
    repeating-linear-gradient(180deg, transparent 0, transparent calc(1.5rem - 1px), color-mix(in srgb, var(--deck-brass) 14%, transparent) calc(1.5rem - 1px), color-mix(in srgb, var(--deck-brass) 14%, transparent) 1.5rem),
    color-mix(in srgb, var(--deck-night) 45%, transparent);
  font-variant-numeric: tabular-nums; }
.fl-ledger.fl-escort { --cls: #b3402a; }
.fl-ledger.fl-trader { --cls: var(--deck-brass); }
.fl-ledger.fl-cargo { --cls: #3f9a7a; }

.fl-ledger h4 { margin: 0 0 .25rem; padding: 0; border: 0; font: .72rem/1.1 var(--special); letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--deck-brass) 80%, var(--deck-ivory)); }
.fl-ledger h5 { margin: .45rem 0 .1rem; padding: 0; border: 0; font: .66rem/1.1 var(--special); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fll-lines { margin: 0; padding: 0; }
.fll-lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; min-height: 1.5rem; line-height: 1.5rem; }
.fll-lines dt { min-width: 0; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fll-lines dt small { font-size: .68rem; opacity: .8; }
.fll-lines dd { margin: 0; font-size: .84rem; color: var(--deck-ivory); white-space: nowrap; }

/* The month's total, ruled off with a double line like a ledger's foot; the year under it. */
.fll-lines > .fll-total { margin-top: .1rem; border-top: 3px double color-mix(in srgb, var(--deck-brass) 60%, transparent); }
.fll-total dt { color: var(--deck-ivory); font-weight: 700; }
.fll-total dd { color: var(--brass-hi); font-weight: 700; font-size: .95rem; }
.fll-year dt, .fll-year dd { font-size: .74rem; color: var(--muted); }

/* What to weigh: wages on empty hold, repairs owed. */
.fll-notes { margin-top: .3rem; }
.fll-idle dd { color: var(--vermilion, #d0573a); }
.fll-repair dd { color: color-mix(in srgb, var(--deck-brass) 70%, var(--deck-ivory)); }
.fll-ships dt { color: var(--deck-ivory); font-size: .76rem; }
.fll-ships dd { font-size: .78rem; }

.fll-layup { margin: .4rem 0 0; padding: .3rem .4rem; border-radius: calc(var(--radius) * .5); font-size: .74rem; line-height: 1.3; color: var(--muted); cursor: help;
  background: color-mix(in srgb, var(--jade-hi) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--jade-hi) 40%, transparent); }
.fll-layup b { font-weight: 700; color: var(--deck-ivory); }

.fl-bill { font-size: .76rem; color: var(--brass-hi); white-space: nowrap; }
.fll-laid { margin: .3rem 0 0 .55rem; font-size: .78rem; }

@container pane (max-width: 560px) {
  .fl-class-body.has-ledger { grid-template-columns: minmax(0, 1fr); }
  .fl-ledger { margin-top: 0; }
  .fl-ledger .fll-lines { columns: 2; column-gap: 1.2rem; }
  .fl-ledger .fll-lines > div { break-inside: avoid; }
}
