/* ==========================================================================
   OPNR Fleet Manager
   Admin CSS
   Partie 1/4
   ========================================================================== */

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
	--fleet-primary: #07455b;
	--fleet-primary-dark: #053447;

	--fleet-secondary: #eef6f8;

	--fleet-success: #2e8b57;
	--fleet-warning: #d97706;
	--fleet-danger: #c0392b;
	--fleet-info: #2563eb;

	--fleet-border: #dfe5ea;

	--fleet-text: #1f2937;
	--fleet-text-light: #6b7280;

	--fleet-bg: #f7f9fb;

	--fleet-radius: 10px;

	--fleet-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);

	--fleet-transition: 0.2s ease;

	--fleet-max-width: 1400px;
}

/* ==========================================================================
   Base
   ========================================================================== */

.opnr-fleet-dashboard,
.opnr-fleet-card {
	box-sizing: border-box;

	font-family:
		-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	color: var(--fleet-text);
}

.opnr-fleet-dashboard {
	max-width: var(--fleet-max-width);

	margin: 40px auto;
}

.opnr-fleet-dashboard * {
	box-sizing: border-box;
}

/* ==========================================================================
   Header
   ========================================================================== */

.opnr-fleet-dashboard-header {
	display: flex;

	justify-content: space-between;

	align-items: center;

	gap: 30px;

	margin-bottom: 35px;
}

.opnr-fleet-dashboard-title {
	margin: 0;

	font-size: 34px;

	font-weight: 700;

	color: var(--fleet-primary);
}

