.auth-secondary-action {
  margin-top: .75rem;
  text-align: center;
}
:root {
  --bleu: #1d5c9e;
  --bleu-fonce: #123f70;
  --vert: #2e8b57;
  --rouge: #c0392b;
  --gris-fond: #f4f6f8;
  --gris-bordure: #dde3e8;
  --texte: #1f2933;
  --texte-muted: #667080;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--gris-fond);
  color: var(--texte);
  line-height: 1.5;
}

a { color: var(--bleu); }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 16px 60px;
}

h1 { font-size: 1.5rem; margin-top: 8px; }
h2 { font-size: 1.15rem; margin-top: 0; }
h3, h4 { margin-bottom: 6px; }

.muted { color: var(--texte-muted); }
.small { font-size: 0.85rem; }

.birthday-banner {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid #f2c94c;
  border-radius: var(--radius);
  background: #fff7d6;
  color: #624b00;
}

.profile-details {
  display: grid;
  gap: 10px;
  margin: 0;
}
.profile-details div {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2fr;
  gap: 12px;
}
.profile-details dt { font-weight: 700; }
.profile-details dd { margin: 0; }

.user-document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.user-document-card h3 {
  margin-top: 0;
}

.user-document-alert {
  border-color: #d69e2e;
  box-shadow: inset 4px 0 #d69e2e;
}

.document-upload-form {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.document-expiry-alert {
  margin: .75rem 0;
}

.admin-step {
  border: 1px solid var(--gris-bordure);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}

.admin-step label:last-child { margin-bottom: 0; }

.contract-list { display: grid; gap: 8px; }
.contract-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--gris-bordure);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.contract-timeline { padding-left: 22px; }
.contract-timeline li { color: var(--texte-muted); margin-bottom: 7px; }
.contract-timeline li.done { color: var(--vert); font-weight: 700; }
.signature-pad {
  display: block;
  width: 100%;
  height: 180px;
  border: 2px dashed #9aa8b5;
  border-radius: 8px;
  background: #fff;
  touch-action: none;
  margin: 10px 0 14px;
}
.contract-hash { overflow-wrap: anywhere; }

/* Barre de connexion */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
}
.auth-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 380px;
}
.auth-card h1 { margin-top: 0; font-size: 1.3rem; }

