.fleet-page .stats-title h1 {
  text-align: left;
}

.fleet-page .stats-main {
  min-width: 0;
  overflow-x: auto;
}

.fleet-filter-card,
.fleet-card {
  min-width: 0;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #8fa9ba;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(13, 37, 58, 0.12);
}

.fleet-filter-card {
  border-color: #7f9fb3;
}

.fleet-card-head,
.fleet-title {
  margin: 0;
  padding: 11px 13px;
  background: linear-gradient(135deg, #0b2d5a 0%, #12446f 70%, #0f7789 100%);
  color: #fff;
}

.fleet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
}

.fleet-card-head h2,
.fleet-title span {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.fleet-period-heading {
  display: grid;
  gap: 3px;
}

.fleet-period-heading span {
  color: #d8eef4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fleet-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfd 100%);
}

.fleet-period-fields {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(180px, 240px);
  gap: 12px;
}

.fleet-period-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.fleet-toolbar label,
.fleet-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #344f62;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fleet-toolbar input,
.fleet-toolbar select,
.fleet-form input,
.fleet-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid #aebfcb;
  border-radius: 6px;
  padding: 10px 11px;
  background: #fff;
  color: #07111f;
  font: 800 13px Arial, Helvetica, sans-serif;
  box-shadow: inset 0 1px 2px rgba(13, 37, 58, 0.06);
}

.fleet-toolbar button {
  min-width: 132px;
  min-height: 40px;
  border: 1px solid #0f7789;
  border-radius: 6px;
  padding: 0 18px;
  background: linear-gradient(135deg, #0f7789 0%, #12446f 100%);
  color: #fff;
  font: 900 12px Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(13, 37, 58, 0.16);
}

.fleet-toolbar button:hover,
.fleet-toolbar button:focus-visible {
  background: linear-gradient(135deg, #12446f 0%, #0b2d5a 100%);
  outline: none;
}

#fleetStatus,
#fleetUpdated,
#fleetModalStatus {
  color: #d8eef4;
  font-size: 12px;
  font-weight: 900;
}

#fleetStatus {
  text-align: right;
}

.fleet-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 88px;
  max-width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-status-pill:empty {
  visibility: hidden;
}

.fleet-register {
  min-width: 0;
}

.fleet-page .fleet-card {
  grid-column: auto;
  background: #fff;
}

.fleet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  text-shadow: none;
}

.fleet-title button {
  flex: 0 0 auto;
  width: 34px;
  height: 32px;
  border: 1px solid #f3a334;
  border-radius: 6px;
  background: #f3a334;
  color: #07111f;
  font: 900 20px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.fleet-title button:hover,
.fleet-title button:focus-visible {
  background: #ffc35f;
  outline: none;
}

.fleet-table-wrap {
  overflow-x: auto;
}

.fleet-page .fleet-table {
  min-width: 760px;
  border-top: 0;
  background: #fff;
  color: #07111f;
  font-size: 12px;
  font-weight: 800;
}

.fleet-page .fleet-row {
  grid-template-columns: 64px minmax(95px, 130px) minmax(140px, 190px) minmax(95px, 150px) minmax(220px, 1fr);
  background: #fff;
}

.fleet-page .fleet-row > div {
  min-height: 34px;
  padding: 8px 10px;
  border-right: 1px solid #b8c8d6;
  border-bottom: 1px solid #b8c8d6;
  display: flex;
  align-items: center;
}

.fleet-page .fleet-head > div {
  background: #d8eaf2;
  color: #102f5e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fleet-page .fleet-row:not(.fleet-head) {
  cursor: pointer;
}

.fleet-page .fleet-row:not(.fleet-head):hover,
.fleet-page .fleet-row:not(.fleet-head):focus-visible {
  outline: 2px solid #0f7789;
  outline-offset: -2px;
  filter: brightness(0.98);
}

.fleet-page .fleet-counts {
  border-top: 1px solid #b8c8d6;
  background: #f8fbfd;
}

.fleet-modal-panel {
  width: min(720px, calc(100vw - 24px));
}

.fleet-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fleet-form input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

#fleetModalStatus {
  color: #536b7a;
}

.delete-fleet-row {
  border-color: #9c2f2a !important;
  background: #fff !important;
  color: #9c2f2a !important;
}

@media (max-width: 760px) {
  .fleet-toolbar,
  .fleet-period-fields,
  .fleet-form {
    grid-template-columns: 1fr;
  }

  .fleet-period-actions {
    justify-content: stretch;
  }

  .fleet-toolbar button {
    width: 100%;
  }

  #fleetStatus {
    text-align: left;
  }
}