.opnr-fleet-dashboard-description {
	margin-top: 8px;

	color: var(--fleet-text-light);

	line-height: 1.6;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.opnr-fleet-card {
	background: #fff;

	border: 1px solid var(--fleet-border);

	border-radius: var(--fleet-radius);

	box-shadow: var(--fleet-shadow);

	margin-bottom: 35px;

	overflow: hidden;
	padding: 20px;
	margin: 30px 0;
}

.opnr-fleet-card-header {
	display: flex;

	justify-content: space-between;

	align-items: flex-start;

	gap: 25px;

	padding: 28px;

	border-bottom: 1px solid var(--fleet-border);
}

.opnr-fleet-card-title {
	margin: 0;

	font-size: 24px;

	color: var(--fleet-primary);
}

.opnr-fleet-card-description {
	margin-top: 8px;

	color: var(--fleet-text-light);

	line-height: 1.6;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.opnr-fleet-section {
	padding: 30px;
}

.opnr-fleet-section-header {
	display: flex;

	justify-content: space-between;

	align-items: flex-start;

	gap: 25px;

	margin-bottom: 30px;
}

.opnr-fleet-section-header h3 {
	margin: 0;

	font-size: 22px;
}

.opnr-fleet-section-header p {
	margin-top: 8px;

	color: var(--fleet-text-light);
}

/* ==========================================================================
   Formulaire
   ========================================================================== */

.opnr-fleet-form {
	width: 100%;
}

.opnr-fleet-form-grid {
	display: grid;

	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

	gap: 22px;
}

.opnr-fleet-field {
	display: flex;

	flex-direction: column;
}

.opnr-fleet-field-full {
	grid-column: 1 / -1;
}

.opnr-fleet-field label {
	font-weight: 600;

	margin-bottom: 8px;
}

.opnr-fleet-field span {
	color: var(--fleet-danger);
}

.opnr-fleet-field-help {
	margin-top: 7px;

	color: var(--fleet-text-light);

	font-size: 13px;
}

/* ==========================================================================
   Inputs
   ========================================================================== */

.opnr-fleet-field input[type='text'],
.opnr-fleet-field input[type='email'],
.opnr-fleet-field input[type='number'],
.opnr-fleet-field input[type='search'],
.opnr-fleet-field input[type='file'],
.opnr-fleet-field select,
.opnr-fleet-field textarea {
	width: 100%;

	border: 1px solid var(--fleet-border);

	border-radius: 8px;

	padding: 12px 14px;

	font-size: 15px;

	transition: var(--fleet-transition);

	background: #fff;
}

.opnr-fleet-field textarea {
	resize: vertical;

	min-height: 120px;
}

.opnr-fleet-field input:focus,
.opnr-fleet-field textarea:focus,
.opnr-fleet-field select:focus {
	outline: none;

	border-color: var(--fleet-primary);

	box-shadow: 0 0 0 3px rgba(7, 69, 91, 0.1);
}

/* ==========================================================================
   Actions formulaire
   ========================================================================== */

.opnr-fleet-form-actions {
	display: flex;

	gap: 15px;

	margin-top: 30px;

	flex-wrap: wrap;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.opnr-fleet-button {
	display: inline-flex;

	align-items: center;

	justify-content: center;

	gap: 8px;

	cursor: pointer;

	text-decoration: none;

	border: none;

	border-radius: 8px;

	padding: 12px 20px;

	font-weight: 600;

	transition: var(--fleet-transition);
}

.opnr-fleet-button:hover {
	transform: translateY(-2px);
}

.opnr-fleet-button-primary {
	background: var(--fleet-primary);

	color: #fff;
}

.opnr-fleet-button-primary:hover {
	background: var(--fleet-primary-dark);
}

.opnr-fleet-button-secondary {
	background: #fff;

	border: 1px solid var(--fleet-border);

	color: var(--fleet-text);
}

.opnr-fleet-button-secondary:hover {
	background: #f5f5f5;
}

.opnr-fleet-button-danger {
	background: var(--fleet-danger);

	color: #fff;
}

.opnr-fleet-button-danger:hover {
	background: #992d22;
}

.opnr-fleet-button-small {
	padding: 8px 14px;

	font-size: 13px;
}

/* ==========================================================================
   Toolbar
   ========================================================================== */

.opnr-fleet-toolbar {
	margin-bottom: 30px;
}

.opnr-fleet-toolbar-fields {
	display: grid;

	grid-template-columns:
		250px
		1fr
		auto;

	gap: 20px;

	align-items: end;
}

.opnr-fleet-toolbar-actions {
	display: flex;

	gap: 12px;

	flex-wrap: wrap;
}

/* ==========================================================================
   Badge Marque
   ========================================================================== */

.opnr-fleet-card-badge {
	display: flex;

	align-items: center;
}
/* ==========================================================================
   OPNR Fleet Manager
   Admin CSS
   Partie 2/4
   Tableaux, pagination, alertes, états vides et import CSV
   ========================================================================== */

/* ==========================================================================
   Alertes
   ========================================================================== */

.opnr-fleet-alert {
	margin: 20px 0;
	padding: 16px 18px;
	border: 1px solid transparent;
	border-radius: 8px;
	line-height: 1.5;
}

.opnr-fleet-alert strong {
	font-weight: 700;
}

.opnr-fleet-alert-success {
	color: #166534;
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.opnr-fleet-alert-error {
	color: #991b1b;
	background: #fef2f2;
	border-color: #fecaca;
}

.opnr-fleet-alert-warning {
	color: #92400e;
	background: #fffbeb;
	border-color: #fde68a;
}

.opnr-fleet-alert-info {
	color: #1e40af;
	background: #eff6ff;
	border-color: #bfdbfe;
}

/* ==========================================================================
   Empty state
   ========================================================================== */

.opnr-fleet-empty-state {
	padding: 50px 30px;
	text-align: center;
	border: 1px dashed var(--fleet-border);
	border-radius: var(--fleet-radius);
	background: #fafafa;
}

.opnr-fleet-empty-state h2,
.opnr-fleet-empty-state h3 {
	margin: 0 0 10px;
	color: var(--fleet-primary);
}

.opnr-fleet-empty-state p {
	max-width: 650px;
	margin: 0 auto;
	color: var(--fleet-text-light);
	line-height: 1.6;
}

/* ==========================================================================
   Table wrapper
   ========================================================================== */

.opnr-fleet-table-wrapper {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--fleet-border);
	border-radius: var(--fleet-radius);
	background: #fff;
}

.opnr-fleet-table {
	width: 100%;
	min-width: 980px;
	border-collapse: collapse;
	border-spacing: 0;
}

.opnr-fleet-table thead {
	background: var(--fleet-secondary);
}

.opnr-fleet-table th,
.opnr-fleet-table td {
	padding: 15px 16px;
	border-bottom: 1px solid var(--fleet-border);
	text-align: left;
	vertical-align: middle;
}

.opnr-fleet-table th {
	color: var(--fleet-primary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.opnr-fleet-table td {
	color: var(--fleet-text);
	font-size: 14px;
}

.opnr-fleet-table tbody tr:last-child td {
	border-bottom: none;
}

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

.opnr-fleet-table tbody tr:hover {
	background: #fbfdfe;
}

.opnr-fleet-table a {
	color: var(--fleet-primary);
	font-weight: 600;
	text-decoration: none;
}

.opnr-fleet-table a:hover {
	text-decoration: underline;
}

.opnr-fleet-actions-column {
	width: 190px;
	text-align: right;
}

/* ==========================================================================
   Row actions
   ========================================================================== */

.opnr-fleet-row-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.opnr-fleet-inline-form {
	display: inline-flex;
	margin: 0;
}

/* ==========================================================================
   Muted text
   ========================================================================== */

.opnr-fleet-muted {
	color: var(--fleet-text-light);
	font-style: italic;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.opnr-fleet-comment {
	display: inline-block;
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.opnr-fleet-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
	flex-wrap: wrap;
}

.opnr-fleet-pagination-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--fleet-border);
	border-radius: 8px;
	background: #fff;
	color: var(--fleet-primary);
	font-weight: 600;
	text-decoration: none;
	transition: var(--fleet-transition);
}

.opnr-fleet-pagination-link:hover {
	background: var(--fleet-secondary);
	transform: translateY(-1px);
}

.opnr-fleet-pagination-current {
	color: var(--fleet-text-light);
	font-size: 14px;
}

/* ==========================================================================
   Brand badge
   ========================================================================== */

.opnr-fleet-brand-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 13px;
	border: 1px solid rgba(7, 69, 91, 0.14);
	border-radius: 999px;
	background: var(--fleet-secondary);
	color: var(--fleet-primary);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.opnr-fleet-brand-badge::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	content: '';
}

/* ==========================================================================
   Status badges
   ========================================================================== */

.opnr-fleet-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 74px;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.opnr-fleet-status-active {
	color: #166534;
	background: #dcfce7;
}

.opnr-fleet-status-inactive {
	color: #6b7280;
	background: #f3f4f6;
}

.opnr-fleet-status-warning {
	color: #92400e;
	background: #fef3c7;
}

/* ==========================================================================
   CSV import
   ========================================================================== */

.opnr-fleet-import-card .opnr-fleet-form {
	padding: 28px;
}

.opnr-fleet-import-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin: 24px 28px 0;
}

.opnr-fleet-summary-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	border: 1px solid var(--fleet-border);
	border-radius: 8px;
	background: #fafafa;
}

.opnr-fleet-summary-label {
	color: var(--fleet-text-light);
	font-size: 13px;
}

.opnr-fleet-summary-item strong {
	color: var(--fleet-primary);
	font-size: 24px;
}

/* ==========================================================================
   CSV format helper
   ========================================================================== */

.opnr-fleet-csv-format {
	margin-top: 28px;
	padding: 22px;
	border: 1px solid var(--fleet-border);
	border-radius: 8px;
	background: #f9fafb;
}

.opnr-fleet-csv-format h3 {
	margin: 0 0 12px;
	color: var(--fleet-primary);
	font-size: 18px;
}

.opnr-fleet-csv-format p {
	margin: 12px 0 0;
	color: var(--fleet-text-light);
	line-height: 1.6;
}

/* ==========================================================================
   Code blocks
   ========================================================================== */

.opnr-fleet-code-block {
	overflow-x: auto;
	padding: 14px 16px;
	border-radius: 7px;
	background: #111827;
}

.opnr-fleet-code-block code {
	color: #f9fafb;
	font-family: Consolas, Monaco, 'Courier New', monospace;
	font-size: 13px;
	white-space: nowrap;
}

.opnr-fleet-dashboard-table-row code {
	padding: 4px 7px;
	border-radius: 5px;
	background: #f3f4f6;
	color: #374151;
	font-family: Consolas, Monaco, 'Courier New', monospace;
	font-size: 13px;
}

/* ==========================================================================
   Equipment grouping
   ========================================================================== */

.opnr-fleet-equipment-groups {
	display: grid;
	gap: 24px;
}

.opnr-fleet-equipment-group {
	overflow: hidden;
	border: 1px solid var(--fleet-border);
	border-radius: var(--fleet-radius);
	background: #fff;
}

.opnr-fleet-equipment-group-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--fleet-border);
	background: var(--fleet-secondary);
}

