/* Панель FleetPage из PLDock, с отступами для компактного встраивания. */
.fleet-page {
  container-type: inline-size;
  min-width: 0;
  font-family: Inter, Arial, sans-serif;
  padding: clamp(12px, 1.5vw, 24px);
  background: var(--panel);
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.25rem;
}

.fleet-heading { margin-bottom: 16px; }

.fleet-eyebrow {
  margin-bottom: 4px;
  font-size: .8125rem;
  line-height: 1.125rem;
  font-weight: 650;
  letter-spacing: .07em;
  color: var(--accent);
  text-transform: uppercase;
}

.fleet-heading h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.17;
  font-weight: 600;
  letter-spacing: -.035em;
}

.fleet-heading p { margin-top: 4px; color: var(--soft); }

.fleet-overview, .fleet-column-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fleet-overview, .fleet-column-work { margin-bottom: 16px; }

.fleet-metric, .fleet-column-work-item {
  min-height: 44px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface);
  color: var(--soft);
  text-align: left;
}

.fleet-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.fleet-metric > svg {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--accent);
}

.fleet-metric--amber > svg { color: var(--danger); background: var(--danger-bg); }
.fleet-metric > span { overflow-wrap: anywhere; }

.fleet-metric strong {
  color: var(--ink);
  font-size: 1.375rem;
  letter-spacing: -.035em;
  font-weight: 650;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fleet-column-work h4 { font-size: .875rem; font-weight: 650; margin-bottom: 8px; }

.fleet-column-work-item {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
}

.fleet-column-work-label { font-weight: 600; }
.fleet-column-work-value { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fleet-column-work-value strong { color: var(--ink); font-size: 1.125rem; margin-right: 4px; font-weight: 650; }

.fleet-workspace {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.fleet-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
  padding: 8px 12px 0;
  border-bottom: 1px solid var(--line);
}

.fleet-tabs > span {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  padding-bottom: 6px;
  font-weight: 630;
}

.fleet-tabs svg { width: 14px; height: 14px; }

.fleet-tabs small, .fleet-name small, .fleet-preview-source {
  color: var(--soft);
  font-size: .8125rem;
  line-height: 1.125rem;
}

.fleet-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.fleet-status-filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid var(--outline);
  border-radius: 6px;
  background: var(--paper);
  padding: 6px 8px;
  color: var(--soft);
}

.fleet-status-filters span { font-variant-numeric: tabular-nums; }
:is(.fleet-metric, .fleet-column-work-item, .fleet-status-filters button):hover { border-color: var(--accent); }

:is(.fleet-metric, .fleet-column-work-item, .fleet-status-filters button)[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--selection);
  box-shadow: inset 0 -2px var(--accent);
  color: var(--accent);
}

.fleet-table-wrap { max-height: 13.5rem; overflow: auto; border-radius: 0 0 9px 9px; }

.fleet-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  text-align: left;
  font-size: inherit;
  line-height: inherit;
}

.fleet-table thead { position: sticky; top: 0; }
.fleet-table th, .fleet-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); }

.fleet-table thead th {
  background: var(--paper);
  color: var(--soft);
  font-size: .8125rem;
  line-height: 1.125rem;
  font-weight: 550;
}

.fleet-table :is(th, td):last-child { text-align: right; }

.fleet-name strong {
  color: var(--ink);
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fleet-name small { display: block; font-weight: 430; }
.fleet-name .fleet-repair-note { color: var(--danger); }
.fleet-status { display: inline-flex; align-items: baseline; gap: 4px; border-radius: 5px; padding: 2px 4px; }

.fleet-status i {
  display: inline-block;
  align-self: center;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.fleet-status--green { color: var(--info); background: var(--info-bg); }
.fleet-status--amber { color: var(--warning); background: var(--warning-bg); }
.fleet-status--red { color: var(--danger); background: var(--danger-bg); }
.fleet-time { color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fleet-table .fleet-empty { text-align: left; padding: 12px; color: var(--soft); }
.fleet-preview-source { margin-top: 8px; }

@container (max-width: 18rem) {
  .fleet-metric { padding-inline: 6px; gap: 4px; }
  .fleet-metric > svg { width: 20px; height: 20px; padding: 3px; }
  .fleet-table th, .fleet-table td { padding-inline: 5px; }
}
