@charset "UTF-8";

/* Fuhrpark page: filter, vehicle cards, management forms. German hyphenation needs lang="de" (set on <html> and .fleet) */
.fleet { container-type: inline-size; font-family: Calibri, "Droid Sans", Arial, sans-serif; color: #202020; text-align: left;
  hyphens: auto; -webkit-hyphens: auto; }
.fleet > :first-child { margin-top: 0; }
.fleet p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.fleet-intro { margin: 0 0 16px; }
.fleet-manage { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; padding: 12px 16px; border: 2px dashed #8a4b00; background: #fff6e0; }
.fleet .fleet-manage-label { flex: 0 0 100%; display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 1px; color: #8a4b00; }
.fleet-button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 2px solid #039; background: #fff; color: #039; font: inherit; font-weight: bold; text-decoration: none; cursor: pointer; }
.fleet-button.is-primary { background: #039; color: #fff; }
.fleet-button.is-admin { border-color: #8a4b00; background: #fff; color: #8a4b00; }
.fleet-button.is-danger { background: #b00000; border-color: #b00000; color: #fff; }
.fleet-button.is-admin.is-admin-delete { color: #b00000; }
.fleet-button.is-nav { background: #eaf0fa; }
.fleet-button:hover, .fleet-button:focus { text-decoration: underline; }
.fleet-button:focus-visible, .fleet-back:focus-visible, .fleet-more:focus-visible { outline: 3px solid #ffe600; outline-offset: 1px; }
.fleet-back { display: inline-flex; align-items: center; min-height: 44px; font-weight: bold; color: #039; text-decoration: none; }
.fleet-back:hover, .fleet-back:focus { text-decoration: underline; }

.fleet-filter { margin: 0 0 16px; padding: 12px 16px 14px; border-top: 1px solid #c5ccd6; border-bottom: 1px solid #c5ccd6; }
.fleet-filter-label { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 14px; font-weight: bold; color: #53616b; }
.fleet-filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fleet-filter-link { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px 0 16px;
  border: 2px solid #7f93b8; border-radius: 22px; background: #fff; color: #039; font-weight: bold; text-decoration: none; }
.fleet-filter-link.is-active { padding-left: 12px; border-color: #039; background: #039; color: #fff; }
.fleet-filter-link:hover { border-color: #039; background: #eaf0fa; }
.fleet-filter-link.is-active:hover { background: #039; }
.fleet-filter-link:focus-visible { outline: 3px solid #ffe600; outline-offset: 1px; }
.fleet-filter-count { min-width: 24px; padding: 2px 6px; border-radius: 12px; background: #e0e8f5; color: #039; font-size: 14px; line-height: 1.3; text-align: center; }
.fleet-filter-link.is-active .fleet-filter-count { background: #fff; }
.fleet-filter-result { margin: 10px 0 0; font-size: 16px; }
.fleet-filter-result a { margin-left: 8px; font-weight: bold; color: #039; }

/* Cards: narrow = photo (96 px, 4:3) on the left, wide = 3 columns with the photo on top */
.fleet-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.fleet-card { box-sizing: border-box; min-width: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr);
  grid-template-areas: "photo body" "bar body" "more more"; grid-template-rows: auto 1fr auto; background: #fff; border: 2px solid #039; }
.fleet-photo { grid-area: photo; min-width: 0; }
.fleet-photo a { display: block; }
.fleet-photo img, .fleet-nophoto { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #d9dde0; }
.fleet-bar { grid-area: bar; display: flex; flex-wrap: wrap; justify-content: flex-end; border-top: 3px solid #8a4b00; background: #fff6e0; }
.fleet-bar a { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px;
  color: #8a4b00; font-weight: bold; text-decoration: none; white-space: nowrap; }
.fleet-bar a .fleet-icon { flex: none; }
.fleet-bar a.fleet-bar-delete { color: #b00000; }
.fleet-bar a:hover, .fleet-bar a:focus { text-decoration: underline; }
.fleet-body { grid-area: body; min-width: 0; padding: 12px 14px; overflow-wrap: break-word; } /* fallback if the browser has no German hyphenation dictionary */
.fleet-type { font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: 1px; color: #53616b; }
.fleet-short { margin-top: 3px; font-size: 26px; line-height: 1.15; font-weight: bold; color: #039; hyphens: auto; }
.fleet-long { margin-top: 2px; font-size: 16px; line-height: 1.3; font-weight: bold; hyphens: auto; }
.fleet-unit { margin-top: 2px; font-size: 16px; line-height: 1.3; }
.fleet-facts { margin: 10px 0 0; }
.fleet-facts > div { margin-top: 6px; }
.fleet-facts dt { font-size: 12px; line-height: 1.3; color: #53616b; }
.fleet-facts dd { margin: 0; font-size: 16px; line-height: 1.3; hyphens: auto; }
.fleet-more { grid-area: more; box-sizing: border-box; display: flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-top: 2px solid #039; background: #eaf0fa; font-weight: bold; color: #039; text-decoration: none; }
.fleet-more:hover, .fleet-more:focus { text-decoration: underline; }

/* Forms and dialogs */
.fleet-message { margin: 0 0 16px; padding: 10px 14px; border-left: 6px solid #039; background: #f2f3f4; font-size: 16px; line-height: 1.4; }
.fleet-message ul { margin: 0; padding-left: 20px; }
.fleet-message.is-ok { border-color: #1a7f37; background: #eef8f0; }
.fleet-message.is-warning { border-color: #c77c00; background: #fff6e0; }
.fleet-message.is-error { border-color: #b00000; background: #fdeeee; }
.fleet-fields { display: grid; grid-template-columns: 1fr; gap: 12px 16px; margin: 0 0 12px; }
.fleet-field { display: block; min-width: 0; margin: 0 0 12px; }
.fleet-fields > .fleet-field { margin: 0; }
.fleet-field > span { display: block; margin-bottom: 4px; font-size: 14px; line-height: 1.3; color: #53616b; }
.fleet-field input[type="text"], .fleet-field select, .fleet-field textarea { box-sizing: border-box; display: block; width: 100%; min-height: 44px;
  padding: 8px 10px; border: 2px solid #53616b; background: #fff; color: #202020; font: inherit; font-size: 16px; }
.fleet-field textarea { min-height: 140px; resize: vertical; }
.fleet-field input[type="file"] { display: block; width: 100%; min-height: 44px; font: inherit; font-size: 16px; }
.fleet-upload { margin: 0 0 12px; }
.fleet-upload .fleet-dropzone-text { display: none; }
.fleet-upload.is-enhanced .fleet-dropzone { position: relative; margin: 0; }
.fleet-upload.is-enhanced .fleet-dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.fleet-upload.is-enhanced .fleet-dropzone > .fleet-dropzone-text { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 190px; margin: 0; padding: 24px 16px; border: 3px dashed #039; border-radius: 6px; background: #f5f7fb; color: #202020; font-size: 16px; line-height: 1.3;
  text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s; }
.fleet-dropzone-icon { box-sizing: content-box; padding: 12px; border-radius: 50%; background: #e0e8f5; color: #039; transition: transform .15s; }
.fleet-dropzone-title, .fleet-dropzone-drop { font-size: 18px; color: #039; }
.fleet-dropzone-drop { display: none; }
.fleet-dropzone-or { color: #53616b; }
.fleet-dropzone-pick { font-weight: bold; color: #039; text-decoration: underline; text-underline-offset: 3px; }
.fleet-dropzone-text small { font-size: 14px; color: #53616b; }
.fleet-upload.is-enhanced .fleet-dropzone:hover > .fleet-dropzone-text { border-color: #039; background: #eaf0fa; }
.fleet-upload.is-enhanced .fleet-dropzone:focus-within > .fleet-dropzone-text { border-color: #039; outline: 3px solid #ffe600; outline-offset: 1px; }
.fleet-upload.is-enhanced .fleet-dropzone.is-dragover > .fleet-dropzone-text { border-style: solid; border-color: #039; background: #039; color: #fff; }
.fleet-dropzone.is-dragover .fleet-dropzone-icon { background: #fff; transform: translateY(-4px); }
.fleet-dropzone.is-dragover .fleet-dropzone-title, .fleet-dropzone.is-dragover .fleet-dropzone-or, .fleet-dropzone.is-dragover small { display: none; }
.fleet-dropzone.is-dragover .fleet-dropzone-drop { display: block; color: #fff; }
.fleet-upload-status { margin: 12px 0 0; padding: 8px 12px; border-left: 4px solid #039; background: #f2f3f4; font-size: 16px; }
.fleet-upload-status:empty { display: none; }
.fleet-upload-status.is-error { border-color: #b00000; background: #fdeeee; color: #b00000; font-weight: bold; }
.fleet-upload-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.fleet-upload-list:empty { display: none; }
.fleet-upload-list li { position: relative; display: flex; flex-direction: column; min-width: 0; border: 2px solid #039; background: #fff; }
.fleet-upload-list img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #d9dde0; }
.fleet-upload-name { padding: 6px 10px 0; font-size: 14px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet-upload-list small { padding: 0 10px 8px; font-size: 13px; color: #53616b; }
.fleet-upload-remove { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #b00000; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.fleet-upload-remove:hover, .fleet-upload-remove:focus { background: #b00000; color: #fff; }
.fleet-upload-remove:focus { outline: 3px solid #ffe600; outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .fleet-dropzone-text, .fleet-dropzone-icon { transition: none; } }
.fleet-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fleet-choices { min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
.fleet-choices legend { padding: 0; margin-bottom: 4px; font-size: 14px; line-height: 1.3; color: #53616b; }
.fleet-choice-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fleet-choice { position: relative; display: block; }
.fleet-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fleet-choice span { box-sizing: border-box; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid #039; background: #fff; color: #039; font-weight: bold; cursor: pointer; }
.fleet-choice input:checked + span { background: #039; color: #fff; }
.fleet-choice input:focus + span { outline: 3px solid #ffe600; outline-offset: 1px; }
.fleet-hint { font-size: 14px; color: #53616b; }
.fleet-pictures { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 0 0 16px; }
.fleet-picture { position: relative; min-width: 0; border: 2px solid #c5ccd6; background: #fff; }
.fleet-picture:has(.fleet-picture-choose input:checked) { border-color: #039; box-shadow: 0 0 0 2px #039; }
.fleet-picture img, .fleet-picture .fleet-nophoto { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.fleet-picture label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; font-size: 16px; }
.fleet-picture label.fleet-picture-choose { position: relative; display: block; min-height: 0; padding: 0; overflow: hidden; cursor: pointer; }
.fleet-picture-choose input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fleet-picture-choose input:focus-visible ~ img, .fleet-picture-choose input:focus-visible ~ .fleet-nophoto { outline: 3px solid #ffe600; outline-offset: -3px; }
.fleet-picture-badge { position: absolute; top: 8px; left: 8px; display: none; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 3px;
  background: #039; color: #fff; font-size: 14px; font-weight: bold; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.fleet-picture-badge svg { color: #ffe600; }
.fleet-picture-pick { position: absolute; right: 0; bottom: 0; left: 0; padding: 8px; background: rgba(0, 51, 153, .88); color: #fff; font-size: 14px; font-weight: bold;
  text-align: center; opacity: 0; transition: opacity .15s; }
.fleet-picture-choose:hover .fleet-picture-pick, .fleet-picture-choose input:focus-visible ~ .fleet-picture-pick { opacity: 1; }
.fleet-picture-choose input:checked ~ .fleet-picture-badge { display: inline-flex; }
.fleet-picture-choose input:checked ~ .fleet-picture-pick { display: none; }
.fleet-picture label.is-remove { color: #b00000; font-weight: bold; }
.fleet-picture:has(.is-remove input:checked) img { opacity: .35; }
.fleet-picture:has(.is-remove input:checked) { border-color: #b00000; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .fleet-picture-pick { transition: none; } }
.fleet-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.fleet-dialog-car { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 16px; padding: 12px; border: 2px solid #039; }
.fleet-dialog-car img { flex: none; width: 120px; max-width: 40%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.fleet-dialog-car > div { min-width: 0; }

@container (min-width: 560px) {
  .fleet-grid { grid-template-columns: 1fr 1fr 1fr; }
  .fleet-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "bar" "body" "more"; grid-template-rows: auto auto 1fr auto; }
  .fleet-fields { grid-template-columns: 1fr 1fr; }
}
@container (max-width: 559px) {
  .fleet-bar a { flex: 1 1 0; padding: 0; }
  .fleet-bar a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fleet-short { font-size: 24px; }
  .fleet-actions .fleet-button { flex: 1 1 auto; }
}