.opnr-fleet-equipment-group-header h3 {
	margin: 0;
	color: var(--fleet-primary);
	font-size: 18px;
}

.opnr-fleet-equipment-group-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	min-height: 28px;
	padding: 4px 9px;
	border-radius: 999px;
	background: #fff;
	color: var(--fleet-primary);
	font-size: 12px;
	font-weight: 700;
}

/* ==========================================================================
   Equipment list items
   ========================================================================== */

.opnr-fleet-equipment-list {
	display: grid;
}

.opnr-fleet-equipment-item {
	display: grid;
	grid-template-columns: 70px minmax(180px, 1fr) 110px 220px;
	gap: 16px;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid var(--fleet-border);
}

.opnr-fleet-equipment-item:last-child {
	border-bottom: none;
}

.opnr-fleet-equipment-item:hover {
	background: #fbfdfe;
}

.opnr-fleet-equipment-position {
	color: var(--fleet-text-light);
	font-size: 13px;
	font-weight: 700;
}

.opnr-fleet-equipment-label {
	color: var(--fleet-text);
	font-weight: 600;
}

.opnr-fleet-equipment-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Checkbox and switches
   ========================================================================== */

.opnr-fleet-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.opnr-fleet-checkbox input {
	width: 18px;
	height: 18px;
	margin: 0;
}

.opnr-fleet-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	width: 46px;
	height: 26px;
	cursor: pointer;
}

.opnr-fleet-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.opnr-fleet-switch-slider {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #d1d5db;
	transition: var(--fleet-transition);
}

.opnr-fleet-switch-slider::before {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
	content: '';
	transition: var(--fleet-transition);
}

.opnr-fleet-switch input:checked + .opnr-fleet-switch-slider {
	background: var(--fleet-success);
}

.opnr-fleet-switch input:checked + .opnr-fleet-switch-slider::before {
	transform: translateX(20px);
}

.opnr-fleet-switch input:focus-visible + .opnr-fleet-switch-slider {
	outline: 3px solid rgba(7, 69, 91, 0.18);
	outline-offset: 2px;
}

/* ==========================================================================
   Loading state
   ========================================================================== */

.opnr-fleet-is-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.7;
}

.opnr-fleet-is-loading::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
	border: 3px solid rgba(7, 69, 91, 0.2);
	border-top-color: var(--fleet-primary);
	border-radius: 50%;
	content: '';
	animation: opnr-fleet-spin 0.7s linear infinite;
}

@keyframes opnr-fleet-spin {
	to {
		transform: rotate(360deg);
	}
}
/* ==========================================================================
   OPNR Fleet Manager
   Admin CSS
   Partie 3/4
   Dashboard, statistiques et cartes d'action
   ========================================================================== */

/* ==========================================================================
   Dashboard principal
   ========================================================================== */

.opnr-fleet-dashboard {
	width: 100%;
}

.opnr-fleet-dashboard-header {
	padding: 0 4px;
}

.opnr-fleet-dashboard-brand {
	flex-shrink: 0;
}

/* ==========================================================================
   Sélecteur de marque du dashboard
   ========================================================================== */

.opnr-fleet-dashboard-selector {
	padding-bottom: 28px;
}

.opnr-fleet-dashboard-brand-form {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	padding: 28px;
	flex-wrap: wrap;
}

.opnr-fleet-dashboard-brand-form .opnr-fleet-field {
	width: min(100%, 420px);
}

.opnr-fleet-dashboard-brand-form .opnr-fleet-form-actions {
	margin-top: 0;
}

/* ==========================================================================
   Statistiques
   ========================================================================== */

.opnr-fleet-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 32px;
}

.opnr-fleet-stat-card {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 120px;
	padding: 22px;
	border: 1px solid var(--fleet-border);
	border-radius: var(--fleet-radius);
	background: #fff;
	box-shadow: var(--fleet-shadow);
	transition:
		transform var(--fleet-transition),
		box-shadow var(--fleet-transition),
		border-color var(--fleet-transition);
}

.opnr-fleet-stat-card:hover {
	transform: translateY(-3px);
	border-color: rgba(7, 69, 91, 0.2);
	box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.opnr-fleet-stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	border-radius: 14px;
	background: var(--fleet-secondary);
	color: var(--fleet-primary);
}

.opnr-fleet-stat-icon svg {
	display: block;
}

.opnr-fleet-stat-label {
	display: block;
	margin-bottom: 6px;
	color: var(--fleet-text-light);
	font-size: 13px;
	font-weight: 600;
}

.opnr-fleet-stat-value {
	display: block;
	color: var(--fleet-primary);
	font-size: 30px;
	line-height: 1;
	font-weight: 800;
}

/* ==========================================================================
   Cartes d'action
   ========================================================================== */

.opnr-fleet-dashboard-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.opnr-fleet-dashboard-action-card {
	display: flex;
	flex-direction: column;
	min-height: 320px;
	overflow: hidden;
	border: 1px solid var(--fleet-border);
	border-radius: var(--fleet-radius);
	background: #fff;
	box-shadow: var(--fleet-shadow);
	transition:
		transform var(--fleet-transition),
		box-shadow var(--fleet-transition),
		border-color var(--fleet-transition);
}

.opnr-fleet-dashboard-action-card:hover {
	transform: translateY(-4px);
	border-color: rgba(7, 69, 91, 0.22);
	box-shadow: 0 14px 34px rgba(17, 24, 39, 0.09);
}

.opnr-fleet-dashboard-action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 26px 26px 0;
	border-radius: 16px;
	background: var(--fleet-secondary);
	color: var(--fleet-primary);
}

.opnr-fleet-dashboard-action-content {
	flex: 1;
	padding: 24px 26px;
}

