.fleet-manager { min-width: 0; }
.fleet-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.fleet-toolbar h3 { margin: 0; }
.fleet-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid #d5d7d9; }
.fleet-tabs button { background: transparent; color: #37393d; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 14px; min-height: 44px; font: inherit; cursor: pointer; }
.fleet-tabs button[aria-selected=true] { color: #963c07; border-bottom-color: #ec6b15; font-weight: 700; }
.fleet-tabs span { font-variant-numeric: tabular-nums; margin-left: 6px; }
.fleet-search { display: grid; gap: 5px; width: min(100%, 300px); font-size: 13px; }
.fleet-grid-scroll { overflow-x: auto; }
.fleet-manager table { width: 100%; }
.fleet-manager th, .fleet-manager td { vertical-align: middle; }
.fleet-manager td select { max-width: 230px; min-width: 140px; }
.fleet-row-actions, .fleet-operation-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fleet-row-actions button { min-height: 40px; padding: 8px 12px; white-space: nowrap; }
.fleet-state { font-size: 13px; font-weight: 600; }
.fleet-fault { background: #f8bbbb; color: #171717; padding: 5px 8px; border-radius: 4px; }
button.fleet-delete { color: #a91b25; border: 1px solid #d8999e; background: #fff5f5; padding: 10px 14px; border-radius: 5px; cursor: pointer; font: inherit; }
button.fleet-delete:hover { background: #fbe0e2; }
.fleet-dialog { width: min(960px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #d4d4d4; border-radius: 8px; color: #26272a; background: #fff; box-shadow: 0 18px 70px #0004; }
.fleet-dialog::backdrop { background: #15171999; }
.fleet-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 2; padding: 18px 24px; border-bottom: 1px solid #ddd; background: white; }
.fleet-dialog h2 { font-size: 22px; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.fleet-dialog-body { padding: 24px; }
.fleet-dialog .vehicle-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.fleet-dialog label { display: grid; gap: 7px; font-size: 14px; min-width: 0; }
.fleet-dialog input, .fleet-dialog select, .fleet-dialog textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #c9ccd0; border-radius: 5px; font: inherit; background: #fff; color: #24262a; }
.fleet-dialog :disabled { background: #f5f6f7; color: #52555a; }
.fleet-dialog .primary-button { background: #ed6a16; color: #171717; border: 1px solid #ce5106; box-shadow: none; }
.fleet-dialog .primary-button:hover { background: #f58039; }
.fleet-dialog input[type=checkbox] { accent-color: #c8510b; }
.fleet-dialog .vehicle-editor > button[type=submit], .fleet-form-error { grid-column: 1 / -1; }
.fleet-form-error, .fleet-error { color: #b31b29; white-space: pre-wrap; }
.fleet-form-error:empty { display: none; }
.fleet-history { margin-top: 28px; border-top: 1px solid #ddd; padding-top: 20px; }
.fleet-history h3 { font-size: 18px; }
.fleet-history article { border-bottom: 1px solid #e5e7eb; padding: 10px 0; overflow-wrap: anywhere; }
.fleet-history article p { margin: 6px 0; white-space: pre-wrap; }
.fleet-history dl { display: flex; flex-wrap: wrap; gap: 8px; }
.fleet-history dd { margin: 0; }
.fleet-confirm { display: grid; gap: 18px; }
.fleet-confirm p { margin: 0; }
.fleet-confirm .fleet-confirm-check { display: flex; align-items: flex-start; gap: 10px; }
.fleet-confirm input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; }
.fleet-operation-actions { margin-top: 20px; }
@media (max-width: 600px) {
  .fleet-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .fleet-dialog > header, .fleet-dialog-body { padding: 16px; }
  .fleet-dialog .vehicle-editor { grid-template-columns: minmax(0, 1fr); }
  .fleet-dialog h2 { font-size: 20px; }
  .fleet-tabs button { padding: 10px; }
}
