.fleet-manager-view {
  width: 100%;
}

.fleet-manager-view [hidden] {
  display: none !important;
}

.fleet-section-tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-height: 3.75rem;
  align-items: stretch;
  justify-content: center;
  margin: 0 auto var(--space-8);
  overflow-x: auto;
  padding: 0 0 0.35rem;
  scrollbar-width: thin;
  gap: 0.18rem;
}

.fleet-section-tab {
  position: relative;
  display: inline-flex;
  min-width: 10rem;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0.68rem;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 540;
  gap: 0.55rem;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.fleet-section-tab::after {
  position: absolute;
  right: 0.8rem;
  bottom: -0.17rem;
  left: 0.8rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity var(--transition-fast), transform var(--transition-smooth);
}

.fleet-section-tab::before {
  position: absolute;
  top: 0.52rem;
  right: 0.55rem;
  width: 0.42rem;
  height: 0.42rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #d99a22;
  box-shadow: 0 0 0 2px rgb(217 154 34 / 12%);
  content: "";
  opacity: 0;
}

.fleet-section-tab.has-alert::before {
  opacity: 1;
}

.fleet-section-tab:hover {
  background: rgb(255 255 255 / 58%);
  color: var(--color-blue-hover);
}

.fleet-section-tab.is-active {
  border-color: #e2e9f0;
  background: var(--color-surface);
  box-shadow: var(--shadow-tab);
  color: var(--color-blue);
  font-weight: 620;
  transform: translateY(-1px);
}

.fleet-section-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.fleet-section-tab small {
  display: inline-flex;
  min-width: 1.55rem;
  min-height: 1.45rem;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: #eef3f8;
  color: #6a7b90;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.fleet-section-tab.is-active small {
  background: var(--color-blue-soft);
  color: var(--color-blue);
}

.fleet-page {
  width: 100%;
  max-width: 100rem;
  padding-bottom: 5.8rem;
}

.fleet-list-header,
.fleet-record-header,
.fleet-record-section-heading,
.fleet-report-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fleet-list-header {
  min-height: 5.2rem;
  align-items: flex-start;
  gap: var(--space-8);
}

.fleet-list-header h2,
.fleet-record-header h2,
.fleet-record-section-heading h3 {
  margin: 0;
  color: var(--color-text);
  letter-spacing: -0.035em;
}

.fleet-list-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
}