.opnr-fleet-dashboard-action-content h2 {
	margin: 0 0 12px;
	color: var(--fleet-primary);
	font-size: 22px;
}

.opnr-fleet-dashboard-action-content p {
	margin: 0;
	color: var(--fleet-text-light);
	line-height: 1.7;
}

.opnr-fleet-dashboard-action-footer {
	padding: 0 26px 26px;
}

.opnr-fleet-dashboard-action-footer .opnr-fleet-button {
	width: 100%;
}

/* ==========================================================================
   Informations de tables
   ========================================================================== */

.opnr-fleet-dashboard-info {
	margin-bottom: 28px;
}

.opnr-fleet-dashboard-table-info {
	display: grid;
	padding: 4px 28px 28px;
}

.opnr-fleet-dashboard-table-row {
	display: grid;
	grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid var(--fleet-border);
}

.opnr-fleet-dashboard-table-row:last-child {
	border-bottom: none;
}

.opnr-fleet-dashboard-table-row > span {
	color: var(--fleet-text-light);
	font-size: 14px;
	font-weight: 600;
}

.opnr-fleet-dashboard-table-row > strong {
	color: var(--fleet-primary);
}

.opnr-fleet-dashboard-table-row code {
	justify-self: start;
	word-break: break-all;
}

/* ==========================================================================
   Titres et espacements dashboard
   ========================================================================== */

.opnr-fleet-dashboard .opnr-fleet-card + .opnr-fleet-alert {
	margin-top: 0;
}

.opnr-fleet-dashboard .opnr-fleet-empty-state {
	margin-bottom: 30px;
}

.opnr-fleet-dashboard .opnr-fleet-alert {
	margin-bottom: 28px;
}

/* ==========================================================================
   Dashboard dans une page WordPress
   ========================================================================== */

.entry-content .opnr-fleet-dashboard,
.site-main .opnr-fleet-dashboard {
	max-width: var(--fleet-max-width);
}

.entry-content .opnr-fleet-dashboard h1,
.entry-content .opnr-fleet-dashboard h2,
.entry-content .opnr-fleet-dashboard h3,
.site-main .opnr-fleet-dashboard h1,
.site-main .opnr-fleet-dashboard h2,
.site-main .opnr-fleet-dashboard h3 {
	font-family: inherit;
}

.entry-content .opnr-fleet-dashboard a,
.site-main .opnr-fleet-dashboard a {
	text-decoration: none;
}

/* ==========================================================================
   Cartes dans les vues véhicules et matériel
   ========================================================================== */

.opnr-fleet-vehicles-card,
.opnr-fleet-equipment-card,
.opnr-fleet-import-card {
	max-width: var(--fleet-max-width);
	margin-right: auto;
	margin-left: auto;
}

.opnr-fleet-vehicle-form-section,
.opnr-fleet-equipment-form-section {
	border-bottom: 1px solid var(--fleet-border);
	background: #fcfdfd;
}

.opnr-fleet-vehicle-list-section,
.opnr-fleet-equipment-list-section {
	background: #fff;
}

/* ==========================================================================
   Mise en avant de la section édition
   ========================================================================== */

.opnr-fleet-vehicle-form-section:has(input[name='vehicle_id']:not([value='0'])),
.opnr-fleet-equipment-form-section:has(
	input[name='equipment_id']:not([value='0'])
) {
	background: #f8fbfc;
}

.opnr-fleet-vehicle-form-section:has(input[name='vehicle_id']:not([value='0']))
	.opnr-fleet-section-header
	h3,
.opnr-fleet-equipment-form-section:has(
		input[name='equipment_id']:not([value='0'])
	)
	.opnr-fleet-section-header
	h3 {
	color: var(--fleet-primary);
}

/* ==========================================================================
   Séparateurs visuels
   ========================================================================== */

.opnr-fleet-section + .opnr-fleet-section {
	border-top: 1px solid var(--fleet-border);
}

.opnr-fleet-card > .opnr-fleet-toolbar {
	padding: 26px 28px;
	border-bottom: 1px solid var(--fleet-border);
	background: #fbfcfd;
}

/* ==========================================================================
   Indicateur de sélection
   ========================================================================== */

.opnr-fleet-card-badge .opnr-fleet-brand-badge,
.opnr-fleet-dashboard-brand .opnr-fleet-brand-badge {
	box-shadow: 0 4px 12px rgba(7, 69, 91, 0.07);
}

/* ==========================================================================
   États interactifs
   ========================================================================== */

.opnr-fleet-dashboard-action-card:focus-within,
.opnr-fleet-stat-card:focus-within {
	outline: 3px solid rgba(7, 69, 91, 0.15);
	outline-offset: 3px;
}

.opnr-fleet-dashboard-action-card .opnr-fleet-button:focus-visible,
.opnr-fleet-dashboard-brand-form .opnr-fleet-button:focus-visible {
	outline: 3px solid rgba(7, 69, 91, 0.2);
	outline-offset: 3px;
}

/* ==========================================================================
   Petits compteurs et méta-informations
   ========================================================================== */

.opnr-fleet-dashboard-meta {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	color: var(--fleet-text-light);
	font-size: 13px;
}

.opnr-fleet-dashboard-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.opnr-fleet-dashboard-meta-item::before {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--fleet-primary);
	content: '';
}

/* ==========================================================================
   Bloc d'information complémentaire
   ========================================================================== */

.opnr-fleet-info-panel {
	padding: 22px;
	border: 1px solid var(--fleet-border);
	border-left: 4px solid var(--fleet-primary);
	border-radius: 8px;
	background: #f8fbfc;
}

.opnr-fleet-info-panel h3 {
	margin: 0 0 8px;
	color: var(--fleet-primary);
}

.opnr-fleet-info-panel p {
	margin: 0;
	color: var(--fleet-text-light);
	line-height: 1.6;
}
/* ==========================================================================
   OPNR Fleet Manager
   Admin CSS
   Partie 4/4
   Responsive, animations, impression et utilitaires
   ========================================================================== */

/* ==========================================================================
   Responsive desktop
   ========================================================================== */