/* Barre de navigation */
.topbar {
  background: var(--bleu-fonce);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.mainnav { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.mainnav a { color: #e6f0fa; text-decoration: none; font-size: 0.95rem; }
.mainnav a:hover { text-decoration: underline; }
.topbar-user { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #e6f0fa; }
.user-identity { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.role-badge {
  background: rgba(255,255,255,0.18);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}
.role-list { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }

.link-button {
  background: none;
  border: none;
  color: #e6f0fa;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}

/* Cartes de synthèse accueil */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.card-link { text-decoration: none; color: inherit; }
.card {
  background: #fff;
  border: 1px solid var(--gris-bordure);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.cards-grid .card-number { font-size: 2rem; font-weight: 700; color: var(--bleu); }
.cards-grid .card-label { color: var(--texte-muted); font-size: 0.9rem; }

.section { margin-top: 28px; }

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

/* Formulaires */
label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid var(--gris-bordure);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--bleu);
  outline-offset: 1px;
}
.form-card { background: #fbfcfd; }
.checkbox-group {
  border: 1px solid var(--gris-bordure);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.checkbox-group legend { font-size: 0.9rem; font-weight: 600; padding: 0 4px; }
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-weight: 500;
}
.checkbox-option:last-child { margin-bottom: 0; }
.checkbox-option input {
  display: inline-block;
  width: auto;
  margin: 0;
}
.compact-form { margin-top: 8px; min-width: 230px; }

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
.btn-block { width: 100%; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; }
.btn-primary { background: var(--bleu); color: #fff; }
.btn-secondary { background: #e8edf2; color: var(--texte); }
.btn-success { background: var(--vert); color: #fff; }
.btn-danger { background: var(--rouge); color: #fff; }
.inline-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* Badges de statut */
.badge {
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eee;
  color: #444;
}
.badge-en_attente, .badge-ouverte { background: #fdf1d6; color: #92660a; }
.badge-validee, .badge-en_cours, .badge-en_service { background: #dbeeff; color: #12588f; }
.badge-livree, .badge-cloturee { background: #dcf3e3; color: #196c3f; }
.badge-refusee, .badge-hors_service { background: #fbe0de; color: #a12f22; }
.badge-en_reparation { background: #f4e3ff; color: #6b2fa1; }
.badge-module-stock { background: #dbeeff; color: #12588f; }
.badge-module-vehicule { background: #f4e3ff; color: #6b2fa1; }
.badge-module-general { background: #e8edf2; color: #444; }

/* Tableaux classiques */
.table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--gris-bordure); font-size: 0.9rem; }
.row-alert { background: #fff4f3; }

/* Tableaux "grid" (remplacent des <table> quand une ligne contient un <form>) */
.grid-table { border: 1px solid var(--gris-bordure); border-radius: var(--radius); overflow: hidden; background: #fff; }
.grid-table-header, .grid-table-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
  font-size: 0.88rem;
}
.grid-table-header-5, .grid-table-row-5 { grid-template-columns: 1.2fr 1.5fr 1fr 0.9fr 1.4fr; }
.grid-table-header { background: #f0f3f6; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; color: var(--texte-muted); }
.grid-table-row { border-top: 1px solid var(--gris-bordure); margin: 0; }
.grid-table-row.row-alert { background: #fff4f3; }
.stacked-actions { display: flex; flex-direction: column; gap: 4px; }

.doc-list { list-style: none; padding: 0; margin: 8px 0; }
.doc-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--gris-bordure); }
.doc-list .doc-label { font-weight: 600; }
.doc-list .doc-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.doc-upload summary { cursor: pointer; list-style: none; }
.doc-upload summary::-webkit-details-marker { display: none; }
.doc-upload[open] { width: 100%; }
.doc-upload .form-card { margin-top: 8px; }

.equipment-checklist {
  margin: 14px 0;
  border-top: 1px solid var(--gris-bordure);
  padding-top: 12px;
}
.equipment-checklist > summary {
  cursor: pointer;
  font-weight: 700;
}
.equipment-domain {
  margin: 18px 0 6px;
  color: var(--bleu);
}
.equipment-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr) minmax(280px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border-top: 1px dashed var(--gris-bordure);
}
.equipment-row-alert {
  background: #fff4f3;
  border-left: 4px solid #c0392b;
}
.equipment-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-self: center;
}
.equipment-row label {
  margin: 0;
  font-size: 0.78rem;
}
.equipment-row input,
.equipment-row select {
  width: 100%;
}
.stock-link-list {
  min-width: 0;
  max-height: 180px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--gris-bordure);
  border-radius: 6px;
  background: #fff;
}
.stock-link-list legend {
  padding: 0 4px;
  font-size: 0.78rem;
  color: var(--texte-muted);
}
.stock-link-list .stock-link-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.76rem;
}
.stock-link-list .stock-link-option:hover {
  background: #eef4fa;
}
.stock-link-list .stock-link-option input {
  width: auto;
  margin-top: 3px;
  flex: 0 0 auto;
}

.vehicle-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.vehicle-compact-grid,
.document-grid,
.vehicle-module-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.vehicle-compact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.vehicle-compact-card .vehicle-thumbnail {
  flex: 0 0 auto;
}

.vehicle-photo-upload {
  margin: 0;
  flex: 0 0 auto;
}

.vehicle-photo-upload label {
  position: relative;
  display: block;
  cursor: pointer;
}

.vehicle-photo-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.vehicle-photo-upload-hint {
  position: absolute;
  inset: auto 5px 5px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(20, 38, 54, .82);
  color: #fff;
  font-size: .68rem;
  text-align: center;
  opacity: 0;
  transition: opacity .15s ease;
}

.vehicle-photo-upload label:hover .vehicle-photo-upload-hint,
.vehicle-photo-upload label:focus-within .vehicle-photo-upload-hint {
  opacity: 1;
}

.maintenance-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 150px));
  gap: .75rem;
  margin: .8rem 0;
}

.maintenance-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--gris-bordure);
}

.vehicle-detail-photo {
  width: min(280px, 100%);
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.vehicle-module-links {
  margin-top: 1.25rem;
}

.vehicle-module-links a {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  color: inherit;
  text-decoration: none;
}

.vehicle-module-links a:hover {
  border-color: var(--bleu);
  transform: translateY(-2px);
}
.vehicle-photo-wrap { flex: 0 0 auto; }
.vehicle-thumbnail {
  width: 132px;
  height: 92px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--gris-bordure);
  background: #eef2f5;
}
.vehicle-thumbnail-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.vehicle-summary { min-width: 0; flex: 1; }
.vehicle-registration { color: var(--texte-muted); font-weight: 600; margin-bottom: 3px; }
.vehicle-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 7px; color: var(--texte-muted); }
.vehicle-proposals { display: grid; gap: 16px; }
.vehicle-proposal-card { border-left: 4px solid #d69e2e; }
.validation-actions { margin-top: 14px; }
.vehicle-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
.vehicle-form .btn { justify-self: start; }

details { margin-top: 10px; }
details summary { cursor: pointer; color: var(--bleu); font-weight: 600; font-size: 0.9rem; }
details form { margin-top: 10px; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab { padding: 8px 14px; border-radius: 999px; background: #e8edf2; color: var(--texte); text-decoration: none; font-size: 0.9rem; }
.tab-active { background: var(--bleu); color: #fff; }

.task-kanban-tab {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.task-kanban-panel[hidden] {
  display: none;
}

.quicklinks { display: flex; gap: 10px; flex-wrap: wrap; }

.stock-quick-update {
  margin: 0;
  flex-wrap: nowrap;
}

.stock-quick-update input {
  width: 78px;
}

.stock-supplier-link-form {
  margin: 0;
  min-width: 0;
}

.stock-supplier-link-form input {
  min-width: 0;
  width: 100%;
}

.supplier-list {
  display: grid;
  gap: .75rem;
  margin-bottom: 1rem;
}

.supplier-card details {
  margin: .75rem 0;
}

.task-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.rh-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  align-items: start;
}

.rh-filter {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: .75rem;
  align-items: end;
  margin: 1rem 0;
}

.planning-latest {
  border-left: 5px solid var(--bleu);
  margin: 1rem 0;
}

.badge-en_attente { background: #fff1cc; color: #805500; }
.badge-validee { background: #daf3df; color: #17672a; }
.badge-refusee { background: #fbe0de; color: #9a2920; }
.role-responsable_rh { background: #efe2ff; color: #653397; }

.task-category-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.task-category-card .card-number {
  min-width: 54px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--bleu);
  text-align: center;
}

.task-category-card p {
  margin: .3rem 0 0;
}

.task-list {
  display: grid;
  gap: .75rem;
}

.task-card {
  margin: 0;
}

.kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: .85rem;
  align-items: start;
  padding: .25rem 0 1rem;
  overflow-x: auto;
}

.kanban-column {
  min-height: 180px;
  padding: .75rem;
  border: 1px solid var(--gris-bordure);
  border-top: 4px solid #8492a6;
  border-radius: var(--radius);
  background: #edf1f5;
}

.kanban-column-en_cours { border-top-color: var(--bleu); }
.kanban-column-en_attente { border-top-color: #d98c10; }
.kanban-column-cloturee { border-top-color: var(--vert); }

.kanban-column-drop-target {
  background: #e1edf8;
  outline: 2px dashed var(--bleu);
  outline-offset: -5px;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .7rem;
}

.kanban-column-header h2 {
  margin: 0;
  font-size: 1rem;
}

.kanban-cards {
  display: grid;
  gap: .7rem;
}

.kanban-cards .task-card {
  padding: .85rem;
  box-shadow: 0 1px 4px rgba(18, 63, 112, .08);
}

.task-card-draggable {
  cursor: grab;
  transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease;
}

.task-card-draggable:active { cursor: grabbing; }

.task-card-dragging {
  opacity: .55;
  transform: rotate(1deg);
  box-shadow: 0 8px 18px rgba(18, 63, 112, .2);
}

.task-card-saving {
  cursor: wait;
  opacity: .7;
  pointer-events: none;
}

.drag-handle {
  display: inline-block;
  margin-right: .35rem;
  color: var(--texte-muted);
  font-size: 1.1rem;
  cursor: grab;
}

.drag-instruction { margin: .45rem 0; }

.kanban-message {
  position: sticky;
  top: .5rem;
  z-index: 5;
}

.task-invite {
  margin: .75rem 0;
}

.task-invite > summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
}

.task-invite > summary::-webkit-details-marker { display: none; }

.task-invite .compact-form {
  margin-top: .65rem;
  padding: .65rem;
  border: 1px solid var(--gris-bordure);
  border-radius: 6px;
  background: #f7f9fb;
}

.task-invite .checkbox-group {
  max-height: 190px;
  overflow-y: auto;
}

.task-card-badges,
.task-card-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.task-label {
  background: #e7defd;
  color: #59359a;
}

.task-card-summary {
  margin: .65rem 0;
  color: var(--texte-muted);
  font-size: .78rem;
}

.task-status-form,
.attachment-form {
  display: grid;
  gap: .4rem;
  width: 100%;
}

.task-status-form label,
.attachment-form label {
  font-size: .8rem;
  font-weight: 600;
}

.task-attachments {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid var(--gris-bordure);
}

.task-attachments h3 {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .55rem;
  font-size: .95rem;
}

.attachment-list {
  margin: 0 0 .65rem;
  padding-left: 1.15rem;
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .35rem;
}

.attachment-item form { flex: none; }

.task-audit-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .5rem 0;
  font-size: .82rem;
}

.badge-deleted {
  background: #fbe0de;
  color: #8c2921;
}

.audit-entry-deleted {
  border-left: 4px solid #c7463b;
  background: #fff9f8;
}

.audit-deletion-meta {
  padding: .55rem .7rem;
  border-radius: 5px;
  background: #fbe0de;
  color: #7e2921;
  font-size: .85rem;
}

.badge-overdue {
  background: #f6c5c0;
  color: #7d1f18;
  border: 1px solid #d77870;
}

.inline-upload-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: .65rem;
  margin: .65rem 0;
  padding: .65rem;
  border: 1px dashed var(--gris-bordure);
  border-radius: 6px;
  background: #f7f9fb;
}

.request-history-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: .55rem;
  margin: .65rem 0;
}

.request-history-details div {
  padding: .55rem;
  border-radius: 5px;
  background: #f7f9fb;
}

.request-history-details dt {
  color: var(--texte-muted);
  font-size: .78rem;
}

.request-history-details dd {
  margin: .2rem 0 0;
}

.service-confirmation-page {
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
}

.service-confirmation-dialog {
  width: min(100%, 520px);
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(18, 63, 112, .18);
}

.service-confirmation-dialog h1 {
  margin-top: 0;
}

.service-confirmation-question {
  font-size: 1.15rem;
}

.attachment-form input[type="file"] {
  width: 100%;
  font-size: .8rem;
}

.task-comments {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--gris-bordure);
}

.task-comments h3 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .65rem;
  font-size: 1rem;
}

.comment-count {
  min-width: 1.4rem;
  padding: .1rem .4rem;
  border-radius: 999px;
  background: #e8edf2;
  color: var(--texte-muted);
  font-size: .75rem;
  text-align: center;
}

.comment-thread {
  display: grid;
  gap: .55rem;
}

.task-comment {
  padding: .65rem .75rem;
  border-left: 3px solid var(--bleu);
  border-radius: 4px;
  background: #f7f9fb;
}

.task-comment-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  font-size: .8rem;
}

.task-comment-meta time {
  color: var(--texte-muted);
}

.task-comment p {
  margin: .4rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-form {
  display: grid;
  gap: .45rem;
  margin-top: .75rem;
}

.comment-form textarea {
  resize: vertical;
}

.comment-form .btn {
  justify-self: start;
}

.comment-locked {
  margin: .75rem 0 0;
}

.vehicle-task-group {
  margin: 1.25rem 0;
  border: 1px solid var(--gris-bordure);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f7f9fb;
}

.vehicle-task-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--gris-bordure);
  background: #eef3f7;
}

.vehicle-task-group-header div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.vehicle-task-group-header span {
  color: var(--texte-muted);
  font-size: .85rem;
  font-weight: 600;
}

.vehicle-task-group .task-list {
  padding: .85rem;
}

.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 0.9rem; }
.alert-error { background: #fbe0de; color: #a12f22; }

@media (max-width: 640px) {
  .grid-table-header, .grid-table-row,
  .grid-table-header-5, .grid-table-row-5 {
    grid-template-columns: 1fr 1fr;
  }
  .vehicle-task-group-header {
    align-items: stretch;
    flex-direction: column;
  }
  .vehicle-task-group-header .btn {
    text-align: center;
  }
  .task-card .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .task-card .inline-actions .btn,
  .task-card .inline-actions form,
  .task-card .inline-actions form .btn {
    width: 100%;
    text-align: center;
  }
  .vehicle-card-header { align-items: stretch; }
  .vehicle-thumbnail { width: 104px; height: 82px; }
  .vehicle-form { grid-template-columns: 1fr; }
  .equipment-row { grid-template-columns: 1fr; }
  .rh-filter { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .vehicle-card-header { flex-direction: column; }
  .vehicle-compact-card { flex-direction: column; }
  .vehicle-compact-card .vehicle-thumbnail { flex: none; }
  .vehicle-photo-wrap, .vehicle-photo-wrap a { width: 100%; }
  .vehicle-thumbnail { width: 100%; height: 180px; }
}