.fleet-list-header > div > p:last-child,
.fleet-record-identity > p:last-child {
  margin: 0.45rem 0 0;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.fleet-section-eyebrow {
  margin: 0 0 0.4rem;
  color: var(--color-blue);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fleet-summary-grid {
  display: grid;
  margin-top: var(--space-6);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.fleet-summary-grid article {
  min-height: 7rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  background: rgb(255 255 255 / 64%);
}

.fleet-summary-grid span,
.fleet-summary-grid strong,
.fleet-summary-grid small { display: block; }
.fleet-summary-grid span { color: var(--color-muted); font-size: 0.68rem; font-weight: 650; text-transform: uppercase; }
.fleet-summary-grid strong { margin-top: 0.55rem; color: var(--color-text); font-size: 1.35rem; }
.fleet-summary-grid small { margin-top: 0.35rem; color: var(--color-muted); }

.fleet-toolbar {
  display: grid;
  grid-template-columns: minmax(18rem, 1.4fr) minmax(13rem, 1fr) minmax(11rem, 0.75fr) auto;
  margin: var(--space-6) 0 var(--space-8);
  gap: var(--space-4);
}

.fleet-control {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.55rem;
}

.fleet-control > span {
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.fleet-control input,
.fleet-control select,
.fleet-form-grid textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 0.7rem;
  outline: none;
  background: rgb(255 255 255 / 82%);
  color: var(--color-text);
  font: inherit;
  font-size: 0.84rem;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.fleet-control input:hover,
.fleet-control select:hover,
.fleet-form-grid textarea:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface);
}

.fleet-control input:focus,
.fleet-control select:focus,
.fleet-form-grid textarea:focus {
  border-color: #8bc2f9;
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgb(8 125 245 / 9%);
}

.fleet-table-scroll,
.fleet-subtable-scroll {
  overflow-x: auto;
}

.fleet-table {
  width: 100%;
  min-width: 82rem;
  border-collapse: collapse;
  color: var(--color-text-soft);
  table-layout: fixed;
}

.fleet-table th {
  padding: 0 1rem 0.82rem;
  border-bottom: 1px solid var(--color-border-strong);
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-align: left;
  text-transform: uppercase;
}

.fleet-table td {
  height: 5.25rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e7edf3;
  font-size: 0.79rem;
  vertical-align: middle;
}

.fleet-table th:first-child,
.fleet-table td:first-child {
  width: 22%;
  padding-left: 1.35rem;
}

.fleet-table th:nth-child(2),
.fleet-table td:nth-child(2) {
  width: 16%;
}

.fleet-table th:nth-child(3),
.fleet-table td:nth-child(3) {
  width: 22%;
}

.fleet-table th:nth-child(4),
.fleet-table td:nth-child(4),
.fleet-table th:nth-child(5),
.fleet-table td:nth-child(5),
.fleet-table th:last-child,
.fleet-table td:last-child {
  width: 13.33%;
}

.fleet-table th:last-child,
.fleet-table td:last-child {
  padding-right: 0;
}

.fleet-table tbody tr {
  cursor: pointer;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.fleet-table tbody tr:hover,
.fleet-table tbody tr:focus-visible {
  background: rgb(234 244 255 / 48%);
  box-shadow: inset 0.25rem 0 0 var(--color-blue);
  outline: none;
}

.fleet-identity-cell strong,
.fleet-identity-cell span,
.fleet-code-cell strong,
.fleet-code-cell span,
.fleet-assignment-cell strong,
.fleet-assignment-cell span,
.fleet-service-cell strong,
.fleet-service-cell span,
.fleet-subtable td:first-child strong,
.fleet-subtable td:first-child span,
.fleet-report-table td:nth-child(2) strong,
.fleet-report-table td:nth-child(2) span {
  display: block;
}

.fleet-identity-cell strong,
.fleet-code-cell strong,
.fleet-assignment-cell strong {
  overflow: hidden;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-identity-cell span,
.fleet-code-cell span,
.fleet-assignment-cell span,
.fleet-service-cell span {
  margin-top: 0.28rem;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-service-cell strong {
  color: var(--color-text-soft);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.fleet-service-cell.has-alert strong,
.fleet-service-cell.has-alert span {
  color: #8a6414;
}

.fleet-table {
  table-layout: auto;
}

.fleet-table th:first-child,
.fleet-table td:first-child,
.fleet-table th:nth-child(2),
.fleet-table td:nth-child(2),
.fleet-table th:nth-child(3),
.fleet-table td:nth-child(3),
.fleet-table th:nth-child(4),
.fleet-table td:nth-child(4),
.fleet-table th:nth-child(5),
.fleet-table td:nth-child(5),
.fleet-table th:nth-child(6),
.fleet-table td:nth-child(6),
.fleet-table th:last-child,
.fleet-table td:last-child {
  width: auto;
}

.fleet-table th:first-child,
.fleet-table td:first-child {
  width: 3.25rem;
  padding-right: 0;
  padding-left: 0.75rem;
}

.fleet-table th:nth-child(2),
.fleet-table td:nth-child(2) {
  min-width: 13rem;
}

.fleet-inline-action {
  display: block;
  margin-top: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.45rem;
  background: var(--color-blue-faint);
  color: var(--color-blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 650;
}

.fleet-dialog-detail-grid {
  padding: var(--space-6);
}

.fleet-primary-cell strong,
.fleet-primary-cell span,
.fleet-plate-cell strong,
.fleet-plate-cell span,
.fleet-route-cell strong,
.fleet-route-cell span {
  display: block;
}

.fleet-primary-cell strong,
.fleet-plate-cell strong,
.fleet-route-cell strong {
  overflow: hidden;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-primary-cell span,
.fleet-plate-cell span,
.fleet-route-cell span {
  margin-top: 0.28rem;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-numeric-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fleet-condition,
.fleet-status,
.fleet-document-status,
.fleet-state,
.fleet-severity {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 680;
  white-space: nowrap;
}

.fleet-condition--good,
.fleet-status--active,
.fleet-document-status--valid {
  background: #eaf8f1;
  color: #19744c;
}

.fleet-condition--attention,
.fleet-status--maintenance,
.fleet-document-status--expiring {
  background: #fff6df;
  color: #8a6414;
}

.fleet-condition--critical,
.fleet-status--out-of-service,
.fleet-document-status--expired {
  background: #fff0ef;
  color: #a0443c;
}

.fleet-status--retired,
.fleet-document-status--no-expiry {
  background: #eef2f6;
  color: #617087;
}

.fleet-state--available,
.fleet-status--completed,
.fleet-status--resolved,
.fleet-status--returned {
  background: #eaf8f1;
  color: #19744c;
}

.fleet-state--assigned,
.fleet-state--on-route,
.fleet-status--in-progress,
.fleet-status--planned,
.fleet-status--under-review {
  background: var(--color-blue-soft);
  color: var(--color-blue);
}

.fleet-state--maintenance,
.fleet-status--open,
.fleet-status--scheduled,
.fleet-status--waiting-for-parts,
.fleet-severity--medium {
  background: #fff6df;
  color: #8a6414;
}

.fleet-state--out-of-service,
.fleet-status--cancelled,
.fleet-severity--high {
  background: #fff0ef;
  color: #a0443c;
}

.fleet-severity--low {
  background: #eef2f6;
  color: #617087;
}

.fleet-empty {
  margin: 0;
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.82rem;
  text-align: center;
}

.fleet-report-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: var(--sidebar-width);
  z-index: 18;
  padding: 0.85rem clamp(2.5rem, 3vw, 3.15rem);
  border-top: 1px solid rgb(204 217 230 / 90%);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 -1.1rem 2.7rem -2rem rgb(23 58 91 / 34%);
  backdrop-filter: saturate(145%) blur(18px);
}

.fleet-report-footer-inner {
  width: 100%;
  max-width: 100rem;
  min-height: 3.2rem;
  gap: var(--space-5);
}

.fleet-report-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.22rem;
}

.fleet-report-summary > span {
  color: var(--color-blue);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fleet-report-summary > strong {
  overflow: hidden;
  color: var(--color-text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-record-view {
  animation: fleet-record-enter 240ms var(--ease-out) both;
}

.fleet-back-button {
  display: inline-flex;
  min-height: 2.6rem;
  align-items: center;
  margin-bottom: var(--space-5);
  padding: 0.45rem 0.7rem;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.fleet-back-button:hover {
  background: var(--color-blue-faint);
  color: var(--color-blue);
}

.fleet-record-header {
  min-height: 7.3rem;
  align-items: flex-start;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-strong);
  gap: var(--space-8);
}

.fleet-record-title-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.fleet-record-header h2 {
  max-width: 56rem;
  font-size: 1.55rem;
  font-weight: 700;
}

.fleet-record-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3);
}

.fleet-record-tabs {
  display: flex;
  align-items: center;
  margin: var(--space-6) 0 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border);
  gap: var(--space-8);
}

.fleet-record-tab {
  position: relative;
  min-height: 3.5rem;
  padding: 0.7rem 0.1rem;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.fleet-record-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: var(--color-blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity var(--transition-fast), transform var(--transition-smooth);
}

.fleet-record-tab:hover,
.fleet-record-tab.is-active {
  color: var(--color-blue);
}

.fleet-record-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.fleet-record-panel {
  animation: fleet-panel-enter 210ms var(--ease-out) both;
}

.fleet-record-section {
  padding-top: var(--space-8);
}

.fleet-record-section + .fleet-record-section {
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.fleet-record-section-heading {
  min-height: 3.4rem;
  align-items: flex-start;
}

.fleet-record-section-heading h3 {
  font-size: 1rem;
  font-weight: 680;
}

.fleet-section-with-action {
  gap: var(--space-6);
}

.fleet-document-link,
.fleet-asset-link {
  text-decoration: none;
}

.fleet-section-note {
  max-width: 62rem;
  margin: 0 0 var(--space-5);
  color: var(--color-muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.fleet-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: var(--space-3) 0 0;
  border-top: 1px solid var(--color-border);
}

.fleet-detail-item {
  min-height: 5.5rem;
  padding: 1.2rem var(--space-6) 1.2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.fleet-detail-item:not(:nth-child(3n + 1)) {
  padding-left: var(--space-6);
  border-left: 1px solid var(--color-border);
}

.fleet-detail-item dt {
  margin-bottom: 0.45rem;
  color: var(--color-muted);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.fleet-detail-item dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--color-text-soft);
  font-size: 0.82rem;
  font-weight: 560;
}

.fleet-record-notes {
  max-width: 62rem;
  margin: var(--space-3) 0 0;
  color: var(--color-text-soft);
  font-size: 0.8rem;
  line-height: 1.7;
}

.fleet-subtable {
  width: 100%;
  min-width: 58rem;
  margin-top: var(--space-3);
  border-collapse: collapse;
  color: var(--color-text-soft);
  table-layout: fixed;
}

.fleet-subtable th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border-strong);
  color: var(--color-muted);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-align: left;
  text-transform: uppercase;
}

.fleet-subtable td {
  min-height: 4.8rem;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.76rem;
  line-height: 1.5;
}

.fleet-subtable th:first-child,
.fleet-subtable td:first-child {
  width: 31%;
  padding-left: 0;
}

.fleet-subtable th:last-child,
.fleet-subtable td:last-child {
  padding-right: 0;
}

.fleet-subtable td:first-child strong {
  color: var(--color-text);
  font-size: 0.79rem;
  font-weight: 640;
}

.fleet-subtable td:first-child span {
  margin-top: 0.25rem;
  color: var(--color-muted);
  font-size: 0.67rem;
}

.fleet-maintenance-table th:nth-child(2),
.fleet-maintenance-table td:nth-child(2),
.fleet-maintenance-table th:nth-child(4),
.fleet-maintenance-table td:nth-child(4),
.fleet-maintenance-table th:nth-child(5),
.fleet-maintenance-table td:nth-child(5) {
  width: 15%;
}

.fleet-maintenance-table th:nth-child(3),
.fleet-maintenance-table td:nth-child(3) {
  width: 24%;
}

.fleet-document-table th:first-child,
.fleet-document-table td:first-child {
  width: 42%;
}

.fleet-document-table th:nth-child(2),
.fleet-document-table td:nth-child(2),
.fleet-document-table th:nth-child(3),
.fleet-document-table td:nth-child(3),
.fleet-document-table th:last-child,
.fleet-document-table td:last-child {
  width: 19.33%;
}

.fleet-subtable-empty {
  color: var(--color-muted);
  text-align: center;
}

.fleet-history-list {
  max-width: 72rem;
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.fleet-history-list li {
  position: relative;
  display: grid;
  min-height: 5.4rem;
  grid-template-columns: 10rem minmax(0, 1fr);
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid var(--color-border);
  gap: var(--space-6);
}

.fleet-history-list li::before {
  position: absolute;
  top: 1.35rem;
  left: 0.25rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--color-blue);
  box-shadow: 0 0 0 2px rgb(8 125 245 / 16%);
  content: "";
}

.fleet-history-list time {
  color: var(--color-muted);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.fleet-history-list strong {
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 650;
}

.fleet-history-list p {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.73rem;
  line-height: 1.55;
}

.fleet-record-danger-zone {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-10);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.fleet-retire-button {
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  background: transparent;
  color: #a0443c;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 620;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.fleet-retire-button:hover {
  background: #fff0ef;
  color: #8f312a;
}

.fleet-editor-dialog,
.fleet-maintenance-dialog,
.fleet-assignment-dialog,
.fleet-trip-dialog,
.fleet-fuel-dialog,
.fleet-incident-dialog {
  width: min(56rem, calc(100vw - 2rem));
}

.fleet-form-grid textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.fleet-dialog-body {
  padding: 1.7rem;
}

.fleet-dialog-body p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.8rem;
  line-height: 1.65;
}

.fleet-confirm-retire {
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  background: #b5453d;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.fleet-confirm-retire:hover {
  background: #9f3730;
  transform: translateY(-1px);
}

.fleet-report-dialog {
  width: min(48rem, calc(100vw - 2rem));
}

.fleet-report-message {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #efc5c0;
  border-radius: 0.65rem;
  background: #fff7f6;
  color: #9c3f37;
  font-size: 0.74rem;
}

.fleet-report-preview-dialog {
  display: none;
  width: min(96rem, calc(100vw - 2rem));
  height: min(90vh, 72rem);
  max-height: calc(100vh - 2rem);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.fleet-report-preview-dialog[open] {
  display: grid;
}

.fleet-report-preview-body {
  min-height: 0;
  overflow: auto;
  padding: 2rem;
  background: #edf2f7;
}

.fleet-report-pages {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
}

.fleet-report-sheet {
  display: flex;
  width: 100%;
  max-width: 88rem;
  min-height: 53rem;
  flex-direction: column;
  padding: 2.4rem 2.7rem 1.6rem;
  border: 1px solid #d7e0e8;
  background: #ffffff;
  box-shadow: 0 1.8rem 4rem -2.4rem rgb(27 52 79 / 45%);
  color: #12233b;
}

.fleet-report-document-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 1.35rem;
  border-bottom: 2px solid #147de0;
  gap: var(--space-8);
}

.fleet-report-document-brand,
.fleet-report-document-identity {
  display: flex;
  flex-direction: column;
}

.fleet-report-document-brand {
  gap: 0.38rem;
}

.fleet-report-document-brand span,
.fleet-report-document-identity p {
  margin: 0;
  color: #147de0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fleet-report-document-brand strong {
  color: #0a1e3b;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.fleet-report-document-identity {
  align-items: flex-end;
  gap: 0.3rem;
  text-align: right;
}

.fleet-report-document-identity h1 {
  margin: 0;
  color: #0a1e3b;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.fleet-report-document-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1rem 0;
  border-bottom: 1px solid #dce6ef;
  gap: var(--space-5);
}

.fleet-report-document-meta > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.25rem;
}

.fleet-report-document-meta span {
  color: #6c7c90;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fleet-report-document-meta strong {
  overflow: hidden;
  color: #243956;
  font-size: 0.68rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-report-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  color: #243956;
  font-size: 0.61rem;
  table-layout: fixed;
}

.fleet-report-table th {
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid #aebdcb;
  color: #60718a;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-align: left;
  text-transform: uppercase;
}

.fleet-report-table td {
  overflow: hidden;
  padding: 0.46rem 0.55rem;
  border-bottom: 1px solid #e4eaf0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-report-table th:first-child,
.fleet-report-table td:first-child {
  width: 14%;
  padding-left: 0;
}

.fleet-report-table th:nth-child(2),
.fleet-report-table td:nth-child(2) {
  width: 21%;
}

.fleet-report-table th:nth-child(3),
.fleet-report-table td:nth-child(3) {
  width: 22%;
}

.fleet-report-table th:nth-child(4),
.fleet-report-table td:nth-child(4),
.fleet-report-table th:nth-child(5),
.fleet-report-table td:nth-child(5) {
  width: 14%;
}

.fleet-report-table th:last-child,
.fleet-report-table td:last-child {
  width: 15%;
  padding-right: 0;
}

.fleet-report-table td:nth-child(2) strong {
  color: #12233b;
  font-weight: 650;
}

.fleet-report-table td:nth-child(2) span {
  margin-top: 0.12rem;
  color: #6c7c90;
  font-size: 0.52rem;
}

.fleet-report-document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid #dce6ef;
  color: #6c7c90;
  font-size: 0.55rem;
}

.fleet-report-preview-actions {
  justify-content: flex-end;
}

.fleet-report-print-status {
  margin: 0 auto 0 0;
  color: var(--color-muted);
  font-size: 0.72rem;
}

@keyframes fleet-record-enter {
  from { opacity: 0; transform: translateY(0.3rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fleet-panel-enter {
  from { opacity: 0; transform: translateY(0.2rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 72rem) {
  .fleet-section-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .fleet-toolbar {
    grid-template-columns: minmax(18rem, 1.3fr) repeat(3, minmax(11rem, 0.72fr));
  }

  .fleet-record-header {
    flex-direction: column;
  }

  .fleet-record-actions {
    justify-content: flex-start;
  }

  .fleet-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 56rem) {
  .fleet-section-tabs {
    margin-bottom: var(--space-6);
  }

  .fleet-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fleet-search-control {
    grid-column: 1 / -1;
  }

  .fleet-report-footer {
    left: 0;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .fleet-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fleet-detail-item,
  .fleet-detail-item:not(:nth-child(3n + 1)) {
    padding-right: var(--space-5);
    padding-left: 0;
    border-left: 0;
  }

  .fleet-detail-item:nth-child(even) {
    padding-left: var(--space-5);
    border-left: 1px solid var(--color-border);
  }
}

@media (max-width: 30rem) {
  .fleet-section-tab {
    min-width: 8.7rem;
  }

  .fleet-list-header,
  .fleet-record-header,
  .fleet-section-with-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .fleet-list-header > .primary-action-button,
  .fleet-section-with-action > .secondary-action-button,
  .fleet-section-with-action > .fleet-document-link {
    width: 100%;
    justify-content: center;
  }

  .fleet-toolbar,
  .fleet-detail-grid,
  .fleet-summary-grid {
    grid-template-columns: 1fr;
  }

  .fleet-search-control {
    grid-column: auto;
  }

  .fleet-record-title-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .fleet-record-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .fleet-record-tabs {
    gap: var(--space-6);
  }

  .fleet-detail-item,
  .fleet-detail-item:not(:nth-child(3n + 1)),
  .fleet-detail-item:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .fleet-history-list li {
    grid-template-columns: 1fr;
    padding-left: 1.8rem;
    gap: 0.35rem;
  }

  .fleet-report-footer {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }

  .fleet-report-footer-inner {
    align-items: stretch;
    flex-direction: column;
    padding: 0.2rem 0;
    gap: 0.65rem;
  }

  .fleet-report-button {
    width: 100%;
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }

  .fleet-report-preview-body {
    padding: var(--space-3);
  }

  .fleet-report-preview-actions {
    align-items: stretch;
  }

  .fleet-report-print-status {
    width: 100%;
    margin: 0 0 var(--space-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fleet-record-view,
  .fleet-record-panel {
    animation: none;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  body.is-printing-fleet-report * {
    visibility: hidden !important;
  }

  body.is-printing-fleet-report .fleet-report-preview-dialog[open],
  body.is-printing-fleet-report .fleet-report-preview-dialog[open] * {
    visibility: visible !important;
  }

  body.is-printing-fleet-report .fleet-report-preview-dialog[open] {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.is-printing-fleet-report .fleet-report-preview-dialog::backdrop,
  body.is-printing-fleet-report .fleet-report-preview-dialog > .dialog-header,
  body.is-printing-fleet-report .fleet-report-preview-actions {
    display: none !important;
  }

  body.is-printing-fleet-report .fleet-report-preview-body {
    overflow: visible;
    padding: 0;
    background: #ffffff;
  }

  body.is-printing-fleet-report .fleet-report-pages {
    display: block;
  }

  body.is-printing-fleet-report .fleet-report-sheet {
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    break-after: page;
  }

  body.is-printing-fleet-report .fleet-report-sheet:last-child {
    break-after: auto;
  }
}