@media (max-width: 1300px) {
	.opnr-fleet-dashboard-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

/* ==========================================================================
   Responsive tablette
   ========================================================================== */

@media (max-width: 992px) {
	.opnr-fleet-dashboard-header {
		flex-direction: column;

		align-items: flex-start;
	}

	.opnr-fleet-toolbar-fields {
		grid-template-columns: 1fr;
	}

	.opnr-fleet-section-header {
		flex-direction: column;
	}

	.opnr-fleet-dashboard-brand-form {
		flex-direction: column;

		align-items: stretch;
	}

	.opnr-fleet-dashboard-brand-form .opnr-fleet-field {
		width: 100%;
	}

	.opnr-fleet-dashboard-actions {
		grid-template-columns: 1fr;
	}

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

	.opnr-fleet-dashboard-table-row {
		grid-template-columns: 1fr;

		gap: 8px;
	}

	.opnr-fleet-equipment-item {
		grid-template-columns: 1fr;

		gap: 12px;
	}

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

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 768px) {
	.opnr-fleet-dashboard {
		margin: 20px auto;
	}

	.opnr-fleet-card-header {
		padding: 20px;
	}

	.opnr-fleet-section {
		padding: 20px;
	}

	.opnr-fleet-toolbar {
		padding: 20px;
	}

	.opnr-fleet-dashboard-title {
		font-size: 28px;
	}

	.opnr-fleet-card-title {
		font-size: 22px;
	}

	.opnr-fleet-dashboard-stats {
		grid-template-columns: 1fr;
	}

	.opnr-fleet-stat-card {
		min-height: 95px;
	}

	.opnr-fleet-form-grid {
		grid-template-columns: 1fr;
	}

	.opnr-fleet-form-actions {
		flex-direction: column;
	}

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

	.opnr-fleet-toolbar-actions {
		flex-direction: column;
	}

	.opnr-fleet-pagination {
		flex-direction: column;
	}
}

/* ==========================================================================
   Tableau responsive
   ========================================================================== */

@media (max-width: 768px) {
	.opnr-fleet-table {
		min-width: 0;
	}

	.opnr-fleet-table thead {
		display: none;
	}

	.opnr-fleet-table,
	.opnr-fleet-table tbody,
	.opnr-fleet-table tr,
	.opnr-fleet-table td {
		display: block;

		width: 100%;
	}

	.opnr-fleet-table tr {
		margin-bottom: 18px;

		border: 1px solid var(--fleet-border);

		border-radius: 10px;

		overflow: hidden;

		background: #fff;

		box-shadow: var(--fleet-shadow);
	}

	.opnr-fleet-table td {
		display: flex;

		justify-content: space-between;

		align-items: flex-start;

		gap: 20px;

		padding: 14px 18px;

		border-bottom: 1px solid var(--fleet-border);

		text-align: right;
	}

	.opnr-fleet-table td:last-child {
		border-bottom: none;
	}

	.opnr-fleet-table td::before {
		content: attr(data-label);

		color: var(--fleet-primary);

		font-weight: 700;

		text-align: left;
	}

	.opnr-fleet-row-actions {
		width: 100%;

		justify-content: flex-end;
	}
}

/* ==========================================================================
   Equipment responsive
   ========================================================================== */

@media (max-width: 640px) {
	.opnr-fleet-equipment-group-header {
		flex-direction: column;

		align-items: flex-start;
	}

	.opnr-fleet-equipment-item {
		padding: 18px;
	}

	.opnr-fleet-equipment-position {
		font-size: 12px;
	}

	.opnr-fleet-equipment-label {
		font-size: 15px;
	}
}

/* ==========================================================================
   Disabled
   ========================================================================== */

.opnr-fleet-button:disabled,
.opnr-fleet-button.disabled {
	opacity: 0.45;

	cursor: not-allowed;

	pointer-events: none;
}

input:disabled,
textarea:disabled,
select:disabled {
	background: #f3f4f6;

	cursor: not-allowed;
}

/* ==========================================================================
   Focus clavier
   ========================================================================== */

.opnr-fleet-button:focus-visible,
.opnr-fleet-field input:focus-visible,
.opnr-fleet-field textarea:focus-visible,
.opnr-fleet-field select:focus-visible {
	outline: 3px solid rgba(7, 69, 91, 0.2);

	outline-offset: 2px;
}

/* ==========================================================================
   Liens
   ========================================================================== */

.opnr-fleet-dashboard a {
	transition: var(--fleet-transition);
}

.opnr-fleet-dashboard a:hover {
	text-decoration: none;
}

/* ==========================================================================
   Fade
   ========================================================================== */

.opnr-fleet-fade-in {
	animation: opnrFleetFade 0.25s ease;
}

@keyframes opnrFleetFade {
	from {
		opacity: 0;

		transform: translateY(8px);
	}

	to {
		opacity: 1;

		transform: none;
	}
}

/* ==========================================================================
   Accessibilité
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;

		transition: none !important;

		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Impression
   ========================================================================== */

@media print {
	.opnr-fleet-button,
	.opnr-fleet-toolbar,
	.opnr-fleet-pagination,
	.opnr-fleet-form,
	.opnr-fleet-row-actions {
		display: none !important;
	}

	.opnr-fleet-card {
		border: 1px solid #999;

		box-shadow: none;

		break-inside: avoid;
	}

	.opnr-fleet-dashboard {
		max-width: none;
	}

	.opnr-fleet-table {
		min-width: 0;
	}
}

/* ==========================================================================
   Utilitaires
   ========================================================================== */

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.text-left {
	text-align: left;
}

.mt-0 {
	margin-top: 0 !important;
}
.mt-1 {
	margin-top: 10px !important;
}
.mt-2 {
	margin-top: 20px !important;
}
.mt-3 {
	margin-top: 30px !important;
}

.mb-0 {
	margin-bottom: 0 !important;
}
.mb-1 {
	margin-bottom: 10px !important;
}
.mb-2 {
	margin-bottom: 20px !important;
}
.mb-3 {
	margin-bottom: 30px !important;
}

.hidden {
	display: none !important;
}

.w-100 {
	width: 100% !important;
}

.flex {
	display: flex !important;
}

.flex-between {
	display: flex;

	justify-content: space-between;

	align-items: center;
}

.flex-center {
	display: flex;

	justify-content: center;

	align-items: center;
}

.rounded {
	border-radius: var(--fleet-radius);
}

.shadow {
	box-shadow: var(--fleet-shadow);
}

/* ==========================================================================
   Fin du fichier
   ========================================================================== */
/* ==========================================================================
   OPNR Fleet Manager
   Uniformisation avec [opnr_fleet_report]
   À placer à la fin de admin.css
   ========================================================================== */

/* ==========================================================================
   Variables communes
   ========================================================================== */

.opnr-fleet-dashboard,
.opnr-fleet-card,
.opnr-fleet-vehicles-card,
.opnr-fleet-equipment-card,
.opnr-fleet-import-card,
.opnr-fleet-brand-selector {
	--fleet-primary: #e1047a;
	--fleet-primary-dark: #bd0368;

	--fleet-navy: #0f172a;
	--fleet-text: #1f2937;
	--fleet-text-light: #64748b;
	--fleet-muted: #64748b;

	--fleet-border: #dbe2ea;
	--fleet-bg: #f5f7fa;
	--fleet-secondary: #f8fafc;
	--fleet-card: #ffffff;

	--fleet-success: #15803d;
	--fleet-warning: #b45309;
	--fleet-danger: #b91c1c;
	--fleet-info: #2563eb;

	--fleet-radius: 20px;
	--fleet-radius-small: 11px;
	--fleet-radius-medium: 14px;

	--fleet-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
	--fleet-shadow-large: 0 22px 55px rgba(15, 23, 42, 0.16);

	--fleet-transition: 0.2s ease;
	--fleet-max-width: 1180px;

	color: var(--fleet-text);
	font-family: inherit;
}

/* ==========================================================================
   Conteneur général
   ========================================================================== */

.opnr-fleet-dashboard {
	max-width: var(--fleet-max-width);
	margin: 0 auto;
	padding: 32px 20px 64px;
}

.opnr-fleet-dashboard *,
.opnr-fleet-dashboard *::before,
.opnr-fleet-dashboard *::after,
.opnr-fleet-card *,
.opnr-fleet-card *::before,
.opnr-fleet-card *::after {
	box-sizing: border-box;
}

/* ==========================================================================
   En-tête principal
   ========================================================================== */

.opnr-fleet-dashboard-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 24px;
	padding: 36px;
	border-radius: 22px;
	background: linear-gradient(135deg, #111827 0%, #263449 100%);
	color: #ffffff;
	box-shadow: var(--fleet-shadow-large);
}

.opnr-fleet-dashboard-title {
	margin: 0;
	color: #ffffff;
	font-size: clamp(2rem, 4vw, 3.1rem);
	font-weight: 800;
	line-height: 1.08;
}

.opnr-fleet-dashboard-description {
	max-width: 760px;
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.05rem;
	line-height: 1.6;
}

.opnr-fleet-dashboard-header .opnr-fleet-brand-badge {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	box-shadow: none;
}

/* ==========================================================================
   Cartes
   ========================================================================== */

.opnr-fleet-card,
.opnr-fleet-stat-card,
.opnr-fleet-dashboard-action-card,
.opnr-fleet-equipment-group {
	border: 1px solid var(--fleet-border);
	border-radius: var(--fleet-radius);
	background: var(--fleet-card);
	box-shadow: var(--fleet-shadow);
}

.opnr-fleet-card {
	margin-bottom: 24px;
	overflow: hidden;
}

.opnr-fleet-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 28px;
	border-bottom: 1px solid var(--fleet-border);
}

.opnr-fleet-card-title {
	margin: 0;
	color: var(--fleet-navy);
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	font-weight: 800;
}

.opnr-fleet-card-description {
	margin: 8px 0 0;
	color: var(--fleet-muted);
	line-height: 1.6;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.opnr-fleet-section {
	padding: 28px;
}

.opnr-fleet-section-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}

.opnr-fleet-section-header h2,
.opnr-fleet-section-header h3 {
	margin: 0;
	color: var(--fleet-navy);
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	font-weight: 800;
}

.opnr-fleet-section-header p {
	margin: 8px 0 0;
	color: var(--fleet-muted);
}

/* ==========================================================================
   Sélecteur de marque
   ========================================================================== */

.opnr-fleet-dashboard-selector {
	padding-bottom: 0;
}

.opnr-fleet-dashboard-brand-form {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	padding: 28px;
	flex-wrap: wrap;
}

.opnr-fleet-dashboard-brand-form .opnr-fleet-field {
	width: min(100%, 420px);
}

.opnr-fleet-dashboard-brand-form .opnr-fleet-form-actions {
	margin-top: 0;
}

/* ==========================================================================
   Formulaires
   ========================================================================== */

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

.opnr-fleet-field {
	display: grid;
	gap: 8px;
}

.opnr-fleet-field-full {
	grid-column: 1 / -1;
}

.opnr-fleet-field label {
	margin: 0;
	color: var(--fleet-navy);
	font-weight: 750;
}

.opnr-fleet-field label span,
.opnr-fleet-field > span {
	color: var(--fleet-primary);
}

.opnr-fleet-field-help {
	margin-top: 2px;
	color: var(--fleet-muted);
	font-size: 0.84rem;
	line-height: 1.45;
}

.opnr-fleet-field input[type='text'],
.opnr-fleet-field input[type='email'],
.opnr-fleet-field input[type='number'],
.opnr-fleet-field input[type='search'],
.opnr-fleet-field input[type='file'],
.opnr-fleet-field select,
.opnr-fleet-brand-selector select,
.opnr-fleet-field textarea {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid #cbd5e1;
	border-radius: var(--fleet-radius-small);
	background: #ffffff;
	color: var(--fleet-text);
	font: inherit;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.opnr-fleet-field textarea {
	min-height: 130px;
	resize: vertical;
}

.opnr-fleet-field input:focus,
.opnr-fleet-field textarea:focus,
.opnr-fleet-field select:focus {
	outline: none;
	border-color: var(--fleet-primary);
	box-shadow: 0 0 0 4px rgba(225, 4, 122, 0.12);
}

.opnr-fleet-field input[readonly] {
	background: #f8fafc;
	color: #475569;
}

.opnr-fleet-field input:disabled,
.opnr-fleet-field textarea:disabled,
.opnr-fleet-field select:disabled {
	cursor: not-allowed;
	background: #f1f5f9;
	color: #94a3b8;
}

/* ==========================================================================
   Actions de formulaire
   ========================================================================== */

.opnr-fleet-form-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 26px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.opnr-fleet-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: var(--fleet-radius-small);
	font: inherit;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease,
		background-color 0.15s ease,
		border-color 0.15s ease;
}

.opnr-fleet-button:hover:not(:disabled) {
	transform: translateY(-1px);
	text-decoration: none;
}

.opnr-fleet-button-primary {
	background: var(--fleet-primary);
	color: #ffffff;
	box-shadow: 0 12px 24px rgba(225, 4, 122, 0.2);
}

.opnr-fleet-button-primary:hover:not(:disabled) {
	background: var(--fleet-primary-dark);
	color: #ffffff;
}

.opnr-fleet-button-secondary {
	border-color: #cbd5e1;
	background: #ffffff;
	color: var(--fleet-navy);
}

.opnr-fleet-button-secondary:hover:not(:disabled) {
	border-color: var(--fleet-primary);
	background: #fdf2f8;
	color: #9d174d;
}

.opnr-fleet-button-danger {
	background: var(--fleet-danger);
	color: #ffffff;
}

.opnr-fleet-button-danger:hover:not(:disabled) {
	background: #991b1b;
	color: #ffffff;
}

.opnr-fleet-button-small {
	min-height: 36px;
	padding: 7px 12px;
	border-radius: 9px;
	font-size: 0.82rem;
}

.opnr-fleet-button:disabled,
.opnr-fleet-button.disabled {
	cursor: not-allowed;
	opacity: 0.45;
	pointer-events: none;
	box-shadow: none;
}

/* ==========================================================================
   Toolbar
   ========================================================================== */

.opnr-fleet-toolbar {
	margin: 0;
	padding: 26px 28px;
	border-bottom: 1px solid var(--fleet-border);
	background: #f8fafc;
}

.opnr-fleet-toolbar-fields {
	display: grid;
	grid-template-columns: 250px minmax(240px, 1fr) auto;
	gap: 20px;
	align-items: end;
}

.opnr-fleet-toolbar-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Badges marque
   ========================================================================== */

.opnr-fleet-brand-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 6px 12px;
	border: 1px solid #fbcfe8;
	border-radius: 999px;
	background: #fdf2f8;
	color: #9d174d;
	font-size: 0.85rem;
	font-weight: 800;
	white-space: nowrap;
}

.opnr-fleet-brand-badge::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	content: '';
}

/* ==========================================================================
   Statistiques
   ========================================================================== */

.opnr-fleet-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.opnr-fleet-stat-card {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 120px;
	padding: 22px;
	transition:
		transform var(--fleet-transition),
		box-shadow var(--fleet-transition),
		border-color var(--fleet-transition);
}

.opnr-fleet-stat-card:hover {
	transform: translateY(-3px);
	border-color: #fbcfe8;
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.opnr-fleet-stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	border-radius: 16px;
	background: #fdf2f8;
	color: var(--fleet-primary);
}

.opnr-fleet-stat-label {
	display: block;
	margin-bottom: 6px;
	color: var(--fleet-muted);
	font-size: 0.82rem;
	font-weight: 700;
}

.opnr-fleet-stat-value {
	display: block;
	color: var(--fleet-navy);
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
}

/* ==========================================================================
   Cartes d’actions du dashboard
   ========================================================================== */

.opnr-fleet-dashboard-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 24px;
}

.opnr-fleet-dashboard-action-card {
	display: flex;
	flex-direction: column;
	min-height: 320px;
	overflow: hidden;
	transition:
		transform var(--fleet-transition),
		box-shadow var(--fleet-transition),
		border-color var(--fleet-transition);
}

.opnr-fleet-dashboard-action-card:hover {
	transform: translateY(-4px);
	border-color: #fbcfe8;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.opnr-fleet-dashboard-action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 26px 26px 0;
	border-radius: 18px;
	background: #fdf2f8;
	color: var(--fleet-primary);
}

.opnr-fleet-dashboard-action-content {
	flex: 1;
	padding: 24px 26px;
}

.opnr-fleet-dashboard-action-content h2 {
	margin: 0 0 12px;
	color: var(--fleet-navy);
	font-size: 22px;
	font-weight: 800;
}

.opnr-fleet-dashboard-action-content p {
	margin: 0;
	color: var(--fleet-muted);
	line-height: 1.7;
}

.opnr-fleet-dashboard-action-footer {
	padding: 0 26px 26px;
}

.opnr-fleet-dashboard-action-footer .opnr-fleet-button {
	width: 100%;
}

/* ==========================================================================
   Alertes
   ========================================================================== */

.opnr-fleet-alert {
	margin: 20px 0;
	padding: 14px 16px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.opnr-fleet-alert-success {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: var(--fleet-success);
}

.opnr-fleet-alert-error {
	border-color: #fecaca;
	background: #fef2f2;
	color: var(--fleet-danger);
}

.opnr-fleet-alert-warning {
	border-color: #fed7aa;
	background: #fff7ed;
	color: var(--fleet-warning);
}

.opnr-fleet-alert-info {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: var(--fleet-info);
}

/* ==========================================================================
   Tableaux
   ========================================================================== */

.opnr-fleet-table-wrapper {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--fleet-border);
	border-radius: 14px;
	background: #ffffff;
}

.opnr-fleet-table {
	width: 100%;
	min-width: 980px;
	border-collapse: collapse;
	border-spacing: 0;
}

.opnr-fleet-table thead {
	background: #f8fafc;
}

.opnr-fleet-table th,
.opnr-fleet-table td {
	padding: 15px 16px;
	border-bottom: 1px solid var(--fleet-border);
	text-align: left;
	vertical-align: middle;
}

.opnr-fleet-table th {
	color: var(--fleet-navy);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.opnr-fleet-table td {
	color: var(--fleet-text);
	font-size: 0.9rem;
}

.opnr-fleet-table tbody tr {
	transition: background-color 0.2s ease;
}

.opnr-fleet-table tbody tr:hover {
	background: #fdf2f8;
}

.opnr-fleet-table tbody tr:last-child td {
	border-bottom: 0;
}

.opnr-fleet-table a {
	color: var(--fleet-primary);
	font-weight: 750;
	text-decoration: none;
}

.opnr-fleet-table a:hover {
	color: var(--fleet-primary-dark);
	text-decoration: underline;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.opnr-fleet-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 28px;
	flex-wrap: wrap;
}

.opnr-fleet-pagination-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--fleet-border);
	border-radius: 10px;
	background: #ffffff;
	color: var(--fleet-primary);
	font-weight: 750;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.opnr-fleet-pagination-link:hover {
	transform: translateY(-1px);
	border-color: #fbcfe8;
	background: #fdf2f8;
	text-decoration: none;
}

/* ==========================================================================
   Groupes matériel CRUD
   ========================================================================== */

.opnr-fleet-equipment-groups {
	display: grid;
	gap: 18px;
}

.opnr-fleet-equipment-group {
	overflow: hidden;
}

.opnr-fleet-equipment-group-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--fleet-border);
	background: #f8fafc;
}

.opnr-fleet-equipment-group-header h3 {
	margin: 0;
	color: var(--fleet-navy);
	font-size: 1.05rem;
	font-weight: 800;
}

.opnr-fleet-equipment-group-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	min-height: 28px;
	padding: 4px 9px;
	border: 1px solid #fbcfe8;
	border-radius: 999px;
	background: #fdf2f8;
	color: #9d174d;
	font-size: 0.75rem;
	font-weight: 800;
}

.opnr-fleet-equipment-list {
	display: grid;
}

.opnr-fleet-equipment-list .opnr-fleet-equipment-item {
	display: grid;
	grid-template-columns: 70px minmax(180px, 1fr) 110px 220px;
	gap: 16px;
	align-items: center;
	margin: 0;
	padding: 16px 20px;
	border: 0;
	border-bottom: 1px solid var(--fleet-border);
	border-radius: 0;
	background: #ffffff;
}

.opnr-fleet-equipment-list .opnr-fleet-equipment-item:hover {
	background: #fdf2f8;
}

.opnr-fleet-equipment-list .opnr-fleet-equipment-item:last-child {
	border-bottom: 0;
}

/* ==========================================================================
   Switches
   ========================================================================== */

.opnr-fleet-switch-slider {
	background: #cbd5e1;
}

.opnr-fleet-switch input:checked + .opnr-fleet-switch-slider {
	background: var(--fleet-primary);
}

.opnr-fleet-switch input:focus-visible + .opnr-fleet-switch-slider {
	outline: 3px solid rgba(225, 4, 122, 0.16);
	outline-offset: 2px;
}

/* ==========================================================================
   États vides
   ========================================================================== */

.opnr-fleet-empty-state {
	padding: 50px 30px;
	border: 1px dashed var(--fleet-border);
	border-radius: 16px;
	background: #f8fafc;
	text-align: center;
}

.opnr-fleet-empty-state h2,
.opnr-fleet-empty-state h3 {
	margin: 0 0 10px;
	color: var(--fleet-navy);
}

.opnr-fleet-empty-state p {
	max-width: 650px;
	margin: 0 auto;
	color: var(--fleet-muted);
	line-height: 1.6;
}

/* ==========================================================================
   Import CSV
   ========================================================================== */

.opnr-fleet-import-card .opnr-fleet-form {
	padding: 28px;
}

.opnr-fleet-import-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin: 24px 28px 0;
}

.opnr-fleet-summary-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	border: 1px solid var(--fleet-border);
	border-radius: 14px;
	background: #f8fafc;
}

.opnr-fleet-summary-label {
	color: var(--fleet-muted);
	font-size: 0.82rem;
}

.opnr-fleet-summary-item strong {
	color: var(--fleet-primary);
	font-size: 24px;
}

.opnr-fleet-csv-format {
	margin-top: 28px;
	padding: 22px;
	border: 1px solid var(--fleet-border);
	border-left: 4px solid var(--fleet-primary);
	border-radius: 12px;
	background: #fdf2f8;
}

.opnr-fleet-csv-format h3 {
	margin: 0 0 12px;
	color: var(--fleet-navy);
}

/* ==========================================================================
   Focus clavier
   ========================================================================== */

.opnr-fleet-button:focus-visible,
.opnr-fleet-field input:focus-visible,
.opnr-fleet-field textarea:focus-visible,
.opnr-fleet-field select:focus-visible,
.opnr-fleet-pagination-link:focus-visible {
	outline: 3px solid rgba(225, 4, 122, 0.18);
	outline-offset: 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1300px) {
	.opnr-fleet-dashboard-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

@media (max-width: 992px) {
	.opnr-fleet-dashboard-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.opnr-fleet-toolbar-fields {
		grid-template-columns: 1fr;
	}

	.opnr-fleet-dashboard-actions {
		grid-template-columns: 1fr;
	}

	.opnr-fleet-equipment-list .opnr-fleet-equipment-item {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.opnr-fleet-dashboard {
		padding: 18px 12px 42px;
	}

	.opnr-fleet-dashboard-header,
	.opnr-fleet-card {
		border-radius: 16px;
	}

	.opnr-fleet-dashboard-header,
	.opnr-fleet-card-header,
	.opnr-fleet-section,
	.opnr-fleet-toolbar,
	.opnr-fleet-dashboard-brand-form {
		padding: 20px;
	}

	.opnr-fleet-form-grid,
	.opnr-fleet-dashboard-stats {
		grid-template-columns: 1fr;
	}

	.opnr-fleet-form-actions,
	.opnr-fleet-toolbar-actions {
		align-items: stretch;
		flex-direction: column;
	}

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

	.opnr-fleet-dashboard-title {
		font-size: 2rem;
	}
}

/* ==========================================================================
   Réduction des animations
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.opnr-fleet-dashboard *,
	.opnr-fleet-dashboard *::before,
	.opnr-fleet-dashboard *::after,
	.opnr-fleet-card *,
	.opnr-fleet-card *::before,
	.opnr-fleet-card *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
